/* =====================================================================
   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 */
  --font-ar-display: "Noto Kufi Arabic", "Cairo", "Tahoma", sans-serif;
  --font-ar-body: "Noto Naskh Arabic", "Amiri", "Times New Roman", serif;
  --font-ar-ui: "IBM Plex Sans Arabic", "Noto Kufi Arabic", "Tahoma", sans-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"] { --font-display: var(--font-ar-display); --font-body: var(--font-ar-body); --font-ui: var(--font-ar-ui); }
html[lang="en"] { --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: 16px; 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"] { 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: 60px; height: 60px; 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: 72px; width: auto; }
.brand-text { text-align: start; }
.brand-name { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem, 3.5vw, 2.5rem); 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 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 a.active, .nav-list 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 { border-radius: var(--radius-lg); width: 100%; max-height: 580px; object-fit: cover; 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: 15.5px; }
  .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: 52px; }
  .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; }
.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; } }

/* ---------- 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 { display: flex; gap: .75rem; align-items: flex-start; padding: .55rem .6rem; border-radius: 10px; transition: background .15s; }
.mega-list a:hover, .mega-list a.active { background: var(--accent-soft); }
.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, .mega-list a.active .mega-icon { background: var(--accent); color: #fff; }
.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; }
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 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; }
.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; }
}
