/* =====================================================================
   Mohaajir.com – Design im Stil von Chefchaouen (die blaue Stadt)
   Blau der Gassen · Weiß der Kalkwände · Terrakotta der Töpfe · Safran der Türen
   ===================================================================== */
:root {
  --ch-950: #071b36;
  --ch-900: #0b2a55;   /* Nachtblau / Indigo */
  --ch-800: #133d78;
  --ch-700: #1a4f98;
  --ch-600: #1f5fa8;   /* Primärblau – Chefchaouen */
  --ch-500: #2f6fc0;
  --ch-400: #5a95d6;
  --ch-300: #8fc1f0;   /* Himmelblau der Wände */
  --ch-200: #bfdcf7;
  --ch-100: #e2effb;
  --ch-50:  #f2f8fe;
  --wall:   #fbfcfe;   /* Kalkweiß */
  --terracotta: #c4583c;
  --terracotta-100: #f8e3dc;
  --saffron: #f2b632;
  --saffron-600: #d99a14;
  --mint: #2e8b6e;
  --mint-100: #dcf1ea;
  --ink: #16243a;
  --muted: #5d6f88;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(11,42,85,.06), 0 1px 3px rgba(11,42,85,.08);
  --shadow: 0 6px 24px -8px rgba(11,42,85,.18);

  --bs-primary: var(--ch-600);
  --bs-primary-rgb: 31,95,168;
  --bs-link-color: var(--ch-600);
  --bs-link-color-rgb: 31,95,168;
  --bs-link-hover-color: var(--ch-800);
  --bs-link-hover-color-rgb: 19,61,120;
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--ch-50);
  --bs-border-color: #d7e3f1;
  --bs-body-font-family: "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-border-radius: 10px;
}

body { background: var(--ch-50); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
h1, h2, h3, .display-font, .brand-text { font-family: "El Messiri", "Cairo", serif; letter-spacing: .01em; }
h1, h2, h3, h4, h5 { color: var(--ch-900); }
a { text-decoration: none; }
.text-muted { color: var(--muted) !important; }
.text-verified { color: var(--ch-500); }
.bg-terracotta { background: var(--terracotta) !important; }
.bg-saffron { background: var(--saffron) !important; color: var(--ch-900) !important; }
.bg-mint { background: var(--mint) !important; }
.bg-ch-100 { background: var(--ch-100) !important; }
.text-terracotta { color: var(--terracotta) !important; }
.text-mint { color: var(--mint) !important; }

/* ---------- Buttons ---------- */
.btn-primary { --bs-btn-bg: var(--ch-600); --bs-btn-border-color: var(--ch-600); --bs-btn-hover-bg: var(--ch-700); --bs-btn-hover-border-color: var(--ch-700); --bs-btn-active-bg: var(--ch-800); --bs-btn-disabled-bg: var(--ch-400); --bs-btn-disabled-border-color: var(--ch-400); }
.btn-outline-primary { --bs-btn-color: var(--ch-600); --bs-btn-border-color: var(--ch-300); --bs-btn-hover-bg: var(--ch-600); --bs-btn-hover-border-color: var(--ch-600); --bs-btn-active-bg: var(--ch-700); }
.btn-saffron { background: var(--saffron); border-color: var(--saffron); color: var(--ch-900); font-weight: 600; }
.btn-saffron:hover { background: var(--saffron-600); border-color: var(--saffron-600); color: var(--ch-950); }
.btn-terracotta { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }
.btn-terracotta:hover { background: #a9462d; color: #fff; }
.btn-soft { background: var(--ch-100); color: var(--ch-700); border: 0; }
.btn-soft:hover { background: var(--ch-200); color: var(--ch-900); }
.btn { font-weight: 600; }
.btn i + span, .btn .bi { vertical-align: -1px; }

/* ---------- Navbar ---------- */
.mh-navbar {
  background: linear-gradient(90deg, var(--ch-900), var(--ch-700));
  box-shadow: 0 2px 14px rgba(7,27,54,.25);
  padding-top: .55rem; padding-bottom: .55rem;
}
.mh-navbar .nav-link { color: rgba(255,255,255,.85); font-weight: 600; border-radius: 8px; padding: .45rem .7rem !important; }
.mh-navbar .nav-link:hover, .mh-navbar .nav-link.active { color: #fff; background: rgba(255,255,255,.1); }
.mh-navbar .nav-link .bi { opacity: .85; }
.brand-text { color: #fff; font-weight: 700; font-size: 1.45rem; line-height: 1; }
.brand-dot { color: var(--saffron); }
.icon-link-nav { position: relative; font-size: 1.15rem; }
.nav-badge { position: absolute; top: 2px; inset-inline-end: 0; background: var(--terracotta); color: #fff; font-size: .65rem; font-weight: 700; border-radius: 99px; min-width: 18px; height: 18px; padding: 0 5px; display: grid; place-items: center; border: 2px solid var(--ch-800); }
.dropdown-menu { border: 1px solid var(--ch-100); box-shadow: var(--shadow); border-radius: 12px; padding: .4rem; }
.dropdown-item { border-radius: 8px; padding: .45rem .75rem; }
.dropdown-item .bi { color: var(--ch-500); margin-inline-end: .35rem; }
.dropdown-item.active, .dropdown-item:active { background: var(--ch-600); }
.dropdown-item.active .bi { color: #fff; }
.site-notice { background: var(--saffron); color: var(--ch-950); text-align: center; padding: .4rem 1rem; font-weight: 600; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    url("../img/zellige.svg") repeat,
    radial-gradient(1200px 500px at 80% -10%, rgba(143,193,240,.45), transparent 60%),
    linear-gradient(135deg, var(--ch-900) 0%, var(--ch-700) 55%, var(--ch-500) 100%);
  padding: 4.5rem 0 7rem;
}
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.5vw, 3.6rem); font-weight: 700; line-height: 1.12; }
.hero .lead { color: rgba(255,255,255,.85); font-size: 1.2rem; max-width: 36rem; }
.hero .arabic-tag { font-family: "El Messiri", serif; color: var(--saffron); font-size: 1.3rem; }
.hero::after { /* Bögen der Medina am unteren Rand */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 70px;
  background:
    radial-gradient(circle at 50% 100%, var(--ch-50) 34px, transparent 35px) 0 100% / 90px 70px repeat-x;
}
.hero-door {
  position: relative; aspect-ratio: 3/4; max-width: 340px; margin-inline: auto;
  border-radius: 999px 999px 18px 18px;
  background: linear-gradient(180deg, var(--ch-400), var(--ch-600));
  border: 10px solid rgba(255,255,255,.92); box-shadow: 0 30px 60px -20px rgba(0,0,0,.45);
  overflow: hidden;
}
.hero-door::before { content: ""; position: absolute; inset: 14px; border-radius: 999px 999px 10px 10px; border: 2px dashed rgba(255,255,255,.5); }
.hero-door .door-inner { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; padding: 2rem; text-align: center; }
.hero-door .door-star { width: 74px; height: 74px; position: relative; }
.hero-door .door-star::before, .hero-door .door-star::after { content: ""; position: absolute; inset: 12px; background: var(--saffron); }
.hero-door .door-star::after { transform: rotate(45deg); }
.hero-door .big-num { font-family: "El Messiri", serif; font-size: 2.6rem; font-weight: 700; line-height: 1; }
.pot { position: absolute; width: 38px; height: 34px; background: var(--terracotta); border-radius: 6px 6px 16px 16px; bottom: 16px; }
.pot::before { content: ""; position: absolute; left: -4px; right: -4px; top: -6px; height: 8px; border-radius: 4px; background: #d8704f; }
.pot::after { content: ""; position: absolute; left: 6px; top: -26px; width: 26px; height: 22px; border-radius: 50% 50% 40% 40%; background: #3aa17f; }
.pot.p1 { left: 18px; } .pot.p2 { right: 18px; }
.hero-search { background: #fff; border-radius: 16px; padding: .5rem; box-shadow: 0 18px 40px -16px rgba(0,0,0,.4); }
.hero-search .form-control, .hero-search .form-select { border: 0; box-shadow: none; }
.hero-search .divider { width: 1px; background: var(--ch-100); }

/* ---------- Sektionen / Karten ---------- */
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.section-title h2 { font-size: 1.7rem; margin: 0; }
.section-title .kicker { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--terracotta); font-weight: 700; }
.card { border: 1px solid #dfe9f5; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-hover { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--ch-200); }
.card-header { background: #fff; border-bottom: 1px solid #e6eef8; font-weight: 700; color: var(--ch-900); border-radius: var(--radius) var(--radius) 0 0 !important; }

/* Bogen-Kacheln ("Türen") für die Hauptbereiche */
.arch-tile {
  display: block; position: relative; text-align: center; padding: 2.2rem 1rem 1.2rem; height: 100%;
  background: #fff; color: var(--ink); border: 1px solid #dfe9f5;
  border-radius: 999px 999px var(--radius) var(--radius); box-shadow: var(--shadow-sm);
  transition: all .2s ease;
}
.arch-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); border-color: var(--ch-300); }
.arch-tile .arch-icon {
  width: 64px; height: 72px; margin: 0 auto .9rem; display: grid; place-items: center; font-size: 1.7rem; color: #fff;
  border-radius: 999px 999px 10px 10px; background: linear-gradient(180deg, var(--ch-400), var(--ch-600));
  box-shadow: inset 0 -6px 0 rgba(0,0,0,.08);
}
.arch-tile.t-terracotta .arch-icon { background: linear-gradient(180deg, #db7a5f, var(--terracotta)); }
.arch-tile.t-saffron .arch-icon { background: linear-gradient(180deg, #f7cc6a, var(--saffron-600)); color: var(--ch-900); }
.arch-tile.t-mint .arch-icon { background: linear-gradient(180deg, #57b394, var(--mint)); }
.arch-tile.t-navy .arch-icon { background: linear-gradient(180deg, var(--ch-700), var(--ch-900)); }
.arch-tile h3 { font-size: 1.15rem; margin-bottom: .25rem; }
.arch-tile p { font-size: .88rem; color: var(--muted); margin: 0; }

.stat-pill { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 12px; padding: .6rem 1rem; }
.stat-pill b { font-family: "El Messiri", serif; font-size: 1.5rem; display: block; line-height: 1.1; }
.stat-pill span { font-size: .8rem; color: rgba(255,255,255,.75); }

/* Seitenkopf */
.page-head {
  background: url("../img/zellige.svg") repeat, linear-gradient(120deg, var(--ch-900), var(--ch-600));
  color: #fff; padding: 2.2rem 0 2.6rem; margin-top: -1.5rem; margin-bottom: 1.75rem; position: relative;
}
.page-head h1 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0; }
.page-head p { color: rgba(255,255,255,.8); margin: .35rem 0 0; }
.page-head .breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.5); --bs-breadcrumb-item-active-color: rgba(255,255,255,.9); margin-bottom: .5rem; font-size: .88rem; }
.page-head .breadcrumb a { color: var(--ch-200); }
main.py-4 > .page-head:first-child { margin-top: -1.5rem; }

/* Filterleiste */
.filter-bar { background: #fff; border: 1px solid #dfe9f5; border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow-sm); }
.filter-bar .form-label { font-size: .8rem; font-weight: 700; color: var(--muted); margin-bottom: .2rem; text-transform: uppercase; letter-spacing: .04em; }

/* Formulare */
.form-control, .form-select { border-color: #cfdcec; }
.form-control:focus, .form-select:focus { border-color: var(--ch-400); box-shadow: 0 0 0 .2rem rgba(47,111,192,.18); }
.form-label { font-weight: 600; color: var(--ch-900); }
.form-check-input:checked { background-color: var(--ch-600); border-color: var(--ch-600); }
.form-card { background: #fff; border: 1px solid #dfe9f5; border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow-sm); }
.form-section-title { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--terracotta); font-weight: 700; margin: 1.25rem 0 .75rem; }

/* Avatare */
.avatar { position: relative; display: inline-grid; place-items: center; flex-shrink: 0; border-radius: 50%; color: #fff; font-weight: 700; overflow: visible; background: var(--ch-600); }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avatar span { line-height: 1; }
.avatar.av-0 { background: linear-gradient(135deg, var(--ch-400), var(--ch-700)); }
.avatar.av-1 { background: linear-gradient(135deg, #db7a5f, var(--terracotta)); }
.avatar.av-2 { background: linear-gradient(135deg, #57b394, var(--mint)); }
.avatar.av-3 { background: linear-gradient(135deg, #f7cc6a, var(--saffron-600)); color: var(--ch-900); }
.avatar.av-4 { background: linear-gradient(135deg, var(--ch-700), var(--ch-950)); }
.online-dot { position: absolute; bottom: 1px; inset-inline-end: 1px; width: 28%; height: 28%; min-width: 9px; min-height: 9px; background: #22c55e; border: 2px solid #fff; border-radius: 50%; }

/* Personen-Karten */
.person-card { text-align: center; padding: 1.5rem 1rem 1rem; }
.person-card .cover { position: absolute; inset: 0 0 auto 0; height: 58px; border-radius: var(--radius) var(--radius) 0 0; background: url("../img/zellige.svg"), linear-gradient(90deg, var(--ch-700), var(--ch-400)); }
.person-card .avatar { border: 4px solid #fff; box-shadow: var(--shadow-sm); position: relative; }
.meta-line { font-size: .88rem; color: var(--muted); }
.meta-line .bi { color: var(--ch-500); width: 1.1em; }
.chip { display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .6rem; border-radius: 99px; background: var(--ch-100); color: var(--ch-800); font-size: .78rem; font-weight: 600; }
.chip.chip-terracotta { background: var(--terracotta-100); color: #8f3a24; }
.chip.chip-mint { background: var(--mint-100); color: #1e6650; }
.chip.chip-saffron { background: #fdf1d2; color: #7a5507; }
.chip.chip-gray { background: #eef1f5; color: #4b5563; }

/* Listen-Einträge (Transport, Jobs …) */
.listing { display: flex; gap: 1rem; padding: 1.1rem 1.2rem; }
.listing + .listing { border-top: 1px solid #e8eff8; }
.listing .l-icon { width: 52px; height: 52px; flex-shrink: 0; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; background: var(--ch-100); color: var(--ch-600); }
.listing .l-icon.request { background: var(--terracotta-100); color: var(--terracotta); }
.listing h3, .listing h5 { font-size: 1.05rem; margin: 0 0 .2rem; font-family: "Cairo", sans-serif; font-weight: 700; }
.listing h3 a, .listing h5 a { color: var(--ch-900); }
.listing h3 a:hover, .listing h5 a:hover { color: var(--ch-600); }
.route { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--ch-800); flex-wrap: wrap; }
.route .arrow { color: var(--terracotta); }

/* Forum */
.forum-cat { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.2rem; }
.forum-cat + .forum-cat { border-top: 1px solid #e8eff8; }
.forum-cat .fc-icon { width: 46px; height: 50px; border-radius: 999px 999px 8px 8px; display: grid; place-items: center; background: var(--ch-600); color: #fff; font-size: 1.25rem; flex-shrink: 0; }
.forum-post { display: flex; gap: 1rem; }
.forum-post .post-body { flex: 1; min-width: 0; background: #fff; border: 1px solid #dfe9f5; border-radius: var(--radius); padding: 1rem 1.2rem; position: relative; }
.forum-post .post-body.first { border-color: var(--ch-300); box-shadow: 0 0 0 3px var(--ch-100); }
.post-text { white-space: pre-line; word-wrap: break-word; }

/* Leerer Zustand */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty-state .bi { font-size: 2.6rem; color: var(--ch-300); display: block; margin-bottom: .5rem; }

/* Weltkarte */
.world-card { background: #fff; border-radius: var(--radius); border: 1px solid #dfe9f5; box-shadow: var(--shadow-sm); overflow: hidden; }
#worldMap { height: 420px; background: linear-gradient(180deg, var(--ch-50), #fff); }
.country-row { display: flex; align-items: center; gap: .75rem; padding: .55rem .25rem; border-bottom: 1px dashed #e0eaf5; color: var(--ink); }
.country-row:hover { color: var(--ch-600); }
.country-row .flag { font-size: 1.4rem; }
.country-row .bar { flex: 1; height: 8px; background: var(--ch-100); border-radius: 99px; overflow: hidden; }
.country-row .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--ch-400), var(--ch-600)); border-radius: 99px; }
.flag-lg { font-size: 3.2rem; line-height: 1; }
.country-grid a { display: flex; gap: .5rem; align-items: center; padding: .45rem .6rem; border-radius: 8px; color: var(--ink); }
.country-grid a:hover { background: var(--ch-100); color: var(--ch-800); }
.country-grid .cnt { margin-inline-start: auto; font-size: .78rem; color: var(--muted); }
.jvm-tooltip { background: var(--ch-900) !important; font-family: "Cairo", sans-serif !important; border-radius: 8px !important; padding: .35rem .6rem !important; }

/* Profil */
.profile-cover { height: 180px; border-radius: var(--radius) var(--radius) 0 0; background: url("../img/zellige.svg"), linear-gradient(120deg, var(--ch-900), var(--ch-500)); position: relative; }
.profile-cover::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 36px; background: radial-gradient(circle at 50% 100%, #fff 17px, transparent 18px) 0 100% / 46px 36px repeat-x; }
.profile-head { position: relative; z-index: 2; }
.profile-head > .avatar { margin-top: -66px; }
.profile-head .avatar { border: 5px solid #fff; box-shadow: var(--shadow); }
.info-list dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.info-list dd { margin-bottom: .75rem; }

/* Chat */
.chat-shell { display: grid; grid-template-columns: 320px 1fr; height: calc(100vh - 170px); min-height: 520px; background: #fff; border: 1px solid #dfe9f5; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.chat-list { border-inline-end: 1px solid #e3ecf7; display: flex; flex-direction: column; min-height: 0; background: var(--wall); }
.chat-list .list-head { padding: 1rem; border-bottom: 1px solid #e3ecf7; }
.chat-list .convs { overflow-y: auto; flex: 1; }
.conv-item { display: flex; gap: .7rem; align-items: center; padding: .75rem 1rem; color: var(--ink); border-inline-start: 3px solid transparent; }
.conv-item:hover { background: var(--ch-50); color: var(--ink); }
.conv-item.active { background: var(--ch-100); border-inline-start-color: var(--ch-600); }
.conv-item .c-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-item .c-last { font-size: .82rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-item .c-badge { background: var(--terracotta); color: #fff; border-radius: 99px; font-size: .7rem; font-weight: 700; padding: .05rem .45rem; }
.chat-main { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.chat-head { padding: .8rem 1.1rem; border-bottom: 1px solid #e3ecf7; display: flex; align-items: center; gap: .75rem; }
.chat-body { flex: 1; overflow-y: auto; padding: 1.2rem; background: url("../img/zellige-light.svg"), var(--ch-50); display: flex; flex-direction: column; gap: .45rem; }
.msg { max-width: min(75%, 560px); display: flex; flex-direction: column; }
.msg .bubble { padding: .55rem .85rem; border-radius: 16px; background: #fff; border: 1px solid #e0eaf5; box-shadow: var(--shadow-sm); white-space: pre-wrap; word-wrap: break-word; }
.msg.mine { align-self: flex-end; align-items: flex-end; }
.msg.mine .bubble { background: var(--ch-600); color: #fff; border-color: var(--ch-600); border-end-end-radius: 4px; }
.msg.theirs .bubble { border-end-start-radius: 4px; }
.msg .meta { font-size: .72rem; color: var(--muted); margin-top: .15rem; display: flex; gap: .35rem; align-items: center; }
.msg .sender { font-size: .75rem; font-weight: 700; color: var(--ch-700); margin-bottom: .1rem; }
.msg .bubble.deleted { font-style: italic; opacity: .6; }
.msg .attach img { max-width: 260px; max-height: 240px; border-radius: 10px; display: block; margin-top: .35rem; }
.msg .attach a.file { display: inline-flex; gap: .4rem; align-items: center; margin-top: .35rem; padding: .35rem .6rem; border-radius: 8px; background: rgba(255,255,255,.2); color: inherit; }
.msg.theirs .attach a.file { background: var(--ch-100); }
.msg .msg-del { background: none; border: 0; color: var(--muted); padding: 0; font-size: .75rem; }
.read-tick { color: var(--ch-400); }
.read-tick.read { color: var(--mint); }
.chat-input { border-top: 1px solid #e3ecf7; padding: .7rem; display: flex; gap: .5rem; align-items: flex-end; }
.chat-input textarea { resize: none; max-height: 140px; }
.chat-date { align-self: center; font-size: .75rem; background: rgba(255,255,255,.85); color: var(--muted); padding: .1rem .7rem; border-radius: 99px; margin: .4rem 0; }
.emoji-pop { position: absolute; bottom: 60px; inset-inline-start: 10px; background: #fff; border: 1px solid #dfe9f5; border-radius: 12px; box-shadow: var(--shadow); padding: .5rem; display: none; grid-template-columns: repeat(8, 1fr); gap: 2px; z-index: 10; }
.emoji-pop.show { display: grid; }
.emoji-pop button { border: 0; background: none; font-size: 1.3rem; border-radius: 6px; padding: 2px; }
.emoji-pop button:hover { background: var(--ch-100); }
@media (max-width: 767.98px) {
  .chat-shell { grid-template-columns: 1fr; height: calc(100vh - 140px); }
  .chat-shell.has-conv .chat-list { display: none; }
  .chat-shell:not(.has-conv) .chat-main { display: none; }
}

/* Events */
.date-badge { width: 62px; flex-shrink: 0; text-align: center; border-radius: 12px; overflow: hidden; border: 1px solid #dfe9f5; background: #fff; }
.date-badge .m { background: var(--terracotta); color: #fff; font-size: .72rem; font-weight: 700; text-transform: uppercase; padding: .15rem 0; }
.date-badge .d { font-family: "El Messiri", serif; font-size: 1.6rem; font-weight: 700; color: var(--ch-900); line-height: 1.3; }

/* News */
.news-card .news-visual { height: 130px; border-radius: var(--radius) var(--radius) 0 0; background: url("../img/zellige.svg"), linear-gradient(135deg, var(--ch-700), var(--ch-400)); display: grid; place-items: center; color: #fff; font-size: 2.4rem; }
.news-card.c-travel .news-visual { background: url("../img/zellige.svg"), linear-gradient(135deg, var(--terracotta), #e39a6f); }
.news-card.c-culture .news-visual { background: url("../img/zellige.svg"), linear-gradient(135deg, var(--mint), #7cc9ad); }
.news-card.c-diaspora .news-visual { background: url("../img/zellige.svg"), linear-gradient(135deg, var(--ch-900), var(--ch-600)); }
.news-card.c-economy .news-visual { background: url("../img/zellige.svg"), linear-gradient(135deg, var(--saffron-600), var(--saffron)); }
.article-body { font-size: 1.07rem; line-height: 1.8; white-space: pre-line; }

/* Sterne */
.stars { color: var(--saffron); letter-spacing: 1px; }

/* Auth-Seiten */
.auth-wrap { min-height: calc(100vh - 260px); display: flex; align-items: center; }
.auth-card { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid #dfe9f5; }
.auth-side { background: url("../img/zellige.svg"), linear-gradient(160deg, var(--ch-900), var(--ch-500)); color: #fff; padding: 2.5rem; display: flex; flex-direction: column; justify-content: space-between; position: relative; }
.auth-side h2 { color: #fff; }
.auth-side .door-mini { width: 120px; height: 160px; border-radius: 999px 999px 12px 12px; border: 6px solid #fff; background: linear-gradient(180deg, var(--ch-300), var(--ch-500)); margin: 1.5rem 0; position: relative; }
.auth-side .door-mini::after { content: ""; position: absolute; width: 10px; height: 10px; background: var(--saffron); border-radius: 50%; top: 55%; inset-inline-end: 16px; }
.auth-form { padding: 2.5rem; }
@media (max-width: 767.98px) { .auth-card { grid-template-columns: 1fr; } .auth-side { display: none; } .auth-form { padding: 1.5rem; } }

/* Footer */
.mh-footer { background: var(--ch-950); color: #fff; margin-top: 4rem; position: relative; }
.footer-arches { height: 34px; margin-top: -33px; background: radial-gradient(circle at 50% 0, transparent 22px, var(--ch-950) 23px) 0 0 / 60px 34px repeat-x; }
.mh-footer h6 { color: var(--saffron); text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; font-weight: 700; margin-bottom: .9rem; }
.mh-footer a { color: rgba(255,255,255,.75); display: inline-block; padding: .15rem 0; }
.mh-footer a:hover { color: #fff; }

/* Tabellen */
.table { --bs-table-hover-bg: var(--ch-50); }
.table > thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; background: #f7faff; border-bottom-width: 1px; }
.nav-pills .nav-link { color: var(--ch-700); font-weight: 600; border-radius: 99px; }
.nav-pills .nav-link.active { background: var(--ch-600); }
.nav-tabs .nav-link.active { color: var(--ch-800); font-weight: 700; }
.pagination { --bs-pagination-color: var(--ch-600); --bs-pagination-active-bg: var(--ch-600); --bs-pagination-active-border-color: var(--ch-600); --bs-pagination-border-radius: 10px; gap: 4px; }
.pagination .page-link { border-radius: 10px !important; }
.badge.bg-primary { background: var(--ch-600) !important; }

/* =====================================================================
   Admin-Bereich
   ===================================================================== */
.admin-body { background: #eef4fb; }
.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-side { background: linear-gradient(180deg, var(--ch-950), var(--ch-900)); color: #fff; padding: 1.25rem .9rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-side .brand-text { font-size: 1.25rem; }
.admin-side .nav-link { color: rgba(255,255,255,.75); border-radius: 9px; padding: .5rem .75rem; font-weight: 600; display: flex; gap: .6rem; align-items: center; font-size: .93rem; }
.admin-side .nav-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.admin-side .nav-link.active { background: var(--ch-600); color: #fff; box-shadow: 0 6px 16px -6px rgba(47,111,192,.8); }
.admin-side .nav-section { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ch-300); opacity: .7; margin: 1.1rem .75rem .35rem; font-weight: 700; }
.admin-side .count { margin-inline-start: auto; background: var(--terracotta); color: #fff; font-size: .7rem; border-radius: 99px; padding: 0 .45rem; }
.admin-main { padding: 1.5rem 2rem 3rem; min-width: 0; }
.admin-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; gap: 1rem; flex-wrap: wrap; }
.admin-top h1 { font-size: 1.8rem; margin: 0; }
.kpi { background: #fff; border-radius: var(--radius); padding: 1.1rem 1.2rem; border: 1px solid #dfe9f5; box-shadow: var(--shadow-sm); display: flex; gap: 1rem; align-items: center; height: 100%; }
.kpi .k-icon { width: 48px; height: 52px; border-radius: 999px 999px 8px 8px; display: grid; place-items: center; font-size: 1.3rem; color: #fff; background: var(--ch-600); flex-shrink: 0; }
.kpi .k-val { font-family: "El Messiri", serif; font-size: 1.75rem; font-weight: 700; line-height: 1; color: var(--ch-900); }
.kpi .k-lbl { font-size: .82rem; color: var(--muted); font-weight: 600; }
.kpi .k-sub { font-size: .75rem; color: var(--mint); font-weight: 700; }
.admin-mobile-bar { display: none; }
@media (max-width: 991.98px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 1050; transform: translateX(-100%); transition: transform .2s; }
  [dir="rtl"] .admin-side { inset: 0 0 0 auto; transform: translateX(100%); }
  .admin-side.open { transform: none; }
  .admin-main { padding: 1rem; }
  .admin-mobile-bar { display: flex; background: var(--ch-900); color: #fff; padding: .6rem 1rem; align-items: center; justify-content: space-between; }
}
.bar-chart .bar-row { display: grid; grid-template-columns: 150px 1fr 50px; gap: .75rem; align-items: center; padding: .3rem 0; font-size: .9rem; }
.bar-chart .track { height: 10px; background: var(--ch-100); border-radius: 99px; overflow: hidden; }
.bar-chart .fill { height: 100%; background: var(--ch-600); border-radius: 99px; }
.spark { display: flex; align-items: flex-end; gap: 4px; height: 90px; }
.spark div { flex: 1; background: var(--ch-400); border-radius: 4px 4px 0 0; min-height: 3px; position: relative; }
.spark div:hover { background: var(--ch-600); }
.perm-table td, .perm-table th { text-align: center; vertical-align: middle; }
.perm-table td:first-child, .perm-table th:first-child { text-align: start; }

/* Kleinigkeiten */
.sticky-side { position: sticky; top: 90px; }
.text-balance { text-wrap: balance; }
.fw-800 { font-weight: 800; }
.small-caps { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.min-w-0 { min-width: 0; }
.cursor-pointer { cursor: pointer; }
[dir="rtl"] .bi-arrow-right::before { transform: scaleX(-1); display: inline-block; }
.mh-navbar .nav-link { white-space: nowrap; }
@media (min-width: 1200px) and (max-width: 1399.98px) { .mh-navbar .navbar-nav .nav-link > .bi { display: none; } .mh-navbar .icon-link-nav > .bi { display: inline-block !important; } }
@media (min-width: 992px) { .row-cols-lg-7 > * { flex: 0 0 auto; width: 14.2857%; } }
.mh-navbar .btn { white-space: nowrap; }
@media (max-width: 767.98px) {
  .hero { padding: 2.5rem 0 5rem; }
  .hero-search .form-select { max-width: none !important; }
  #worldMap { height: 280px; }
  .page-head { padding: 1.6rem 0 1.9rem; }
  .listing { padding: .9rem; gap: .75rem; }
  .listing .l-icon { width: 42px; height: 42px; font-size: 1.1rem; }
}

/* =====================================================================
   Rechtstexte
   ===================================================================== */
.legal-body { font-size: 1.02rem; line-height: 1.75; color: var(--ink); }
.legal-body h2 { font-size: 1.3rem; margin: 2rem 0 .75rem; padding-bottom: .4rem; border-bottom: 2px solid var(--ch-100); scroll-margin-top: 90px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 1.1rem; margin: 1.4rem 0 .5rem; font-family: "Cairo", sans-serif; font-weight: 700; }
.legal-body ul, .legal-body ol { padding-inline-start: 1.4rem; margin-bottom: 1rem; }
.legal-body ul li::marker { color: var(--ch-500); }
.legal-body ol li::marker { color: var(--terracotta); font-weight: 700; }
.legal-body li { margin-bottom: .2rem; }
.legal-body a { text-decoration: underline; text-underline-offset: 3px; }
.legal-missing { background: #fff3cd; color: #7a5507; border: 1px dashed var(--saffron-600); border-radius: 6px; padding: 0 .35rem; font-size: .9em; font-weight: 600; }
.legal-note { display: flex; gap: .75rem; align-items: flex-start; background: var(--ch-100); border-inline-start: 4px solid var(--ch-500); border-radius: 10px; padding: .85rem 1rem; margin: 1rem 0; }
.legal-note > .bi { color: var(--ch-600); font-size: 1.2rem; }
.legal-free { background: var(--mint-100); color: #1e6650; border-radius: 12px; padding: .75rem 1rem; font-weight: 600; }
.legal-free .bi { margin-inline-end: .35rem; }
.legal-toc { background: var(--ch-50); border: 1px solid var(--ch-100); border-radius: 12px; padding: .75rem 1rem; }
.legal-toc summary { cursor: pointer; font-weight: 700; color: var(--ch-800); }
.legal-toc a { text-decoration: none; }
.legal-nav .list-group-item { border: 0; padding: .55rem 1rem; font-weight: 600; color: var(--ink); }
.legal-nav .list-group-item .bi { color: var(--ch-500); width: 1.3em; display: inline-block; }
.legal-nav .list-group-item.active { background: var(--ch-600); color: #fff; }
.legal-nav .list-group-item.active .bi { color: #fff; }
.legal-editor textarea { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88rem; line-height: 1.55; min-height: 520px; }
.legal-preview { max-height: 640px; overflow-y: auto; }
.footer-langs a { margin-inline-end: .75rem; }
.consent-box { background: var(--ch-50); border: 1px solid var(--ch-100); border-radius: 12px; padding: .9rem 1rem; }
.consent-box .form-check-label a { text-decoration: underline; }

/* =====================================================================
   Datenschutz-Popup
   ===================================================================== */
.d-contents { display: contents; }
.privacy-modal .modal-content { border: 0; border-radius: 20px; overflow: hidden; }
.privacy-modal .pm-head { background: url("../img/zellige.svg"), linear-gradient(120deg, var(--ch-900), var(--ch-600)); color: #fff; gap: 1rem; border: 0; padding: 1.1rem 1.4rem; }
.privacy-modal .pm-head .modal-title { color: #fff; }
.pm-door { width: 52px; height: 58px; flex-shrink: 0; border-radius: 999px 999px 10px 10px; background: rgba(255,255,255,.95); color: var(--ch-600); display: grid; place-items: center; font-size: 1.5rem; }
.pm-tabs .nav-link { font-weight: 700; color: var(--ch-700); }
.pm-tabs .nav-link.active { color: var(--ch-900); }
.pm-scroll { max-height: 46vh; overflow-y: auto; background: var(--ch-50); }
.pm-point { display: flex; gap: .8rem; align-items: flex-start; background: #fff; border: 1px solid #dfe9f5; border-radius: 14px; padding: .85rem 1rem; height: 100%; }
.pm-point > .bi { color: #fff; background: var(--ch-600); width: 36px; height: 40px; border-radius: 999px 999px 8px 8px; display: grid; place-items: center; flex-shrink: 0; font-size: 1.05rem; }
.pm-foot { background: #fff; border-top: 1px solid #e3ecf7; padding: 1rem 1.4rem 1.2rem; }
.pm-read-hint { color: var(--terracotta); font-weight: 600; }
.pm-read-hint.done { color: var(--mint); }
#pmChecks:disabled .consent-box { opacity: .55; }
.pm-status { background: var(--mint-100); color: #1e6650; border-radius: 12px; padding: .7rem 1rem; font-weight: 600; }
@media (max-width: 575.98px) {
  .privacy-modal .modal-content { overflow-y: auto; border-radius: 0; }
  .privacy-modal .modal-dialog-scrollable .modal-body { overflow: visible; flex: 0 0 auto; }
  .privacy-modal .pm-head { flex-wrap: wrap; padding: .8rem 1rem; gap: .6rem; }
  .privacy-modal .pm-head .small, .privacy-modal .pm-door { display: none; }
  .privacy-modal .pm-head .modal-title { font-size: 1.1rem; }
  .pm-scroll { max-height: 58vh; }
  .pm-tabs .nav-link { font-size: .85rem; padding: .4rem .6rem; }
}

/* ---------- Live-Zahlen: Mitglieder gesamt / jetzt online ---------- */
.pulse-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #22c55e; position: relative; flex: none; vertical-align: middle; }
.pulse-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #22c55e; animation: mh-pulse 1.8s ease-out infinite; }
@keyframes mh-pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pulse-dot::after { animation: none; } }
.stat-online b { display: flex; align-items: center; gap: .45rem; }
.stat-online:hover { background: rgba(255,255,255,.2); }
.live-stats { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0 1rem; }
.mh-footer .live-stat { display: inline-flex; align-items: center; gap: .55rem; padding: .55rem 1rem; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #fff; text-decoration: none; }
.mh-footer .live-stat:hover { background: rgba(255,255,255,.16); }
.live-stat .bi { color: #f2c14e; }
.live-stat b { font-family: "El Messiri", serif; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.live-stat span { font-size: .85rem; color: rgba(255,255,255,.72); }
.online-banner { display: flex; align-items: center; gap: .6rem; background: var(--mint-100); color: #1e6650; border-radius: 12px; padding: .6rem 1rem; }
.stat-pill.stat-online b span { font-size: inherit; color: inherit; }
.translate-link { display: inline-flex; align-items: center; gap: .3rem; font-size: .82rem; color: var(--ch-600); text-decoration: none; }
.translate-link:hover { text-decoration: underline; }

/* ---------- Bunte Verknüpfungen (Farbe je Rubrik) ----------
   --lc  = leuchtende Farbe (auf dunklem Grund), --lcd = kräftige Farbe (auf hellem Grund) */
.lc-sky        { --lc: #6cb6f5; --lcd: #1f78d1; }
.lc-terracotta { --lc: #f08c6c; --lcd: #c4583c; }
.lc-saffron    { --lc: #f7c64f; --lcd: #a86f00; }
.lc-mint       { --lc: #4fd1a5; --lcd: #1b8a64; }
.lc-majorelle  { --lc: #9d8cff; --lcd: #5a47d6; }
.lc-rose       { --lc: #f589b1; --lcd: #c73d73; }
.lc-teal       { --lc: #40d3d9; --lcd: #0f8b91; }
.lc-henna      { --lc: #ff7a6b; --lcd: #c1272d; }

/* Kopfzeile */
.mh-navbar .nav-link.lc { position: relative; }
.mh-navbar .nav-link.lc .bi { color: var(--lc); opacity: 1; }
.mh-navbar .nav-link.lc:hover, .mh-navbar .nav-link.lc.show { background: color-mix(in srgb, var(--lc) 20%, transparent); color: #fff; }
.mh-navbar .nav-link.lc.active { background: color-mix(in srgb, var(--lc) 26%, transparent); color: #fff; box-shadow: inset 0 -3px 0 var(--lc); }
@media (min-width: 1200px) {
  .mh-navbar .navbar-nav .nav-link.lc:not(.icon-link-nav)::after { content: ""; position: absolute; left: .7rem; right: .7rem; bottom: 3px; height: 3px; border-radius: 3px; background: var(--lc); opacity: .55; transform: scaleX(.35); transition: transform .2s, opacity .2s; border: 0; margin: 0; vertical-align: 0; }
  .mh-navbar .navbar-nav .nav-link.lc:hover::after, .mh-navbar .navbar-nav .nav-link.lc.active::after { transform: scaleX(1); opacity: 1; }
  .mh-navbar .nav-link.dropdown-toggle.lc { padding-inline-end: 1.2rem !important; }
  .mh-navbar .nav-link.dropdown-toggle.lc::before { content: ""; position: absolute; inset-inline-end: .45rem; top: 50%; margin-top: -2px; border: 4px solid transparent; border-top-color: currentColor; border-bottom: 0; }
}
.mh-navbar .icon-link-nav.lc .bi { color: var(--lc); font-size: 1.1rem; }

/* Aufklappmenüs */
.dropdown-item.lc { display: flex; align-items: center; gap: .6rem; }
.dropdown-item.lc .bi, .dropdown-item.lc .flag-emoji { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; margin: 0; border-radius: 9px; color: var(--lcd); background: color-mix(in srgb, var(--lcd) 13%, #fff); font-size: 1rem; }
.dropdown-item.lc:hover, .dropdown-item.lc:focus { background: color-mix(in srgb, var(--lcd) 9%, #fff); color: var(--lcd); }
.dropdown-item.lc:hover .bi { background: var(--lcd); color: #fff; }

/* Footer */
.mh-footer a.lc { display: inline-flex; align-items: center; gap: .5rem; }
.mh-footer a.lc::before { content: ""; width: 8px; height: 8px; border-radius: 3px; transform: rotate(45deg); background: var(--lc); flex: none; transition: transform .2s; }
.mh-footer a.lc:hover { color: var(--lc); }
.mh-footer a.lc:hover::before { transform: rotate(225deg) scale(1.2); }

/* Admin-Seitenleiste */
.admin-side .nav-link.lc .bi { color: var(--lc); }
.admin-side .nav-link.lc:hover { background: color-mix(in srgb, var(--lc) 14%, transparent); }
.admin-side .nav-link.lc.active { background: linear-gradient(90deg, var(--lcd), color-mix(in srgb, var(--lcd) 70%, var(--lc))); box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--lcd) 80%, transparent); }
.admin-side .nav-link.lc.active .bi { color: #fff; }

/* =====================================================================
   3D-Kacheln & 3D-Bogen-Symbole
   (Startseite, Fachleute-Kategorien, Forum-Kategorien, Admin-Kennzahlen)
   ===================================================================== */
.arch-tile, .kpi { --t: #3d86d6; --t-l: #7cb8f2; --t-d: #1a4f98; --t-ink: #fff; }
.arch-tile.t-navy        { --t: #1d4b8f; --t-l: #4b7fc8; --t-d: #0b2a55; }
.arch-tile.t-terracotta  { --t: #d4674a; --t-l: #f0a084; --t-d: #9c3d25; }
.arch-tile.t-saffron     { --t: #f0b02c; --t-l: #ffd97a; --t-d: #b57a05; --t-ink: #3a2600; }
.arch-tile.t-mint        { --t: #2f9e7a; --t-l: #6fd3ae; --t-d: #17664c; }

/* Die Kachel: dicke „Kalkstein“-Tür mit sichtbarer Kante, hebt sich beim Überfahren */
.arch-tile {
  --rx: 0deg; --ry: 0deg;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 62%, #eef5fd 100%);
  border: 1px solid #d5e3f3;
  box-shadow:
    inset 0 2px 0 #fff,
    inset 0 -3px 0 rgba(31, 95, 168, .06),
    0 1px 0 #dbe7f5, 0 2px 0 #d3e1f2, 0 3px 0 #cbdbef, 0 4px 0 #c3d5ec, 0 5px 0 #bbcfe9,
    0 12px 18px -6px rgba(11, 42, 85, .22),
    0 26px 36px -18px rgba(11, 42, 85, .28);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(0);
  transform-style: preserve-3d;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease, border-color .25s;
  will-change: transform;
}
.arch-tile::after { /* Lichtreflex auf dem Bogen */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 60% at var(--gx, 50%) -10%, rgba(255,255,255,.95), rgba(255,255,255,0) 55%);
  opacity: .7; transition: opacity .25s;
}
.arch-tile:hover {
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-8px);
  border-color: color-mix(in srgb, var(--t) 45%, #d5e3f3);
  box-shadow:
    inset 0 2px 0 #fff,
    0 1px 0 #dbe7f5, 0 2px 0 #d3e1f2, 0 3px 0 #cbdbef, 0 4px 0 #c3d5ec, 0 5px 0 #bbcfe9, 0 6px 0 #b3c9e6, 0 7px 0 #abc3e3,
    0 22px 30px -8px color-mix(in srgb, var(--t-d) 38%, transparent),
    0 40px 50px -24px rgba(11, 42, 85, .35);
}
.arch-tile:active { transform: perspective(900px) translateY(2px); box-shadow: inset 0 2px 0 #fff, 0 1px 0 #dbe7f5, 0 2px 0 #d3e1f2, 0 6px 10px -4px rgba(11,42,85,.25); transition-duration: .08s; }
.arch-tile h3, .arch-tile p { transform: translateZ(18px); }
.arch-tile h3 { text-shadow: 0 1px 0 #fff; }

/* Das Symbol: glänzender Bogen mit Seitenkante, Glanzlicht und Schatten */
.arch-tile .arch-icon, .forum-cat .fc-icon, .kpi .k-icon {
  position: relative; color: var(--t-ink, #fff);
  background: linear-gradient(160deg, var(--t-l) 0%, var(--t) 48%, var(--t-d) 100%);
  box-shadow:
    inset 0 2px 1px rgba(255,255,255,.55),
    inset 0 -8px 12px -4px rgba(0,0,0,.22),
    inset 3px 0 6px -3px rgba(255,255,255,.35),
    0 5px 0 var(--t-d),
    0 6px 0 color-mix(in srgb, var(--t-d) 80%, #000),
    0 14px 18px -4px color-mix(in srgb, var(--t-d) 55%, transparent);
  transform: translateZ(40px);
  transition: transform .3s cubic-bezier(.2,.8,.2,1.4), box-shadow .3s;
}
.arch-tile .arch-icon::before, .forum-cat .fc-icon::before, .kpi .k-icon::before { /* Glanz oben */
  content: ""; position: absolute; left: 14%; right: 14%; top: 6%; height: 38%;
  border-radius: 999px 999px 40% 40%; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.75), rgba(255,255,255,0));
}
.arch-tile .arch-icon::after, .forum-cat .fc-icon::after, .kpi .k-icon::after { /* Bodenschatten */
  content: ""; position: absolute; left: 10%; right: 10%; bottom: -16px; height: 8px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(11,42,85,.28), transparent); pointer-events: none;
}
.arch-tile .arch-icon .bi, .forum-cat .fc-icon .bi, .kpi .k-icon .bi {
  position: relative; z-index: 1;
  filter: drop-shadow(0 2px 1px rgba(0,0,0,.28));
}
.arch-tile.t-saffron .arch-icon .bi { filter: drop-shadow(0 1px 0 rgba(255,255,255,.5)); }
.arch-tile:hover .arch-icon { transform: translateZ(60px) translateY(-6px) scale(1.06) rotate(-3deg); }
.arch-tile:hover .arch-icon::after { bottom: -22px; opacity: .7; }
.arch-tile .arch-icon { margin-bottom: 1.3rem; }

/* Forum-Kategorien & Admin-Kennzahlen: bunte 3D-Symbole, Farben reihum */
.forum-cat .fc-icon, .kpi .k-icon { --t: #3d86d6; --t-l: #7cb8f2; --t-d: #1a4f98; margin-bottom: 6px; }
.forum-cat:nth-child(6n+2) .fc-icon, .row > :nth-child(6n+2) .kpi .k-icon { --t: #d4674a; --t-l: #f0a084; --t-d: #9c3d25; }
.forum-cat:nth-child(6n+3) .fc-icon, .row > :nth-child(6n+3) .kpi .k-icon { --t: #f0b02c; --t-l: #ffd97a; --t-d: #b57a05; --t-ink: #3a2600; }
.forum-cat:nth-child(6n+4) .fc-icon, .row > :nth-child(6n+4) .kpi .k-icon { --t: #2f9e7a; --t-l: #6fd3ae; --t-d: #17664c; }
.forum-cat:nth-child(6n+5) .fc-icon, .row > :nth-child(6n+5) .kpi .k-icon { --t: #6a57e0; --t-l: #a597ff; --t-d: #3d2fa3; }
.forum-cat:nth-child(6n+6) .fc-icon, .row > :nth-child(6n+6) .kpi .k-icon { --t: #1aa3a9; --t-l: #6ddde2; --t-d: #0c6c71; }
.forum-cat:hover .fc-icon, .kpi:hover .k-icon { transform: translateY(-3px) rotate(-3deg); }
.kpi { transition: transform .2s, box-shadow .2s; }
.kpi:hover { transform: translateY(-3px); box-shadow: 0 5px 0 #d3e1f2, 0 16px 24px -10px rgba(11,42,85,.3); }

@media (prefers-reduced-motion: reduce) {
  .arch-tile, .arch-tile:hover, .arch-tile .arch-icon, .arch-tile:hover .arch-icon { transition: none; transform: none; }
}
.row > :nth-child(6n+2) .arch-tile.arch-auto { --t: #d4674a; --t-l: #f0a084; --t-d: #9c3d25; }
.row > :nth-child(6n+3) .arch-tile.arch-auto { --t: #f0b02c; --t-l: #ffd97a; --t-d: #b57a05; --t-ink: #3a2600; }
.row > :nth-child(6n+4) .arch-tile.arch-auto { --t: #2f9e7a; --t-l: #6fd3ae; --t-d: #17664c; }
.row > :nth-child(6n+5) .arch-tile.arch-auto { --t: #6a57e0; --t-l: #a597ff; --t-d: #3d2fa3; }
.row > :nth-child(6n+6) .arch-tile.arch-auto { --t: #1aa3a9; --t-l: #6ddde2; --t-d: #0c6c71; }

/* =====================================================================
   3D auch für Abschnitte, Listen-Karten, Leer-Zustände und Nachrichten
   ===================================================================== */
/* Farbtöne als wiederverwendbare Klassen (für .ico3d und Karten) */
.ico3d, .card-3d { --t: #3d86d6; --t-l: #7cb8f2; --t-d: #1a4f98; --t-ink: #fff; }
.ico3d.t-navy       { --t: #1d4b8f; --t-l: #4b7fc8; --t-d: #0b2a55; }
.ico3d.t-terracotta { --t: #d4674a; --t-l: #f0a084; --t-d: #9c3d25; }
.ico3d.t-saffron    { --t: #f0b02c; --t-l: #ffd97a; --t-d: #b57a05; --t-ink: #3a2600; }
.ico3d.t-mint       { --t: #2f9e7a; --t-l: #6fd3ae; --t-d: #17664c; }
.ico3d.t-majorelle  { --t: #6a57e0; --t-l: #a597ff; --t-d: #3d2fa3; }
.ico3d.t-rose       { --t: #d9487f; --t-l: #f79bbd; --t-d: #98224f; }
.ico3d.t-teal       { --t: #1aa3a9; --t-l: #6ddde2; --t-d: #0c6c71; }

/* 3D-Bogen-Symbol (klein: Abschnittstitel, groß: Leer-Zustände) */
.ico3d {
  position: relative; display: inline-grid; place-items: center; flex: none; vertical-align: middle;
  width: 42px; height: 46px; font-size: 1.15rem; color: var(--t-ink);
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(160deg, var(--t-l) 0%, var(--t) 48%, var(--t-d) 100%);
  box-shadow:
    inset 0 2px 1px rgba(255,255,255,.55), inset 0 -7px 10px -4px rgba(0,0,0,.22), inset 3px 0 6px -3px rgba(255,255,255,.35),
    0 4px 0 var(--t-d), 0 5px 0 color-mix(in srgb, var(--t-d) 80%, #000),
    0 11px 14px -4px color-mix(in srgb, var(--t-d) 55%, transparent);
  margin-inline-end: .55rem; margin-bottom: 5px;
  transition: transform .3s cubic-bezier(.2,.8,.2,1.4);
}
.ico3d::before { content: ""; position: absolute; left: 14%; right: 14%; top: 6%; height: 38%; border-radius: 999px 999px 40% 40%; background: linear-gradient(180deg, rgba(255,255,255,.75), rgba(255,255,255,0)); pointer-events: none; }
.ico3d .bi { position: relative; z-index: 1; filter: drop-shadow(0 2px 1px rgba(0,0,0,.28)); }
.ico3d.t-saffron .bi { filter: drop-shadow(0 1px 0 rgba(255,255,255,.5)); }
.ico3d-lg { width: 76px; height: 84px; font-size: 2rem; margin: 0 auto 1.1rem; border-radius: 999px 999px 12px 12px;
  box-shadow: inset 0 3px 1px rgba(255,255,255,.55), inset 0 -10px 14px -4px rgba(0,0,0,.22), inset 4px 0 8px -3px rgba(255,255,255,.35),
    0 6px 0 var(--t-d), 0 7px 0 color-mix(in srgb, var(--t-d) 80%, #000), 0 18px 22px -6px color-mix(in srgb, var(--t-d) 50%, transparent); }
.section-title h2 { display: flex; align-items: center; }
.section-title:hover .ico3d, .empty-state:hover .ico3d { transform: translateY(-3px) rotate(-4deg); }

/* Leer-Zustand: Symbol schwebt über einem weichen Bodenschatten */
.empty-state { padding: 2.6rem 1rem 2.2rem; }
.empty-state .ico3d-lg { display: grid; animation: ico-float 4s ease-in-out infinite; }
.empty-state .ico3d-lg::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: -22px; height: 10px; border-radius: 50%; background: radial-gradient(closest-side, rgba(11,42,85,.25), transparent); }
.empty-state p { font-weight: 600; color: #5d6f88; margin: 0; }
@keyframes ico-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* 3D-Karte: helle Oberkante, sichtbare Kante unten, tiefer Schatten */
.card-3d {
  border: 1px solid #d5e3f3; border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0%, #fafcff 70%, #f3f8fe 100%);
  box-shadow:
    inset 0 2px 0 #fff,
    0 1px 0 #dbe7f5, 0 2px 0 #d3e1f2, 0 3px 0 #cbdbef, 0 4px 0 #c3d5ec, 0 5px 0 #bbcfe9,
    0 14px 20px -8px rgba(11, 42, 85, .2), 0 28px 38px -20px rgba(11, 42, 85, .26);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s;
}
.card-3d .listing { transition: background .2s, transform .2s; border-radius: 12px; }
.card-3d .listing:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 3px 0 #dbe7f5, 0 10px 16px -10px rgba(11,42,85,.3); position: relative; z-index: 1; }
.card-3d .listing + .listing { border-top-color: #e6eef8; }

/* Symbole in den Listen (Transport) und Datums-Kärtchen (Veranstaltungen) ebenfalls plastisch */
.card-3d .l-icon, .listing .l-icon {
  background: linear-gradient(160deg, #eaf4ff, #cfe3fa); color: var(--ch-600);
  box-shadow: inset 0 2px 0 #fff, inset 0 -4px 6px -3px rgba(31,95,168,.25), 0 3px 0 #b7cfec, 0 8px 12px -6px rgba(31,95,168,.4);
}
.listing .l-icon.request { background: linear-gradient(160deg, #fdeee8, #f6cfc1); color: var(--terracotta); box-shadow: inset 0 2px 0 #fff, inset 0 -4px 6px -3px rgba(196,88,60,.25), 0 3px 0 #e7b3a2, 0 8px 12px -6px rgba(196,88,60,.4); }
.date-badge { box-shadow: 0 3px 0 #d3e1f2, 0 4px 0 #c3d5ec, 0 10px 14px -6px rgba(11,42,85,.3); border-color: #d5e3f3; }
.date-badge .m { background: linear-gradient(180deg, #e27f63, var(--terracotta)); box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }
.date-badge .d { background: linear-gradient(180deg, #fff, #f1f6fd); text-shadow: 0 1px 0 #fff; }

/* Nachrichten-Karten: anheben + neigen, Emoji als glänzende 3D-Plakette */
.card-tilt { --rx: 0deg; --ry: 0deg; transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; }
.card-3d.card-tilt:hover {
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-8px);
  box-shadow: inset 0 2px 0 #fff, 0 1px 0 #dbe7f5, 0 2px 0 #d3e1f2, 0 3px 0 #cbdbef, 0 4px 0 #c3d5ec, 0 5px 0 #bbcfe9, 0 6px 0 #b3c9e6, 0 7px 0 #abc3e3,
    0 24px 30px -10px rgba(11,42,85,.3), 0 42px 50px -26px rgba(11,42,85,.35);
}
.news-card .news-visual { position: relative; overflow: hidden; box-shadow: inset 0 -10px 18px -10px rgba(0,0,0,.35), inset 0 2px 0 rgba(255,255,255,.25); }
.news-card .news-visual::after { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 70% at 30% 0%, rgba(255,255,255,.35), transparent 60%); pointer-events: none; }
.news-card .news-emoji {
  position: relative; z-index: 1; display: grid; place-items: center; width: 74px; height: 74px; font-size: 2.2rem; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.55), rgba(255,255,255,.15) 45%, rgba(255,255,255,.06) 70%);
  border: 1px solid rgba(255,255,255,.45);
  box-shadow: inset 0 -6px 12px rgba(0,0,0,.18), inset 0 3px 4px rgba(255,255,255,.45), 0 10px 18px -6px rgba(0,0,0,.45);
  backdrop-filter: blur(2px);
  transform: translateZ(40px); transition: transform .35s cubic-bezier(.2,.8,.2,1.4);
  filter: drop-shadow(0 3px 2px rgba(0,0,0,.2));
}
.news-card:hover .news-emoji { transform: translateZ(60px) translateY(-4px) scale(1.08) rotate(-6deg); }
.news-card .card-body { transform: translateZ(14px); }

@media (prefers-reduced-motion: reduce) {
  .empty-state .ico3d-lg { animation: none; }
  .card-tilt, .card-3d.card-tilt:hover, .news-card .news-emoji { transform: none !important; }
}
.empty-state .ico3d .bi { color: inherit; display: inline; margin: 0; font-size: inherit; }
.world-card.card-3d { overflow: hidden; }
.section-title > div > .kicker + h2 { margin-top: .15rem; }
