/* =========================================================
   Yunus Emre Camii — Design-System
   Markenfarben aus Farben.html · Mobile-First · Hell/Dunkel
   ========================================================= */

:root {
  /* Marken-Paletten */
  --navy-900:#0D141C; --navy-800:#0E2340; --blue-700:#173A67;
  --blue-500:#245CAE; --blue-300:#A8C3EA;
  --teal-500:#06A6A3; --teal-300:#8FE6E4; --teal-050:#E6FAFA;
  --gold-500:#E0A41C; --gold-300:#ECD693; --gold-050:#FBF6E9;
  --red-500:#C01017;  --red-300:#F2A29F;  --red-050:#FDECEC;

  /* Helles Theme (Standard) */
  --bg:#F6F8FA;
  --bg-alt:#EEF1F4;
  --surface:#FFFFFF;
  --text:#0D141C;
  --muted:#6E7A86;
  --border:#E0E5EA;
  --primary:var(--blue-700);
  --primary-ink:#FFFFFF;
  --accent:var(--teal-500);
  --gold:var(--gold-500);
  --danger:var(--red-500);

  --header-h:74px;
  --header-h-stuck:62px;
  --radius:16px;
  --radius-sm:10px;
  --shadow:0 8px 30px rgba(13,20,28,.10);
  --shadow-sm:0 2px 10px rgba(13,20,28,.08);
  --maxw:1140px;
  --font:"Aptos","Segoe UI Variable","Segoe UI",system-ui,-apple-system,BlinkMacSystemFont,Roboto,Helvetica,Arial,sans-serif;
  --ease:cubic-bezier(.4,0,.2,1);
}

html[data-theme="dark"] {
  --bg:#0D141C;
  --bg-alt:#0E2340;
  --surface:#13243B;
  --text:#EEF1F4;
  --muted:#9BA6B1;
  --border:#1E3556;
  --primary:var(--blue-500);
  --primary-ink:#FFFFFF;
  --accent:var(--teal-300);
  --gold:var(--gold-300);
  --shadow:0 8px 30px rgba(0,0,0,.45);
  --shadow-sm:0 2px 10px rgba(0,0,0,.35);
}

* { margin:0; padding:0; box-sizing:border-box; }

/* ---------------- Icons ---------------- */
.ic { flex:none; vertical-align:middle; }
.btn .ic { width:18px; height:18px; }
.meta-ic { width:16px; height:16px; vertical-align:-3px; margin-right:.4rem; color:var(--accent); flex:none; }
.list-ic { width:17px; height:17px; vertical-align:-3px; margin-right:.5rem; color:var(--accent); }
/* Hell-/Dunkel-Umschalter: passendes Icon je Theme zeigen */
.theme-toggle .i-sun { display:none; }
.theme-toggle .i-moon { display:block; }
html[data-theme="dark"] .theme-toggle .i-sun { display:block; }
html[data-theme="dark"] .theme-toggle .i-moon { display:none; }
html { scroll-behavior:smooth; }
body {
  font-family:var(--font);
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  transition:background .3s var(--ease), color .3s var(--ease);
}
img { max-width:100%; display:block; }
a { color:var(--accent); text-decoration:none; }
a:hover { text-decoration:underline; }
h1,h2,h3 { line-height:1.2; font-weight:800; letter-spacing:0; }
.container { max-width:var(--maxw); margin:0 auto; padding:0 20px; }
.section { padding:64px 0; }
.section-alt { background:var(--bg-alt); }
.eyebrow { color:var(--accent); font-weight:700; text-transform:uppercase; letter-spacing:.08em; font-size:.8rem; }
.muted { color:var(--muted); }

/* ---------------- Buttons ---------------- */
.btn {
  display:inline-flex; align-items:center; gap:.5rem;
  padding:.85rem 1.4rem; border-radius:999px; font-weight:700;
  border:1px solid transparent; cursor:pointer; font-size:1rem;
  transition:transform .15s var(--ease), background .2s, box-shadow .2s; text-decoration:none;
}
.btn:hover { transform:translateY(-2px); text-decoration:none; }
.btn-primary { background:var(--primary); color:var(--primary-ink); box-shadow:var(--shadow-sm); }
.btn-accent  { background:var(--accent); color:#03312F; }
.btn-gold    { background:var(--gold); color:#3A2A03; }
.btn-ghost   { background:transparent; color:var(--text); border-color:var(--border); }
.btn-block   { width:100%; justify-content:center; }
.btn[disabled], .btn:disabled { opacity:.6; cursor:not-allowed; transform:none; }
.btn[disabled]:hover, .btn:disabled:hover { transform:none; }
/* Ladekreis im Button (unsichtbarer Turnstile-Flow) */
.btn-spinner { display:inline-block; width:1em; height:1em; border:2px solid currentColor;
  border-right-color:transparent; border-radius:50%; animation:ts-spin .6s linear infinite;
  vertical-align:-2px; margin-right:.45rem; }
/* Standardmäßig ausgeblendet – der Ladekreis erscheint erst beim Klick (JS entfernt
   [hidden]). Ohne diese Regel würde .btn-spinner{display:inline-block} das
   hidden-Attribut überschreiben und der Kreis würde dauerhaft rotieren. */
.btn-spinner[hidden] { display:none; }
@keyframes ts-spin { to { transform:rotate(360deg); } }
.ts-hint { color:#c0392b; font-size:.85rem; margin-top:.55rem; text-align:center; }
[data-ts-widget]:not([hidden]) { margin:.2rem 0 1rem; }

/* ---------------- Header (verschmilzt mit Wallpaper) ---------------- */
.site-header {
  position:fixed; top:0; left:0; right:0; z-index:100;
  height:var(--header-h);
  display:flex; align-items:center;
  background:transparent;
  transition:background .35s var(--ease), height .35s var(--ease),
             box-shadow .35s var(--ease), backdrop-filter .35s var(--ease);
}
/* dezenter Verlauf für Lesbarkeit über dem Bild */
.site-header::before {
  content:""; position:absolute; inset:0; z-index:-1;
  background:linear-gradient(to bottom, rgba(13,20,28,.55), rgba(13,20,28,0));
  opacity:1; transition:opacity .35s var(--ease);
}
.site-header.is-stuck::before { opacity:0; }

.site-header .container { display:flex; align-items:center; justify-content:space-between; width:100%; }
.brand { display:flex; align-items:center; gap:.7rem; color:#fff; font-weight:800; }
.brand img { height:42px; width:auto; filter:drop-shadow(0 2px 6px rgba(0,0,0,.4)); transition:height .35s var(--ease); }
.brand .brand-text { line-height:1.1; }
.brand .brand-text small { display:block; font-weight:500; font-size:.72rem; opacity:.85; }

/* Navigation hell, solange über dem Bild */
.nav { display:flex; align-items:center; gap:.3rem; }
.nav a {
  color:#fff; font-weight:600; padding:.5rem .85rem; border-radius:999px;
  font-size:.95rem; transition:background .2s, color .2s;
}
.nav a:hover, .nav a.active { background:rgba(255,255,255,.18); text-decoration:none; }

/* Zustand nach dem Scrollen: löst sich vom Bild, wird zur soliden Leiste */
.site-header.is-stuck {
  height:var(--header-h-stuck);
  background:color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter:saturate(180%) blur(14px);
  backdrop-filter:saturate(180%) blur(14px);
  box-shadow:var(--shadow);
}
.site-header.is-stuck .brand { color:var(--text); }
.site-header.is-stuck .brand img { height:36px; filter:none; }
.site-header.is-stuck .nav a { color:var(--text); }
.site-header.is-stuck .nav a:hover, .site-header.is-stuck .nav a.active {
  background:var(--primary); color:var(--primary-ink);
}

.header-actions { display:flex; align-items:center; gap:.5rem; }
.icon-btn {
  width:42px; height:42px; border-radius:50%; border:1px solid rgba(255,255,255,.3);
  background:rgba(255,255,255,.12); color:#fff; display:grid; place-items:center;
  cursor:pointer; transition:background .2s,color .2s,border-color .2s; font-size:1.1rem;
}
.site-header.is-stuck .icon-btn { border-color:var(--border); background:var(--bg-alt); color:var(--text); }
.icon-btn:hover { background:var(--primary); color:#fff; }

.nav-toggle { display:none; }

/* Login / Mein-Konto-Button im Header */
.header-login {
  display:inline-flex; align-items:center; gap:.4rem;
  padding:.45rem .9rem; border-radius:999px;
  border:1px solid rgba(255,255,255,.38); color:#fff; font-weight:700; font-size:.9rem;
  transition:background .2s, color .2s, border-color .2s;
}
.header-login:hover { background:rgba(255,255,255,.18); text-decoration:none; }
.header-login svg { width:16px; height:16px; }
.site-header.is-stuck .header-login { border-color:var(--border); color:var(--text); }
.site-header.is-stuck .header-login:hover { background:var(--primary); color:#fff; border-color:var(--primary); }
.lang-switch {
  display:inline-flex;
  align-items:center;
  gap:.28rem;
  padding:.45rem .65rem;
  border:1px solid rgba(255,255,255,.38);
  border-radius:999px;
  color:#fff;
  font-size:.82rem;
  font-weight:900;
  line-height:1;
  background:rgba(255,255,255,.08);
}
.lang-switch .ic { width:16px; height:16px; }
.lang-switch a { color:rgba(255,255,255,.72); }
.lang-switch a:hover,
.lang-switch a.active { color:#fff; text-decoration:none; }
.site-header.is-stuck .lang-switch { border-color:var(--border); color:var(--text); background:var(--bg-alt); }
.site-header.is-stuck .lang-switch a { color:var(--muted); }
.site-header.is-stuck .lang-switch a.active,
.site-header.is-stuck .lang-switch a:hover { color:var(--primary); }
@media (max-width:480px){ .header-login span { display:none; } .header-login { padding:.45rem; } }

/* ---------------- Hero / Wallpaper ---------------- */
.hero {
  position:relative; min-height:100vh; min-height:100svh;
  display:flex; align-items:center;
  color:#fff; overflow:hidden;
}
.hero-bg {
  position:absolute; inset:0; z-index:-2;
  background:#0d141c center/cover no-repeat;
}
.hero::after { /* Abdunklung für Kontrast */
  content:""; position:absolute; inset:0; z-index:-1;
  background:linear-gradient(180deg, rgba(13,20,28,.45) 0%, rgba(13,20,28,.35) 40%, rgba(13,20,28,.78) 100%);
}
/* ---- Shared Glass Containers for Hero ---- */
.hero-copy, .prayer-bar, .hero-flyer-card {
  background:linear-gradient(180deg, rgba(20,40,66,.42), rgba(13,20,28,.34));
  border:1px solid rgba(255,255,255,.16);
  border-top:1px solid rgba(255,255,255,.20);
  border-radius:var(--radius);
  -webkit-backdrop-filter:blur(16px) saturate(150%);
  backdrop-filter:blur(16px) saturate(150%);
  box-shadow:0 18px 38px -24px rgba(0,0,0,.65), inset 0 1px 0 rgba(255,255,255,.12);
}
.hero-copy {
  padding:1.2rem 1.15rem; /* Oben und unten gleiche Größe */
}
.hero h1 { font-size:clamp(2.1rem, 6vw, 4rem); text-shadow:0 4px 30px rgba(0,0,0,.5); }
.hero-copy h1 { font-size:2.1rem; }
.hero .lead { font-size:1rem; margin-top:.8rem; opacity:.95; text-shadow:0 2px 12px rgba(0,0,0,.5); }
.hero .welcome { font-size:.9rem; opacity:.9; }

/* Schnellzugriff-Buttons */
.quick-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; margin-top:1.2rem; }
.quick-card {
  display:flex; align-items:center; gap:.7rem; padding:.85rem 1rem;
  background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.22);
  border-radius:var(--radius); color:#fff; font-weight:700; font-size:.95rem;
  -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px);
  transition:background .2s, transform .15s;
}
.quick-card:hover { background:rgba(255,255,255,.26); transform:translateY(-3px); text-decoration:none; }
.quick-card .qi .ic { width:24px; height:24px; }

/* ---- Hero 2-Spalten: links Copy+Grid, rechts Prayer+Flyer ---- */
.hero-inner {
  position:relative;
  display:grid;
  grid-template-columns:1fr 360px;
  gap:28px;
  align-items:start;
  padding-top:calc(var(--header-h) + 28px);
  padding-bottom:60px;
  min-height:100vh;
  min-height:100svh;
}
.hero-left {
  display:flex;
  flex-direction:column;
  gap:0;
  align-self:start;
}
.hero-left .hero-copy  { margin-bottom:1.4rem; }
.hero-left .quick-grid { max-width:100%; margin-top:0; }

/* Rechte Spalte: Prayer-Bar + Flyer */
.hero-right {
  display:flex;
  flex-direction:column;
  gap:14px;
  align-self:start;
}

/* ---- Prayer-Bar: Kopfzeile (Label + Countdown) + Zellen über volle Breite ---- */
.prayer-bar {
  width:100%;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  row-gap:.6rem;
  column-gap:10px;
  padding:.85rem .95rem;
  overflow:hidden;
}
/* Kopfzeile: Label links, Countdown rechts */
.prayer-bar-label {
  order:1;
  font-size:.74rem;
  font-weight:800;
  color:var(--teal-300);
  text-transform:uppercase;
  letter-spacing:.08em;
  display:flex;
  align-items:center;
  gap:.4rem;
  flex-shrink:0;
  white-space:nowrap;
}
.prayer-bar-label .ic { width:15px; height:15px; }
.prayer-bar-next {
  order:2;
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:.4rem;
  flex-shrink:0;
  white-space:nowrap;
}
.prayer-bar-next .ic { width:15px; height:15px; color:var(--gold-300); }
.pbar-countdown {
  font-size:.98rem;
  font-weight:800;
  font-variant-numeric:tabular-nums;
  color:var(--gold-300);
  letter-spacing:.03em;
}
/* Zellen: volle Breite, deutlich größere Schrift */
.prayer-bar-times {
  order:3;
  display:flex;
  gap:6px;
  flex:1 1 100%;
  min-width:0;
}
.prayer-bar-cell {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:.12rem;
  padding:.45rem .25rem;
  border-radius:9px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.06);
  flex:1;
  min-width:0;
  transition:background .2s, border-color .2s;
}
.prayer-bar-cell.is-next {
  background:rgba(255,255,255,.16);
  border-color:rgba(236,214,147,.75);
}
.pbt-name {
  font-size:.66rem;
  font-weight:600;
  color:rgba(255,255,255,.82);
  text-transform:uppercase;
  letter-spacing:.03em;
  white-space:nowrap;
}
.pbt-time {
  font-size:1.02rem;
  font-weight:800;
  color:#fff;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
  line-height:1.1;
}
.prayer-bar-cell.is-next .pbt-name { color:var(--teal-300); opacity:1; }
.prayer-bar-cell.is-next .pbt-time { color:var(--gold-300); }

/* ---- Hero-Flyer (auf dem Titelbild, rechts unten) ---- */
.hero-flyer-card {
  width:100%;
  overflow:hidden;
}
.hero-flyer-header {
  display:flex;
  align-items:center;
  gap:.5rem;
  padding:.6rem .85rem;
  font-size:.75rem;
  font-weight:700;
  color:rgba(255,255,255,.9);
  border-bottom:1px solid rgba(255,255,255,.15);
}
.hero-flyer-header .ic { width:15px; height:15px; color:var(--teal-300); flex-shrink:0; }
.hero-flyer-count {
  margin-left:auto;
  font-size:.68rem;
  color:rgba(255,255,255,.6);
}
/* Slider: feste Höhe + sanfte Überblendung -> kein Springen/Flackern beim Wechsel */
.hero-flyer-slider {
  position:relative;
  overflow:hidden;
  height:340px;
  cursor:zoom-in;
}
.hero-flyer-slide {
  position:absolute; inset:0;
  opacity:0;
  transition:opacity .5s var(--ease);
  pointer-events:none;
}
.hero-flyer-slide.active { opacity:1; }
.hero-flyer-slide img {
  width:100%; height:100%; display:block;
  object-fit:contain;
  background:rgba(0,0,0,.25);
}
/* Zoom-Hinweis (Klick öffnet Galerie) */
.hero-flyer-zoom {
  position:absolute; top:10px; right:10px; z-index:2;
  display:grid; place-items:center; width:32px; height:32px;
  background:rgba(13,20,28,.55); color:#fff; border-radius:50%;
  -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px);
  opacity:.85; transition:opacity .2s, background .2s, color .2s; pointer-events:none;
}
.hero-flyer-slider:hover .hero-flyer-zoom { opacity:1; background:var(--accent); color:#03312F; }
.hero-flyer-nav {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:.45rem .7rem;
  border-top:1px solid rgba(255,255,255,.12);
}
.hero-flyer-btn {
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.2);
  border-radius:var(--radius-sm);
  cursor:pointer;
  display:grid;
  place-items:center;
  padding:.25rem .4rem;
  color:#fff;
  transition:background .15s;
}
.hero-flyer-btn:hover { background:var(--teal-500); border-color:var(--teal-300); }
.hero-flyer-btn .ic  { width:17px; height:17px; }
.hero-flyer-dots { display:flex; gap:6px; align-items:center; }
.hero-flyer-dot {
  width:7px; height:7px; border-radius:50%;
  background:rgba(255,255,255,.3); cursor:pointer;
  transition:background .2s, transform .2s;
  border:none;
}
.hero-flyer-dot.active { background:var(--teal-300); transform:scale(1.4); }

/* Moderne Startseiten-Hero: Text direkt auf dem Bild, Module als Werkzeuge */
.hero-home {
  min-height:88vh;
  min-height:88svh;
  align-items:stretch;
}
.hero-home::after {
  background:
    linear-gradient(90deg, rgba(8,18,31,.86) 0%, rgba(8,18,31,.58) 46%, rgba(8,18,31,.30) 100%),
    linear-gradient(180deg, rgba(8,18,31,.36) 0%, rgba(8,18,31,.18) 44%, rgba(8,18,31,.74) 100%);
}
.hero-home .hero-bg { transform:scale(1.02); }
.hero-home .hero-inner {
  grid-template-columns:minmax(0,1fr) minmax(320px,390px);
  align-items:center;
  min-height:88vh;
  min-height:88svh;
  padding-top:calc(var(--header-h) + 52px);
  padding-bottom:52px;
}
.hero-home .hero-left {
  gap:1.15rem;
  max-width:760px;
}
.hero-home .hero-copy {
  padding:0;
  margin:0;
  background:none;
  border:0;
  border-radius:0;
  box-shadow:none;
  -webkit-backdrop-filter:none;
  backdrop-filter:none;
}
.hero-kicker {
  display:inline-flex;
  align-items:center;
  margin-bottom:.85rem;
  font-size:.86rem;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--teal-300);
  text-shadow:0 2px 18px rgba(0,0,0,.45);
}
.hero-home .hero-copy h1 {
  max-width:760px;
  font-size:clamp(2.7rem, 7vw, 5.7rem);
  line-height:.94;
  letter-spacing:0;
  text-shadow:0 8px 42px rgba(0,0,0,.58);
}
.hero-home .lead {
  max-width:none;
  font-size:clamp(1rem, 1.35vw, 1.18rem);
  line-height:1.55;
  margin-top:1.1rem;
  color:rgba(255,255,255,.92);
}
@media (min-width:901px){
  .hero-home .lead { white-space:nowrap; }
}
.hero-actions {
  display:flex;
  flex-wrap:wrap;
  gap:.75rem;
  align-items:center;
}
.hero-actions .btn {
  min-height:48px;
  display:inline-flex;
  align-items:center;
  gap:.5rem;
}
.hero-secondary {
  color:#fff;
  border-color:rgba(255,255,255,.42);
  background:rgba(255,255,255,.10);
}
.hero-secondary:hover {
  color:#fff;
  background:rgba(255,255,255,.20);
  border-color:rgba(255,255,255,.65);
}
.hero-home .quick-grid {
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:.55rem;
  margin-top:.25rem;
  max-width:720px;
}
.hero-home .quick-card {
  min-height:92px;
  flex-direction:column;
  justify-content:center;
  text-align:center;
  gap:.45rem;
  padding:.75rem .55rem;
  background:rgba(255,255,255,.12);
  border-color:rgba(255,255,255,.22);
  border-radius:14px;
}
.hero-home .quick-card .qi .ic { width:22px; height:22px; }
.hero-home .hero-right {
  justify-self:end;
  width:100%;
}
.hero-home .prayer-bar,
.hero-home .hero-flyer-card {
  background:rgba(8,18,31,.68);
  border-top:1px solid rgba(255,255,255,.18);
  border-radius:16px;
}
.hero-home .hero-flyer-slider { height:260px; }

/* ---------------- Karten / Grids ---------------- */
.grid { display:grid; gap:20px; }
.grid-3 { grid-template-columns:repeat(3,1fr); }
.grid-2 { grid-template-columns:repeat(2,1fr); }
.card {
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--radius); padding:1.4rem; box-shadow:var(--shadow-sm);
}
.card h3 { margin-bottom:.4rem; }
.section-head { display:flex; align-items:end; justify-content:space-between; margin-bottom:1.6rem; gap:1rem; flex-wrap:wrap; }
.section-head h2 { font-size:clamp(1.5rem,3.5vw,2.1rem); }

/* Gebetszeiten-Widget */
.prayer-widget { background:linear-gradient(135deg,var(--blue-700),var(--navy-800)); color:#fff; border:none; }
.prayer-next { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:1rem; }
.prayer-next .next-name { font-size:1.4rem; font-weight:800; color:var(--teal-300); }
.countdown { font-variant-numeric:tabular-nums; font-size:2rem; font-weight:800; letter-spacing:.02em; }
.prayer-row { display:grid; grid-template-columns:repeat(6,1fr); gap:8px; margin-top:1.2rem; }
.prayer-cell { text-align:center; background:rgba(255,255,255,.1); border-radius:var(--radius-sm); padding:.7rem .3rem; }
.prayer-cell .pn { font-size:.72rem; opacity:.85; text-transform:uppercase; letter-spacing:.05em; }
.prayer-cell .pt { font-weight:800; font-size:1.05rem; margin-top:.2rem; }
.prayer-cell.is-next { outline:2px solid var(--teal-300); background:rgba(6,166,163,.25); }

/* Ankündigungen */
.notice-list {
  display:grid;
  gap:12px;
}
.notice-card {
  display:grid;
  grid-template-columns:minmax(86px,auto) 1fr;
  gap:1rem;
  align-items:start;
  padding:1rem 1.1rem;
  border:1px solid var(--border);
  border-left:4px solid var(--primary);
  border-radius:12px;
  background:var(--surface);
  box-shadow:none;
}
.notice-card.pinned {
  border-left-color:var(--gold);
  background:color-mix(in srgb, var(--gold-050) 58%, var(--surface));
}
.notice-meta {
  display:flex;
  flex-direction:column;
  gap:.35rem;
  color:var(--muted);
  font-size:.78rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.notice-type {
  width:max-content;
  padding:.16rem .46rem;
  border-radius:6px;
  background:var(--bg-alt);
  color:var(--text);
  border:1px solid var(--border);
}
.notice-card h3 {
  margin:0 0 .3rem;
  font-size:1.05rem;
}
.notice-card p { margin:0; }
html[data-theme="dark"] .notice-card.pinned { background:rgba(224,164,28,.10); }
.badge { display:inline-block; font-size:.72rem; font-weight:700; padding:.2rem .6rem; border-radius:999px; background:var(--teal-050); color:#055; }
html[data-theme="dark"] .badge { background:rgba(6,166,163,.2); color:var(--teal-300); }

/* Startseite: redaktionelle Inhaltsblöcke */
.home-info-band { background:var(--surface); }
.home-story {
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:28px;
  align-items:start;
}
.home-story-copy { max-width:640px; }
.home-story-copy p {
  color:var(--muted);
  margin-top:.8rem;
}
.fact-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.fact-card {
  border:1px solid var(--border);
  border-radius:12px;
  padding:1rem;
  background:var(--bg);
}
.fact-card strong {
  display:block;
  margin-bottom:.25rem;
  color:var(--text);
}
.fact-card span {
  color:var(--muted);
  font-size:.94rem;
}
.visitor-strip {
  margin-top:28px;
  display:grid;
  grid-template-columns:1fr auto;
  gap:18px;
  align-items:center;
  padding:1.2rem;
  border:1px solid var(--border);
  border-radius:14px;
  background:var(--bg-alt);
}
.visitor-strip h3 { margin-bottom:.25rem; }
.visitor-strip p { color:var(--muted); margin:0; }

/* Spendenziel-Balken */
.progress { height:12px; background:var(--bg-alt); border-radius:999px; overflow:hidden; margin:.6rem 0; }
.progress > span { display:block; height:100%; background:linear-gradient(90deg,var(--teal-500),var(--gold-500)); border-radius:999px; }
.goal-meta { display:flex; justify-content:space-between; font-size:.9rem; font-weight:700; }

/* Tabellen */
.table-wrap { overflow-x:auto; border-radius:var(--radius); border:1px solid var(--border); }
table { width:100%; border-collapse:collapse; background:var(--surface); }
th,td { padding:.75rem 1rem; text-align:left; border-bottom:1px solid var(--border); white-space:nowrap; }
th { background:var(--bg-alt); font-size:.82rem; text-transform:uppercase; letter-spacing:.04em; color:var(--muted); }
tr:last-child td { border-bottom:none; }
tr.today td { background:color-mix(in srgb, var(--accent) 12%, transparent); font-weight:700; }

/* Formulare */
.form-group { margin-bottom:1.1rem; }
.form-grid {
  gap:1rem;
}
.check-label {
  display:flex;
  gap:.65rem;
  align-items:flex-start;
  font-weight:500;
}
.check-label input {
  width:auto;
  margin-top:.3rem;
}
.contact-layout {
  align-items:start;
}
.contact-card {
  margin-top:1.5rem;
}
.contact-line {
  margin-top:.6rem;
}
.turnstile-field {
  overflow-x:auto;
}
.map-section {
  margin-top:2.5rem;
}
.map-section h2 {
  font-size:1.45rem;
  margin-bottom:1rem;
}
.map-consent-text {
  margin:.6rem 0 1rem;
}
.map-hint {
  font-size:.82rem;
  margin-top:.8rem;
}
.map-credit {
  font-size:.82rem;
  margin-top:.5rem;
}
.section-title-sm {
  font-size:1.35rem;
  margin-bottom:1rem;
}
.online-form-card {
  margin-top:1.5rem;
}
.tabular {
  font-variant-numeric:tabular-nums;
}
.qr-wrap {
  text-align:center;
  margin-top:1.2rem;
}
.qr-wrap p {
  font-size:.9rem;
  margin-bottom:.6rem;
}
.small-note {
  font-size:.84rem;
  margin-top:1rem;
}
.field-help {
  color:var(--muted);
  font-size:.84rem;
  margin:.35rem 0 0;
}
label { display:block; font-weight:600; margin-bottom:.35rem; font-size:.95rem; }
input,select,textarea {
  width:100%; padding:.8rem .9rem; border:1px solid var(--border); border-radius:var(--radius-sm);
  background:var(--surface); color:var(--text); font-size:1rem; font-family:inherit;
}
input:focus,select:focus,textarea:focus { outline:2px solid var(--accent); border-color:var(--accent); }
.field-error { color:var(--danger); font-size:.85rem; margin-top:.3rem; }
.hp { position:absolute; left:-9999px; }      /* Honeypot */
.alert { padding:1rem 1.2rem; border-radius:var(--radius-sm); margin-bottom:1.4rem; font-weight:600; }
.alert-success { background:var(--teal-050); color:#044; border:1px solid var(--teal-300); }
.alert-error { background:var(--red-050); color:#7a0b10; border:1px solid var(--red-300); }
html[data-theme="dark"] .alert-success { background:rgba(6,166,163,.15); color:var(--teal-300); }
html[data-theme="dark"] .alert-error { background:rgba(192,16,23,.18); color:var(--red-300); }

/* Footer */
.site-footer { background:var(--navy-900); color:#cdd6e0; padding:48px 0 28px; margin-top:40px; }
.site-footer h4 { color:#fff; margin-bottom:.8rem; }
.site-footer a { color:#9fb4d4; }
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr; gap:32px; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.1); margin-top:28px; padding-top:18px; font-size:.85rem; color:#8290a3; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; }

/* Mobile-Menü-Overlay */
.mobile-menu {
  position:fixed; inset:0; z-index:200; background:var(--navy-900);
  display:flex; flex-direction:column; padding:2rem; gap:.5rem;
  transform:translateX(100%); transition:transform .3s var(--ease); visibility:hidden;
}
.mobile-menu.open { transform:translateX(0); visibility:visible; }
.mobile-menu a { color:#fff; font-size:1.3rem; font-weight:700; padding:.8rem 0; border-bottom:1px solid rgba(255,255,255,.1); }
.mobile-menu .close { align-self:flex-end; font-size:2rem; background:none; border:none; color:#fff; cursor:pointer; }

/* ---------------- Responsive ---------------- */
@media (max-width:1060px){
  .hero-inner { grid-template-columns:1fr 300px; gap:18px; }
}
@media (max-width:900px){
  /* Hero: übereinander stapeln */
  .hero-inner { grid-template-columns:1fr; gap:20px; padding-bottom:80px; }
  .hero-right  { flex-direction:row; flex-wrap:wrap; gap:14px; }
  .prayer-bar  { flex:1 1 100%; }
  .hero-flyer-card { flex:1 1 100%; }
  .hero-flyer-slider { height:260px; }
  .hero-home .hero-inner {
    grid-template-columns:1fr;
    align-items:start;
    padding-top:calc(var(--header-h) + 42px);
    padding-bottom:42px;
  }
  .hero-home .hero-right { justify-self:stretch; }
  .hero-home .quick-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .hero-home .hero-flyer-slider { height:230px; }
}
@media (max-width:860px){
  .nav { display:none; }
  .nav-toggle { display:grid; }
  .grid-3 { grid-template-columns:1fr; }
  .grid-2 { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr; gap:22px; }
  .prayer-row { grid-template-columns:repeat(3,1fr); }
  .quick-grid { grid-template-columns:1fr 1fr; }
  .hero-copy h1 { font-size:1.85rem; }
  .prayer-bar-label { display:none; }
  .home-story { grid-template-columns:1fr; }
  .visitor-strip { grid-template-columns:1fr; }
}
@media (max-width:600px){
  /* Gebetszeiten bleiben sichtbar & lesbar (mobile-first, MUSS-Funktion) */
  .prayer-bar { padding:.75rem .7rem; }
  .prayer-bar-times { gap:4px; }
  .prayer-bar-cell { padding:.42rem .12rem; }
  .pbt-time { font-size:.95rem; }
  .pbt-name { font-size:.58rem; }
  .hero-home .hero-inner { padding-top:calc(var(--header-h) + 26px); padding-bottom:30px; }
  .hero-home .lead { font-size:1rem; line-height:1.45; margin-top:.8rem; }
  .hero-home .quick-card { min-height:70px; }
  .hero-home .hero-flyer-card { display:none; }
  .notice-card { grid-template-columns:1fr; gap:.55rem; }
  .notice-meta { flex-direction:row; flex-wrap:wrap; align-items:center; }
  .fact-grid { grid-template-columns:1fr; }
}
@media (max-width:480px){
  .quick-grid { grid-template-columns:1fr; }
  .hero-copy { padding:.9rem; }
  .hero-home .hero-copy { padding:0; }
  .hero-copy h1 { font-size:1.45rem; }
  .hero-home .hero-copy h1 { font-size:2.25rem; }
  .brand .brand-text small { display:none; }
  .hero-flyer-slider { height:200px; }
  .hero-home .hero-actions .btn { width:100%; justify-content:center; }
  .hero-home .quick-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .hero-home .quick-card { min-height:78px; font-size:.86rem; }
  .hero-home .prayer-bar-next span:first-child { display:none; }
  .hero-home .hero-flyer-slider { height:190px; }
}

/* Zugänglichkeit: reduzierte Bewegung */
@media (prefers-reduced-motion:reduce){
  * { animation:none !important; scroll-behavior:auto !important; transition:none !important; }
  /* Funktionale Ladeindikatoren dürfen sich weiter drehen (sonst wirken sie „hängend") –
     aber nur, wenn sie überhaupt sichtbar sind (nicht per [hidden] ausgeblendet). */
  .btn-spinner:not([hidden]) { animation:ts-spin .8s linear infinite !important; }
}
/* ---------------- Lightbox-Galerie (Flyer) ---------------- */
.lightbox {
  position:fixed; inset:0; z-index:1000;
  display:flex; align-items:center; justify-content:center;
  padding:4vh 4vw;
  background:rgba(8,12,18,.92);
  -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px);
  opacity:0; visibility:hidden;
  transition:opacity .3s var(--ease), visibility .3s var(--ease);
}
.lightbox.open { opacity:1; visibility:visible; }
.lightbox-stage {
  position:relative; width:100%; height:100%;
  display:flex; align-items:center; justify-content:center;
}
.lightbox-slide {
  position:absolute; inset:0;
  display:none; flex-direction:column; align-items:center; justify-content:center; gap:1rem;
}
.lightbox-slide.active { display:flex; animation:lbIn .35s var(--ease); }
@keyframes lbIn { from { opacity:0; transform:scale(.97); } to { opacity:1; transform:none; } }
.lightbox-slide img {
  max-width:100%; max-height:82vh; width:auto; height:auto;
  object-fit:contain; border-radius:12px;
  box-shadow:0 24px 70px rgba(0,0,0,.6);
}
.lightbox-slide figcaption {
  color:#e8eef5; font-weight:600; font-size:1.02rem; text-align:center;
  text-shadow:0 1px 6px rgba(0,0,0,.5);
}
.lightbox-close {
  position:absolute; top:18px; right:18px; z-index:3;
  width:48px; height:48px; border-radius:50%;
  background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.25); color:#fff;
  display:grid; place-items:center; cursor:pointer;
  transition:background .2s, transform .25s;
}
.lightbox-close:hover { background:var(--red-500); transform:rotate(90deg); }
.lightbox-arrow {
  position:absolute; top:50%; transform:translateY(-50%); z-index:3;
  width:54px; height:54px; border-radius:50%;
  background:rgba(255,255,255,.10); border:1px solid rgba(255,255,255,.22); color:#fff;
  display:grid; place-items:center; cursor:pointer; transition:background .2s, color .2s;
}
.lightbox-arrow:hover { background:var(--accent); color:#03312F; }
.lightbox-prev { left:18px; }
.lightbox-next { right:18px; }
.lightbox-counter {
  position:absolute; bottom:20px; left:50%; transform:translateX(-50%); z-index:3;
  color:#cdd6e0; font-weight:700; font-size:.95rem; font-variant-numeric:tabular-nums;
  background:rgba(13,20,28,.6); padding:.35rem .9rem; border-radius:999px;
}
@media (max-width:600px){
  .lightbox-arrow { width:44px; height:44px; }
  .lightbox-prev { left:8px; }
  .lightbox-next { right:8px; }
  .lightbox-slide img { max-height:76vh; }
}

.skip-link { position:absolute; left:-9999px; top:0; background:var(--primary); color:#fff; padding:.6rem 1rem; z-index:999; }
.skip-link:focus { left:8px; top:8px; }

/* =========================================================
   Notion-inspired public refresh
   Warm paper canvas, quiet white surfaces, one structural blue.
   ========================================================= */
:root {
  --navy-900:#213183;
  --navy-800:#213183;
  --blue-700:#0075de;
  --blue-500:#0075de;
  --blue-300:#62aef0;
  --teal-500:#2a9d99;
  --teal-300:#62aef0;
  --teal-050:#eef7f7;
  --gold-500:#dd5b00;
  --gold-300:#f4d2b5;
  --gold-050:#fff4eb;
  --red-500:#c01017;
  --red-050:#fff1f1;
  --bg:#f6f5f4;
  --bg-alt:#f0efed;
  --surface:#ffffff;
  --text:#000000;
  --muted:#615d59;
  --border:#e6e6e6;
  --primary:#0075de;
  --primary-active:#005bab;
  --primary-ink:#ffffff;
  --accent:#0075de;
  --gold:#dd5b00;
  --secondary:#213183;
  --radius:12px;
  --radius-sm:5px;
  --shadow:0 0.175px 1.041px rgba(0,0,0,.01),0 0.8px 2.925px rgba(0,0,0,.02),0 2.025px 7.847px rgba(0,0,0,.027),0 4px 18px rgba(0,0,0,.04);
  --shadow-sm:0 1px 8px rgba(0,0,0,.035);
  --font:"Inter","Aptos","Segoe UI Variable","Segoe UI",system-ui,-apple-system,BlinkMacSystemFont,Roboto,Helvetica,Arial,sans-serif;
}
html[data-theme="dark"] {
  --bg:#171717;
  --bg-alt:#202020;
  --surface:#242424;
  --text:#f7f6f3;
  --muted:#b9b5b0;
  --border:#383838;
  --primary:#62aef0;
  --primary-active:#8fc7f5;
  --primary-ink:#07111d;
  --accent:#62aef0;
  --secondary:#1a225d;
  --shadow:0 10px 34px rgba(0,0,0,.24);
  --shadow-sm:0 4px 18px rgba(0,0,0,.18);
}
body {
  font-feature-settings:"lnum" 1, "locl" 1;
}
a { color:var(--primary); }
h1,h2,h3 {
  color:var(--text);
  font-weight:700;
  letter-spacing:-.02em;
}
.container { max-width:1180px; }
.section { padding:72px 0; }
.section-alt { background:var(--bg); }
.page-shell {
  padding-top:118px;
}
.page-hero {
  margin-bottom:28px;
  max-width:820px;
}
.page-hero h1,
.page-title {
  font-size:clamp(2.25rem, 6vw, 4rem);
  line-height:1.02;
  letter-spacing:-.045em;
  margin:.35rem 0 .85rem;
}
.page-hero p {
  max-width:720px;
  font-size:1.05rem;
}
.container-narrow { max-width:860px; }
.eyebrow {
  display:inline-flex;
  align-items:center;
  width:max-content;
  padding:.25rem .55rem;
  border:1px solid var(--border);
  border-radius:999px;
  background:var(--surface);
  color:var(--primary);
  text-transform:none;
  letter-spacing:.008em;
  font-size:.75rem;
  font-weight:650;
}
.btn {
  border-radius:999px;
  font-weight:600;
  padding:.68rem 1.05rem;
  min-height:42px;
  box-shadow:none;
}
.btn:hover { transform:translateY(-1px); }
.btn-primary,
.btn-accent,
.btn-gold {
  background:var(--primary);
  border-color:var(--primary);
  color:var(--primary-ink);
}
.btn-primary:hover,
.btn-accent:hover,
.btn-gold:hover {
  background:var(--primary-active);
  border-color:var(--primary-active);
  color:var(--primary-ink);
}
.btn-ghost,
.btn-secondary {
  background:var(--surface);
  color:var(--text);
  border-color:var(--border);
}
.btn-ghost:hover,
.btn-secondary:hover {
  background:var(--bg-alt);
  color:var(--text);
}
.action-row {
  display:flex;
  flex-wrap:wrap;
  gap:.7rem;
  align-items:center;
}
.notion-grid {
  display:grid;
  gap:18px;
}
.notion-grid-2 { grid-template-columns:repeat(2,minmax(0,1fr)); }
.notion-grid-3 { grid-template-columns:repeat(3,minmax(0,1fr)); }
.card,
.notion-card,
.soft-panel {
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:12px;
  box-shadow:none;
  padding:1.35rem;
}
.notion-card h3,
.card h3 { font-size:1.22rem; }
.course-card,
.event-card {
  display:flex;
  flex-direction:column;
  gap:.75rem;
}
.course-register-intro {
  margin-bottom:2rem;
}
.detail-list {
  list-style:none;
  margin:.25rem 0 .35rem;
  padding:0;
  display:grid;
  gap:.45rem;
  color:var(--muted);
  font-size:.95rem;
}
.badge-danger {
  color:#7a0b10;
  background:var(--red-050);
}
.subsection-title {
  margin:3rem 0 1.2rem;
  font-size:1.5rem;
}
.past-card {
  opacity:.72;
}
.past-card h3 {
  margin:.55rem 0;
  font-size:1.08rem;
}
.soft-panel {
  background:color-mix(in srgb, var(--surface) 72%, var(--bg));
}
.notion-card-media {
  margin:-1.35rem -1.35rem 1rem;
  overflow:hidden;
  border-bottom:1px solid var(--border);
  border-radius:12px 12px 0 0;
  background:var(--bg-alt);
}
.notion-card-media img {
  width:100%;
  aspect-ratio:16/10;
  object-fit:cover;
}
.badge,
.notice-type,
.press-chip,
.press-card-cat {
  display:inline-flex;
  align-items:center;
  width:max-content;
  border:1px solid var(--border);
  background:var(--surface);
  color:var(--primary);
  border-radius:999px;
  font-size:.74rem;
  font-weight:650;
  padding:.22rem .58rem;
}
.meta-row {
  display:flex;
  flex-wrap:wrap;
  gap:.55rem 1rem;
  align-items:center;
  color:var(--muted);
  font-size:.92rem;
}
.meta-ic,
.list-ic { color:var(--primary); }
.notion-form,
form.card {
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:12px;
  box-shadow:none;
}
label { font-weight:600; }
input,select,textarea {
  border-radius:5px;
  padding:.58rem .65rem;
  border-color:#dddddd;
}
input:focus,select:focus,textarea:focus {
  outline:0;
  border-color:var(--primary);
  box-shadow:var(--shadow);
}
.alert {
  border-radius:8px;
  border:1px solid var(--border);
  box-shadow:none;
  font-weight:500;
}
.table-wrap {
  border-radius:12px;
  border-color:var(--border);
  box-shadow:none;
}
table { background:var(--surface); }
th {
  background:var(--bg);
  color:var(--muted);
  font-size:.75rem;
  letter-spacing:.01em;
  text-transform:none;
}
th,td { border-bottom-color:var(--border); }
tr.today td {
  background:color-mix(in srgb, var(--primary) 8%, var(--surface));
  color:var(--text);
}
.notion-table-note {
  margin-top:1rem;
  font-size:.92rem;
}
.site-header::before {
  background:linear-gradient(to bottom, rgba(0,0,0,.34), rgba(0,0,0,0));
}
.site-header.is-stuck,
.site-header.no-hero {
  background:color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow:0 1px 0 var(--border);
}
.site-header.is-stuck .nav a:hover,
.site-header.is-stuck .nav a.active {
  background:var(--bg-alt);
  color:var(--text);
}
.brand,
.nav a {
  font-weight:650;
}
.brand img { filter:none; }
.icon-btn,
.header-login,
.lang-switch {
  border-radius:999px;
}
.site-header.is-stuck .icon-btn,
.site-header.is-stuck .lang-switch,
.site-header.is-stuck .header-login {
  background:var(--surface);
}
.hero-home::after {
  background:
    linear-gradient(90deg, rgba(33,49,131,.92) 0%, rgba(33,49,131,.72) 48%, rgba(33,49,131,.38) 100%),
    linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.44));
}
.hero-home .hero-copy h1 {
  color:#fff;
  letter-spacing:-.055em;
  text-shadow:none;
}
.hero-kicker {
  color:#fff;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.22);
  border-radius:999px;
  padding:.25rem .6rem;
  letter-spacing:.01em;
  text-transform:none;
  text-shadow:none;
}
.hero .lead {
  color:rgba(255,255,255,.88);
  text-shadow:none;
}
.hero-secondary {
  background:#fff;
  color:#000;
  border-color:#fff;
}
.hero-secondary:hover {
  background:#f6f5f4;
  color:#000;
}
.hero-home .quick-card,
.hero-home .prayer-bar,
.hero-home .hero-flyer-card {
  background:rgba(255,255,255,.94);
  color:#000;
  border:1px solid rgba(255,255,255,.75);
  box-shadow:var(--shadow);
  backdrop-filter:blur(16px);
}
.hero-home .quick-card {
  border-radius:12px;
}
.hero-home .quick-card .ic,
.hero-flyer-header .ic {
  color:var(--primary);
}
.hero-home .prayer-bar,
.hero-home .hero-flyer-card {
  border-top:1px solid rgba(255,255,255,.75);
}
.prayer-bar-label,
.hero-flyer-header,
.pbt-name {
  color:var(--muted);
}
.prayer-bar-next .ic,
.pbar-countdown {
  color:var(--primary);
}
.prayer-bar-cell {
  background:var(--bg);
  border-color:var(--border);
}
.prayer-bar-cell.is-next {
  background:color-mix(in srgb, var(--primary) 9%, var(--surface));
  border-color:color-mix(in srgb, var(--primary) 38%, var(--border));
}
.pbt-time,
.prayer-bar-cell.is-next .pbt-time,
.prayer-bar-cell.is-next .pbt-name {
  color:var(--text);
}
.hero-flyer-header {
  border-bottom-color:var(--border);
}
.hero-flyer-count {
  color:var(--muted);
}
.hero-flyer-slide img {
  background:var(--bg);
}
.hero-flyer-nav {
  border-top-color:var(--border);
}
.hero-flyer-btn {
  background:var(--surface);
  border-color:var(--border);
  color:var(--text);
}
.hero-flyer-dot { background:var(--border); }
.hero-flyer-dot.active { background:var(--primary); }
.notice-card {
  border-left:1px solid var(--border);
  border-radius:12px;
}
.notice-card.pinned {
  border-left-color:var(--border);
  background:color-mix(in srgb, var(--primary) 5%, var(--surface));
}
.home-info-band { background:var(--bg); }
.home-story-actions {
  margin-top:1.2rem;
}
.home-press-card {
  display:block;
  color:inherit;
  overflow:hidden;
}
.home-press-card:hover {
  text-decoration:none;
}
.home-press-card h3 {
  margin:.65rem 0 .35rem;
}
.fact-card,
.visitor-strip {
  background:var(--surface);
  border-radius:12px;
}
.progress {
  height:9px;
  background:var(--bg-alt);
}
.progress > span {
  background:var(--primary);
}
.site-footer {
  background:var(--bg);
  color:var(--muted);
  border-top:1px solid var(--border);
}
.site-footer h4 {
  color:var(--text);
}
.site-footer a {
  color:var(--text);
}
.footer-bottom {
  border-top-color:var(--border);
  color:var(--muted);
}
.footer-address {
  margin-top:.6rem;
}
.footer-made {
  display:inline-flex;
  align-items:center;
  gap:.4rem;
}
.mobile-menu {
  background:var(--surface);
}
.mobile-menu a,
.mobile-menu .close {
  color:var(--text);
}
.mobile-menu a {
  border-bottom-color:var(--border);
}
.success-icon {
  color:var(--primary);
  margin-inline:auto;
}
.empty-state {
  text-align:center;
  max-width:640px;
  margin-inline:auto;
}
.empty-state h1 {
  font-size:clamp(2.4rem,6vw,4rem);
  margin:.55rem 0;
}
.empty-actions {
  margin-top:1.5rem;
}
.donate-layout {
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(300px,.85fr);
  gap:28px;
  align-items:start;
}
.donate-purpose-card {
  display:grid;
  gap:.7rem;
}
.donate-purpose-head {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:1rem;
}
.donate-sidebar {
  position:sticky;
  top:90px;
}
.amount-row,
.provider-row {
  display:flex;
  gap:.55rem;
  flex-wrap:wrap;
}
.amount-row {
  margin-top:1.15rem;
}
.provider-row .btn {
  flex:1 1 210px;
  justify-content:center;
}
.payment-method-label {
  margin:1.35rem 0 .65rem;
  font-weight:800;
}
.payment-method-hint {
  margin-top:.65rem;
}
.payment-offline-note {
  margin-top:.8rem;
}
.bank-transfer-dialog {
  inset:0;
  width:min(640px,calc(100vw - 2rem));
  max-width:none;
  max-height:calc(100dvh - 2rem);
  margin:auto;
  overflow:hidden;
  box-sizing:border-box;
  padding:0;
  border:0;
  border-radius:18px;
  background:var(--surface);
  color:var(--text);
  box-shadow:0 24px 80px rgba(13,20,28,.28);
}
.bank-transfer-dialog::backdrop {
  background:rgba(13,20,28,.62);
  backdrop-filter:blur(3px);
}
.bank-transfer-dialog-inner {
  max-height:calc(100dvh - 2rem);
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:1.5rem;
}
.bank-transfer-dialog-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:1rem;
}
.bank-transfer-dialog-head h2 {
  margin-top:.25rem;
  font-size:1.55rem;
}
.bank-transfer-close {
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  flex:none;
  border:1px solid var(--border);
  border-radius:50%;
  background:var(--surface);
  color:var(--text);
  cursor:pointer;
}
.bank-transfer-intro {
  margin:.9rem 0 1.15rem;
}
.bank-transfer-summary {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:.75rem;
  margin-bottom:1rem;
}
.bank-transfer-summary > div {
  padding:.85rem 1rem;
  border-radius:12px;
  background:var(--bg-alt);
}
.bank-transfer-summary span,
.bank-transfer-summary strong {
  display:block;
}
.bank-transfer-summary span {
  color:var(--muted);
  font-size:.8rem;
}
.bank-transfer-summary strong {
  margin-top:.15rem;
  overflow-wrap:anywhere;
}
.bank-transfer-details {
  padding:.75rem 1rem;
  border:1px solid var(--border);
  border-radius:12px;
}
.bank-transfer-details .bank-table {
  width:100%;
  table-layout:fixed;
}
.bank-transfer-qr {
  display:grid;
  grid-template-columns:auto 1fr;
  align-items:center;
  gap:1.15rem;
  margin-top:1rem;
}
.bank-transfer-qr .small-note {
  margin-top:.45rem;
}
.bank-transfer-actions {
  display:flex;
  flex-wrap:wrap;
  gap:.65rem;
  margin-top:1.2rem;
}
.bank-transfer-copy-status {
  min-height:1.5rem;
  margin-top:.45rem;
  color:var(--accent);
  font-size:.88rem;
  font-weight:700;
}
.bank-table td {
  border:none;
  padding:.42rem 0;
  white-space:normal;
  vertical-align:top;
}
.bank-table td:first-child {
  width:112px;
  min-width:112px;
  padding-right:1.8rem;
  white-space:nowrap;
}
.bank-table td + td {
  padding-left:.75rem;
  overflow-wrap:anywhere;
}
.bank-transfer-reference-row td:first-child {
  width:auto;
  min-width:0;
  padding-right:0;
  white-space:normal;
}
.bank-transfer-reference-row strong,
.bank-transfer-reference-row span {
  display:block;
}
.bank-transfer-reference-row span {
  margin-top:.1rem;
  overflow-wrap:anywhere;
}
.qr-frame {
  display:inline-block;
  background:#fff;
  padding:12px;
  border:1px solid var(--border);
  border-radius:12px;
}
.map-consent,
.press-cover,
.press-gallery-item {
  border-radius:12px!important;
  box-shadow:none!important;
}
.map-gate-card {
  border:1px solid var(--border);
  border-radius:12px!important;
  box-shadow:var(--shadow)!important;
}
.press-card {
  border-radius:12px!important;
  box-shadow:none!important;
}
.press-card:hover {
  box-shadow:var(--shadow)!important;
}
.press-card-cat {
  background:var(--surface)!important;
  color:var(--primary)!important;
}
.back-link {
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  margin-bottom:1rem;
  color:var(--muted);
}
.back-link:hover {
  color:var(--primary);
  text-decoration:none;
}
.press-body,
.prose {
  color:var(--text);
}
.press-body p,
.prose p {
  color:var(--muted);
}
@media (max-width:900px) {
  .notion-grid-2,
  .notion-grid-3,
  .donate-layout {
    grid-template-columns:1fr;
  }
  .donate-sidebar {
    position:static;
  }
}
@media (max-width:600px) {
  .page-shell { padding-top:100px; }
  .page-hero h1,
  .page-title { font-size:2.25rem; }
  .hero-home .quick-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .action-row .btn { width:100%; justify-content:center; }
  .donate-purpose-head { align-items:flex-start; flex-direction:column; }
  .provider-row .btn { width:100%; }
  .bank-transfer-summary { grid-template-columns:1fr; }
  .bank-transfer-dialog {
    width:calc(100vw - 1rem);
    max-height:calc(100dvh - 1rem);
    border-radius:16px;
  }
  .bank-transfer-dialog-inner {
    max-height:calc(100dvh - 1rem);
    padding:1.15rem;
  }
  .bank-transfer-dialog-head h2 { font-size:1.35rem; }
  .bank-transfer-details { padding:.65rem .8rem; }
  .bank-table td:first-child {
    width:96px;
    min-width:96px;
    padding-right:.75rem;
  }
  .bank-table td + td { padding-left:.35rem; }
  .bank-transfer-qr { grid-template-columns:1fr; text-align:center; }
  .bank-transfer-qr .qr-frame { margin-inline:auto; }
  .bank-transfer-actions .btn { width:100%; justify-content:center; }
}

/* =========================================================
   Feinschliff 2026-06 · Option A
   Blau bleibt führend, Gold nur als feiner Veredelungs-Akzent.
   Behebt: unsichtbare Sektionsbänder, fehlende Inter-Schrift,
   statische Karten, verarmtes Branding.
   ========================================================= */

/* --- Inter selbst gehostet (DSGVO: kein Google-CDN zur Laufzeit) --- */
@font-face {
  font-family:"Inter";
  font-style:normal;
  font-weight:100 900;
  font-display:swap;
  src:url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* latin-ext deckt türkische Sonderzeichen ab (ğ ş İ ı …) */
@font-face {
  font-family:"Inter";
  font-style:normal;
  font-weight:100 900;
  font-display:swap;
  src:url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* 1) Sektionsbänder wieder sichtbar machen (alternierender Rhythmus) */
.section-alt { background:var(--bg-alt); }

/* 4) Edleres Gold statt Orange — sparsam als Akzent */
:root        { --gold:#c2902f; }
html[data-theme="dark"] { --gold:#e3b65a; }

/* Spendenbalken: dezenter Blau→Gold-Verlauf statt flachem Blau */
.progress > span {
  background:linear-gradient(90deg, var(--primary), var(--gold));
}
/* Wichtige (angepinnte) Ankündigungen bekommen einen feinen Gold-Rand */
.notice-card.pinned {
  border-left:3px solid var(--gold);
}

/* 3) Karten reagieren auf Hover — wirken klickbarer und lebendiger */
.notion-card,
.notice-card,
.fact-card {
  transition:transform .18s var(--ease),
             box-shadow .18s var(--ease),
             border-color .18s var(--ease);
}
.notion-card:hover,
.fact-card:hover {
  transform:translateY(-3px);
  box-shadow:var(--shadow);
  border-color:color-mix(in srgb, var(--primary) 30%, var(--border));
}
.notice-card:hover {
  border-color:color-mix(in srgb, var(--primary) 26%, var(--border));
  box-shadow:var(--shadow-sm);
}
/* Verlinkte Karten: Titel beim Hover in Primärfarbe */
a.notion-card:hover h3 { color:var(--primary); }
@media (prefers-reduced-motion:reduce) {
  .notion-card:hover,
  .fact-card:hover { transform:none; }
}

/* 6) Sichtbare Tastatur-Fokus-Ringe (Barrierearmut = MUSS) */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.icon-btn:focus-visible,
.quick-card:focus-visible,
.notion-card:focus-visible,
.nav a:focus-visible,
.header-login:focus-visible,
.lang-switch a:focus-visible,
[tabindex]:focus-visible {
  outline:2px solid var(--primary);
  outline-offset:3px;
  border-radius:6px;
}
/* Über dem Hero-Bild bzw. dunklem Header: heller Ring für Kontrast */
.hero-actions .btn:focus-visible,
.site-header:not(.is-stuck) .nav a:focus-visible,
.site-header:not(.is-stuck) .header-login:focus-visible,
.site-header:not(.is-stuck) .icon-btn:focus-visible,
.site-header:not(.is-stuck) .lang-switch a:focus-visible,
.lightbox button:focus-visible {
  outline-color:#fff;
}

/* 7) Gleichmäßigerer vertikaler Rhythmus über die Breakpoints (72 / 56 / 44) */
@media (max-width:900px) { .section { padding:56px 0; } }
@media (max-width:600px) { .section { padding:44px 0; } }

/* 5) Event-Karten mit Datums-Block (Kalender-Optik) */
.event-card {
  flex-direction:row;
  align-items:flex-start;
  gap:1rem;
}
.event-date {
  flex:none;
  width:58px;
  text-align:center;
  border:1px solid var(--border);
  border-radius:10px;
  overflow:hidden;
  background:var(--surface);
}
.event-date .ed-day {
  display:block;
  font-size:1.55rem;
  font-weight:800;
  line-height:1;
  padding:.42rem 0 .28rem;
  color:var(--text);
  font-variant-numeric:tabular-nums;
}
.event-date .ed-month {
  display:block;
  font-size:.68rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.05em;
  padding:.2rem 0;
  background:var(--primary);
  color:var(--primary-ink);
}
.event-card-body {
  display:flex;
  flex-direction:column;
  gap:.5rem;
  min-width:0;
}
.event-card-body h3 { margin:0; }

/* Dark-Mode-Fix: Hero-Module nicht grellweiß lassen, sondern dunkles Glas
   (vorher fest auf rgba(255,255,255,.94) ohne Dark-Override → Hero blieb weiß) */
html[data-theme="dark"] .hero-home .quick-card,
html[data-theme="dark"] .hero-home .prayer-bar,
html[data-theme="dark"] .hero-home .hero-flyer-card {
  background:rgba(18,22,28,.72);
  color:var(--text);
  border-color:rgba(255,255,255,.14);
}
html[data-theme="dark"] .hero-home .quick-card .ic {
  color:var(--primary);
}

/* Social-Media-Links (#1) — dezente runde Buttons, Hover in Primärfarbe */
.footer-social-label {
  margin-top:1rem;
  margin-bottom:.5rem;
  font-weight:650;
  color:var(--text);
}
.social-row {
  display:flex;
  gap:.5rem;
  flex-wrap:wrap;
  align-items:center;
}
.social-link {
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  border-radius:50%;
  border:1px solid var(--border);
  background:var(--surface);
  color:var(--muted);
  transition:color .18s var(--ease), background .18s var(--ease),
             border-color .18s var(--ease), transform .15s var(--ease);
}
.social-link:hover {
  color:var(--primary-ink);
  background:var(--primary);
  border-color:var(--primary);
  transform:translateY(-2px);
  text-decoration:none;
}
.social-link svg { width:19px; height:19px; display:block; }

/* Hijri-Datum (#2) — in der Gebetszeiten-Bar der Startseite */
.prayer-bar-hijri {
  order:1;
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  font-size:.74rem;
  font-weight:700;
  color:var(--muted);
  white-space:nowrap;
}
.prayer-bar-hijri .ic { width:13px; height:13px; }
.prayer-today-hijri {
  margin-top:.35rem;
  display:inline-flex;
  align-items:center;
  font-size:.95rem;
}

/* Jumu'a-Zeit (#3) */
.prayer-bar-jumua {
  order:4;
  flex:1 1 100%;
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:.35rem;
  margin-top:.2rem;
  padding-top:.55rem;
  border-top:1px solid var(--border);
  font-size:.8rem;
  color:var(--text);
}
.prayer-bar-jumua .ic { width:13px; height:13px; color:var(--primary); }
.prayer-bar-jumua strong { color:var(--primary); }
.jumua-badge {
  margin-top:.5rem;
  display:inline-flex;
  align-items:center;
  flex-wrap:wrap;
  gap:.4rem;
  padding:.4rem .75rem;
  border:1px solid color-mix(in srgb, var(--primary) 30%, var(--border));
  background:color-mix(in srgb, var(--primary) 7%, var(--surface));
  border-radius:999px;
  font-size:.92rem;
  width:max-content;
  max-width:100%;
}
.jumua-badge .ic { width:15px; height:15px; color:var(--primary); }
.jumua-badge strong { color:var(--primary); }

/* Qibla (#4) */
.qibla-card {
  display:flex;
  gap:2rem;
  align-items:center;
  flex-wrap:wrap;
  justify-content:center;
}
.qibla-compass svg { display:block; }
.qibla-readout {
  display:flex;
  flex-direction:column;
  gap:.65rem;
  min-width:220px;
}
.qibla-deg { font-size:1.05rem; }
.qibla-deg strong { font-size:2.3rem; color:var(--primary); line-height:1; }
.qibla-dist { display:inline-flex; align-items:center; }
.qibla-live-btn { width:max-content; }
.qibla-live-hint { font-size:.88rem; max-width:280px; }
@media (max-width:560px){ .qibla-card { flex-direction:column; gap:1.2rem; } }

/* Zakat-Rechner (#5) */
.zakat-card {
  display:grid;
  grid-template-columns:1.15fr 1fr;
  gap:1.5rem;
  align-items:start;
}
.zakat-form { display:flex; flex-direction:column; gap:.3rem; }
.zakat-input { position:relative; }
.zakat-input input { padding-right:2rem; }
.zakat-eur {
  position:absolute; right:.7rem; top:50%; transform:translateY(-50%);
  color:var(--muted); pointer-events:none; font-size:.95rem;
}
.zakat-result {
  background:var(--bg);
  border:1px solid var(--border);
  border-radius:12px;
  padding:1.2rem;
  position:sticky;
  top:90px;
}
.zakat-line {
  display:flex; justify-content:space-between; gap:1rem;
  padding:.5rem 0; border-bottom:1px solid var(--border);
}
.zakat-line strong { white-space:nowrap; }
.zakat-line.zakat-total { border-bottom:none; font-size:1.15rem; margin-top:.2rem; }
.zakat-line.zakat-total strong { color:var(--primary); }
.zakat-nisab-note { font-size:.8rem; margin:-.1rem 0 .4rem; }
.zakat-status { font-size:.9rem; margin:.6rem 0 1rem; min-height:1.2em; }
.zakat-result.is-above .zakat-status { color:var(--primary); font-weight:600; }
.zakat-result.is-below .zakat-status { color:var(--muted); }
@media (max-width:700px){ .zakat-card { grid-template-columns:1fr; } .zakat-result { position:static; } }

/* Mediathek (#6) */
.media-card { padding:0; overflow:hidden; display:flex; flex-direction:column; }
.media-embed { position:relative; aspect-ratio:16/9; cursor:pointer; background:var(--bg-alt); }
.media-embed-poster {
  position:absolute; inset:0;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:.6rem; text-align:center; padding:1rem;
  background:linear-gradient(135deg, color-mix(in srgb, var(--primary) 16%, var(--surface)), var(--bg-alt));
  color:var(--text);
  transition:background .2s var(--ease);
}
.media-embed:hover .media-embed-poster { background:linear-gradient(135deg, color-mix(in srgb, var(--primary) 26%, var(--surface)), var(--bg-alt)); }
.media-play { color:var(--primary); }
.media-play .ic { width:40px; height:40px; }
.media-embed-title { font-weight:650; font-size:.95rem; }
.media-embed iframe { width:100%; height:100%; border:0; display:block; }
.media-body { padding:1.05rem 1.2rem 1.2rem; display:flex; flex-direction:column; gap:.4rem; }
.media-body h3 { font-size:1.1rem; }
.media-consent-note { font-size:.78rem; }
.media-link { flex-direction:row; gap:1rem; align-items:flex-start; padding:1.2rem; color:inherit; }
.media-link:hover { text-decoration:none; box-shadow:var(--shadow); }
.media-link .media-body { padding:0; }
.media-icon {
  flex:none; width:46px; height:46px; border-radius:10px;
  display:grid; place-items:center;
  background:color-mix(in srgb, var(--primary) 10%, var(--surface));
  border:1px solid var(--border); color:var(--primary);
}
.media-open { display:inline-flex; align-items:center; gap:.3rem; color:var(--primary); font-weight:600; font-size:.9rem; margin-top:.2rem; }
.media-open .ic { width:15px; height:15px; }

/* Janaza (#8) */
.janaza-emergency {
  display:flex;
  gap:1.1rem;
  align-items:flex-start;
  padding:1.4rem;
  border-radius:14px;
  border:1px solid color-mix(in srgb, var(--primary) 30%, var(--border));
  background:color-mix(in srgb, var(--primary) 7%, var(--surface));
  margin-bottom:1.5rem;
}
.janaza-emergency-icon {
  flex:none; width:52px; height:52px; border-radius:50%;
  display:grid; place-items:center;
  background:var(--primary); color:var(--primary-ink);
}
.janaza-emergency-body h2 { font-size:1.3rem; margin-bottom:.25rem; }
.janaza-emergency-body p { color:var(--muted); margin-bottom:.8rem; }
.janaza-call { font-size:1.1rem; }
.janaza-contact-name { margin-top:.5rem; }
.janaza-steps { margin:.4rem 0 0; padding-left:1.2rem; display:grid; gap:.5rem; color:var(--muted); }
.janaza-steps li { padding-left:.2rem; }
.janaza-info .btn { margin-top:1rem; }
@media (max-width:560px){ .janaza-emergency { flex-direction:column; } }

/* Hauptnavigation: „Angebote"-Dropdown + Spenden-Button */
.nav-dropdown { position:relative; display:flex; align-items:center; }
.nav-dropdown-toggle {
  display:inline-flex; align-items:center; gap:.25rem;
  background:none; border:none; cursor:pointer; font:inherit;
  color:#fff; font-weight:600; font-size:.95rem;
  padding:.5rem .85rem; border-radius:999px;
  transition:background .2s, color .2s;
}
.nav-dropdown-toggle .ic { width:15px; height:15px; transition:transform .2s var(--ease); }
.nav-dropdown:hover .nav-dropdown-toggle .ic,
.nav-dropdown:focus-within .nav-dropdown-toggle .ic { transform:rotate(180deg); }
.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown.active .nav-dropdown-toggle { background:rgba(255,255,255,.18); }
.nav-dropdown-menu {
  position:absolute; top:calc(100% + 6px); left:0; min-width:232px;
  background:var(--surface); border:1px solid var(--border); border-radius:12px;
  box-shadow:var(--shadow); padding:.4rem;
  display:none; flex-direction:column; gap:.1rem; z-index:120;
}
/* Unsichtbare Brücke über die 6px-Lücke, damit der Hover beim Rübergehen
   zum Menü nicht abreißt. */
.nav-dropdown::after {
  content:""; position:absolute; left:0; right:0; top:100%; height:8px;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { display:flex; }
.nav-dropdown-menu a {
  color:var(--text); font-weight:600; font-size:.92rem;
  padding:.55rem .7rem; border-radius:8px; white-space:nowrap;
}
.nav-dropdown-menu a:hover { background:var(--bg-alt); text-decoration:none; }
.nav-dropdown-menu a.active { color:var(--primary); background:var(--bg-alt); }
/* Stuck-/Solid-Header: Toggle dunkel wie die anderen Links */
.site-header.is-stuck .nav-dropdown-toggle,
.site-header.no-hero .nav-dropdown-toggle { color:var(--text); }
.site-header.is-stuck .nav-dropdown:hover .nav-dropdown-toggle,
.site-header.is-stuck .nav-dropdown.active .nav-dropdown-toggle { background:var(--bg-alt); }

.header-donate { padding:.5rem .9rem; min-height:0; font-size:.9rem; }
.header-donate .ic { width:16px; height:16px; }
@media (max-width:560px){ .header-donate { display:none; } }

/* Mobiles Menü: Akkordeon-Gruppe */
.mobile-group { border-bottom:1px solid var(--border); }
.mobile-group > summary {
  list-style:none; cursor:pointer;
  display:flex; align-items:center; justify-content:space-between;
  font-size:1.3rem; font-weight:700; color:var(--text); padding:.8rem 0;
}
.mobile-group > summary::-webkit-details-marker { display:none; }
.mobile-group > summary::after { content:"+"; font-weight:400; opacity:.55; }
.mobile-group[open] > summary::after { content:"\2212"; }
.mobile-group > a {
  display:block;
  font-size:1.05rem;
  font-weight:600;
  padding:.55rem 0 .55rem 1rem;
  margin-left:.2rem;
  border-bottom:none;
  border-left:2px solid var(--border);
  opacity:.95;
}
.mobile-group > a:first-of-type { margin-top:.2rem; }
.mobile-group > a:last-of-type { margin-bottom:.6rem; }
.mobile-donate { color:var(--primary); font-weight:800; display:flex; align-items:center; gap:.5rem; }

/* Hero-Kicker (Vereinsname): keine runde Pille, schlichter Untertitel
   (Desktop + Mobil) — wirkt bei langem Text deutlich ruhiger. */
.hero-kicker {
  background:none;
  border:none;
  padding:0;
  border-radius:0;
  color:rgba(255,255,255,.92);
  font-weight:700;
  letter-spacing:.02em;
  text-shadow:0 1px 10px rgba(0,0,0,.45);
}
@media (max-width:600px){
  .hero-kicker { font-size:.8rem; line-height:1.3; margin-bottom:.7rem; }
}

/* Login als reines Icon (Header entlasten) */
.header-login { padding:.55rem; }
.header-login svg { width:18px; height:18px; }
