/* ============================================================
   Ulu Camii Rheine — Webseite
   Palette:
     --bg:        warm Cremeweiß
     --surface:   helles Sandbeige
     --ink:       fast-schwarz, warm
     --muted:     warmes Grau
     --primary:   Iznik-Türkis (wie die Fliesen der Moschee)
     --primary-2: tieferes Türkis für dunkle Abschnitte
     --accent:    Kupfer / gedämpftes Gold
   ============================================================ */

:root {
  --bg:        #f6f1e7;
  --surface:   #eae7dc;
  --surface-2: #ddddd3;
  --ink:       #1b2225;
  --muted:     #5a5e62;
  --line:      #d2d3c9;
  --primary:   #0a757c;   /* Iznik turquoise — carries light text (AA) */
  --primary-lt: #12a2a4;  /* brighter turquoise for tints, borders, glows */
  --primary-2: #0e6a75;   /* deeper turquoise for dark sections */
  --accent:    #b04438;   /* muted iznik red — matches prayer-carpet stripes */
  --accent-2:  #8a3127;
  --maxw:      1200px;
  --radius:    14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(27,34,37,.06), 0 2px 8px rgba(27,34,37,.04);
  --shadow:    0 4px 14px rgba(27,34,37,.08), 0 14px 40px rgba(27,34,37,.06);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Source Sans 3', 'Inter', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--primary-2); text-decoration: none; }
a:hover { color: var(--accent-2); }

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0 0 .4em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 4.6vw, 4rem); line-height: 1.05; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); line-height: 1.15; }
h3 { font-size: 1.35rem; line-height: 1.25; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ===================== HEADER / NAV ===================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 241, 231, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
/* ---- Servicezeile über der Navigation ---- */
.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(234, 231, 220, .55);
  font-size: .84rem;
  /* Beim Scrollen faltet sie sich weg — deshalb messbare Höhe statt display */
  max-height: 46px;
  overflow: hidden;
  transition: max-height .25s ease, opacity .2s ease;
}
/* Das Sprachmenue klappt unter der Servicezeile auf. Solange es offen ist,
   darf die Zeile nichts abschneiden — sonst bliebe das Menue unsichtbar. */
.topbar.menu-open { overflow: visible; }
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; height: 45px; max-width: 1440px;
}
.tb-prayer {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted); text-decoration: none;
  min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tb-prayer:hover { color: var(--ink); }
.tb-name { font-weight: 600; color: var(--ink); }
.tb-time { font-variant-numeric: tabular-nums; color: var(--primary); }
.tb-cd { color: var(--muted); }
.tb-right { display: flex; align-items: center; gap: 18px; flex: 0 0 auto; }
.tb-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); text-decoration: none; white-space: nowrap;
}
.tb-link:hover { color: var(--accent); }
.tb-link svg { width: 15px; height: 15px; }
/* Sprachwahl sitzt jetzt in der Servicezeile und darf kleiner ausfallen */
.topbar .lang-btn { padding: 4px 10px; font-size: .82rem; }

/* Zusammengefalteter Kopf beim Scrollen */
.site-header.scrolled .topbar { max-height: 0; opacity: 0; border-bottom-color: transparent; overflow: hidden; }
.site-header.scrolled .nav-wrap { height: 62px; }
.site-header.scrolled .ditib-logo,
.site-header.scrolled .ditib-logo img { height: 36px; }

.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; height: 84px; flex-wrap: nowrap;
  max-width: 1440px;
  transition: height .25s ease;
}
.brand {
  display: flex; align-items: center; gap: 12px; color: var(--ink);
  text-decoration: none;
  flex: 0 0 auto; min-width: 0;
}
.brand-mark {
  width: 38px; height: 38px; flex: 0 0 38px;
  display: grid; place-items: center;
  background: var(--primary);
  border-radius: 50%;
  color: #f6f1e7;
}
.ditib-logo {
  flex: 0 0 auto;
  height: 44px;
  display: grid; place-items: center;
}
.ditib-logo img {
  height: 44px;
  width: auto;
  display: block;
  /* keep oval intact, no background needed (transparent PNG) */
}
.nav-right {
  display: flex; align-items: center; gap: 12px;
  flex: 0 0 auto;
}

/* language switcher */
.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent;
  border: 1px solid var(--line);
  padding: 7px 12px;
  border-radius: 999px;
  font: inherit; font-size: 0.88rem; font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: all .15s;
}
.lang-btn:hover { background: var(--surface); border-color: var(--accent); }
.lang-btn .lang-cur { letter-spacing: .04em; }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  list-style: none; margin: 0; padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  min-width: 180px;
  z-index: 60;
}
[dir="rtl"] .lang-menu { right: auto; left: 0; }
.lang-menu li { margin: 0; }
.lang-menu button {
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  gap: 10px; align-items: center;
  width: 100%; padding: 8px 12px;
  background: transparent; border: 0;
  font: inherit; font-size: 0.92rem;
  cursor: pointer; text-align: left;
  border-radius: 8px;
  color: var(--ink);
}
.lang-menu button:hover { background: var(--surface); }
.lang-menu button.active {
  background: var(--primary); color: #f6f1e7;
}
.lang-menu .flag { font-size: 1.05rem; }
.lang-menu .short {
  font-size: .72rem; letter-spacing: .1em; opacity: .7; text-align: right;
}
[dir="rtl"] .lang-menu button { text-align: right; }
[dir="rtl"] .lang-menu .short { text-align: left; }
.brand-text { line-height: 1.1; min-width: 0; }
.brand-text .b1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600; font-size: 1.2rem;
  white-space: nowrap;
}
.brand-text .b2 {
  font-size: .78rem; color: var(--muted); letter-spacing: .02em;
  white-space: nowrap;
}

.nav-links { display: flex; gap: 2px; align-items: center; flex: 0 1 auto; min-width: 0; }
.nav-links button {
  background: none; border: 0; cursor: pointer;
  font: inherit; color: var(--ink);
  white-space: nowrap;
  padding: 8px 11px; font-size: .93rem;
  border-radius: 999px;
  transition: background .18s, color .18s;
}
.nav-links button:hover { background: var(--surface); }
.nav-links button.active {
  background: var(--primary); color: #f6f1e7;
}
.nav-cta {
  background: var(--accent); color: #fff;
  padding: 9px 18px; border-radius: 999px;
  font-weight: 600; border: 0; cursor: pointer;
  transition: background .18s, transform .12s;
  font-family: inherit; font-size: 0.95rem;
}
.nav-cta:hover { background: var(--accent-2); transform: translateY(-1px); }

.menu-toggle {
  display: none;
  background: none; border: 1px solid var(--line);
  width: 42px; height: 42px; border-radius: 10px;
  cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.menu-toggle span {
  display: block; width: 18px; height: 2px; background: var(--ink);
  position: relative;
}
.menu-toggle span::before, .menu-toggle span::after {
  content: ''; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink);
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after  { top: 6px; }

.mobile-menu { display: none; }

/* Die Navigation wird stufenweise enger, bevor sie ins Klappmenü wandert.
   Vorher verschwand sie schon bei 1300 px — auf einem 1280er-Bildschirm sah
   man am Schreibtisch das Mobilmenü. */
@media (max-width: 1320px) {
  .nav-links button { padding: 8px 8px; font-size: .89rem; }
  .brand-text .b2 { display: none; }
  .tb-right { gap: 12px; }
}
@media (max-width: 1160px) {
  .nav-links button { padding: 7px 6px; font-size: .86rem; }
  .nav-wrap { gap: 12px; }
  .nav-cta { padding: 8px 14px; font-size: .9rem; }
  .tb-link span { display: none; }   /* nur noch die Sinnbilder */
}
@media (max-width: 1120px) {
  .topbar { display: none; }
  .nav-links, .nav-cta, .nav-right { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-menu.open {
    display: block;
    border-top: 1px solid var(--line);
    background: var(--bg);
  }
  .mobile-menu .container { padding: 12px 24px 18px; }
  .mobile-menu button {
    display: block; width: 100%; text-align: left;
    background: none; border: 0; padding: 12px 8px;
    font: inherit; color: var(--ink); cursor: pointer;
    border-bottom: 1px solid var(--line);
  }
  .mobile-menu button:last-child { border-bottom: 0; }
  .mobile-menu .mm-link {
    display: block; padding: 12px 8px;
    color: var(--ink); text-decoration: none;
    border-top: 1px solid var(--line);
  }
  .mobile-menu button.active { color: var(--primary-2); font-weight: 700; }
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  min-height: 62vh;
  display: grid; place-items: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--primary-2);
  color: #f6f1e7;
}
.hero-image {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(180deg, rgba(27,34,37,.35) 0%, rgba(27,34,37,.55) 60%, rgba(27,34,37,.8) 100%),
    url('assets/img/gebetsraum.jpg');
  background-size: cover;
  background-position: center 35%;
  transform: scale(1.05);
  transition: transform 8s ease;
  z-index: -1;
}
.hero.in-view .hero-image { transform: scale(1); }

.hero-inner {
  text-align: center;
  padding: 80px 24px;
  max-width: 880px;
}
.hero-eyebrow {
  display: inline-block;
  font-family: 'Source Sans 3', sans-serif;
  font-size: .78rem; letter-spacing: .28em; text-transform: uppercase;
  padding: 7px 16px; border: 1px solid rgba(246,241,231,.4);
  border-radius: 999px;
  margin-bottom: 24px;
  color: #efe7d5;
}
.hero h1 {
  color: #f6f1e7;
  margin-bottom: 0.4em;
}
.hero h1 .gold { color: #d9b88a; }
.hero p.lede {
  font-size: 1.2rem;
  color: rgba(246,241,231,.88);
  max-width: 640px;
  margin: 0 auto 32px;
}
.hero-actions {
  display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px;
  border: 0; cursor: pointer; font: inherit; font-weight: 600;
  font-size: 0.97rem;
  transition: all .18s;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); color: #fff; }
.btn-ghost {
  background: transparent; color: #f6f1e7;
  border: 1px solid rgba(246,241,231,.55);
}
.btn-ghost:hover { background: rgba(246,241,231,.12); color: #fff; }
.btn-dark { background: var(--primary-2); color: #f6f1e7; }
.btn-dark:hover { background: var(--ink); color: #fff; }

.hero-scroll-hint {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  font-size: .78rem; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(246,241,231,.7);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.hero-scroll-hint::after {
  content: ''; width: 1px; height: 28px; background: rgba(246,241,231,.4);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: .3; transform: scaleY(.6); }
  50%     { opacity: 1;  transform: scaleY(1); }
}

/* ===================== SECTIONS ===================== */
section.page-section {
  padding: 96px 0;
  scroll-margin-top: 80px;
}
.page-section.alt { background: var(--surface); }
.page-section.dark {
  background: var(--primary-2);
  color: #efe7d5;
}
.page-section.dark h2, .page-section.dark h3 { color: #f6f1e7; }
.page-section.dark a { color: #d9b88a; }

.section-eyebrow {
  font-size: .78rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--accent-2); font-weight: 600;
  margin-bottom: 14px;
}
.page-section.dark .section-eyebrow { color: #d9b88a; }

.section-head {
  max-width: 760px;
  margin-bottom: 56px;
}
.section-head p.lede {
  font-size: 1.15rem; color: var(--muted);
}
.page-section.dark .section-head p.lede { color: rgba(246,241,231,.82); }

/* ===================== ABOUT GRID ===================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } }

.about-text p { font-size: 1.05rem; }
.values-list {
  list-style: none; padding: 0; margin: 28px 0 0;
  display: grid; gap: 14px;
}
.values-list li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.values-list .ico {
  flex: 0 0 36px; width: 36px; height: 36px; border-radius: 8px;
  background: var(--primary); color: #f6f1e7;
  display: grid; place-items: center;
  font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; font-weight: 700;
}
.values-list strong { display: block; margin-bottom: 2px; }
.values-list span.dsc { color: var(--muted); font-size: .94rem; }

.about-side {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--line);
}
.about-side h3 { margin-top: 0; }
.about-side dl {
  margin: 18px 0 0; display: grid; gap: 10px;
}
.about-side dt {
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-top: 6px;
}
.about-side dd { margin: 0; font-weight: 500; }

/* ===================== MOSQUE ===================== */
.mosque-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: center;
}
@media (max-width: 860px) { .mosque-grid { grid-template-columns: 1fr; gap: 32px; } }

.mosque-image {
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
  background-image:
    linear-gradient(180deg, rgba(27,34,37,.0) 0%, rgba(27,34,37,.25) 100%),
    url('assets/img/gebetsraum.jpg');
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.feature-list {
  list-style: none; padding: 0; margin: 24px 0 0;
  display: grid; gap: 16px;
}
.feature-list li {
  display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: start;
}
.feature-list .num {
  font-family: 'Cormorant Garamond', serif; font-size: 1.6rem;
  color: var(--accent-2); font-weight: 600;
  padding-top: 2px;
  border-top: 1px solid var(--accent);
  display: inline-block; width: 44px;
}
.feature-list h4 { margin: 0 0 4px; }
.feature-list p { margin: 0; color: var(--muted); font-size: .98rem; }

/* ===================== ISLAM TABS ===================== */
.tabs {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-bottom: 36px;
  padding: 6px;
  background: var(--surface-2);
  border-radius: 999px;
  width: fit-content;
}
.tabs button {
  background: transparent; border: 0; cursor: pointer;
  font: inherit; color: var(--ink);
  padding: 9px 18px; border-radius: 999px;
  transition: all .18s;
}
.tabs button:hover { background: rgba(255,255,255,.5); }
.tabs button.active { background: var(--primary); color: #f6f1e7; }

.tab-panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: start;
}
@media (max-width: 860px) { .tab-panel { grid-template-columns: 1fr; gap: 28px; } }

.pillars {
  display: grid; gap: 12px;
}
.pillar {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  display: grid; grid-template-columns: 38px 1fr auto; gap: 14px; align-items: center;
  cursor: pointer;
  transition: all .18s;
}
.pillar:hover {
  border-color: var(--accent);
  background: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.pillar .roman {
  font-family: 'Cormorant Garamond', serif; font-weight: 700;
  font-size: 1.1rem; color: var(--accent-2);
  text-align: center;
}
.pillar h4 { margin: 0; font-family: 'Source Sans 3', sans-serif; font-size: 1rem; font-weight: 600; }
.pillar .ar { font-family: 'Cormorant Garamond', serif; color: var(--muted); font-style: italic; }
.pillar.expanded { background: var(--surface-2); }
.pillar-body {
  grid-column: 1 / -1; padding-top: 10px;
  border-top: 1px dashed var(--line);
  color: var(--muted); font-size: .96rem;
  display: none;
}
.pillar.expanded .pillar-body { display: block; }

/* ===================== PRAYER TIMES ===================== */
.prayer-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.page-section.dark .prayer-card {
  background: rgba(246,241,231,.05);
  border-color: rgba(246,241,231,.18);
  backdrop-filter: blur(4px);
}

.prayer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
@media (max-width: 700px) { .prayer-grid { grid-template-columns: repeat(5, 1fr); gap: 4px; } }

.prayer-cell {
  text-align: center;
  padding: 18px 8px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: all .2s;
}
.page-section.dark .prayer-cell {
  background: rgba(246,241,231,.06);
  border: 1px solid rgba(246,241,231,.1);
}
.prayer-cell.next {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(176,68,56,.4);
}
.prayer-cell .lbl {
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.page-section.dark .prayer-cell .lbl { color: rgba(246,241,231,.7); }
.prayer-cell.next .lbl { color: rgba(255,255,255,.85); }
.prayer-cell .tm {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem; font-weight: 600;
  line-height: 1;
}
@media (max-width: 700px) { .prayer-cell .tm { font-size: 1.15rem; } .prayer-cell .lbl { font-size: .62rem; } }

.prayer-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap; gap: 12px;
}
.prayer-date {
  font-family: 'Cormorant Garamond', serif; font-size: 1.4rem;
}
.prayer-next-info {
  font-size: .9rem; color: var(--muted);
}
.page-section.dark .prayer-next-info { color: rgba(246,241,231,.7); }
.prayer-next-info strong { color: var(--accent-2); }
.page-section.dark .prayer-next-info strong { color: #d9b88a; }

/* ===================== FREITAGSGEBET ===================== */
.jumua-card{margin-top:28px;background:rgba(246,241,231,.05);border:1px solid rgba(246,241,231,.18);border-radius:var(--radius);padding:32px;backdrop-filter:blur(4px)}
.jumua-card h3{margin:0;font-size:1.65rem}
.jumua-card h4{color:#f6f1e7;font-size:1.05rem;margin:0 0 8px}
.jumua-intro{color:rgba(246,241,231,.78);margin:14px 0 24px;max-width:62ch}
.jumua-slots{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
@media (max-width:640px){.jumua-slots{grid-template-columns:1fr}}
.jumua-slot{position:relative;background:rgba(246,241,231,.06);border:1px solid rgba(246,241,231,.14);border-radius:var(--radius-sm);padding:22px 24px}
.jumua-slot.on{background:rgba(176,122,61,.16);border-color:var(--accent)}
.jumua-badge{position:absolute;top:-1px;right:14px;transform:translateY(-50%);background:var(--accent);color:#fff;font-size:.66rem;letter-spacing:.14em;text-transform:uppercase;font-weight:600;padding:4px 10px;border-radius:999px;white-space:nowrap}
.jumua-slot-l{display:flex;align-items:center;gap:9px;font-size:.78rem;letter-spacing:.16em;text-transform:uppercase;color:rgba(246,241,231,.72);margin-bottom:6px}
.jumua-slot.on .jumua-slot-l{color:#e2b87a}
.jumua-ico{font-size:1rem;line-height:1}
.jumua-time{font-family:'Cormorant Garamond',Georgia,serif;font-size:2.6rem;font-weight:600;line-height:1;color:#f6f1e7;margin-bottom:8px}
.jumua-sw{font-size:.86rem;color:rgba(246,241,231,.6)}
.jumua-rules{margin-top:28px;padding-top:24px;border-top:1px solid rgba(246,241,231,.14)}
.jumua-rules p{color:rgba(246,241,231,.78);margin:0 0 14px;max-width:70ch}
.jumua-rules ul{list-style:none;padding:0;margin:0;display:grid;gap:10px;max-width:70ch}
.jumua-rules li{display:grid;grid-template-columns:auto 1fr;gap:12px;color:rgba(246,241,231,.85);font-size:.97rem}
.jumua-rules li::before{content:'✦';color:var(--accent);font-size:.8rem;line-height:1.7}
.jumua-outro{margin:26px 0 0;color:rgba(246,241,231,.78);max-width:72ch}
.jumua-signed{margin-top:14px;font-family:'Cormorant Garamond',Georgia,serif;font-size:1.15rem;font-style:italic;color:#e2b87a}
[dir=rtl] .jumua-badge{right:auto;left:14px}

/* ===================== SEITEN / ROUTING ===================== */
.subpage>section.page-section:first-child{padding-top:60px}
.subpage>section.page-section.dark:first-child,.subpage>section.page-section.alt:first-child{padding-top:64px}

section.teaser-section{padding-top:64px;padding-bottom:64px}
.teaser-section .section-head{margin-bottom:28px}
.teaser-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px}
.teaser{display:flex;flex-direction:column;align-items:stretch;gap:6px;text-align:left;background:var(--bg);border:1px solid var(--line);border-radius:var(--radius-sm);padding:16px 18px;cursor:pointer;font:inherit;color:var(--ink);transition:border-color .18s,transform .18s,box-shadow .18s}
.teaser:hover{border-color:var(--accent);transform:translateY(-2px);box-shadow:var(--shadow)}
.teaser h3{margin:0;font-size:1.14rem;display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.teaser-pfeil{font-family:inherit;font-size:.95rem;color:var(--accent-2);opacity:.55;transition:opacity .18s,transform .18s}
.teaser:hover .teaser-pfeil{opacity:1;transform:translateX(3px)}
.teaser p{margin:0;color:var(--muted);font-size:.88rem;line-height:1.45;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
[dir=rtl] .teaser{text-align:right}
[dir=rtl] .teaser-pfeil{transform:scaleX(-1)}

/* ===================== PARKSITUATION ===================== */
.park-block .park-title{font-family:'Cormorant Garamond',Georgia,serif;font-size:1.65rem;font-weight:600;color:#f6f1e7;margin:0 0 0}
.park-ask{color:rgba(246,241,231,.78);margin:0 0 20px;font-weight:500}
.park-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
@media (max-width:720px){.park-grid{grid-template-columns:1fr}}
.park-item{display:grid;grid-template-columns:auto 1fr;gap:14px;align-items:start;background:rgba(246,241,231,.06);border:1px solid rgba(246,241,231,.14);border-radius:var(--radius-sm);padding:18px 20px}
.park-ico{width:34px;height:34px;flex:0 0 34px;display:grid;place-items:center;border-radius:8px;background:rgba(176,122,61,.22);color:#e2b87a;font-size:1.05rem;line-height:1}
.park-item strong{display:block;color:#f6f1e7;font-size:1rem;margin-bottom:3px}
.park-item span{color:rgba(246,241,231,.72);font-size:.94rem}
.park-thanks{margin:24px 0 0;padding-top:20px;border-top:1px solid rgba(246,241,231,.14);color:rgba(246,241,231,.78);max-width:72ch}

/* ===================== HADITH / QUOTE ===================== */
.hadith {
  max-width: 760px; margin: 0 auto;
  text-align: center;
  padding: 64px 24px;
}
.hadith-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 5rem; line-height: .6;
  color: var(--accent);
  margin-bottom: 14px;
}
.hadith p {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-style: italic;
  color: #f6f1e7;
  margin-bottom: 18px;
  line-height: 1.35;
  text-wrap: balance;
}
.hadith cite {
  font-style: normal;
  font-size: .82rem;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(246,241,231,.65);
}

/* ===================== DONATE ===================== */
.donate-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
@media (max-width: 860px) { .donate-grid { grid-template-columns: 1fr; gap: 32px; } }

.donate-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.amount-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin: 18px 0;
}
.amount-row button {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 14px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font: inherit; font-weight: 600;
  transition: all .18s;
}
.amount-row button:hover { border-color: var(--accent); }
.amount-row button.active { background: var(--primary); color: #f6f1e7; border-color: var(--primary); }

.amount-custom {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  background: var(--bg);
}
.amount-custom:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(176,68,56,.18); }








.iban-box {
  background: var(--surface-2);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: .88rem;
  margin-top: 16px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
}
.iban-box button {
  background: var(--ink); color: #f6f1e7; border: 0;
  padding: 6px 12px; border-radius: 6px; cursor: pointer;
  font-family: inherit; font-size: .8rem;
}

/* ===================== CONTACT FORM ===================== */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }

.contact-info {
  display: grid; gap: 14px;
}
.contact-item {
  display: grid; grid-template-columns: 44px 1fr; gap: 14px;
  padding: 16px 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  align-items: center;
}
.contact-item .ico {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--surface-2); color: var(--primary-2);
  display: grid; place-items: center;
}
.contact-item .lbl {
  font-size: .76rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.contact-item .val { font-weight: 600; }
.contact-item a { color: var(--ink); }

form.contact-form {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: grid; gap: 16px;
}
.field label {
  display: block;
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
  font-weight: 600;
}
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  background: var(--bg);
  color: var(--ink);
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(176,68,56,.18);
}
.field textarea { resize: vertical; min-height: 110px; }
.field.error input, .field.error textarea {
  border-color: #b94a4a; box-shadow: 0 0 0 3px rgba(185,74,74,.12);
}
.field .err { color: #b94a4a; font-size: .82rem; margin-top: 4px; display: none; }
.field.error .err { display: block; }

.checkbox-row {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: .9rem; color: var(--muted);
}
.checkbox-row input { margin-top: 4px; accent-color: var(--primary); }

.form-success {
  background: #e3ecdb;
  border: 1px solid #b8c9a8;
  color: #2f4a30;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: .95rem;
  display: flex; gap: 10px; align-items: center;
}

/* Fehlgeschlagener Versand — muss sich deutlich vom Erfolg unterscheiden */
.form-error {
  background: #f6e3e1;
  border: 1px solid #d9b3ae;
  color: #7a2e26;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: .95rem;
  display: flex; gap: 10px; align-items: flex-start;
}
.form-error a { color: #7a2e26; font-weight: 600; }

/* Honigtopf gegen Bots: aus dem Blickfeld geschoben statt display:none,
   weil manche Bots ausgeblendete Felder erkennen und auslassen. */
.hp-field {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

/* ===================== FOOTER ===================== */
footer.site-footer {
  background: var(--ink); color: #cfc9b8;
  padding: 64px 0 28px;
}
footer h4 {
  color: #f6f1e7;
  font-family: 'Source Sans 3', sans-serif;
  font-size: .82rem;
  letter-spacing: .18em; text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid ul a { color: #cfc9b8; }
.footer-grid ul a:hover { color: #d9b88a; }
.footer-brand p { color: #a8a290; font-size: .94rem; margin-top: 12px; }

.footer-bottom {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  font-size: .82rem; color: #8a8472;
}
.footer-bottom a { color: #a8a290; }

/* ===================== IMPRESSUM MODAL ===================== */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(27,34,37,.55);
  backdrop-filter: blur(4px);
  display: grid; place-items: center; z-index: 100;
  padding: 24px;
}
.modal {
  background: var(--bg); border-radius: var(--radius);
  max-width: 640px; width: 100%; max-height: 86vh; overflow: auto;
  padding: 36px;
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
}
.modal h3 { margin-top: 0; }
.modal-close {
  float: right; background: none; border: 0; font-size: 1.4rem;
  cursor: pointer; color: var(--muted); padding: 0 4px;
  margin-top: -8px;
}
.modal address { font-style: normal; line-height: 1.7; }

/* ===================== UTIL ===================== */
.divider-orn {
  display: flex; align-items: center; gap: 18px;
  margin: 28px 0;
}
.divider-orn::before, .divider-orn::after {
  content: ''; flex: 1; height: 1px; background: var(--line);
}
.divider-orn .star {
  color: var(--accent); font-size: 1rem;
}

/* Tiny utility */
.fade-in { animation: fadein .8s ease both; }
@keyframes fadein { from { opacity: 0; transform: translateY(8px);} to { opacity: 1; transform: none;} }


/* ===================== RTL ===================== */
[dir="rtl"] body {
  font-family: 'Noto Naskh Arabic', 'Source Sans 3', system-ui, sans-serif;
}
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 {
  font-family: 'Noto Naskh Arabic', 'Cormorant Garamond', Georgia, serif;
  letter-spacing: 0;
}
[dir="rtl"] .hero-eyebrow,
[dir="rtl"] .section-eyebrow {
  letter-spacing: .08em;
}
[dir="rtl"] .feature-list .num,
[dir="rtl"] .pillar .roman,
[dir="rtl"] .prayer-cell .tm,
[dir="rtl"] .hadith p,
[dir="rtl"] .prayer-date,
[dir="rtl"] .about-side dt {
  font-family: 'Noto Naskh Arabic', 'Cormorant Garamond', Georgia, serif;
  letter-spacing: 0;
}
[dir="rtl"] .iban-box,
[dir="rtl"] .prayer-cell .tm {
  direction: ltr;
}
[dir="rtl"] .iban-box {
  text-align: left;
}
[dir="rtl"] .feature-list { padding-right: 0; }
[dir="rtl"] .feature-list .num {
  border-top: 1px solid var(--accent);
}
[dir="rtl"] .pillar .roman {
  /* keep roman numerals readable */
  direction: ltr;
}
[dir="rtl"] .hero-actions { direction: rtl; }
[dir="rtl"] .modal-close { float: left; }
[dir="rtl"] .pillars .pillar {
  grid-template-columns: 38px 1fr auto;
}


/* ===================== DONATE METHOD TOGGLE & BANK DETAILS ===================== */
.method-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px;
  background: var(--surface-2);
  border-radius: 12px;
  margin: 18px 0 18px;
}
.method-toggle button {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: transparent; border: 0;
  padding: 10px 12px;
  border-radius: 8px;
  font: inherit; font-weight: 600; font-size: 0.94rem;
  color: var(--muted);
  cursor: pointer;
  transition: all .18s;
}
.method-toggle button:hover { color: var(--ink); }
.method-toggle button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.method-toggle .m-ico { display: inline-flex; }

.btn-paypal {
  background: #ffc439;
  color: #003087;
}
.btn-paypal:hover { background: #f5b400; color: #003087; transform: translateY(-1px); }

.bank-details {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-top: 6px;
}
.bank-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: .92rem;
}
.bank-row:last-of-type { border-bottom: 0; }
.bank-lbl {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  align-self: center;
}
.bank-val { font-weight: 500; word-break: break-all; }
.bank-val.mono { font-family: 'JetBrains Mono', monospace; font-size: .88rem; }

[dir="rtl"] .bank-row { grid-template-columns: 130px 1fr; direction: ltr; text-align: right; }
[dir="rtl"] .bank-row .bank-lbl { text-align: right; direction: rtl; }


/* ===================== BANK BLOCK + QR ===================== */
.bank-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
  margin-top: 6px;
}
.bank-block .bank-details { margin-top: 0; }
.qr-block {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  align-items: center;
  text-align: left;
}
@media (max-width: 480px) {
  .qr-block { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}
.qr-svg {
  background: #fff;
  border-radius: 6px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  overflow: hidden;
  width: 140px !important;
  height: 140px !important;
}
.qr-svg svg { display: block; width: 100%; height: 100%; }
.qr-title {
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
  margin-bottom: 4px;
}
.qr-sub {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.45;
}

/* label column sizes to its content (Verwendungszweck is long) */
.bank-row {
  grid-template-columns: max-content 1fr !important;
  column-gap: 16px;
  align-items: baseline;
}
.bank-row .bank-lbl { white-space: nowrap; }
.bank-val.mono { font-size: .82rem; }
@media (max-width: 540px) {
  .bank-row { grid-template-columns: 1fr !important; gap: 2px !important; }
  .bank-row .bank-lbl { font-size: .68rem; }
}


/* ===================== MITGLIED WERDEN ===================== */
.member-benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 80px;
}
@media (max-width: 900px) { .member-benefits { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .member-benefits { grid-template-columns: 1fr; } }
.benefit-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  position: relative;
  transition: all .2s;
}
.benefit-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--accent);
}
.benefit-num {
  width: 36px; height: 36px;
  background: var(--primary);
  color: #f6f1e7;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 16px;
}
.benefit-card h4 {
  margin: 0 0 8px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
}
.benefit-card p {
  margin: 0;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.55;
}

.tier-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 36px;
}
.tier-head h3 {
  font-size: 1.9rem;
  margin-bottom: 8px;
}
.tier-head p {
  color: var(--muted);
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 80px;
}
@media (max-width: 900px) { .tier-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .tier-grid { grid-template-columns: 1fr; } }

.tier-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all .22s;
}
.tier-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.tier-card.featured {
  background: var(--primary-2);
  color: #f6f1e7;
  border-color: var(--primary-2);
}
.tier-card.featured .tier-d { color: rgba(246,241,231,.75); }
.tier-card.featured .tier-per { color: rgba(246,241,231,.65); }

.tier-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--accent);
  color: #fff;
  font-size: .65rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
}
[dir="rtl"] .tier-badge { right: auto; left: 14px; }

.tier-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.tier-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin-bottom: 12px;
}
.tier-amt {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
}
.tier-card.featured .tier-amt { color: #d9b88a; }
.tier-per {
  font-size: .82rem;
  color: var(--muted);
}
.tier-d {
  font-size: .9rem;
  color: var(--muted);
  margin: 0 0 24px;
  flex: 1;
}
.tier-card.featured .tier-cta {
  background: var(--accent);
  color: #fff;
}
.tier-card.featured .tier-cta:hover { background: var(--accent-2); }
.tier-cta {
  margin-top: auto;
}

.member-form-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 48px;
  max-width: 820px;
  margin: 0 auto;
  scroll-margin-top: 80px;
}
@media (max-width: 600px) { .member-form-wrap { padding: 28px 22px; } }
.member-form-head {
  text-align: center;
  margin-bottom: 32px;
}
.member-form-head h3 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}
.member-form-head p {
  color: var(--muted);
  margin: 0 auto;
  max-width: 520px;
}
.member-form {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 28px;
  display: grid;
  gap: 16px;
}
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-grid-zip {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 14px;
}
@media (max-width: 540px) {
  .form-grid-2, .form-grid-zip { grid-template-columns: 1fr; }
}
.field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
}
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(176,68,56,.18);
}


/* ===================== ABOUT BLOCKS (Verein themed paragraphs) ===================== */
.about-block {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.about-block h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--primary-2);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.about-block p { margin: 0; }
[dir="rtl"] .about-block h4 { font-family: 'Noto Naskh Arabic', 'Cormorant Garamond', serif; }


/* ===================== PRAYER: live dot + hijri ===================== */
.prayer-hijri {
  font-size: .82rem;
  color: rgba(246,241,231,.55);
  margin-top: 2px;
  letter-spacing: .02em;
}
.live-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  margin-inline-end: 7px;
  vertical-align: middle;
  background: #8a8472;
}
.live-dot.live {
  background: #4caf7d;
  box-shadow: 0 0 0 0 rgba(76,175,125,.6);
  animation: livePulse 2.2s ease-in-out infinite;
}
.live-dot.fallback { background: #c89a3a; }
.live-dot.loading { background: #8a8472; animation: livePulse 1.4s ease-in-out infinite; }
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(76,175,125,.5); }
  70%  { box-shadow: 0 0 0 6px rgba(76,175,125,0); }
  100% { box-shadow: 0 0 0 0 rgba(76,175,125,0); }
}


/* ===================== SUMUP (card) ===================== */
.method-toggle-3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 420px) {
  .method-toggle-3 { grid-template-columns: 1fr; }
}
.method-toggle-3 button { padding: 9px 8px; font-size: .9rem; }
.method-toggle-3 button span:last-child { white-space: nowrap; }

.btn-sumup {
  background: #1b2225;
  color: #fff;
}
.btn-sumup:hover { background: #2f8c8a; color: #fff; transform: translateY(-1px); }


.sumup-intro {
  margin: 18px 0 16px;
  font-size: .96rem;
  color: var(--muted);
  line-height: 1.55;
}


/* ===================== PRAYER: 6 columns (with sunrise) ===================== */
.prayer-grid-6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 760px) {
  .prayer-grid-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 380px) {
  .prayer-grid-6 { grid-template-columns: repeat(2, 1fr); }
}
/* sunrise cell — visually quieter than the prayers */
.prayer-cell.sun {
  background: rgba(246,241,231,.04);
  border-style: dashed;
  opacity: .9;
}
.prayer-cell.sun .tm { color: rgba(246,241,231,.82); }
.prayer-cell.sun:not(.next) .lbl { color: rgba(246,241,231,.55); }


/* ===================== MEMBERSHIP: 3 tiers + SEPA ===================== */
.tier-grid { grid-template-columns: repeat(3, 1fr) !important; }
@media (max-width: 900px) { .tier-grid { grid-template-columns: 1fr !important; } }

.tier-card.selected { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary) inset; }
.tier-from {
  font-size: .82rem; color: var(--muted); font-weight: 600;
  align-self: center; margin-inline-end: 2px;
}
.tier-year {
  margin-top: 4px; font-size: .88rem; color: var(--muted);
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
}

/* three-up form row */
.form-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 720px) { .form-grid-3 { grid-template-columns: 1fr; } }

.fee-input { position: relative; display: flex; align-items: center; }
.fee-input input { padding-inline-end: 92px; }
.fee-suffix {
  position: absolute; inset-inline-end: 12px;
  font-size: .82rem; color: var(--muted); pointer-events: none;
  background: var(--bg); padding-inline-start: 6px;
}

/* SEPA mandate block */
.sepa-block {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 20px 22px 22px;
  margin: 4px 0;
  display: grid; gap: 14px;
}
.sepa-block legend {
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 700; color: var(--primary-2);
  padding: 4px 10px; background: var(--bg);
  border: 1px solid var(--line); border-radius: 999px;
}
.sepa-intro { font-size: .92rem; color: var(--muted); margin: 0; line-height: 1.5; }
.sepa-block .field input.mono { font-family: 'JetBrains Mono', monospace; font-size: .9rem; letter-spacing: .02em; }
.sepa-block input.has-err { border-color: #b94a4a; box-shadow: 0 0 0 3px rgba(185,74,74,.12); }
.err-msg { color: #b94a4a; font-size: .82rem; margin-top: 4px; }
.field-hint { color: var(--muted); font-size: .82rem; margin-top: 4px; }
.field-hint.bank-auto { margin: -6px 0 14px; }
.sepa-block .checkbox-row { font-size: .86rem; line-height: 1.45; }

/* Mitgliedsantrag: Einwilligungen + aufklappbare Zusatzangaben (wie Papierantrag) */
.einw-block { gap: 10px; }
.mehr-block {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); margin: 4px 0;
}
.mehr-block > summary {
  cursor: pointer; padding: 16px 22px; display: grid; gap: 2px;
  list-style: none; position: relative; padding-inline-end: 48px;
}
.mehr-block > summary::-webkit-details-marker { display: none; }
.mehr-block > summary::after {
  content: '+'; position: absolute; inset-inline-end: 22px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; line-height: 1; color: var(--primary-2);
}
.mehr-block[open] > summary::after { content: '−'; }
.mehr-block > summary span { font-size: .86rem; color: var(--muted); }
.mehr-block > summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: var(--radius-sm); }
.mehr-inhalt { padding: 0 22px 22px; display: grid; gap: 20px; }
.mehr-gruppe { display: grid; gap: 10px; }
.mehr-inhalt .form-grid-2, .mehr-inhalt .form-grid-3 { align-items: end; }
.mehr-gruppe h4 { margin: 0; font-size: .95rem; }
.mehr-gruppe h4 small { font-weight: 400; color: var(--muted); font-size: .82rem; margin-inline-start: 6px; }
.kind-zeile { border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 12px 14px; display: grid; gap: 10px; }
.kind-kopf { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: .88rem; }
.link-btn { background: none; border: 0; padding: 0; color: #b94a4a; font: inherit; font-size: .84rem; cursor: pointer; text-decoration: underline; }
.kind-add { justify-self: start; background: var(--bg); color: var(--primary-2); border: 1px dashed var(--line); padding: 10px 18px; font-size: .9rem; }
.kind-add:hover { border-color: var(--primary); }
.ea-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 14px; }
@media (max-width: 720px) { .ea-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .ea-grid { grid-template-columns: 1fr; } .mehr-inhalt { padding: 0 10px 14px; } .mehr-block > summary { padding: 14px 40px 14px 12px; } .kind-zeile { padding: 10px 8px; } }

/* Pflichtangaben des Mandats: Gläubiger-ID, Referenz, Zahlungsart */
.sepa-mandat {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 14px;
  margin: 0; font-size: .86rem; line-height: 1.45;
  padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--bg); border: 1px solid var(--line);
}
.sepa-mandat dt { color: var(--muted); }
.sepa-mandat dd { margin: 0; color: var(--ink); }
@media (max-width: 560px) {
  .sepa-mandat { grid-template-columns: 1fr; gap: 2px; }
  .sepa-mandat dd { margin-bottom: 8px; }
}
.sepa-prenote { font-size: .82rem; color: var(--muted); margin: 0; line-height: 1.5; }


/* fix: tier-year legibility on the dark featured card */
.tier-card.featured .tier-year {
  color: rgba(246,241,231,.78);
  border-bottom-color: rgba(246,241,231,.18);
}
.tier-card.featured .tier-from { color: rgba(246,241,231,.7); }

/* fix: give the featured card room so the badge clears the title */
.tier-card.featured { padding-top: 46px; }


/* ===================== MEMBER FORM: extra fields + required modal ===================== */
.req-hint {
  font-size: .86rem; color: var(--muted); margin: 0 0 4px;
  padding: 10px 14px; background: var(--surface-2);
  border-radius: var(--radius-sm); border: 1px dashed var(--line);
}
.form-grid-sal { display: grid; grid-template-columns: 140px 1fr 1fr; gap: 14px; }
@media (max-width: 720px) { .form-grid-sal { grid-template-columns: 1fr; } }

.member-form select {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; background: var(--bg); color: var(--ink);
}
.member-form select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(176,68,56,.18); }
.member-form .field.error select { border-color: #b94a4a; box-shadow: 0 0 0 3px rgba(185,74,74,.12); }

/* required-fields modal */
.req-modal { max-width: 520px; text-align: start; }
.req-modal-ico {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: #f4e2df; color: #b94a4a;
  font-weight: 800; font-size: 1.4rem; font-family: 'Cormorant Garamond', serif;
  margin-bottom: 14px;
}
.req-list {
  list-style: none; padding: 0; margin: 16px 0 0;
  display: grid; gap: 8px;
  max-height: 44vh; overflow: auto;
}
.req-list li {
  display: grid; grid-template-columns: 20px 1fr; gap: 10px;
  align-items: start;
  font-size: .92rem; line-height: 1.4;
  padding: 10px 12px;
  background: var(--surface); border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}
.req-x { color: #b94a4a; font-weight: 700; }
.req-sepa-note {
  margin-top: 14px; font-size: .88rem; line-height: 1.5;
  color: var(--primary-2);
  background: var(--surface-2);
  border-inline-start: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}


/* ===================== PRIVACY NOTE ===================== */
.privacy-note {
  display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start;
  font-size: .86rem; line-height: 1.5; color: var(--primary-2);
  background: var(--surface-2);
  border-inline-start: 3px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 12px 14px; margin: 4px 0 0;
}
.privacy-note svg { margin-top: 2px; }

/* ===================== VOLLTEXTSUCHE ===================== */
/* Knopf im Kopfbereich */
.search-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  border: 1px solid var(--line);
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  font: inherit; font-size: .88rem; font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all .15s;
}
.search-btn:hover { background: var(--surface); border-color: var(--accent); color: var(--ink); }
/* Im Klappmenü steht die Suche als erste Zeile — als Feld erkennbar,
   damit sie sich von den Menüpunkten darunter abhebt. */
.search-btn.compact {
  width: 100%; justify-content: flex-start;
  margin: 2px 0 10px; padding: 12px 14px;
  font-size: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--muted);
}

/* Fenster */
.search-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(27, 34, 37, .45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex; justify-content: center;
  padding: 9vh 16px 16px;
}
.search-panel {
  width: min(720px, 100%);
  max-height: min(76vh, 640px);
  display: flex; flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: search-in .16s ease-out;
}
@keyframes search-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}
.search-field {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  flex: 0 0 auto;
}
.search-field input {
  flex: 1 1 auto; min-width: 0;
  border: 0; background: transparent;
  font: inherit; font-size: 1.05rem;
  color: var(--ink);
  outline: none;
}
.search-field input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-close {
  flex: 0 0 auto;
  background: transparent; border: 0;
  font: inherit; font-size: 1rem;
  color: var(--muted); cursor: pointer;
  padding: 4px 6px; border-radius: 8px;
}
.search-close:hover { background: var(--surface); color: var(--ink); }

.search-results { overflow-y: auto; padding: 8px; flex: 1 1 auto; }
.search-empty {
  margin: 0; padding: 26px 16px;
  text-align: center; color: var(--muted); font-size: .95rem;
}
.search-empty-sub { font-size: .88rem; opacity: .8; }

.search-hit {
  display: block; width: 100%;
  text-align: left;
  background: transparent; border: 0;
  font: inherit; color: var(--ink);
  padding: 10px 14px; margin: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
[dir="rtl"] .search-hit { text-align: right; }
.search-hit.sel { background: var(--surface); }
.search-hit-top {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 3px;
  font-size: .74rem; letter-spacing: .06em; text-transform: uppercase;
}
.search-chip {
  flex: 0 0 auto;
  background: var(--primary); color: #f6f1e7;
  border-radius: 999px; padding: 2px 9px;
  font-weight: 700;
}
.search-ctx {
  color: var(--muted); font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.search-hit-text {
  display: block;
  font-size: .95rem; line-height: 1.5;
  color: var(--muted);
}
.search-hit.sel .search-hit-text { color: var(--ink); }
.search-hit-text mark {
  background: rgba(18, 162, 164, .22);
  color: inherit; font-weight: 700;
  border-radius: 3px; padding: 0 1px;
}

.search-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex: 0 0 auto;
  padding: 9px 16px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted); font-size: .78rem;
}
.search-keys { white-space: nowrap; opacity: .85; }

/* Kurzes Aufleuchten der Fundstelle nach dem Sprung */
.search-flash {
  animation: search-flash 2.2s ease-out;
  border-radius: 6px;
}
@keyframes search-flash {
  0%, 45% { background: rgba(18, 162, 164, .26); box-shadow: 0 0 0 6px rgba(18, 162, 164, .26); }
  100%    { background: transparent; box-shadow: 0 0 0 6px transparent; }
}

/* Wird die Kopfzeile eng, bleibt nur die Lupe stehen. */
@media (max-width: 1200px) {
  .search-btn .search-btn-label { display: none; }
  .search-btn { padding: 7px 10px; }
  .search-btn.compact .search-btn-label { display: inline; }
}
/* Auf dem Telefon füllt das Suchfenster den Bildschirm. */
@media (max-width: 700px) {
  .search-backdrop { padding: 0; }
  .search-panel {
    width: 100%; max-width: none;
    max-height: 100%; height: 100%;
    border-radius: 0; border: 0;
  }
  .search-keys { display: none; }
}

/* ===================== PRINTABLE APPLICATION ===================== */
.antrag-print { display: none; }


/* Mitglied werden: Hinweis auf den Papierantrag über dem Online-Formular */
.member-paper {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
  margin: 0 0 22px; padding: 14px 18px; border: 1px dashed var(--line); border-radius: var(--radius);
  background: var(--bg);
}
.member-paper strong { display: block; margin-bottom: 2px; }
.member-paper span { color: var(--muted); font-size: .92rem; }
.member-paper-links { display: flex; flex-wrap: wrap; gap: 10px; }
.member-paper-links .btn { padding: 8px 14px; font-size: .88rem; white-space: nowrap; }

/* ===== Dokumente & Downloads (downloads.jsx) ===== */
.dl-sec { margin: 36px 0 14px; font-size: 1.25rem; color: var(--primary-2); }
.dl-sec:first-of-type { margin-top: 8px; }
.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.dl-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 8px;
}
.dl-card h4 { margin: 0; font-size: 1.1rem; }
.dl-card p { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.5; flex: 1; }
.dl-meta { font-size: .8rem; color: var(--muted); }
.dl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; }
.dl-actions .btn { padding: 9px 16px; font-size: .9rem; }
.dl-actions .btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.dl-actions .btn { white-space: nowrap; }
.dl-file { display: inline-flex; align-items: center; gap: 8px; }
.dl-size { font-size: .78rem; color: var(--muted); white-space: nowrap; }
.dl-link { font-size: .9rem; }
.dl-druck { display: none; }

@media print {
  @page { size: A4; margin: 10mm; }   /* 1 cm ringsum */
  body { background: #fff !important; }
  .site-header, .hero, footer.site-footer, .modal-backdrop,
  section.page-section, .lang-switch, .nav-cta,
  .search-btn, .search-backdrop { display: none !important; }

  /* Der Antrag steckt INNERHALB der Seite „Mitglied werden". Ein Nachfahre
     eines display:none-Elements lässt sich nicht wieder sichtbar machen —
     genau daran blieb die Druckseite leer. Diese eine Seite bleibt deshalb
     stehen, ausgeblendet wird alles darin außer dem Antrag selbst. */
  section#mitglied { display: block !important; }
  section#mitglied > *:not(.antrag-print) { display: none !important; }

  .antrag-print {
    display: block !important;
    color: #111; background: #fff;
    font-family: 'Source Sans 3', system-ui, sans-serif;
    font-size: 10.5pt; line-height: 1.35;
  }
  .ap-head {
    display: flex; justify-content: space-between; align-items: flex-end;
    border-bottom: 2pt solid #1f5e62; padding-bottom: 6pt; margin-bottom: 12pt;
  }
  .ap-org { font-weight: 700; font-size: 11pt; color: #1f5e62; }
  .ap-sub { font-size: 9pt; color: #444; margin-top: 2pt; }
  .ap-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 19pt; font-weight: 700; color: #1f5e62;
  }
  .ap-sec {
    font-size: 8pt; letter-spacing: .12em; text-transform: uppercase;
    font-weight: 700; color: #1f5e62;
    border-bottom: .5pt solid #bbb;
    padding-bottom: 2pt; margin: 12pt 0 5pt;
  }
  .ap-tbl { width: 100%; border-collapse: collapse; }
  .ap-tbl th, .ap-tbl td {
    text-align: left; vertical-align: bottom;
    padding: 4pt 6pt 3pt 0;
    border-bottom: .5pt solid #ddd;
  }
  .ap-tbl th {
    width: 20%; font-size: 8pt; font-weight: 600;
    color: #555; text-transform: uppercase; letter-spacing: .06em;
  }
  .ap-tbl td { width: 30%; font-size: 10.5pt; }
  .ap-mono { font-family: 'JetBrains Mono', monospace; font-size: 9.5pt; letter-spacing: .04em; }
  .ap-p { font-size: 9pt; color: #333; margin: 4pt 0 6pt; }
  .ap-fine { font-size: 7.5pt; color: #555; line-height: 1.35; margin: 6pt 0 0; }
  .ap-signs {
    display: flex; gap: 24pt; margin-top: 26pt;
    page-break-inside: avoid;
  }
  .ap-sign {
    flex: 1; font-size: 8pt; color: #555;
    text-transform: uppercase; letter-spacing: .08em;
  }
  .ap-line {
    display: block; border-top: .6pt solid #333;
    margin-bottom: 3pt; height: 0;
  }

  /* Downloads: nur die gerade gewählte Druckfassung (.druck-aktiv) ausgeben */
  section#downloads { display: block !important; padding: 0 !important; background: #fff !important; }
  section#downloads > *:not(.druck-aktiv) { display: none !important; }
  .dl-druck.druck-aktiv { display: block !important; }

  .gebetsplan-print { color: #111; font-family: 'Source Sans 3', system-ui, sans-serif; }
  .gp-head { display: flex; align-items: center; gap: 10pt; border-bottom: 2pt solid #1f5e62; padding-bottom: 6pt; margin-bottom: 8pt; }
  .gp-head img { width: 42pt; height: auto; }
  .gp-title { font-size: 15pt; font-weight: 700; color: #1f5e62; }
  .gp-sub { font-size: 8.5pt; color: #444; }
  .gp-tbl { width: 100%; border-collapse: collapse; font-size: 9.5pt; }
  .gp-tbl th, .gp-tbl td { border: .5pt solid #999; padding: 2.2pt 4pt; text-align: center; font-variant-numeric: tabular-nums; }
  .gp-tbl th { background: #e8f0ef; font-size: 9pt; }
  .gp-tbl th small { display: block; font-weight: 400; font-size: 7pt; color: #444; }
  .gp-tbl .gp-l { text-align: left; }
  .gp-tbl .gp-hicri { font-size: 8pt; color: #444; }
  .gp-tbl .gp-sun { color: #666; }
  .gp-tbl tbody tr:nth-child(even) td { background: #f6f6f6; }
  .gp-tbl tr.gp-fr td { font-weight: 700; }
  .gp-foot { margin-top: 6pt; font-size: 8pt; color: #555; text-align: right; }
}



/* ===================== ISLAM: content + informative aside ===================== */
.islam-panel { grid-template-columns: minmax(0,1.55fr) minmax(280px,.85fr); align-items: start; }
@media (max-width: 900px) { .islam-panel { grid-template-columns: 1fr; } }

.islam-main { min-width: 0; max-width: 68ch; }

.islam-aside {
  display: grid; gap: 16px;
  position: sticky; top: 96px;
}
@media (max-width: 900px) { .islam-aside { position: static; } }

.islam-figure { margin: 0; }
.islam-figure image-slot {
  display: block; width: 100%; aspect-ratio: 4/3;
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.islam-figure figcaption {
  font-size: .78rem; color: var(--muted);
  margin-top: 7px; line-height: 1.35;
}

.fact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
}
.fact-list { margin: 12px 0 0; display: grid; gap: 0; }
.fact-row {
  display: grid; gap: 2px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.fact-row:last-child { border-bottom: 0; padding-bottom: 0; }
.fact-row:first-child { padding-top: 0; }
.fact-list dt {
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
.fact-list dd { margin: 0; font-size: .98rem; line-height: 1.35; }

.visit-card {
  background: var(--primary-2); color: #f0f6f5;
  border-radius: var(--radius-sm);
  padding: 20px 22px;
}
.visit-card h4 {
  color: #fff; margin: 0 0 6px;
  font-family: 'Source Sans 3', sans-serif; font-size: 1rem; font-weight: 700;
}
.visit-card p { font-size: .9rem; line-height: 1.5; color: rgba(240,246,245,.82); margin: 0 0 14px; }
.visit-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .9rem; font-weight: 600;
  color: #e0b070; text-decoration: none;
  border-bottom: 1px solid rgba(224,176,112,.4);
  padding-bottom: 2px;
}
.visit-cta:hover { color: #f0c88c; border-bottom-color: #f0c88c; }


/* ===================== IMPRESSUM DETAILS ===================== */
.imp-h {
  font-family: 'Source Sans 3', sans-serif;
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--primary-2); font-weight: 700;
  margin: 22px 0 8px;
}
.imp-board { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 24px; }
.imp-board li { padding: 3px 0; break-inside: avoid; }
.imp-board li span { color: var(--muted); font-size: .9rem; }
@media (max-width: 480px) { .imp-board { columns: 1; } }
.imp-reg { color: var(--muted); font-size: .92rem; margin-top: 14px; }
.imp-rule { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
.imp-umbrella {
  display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}
.imp-umbrella img { width: 96px; height: auto; }
.imp-umbrella address { font-style: normal; line-height: 1.6; font-size: .95rem; }
@media (max-width: 420px) { .imp-umbrella { grid-template-columns: 1fr; justify-items: center; text-align: center; } }


/* ===================== IMPRESSUM: legal accordion ===================== */
.legal-acc { display: grid; gap: 6px; margin-top: 4px; }
.legal-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; }
.legal-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: none; border: 0; cursor: pointer;
  font: inherit; font-weight: 600; font-size: .95rem; color: var(--ink);
  text-align: start; padding: 12px 14px;
}
.legal-head:hover { background: var(--surface-2); }
.legal-chev { color: var(--accent); font-size: 1rem; transition: transform .18s; flex: 0 0 auto; }
.legal-item.open .legal-chev { transform: rotate(45deg); }
.legal-body { display: none; padding: 0 14px 14px; }
.legal-item.open .legal-body { display: block; }
.legal-body p { font-size: .88rem; line-height: 1.55; color: var(--muted); margin: 0 0 .8em; }
.legal-body p:last-child { margin-bottom: 0; }

/* Datenschutzerklaerung: Listen, Zwischenueberschriften, Speicherschluessel */
.legal-body ul { margin: 0 0 .8em; padding-inline-start: 1.2em; }
.legal-body li { font-size: .88rem; line-height: 1.55; color: var(--muted); margin-bottom: .35em; }
.legal-body code {
  font-family: 'JetBrains Mono', monospace; font-size: .82em;
  background: var(--surface-2); padding: 1px 5px; border-radius: 4px; color: var(--ink);
}
.legal-body strong { color: var(--ink); font-weight: 600; }
.legal-body a { color: var(--accent); }
.legal-sub {
  font-size: .88rem; font-weight: 600; color: var(--ink);
  margin: 1.1em 0 .4em;
}
.legal-intro { font-size: .9rem; line-height: 1.6; color: var(--muted); margin: 0 0 16px; }
.legal-pdf { margin: 0 0 16px; }
.legal-pdf .btn { padding: 9px 18px; font-size: .88rem; }
.legal-langnote {
  font-size: .86rem; line-height: 1.55; margin: 0 0 14px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--line); color: var(--muted);
}
/* Noch nicht ausgefuellte Pflichtangabe - darf nicht uebersehen werden */
.legal-todo {
  display: inline-block; background: #fff2c4; color: #6b4a00;
  border: 1px dashed #c9a227; border-radius: 4px;
  padding: 2px 7px; font-size: .85em; font-weight: 600;
}
/* Verweis auf die Datenschutzerklaerung neben den Einwilligungsfeldern */
.privacy-link { color: var(--accent); text-decoration: underline; white-space: nowrap; }


/* ===================== COUNTDOWN TO NEXT PRAYER ===================== */
.countdown {
  margin: 4px 0 18px;
  padding: 20px 22px;
  border-radius: var(--radius-sm);
  background: rgba(240,246,245,.06);
  border: 1px solid rgba(240,246,245,.14);
  display: grid; gap: 10px; justify-items: center;
  text-align: center;
  transition: background .4s, border-color .4s;
}
.cd-label { font-size: .88rem; color: rgba(240,246,245,.72); line-height: 1.4; }
.cd-label strong { color: #e0b070; font-weight: 600; }

.cd-clock {
  display: flex; align-items: flex-start; gap: 4px;
  font-variant-numeric: tabular-nums;
}
.cd-unit { display: grid; justify-items: center; gap: 2px; min-width: 62px; }
.cd-num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 600; line-height: 1;
  color: #f0f6f5;
}
.cd-cap {
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 600;
  color: rgba(240,246,245,.78);
}
.cd-sep {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.05; color: rgba(240,246,245,.68);
}
.cd-secs { color: #e0b070; }

/* within 10 minutes */
.countdown.soon {
  background: rgba(224,176,112,.1);
  border-color: rgba(224,176,112,.4);
}
.cd-soon {
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 700; color: #e0b070;
}

/* prayer time just started */
.countdown.entered {
  background: rgba(18,162,164,.26);
  border-color: rgba(18,162,164,.65);
}
.countdown.entered .cd-label { color: #9fe3e2; font-weight: 600; letter-spacing: .04em; }
.countdown.entered .cd-num, .countdown.entered .cd-secs { color: #fff; }

@media (max-width: 480px) {
  .countdown { padding: 16px 14px; }
  .cd-unit { min-width: 48px; }
}


/* ===================== ISLAM QUIZ ===================== */
.quiz-shell {
  background: rgba(240,246,245,.05);
  border: 1px solid rgba(240,246,245,.14);
  border-radius: var(--radius);
  padding: 32px;
}
@media (max-width: 560px) { .quiz-shell { padding: 20px 16px; } }

/* --- start screen --- */
.quiz-start { display: grid; gap: 28px; }
.q-block-h {
  font-size: .74rem; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 700; color: #7fd4d2; margin-bottom: 12px;
}
.q-lang-row { display: flex; flex-wrap: wrap; gap: 8px; }
.q-lang {
  display: grid; gap: 2px; justify-items: center;
  padding: 10px 18px; border-radius: var(--radius-sm);
  background: rgba(240,246,245,.06);
  border: 1px solid rgba(240,246,245,.16);
  color: #eaf3f2; font: inherit; cursor: pointer;
  transition: all .16s;
}
.q-lang:hover { background: rgba(240,246,245,.12); border-color: rgba(240,246,245,.3); }
.q-lang.on { background: var(--primary-lt); border-color: var(--primary-lt); color: #fff; }
.q-lang-native { font-size: .98rem; font-weight: 600; }
.q-lang-code { font-size: .62rem; letter-spacing: .16em; opacity: .65; }

.q-level-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 640px) { .q-level-row { grid-template-columns: 1fr; } }
.q-level {
  display: grid; gap: 6px; justify-items: start; text-align: start;
  padding: 18px 20px; border-radius: var(--radius-sm);
  background: rgba(240,246,245,.06);
  border: 1px solid rgba(240,246,245,.16);
  color: #eaf3f2; font: inherit; cursor: pointer;
  transition: all .16s;
}
.q-level:hover { background: rgba(240,246,245,.11); border-color: rgba(240,246,245,.32); }
.q-level.on { background: var(--primary-lt); border-color: var(--primary-lt); color: #fff; }
.q-dots { display: flex; gap: 4px; margin-bottom: 2px; }
.q-dots i {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(240,246,245,.25);
}
.q-dots i.fill { background: #e0b070; }
.q-level.on .q-dots i { background: rgba(255,255,255,.35); }
.q-level.on .q-dots i.fill { background: #fff; }
.q-level-n { font-size: 1.12rem; font-weight: 700; font-family: 'Cormorant Garamond', serif; }
.q-level-d { font-size: .84rem; line-height: 1.4; opacity: .78; }
.q-start-btn { justify-self: start; }

/* --- play screen --- */
.quiz-play { display: grid; gap: 22px; }
.q-top { display: flex; align-items: center; gap: 20px; justify-content: space-between; }
.q-progress { flex: 1; min-width: 0; display: grid; gap: 8px; }
.q-count { font-size: .84rem; color: rgba(240,246,245,.72); }
.q-count strong { color: #e0b070; font-size: 1rem; }
.q-bar { height: 4px; border-radius: 99px; background: rgba(240,246,245,.14); overflow: hidden; }
.q-bar span { display: block; height: 100%; background: var(--primary-lt); border-radius: 99px; transition: width .35s; }
.q-pips { display: flex; gap: 3px; flex-wrap: wrap; }
.q-pip {
  width: 100%; max-width: 12px; height: 4px; border-radius: 2px; flex: 1 1 8px;
  background: rgba(240,246,245,.16);
}
.q-pip.ok  { background: #4fbfa8; }
.q-pip.no  { background: #d4574a; }
.q-pip.to  { background: #e0b070; }
.q-pip.cur { background: #f0f6f5; }

.q-timer { position: relative; width: 64px; height: 64px; flex: 0 0 64px; }
.q-ring-bg { fill: none; stroke: rgba(240,246,245,.14); stroke-width: 5; }
.q-ring-fg {
  fill: none; stroke: var(--primary-lt); stroke-width: 5; stroke-linecap: round;
  transition: stroke-dashoffset 1s linear, stroke .3s;
}
.q-timer.warn .q-ring-fg { stroke: #e0b070; }
.q-timer.urgent .q-ring-fg { stroke: #d4574a; }
.q-timer-num {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 600;
  color: #f0f6f5;
}
.q-timer.urgent .q-timer-num { color: #ff8f80; animation: qpulse 1s ease-in-out infinite; }
@keyframes qpulse { 50% { transform: scale(1.14); } }

.q-question {
  font-size: clamp(1.25rem, 2.4vw, 1.8rem); line-height: 1.3;
  color: #f6fbfa; margin: 0; text-wrap: balance;
}
.q-answers { display: grid; gap: 10px; }
.q-answers.three { grid-template-columns: 1fr; }
.q-answer {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px; border-radius: var(--radius-sm);
  background: rgba(240,246,245,.07);
  border: 1px solid rgba(240,246,245,.18);
  color: #eaf3f2; font: inherit; font-size: 1.02rem; text-align: start;
  cursor: pointer; transition: all .16s;
}
.q-answer:hover:not(:disabled) {
  background: rgba(240,246,245,.14); border-color: rgba(240,246,245,.4);
  transform: translateY(-1px);
}
.q-answer:disabled { cursor: default; }
.q-answer.right { background: rgba(79,191,168,.24); border-color: #4fbfa8; color: #fff; }
.q-answer.wrongpick { background: rgba(212,87,74,.22); border-color: #d4574a; color: #fff; }
.q-answer.dim { opacity: .42; }
.q-a-ico { font-size: 1.1rem; font-weight: 700; flex: 0 0 auto; }

.q-feedback {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
  padding: 16px 20px; border-radius: var(--radius-sm);
  border: 1px solid transparent;
}
.q-feedback.ok { background: rgba(79,191,168,.14); border-color: rgba(79,191,168,.4); }
.q-feedback.no { background: rgba(212,87,74,.13); border-color: rgba(212,87,74,.4); }
.q-feedback.to { background: rgba(224,176,112,.14); border-color: rgba(224,176,112,.45); }
.q-fb-line { display: grid; gap: 3px; }
.q-fb-line strong { font-size: 1.02rem; color: #f6fbfa; }
.q-fb-right { font-size: .88rem; color: rgba(240,246,245,.82); }
.q-fb-right b { color: #7fd4d2; }
.q-next { flex: 0 0 auto; }

/* --- result screen --- */
.quiz-result { display: grid; gap: 10px; justify-items: center; text-align: center; }
.q-score-ring { position: relative; width: 140px; height: 140px; }
.q-sr-bg { fill: none; stroke: rgba(240,246,245,.14); stroke-width: 9; }
.q-sr-fg {
  fill: none; stroke: var(--primary-lt); stroke-width: 9; stroke-linecap: round;
  transition: stroke-dashoffset 1.1s cubic-bezier(.22,.9,.25,1);
}
.q-score-mid { position: absolute; inset: 0; display: grid; place-content: center; gap: 0; }
.q-score-n {
  font-family: 'Cormorant Garamond', serif; font-size: 3rem; font-weight: 600;
  line-height: 1; color: #f6fbfa;
}
.q-score-pct { font-size: .8rem; letter-spacing: .14em; color: #e0b070; font-weight: 700; }
.quiz-result h3 { margin: 10px 0 0; }
.q-grade {
  font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-style: italic;
  color: #7fd4d2; margin: 0;
}
.q-of33 { font-size: .92rem; color: rgba(240,246,245,.7); margin: 0; }
.q-stats { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }
.q-stat {
  display: grid; gap: 2px; min-width: 96px;
  padding: 14px 18px; border-radius: var(--radius-sm);
  background: rgba(240,246,245,.06); border: 1px solid rgba(240,246,245,.16);
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(240,246,245,.72);
}
.q-stat-n { font-family: 'Cormorant Garamond', serif; font-size: 1.9rem; font-weight: 600; line-height: 1; }
.q-stat.ok .q-stat-n { color: #4fbfa8; }
.q-stat.no .q-stat-n { color: #d4574a; }
.q-stat.to .q-stat-n { color: #e0b070; }
.q-result-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 20px; }
.btn-ghost-dark {
  background: transparent; color: #eaf3f2;
  border: 1px solid rgba(240,246,245,.35);
}
.btn-ghost-dark:hover { background: rgba(240,246,245,.12); color: #fff; }

/* RTL */
.quiz-shell[dir="rtl"] .q-answer { text-align: right; }
.quiz-shell[dir="rtl"] .q-level { justify-items: end; text-align: right; }


/* ===================== JUBILÄUM 40 JAHRE (jubilaeum.jsx) =====================
   Farben aus dem Jubiläumslogo: Gold #e38e28 (Sonne), Türkis #3d9bb3.
   Nur logische Eigenschaften (inline-start/-end), damit Arabisch (RTL) stimmt. */
:root { --jub-gold: #e38e28; --jub-gold-dk: #9a5a12; --jub-teal: #3d9bb3; }

.jub-hero {
  position: relative; overflow: hidden;
  background:
    repeating-radial-gradient(circle at 88% 30%, transparent 0 34px, rgba(227,142,40,.07) 34px 40px),
    var(--bg);
}
.jub-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.jub-title { color: var(--ink); }
.jub-hero .section-eyebrow { color: var(--jub-gold-dk); }
.jub-lede { font-size: 1.22rem; color: var(--primary-2); font-weight: 600; }
.jub-logo-card {
  margin: 0; padding: clamp(20px, 4vw, 40px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.jub-logo-card img { width: 100%; height: auto; }

.jub-stats {
  list-style: none; padding: 0; margin: 56px 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.jub-stats li { background: var(--bg); padding: 22px 18px; text-align: center; }
.jub-stats strong {
  display: block; font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1; color: var(--jub-gold-dk);
}
.jub-stats span { display: block; margin-top: 8px; font-size: .9rem; color: var(--muted); }

.jub-logo-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.jub-rings { color: var(--jub-gold); max-width: 360px; margin-inline: auto; width: 100%; }
.jub-rings-svg { width: 100%; height: auto; display: block; }
.jub-rings-year { fill: #f6f1e7; font-size: 12px; font-weight: 600; letter-spacing: .06em; }
.jub-rings-core { fill: var(--jub-gold); font-size: 13px; font-weight: 700; }
.jub-logo-sec p { color: rgba(246,241,231,.9); }

.jub-timeline { list-style: none; margin: 0; padding: 0; max-width: 860px; position: relative; }
.jub-timeline::before {
  content: ''; position: absolute; inset-block: 8px; inset-inline-start: 11px;
  width: 2px; background: linear-gradient(var(--jub-gold), var(--jub-teal));
}
.jub-timeline li { position: relative; padding-inline-start: 48px; padding-bottom: 40px; }
.jub-timeline li:last-child { padding-bottom: 0; }
.jub-timeline li::before {
  content: ''; position: absolute; inset-inline-start: 4px; top: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--jub-gold);
}
.jub-timeline li.is-founding::before { background: var(--jub-gold); box-shadow: 0 0 0 6px rgba(227,142,40,.22); }
.jub-year {
  display: inline-block; padding: 2px 12px; border-radius: 999px;
  background: rgba(227,142,40,.14); color: var(--jub-gold-dk);
  font-weight: 700; font-size: .85rem; letter-spacing: .06em;
}
.jub-timeline li.is-founding .jub-year { background: var(--jub-gold); color: #fff; }
/* Scroll-Fortschritt (JUB_Timeline): graue Schiene, farbige Füllung bis
   --jub-fill (setzt das Skript beim Scrollen), erreichte Punkte und
   Jahreszahlen werden gefüllt. */
.jub-timeline.is-progress::before { background: var(--line); }
.jub-timeline.is-progress::after {
  content: ''; position: absolute; top: 8px; inset-inline-start: 10px;
  width: 4px; border-radius: 2px;
  height: min(var(--jub-fill, 0px), calc(100% - 16px));
  background: linear-gradient(var(--jub-gold), var(--jub-teal));
  box-shadow: 0 0 10px rgba(227,142,40,.45);
}
.jub-timeline.is-progress li::before { z-index: 1; transition: background .3s, box-shadow .3s, transform .3s; }
.jub-timeline.is-progress li.is-reached::before {
  background: var(--jub-gold); transform: scale(1.15);
  box-shadow: 0 0 0 6px rgba(227,142,40,.22);
}
.jub-timeline.is-progress li .jub-year { transition: background .3s, color .3s; }
.jub-timeline.is-progress li.is-reached .jub-year { background: var(--jub-gold); color: #fff; }
@media (prefers-reduced-motion: reduce) {
  .jub-timeline.is-progress li::before, .jub-timeline.is-progress li .jub-year { transition: none; }
}
.jub-timeline h3 { margin: 10px 0 8px; font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.jub-timeline p { margin: 0 0 12px; }

.jub-people { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.jub-people-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.jub-people-card h3 { color: var(--primary-2); }
.jub-people-card ul { list-style: none; padding: 0; margin: 12px 0 0; }
.jub-people-card li { display: flex; gap: 16px; padding: 9px 0; border-top: 1px solid var(--line); }
.jub-people-card li span { flex: 0 0 3.2em; font-weight: 700; color: var(--jub-gold-dk); font-variant-numeric: tabular-nums; }
.jub-note { margin: 16px 0 0; font-size: .88rem; color: var(--muted); }
/* (rh.) = rahimahullah hinter verstorbenen Vorsitzenden — ersetzt das christliche † */
.jub-rh { font-size: .85em; color: var(--muted); text-decoration: none; cursor: help; white-space: nowrap; }

.jub-thanks {
  background: var(--surface); border-radius: var(--radius); padding: 32px;
  border-top: 5px solid var(--jub-gold);
}
.jub-thanks img { width: 150px; height: auto; margin-bottom: 18px; }
.jub-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.jub-source {
  margin: 56px 0 0; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: .88rem; color: var(--muted); max-width: 860px;
}

.jub-banner {
  background:
    repeating-radial-gradient(circle at 12% 50%, transparent 0 30px, rgba(227,142,40,.08) 30px 36px),
    #fff;
  border-block: 1px solid var(--line);
  padding-block: 28px;
}
.jub-banner-inner { display: flex; align-items: center; gap: 32px; }
.jub-banner-inner img { width: 150px; height: auto; flex: 0 0 auto; }
.jub-banner-text { flex: 1; }
.jub-banner-text h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0 0 4px; }
.jub-banner-text p { margin: 0; color: var(--muted); }

[dir="rtl"] .jub-timeline h3, [dir="rtl"] .jub-people-card h3, [dir="rtl"] .jub-thanks h3,
[dir="rtl"] .jub-banner-text h2, [dir="rtl"] .jub-stats strong { font-family: 'Noto Naskh Arabic', 'Cormorant Garamond', serif; }
[dir="rtl"] .jub-year { letter-spacing: 0; }

@media (max-width: 860px) {
  .jub-hero-grid, .jub-logo-grid, .jub-people { grid-template-columns: 1fr; gap: 32px; }
  .jub-stats { grid-template-columns: repeat(2, 1fr); margin-top: 36px; }
  .jub-rings { max-width: 260px; }
  .jub-banner-inner { flex-wrap: wrap; gap: 18px; }
  .jub-banner-inner img { width: 110px; }
  .jub-banner-text { flex-basis: 60%; }
}
@media (max-width: 480px) {
  .jub-timeline li { padding-inline-start: 38px; }
  .jub-people-card, .jub-thanks { padding: 22px; }
}

/* Link zur Satzung im Mitgliedsantrag (steht im Häkchen-Text) */
.satzung-link { white-space: nowrap; }

/* ===== Freitagspredigt (hutbe.jsx) ===== */
.hut-container { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; align-items: start; }
.hut-artikel { max-width: 760px; transition: opacity .2s; }
.hut-artikel.hut-laedt { opacity: .5; }
.hut-artikel .section-head { text-align: left; margin-left: 0; }
.hut-status { color: var(--muted); }
.hut-umschalter { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; margin: 4px 0 18px; background: var(--surface); }
.hut-umschalter button { border: 0; background: transparent; font: inherit; padding: 7px 18px; border-radius: 999px; cursor: pointer; color: var(--ink); }
.hut-umschalter button.aktiv { background: var(--primary); color: #f6f1e7; }
.hut-hinweis { color: var(--muted); font-style: italic; margin: 0 0 12px; }
.hut-aktionen { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.hut-audio { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 24px; padding: 12px 16px;
  background: var(--surface); border-radius: var(--radius-sm); font-size: .93rem; color: var(--muted); }
.hut-audio audio { width: 100%; max-width: 420px; height: 40px; }
.hut-text { font-size: 1.06rem; line-height: 1.75; }
.hut-text p { margin: 0 0 1.05em; text-align: justify; hyphens: auto; }
.hut-text p strong { color: var(--primary-2); }
.hut-text .hut-ar { text-align: center; font-size: 1.45rem; line-height: 2.1; color: var(--ink); margin: 0 0 1.2em;
  font-family: 'Amiri', 'Scheherazade New', 'Noto Naskh Arabic', serif; }
.hut-text hr { border: 0; border-top: 1px solid var(--line); margin: 1.6em 0 1em; }
.hut-text .hut-quellen { font-size: .85rem; line-height: 1.6; color: var(--muted); text-align: left; }
.hut-text sup { font-size: .7em; color: var(--accent); }
.hut-tr { padding: 22px; background: var(--surface); border-radius: var(--radius); }
.hut-tr p { margin: 0 0 14px; }
.hut-quelle { margin-top: 28px; font-size: .88rem; }
.hut-quelle a { color: var(--muted); }
.hut-archiv { position: sticky; top: 110px; }
.hut-archiv h3 { margin: 0 0 12px; font-size: 1.1rem; }
.hut-archiv ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.hut-archiv li button { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line);
  background: transparent; font: inherit; padding: 10px 6px; cursor: pointer; color: var(--ink); line-height: 1.35; }
.hut-archiv li button:hover { background: var(--surface); }
.hut-archiv li button.aktiv { color: var(--primary); font-weight: 600; }
.hut-archiv-datum { display: block; font-size: .8rem; color: var(--muted); font-weight: 400; }
.hut-mehr { margin-top: 10px; border: 0; background: transparent; color: var(--primary); font: inherit; cursor: pointer; padding: 4px 0; }
@media (max-width: 900px) {
  .hut-container { grid-template-columns: 1fr; gap: 28px; }
  .hut-archiv { position: static; }
  .hut-text p { text-align: left; }
}

/* ===================== TERMINE (termine.jsx) ===================== */
.trm-k-gemeinde { --trm: var(--accent); }
.trm-k-islam { --trm: var(--primary); }
.trm-k-nrw { --trm: #8a6d1f; }
.trm-k-niedersachsen { --trm: #5b5f97; }
.trm-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; align-items: start; }
.trm .section-head { margin-bottom: 36px; }
.trm-leiste { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 14px; }
.trm-umschalter { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface); }
.trm-umschalter button { border: 0; background: transparent; font: inherit; padding: 7px 18px; border-radius: 999px; cursor: pointer; color: var(--ink); }
.trm-umschalter button.aktiv { background: var(--primary); color: #f6f1e7; }
.trm-nav { display: flex; align-items: center; gap: 8px; }
.trm-nav strong { min-width: 170px; text-align: center; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.45rem; font-weight: 600; }
.trm-nav button { border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; border-radius: 999px;
  min-width: 38px; height: 38px; cursor: pointer; font-size: 1.2rem; line-height: 1; }
.trm-nav button:hover { border-color: var(--primary); color: var(--primary); }
.trm-nav .trm-heute-btn { font-size: .88rem; padding: 0 14px; }
.trm-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.trm-filter-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--muted);
  font: inherit; font-size: .9rem; padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.trm-filter-btn i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--trm); }
.trm-filter-btn.aktiv { color: var(--ink); border-color: var(--trm); }
.trm-filter-btn.aktiv i { background: var(--trm); }
.trm-status, .trm-hinweis { color: var(--muted); margin: 18px 0; }
.trm-hinweis { font-style: italic; }

.trm-raster { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--line); gap: 1px; }
.trm-kopf { background: var(--surface); text-align: center; padding: 8px 4px; font-size: .74rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); font-weight: 600; }
.trm-zelle { background: var(--bg); min-height: 96px; padding: 6px 6px 8px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.trm-zelle.trm-leer { background: var(--surface); opacity: .55; }
.trm-zelle.trm-in-ferien { background: #f3ecd6; }
.trm-zelle.trm-in-ramadan { box-shadow: inset 0 -4px 0 rgba(10,117,124,.45); }
.trm-nr { font-size: .9rem; font-weight: 600; color: var(--muted); align-self: flex-start; min-width: 26px; height: 26px;
  display: grid; place-items: center; border-radius: 50%; }
.trm-ist-feiertag .trm-nr { color: var(--accent-2); }
.trm-heute .trm-nr { background: var(--primary); color: #f6f1e7; }
.trm-eintraege { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.trm-chip { display: flex; align-items: center; gap: 5px; font-size: .74rem; line-height: 1.25; color: var(--ink); min-width: 0;
  background: color-mix(in srgb, var(--trm) 13%, transparent); border-radius: 4px; padding: 2px 5px; }
.trm-chip i { flex: 0 0 6px; height: 6px; border-radius: 50%; background: var(--trm); }
.trm-chip b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trm-rest { font-size: .72rem; color: var(--muted); }

.trm-liste { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.trm-monatskopf { margin-top: 18px; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.4rem; font-weight: 600; color: var(--primary-2);
  border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.trm-monatskopf:first-child { margin-top: 0; }
.trm-zeile { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 16px; align-items: start; background: var(--bg);
  border: 1px solid var(--line); border-left: 4px solid var(--trm); border-radius: var(--radius-sm); padding: 12px 16px 12px 12px; }
.trm-zeile.trm-ferien { background: #f8f3e4; }
.trm-datum { display: grid; justify-items: center; line-height: 1.05; padding-top: 2px; }
.trm-datum-tag { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 2rem; font-weight: 600; color: var(--ink); }
.trm-datum-monat { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.trm-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: baseline; font-size: .84rem; color: var(--muted); }
.trm-uhr { color: var(--ink); font-weight: 600; }
.trm-marke { margin-inline-start: auto; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--trm); font-weight: 600; }
.trm-inhalt h4 { margin: 2px 0 0; font-size: 1.18rem; font-family: 'Cormorant Garamond', Georgia, serif; }
.trm-sub, .trm-ort, .trm-text { margin: 2px 0 0; font-size: .9rem; color: var(--muted); line-height: 1.45; }
.trm-ort::before { content: '⌖ '; color: var(--trm); }
.trm-text { white-space: pre-line; }
.trm-quelle { margin-top: 26px; font-size: .82rem; color: var(--muted); }

.trm-abo { position: sticky; top: 120px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; }
.trm-abo h3 { margin: 0 0 8px; }
.trm-abo > p { font-size: .92rem; color: var(--muted); margin: 0 0 14px; line-height: 1.5; }
.trm-abo ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.trm-abo li { background: var(--bg); border: 1px solid var(--line); border-left: 4px solid var(--trm); border-radius: var(--radius-sm); padding: 12px 14px; }
.trm-abo-name { font-weight: 600; display: flex; align-items: center; gap: 8px; line-height: 1.3; }
.trm-abo-name i { flex: 0 0 9px; height: 9px; border-radius: 50%; background: var(--trm); }
.trm-abo-text { font-size: .84rem; color: var(--muted); margin: 2px 0 10px; line-height: 1.4; }
.trm-abo-aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.trm-abo-aktionen .btn { padding: 7px 16px; font-size: .88rem; }
.trm-link { border: 0; background: transparent; padding: 0; font: inherit; font-size: .84rem; color: var(--primary-2); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.trm-link:hover { color: var(--accent-2); }
.trm-abo-url { width: 100%; margin-top: 10px; padding: 7px 9px; font: inherit; font-size: .8rem; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); }
.trm-abo .trm-abo-hinweis { font-size: .8rem; margin: 14px 0 0; }

@media (max-width: 1000px) {
  .trm-layout { grid-template-columns: 1fr; gap: 36px; }
  .trm-abo { position: static; }
}
@media (max-width: 720px) {
  .trm-zelle { min-height: 54px; padding: 4px; align-items: center; }
  .trm-nr { align-self: center; }
  .trm-eintraege { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 3px; }
  .trm-chip { background: transparent; padding: 0; }
  .trm-chip b, .trm-rest { display: none; }
  .trm-chip i { flex-basis: 7px; height: 7px; width: 7px; }
  .trm-nav strong { min-width: 0; flex: 1; font-size: 1.25rem; }
  .trm-leiste { justify-content: center; }
  .trm-nav { width: 100%; }
  .trm-marke { display: none; }
}

/* ===================== NEWSLETTER (mitmachen.jsx) ===================== */
/* Startseite: das Feld folgt auf den getönten Abschnitt „Bereiche“ und braucht oben Luft; auf der Terminseite
   schließt es an einen Abschnitt gleicher Farbe an, der schon Abstand mitbringt. */
.page-section.nl { padding: 56px 0 72px; }
.subpage .page-section.nl { padding-top: 0; }
.nl-karte { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 36px; align-items: center; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 40px; box-shadow: var(--shadow-sm); }
.nl-text h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.nl-text p { color: var(--muted); margin: 0; }
.nl-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; position: relative; }
.nl-form .nl-zustimmung, .nl-form .form-error { grid-column: 1 / -1; }
.nl-form .btn { grid-column: 1 / -1; justify-self: start; }
.nl-form .btn[disabled] { opacity: .6; cursor: progress; }
.nl-form .checkbox-row { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: .9rem; margin: 0; cursor: pointer; }
.nl-ok { align-self: center; }
@media (max-width: 860px) {
  .nl-karte { grid-template-columns: 1fr; padding: 26px 22px; gap: 20px; }
  .nl-form { grid-template-columns: 1fr; }
}

/* ===================== WOCHENSPRUCH + VEFAT (gemeinde.jsx) ===================== */
.hadith-label { font-size: .78rem; letter-spacing: .28em; text-transform: uppercase; color: #d9b88a; font-weight: 600; margin-bottom: 14px; }
.vef-container { max-width: 900px; }
.vef-vorschau { margin-bottom: 28px; }
.vef-kopf { text-align: center; margin-left: auto; margin-right: auto; }
.vef-ayet-ar { font-family: 'Amiri', 'Scheherazade New', 'Noto Naskh Arabic', serif; font-size: 2rem; line-height: 1.9; margin: 0; color: var(--primary-2); }
.vef-ayet { font-style: italic; color: var(--muted); margin: 0 0 26px; }
.vef-liste { display: grid; gap: 18px; }
.vef-karte { position: relative; background: var(--bg); border: 1px solid var(--line); border-top: 4px solid var(--ink); border-radius: var(--radius); padding: 26px 30px; }
.vef-karte h3 { margin: 0; font-size: 1.6rem; }
.vef-rh { font-family: 'Source Sans 3', system-ui, sans-serif; font-size: .8rem; font-weight: 400; color: var(--muted); }
.vef-person { color: var(--muted); margin: 2px 0 14px; }
.vef-karte dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 22px; margin: 0; }
.vef-karte dt { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding-top: 3px; }
.vef-karte dd { margin: 0; }
.vef-hinweis { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-style: italic; color: var(--muted); }
.vef-muster { position: absolute; top: 14px; inset-inline-end: 16px; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
  background: #f4e7b8; color: #6b5510; border-radius: 4px; padding: 2px 8px; font-weight: 600; }
.vef-melden { margin-top: 36px; background: var(--surface); border-radius: var(--radius); padding: 24px 28px; }
.vef-melden h3 { margin: 0 0 6px; }
.vef-melden p { color: var(--muted); margin: 0 0 8px; }
@media (max-width: 620px) { .vef-karte dl { grid-template-columns: 1fr; gap: 0; } .vef-karte dd { margin-bottom: 8px; } .vef-karte { padding: 22px 20px; } }

/* ===================== RAMADAN (ramadan.jsx) ===================== */
.rmd-kopf-raster { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.rmd-kopf .section-head { margin-bottom: 0; }
.rmd-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.page-section.dark .rmd-links a.btn { color: #fff; }
.rmd-cd { background: rgba(246,241,231,.07); border: 1px solid rgba(246,241,231,.18); border-radius: var(--radius); padding: 28px 26px; text-align: center; }
.rmd-cd-zahlen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; direction: ltr; }
.rmd-cd-teil { display: grid; gap: 2px; background: rgba(0,0,0,.16); border-radius: var(--radius-sm); padding: 14px 4px 10px; }
.rmd-cd-zahl { font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 600; line-height: 1; color: #f6f1e7;
  font-variant-numeric: tabular-nums; }
.rmd-cd-name { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(246,241,231,.7); }
.rmd-cd-ziel { margin: 14px 0 16px; font-size: 1.05rem; color: #d9b88a; font-weight: 600; }
.rmd-cd-daten { margin: 0; display: grid; gap: 6px; text-align: start; border-top: 1px solid rgba(246,241,231,.16); padding-top: 14px; }
.rmd-cd-daten > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 14px; }
.rmd-cd-daten dt { color: rgba(246,241,231,.7); font-size: .88rem; }
.rmd-cd-daten dd { margin: 0; color: #f6f1e7; font-weight: 600; font-size: .95rem; }
.rmd-cd-daten em { font-style: normal; font-weight: 400; color: #d9b88a; }
.rmd-cd-tag { margin: 12px 0 0; color: #f6f1e7; }
.rmd-cd-quelle { margin: 12px 0 0; font-size: .76rem; color: rgba(246,241,231,.55); }
.rmd-cd-fest p { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.6rem; color: #f6f1e7; margin: 0; line-height: 1.35; }
.rmd-container { max-width: 900px; }
.rmd-tabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.rmd-tabs button { border: 0; background: transparent; font: inherit; font-size: 1.02rem; padding: 10px 18px; cursor: pointer; color: var(--muted);
  border-bottom: 3px solid transparent; margin-bottom: -1px; }
.rmd-tabs button:hover { color: var(--ink); }
.rmd-tabs button.aktiv { color: var(--primary-2); border-bottom-color: var(--accent); font-weight: 600; }
.rmd-h { font-size: 1.7rem; margin: 0 0 18px; }
.rmd-akk { border-bottom: 1px solid var(--line); }
.rmd-akk button { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; border: 0; background: transparent;
  font: inherit; font-size: 1.08rem; font-weight: 600; color: var(--ink); text-align: start; padding: 16px 4px; cursor: pointer; }
.rmd-akk button i { font-style: normal; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.rmd-akk.offen button { color: var(--primary-2); }
.rmd-akk p { margin: 0 4px 20px; line-height: 1.7; }
.rmd-tipps { list-style: none; counter-reset: tipp; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rmd-tipps li { counter-increment: tipp; background: var(--surface); border-radius: var(--radius); padding: 20px 22px 20px 62px; position: relative; }
.rmd-tipps li::before { content: counter(tipp); position: absolute; inset-inline-start: 18px; top: 16px; font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem; font-weight: 600; color: var(--accent); line-height: 1; }
.rmd-tipps h4 { margin: 0 0 4px; font-size: 1.08rem; font-family: inherit; font-weight: 600; }
.rmd-tipps p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.55; }
.rmd-geschichte { padding: 0 0 26px; margin: 0 0 26px; border-bottom: 1px solid var(--line); }
.rmd-geschichte:last-child { border-bottom: 0; }
.rmd-geschichte h4 { font-size: 1.5rem; font-family: 'Cormorant Garamond', Georgia, serif; margin: 0 0 8px; color: var(--primary-2); }
.rmd-geschichte p { font-size: 1.06rem; line-height: 1.75; margin: 0; }
.rmd-rezepte { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.rmd-rezept { background: var(--bg); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 24px 26px; }
.rmd-rezept h4 { font-size: 1.4rem; font-family: 'Cormorant Garamond', Georgia, serif; margin: 0; }
.rmd-rezept-info { color: var(--muted); font-size: .88rem; margin: 2px 0 14px; }
.rmd-rezept h5 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 14px 0 6px; }
.rmd-rezept ul, .rmd-rezept ol { margin: 0; padding-inline-start: 20px; font-size: .96rem; line-height: 1.55; }
.rmd-rezept ol li { margin-bottom: 6px; }
.rmd-banner-sec { padding: 40px 0 0; }
.rmd-banner { display: flex; align-items: center; gap: 18px; max-width: 860px; margin: 0 auto; padding: 18px 26px; border-radius: var(--radius);
  background: var(--primary-2); color: #f6f1e7; box-shadow: var(--shadow-sm); }
.rmd-banner:hover { color: #fff; background: var(--primary); }
.rmd-banner-mond { font-size: 2.2rem; line-height: 1; color: #d9b88a; }
.rmd-banner-text { display: grid; flex: 1; line-height: 1.35; }
.rmd-banner-text strong { font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: #d9b88a; }
.rmd-banner-text span { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.45rem; }
.rmd-banner-mehr { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; white-space: nowrap; }
@media (max-width: 900px) {
  .rmd-kopf-raster { grid-template-columns: 1fr; gap: 30px; }
  .rmd-tipps, .rmd-rezepte { grid-template-columns: 1fr; }
  .rmd-banner { flex-wrap: wrap; }
  .rmd-banner-mehr { flex-basis: 100%; }
}
/* Kopfzeile: „Termine" passt erst ab breiten Bildschirmen neben die übrigen Punkte */
@media (max-width: 1439px) { .nav-links .nav-breit { display: none; } }
.nl-form .checkbox-row { display: flex; }
.nl-form .checkbox-row input { width: auto; padding: 0; flex: 0 0 auto; }

/* ===== Tagestext unter den Gebetszeiten (tagestext.jsx, Quelle nur diyanet.gov.tr) ===== */
.tt-block { margin-top: 28px; }
.tt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tt-karte {
  margin: 0; padding: 22px 24px; display: flex; flex-direction: column; gap: 10px;
  background: rgba(246,241,231,.05); border: 1px solid rgba(246,241,231,.18); border-radius: var(--radius);
}
.tt-kopf { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(246,241,231,.7); }
.tt-text { margin: 0; font-size: 1.02rem; line-height: 1.6; color: #f6f1e7; overflow-wrap: anywhere; }
.tt-beleg { margin-top: auto; font-size: .84rem; color: rgba(246,241,231,.6); text-align: right; }
.tt-fuss { margin-top: 12px; font-size: .84rem; color: rgba(246,241,231,.55); }
.tt-fuss a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.tt-fuss a:hover { color: #f6f1e7; }
@media (max-width: 900px) { .tt-grid { grid-template-columns: minmax(0, 1fr); } }
.tt-fuss-spruch { margin-top: 22px; }

/* ===== Startseite: Block „Aktuell" (app.jsx StartAktuell; Felder aus termine.jsx und hutbe.jsx) =====
   Drei gleich hohe Felder nebeneinander; fehlt eines (keine Termine, keine Predigt), teilen sich die übrigen die Breite. */
section.start-aktuell { padding-top: 40px; padding-bottom: 44px; }
.start-raster { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 18px; align-items: stretch; }
.start-panel { display: flex; flex-direction: column; min-width: 0; padding: 22px 24px 20px; background: #fbf8f1;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.start-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 14px;
  padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.start-kopf h3 { margin: 0; font-size: 1.28rem; line-height: 1.2; }
.start-kopf a, .start-fuss a { font-size: .76rem; letter-spacing: .13em; text-transform: uppercase; font-weight: 600;
  color: var(--accent-2); white-space: nowrap; }
.start-kopf a:hover, .start-fuss a:hover { text-decoration: underline; text-underline-offset: 3px; }
.start-kopf-datum { font-size: .86rem; color: var(--muted); white-space: nowrap; }

/* Gebetszeiten: das dunkle Feld – setzt den Schwerpunkt der Reihe */
.start-gebet { background: var(--primary-2); border-color: var(--primary-2); color: #f6f1e7; }
.start-gebet .start-kopf { border-bottom-color: rgba(246,241,231,.18); }
.start-gebet .start-kopf h3 { color: #f6f1e7; }
.start-gebet .start-kopf a { color: #d9b88a; }
.start-gebet-datum { font-size: .86rem; color: rgba(246,241,231,.72); margin-bottom: 12px; }
.start-gebet-raster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.start-gebet-zelle { display: flex; flex-direction: column; gap: 2px; padding: 9px 10px; border-radius: var(--radius-sm);
  background: rgba(246,241,231,.07); border: 1px solid rgba(246,241,231,.12); min-width: 0; }
.start-gebet-zelle .lbl { display: flex; flex-direction: column; font-size: .8rem; font-weight: 600; line-height: 1.2;
  color: rgba(246,241,231,.92); min-width: 0; }
.start-gebet-zelle .lbl small { font-size: .66rem; font-weight: 400; letter-spacing: .03em; color: rgba(246,241,231,.62);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.start-gebet-zelle .tm { margin-top: 3px; font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 600; line-height: 1.05;
  font-variant-numeric: tabular-nums; }
.start-gebet-zelle.sun .tm { color: rgba(246,241,231,.6); }
.start-gebet-zelle.next { background: var(--accent); border-color: var(--accent); }
.start-gebet-zelle.next .lbl, .start-gebet-zelle.next .lbl small { color: rgba(255,255,255,.92); }
.start-gebet-naechstes { margin-top: auto; padding-top: 14px; font-size: .88rem; color: rgba(246,241,231,.78); }
.start-gebet-naechstes strong { color: #d9b88a; font-weight: 600; }

/* Termine */
.start-terminliste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.start-terminliste li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: center; }
.start-datum { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 5px 0 4px;
  border-radius: var(--radius-sm); background: var(--surface); border-left: 3px solid var(--trm, var(--primary)); }
.start-datum span { font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; font-weight: 600; line-height: 1; }
.start-datum small { font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.start-termin-text { display: flex; flex-direction: column; min-width: 0; }
.start-termin-text strong { font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.start-termin-text span { font-size: .84rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Freitagspredigt */
.start-predigt h4 { margin: 0 0 8px; font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 600; line-height: 1.2; }
.start-predigt p { margin: 0 0 14px; color: var(--muted); font-size: .93rem; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.start-fuss { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px 18px; }

[dir="rtl"] .start-datum { border-left: 0; border-right: 3px solid var(--trm, var(--primary)); }

@media (max-width: 1040px) {
  .start-raster { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .start-gebet { grid-column: 1 / -1; }
  .start-gebet-raster { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  section.start-aktuell { padding-top: 28px; padding-bottom: 32px; }
  .start-raster { grid-template-columns: minmax(0, 1fr); }
  .start-gebet-raster { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .start-panel { padding: 18px 18px 16px; }
}
/* niedriges Fenster: der Hinweis „Entdecken" säße sonst direkt unter den Knöpfen des Titelbilds */
@media (max-height: 860px) { .hero-scroll-hint { display: none; } }

/* ===== Muslimische Bestattung (#/bestattung, bestattung.jsx) ===== */
.bst-not { background: rgba(246,241,231,.07); border: 1px solid rgba(246,241,231,.18); border-radius: var(--radius); padding: 26px 26px 20px; }
.bst-not h3 { margin: 0 0 14px; font-size: 1.5rem; }
.bst-not ol { list-style: none; counter-reset: bstnot; margin: 0; padding: 0; display: grid; gap: 14px; }
.bst-not li { counter-increment: bstnot; position: relative; padding-inline-start: 40px; }
.bst-not li::before { content: counter(bstnot); position: absolute; inset-inline-start: 0; top: 0; width: 27px; height: 27px; border-radius: 50%;
  display: grid; place-items: center; background: #d9b88a; color: #1b2225; font-weight: 700; font-size: .9rem; }
.bst-not strong { color: #f6f1e7; font-size: 1.04rem; }
.bst-not p { margin: 2px 0 0; color: rgba(246,241,231,.8); font-size: .94rem; line-height: 1.5; }
.page-section.dark a.bst-tel { display: inline-flex; align-items: baseline; gap: 10px; margin-top: 8px; padding: 7px 14px; border-radius: 999px;
  background: rgba(0,0,0,.22); border: 1px solid rgba(246,241,231,.2); color: #f6f1e7; text-decoration: none; }
.page-section.dark a.bst-tel:hover { background: rgba(0,0,0,.38); }
.bst-tel span { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #d9b88a; }
.bst-tel strong { font-size: 1.08rem; white-space: nowrap; }
.bst-wege { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.bst-weg { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 28px 28px 22px; box-shadow: var(--shadow-sm); }
.bst-weg + .bst-weg { border-top-color: var(--primary); }
.bst-kicker { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--accent); }
.bst-weg + .bst-weg .bst-kicker { color: var(--primary); }
.bst-weg h3 { margin: 6px 0 10px; font-size: 1.65rem; line-height: 1.2; }
.bst-weg > p { margin: 0 0 6px; line-height: 1.65; }
.bst-fakten { margin: 14px 0 0; }
.bst-fakten > div { padding: 12px 0; border-top: 1px solid var(--line); }
.bst-fakten dt { font-weight: 600; color: var(--primary-2); margin-bottom: 2px; }
.bst-fakten dd { margin: 0; line-height: 1.6; }
.bst-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.bst-kontakt { margin: 16px 0 0 !important; font-size: .93rem; color: var(--muted); }
.bst-hinweis { margin: 14px 0 0 !important; font-size: .84rem; color: var(--muted); line-height: 1.5; }
.bst-schmal { max-width: 900px; }
.bst-schritte { list-style: none; counter-reset: bstschritt; margin: 0; padding: 0; display: grid; gap: 14px; }
.bst-schritte li { counter-increment: bstschritt; position: relative; background: var(--bg); border-radius: var(--radius); padding: 22px 26px 22px 76px; }
.bst-schritte li::before { content: counter(bstschritt); position: absolute; inset-inline-start: 24px; top: 18px;
  font-family: 'Cormorant Garamond', Georgia, serif; font-size: 2.4rem; font-weight: 600; color: var(--accent); line-height: 1; }
.bst-schritte h3 { margin: 0 0 6px; font-size: 1.4rem; }
.bst-schritte p { margin: 0; line-height: 1.7; }
[dir="rtl"] .bst-schritte li { padding: 22px 76px 22px 26px; }
.bst-schluss { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.bst-gast, .bst-frage { background: var(--surface); border-radius: var(--radius); padding: 24px 26px; }
.bst-gast h3, .bst-frage h3 { margin: 0 0 10px; font-size: 1.35rem; }
.bst-gast ul { margin: 0; padding-inline-start: 20px; line-height: 1.65; }
.bst-gast li { margin-bottom: 6px; }
.bst-frage p { margin: 0; line-height: 1.6; }
@media (max-width: 900px) {
  .bst-wege, .bst-schluss { grid-template-columns: 1fr; }
  .bst-weg { padding: 22px 20px 18px; }
  .bst-schritte li { padding: 58px 20px 20px; }
  [dir="rtl"] .bst-schritte li { padding: 58px 20px 20px; }
  .bst-schritte li::before { inset-inline-start: 20px; top: 16px; }
}

/* ===== Opferfest (#/opferfest, opferfest.jsx) — nutzt sonst .bst-* und .rmd-* ===== */
.opf-termin h3 { font-size: .8rem; font-family: inherit; letter-spacing: .2em; text-transform: uppercase; color: #d9b88a; margin: 0 0 10px; }
.opf-termin p.opf-datum { font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.2; color: #f6f1e7; margin: 0 0 18px; }
.opf-termin p.opf-gruss { margin: 14px 0 0; color: #f6f1e7; font-weight: 600; }
.opf-text p { font-size: 1.08rem; line-height: 1.75; margin: 0 0 16px; }
.opf-erzaehlung p { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.36rem; line-height: 1.6; }
.opf-erzaehlung p:first-child::first-letter { font-size: 3.1em; float: inline-start; line-height: .86; padding-inline-end: 8px; color: var(--accent); font-weight: 600; }
.opf-schritte { list-style: none; counter-reset: opf; margin: 16px 0 4px; padding: 0; display: grid; gap: 12px; }
.opf-schritte li { counter-increment: opf; position: relative; padding-inline-start: 42px; }
.opf-schritte li::before { content: counter(opf); position: absolute; inset-inline-start: 0; top: 1px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--primary); color: #fff; font-weight: 700; font-size: .92rem; }
.opf-schritte strong { display: block; }
.opf-schritte span { display: block; line-height: 1.6; }
.bst-gast.opf-hell, .bst-frage.opf-hell { background: var(--bg); }
.bst-gast.opf-hell p { margin: 0; line-height: 1.6; }

/* ===== Themen (#/themen, themen.jsx) — nutzt sonst .bst-* / .opf-* / .rmd-* ===== */
.thm-kopf .section-head { margin-bottom: 0; max-width: 820px; }
.thm-kopf-klein { padding-top: 56px; padding-bottom: 48px; }
.thm-gruppe + .thm-gruppe { margin-top: 44px; }
.thm-gruppe-h { font-size: .8rem; font-family: inherit; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.thm-karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
a.thm-karte { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px 16px; color: var(--ink); text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s, border-color .15s; }
a.thm-karte:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--primary-lt); color: var(--ink); }
.thm-karte strong { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.36rem; font-weight: 600; line-height: 1.2; }
.thm-karte span { color: var(--muted); font-size: .95rem; line-height: 1.5; flex: 1; }
.thm-karte em { font-style: normal; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--primary); margin-top: 6px; }
.thm-artikel > :first-child { margin-top: 0; }
.thm-p { font-size: 1.08rem; line-height: 1.75; margin: 0 0 18px; }
.thm-h { font-size: 1.55rem; margin: 34px 0 12px; }
.thm-liste { margin: 0 0 18px; padding-inline-start: 22px; line-height: 1.7; }
.thm-liste li { margin-bottom: 6px; }
.thm-kasten { background: var(--surface); border-inline-start: 4px solid var(--accent); border-radius: var(--radius-sm); padding: 16px 20px; margin: 20px 0; line-height: 1.65; }
.thm-fakten { margin: 0 0 20px; }
.thm-fakten > div:first-child { border-top: 0; padding-top: 0; }
.thm-schritte { margin: 0 0 20px; }
.thm-links { margin: 22px 0 6px; }
.thm-tabelle-rahmen { overflow-x: auto; margin: 0 0 20px; }
.thm-tabelle { width: 100%; border-collapse: collapse; font-size: .97rem; }
.thm-tabelle th { text-align: start; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 8px 12px 8px 0; border-bottom: 2px solid var(--line); }
.thm-tabelle td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.5; }
.thm-tabelle td:first-child { font-weight: 600; }
.thm-termine { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 0; }
.thm-termine li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 18px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.thm-termine strong { font-size: 1.05rem; }
.thm-termine span { grid-column: 1; color: var(--muted); font-size: .92rem; }
.thm-termine em { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-style: normal; font-weight: 600; color: var(--primary-2); text-align: end; }
@media (max-width: 640px) {
  .thm-termine li { grid-template-columns: 1fr; }
  .thm-termine em { grid-column: 1; grid-row: auto; text-align: start; }
}
@media (max-width: 640px) {
  .thm-tabelle { font-size: .86rem; }
  .thm-tabelle th { font-size: .68rem; letter-spacing: .06em; padding-inline-end: 8px; }
  .thm-tabelle td { padding: 8px 8px 8px 0; overflow-wrap: anywhere; }
}
