/* =====================================================================
   News-Portal, öffentliches Stylesheet
   Astra: Design-Tokens stehen ganz oben (siehe ASTRA-CHECKPOINTS.md).
   RTL ist der Standard (Arabisch), alle Abstände nutzen logische Eigenschaften.
   ===================================================================== */

:root {
  /* Farben */
  --paper: #f9f6ee;
  --paper-2: #eef0e6;
  --surface: #ffffff;
  --ink: #12211a;
  --ink-2: #45524a;
  --ink-3: #82908a;
  --line: #dfe2d3;
  --accent: #14703f;
  --accent-2: #0d4e2c;
  --accent-soft: #e2f0e6;
  --gold: #c9a24a;
  /* Form */
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 12px 32px rgba(18, 33, 26, 0.10);
  --shadow-sm: 0 2px 8px rgba(18, 33, 26, 0.07);
  /* Schrift */
  /* Traditional Arabic ist eine Windows-Systemschrift (nicht als Webschrift lizenziert); Amiri ist der nächste freie Ersatz */
  --font-ar-display: "Traditional Arabic", "Amiri", "Times New Roman", serif;
  --font-ar-body: "Traditional Arabic", "Amiri", "Times New Roman", serif;
  --font-ar-ui: "Traditional Arabic", "Amiri", "Times New Roman", serif;
  --font-en-display: "Source Serif 4", Georgia, serif;
  --font-en-body: "Source Serif 4", Georgia, serif;
  --font-en-ui: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 72ch;
}
html[lang="ar"], html[lang="ur"] { --font-display: var(--font-ar-display); --font-body: var(--font-ar-body); --font-ui: var(--font-ar-ui); font-size: 118.75%; }
html[lang="en"], html[lang="tr"], html[lang="fr"] { --font-display: var(--font-en-display); --font-body: var(--font-en-body); --font-ui: var(--font-en-ui); }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-ui); font-size: 1rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.container { width: min(100% - 2rem, 1200px); margin-inline: auto; }
.skip-link { position: absolute; inset-inline-start: 1rem; top: -4rem; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 1rem; }
[lang="en"], [lang="tr"], [lang="fr"] { font-family: var(--font-en-ui); }

/* ---------- Kopf ---------- */
.topbar { background: var(--ink); color: rgba(255,255,255,.85); font-size: .85rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 1rem; }
.topbar-actions { display: flex; align-items: center; gap: .9rem; }
.topbar-link { opacity: .85; }
.topbar-link:hover { opacity: 1; text-decoration: underline; }
.lang-switch { border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: .2rem .75rem; font-weight: 600; transition: background .2s; }
.lang-switch:hover { background: rgba(255,255,255,.12); }
.masthead { padding: 1.7rem 0 1.1rem; text-align: center; }
.brand { display: inline-flex; align-items: center; gap: 1rem; }
.brand-mark { width: 84px; height: 84px; border-radius: 16px; background: var(--accent); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.brand-logo { max-height: 150px; width: auto; }
.brand-text { text-align: start; }
.brand-calligraphy { display: block; width: min(620px, 68vw); height: auto; }
/* Arabischer Kopf über die ganze Inhaltsbreite (Datum bis Sprachwahl). Logo-Höhe = Schriftzug (Seitenverhältnis 7,28) plus Mottozeile */
.masthead:has(.brand-wide) { padding-block: .7rem; }
.brand-wide { display: flex; width: 100%; gap: 1.5rem; }
.brand-wide .brand-text { flex: 1; min-width: 0; }
.brand-wide .brand-calligraphy { width: 100%; }
.brand-wide .brand-logo { height: calc((min(100vw - 2rem, 1200px) + 224px) / 8.28); max-height: none; width: auto; }
.brand-name { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.15; letter-spacing: -0.01em; }
.brand-tagline { display: block; color: var(--ink-2); font-size: .95rem; margin-top: .2rem; }
.mainnav { position: sticky; top: 0; z-index: 30; background: rgba(249, 246, 238, .94); border-block: 1px solid var(--line); backdrop-filter: blur(10px); }
.mainnav-inner { display: flex; align-items: center; gap: 1rem; min-height: 56px; }
.nav-list { display: flex; gap: .15rem; list-style: none; margin: 0; padding: 0; overflow-x: auto; flex: 1; scrollbar-width: none; }
.nav-list::-webkit-scrollbar { display: none; }
.nav-list > li > a { display: block; padding: .95rem .9rem; font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent; transition: color .2s, border-color .2s; }
.nav-list > li > a.active, .nav-list > li > a:hover { border-color: var(--accent); color: var(--accent-2); }
.nav-search { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding-inline-start: .9rem; background: var(--surface); flex-shrink: 0; }
.nav-search input { border: 0; outline: 0; background: transparent; font: inherit; width: 170px; padding: .5rem 0; color: var(--ink); }
.nav-search button { border: 0; background: transparent; width: 42px; height: 42px; display: grid; place-items: center; cursor: pointer; color: var(--ink-2); border-radius: 50%; }
.nav-search button:hover { color: var(--accent); }

/* ---------- Aufmacher ---------- */
.hero-section { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1.6rem; margin-block: 1.6rem 2.6rem; }
.hero-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink); color: #fff; min-height: 470px; display: grid; box-shadow: var(--shadow); }
.hero-media, .hero-body { grid-area: 1 / 1; }
.hero-media { display: block; }
.hero-media .cover-img, .hero-media .cover-placeholder { width: 100%; height: 100%; min-height: 470px; object-fit: cover; transition: transform .6s ease; }
.hero-card:hover .hero-media .cover-img { transform: scale(1.03); }
.hero-body { align-self: end; padding: 2.2rem; background: linear-gradient(to top, rgba(10, 12, 16, .94) 0%, rgba(10, 12, 16, .6) 55%, rgba(10, 12, 16, 0) 100%); position: relative; }
.hero-kicker { display: flex; align-items: center; gap: .7rem; }
.kicker-label { font-size: .78rem; font-weight: 700; letter-spacing: .06em; color: var(--gold); text-transform: uppercase; }
.hero-body .chip { background: rgba(255,255,255,.14); color: #fff; }
.hero-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.25; margin: .6rem 0; }
.hero-excerpt { color: rgba(255,255,255,.85); max-width: 62ch; font-family: var(--font-body); font-size: 1.08rem; line-height: 1.7; margin: 0 0 1rem; }
.hero-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.hero-foot .post-meta { color: rgba(255,255,255,.7); }
.hero-cta { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: #fff; border-bottom: 2px solid var(--gold); padding-bottom: .1rem; }
html[dir="rtl"] .hero-cta svg, html[dir="rtl"] .footer-more::after { transform: scaleX(-1); }
.hero-side { display: grid; gap: 1rem; align-content: start; }

/* ---------- Karten ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.4rem; }
.card-grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; display: block; background: var(--paper-2); }
.card-media .cover-img, .card-media .cover-placeholder, .row-media .cover-img, .row-media .cover-placeholder { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1rem 1.15rem 1.25rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.card-title { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; line-height: 1.4; margin: 0; }
.card-title a:hover, .row-title a:hover, .mini-title a:hover { color: var(--accent-2); }
.card-excerpt { color: var(--ink-2); font-family: var(--font-body); font-size: 1rem; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.card-body .post-meta { margin-top: auto; padding-top: .4rem; }
.chip { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--accent-2); background: var(--accent-soft); padding: .15rem .65rem; border-radius: 999px; line-height: 1.6; width: fit-content; }
.chip:hover { background: var(--accent); color: #fff; }
.post-meta { color: var(--ink-3); font-size: .85rem; display: flex; gap: .45rem; align-items: center; flex-wrap: wrap; }
.row-card { display: grid; grid-template-columns: 128px 1fr; gap: .95rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem; }
.row-media { aspect-ratio: 4 / 3; border-radius: 9px; overflow: hidden; display: block; background: var(--paper-2); }
.row-body { display: flex; flex-direction: column; gap: .3rem; }
.row-title { font-family: var(--font-display); font-weight: 700; font-size: 1rem; line-height: 1.45; margin: 0; }
.mini-list { display: grid; }
.mini-card { display: flex; gap: .9rem; padding: .85rem 0; border-top: 1px solid var(--line); align-items: flex-start; }
.mini-card:first-child { border-top: 0; padding-top: .2rem; }
.mini-index { font-family: var(--font-en-display); font-weight: 800; font-size: 1.7rem; line-height: 1; color: var(--accent); min-width: 1.4ch; opacity: .85; }
.mini-title { font-family: var(--font-display); font-weight: 700; font-size: .98rem; line-height: 1.45; margin: 0 0 .2rem; }
.cover-placeholder { --ph-hue: 10; background: linear-gradient(135deg, hsl(var(--ph-hue) 30% 20%), hsl(calc(var(--ph-hue) + 35) 40% 36%)); position: relative; display: grid; place-items: center; overflow: hidden; }
.cover-placeholder::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 6px, transparent 6px 18px); }
.cover-placeholder-mark { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.5rem, 8vw, 5rem); color: rgba(255,255,255,.55); position: relative; }

/* ---------- Startseite ---------- */
.home-grid { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(280px, 1fr); gap: 2.6rem; margin-bottom: 3rem; align-items: start; }
.section-title { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; display: flex; align-items: center; gap: 1rem; margin: 0 0 1.3rem; }
.section-title::after { content: ""; flex: 1; height: 2px; background: var(--line); }
.section-title span { border-inline-start: 4px solid var(--accent); padding-inline-start: .65rem; line-height: 1.2; }
.aside-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.4rem; }
.aside-title { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; margin: 0 0 .7rem; padding-bottom: .5rem; border-bottom: 2px solid var(--accent); width: fit-content; }
.section-list { list-style: none; margin: 0; padding: 0; }
.section-list a { display: flex; justify-content: space-between; padding: .6rem 0; border-top: 1px solid var(--line); font-weight: 600; }
.section-list li:first-child a { border-top: 0; }
.section-list a:hover { color: var(--accent-2); }
.count { color: var(--ink-3); font-weight: 500; font-family: var(--font-en-ui); }
.aside-about p { color: var(--ink-2); margin: 0 0 .6rem; }
.aside-more, .footer-more { font-weight: 700; color: var(--accent-2); }
.home-widget { margin-top: 2.6rem; }
.widget-more { margin: 1rem 0 0; font-weight: 700; }
.widget-more a { color: var(--accent-2); }
html[dir="ltr"] .widget-more a { unicode-bidi: plaintext; }
.empty-state { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 2.5rem; text-align: center; color: var(--ink-2); }

/* ---------- Artikel ---------- */
.article-header { max-width: 840px; margin-inline: auto; padding-top: 2.2rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.article-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.9rem); line-height: 1.25; margin: .4rem 0; }
.article-lede { font-family: var(--font-body); font-size: 1.2rem; line-height: 1.75; color: var(--ink-2); margin: 0; max-width: 64ch; }
.article-meta { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; justify-content: center; color: var(--ink-3); font-size: .9rem; margin-top: .5rem; }
.article-author { font-weight: 600; color: var(--ink-2); }
.article-cover { max-width: 1020px; margin: 1.7rem auto; }
.article-cover .cover-img { display: block; margin-inline: auto; border-radius: var(--radius-lg); width: auto; max-width: 100%; height: auto; max-height: 85vh; object-fit: contain; box-shadow: var(--shadow); }
.article-cover figcaption { text-align: center; color: var(--ink-3); font-size: .85rem; margin-top: .6rem; }
.article-main { max-width: 760px; margin-inline: auto; padding-top: 1rem; }
.prose { font-family: var(--font-body); font-size: 1.2rem; line-height: 1.9; overflow-wrap: anywhere; }
.prose p { margin: 0 0 1.2em; }
.prose h2, .prose h3, .prose h4 { font-family: var(--font-display); line-height: 1.35; margin: 1.6em 0 .6em; }
.prose h2 { font-size: 1.55rem; } .prose h3 { font-size: 1.3rem; } .prose h4 { font-size: 1.1rem; }
.prose img { border-radius: var(--radius); margin: 1.6rem auto; }
.prose figure { margin: 1.6rem 0; } .prose figure img { margin: 0; }
.prose figcaption { font-size: .85rem; color: var(--ink-3); text-align: center; margin-top: .5rem; font-family: var(--font-ui); }
.prose blockquote { border-inline-start: 4px solid var(--accent); padding: .3rem 1.2rem; margin: 1.6rem 0; color: var(--ink-2); font-size: 1.15em; background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; }
html[dir="rtl"] .prose blockquote { border-radius: var(--radius) 0 0 var(--radius); }
.prose ul, .prose ol { padding-inline-start: 1.6rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: .35em; }
.prose a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); margin: 1.6rem 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; font-family: var(--font-ui); margin: 1.4rem 0; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: .5rem .7rem; text-align: start; }
.prose-ar { font-family: var(--font-ar-body); }
.notice { background: var(--paper-2); border: 1px solid var(--line); padding: .8rem 1rem; border-radius: 8px; color: var(--ink-2); font-size: .95rem; }
.preview-banner { background: var(--gold); color: var(--ink); font-weight: 700; text-align: center; padding: .6rem; border-radius: 0 0 var(--radius) var(--radius); margin: 0; }
.share-bar { display: flex; gap: .55rem; align-items: center; padding: 1.2rem 0; border-block: 1px solid var(--line); margin-top: 2.2rem; flex-wrap: wrap; }
.share-label { font-weight: 700; margin-inline-end: .4rem; }
.share-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; color: var(--ink-2); cursor: pointer; transition: all .2s; padding: 0; }
.share-btn:hover { color: #fff; background: var(--accent); border-color: var(--accent); }
.share-btn.copied { color: #fff; background: var(--gold); border-color: var(--gold); }
.related { margin-block: 3rem 1rem; }

/* ---------- Listen und Seiten ---------- */
.list-header { padding-block: 2rem 1.4rem; border-bottom: 1px solid var(--line); margin-bottom: 1.6rem; display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.list-kicker { width: 100%; color: var(--accent); font-weight: 700; margin: 0; letter-spacing: .04em; font-size: .85rem; text-transform: uppercase; }
.list-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0; }
.list-count { color: var(--ink-3); margin: 0; font-family: var(--font-en-ui); }
.list-page { margin-bottom: 3rem; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 2.4rem; }
.page-btn { padding: .6rem 1.2rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 600; }
.page-btn:hover:not(.disabled) { border-color: var(--accent); color: var(--accent-2); }
.page-btn.disabled { opacity: .4; }
.page-info { color: var(--ink-3); font-family: var(--font-en-ui); }
.static-page { max-width: 780px; padding-block: 2rem 3rem; }
.static-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 0 0 .4rem; }
.static-updated { color: var(--ink-3); font-size: .85rem; margin: 0 0 1.5rem; }
.not-found { text-align: center; padding-block: 4rem 5rem; }
.not-found-code { font-family: var(--font-en-display); font-size: 6rem; font-weight: 800; color: var(--accent); margin: 0; line-height: 1; opacity: .9; }
.not-found h1 { font-family: var(--font-display); margin: .5rem 0; }
.btn-primary { display: inline-block; background: var(--accent); color: #fff; padding: .75rem 1.5rem; border-radius: 999px; font-weight: 700; margin-top: 1rem; }
.btn-primary:hover { background: var(--accent-2); }

/* ---------- Fuß ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.78); margin-top: 3rem; padding-top: 3.2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1fr 1.2fr; gap: 2.2rem; padding-bottom: 2.6rem; }
.footer-title { font-family: var(--font-display); font-weight: 700; font-size: .95rem; color: var(--gold); margin: 0 0 .9rem; letter-spacing: .04em; }
.footer-brandline { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: #fff; margin: 0 0 .5rem; }
.footer-about p { margin: 0 0 .8rem; line-height: 1.7; }
.footer-more { color: #fff; }
.footer-more::after { content: " ↗"; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-list a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-contact-list li { display: flex; gap: .55rem; align-items: center; }
.footer-contact-list svg { flex-shrink: 0; opacity: .7; }
.social-row { display: flex; gap: .6rem; margin-top: 1.1rem; flex-wrap: wrap; }
.social-row a { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; transition: background .2s; }
.social-row a:hover { background: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 1.2rem 0; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: rgba(255,255,255,.55); }
.footer-admin { opacity: .55; }
.footer-admin:hover { opacity: 1; }

/* ---------- Responsiv ---------- */
@media (max-width: 960px) {
  .hero-section, .home-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-side { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
@media (max-width: 640px) {
  body { font-size: .97rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .masthead { padding: 1rem 0 .6rem; }
  .brand-mark { width: 46px; height: 46px; font-size: 1.4rem; border-radius: 12px; }
  .brand-logo { max-height: 96px; }
  .brand-calligraphy { width: 58vw; }
  .brand-wide { gap: .7rem; }
  .brand-wide .brand-logo { height: 64px; }
  .brand-wide .brand-tagline { font-size: .72rem; margin-top: .1rem; }
  .nav-search input { width: 96px; }
  .hero-card, .hero-media .cover-img, .hero-media .cover-placeholder { min-height: 380px; }
  .hero-body { padding: 1.3rem; }
  .prose { font-size: 1.1rem; }
  .row-card { grid-template-columns: 100px 1fr; }
  .topbar-date { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }

/* ---------- Bereiche der Akademie (Hoher Rat, Filialen, Publikationen, ...) ---------- */
.subnav { background: var(--ink); border-top: 1px solid rgba(255,255,255,.08); }
.subnav-inner { display: flex; align-items: center; gap: .2rem; min-height: 44px; overflow-x: auto; scrollbar-width: none; }
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav-label { color: var(--gold); font-weight: 700; font-size: .8rem; letter-spacing: .04em; padding-inline-end: .8rem; white-space: nowrap; flex-shrink: 0; }
.subnav a { color: rgba(255,255,255,.82); font-size: .9rem; font-weight: 500; padding: .55rem .75rem; border-radius: 8px; white-space: nowrap; }
.subnav a:hover, .subnav a.active { background: rgba(255,255,255,.1); color: #fff; }
.section-page { padding-block: 2rem 3rem; }
.section-header { max-width: 820px; margin-bottom: 2rem; }
.section-kicker { color: var(--accent); font-weight: 700; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 .3rem; }
.section-heading { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem, 3.5vw, 2.6rem); margin: 0 0 .8rem; }
.section-intro { font-family: var(--font-body); font-size: 1.1rem; }
.section-intro p { margin: 0 0 .8em; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1.4rem; }
.person-card { text-align: center; }
.person-link { display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: 1.2rem .8rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); height: 100%; transition: transform .2s, box-shadow .2s; }
.person-link:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.ephoto { display: block; object-fit: cover; background: var(--paper-2); }
.ephoto-round { width: 128px; height: 128px; border-radius: 50%; border: 4px solid var(--surface); box-shadow: 0 0 0 2px var(--gold); }
.ephoto-book { width: 100%; aspect-ratio: 3 / 4; border-radius: 10px; object-fit: cover; }
.ephoto-logo { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; padding: 1.2rem; background: var(--surface); border-radius: 10px; }
.ephoto-wide { width: 100%; aspect-ratio: 16 / 10; }
.ephoto-empty { --ph-hue: 150; display: grid; place-items: center; background: linear-gradient(135deg, hsl(var(--ph-hue) 30% 26%), hsl(calc(var(--ph-hue) + 30) 35% 40%)); color: rgba(255,255,255,.75); font-family: var(--font-display); font-weight: 800; font-size: 2rem; }
.ephoto-round.ephoto-empty { font-size: 2.6rem; }
.person-name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; margin: .4rem 0 0; line-height: 1.4; }
.person-role { color: var(--accent-2); font-weight: 600; font-size: .92rem; margin: 0; }
.person-meta { color: var(--ink-3); font-size: .85rem; margin: 0; }
.person-excerpt { color: var(--ink-2); font-size: .88rem; line-height: 1.6; margin: .3rem 0 0; }
.person-more { margin-top: auto; padding-top: .4rem; color: var(--accent); font-weight: 700; font-size: .85rem; }
.people-leads { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.4rem; margin-bottom: 1.6rem; }
.person-lead { width: min(100%, 460px); }
.person-lead .person-link { padding: 1.8rem 1.4rem; }
.person-lead .ephoto-round { width: 176px; height: 176px; }
.person-lead .person-name { font-size: 1.35rem; }
.person-lead .person-role { font-size: 1.02rem; }
.place-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.4rem; }
.place-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.place-body { padding: 1.1rem 1.2rem 1.3rem; }
.place-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; margin: 0 0 .2rem; }
.place-country { color: var(--accent-2); font-weight: 600; margin: 0 0 .7rem; }
.place-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; color: var(--ink-2); font-size: .95rem; }
.place-list li { display: flex; gap: .5rem; align-items: flex-start; }
.place-list svg { flex-shrink: 0; margin-top: .2rem; color: var(--accent); }
.place-role-label { color: var(--ink-3); }
.pub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.4rem; }
.pub-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.pub-cover { display: block; background: var(--paper-2); }
.pub-body { padding: .9rem 1rem 1.1rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.pub-title { font-family: var(--font-display); font-weight: 700; font-size: 1rem; line-height: 1.45; margin: 0; }
.pub-author { color: var(--accent-2); font-weight: 600; font-size: .9rem; margin: 0; }
.btn-mini { display: inline-block; margin-top: auto; padding: .45rem .8rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-2); font-weight: 700; font-size: .85rem; width: fit-content; }
.btn-mini:hover { background: var(--accent); color: #fff; }
.partner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1.2rem; }
.partner-card { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.partner-logo { display: block; margin-bottom: .6rem; }
.partner-name { font-family: var(--font-display); font-weight: 700; font-size: 1rem; margin: 0 0 .2rem; }
.entry-page { padding-block: 2rem 3rem; max-width: 900px; }
.entry-back { color: var(--accent-2); font-weight: 600; display: inline-flex; gap: .3rem; align-items: center; margin-bottom: 1.2rem; }
html[dir="ltr"] .entry-back svg { transform: scaleX(-1); }
.entry-head { display: grid; grid-template-columns: auto 1fr; gap: 1.6rem; align-items: center; margin-bottom: 1.6rem; }
.entry-head .ephoto-round { width: 160px; height: 160px; }
.entry-head .ephoto-book { width: 180px; }
.entry-head .ephoto-logo, .entry-head .ephoto-wide { width: 260px; }
.entry-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 0 0 .3rem; line-height: 1.3; }
.entry-role { color: var(--accent-2); font-weight: 600; font-size: 1.05rem; margin: 0 0 .6rem; }
.entry-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; color: var(--ink-2); }
.entry-facts li { display: flex; gap: .5rem; align-items: center; }
.entry-facts svg { color: var(--accent); flex-shrink: 0; }
.entry-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin: 1.2rem 0; }
.entry-actions .btn-primary { margin-top: 0; }
.entry-actions .btn-secondary { display: inline-block; padding: .75rem 1.5rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; }
@media (max-width: 640px) { .entry-head { grid-template-columns: 1fr; text-align: center; justify-items: center; } .people-grid { grid-template-columns: repeat(2, 1fr); gap: .9rem; } .ephoto-round { width: 96px; height: 96px; } .person-lead .ephoto-round { width: 132px; height: 132px; } }

/* ---------- Navigation: Mega-Menü (Desktop) und Seitenmenü (Handy) ---------- */
.mainnav { position: sticky; top: 0; z-index: 40; }
.mainnav-inner { flex-wrap: nowrap; }
.nav-list { overflow: visible; flex-wrap: wrap; row-gap: 0; }
.nav-list > li { position: static; }
.nav-burger { display: none; align-items: center; gap: .5rem; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: .45rem .8rem; font-weight: 600; cursor: pointer; color: var(--ink); }
.nav-mega-btn { display: inline-flex; align-items: center; gap: .3rem; border: 0; background: none; padding: .95rem .9rem; font: inherit; font-weight: 700; color: var(--accent-2); cursor: pointer; border-bottom: 3px solid transparent; }
.nav-mega-btn svg { transition: transform .2s; }
.nav-mega-btn[aria-expanded="true"] { border-color: var(--accent); }
.nav-mega-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-mega-btn.active { border-color: var(--accent); }
.mega { position: absolute; inset-inline: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 24px 48px rgba(21,24,29,.14); z-index: 45; animation: mega-in .18s ease; }
@keyframes mega-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.mega-inner { width: min(100% - 2rem, 1200px); margin-inline: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 220px; gap: 2rem; padding: 1.8rem 0 2rem; }
.mega-group-title { font-family: var(--font-display); font-size: .82rem; font-weight: 700; color: var(--gold); letter-spacing: .05em; margin: 0 0 .7rem; padding-bottom: .5rem; border-bottom: 1px solid var(--line); }
.mega-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.mega-list a { position: relative; display: flex; gap: .75rem; align-items: flex-start; padding: .55rem .6rem; border-radius: 8px; transition: background .15s, color .15s; }
.mega-list a:hover { background: var(--paper-2); }
.mega-list a:hover .mega-title, .mega-list a.active .mega-title { color: var(--accent-2); }
.mega-list a.active::before { content: ""; position: absolute; inset-block: .65rem; inset-inline-start: -.5rem; width: 3px; border-radius: 2px; background: var(--gold); }
.mega-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--paper-2); color: var(--accent-2); display: grid; place-items: center; flex-shrink: 0; }
.mega-list a:hover .mega-icon { color: var(--accent); }
.mega-list a.active .mega-icon { background: transparent; box-shadow: inset 0 0 0 1px var(--gold); color: var(--accent-2); }
.mega-text { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.mega-title { font-weight: 700; line-height: 1.35; }
.mega-desc { color: var(--ink-3); font-size: .82rem; line-height: 1.4; }
.mega-aside { border-inline-start: 1px solid var(--line); padding-inline-start: 2rem; display: flex; flex-direction: column; gap: .5rem; }
.mega-aside-title { font-family: var(--font-display); font-weight: 800; font-size: 1rem; margin: 0 0 .3rem; }
.mega-aside-link { color: var(--accent-2); font-weight: 600; }
.mega-aside-link:hover { text-decoration: underline; }
.has-drop { position: relative; }
.drop { position: absolute; top: 100%; inset-inline-start: 0; min-width: 240px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px rgba(21,24,29,.14); z-index: 45; padding: .45rem; animation: mega-in .18s ease; }
.drop-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.drop-list a { display: block; padding: .6rem .8rem; border-radius: 8px; font-weight: 600; white-space: nowrap; }
.drop-list a:hover, .drop-list a.active { background: var(--accent-soft); }
body.mega-open .mainnav::after { content: ""; position: fixed; inset: 0; top: var(--mega-top, 0); background: rgba(21,24,29,.25); z-index: -1; }
/* Seitenmenü */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(21,24,29,.5); z-index: 90; backdrop-filter: blur(2px); }
.drawer { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; width: min(88vw, 380px); background: var(--surface); z-index: 100; display: flex; flex-direction: column; box-shadow: var(--shadow); animation: drawer-in .22s ease; overflow-y: auto; }
@keyframes drawer-in { from { transform: translateX(var(--drawer-x, -100%)); } to { transform: none; } }
html[dir="rtl"] .drawer { --drawer-x: 100%; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.drawer-title { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; }
.drawer-close { border: 0; background: var(--paper-2); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.drawer-search { display: flex; margin: 1rem 1.2rem .4rem; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.drawer-search input { flex: 1; border: 0; padding: .7rem .9rem; font: inherit; background: transparent; min-width: 0; }
.drawer-search button { border: 0; background: var(--accent); color: #fff; width: 46px; display: grid; place-items: center; cursor: pointer; }
.drawer-nav { padding: .4rem .6rem 2rem; display: flex; flex-direction: column; }
.drawer-group { margin: 1rem .6rem .3rem; font-size: .78rem; font-weight: 700; color: var(--gold); letter-spacing: .05em; text-transform: uppercase; }
.drawer-link { display: flex; align-items: center; gap: .7rem; padding: .7rem .7rem; border-radius: 10px; font-weight: 600; }
.drawer-link:hover, .drawer-link.active { background: var(--accent-soft); color: var(--accent-2); }
.drawer-link-icon svg { color: var(--accent); flex-shrink: 0; }
body.drawer-open { overflow: hidden; }
@media (max-width: 1100px) { .nav-list > li > a, .nav-mega-btn { padding-inline: .65rem; font-size: .95rem; } .nav-search input { width: 130px; } .mega-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); } .mega-aside { display: none; } }
@media (max-width: 960px) {
  .nav-burger { display: inline-flex; }
  .nav-list { display: none; }
  .mainnav-inner { justify-content: space-between; }
  .nav-search { display: none; }
}

/* =====================================================================
   Forum und Mitgliedsantrag
   ===================================================================== */
.topbar-actions { gap: 1rem; }
.topbar-join { color: var(--gold); font-weight: 700; opacity: 1; }
.nav-forum { display: inline-flex !important; align-items: center; gap: .35rem; }
/* Fatwa soll in der Menüleiste und auf der Fatwa-Seite sofort auffallen */
.nav-list a.nav-fatwa { display: inline-flex; align-items: center; gap: .35rem; background: var(--gold); color: var(--ink); border-radius: 999px; border-bottom: 0; padding: .45rem 1rem; margin-block: .5rem; font-weight: 700; box-shadow: var(--shadow-sm); }
.nav-list a.nav-fatwa:hover, .nav-list a.nav-fatwa.active { background: var(--ink); color: var(--gold); }
.drawer-link.drawer-fatwa { background: var(--gold); color: var(--ink); font-weight: 700; }
.drawer-link.drawer-fatwa svg { color: var(--ink); }
.ft-ask-btn { display: inline-flex; align-items: center; gap: .55rem; font-size: 1.15rem; padding: .95rem 2rem; box-shadow: 0 0 0 0 rgba(201, 162, 74, .7); animation: ft-pulse 2.4s ease-out infinite; }
.ft-ask-btn:hover { transform: translateY(-1px); background: #fff; }
@keyframes ft-pulse { 0% { box-shadow: 0 0 0 0 rgba(201, 162, 74, .7); } 70% { box-shadow: 0 0 0 14px rgba(201, 162, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(201, 162, 74, 0); } }
@media (prefers-reduced-motion: reduce) { .ft-ask-btn { animation: none; } }
.btn-outline { display: inline-block; border: 2px solid var(--accent); color: var(--accent-2); padding: .65rem 1.3rem; border-radius: 999px; font-weight: 700; }
.btn-outline:hover { background: var(--accent-soft); }
.forum-head { background: var(--ink); color: #fff; padding: 2.2rem 0 2rem; border-bottom: 4px solid var(--gold); }
.forum-crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .9rem; color: rgba(255,255,255,.7); margin-bottom: .6rem; }
.forum-crumbs a:hover { color: #fff; text-decoration: underline; }
.forum-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.forum-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.3; margin: 0; overflow-wrap: anywhere; }
.forum-intro { margin: .5rem 0 0; color: rgba(255,255,255,.8); max-width: 62ch; font-family: var(--font-body); font-size: 1.08rem; }
.forum-head .btn-primary { margin-top: 0; background: var(--gold); color: var(--ink); }
.forum-head .btn-primary:hover { background: #e0bb63; }
.forum-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2rem; padding: 2rem 0 3.5rem; align-items: start; }
.forum-boards { display: grid; gap: .9rem; }
.forum-board { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.1rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; transition: box-shadow .2s, border-color .2s; }
.forum-board:hover { box-shadow: var(--shadow); border-color: var(--accent); }
.forum-board-mark { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-2); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; }
.forum-board-title { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; }
.forum-board-desc { display: block; color: var(--ink-2); font-size: .95rem; margin-top: .15rem; }
.forum-board-stats { display: flex; flex-direction: column; align-items: flex-end; gap: .1rem; color: var(--ink-3); font-size: .85rem; white-space: nowrap; }
.forum-board-stats strong { color: var(--ink); }
.forum-flag { display: inline-block; font-family: var(--font-ui); font-size: .72rem; font-weight: 700; color: var(--ink-2); background: var(--paper-2); border-radius: 999px; padding: .05rem .55rem; }
.flag-gold { color: #6b4f12; background: #f6ecd3; }
.flag-warn { color: #8a4b00; background: #fff1d6; }
.forum-side { display: grid; gap: 1rem; position: sticky; top: 1rem; }
.forum-guest { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.forum-guest p { margin: 0 0 .8rem; color: var(--ink-2); }
.forum-guest-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.forum-guest .btn-primary { margin-top: 0; }
.forum-latest { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.forum-side-title { font-family: var(--font-display); font-size: .95rem; color: var(--gold); margin: 0 0 .6rem; }
.forum-latest ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.forum-latest li { display: grid; gap: .05rem; }
.forum-latest a { font-weight: 600; line-height: 1.45; }
.forum-latest a:hover { color: var(--accent-2); }
.forum-latest span { color: var(--ink-3); font-size: .82rem; }
.forum-back { color: var(--accent-2); font-weight: 600; }
.topic-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.topic-row { display: grid; grid-template-columns: minmax(0, 1fr) 90px 110px; gap: 1rem; align-items: center; padding: .95rem 1.2rem; border-top: 1px solid var(--line); }
.topic-row:first-child { border-top: 0; }
.topic-row.is-pinned { background: #fbf7ea; }
.topic-row.is-muted { opacity: .65; }
.topic-link { display: grid; gap: .2rem; min-width: 0; }
.topic-title { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; line-height: 1.45; }
.topic-link:hover .topic-title { color: var(--accent-2); }
.topic-meta, .topic-last { color: var(--ink-3); font-size: .85rem; }
.topic-stats { color: var(--ink-3); font-size: .85rem; text-align: center; }
.topic-stats strong { display: block; color: var(--ink); font-size: 1.05rem; }
.forum-empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 2.5rem 1rem; text-align: center; color: var(--ink-2); }
.forum-thread { max-width: 860px; padding: 2rem 0 3.5rem; display: grid; gap: 1rem; }
.forum-post { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; }
.forum-post-first { border-color: #cfd8c6; }
.forum-post.is-muted { opacity: .6; border-style: dashed; }
.forum-post-num { position: absolute; top: 1rem; inset-inline-end: 1.2rem; color: var(--ink-3); font-size: .85rem; }
.forum-author { display: flex; gap: .75rem; align-items: center; margin-bottom: .8rem; }
.forum-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-2); display: grid; place-items: center; font-weight: 800; font-family: var(--font-display); flex-shrink: 0; }
.forum-author-text { display: grid; gap: .1rem; }
.forum-author-name { font-weight: 700; }
.forum-author-meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; color: var(--ink-3); font-size: .82rem; }
.role-tag { font-size: .72rem; font-weight: 700; border-radius: 999px; padding: .05rem .55rem; background: var(--rc-bg); color: var(--rc-ink); }
.role-green { --rc-ink: #1f7a3d; --rc-bg: #e3f4e8; } .role-gold { --rc-ink: #7a5c10; --rc-bg: #f6ecd3; } .role-blue { --rc-ink: #1d4f91; --rc-bg: #e3edf9; }
.role-purple { --rc-ink: #5b3a8c; --rc-bg: #efe7f8; } .role-red { --rc-ink: #a52a2a; --rc-bg: #fbe6e6; } .role-teal { --rc-ink: #136f6f; --rc-bg: #dff3f2; } .role-gray { --rc-ink: #4c525c; --rc-bg: #eceef1; }
.forum-text { font-family: var(--font-body); font-size: 1.08rem; line-height: 1.85; overflow-wrap: anywhere; }
.forum-text p { margin: 0 0 .9em; }
.forum-text p:last-child { margin-bottom: 0; }
.mod-bar { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: 1rem; padding-top: .8rem; border-top: 1px dashed var(--line); }
.mod-btn { border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); border-radius: 8px; padding: .3rem .7rem; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.mod-btn:hover { border-color: var(--ink-3); color: var(--ink); }
.mod-danger { color: #a52a2a; border-color: #f0c8c8; }
.forum-form { display: grid; gap: .5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; }
.forum-form input, .forum-form textarea { width: 100%; font: inherit; font-family: var(--font-body); font-size: 1.05rem; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.forum-form input:focus, .forum-form textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.forum-form textarea { resize: vertical; min-height: 7em; }
.forum-form .btn-primary { justify-self: start; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.forum-label { font-weight: 700; margin-top: .4rem; }
.forum-hint { display: block; color: var(--ink-3); font-size: .85rem; margin-top: .2rem; }
.forum-hint a { color: var(--accent-2); font-weight: 600; }
.form-error { margin: 0; background: #fbe6e6; color: #a52a2a; border-radius: 8px; padding: .7rem 1rem; font-weight: 600; }
.join-wrap { max-width: 760px; padding: 2rem 0 3.5rem; }
.join-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .2rem 1.2rem; }
.join-grid > div { display: grid; gap: .35rem; }
.join-roles { border: 0; padding: 0; margin: .6rem 0 0; display: grid; gap: .5rem; }
.join-role { display: flex; gap: .8rem; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; cursor: pointer; }
.join-role:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.join-role input { width: auto; margin-top: .3rem; accent-color: var(--accent); }
.join-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem 1.8rem; }
.join-done { text-align: center; display: grid; justify-items: center; gap: .6rem; }
.join-done-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 2rem; font-weight: 800; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 960px) {
  .forum-layout { grid-template-columns: 1fr; }
  .forum-side { position: static; }
}
@media (max-width: 640px) {
  .forum-board { grid-template-columns: auto minmax(0, 1fr); }
  .forum-board-stats { grid-column: 2; flex-direction: row; gap: .8rem; align-items: center; }
  .topic-row { grid-template-columns: minmax(0, 1fr) auto; }
  .topic-last { display: none; }
  .join-grid { grid-template-columns: 1fr; }
  .forum-post { padding: 1rem; }
}

/* ---------- Akademie-Antrag ---------- */
.ac-wrap { max-width: 860px; }
.ac-form { gap: 1.2rem; }
.ac-sec { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem 1.2rem; margin: 0; min-width: 0; }
.ac-sec legend { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; padding: 0 .5rem; color: var(--accent-2); }
.ac-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem 1.2rem; }
.ac-field { display: grid; gap: .35rem; align-content: start; }
.ac-full { grid-column: 1 / -1; }
.ac-form select { width: 100%; font: inherit; font-size: 1.05rem; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.ac-choice { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.ac-choice label { display: inline-flex; gap: .45rem; align-items: center; font-weight: 600; cursor: pointer; }
.ac-choice input, .ac-agree input { width: auto; accent-color: var(--accent); }
.ac-prior-number { display: none; gap: .35rem; margin-top: .4rem; max-width: 320px; }
.ac-field:has(input[name=prior_member][value="1"]:checked) .ac-prior-number { display: grid; }
.ac-account { margin: 0; }
.ac-photos { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1.2rem; margin-bottom: 1rem; }
.ac-photo { display: grid; gap: .5rem; align-content: start; }
.ac-photo-frame { position: relative; border: 2px dashed var(--line); border-radius: 12px; background: var(--paper-2); overflow: hidden; display: grid; place-items: center; }
.ac-photo-portrait { aspect-ratio: 35 / 45; max-width: 220px; }
.ac-photo-card { aspect-ratio: 125 / 88; }
.ac-photo-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ac-photo-card img { object-fit: contain; background: #fff; }
.ac-photo-guide { width: 46%; aspect-ratio: 3 / 4; border: 2px solid rgba(20,40,29,.25); border-radius: 50% 50% 46% 46%; }
.ac-photo-card .ac-photo-guide { width: 30%; aspect-ratio: 3 / 4; border-radius: 6px; margin-inline-start: -52%; }
.has-photo .ac-photo-frame { border-style: solid; border-color: var(--accent); }
.ac-photo-btn { position: relative; justify-self: start; cursor: pointer; }
.ac-photo-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ac-sign { position: relative; border: 2px dashed var(--line); border-radius: 12px; background: #fff; }
.ac-sign canvas { display: block; width: 100%; height: auto; aspect-ratio: 600 / 180; touch-action: none; cursor: crosshair; }
.ac-sign .link-btn { position: absolute; bottom: .4rem; inset-inline-end: .6rem; background: none; border: 0; color: var(--accent-2); font-weight: 600; cursor: pointer; }
.ac-sign.is-signed { border-style: solid; border-color: var(--accent); }
.ac-sign.is-missing { border-color: #a52a2a; }
.ac-agree { display: flex; gap: .6rem; align-items: flex-start; font-weight: 600; }
.ac-privacy { margin: 0; color: var(--ink-3); font-size: .88rem; line-height: 1.6; }
.ac-cta { display: block; margin-top: 1rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--paper-2); font-weight: 700; color: var(--accent-2); }
@media (max-width: 640px) { .ac-grid, .ac-photos { grid-template-columns: 1fr; } .ac-photo-portrait { max-width: 180px; } }

/* ---------- Bibliothek „مكتبتنا“ ---------- */
.library-wrap { padding: 1.6rem 0 3.5rem; }
.library-tools { display: flex; gap: .6rem; max-width: 620px; margin-bottom: 1rem; }
.library-tools input { flex: 1; font: inherit; font-size: 1.05rem; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.library-tools .btn-primary { border: 0; cursor: pointer; font: inherit; font-weight: 700; margin: 0; }
.library-cats { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.6rem; }
.library-cats a { padding: .35rem .9rem; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; font-size: .92rem; background: var(--surface); }
.library-cats a.active, .library-cats a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 2.2rem 1.6rem; }
.shelf-book { display: flex; flex-direction: column; gap: .5rem; }
.shelf-link { display: flex; flex-direction: column; gap: .5rem; }
.shelf-link:hover .book-cover { transform: translateY(-4px) rotate(-.6deg); box-shadow: 8px 14px 26px rgba(21,24,29,.28); }
.shelf-title { font-family: var(--font-display); font-size: 1.02rem; font-weight: 700; line-height: 1.4; margin: .2rem 0 0; }
.shelf-author { margin: 0; color: var(--ink-3); font-size: .88rem; }
.shelf-actions { display: flex; gap: .4rem; margin-top: auto; }
.btn-mini { padding: .3rem .8rem; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; font-weight: 700; background: var(--surface); }
.btn-mini-solid { background: var(--accent); border-color: var(--accent); color: #fff; }
.book-cover { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 3px 8px 8px 3px; box-shadow: 4px 8px 18px rgba(21,24,29,.22), inset 6px 0 8px -6px rgba(0,0,0,.35); background: var(--paper-2); transition: transform .25s, box-shadow .25s; }
[dir=rtl] .book-cover { border-radius: 8px 3px 3px 8px; }
.book-cover-drawn { --hue: 150; display: flex; flex-direction: column; justify-content: center; gap: .8rem; padding: 1.2rem 1rem; text-align: center; color: #f6efe0;
  background: linear-gradient(90deg, hsl(var(--hue) 35% 18%) 0 7%, hsl(var(--hue) 32% 26%) 7% 100%); border: 1px solid hsl(var(--hue) 30% 16%); }
.book-cover-drawn::before, .book-cover-drawn::after { content: ""; display: block; height: 1px; margin: 0 auto; width: 55%; background: rgba(246,239,224,.45); }
.book-cover-title { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; line-height: 1.45; }
.book-cover-author { font-size: .8rem; opacity: .85; }
.book-cover-lg.book-cover-drawn .book-cover-title { font-size: 1.5rem; }
.book-page { padding: 1.6rem 0 3.5rem; }
.book-back { display: inline-block; margin-bottom: 1.2rem; color: var(--accent-2); font-weight: 700; }
.book-main { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: 2.4rem; align-items: start; }
.book-title { font-family: var(--font-display); font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.3; margin: 0; }
.book-author { color: var(--accent-2); font-weight: 700; font-size: 1.1rem; margin: .4rem 0 0; }
.book-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.4rem 0; }
.book-actions .btn-primary { margin: 0; }
.book-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem 1.2rem; margin: 0 0 1.4rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.book-facts dt { color: var(--ink-3); font-size: .82rem; }
.book-facts dd { margin: .1rem 0 0; font-weight: 700; }
.book-desc { font-size: 1.08rem; line-height: 1.9; }
.reader { background: #e9e6df; min-height: 70vh; }
.reader-bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: .6rem; padding: .6rem 1rem; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 4px 14px rgba(21,24,29,.06); }
.reader-back { font-size: 1.3rem; font-weight: 800; padding: 0 .4rem; }
.reader-title { flex: 1; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.reader-page { color: var(--ink-3); font-size: .9rem; white-space: nowrap; }
.reader-btn { min-width: 2.2rem; height: 2.2rem; padding: 0 .7rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font: inherit; font-weight: 800; cursor: pointer; display: inline-grid; place-items: center; }
.reader-dl { font-weight: 700; font-size: .88rem; }
.reader-pages { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 1.2rem 8px 3rem; overflow-x: auto; }
.reader-sheet { width: min(100%, 900px); background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.reader-sheet canvas { display: block; max-width: none; }
.reader-msg { text-align: center; padding: 2rem 1rem; color: var(--ink-2); }
@media (max-width: 640px) { .book-main { grid-template-columns: 1fr; } .book-main .book-cover { max-width: 220px; margin: 0 auto; } .shelf { grid-template-columns: repeat(2, 1fr); gap: 1.6rem 1rem; } .reader-page { display: none; } }

/* ---------- Fatwa ---------- */
.ft-wrap { padding: 1.6rem 0 3.5rem; max-width: 900px; }
.ft-ask-btn { margin: 0; border: 0; }
.ft-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.ft-item-link { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.ft-item-link:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.ft-item-mark { flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-2); font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; }
.ft-item-body { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.ft-item-title { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; line-height: 1.45; }
.ft-item-excerpt { color: var(--ink-2); line-height: 1.7; }
.ft-item-meta { color: var(--ink-3); font-size: .85rem; }
.ft-qa { display: grid; gap: 1.2rem; }
.ft-q, .ft-a { border-radius: var(--radius); padding: 1.3rem 1.5rem; }
.ft-q { background: var(--paper-2); border: 1px solid var(--line); }
.ft-a { background: var(--surface); border: 1px solid var(--line); border-inline-start: 4px solid var(--accent); }
.ft-label { font-family: var(--font-display); font-size: .95rem; font-weight: 800; color: var(--accent-2); margin: 0 0 .6rem; }
.ft-text { font-size: 1.1rem; line-height: 2; }
.ft-text p { margin: 0 0 .8em; }
.ft-sign { margin: .8rem 0 0; color: var(--ink-3); font-size: .92rem; }
.ft-related { margin-top: 1.6rem; padding: 1.1rem 1.3rem; border: 1px dashed var(--line); border-radius: var(--radius); }
.ft-related ul, .ft-mine ul { margin: 0; padding-inline-start: 1.2rem; display: grid; gap: .4rem; }
.ft-related a, .ft-mine a { color: var(--accent-2); font-weight: 600; }
.ft-cta { margin-top: 1.6rem; }
.ft-similar { border: 1px solid var(--accent); background: var(--accent-soft); border-radius: 12px; padding: .9rem 1.1rem; }
.ft-similar-title { margin: 0; font-weight: 800; color: var(--accent-2); }
.ft-similar ul { margin: .5rem 0 0; padding-inline-start: 1.2rem; display: grid; gap: .35rem; }
.ft-similar a { font-weight: 600; text-decoration: underline; }
.ft-mine { margin-top: 1.6rem; }
.ft-status { display: inline-block; padding: .15rem .7rem; border-radius: 999px; font-size: .85rem; font-weight: 700; background: var(--paper-2); }
.ft-status-pending { background: #fdf3d7; color: #8a6200; }
.ft-status-published, .ft-status-answered { background: #e3f3e8; color: #1d6b3a; }
.ft-status-duplicate { background: #e6eefb; color: #1f4f9a; }
.ft-status-rejected { background: #fbe6e6; color: #a52a2a; }
.ft-status-line { display: flex; gap: .8rem; align-items: center; margin: 0 0 1rem; }
.ft-note { padding: 1rem 1.2rem; border-radius: 12px; background: var(--paper-2); }
.ft-dup { margin-bottom: 1.2rem; padding: 1.1rem 1.3rem; border-radius: var(--radius); background: #e6eefb; }
.ft-dup p { margin: 0 0 .5rem; font-weight: 700; }
.ft-dup-link { display: inline-block; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: #1f4f9a; text-decoration: underline; }
.ft-reopen { margin-top: 1rem; }
.ft-keep { margin-top: 1.6rem; color: var(--ink-3); font-size: .9rem; }
.ft-keep code { display: inline-block; margin-top: .3rem; padding: .3rem .6rem; background: var(--paper-2); border-radius: 6px; word-break: break-all; }

/* ---------- Übersetzung ---------- */
.tl-box { margin: 1rem 0 1.2rem; }
.tl-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .5rem; font-size: .92rem; }
.tl-label { color: var(--ink-3); font-weight: 600; }
.tl-bar a { padding: .25rem .75rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 600; }
.tl-bar a:hover, .tl-bar a.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-2); }
.tl-bar a.tl-orig { border-style: dashed; }
.tl-note { margin: .6rem 0 0; padding: .55rem .9rem; border-radius: 10px; background: var(--paper-2); color: var(--ink-2); font-size: .88rem; }
.tl-pending { background: #fdf3d7; color: #8a6200; }
.tl-pending::before { content: ""; display: inline-block; width: .8em; height: .8em; margin-inline-end: .5em; border: 2px solid currentColor; border-inline-end-color: transparent; border-radius: 50%; vertical-align: -.1em; animation: tl-spin .8s linear infinite; }
.tl-failed { background: #fbe6e6; color: #a52a2a; }
.tl-failed::before { display: none; }
@keyframes tl-spin { to { transform: rotate(360deg); } }
/* Urdu nutzt die arabischen Schriften; nur Fließtext bekommt mehr Zeilenabstand, Menüs und Knöpfe nicht */
[lang="ur"]:not(html) { font-family: var(--font-ar-body); }
.prose[lang="ur"], [lang="ur"] .prose, [lang="ur"] .ft-text, [lang="ur"] .forum-text, [lang="ur"] .page-intro { line-height: 2; }

/* ---------- Nachrichtenband ---------- */
.ticker { background: var(--surface); border-bottom: 1px solid var(--line); }
.ticker-inner { display: flex; align-items: center; gap: .9rem; min-height: 46px; }
.ticker-label { flex: none; display: inline-flex; align-items: center; gap: .5rem; background: var(--accent); color: #fff; font-weight: 700; font-size: .85rem; padding: .3rem .85rem; border-radius: 999px; }
.live-dot { flex: none; width: .55rem; height: .55rem; border-radius: 50%; background: #ff5a4f; animation: live-pulse 1.6s ease-out infinite; }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 90, 79, .55); } 70% { box-shadow: 0 0 0 .5rem rgba(255, 90, 79, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 90, 79, 0); } }
.ticker-viewport { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.ticker-track { display: flex; width: max-content; margin: 0; padding: 0; list-style: none; white-space: nowrap; }
.ticker-track li { padding-inline-end: 2.4rem; font-weight: 600; font-size: .95rem; }
.ticker-track li::before { content: "•"; color: var(--gold); margin-inline-end: .9rem; }
.ticker-track a:hover { text-decoration: underline; }
.ticker-hot a, .ticker-hot span { color: #a52a2a; }
/* läuft erst, wenn site.js die Einträge verdoppelt hat (nahtlose Schleife); Arabisch/Urdu laufen nach rechts */
.ticker.is-running .ticker-track { animation: ticker-move var(--ticker-dur, 40s) linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
@keyframes ticker-move { from { transform: translateX(0); } to { transform: translateX(var(--ticker-shift, -50%)); } }
html[dir="rtl"] .ticker-track { --ticker-shift: 50%; }
@media (prefers-reduced-motion: reduce) {
  .ticker.is-running .ticker-track, .live-dot { animation: none; }
  .ticker-viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}
@media (max-width: 640px) { .ticker-label { font-size: .78rem; padding: .25rem .65rem; } .ticker-track li { font-size: .88rem; } }

/* ---------- Die Akademie in Zahlen ---------- */
/* Am Computer oben in der Seitenleiste, am Handy (Seitenleiste unter dem Inhalt) ganz unten */
.stats-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; margin-bottom: .2rem; }
.stats-head .aside-title { margin-bottom: .7rem; }
.live-badge { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .78rem; color: #a52a2a; background: #fbe6e6; padding: .2rem .65rem; border-radius: 999px; margin-bottom: .7rem; }
.stats-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.stat-tile { background: var(--paper); border-radius: 10px; padding: .75rem .85rem; display: flex; flex-direction: column; gap: .1rem; }
.stat-num { font-family: var(--font-display); font-size: 1.65rem; font-weight: 800; line-height: 1.15; color: var(--accent-2); font-variant-numeric: tabular-nums; }
.stat-label { color: var(--ink-2); font-weight: 600; font-size: .82rem; line-height: 1.35; }
/* Mitgliederzahl als ruhig leuchtende Hauptkachel */
.stat-tile.stat-members { grid-column: 1 / -1; position: relative; overflow: hidden; align-items: center; text-align: center; padding: 1.2rem 1rem 1.05rem; background: radial-gradient(120% 140% at 50% 0%, #1d6b45 0%, var(--accent-2) 55%, #0a3a21 100%); border: 1px solid rgba(201, 162, 74, .55); border-radius: 14px; animation: stat-glow 5s ease-in-out infinite; }
.stat-tile.stat-members::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 30%, rgba(201, 162, 74, .22), transparent 70%); pointer-events: none; }
.stat-members .stat-num { position: relative; color: #f3d98f; font-size: 2.6rem; text-shadow: 0 0 18px rgba(232, 196, 104, .55), 0 0 2px rgba(255, 236, 180, .6); }
.stat-members .stat-label { position: relative; color: #efe6cf; font-size: .95rem; }
@keyframes stat-glow { 0%, 100% { box-shadow: 0 4px 14px rgba(13, 78, 44, .25), 0 0 0 0 rgba(201, 162, 74, 0); } 50% { box-shadow: 0 6px 22px rgba(13, 78, 44, .35), 0 0 22px 2px rgba(201, 162, 74, .38); } }
@media (prefers-reduced-motion: reduce) { .stat-tile.stat-members { animation: none; box-shadow: 0 0 18px 1px rgba(201, 162, 74, .3); } }
@media (max-width: 960px) {
  .home-aside { display: flex; flex-direction: column; }
  .aside-stats { order: 99; }
  .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) { .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Sprachwahl ---------- */
.lang-menu { position: relative; }
.lang-menu > summary { list-style: none; cursor: pointer; }
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-list { position: absolute; inset-inline-end: 0; top: calc(100% + .45rem); z-index: 70; min-width: 9.5rem; margin: 0; padding: .35rem; list-style: none; background: var(--surface); color: var(--ink); border-radius: 12px; box-shadow: var(--shadow); }
.lang-list a { display: block; padding: .45rem .85rem; border-radius: 8px; font-weight: 600; }
.lang-list a:hover, .lang-list a:focus-visible { background: var(--paper-2); }
.lang-list a.active { background: var(--accent-soft); color: var(--accent-2); }
.drawer-langs { display: flex; flex-wrap: wrap; gap: .5rem; padding: .3rem .6rem 1rem; }
.drawer-lang { border: 1px solid var(--line); border-radius: 999px; padding: .4rem .9rem; font-weight: 600; }
.drawer-lang.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.ac-check-mail { background: #fff7e0; border: 1px solid #e9d18a; border-radius: 10px; padding: .7rem .9rem; font-weight: 600; }

/* Einladung: feste Rolle oben im Formular */
.inv-role { display: inline-block; margin: 0 0 1rem; padding: .45rem 1.1rem; border-radius: 12px; background: #f8f1df; border: 1px solid #e8d29a; color: var(--accent); font-weight: 700; font-size: 1.15rem; }
