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

:root {
  --blau:       #1a3a5c;
  --blau-hell:  #2c5282;
  --blau-tief:  #122840;
  --akzent:     #b8832e;
  --akzent-hell:#d4a055;
  --text:       #1a202c;
  --text-hell:  #64748b;
  --hg:         #ffffff;
  --grau:       #f5f7fa;
  --rand:       #e2e8f0;
  --radius:     10px;
  --schatten:   0 2px 12px rgba(0,0,0,0.07);
  --schatten-md:0 4px 24px rgba(0,0,0,0.11);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--hg);
  line-height: 1.65;
  font-size: 20px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.25;
}

/* ── Site-Header (alle Seiten außer Startseite) ── */
.site-header {
  background: linear-gradient(rgba(100,155,215,0.52), rgba(65,120,195,0.60)),
              url('/static/img/hero-bg.jpg') center/cover no-repeat scroll;
  padding: 1.6rem 2rem;
  text-align: center;
}
.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  position: relative;
}
.site-header-logo {
  height: 56px;
  filter: brightness(0) invert(1);
}
.site-header-nav {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.site-header-nav a {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s;
  padding-bottom: 3px;
}
.site-header-nav a:hover { color: white; }
.site-header-nav a.aktiv {
  color: white;
  border-bottom: 2px solid rgba(255,255,255,0.75);
}
.site-nav-trenner {
  color: rgba(255,255,255,0.3);
  user-select: none;
}
.site-nav-lang a {
  color: rgba(255,255,255,0.6);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  transition: all 0.2s;
}
.site-nav-lang a.aktiv {
  background: rgba(255,255,255,0.2);
  color: white;
}
.site-nav-lang a:hover { color: white; }
.site-nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid rgba(255,255,255,0.5);
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius);
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}
@media (max-width: 900px) {
  .site-nav-toggle { display: block; }
  .site-header-nav { display: none; }
  .site-header-nav.offen {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 200;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    background: rgba(20, 40, 60, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 10px;
    padding: 1.25rem 1rem;
    margin-top: 0.5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }
  .site-nav-trenner { display: none; }

  /* Hero-Navigation (Startseite) */
  .hero-nav { position: relative; }
  .hero-nav-toggle {
    display: block;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 1.5px solid rgba(255,255,255,0.5);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.3rem 0.65rem;
    border-radius: 8px;
  }
  .hero-nav-links { display: none; }
  .hero-nav-links.offen {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 200;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    background: rgba(20, 40, 60, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 10px;
    padding: 1.25rem 1rem;
    margin-top: 0.5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }
  .hero-nav-trenner { display: none; }

  /* Logo-Überlappung mit Hamburger verhindern (P2) */
  .site-header-logo { height: auto; max-height: 48px; max-width: calc(100% - 4rem); width: auto; }
  .hero-nav-logo { height: auto; max-height: 48px; max-width: calc(100% - 4rem); width: auto; }
  /* Filterleiste Mobile — kein Overflow (P3) */
  .public-filter { flex-direction: column; align-items: stretch; }
  .public-suche-wrap { min-width: 0; }
  .public-filter-select { width: 100%; max-width: 100%; min-width: 0; }

  /* Hero-Text kleiner und heller auf Mobilgeräten */
  .hero {
    padding: 3.5rem 1.25rem 2.75rem;
  }
  .hero h1 {
    font-size: 1.85rem;
    color: rgba(255, 255, 255, 0.93);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.25);
  }
  .hero-badge {
    font-size: 0.72rem;
    padding: 0.25rem 0.85rem;
  }
  .hero-vers {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.80);
  }
  .hero-text {
    font-size: 0.97rem;
    color: rgba(255, 255, 255, 0.75);
  }
}
/* ── Hero ── */
.hero {
  background: linear-gradient(rgba(120,175,230,0.38), rgba(80,140,210,0.48)),
              url('/static/img/hero-bg.jpg') center/cover no-repeat scroll;
  color: var(--blau-tief);
  padding: 7rem 1.5rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before { display: none; }
.hero-inner { max-width: 820px; margin: 0 auto; position: relative; }
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.85);
  padding: 0.3rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 300;
  margin-bottom: 1.25rem;
  letter-spacing: 0.01em;
  color: var(--blau-tief);
  text-shadow: 0 1px 3px rgba(255,255,255,0.3);
}
.hero-vers {
  font-size: 1.3rem;
  opacity: 1;
  font-style: italic;
  font-family: Georgia, serif;
  margin-bottom: 1rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  color: var(--blau-tief);
}
.hero-text { font-size: 1.2rem; color: var(--blau); margin-bottom: 2.25rem; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  background: var(--akzent);
  color: white;
  padding: 0.9rem 2.1rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid var(--akzent);
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1.4;
}
.btn:hover { background: var(--akzent-hell); border-color: var(--akzent-hell); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,0.18); }
.btn-outline {
  background: rgba(255,255,255,0.85);
  color: var(--blau);
  border: 2px solid var(--blau);
}
.btn-outline:hover { background: var(--blau); color: white; border-color: var(--blau); transform: translateY(-1px); box-shadow: none; }
.btn-klein { padding: 0.4rem 1rem; font-size: 0.85rem; }
.btn-voll { width: 100%; text-align: center; padding: 0.85rem; }

/* ── Container ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Karten ── */
.karten-section { padding: 5rem 1.5rem; background: var(--grau); }
.karten-section .section-titel {
  text-align: center;
  font-size: 1.75rem;
  color: var(--blau);
  margin-bottom: 0.5rem;
}
.karten-section .section-sub {
  text-align: center;
  color: var(--text-hell);
  margin-bottom: 3rem;
  font-size: 1rem;
}
.karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.karte {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--schatten);
  border: 1px solid var(--rand);
  transition: box-shadow 0.2s;
}
.karte:hover { box-shadow: var(--schatten-md); }
.karte-icon-wrap {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--blau) 0%, var(--blau-hell) 100%);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}
.karte h2 { font-size: 1.2rem; color: var(--blau); margin-bottom: 0.6rem; }
.karte p { color: var(--text-hell); font-size: 0.95rem; margin-bottom: 1.25rem; line-height: 1.6; }
.link-pfeil { color: var(--blau-hell); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.link-pfeil:hover { color: var(--akzent); }

/* ── Seiten-Inhalt ── */
.page { padding: 4rem 1.5rem; flex: 1; }
.page-kopf { margin-bottom: 2rem; padding-bottom: 1.25rem; border-bottom: 2px solid var(--rand); }
.page-kopf h1 { font-size: 2rem; color: var(--blau); }
.seiten-intro { color: var(--text-hell); margin-top: 0.4rem; font-size: 1rem; }

/* ── Liste ── */
.liste { display: flex; flex-direction: column; gap: 1.25rem; }
.listen-eintrag {
  background: white;
  border: 1px solid var(--rand);
  border-left: 4px solid var(--blau);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  box-shadow: var(--schatten);
  transition: border-left-color 0.2s;
}
.listen-eintrag:hover { border-left-color: var(--akzent); }
.traktat-cover { width: 72px; height: 100px; object-fit: cover; border-radius: 5px; flex-shrink: 0; box-shadow: 0 2px 6px rgba(0,0,0,0.15); }
.listen-inhalt h2 { font-size: 1.05rem; color: var(--blau); margin-bottom: 0.75rem; }
.download-zaehler { color: var(--text-hell); font-size: 0.82rem; margin-left: 0.75rem; }
.sprecher { color: var(--text-hell); font-size: 0.88rem; margin-bottom: 0.2rem; }
.datum { color: var(--text-hell); font-size: 0.82rem; margin-bottom: 0.5rem; }
.predigt-eintrag audio { display: block; margin-top: 0.75rem; width: 100%; max-width: 420px; }
.leer-hinweis { color: var(--text-hell); font-style: italic; padding: 3rem 0; text-align: center; }

/* ── Inhalt-Text ── */
.inhalt-text { max-width: 740px; line-height: 1.85; }
.inhalt-text p { margin-bottom: 1rem; }
.inhalt-text h2 { margin: 1.75rem 0 0.75rem; color: var(--blau); }

/* ── Legal-Seiten ── */
.legal-text { max-width: 740px; line-height: 1.8; }
.legal-text h2 { font-size: 1.25rem; color: var(--blau); margin: 2rem 0 0.75rem; }
.legal-text h3 { font-size: 1.05rem; color: var(--blau); margin: 1.5rem 0 0.5rem; }
.legal-text p { margin-bottom: 0.85rem; color: var(--text); }
.legal-text a { color: var(--blau-hell); }
.legal-text ul { margin: 0.5rem 0 1rem 1.5rem; }
.legal-text li { margin-bottom: 0.4rem; }

/* ── Kontaktformular ── */
.kontakt-formular { max-width: 580px; margin-top: 1.5rem; }
.feld { margin-bottom: 1.35rem; }
.feld label { display: block; font-weight: 600; margin-bottom: 0.4rem; font-size: 0.88rem; color: var(--text-hell); text-transform: uppercase; letter-spacing: 0.04em; }
.feld input, .feld textarea, .feld select {
  width: 100%;
  border: 1.5px solid var(--rand);
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.feld input:focus, .feld textarea:focus, .feld select:focus {
  outline: none;
  border-color: var(--blau-hell);
  box-shadow: 0 0 0 3px rgba(44,82,130,0.12);
}
.feld textarea { resize: vertical; }

/* ── Meldungen ── */
.meldung { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.5rem; font-size: 0.95rem; }
.meldung-erfolg { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.meldung-fehler { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* ── Footer ── */
main { flex: 1; }

footer {
  background: var(--blau-tief);
  color: rgba(255,255,255,0.6);
  padding: 2.5rem 1.5rem 0;
  margin-top: auto;
  border-top: 2px solid rgba(255,255,255,0.07);
  text-align: center;
}
.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-bottom: 2rem;
}
.footer-logo { display: flex; align-items: center; gap: 0.6rem; color: rgba(255,255,255,0.88); }
.footer-logo-kreuz { font-size: 1.2rem; opacity: 0.55; }
.footer-logo-text { font-family: Georgia, serif; font-size: 1rem; font-weight: 600; letter-spacing: 0.03em; }
.footer-links { display: flex; gap: 0; align-items: center; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s; font-size: 0.88rem; padding: 0.1rem 0.75rem; border-right: 1px solid rgba(255,255,255,0.15); }
.footer-links a:last-child { border-right: none; }
.footer-links a:hover { color: rgba(255,255,255,0.9); }
.footer-credit { color: rgba(255,255,255,0.3); font-size: 0.78rem; }
.footer-credit a { color: rgba(255,255,255,0.38); text-decoration: none; transition: color 0.2s; }
.footer-credit a:hover { color: rgba(255,255,255,0.7); }

/* ── Admin ── */
.admin-body { background: var(--grau); min-height: 100vh; font-size: 16px; overflow-x: hidden; }
.admin-header { background: var(--blau-tief); color: white; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.admin-header .header-inner { display: flex; align-items: center; gap: 1.5rem; height: 68px; padding: 0 1.5rem; }
.admin-header .logo { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; color: white; flex-shrink: 0; }
.admin-header .logo-main { font-size: 1rem; font-weight: 700; font-family: Georgia, serif; color: var(--akzent-hell); }
.admin-header .logo-sub { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.12em; opacity: 0.65; }
.admin-header nav { display: flex; align-items: center; gap: 1rem; flex: 1; }
.admin-header nav ul { display: flex; list-style: none; padding: 0; margin: 0; flex: 1; gap: 0; }
.admin-header nav ul li a { display: block; padding: 0.5rem 0.8rem; color: rgba(255,255,255,0.8); font-size: 0.88rem; text-decoration: none; border-bottom: 2px solid transparent; transition: all 0.2s; }
.admin-header nav ul li a:hover { color: white; border-bottom-color: var(--akzent-hell); background: none; }
.admin-header .lang-switch { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.admin-header .nav-toggle { display: none; }
.nav-extra { display: none; }
.admin-main { padding: 2rem 1.5rem; min-height: calc(100vh - 68px); }

.stat-karten { grid-template-columns: repeat(4, 1fr) !important; }
.stat-label { color: var(--text-hell); font-size: 0.8rem; font-weight: 600; margin-bottom: 0.5rem; letter-spacing: 0.01em; }
.stat-zahl { font-size: 2.2rem; font-weight: 700; color: var(--blau-tief); line-height: 1; margin: 0.3rem 0 0.4rem; font-family: Georgia, serif; }
.stat-sub { color: var(--text-hell); font-size: 0.8rem; margin-top: 0.25rem; }

.admin-tabelle { width: 100%; border-collapse: collapse; font-size: 0.9rem; background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--schatten); }
.admin-tabelle th { background: var(--grau); text-align: left; padding: 0.7rem 1rem; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-hell); border-bottom: 2px solid var(--rand); }
.admin-tabelle td { padding: 0.8rem 1rem; border-bottom: 1px solid var(--rand); vertical-align: middle; }
.admin-tabelle tr:last-child td { border-bottom: none; }
.admin-tabelle tr:hover td { background: var(--grau); }
.aktionen { display: flex; gap: 0.75rem; align-items: center; }
.badge { background: var(--blau); color: white; padding: 0.2rem 0.5rem; border-radius: 4px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; }
.btn-loeschen { background: none; border: none; color: #dc2626; cursor: pointer; font-size: 0.88rem; padding: 0; font-family: inherit; }
.btn-loeschen:hover { text-decoration: underline; }

.admin-formular { max-width: none; }
.form-reihe { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.form-reihe .feld { flex: 1; min-width: 180px; }
.feld-klein { flex: 0 0 140px !important; min-width: 120px !important; }
.feld input[type=number], .feld select { width: 100%; }
.feld input[type=file] { width: 100%; padding: 0.5rem 0; }
.checkbox-label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; font-weight: normal; text-transform: none; letter-spacing: 0; color: var(--text); }
.aktuell { color: var(--text-hell); font-size: 0.8rem; font-weight: normal; margin-left: 0.5rem; }

.admin-nav-karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.admin-nav-karte {
  display: block;
  background: white;
  border: 1px solid var(--rand);
  border-left: 3px solid var(--blau);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  text-decoration: none;
  color: var(--blau);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--schatten);
  transition: all 0.2s;
}
.admin-nav-karte:hover { border-left-color: var(--akzent); transform: translateY(-2px); box-shadow: var(--schatten-md); }

.inhalt-gruppe { background: white; border: 1px solid var(--rand); border-radius: var(--radius); padding: 1.75rem; margin-bottom: 1.5rem; box-shadow: var(--schatten); }
.inhalt-gruppe h2 { color: var(--blau); font-size: 1.05rem; margin-bottom: 1.25rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--rand); font-family: Georgia, serif; }
.inhalt-feld-gruppe { margin-bottom: 1.5rem; }
.inhalt-bezeichnung { font-weight: 600; font-size: 0.88rem; margin-bottom: 0.75rem; color: var(--text); }



/* ── Admin: Sprach-Tabs (Inhalte-Seite) ── */
.sprach-tabs-bar {
  display: flex;
  align-items: flex-end;
  gap: 0;
  margin-bottom: 1.75rem;
  border-bottom: 2px solid var(--rand);
}
.sprach-tabs {
  display: flex;
  gap: 0;
}
.sprach-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  padding: 0.6rem 1.6rem 0.55rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-hell);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  transition: color 0.15s, border-color 0.15s;
  line-height: 1.2;
}
.sprach-tab:hover { color: var(--blau); }
.sprach-tab.aktiv {
  color: var(--blau);
  border-bottom-color: var(--blau);
}
.sprach-tab-label {
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.7;
  letter-spacing: 0.02em;
}
.sprach-tab.aktiv .sprach-tab-label { opacity: 1; }
.sprach-tab-hinweis {
  font-size: 0.78rem;
  color: var(--text-hell);
  font-style: italic;
  margin-left: auto;
  padding-bottom: 0.5rem;
  padding-right: 0.25rem;
}
.sprach-feld { display: block; }
.sprach-feld.versteckt { display: none; }
.inhalte-input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--rand);
  border-radius: var(--radius);
  font-size: 0.96rem;
  font-family: inherit;
  color: var(--text);
  background: var(--hell);
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.inhalte-input:focus {
  outline: none;
  border-color: var(--blau);
  background: white;
  box-shadow: 0 0 0 3px rgba(65,130,210,0.12);
}
.inhalte-textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--rand);
  border-radius: var(--radius);
  font-size: 0.94rem;
  font-family: inherit;
  color: var(--text);
  background: var(--hell);
  resize: vertical;
  line-height: 1.65;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.inhalte-textarea:focus {
  outline: none;
  border-color: var(--blau);
  background: white;
  box-shadow: 0 0 0 3px rgba(65,130,210,0.12);
}
.inhalte-speichern-leiste {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 0 0.5rem;
  border-top: 1px solid var(--rand);
  margin-top: 0.5rem;
}
.einstellung-sektion { background: white; border: 1px solid var(--rand); border-radius: var(--radius); padding: 1.75rem; margin-bottom: 1.5rem; box-shadow: var(--schatten); }
.einstellung-sektion h2 { color: var(--blau); font-size: 1.05rem; margin-bottom: 1.25rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--rand); font-family: Georgia, serif; }

.login-box {
  max-width: 420px;
  margin: 5rem auto;
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--schatten-md);
  border: 1px solid var(--rand);
}
.login-box h1 { font-size: 1.6rem; color: var(--blau); margin-bottom: 0.25rem; }
.login-sub { color: var(--text-hell); margin-bottom: 2rem; font-size: 0.9rem; }

/* ── Responsive ── */
@media (max-width: 768px) {
  /* Header: kein horizontaler Overflow, Hamburger korrekt sichtbar */
  .admin-header .header-inner { padding: 0 0.75rem; gap: 0.5rem; }
  .admin-header nav { min-width: 0; }
  .admin-header .nav-toggle { display: block; }
  .admin-header .lang-switch { display: none !important; }
  .header-inner { position: relative; }
  /* Dropdown-Menü als Overlay unterhalb des Headers */
  .admin-header nav ul { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--blau-tief); padding: 0.5rem 0; box-shadow: 0 8px 24px rgba(0,0,0,0.3); z-index: 200; }
  .admin-header nav ul.offen { display: flex; }
  .admin-header nav ul li a { padding: 0.85rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.08) !important; color: rgba(255,255,255,0.85); }
  .nav-extra { display: list-item; }
  .nav-extra-abmelden a { color: var(--akzent-hell) !important; font-weight: 600; }
  .admin-main { padding: 1rem 0.75rem; }
  .admin-tabelle { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .einstellung-sektion { padding: 1.25rem; }
  .karten-section { padding: 3rem 1.25rem; }
  .stat-karten { grid-template-columns: 1fr 1fr !important; }
  .footer-links { flex-wrap: wrap; }
  .sprach-felder { grid-template-columns: 1fr; }
  .form-reihe { flex-direction: column; }
  .listen-eintrag { flex-direction: column; }
}
@media (max-width: 480px) {
  .stat-karten { grid-template-columns: 1fr !important; }
}

.album-gruppe { margin-bottom: 2.5rem; }
.album-titel { font-size: 1.2rem; color: var(--blau); margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--rand); font-family: Georgia, serif; }

.predigt-cover { width: 90px; height: 90px; object-fit: cover; border-radius: 8px; flex-shrink: 0; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }

/* Logo */
.logo-icon-img { height: 38px; width: 38px; object-fit: contain; background: white; border-radius: 7px; padding: 3px; flex-shrink: 0; }
.hero-logo-wrap { background: white; border-radius: 12px; display: inline-block; padding: 10px 28px; margin-bottom: 1.75rem; box-shadow: 0 4px 20px rgba(0,0,0,0.2); }
.hero-logo { height: 56px; display: block; }
@media (max-width: 480px) { .hero-logo { height: 42px; } .hero-logo-wrap { padding: 8px 18px; } }
.admin-tabelle td, .admin-tabelle th { vertical-align: middle; }
td.aktionen { white-space: nowrap; }
.aktionen-wrap { display: flex; align-items: center; gap: 0.75rem; flex-wrap: nowrap; }
.aktionen-wrap form { display: contents; }

/* Predigt-Karte */
.predigt-karte {
  display: flex;
  gap: 1.25rem;
  background: white;
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--schatten);
  border: 1px solid var(--rand);
  margin-bottom: 1rem;
  transition: box-shadow 0.2s;
}
.predigt-karte:hover { box-shadow: var(--schatten-md); }

.predigt-cover-wrap { flex-shrink: 0; }
.predigt-cover-bild {
  width: 88px; height: 88px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  display: block;
}
.predigt-cover-placeholder {
  width: 88px; height: 88px;
  background: linear-gradient(135deg, var(--blau) 0%, var(--blau-hell) 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: rgba(255,255,255,0.75);
}

.predigt-inhalt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.predigt-titel { font-size: 1rem; color: var(--blau); font-family: Georgia, serif; line-height: 1.35; }
.predigt-meta { display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; color: var(--text-hell); font-size: 0.83rem; }
.meta-trenner { opacity: 0.35; }
.predigt-beschreibung { color: var(--text-hell); font-size: 0.875rem; line-height: 1.55; margin-top: 0.1rem; }

.predigt-player-zeile {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
}
.predigt-player-zeile audio {
  flex: 1;
  min-width: 0;
  height: 36px;
  accent-color: var(--blau);
}
.download-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: var(--grau);
  border: 1.5px solid var(--rand);
  border-radius: 8px;
  color: var(--blau);
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.2s;
}
.download-btn:hover { background: var(--blau); color: white; border-color: var(--blau); }

@media (max-width: 500px) {
  .predigt-cover-placeholder, .predigt-cover-bild { width: 64px; height: 64px; font-size: 1.5rem; }
}

/* Filter-Leiste (Admin) */
.filter-leiste {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.filter-suche {
  flex: 1;
  min-width: 180px;
  padding: 0.5rem 0.75rem;
  border: 1.5px solid var(--rand);
  border-radius: var(--radius);
  font-size: 0.9rem;
  background: white;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}
.filter-suche:focus { border-color: var(--blau); }
.filter-select {
  padding: 0.5rem 0.75rem;
  border: 1.5px solid var(--rand);
  border-radius: var(--radius);
  font-size: 0.9rem;
  background: white;
  color: var(--text);
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}
.filter-select:focus { border-color: var(--blau); }
.filter-anzahl {
  font-size: 0.82rem;
  color: var(--text-hell);
  white-space: nowrap;
  margin-left: auto;
}

/* Öffentliche Suchleiste */
.public-filter {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}
.public-suche-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}
.suche-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--text-hell);
  pointer-events: none;
}
.public-suche-input {
  width: 100%;
  padding: 0.65rem 0.9rem 0.65rem 2.5rem;
  border: 1.5px solid var(--rand);
  border-radius: 2rem;
  font-size: 0.95rem;
  background: white;
  color: var(--text);
  outline: none;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.public-suche-input:focus {
  border-color: var(--blau);
  box-shadow: 0 0 0 3px rgba(26,58,92,0.12);
}
.public-filter-select {
  padding: 0.65rem 1rem;
  border: 1.5px solid var(--rand);
  border-radius: 2rem;
  font-size: 0.9rem;
  background: white;
  color: var(--text);
  outline: none;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: border-color 0.2s;
}
.public-filter-select:focus { border-color: var(--blau); }
.public-filter-anzahl {
  font-size: 0.82rem;
  color: var(--text-hell);
  white-space: nowrap;
}

.footer-copyright {
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.38);
  padding: 0.8rem 1rem;
  letter-spacing: 0.02em;
}

/* ── Hero-Navigation (nur Startseite) ── */
.hero-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}
.hero-nav-toggle {
  display: none;
}
.hero-nav-logo {
  height: 70px;
  filter: brightness(0) invert(1);
}
.hero-nav-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-nav-links a {
  color: white;
  text-decoration: none;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  opacity: 0.9;
  transition: opacity 0.2s;
}
.hero-nav-links a:hover { opacity: 1; text-decoration: underline; }
.hero-lang-switch {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}
.hero-lang-switch a {
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  transition: all 0.2s;
}
.hero-lang-switch a.aktiv {
  color: white;
  background: rgba(255,255,255,0.2);
}
.hero-lang-switch a:hover { color: white; }
@media (max-width: 500px) {
  .hero-nav-links { gap: 1rem; font-size: 0.85rem; }
  .hero-nav-logo { height: auto; max-height: 48px; max-width: calc(100% - 4rem); width: auto; }
}

.hero-nav-trenner {
  color: rgba(255,255,255,0.35);
  font-size: 1rem;
  user-select: none;
}

/* ── Über-uns / Was-glauben-wir ── */
.glauben-titel {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--blau);
  margin-bottom: 1.75rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--rand);
}
.glauben-liste {
  list-style: none;
  counter-reset: glauben;
  padding: 0;
  margin: 0 0 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.glauben-liste li {
  counter-increment: glauben;
  position: relative;
  padding-left: 2.8rem;
  line-height: 1.7;
  color: var(--text);
  font-size: 1rem;
}
.glauben-liste li::before {
  content: counter(glauben) ".";
  position: absolute;
  left: 0;
  top: 0.05em;
  font-weight: 700;
  color: var(--blau);
  font-family: Georgia, serif;
  width: 2.2rem;
}
.fn-trenner {
  border: none;
  border-top: 1px solid var(--rand);
  margin: 2rem 0 1.5rem;
}
.fussnoten {
  font-size: 0.82rem;
  color: var(--text-hell);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.fussnoten p {
  margin: 0;
  padding-left: 1.5rem;
  text-indent: -1.5rem;
}
.fussnoten strong {
  color: var(--blau-tief);
  font-size: 0.8rem;
}
.glauben-liste sup a,
.fussnoten sup a {
  color: var(--blau-hell);
  text-decoration: none;
  font-size: 0.7em;
  font-weight: 700;
}
.glauben-liste sup a:hover,
.fussnoten sup a:hover {
  text-decoration: underline;
}

/* ── Kontakt-Seite ── */
.kontakt-seite { padding-bottom: 4rem; }

.kontakt-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
  padding-top: 3.5rem;
  align-items: start;
}

/* ── Linke Spalte ── */
.kontakt-info h2 {
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--blau-tief);
  margin: 0 0 1rem;
}
.kontakt-info > p {
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.kontakt-punkte {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.kontakt-punkte li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.kontakt-icon {
  width: 2.8rem;
  height: 2.8rem;
  background: #dbeafe;
  color: var(--blau);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.kontakt-punkte li div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-top: 0.25rem;
}
.kontakt-punkte li strong {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--blau-tief);
}
.kontakt-punkte li span {
  font-size: 0.88rem;
  color: var(--text-hell);
}

.kontakt-vers {
  border-left: 3px solid var(--akzent-hell);
  margin: 0;
  padding: 1rem 1.25rem;
  background: #eef3f9;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--blau-tief);
  line-height: 1.6;
}

/* ── Rechte Spalte: Formular-Karte ── */
.kontakt-formular-wrap {
  background: white;
  border-radius: calc(var(--radius) * 2);
  box-shadow: 0 4px 24px rgba(30,60,120,0.10);
  padding: 2.5rem 2.25rem 2rem;
  border: 1px solid rgba(30,60,120,0.07);
}

.formular-titel {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--blau-tief);
  margin: 0 0 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--blau-hell);
}

.kontakt-formular .feld {
  margin-bottom: 1.3rem;
}
.kontakt-formular label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blau-tief);
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
}
.kontakt-formular input,
.kontakt-formular textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #d0d8e8;
  border-radius: var(--radius);
  font-size: 0.97rem;
  font-family: inherit;
  color: var(--dunkel);
  background: #f8fafd;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.kontakt-formular input:focus,
.kontakt-formular textarea:focus {
  outline: none;
  border-color: var(--blau);
  background: white;
  box-shadow: 0 0 0 3px rgba(65,130,210,0.12);
}
.kontakt-formular textarea { resize: vertical; min-height: 130px; }

.btn-voll {
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: 0.85rem 1.5rem;
  margin-top: 0.5rem;
}

.formular-hinweis {
  font-size: 0.78rem;
  color: #8a97aa;
  margin: 0.85rem 0 0;
  text-align: center;
  line-height: 1.5;
}

/* ── Erfolgs-Meldung ── */
.kontakt-erfolg {
  text-align: center;
  padding: 2rem 1rem;
}
.kontakt-erfolg-icon {
  display: inline-flex;
  width: 3.5rem;
  height: 3.5rem;
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: 50%;
  font-size: 1.6rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.kontakt-erfolg h3 {
  color: #2e7d32;
  margin: 0 0 0.5rem;
}
.kontakt-erfolg p {
  color: var(--grau);
  line-height: 1.6;
}

@media (max-width: 820px) {
  .kontakt-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 2rem;
  }
  .kontakt-formular-wrap { padding: 1.75rem 1.5rem; }
}

/* ── Admin: Dashboard Statistiken ── */
.dash-traffic-wrap {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 2rem;
}
.dash-tabellen-panel,
.dash-chart-panel {
  background: white;
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--schatten);
}
.dash-section-titel {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blau-tief);
  margin: 0 0 1.1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--rand);
}
.dash-stat-tabelle {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.dash-stat-tabelle th {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-hell);
  padding: 0 0 0.6rem;
  border-bottom: 2px solid var(--rand);
}
.dash-stat-tabelle th.rechts,
.dash-stat-tabelle td.rechts { text-align: right; }
.dash-stat-tabelle td {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rand);
  color: var(--text);
  vertical-align: middle;
}
.dash-stat-tabelle tr:last-child td { border-bottom: none; }
.gesamt-zeile td {
  font-weight: 700;
  color: var(--blau-tief);
  padding-top: 0.85rem;
}
.stat-hinweis {
  display: block;
  font-size: 0.72rem;
  color: var(--text-hell);
  font-style: italic;
  margin-top: 0.05rem;
}
.stat-zahl-klein {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--blau-tief);
  white-space: nowrap;
}
.pct-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  margin-left: 0.35rem;
  vertical-align: middle;
}
.pct-badge.gruen { background: #dcfce7; color: #166534; }
.pct-badge.rot   { background: #fee2e2; color: #991b1b; }
.stat-legende {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-hell);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.legende-punkt {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.legende-punkt.blau { background: #2c6fad; }
.legende-punkt.lila { background: #7c3aed; }

@media (max-width: 900px) {
  .dash-traffic-wrap { grid-template-columns: 1fr; }
}

/* Parallax nur am Desktop — iOS/Mobile rendert fixed fehlerhaft */
@media (min-width: 901px) and (hover: hover) and (pointer: fine) {
  .site-header, .hero { background-attachment: fixed; }
}
