/* ============================================================================
   Klausengesellschaft Oberarth — Redesign "Us der Nacht is warme Stübli"
   Konzept: der Bogen der Chlaus-Nacht — aus der dunklen Dezembernacht des
   Umzugs (Navy) in die warme, erleuchtete Stube (Schnee-Papier). Marken-DNA
   Navy + Gold bleibt, das Rot von Robe und rotem Teppich wird Zeremonien-Akzent.
   Display: Fraunces (selbst gehostet). Body/UI: Hanken Grotesk.
   ========================================================================== */

/* --- Fonts (selbst gehostet, CSP font-src 'self') --------------------------- */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url('/assets/fonts/fraunces-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url('/assets/fonts/fraunces-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/fraunces-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/fraunces-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/hanken-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/hanken-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Tokens ----------------------------------------------------------------- */
:root {
  --night: #161c47;         /* Dezembernacht — Hero, Formular, atmosphärische Bänder */
  --night-deep: #0e1236;    /* tiefste Nacht — Footer */
  --ink: #1c2036;           /* Fliesstext auf hell */
  --muted: #5c6079;         /* Sekundärtext */

  --gold: #f4c518;          /* Marken-Gold (Logo-Wirbel) — Licht & Akzent */
  --gold-2: #d59a1e;        /* tieferes Amber — Akzent auf hellem Grund */
  --robe: #b12a25;          /* Chlaus-Robe / roter Teppich — Aktion & Zeremonie */
  --robe-dark: #8f1f1c;

  --snow: #f5f1e8;          /* Schnee-Papier — helle Lesesektionen */
  --snow-2: #ece5d5;        /* tieferes Papier — Insets */
  --card: #fffdf9;          /* Kartenfläche */

  --line: rgba(22, 28, 71, 0.13);
  --line-strong: rgba(22, 28, 71, 0.22);
  --line-dark: rgba(255, 255, 255, 0.16);

  --shadow: 0 22px 55px rgba(14, 18, 54, 0.14);
  --shadow-lift: 0 30px 74px rgba(10, 14, 44, 0.30);

  --r: 14px;
  --r-sm: 10px;
  --r-lg: 20px;

  --maxw: 1160px;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* --- Base ------------------------------------------------------------------- */
* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--snow);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--night);
}
h1 em, h2 em { font-style: italic; color: var(--robe); }

/* Eyebrow — wie die getippte Bildlegende auf einem gedruckten Klausenbrief */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--robe);
}
.eyebrow::before {
  content: "✦";
  color: var(--gold-2);
  font-size: 0.8em;
  letter-spacing: 0;
}
.eyebrow-on-dark { color: var(--gold); }
.eyebrow-on-dark::before { color: var(--gold); }

/* --- Header ----------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
  padding: 12px clamp(18px, 4vw, 40px);
  background: rgba(245, 241, 232, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { width: min(360px, 32vw); max-height: 66px; object-fit: contain; }
.main-nav { display: flex; justify-content: center; align-items: center; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  color: var(--night);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  position: relative;
}
.main-nav a:hover { color: var(--robe); }
.main-nav a.active { color: var(--robe); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 3px;
  height: 2px;
  background: var(--gold-2);
  border-radius: 2px;
}
.header-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--robe);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
  box-shadow: 0 12px 26px rgba(177, 42, 37, 0.26);
  transition: background .2s ease, transform .2s ease;
}
.header-cta:hover { background: var(--robe-dark); transform: translateY(-1px); }
.menu-toggle { display: none; }

/* --- Buttons ---------------------------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: 999px;
  padding: 13px 26px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--robe); color: #fff; box-shadow: 0 16px 34px rgba(177, 42, 37, 0.3); }
.button-primary:hover { background: var(--robe-dark); }
.button-secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.button-secondary:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.7); }
.button-outline { background: transparent; color: var(--night); border-color: var(--line-strong); }
.button-outline:hover { border-color: var(--robe); color: var(--robe); }
.full { width: 100%; margin-top: 24px; }

/* --- Signature: laternenbeleuchteter Hero ----------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: min(92vh, 860px);
  display: grid;
  align-items: center;
  padding: clamp(64px, 9vw, 128px) 22px clamp(56px, 7vw, 104px);
  color: #fff;
  background: var(--night-deep);
}
.hero-background {
  position: absolute;
  inset: 0;
  background-image: url("hero-startseite.jpg");
  background-size: cover;
  background-position: 58% center;
  transform: scale(1.03);
}
/* Overlay: dunkelt die Nacht für Lesbarkeit + legt den warmen Laternen-Lichtkegel
   hinter die Textspalte (die Signature). */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(58% 60% at 32% 46%, rgba(244, 197, 24, 0.26) 0%, rgba(244, 197, 24, 0.07) 34%, transparent 66%),
    linear-gradient(102deg, rgba(9, 12, 40, 0.93) 0%, rgba(14, 18, 54, 0.82) 40%, rgba(14, 18, 54, 0.42) 72%, rgba(14, 18, 54, 0.30) 100%),
    linear-gradient(0deg, rgba(9, 12, 40, 0.72), transparent 46%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.86fr);
  gap: clamp(34px, 5vw, 68px);
  align-items: center;
}
.hero-copy { animation: rise-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.7rem, 6.4vw, 4.7rem);
  line-height: 1.0;
  letter-spacing: -0.018em;
  text-shadow: 0 2px 30px rgba(9, 12, 40, 0.5);
}
.hero h1 em { color: var(--gold); font-style: italic; }
.lead {
  max-width: 40ch;
  margin: 22px 0 0;
  font-size: clamp(1.08rem, 1.7vw, 1.3rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 38px;
  max-width: 520px;
}
.quick-facts div {
  display: grid;
  gap: 3px;
  padding: 15px 16px;
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.quick-facts span { font-size: 1.35rem; line-height: 1; }
.quick-facts strong { color: #fff; font-weight: 600; }
.quick-facts small { color: rgba(255, 255, 255, 0.7); font-size: 0.78rem; }

/* Hero-Card = das warm erleuchtete Stubenfenster in der Nacht */
.hero-card {
  position: relative;
  padding: clamp(24px, 3.4vw, 34px);
  border-radius: var(--r-lg);
  background: linear-gradient(168deg, var(--card), var(--snow) 120%);
  color: var(--ink);
  box-shadow: var(--shadow-lift);
  border: 1px solid rgba(255, 255, 255, 0.6);
  animation: rise-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.12s both;
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(244, 197, 24, 0.55), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.hero-icon {
  width: 62px; height: 62px;
  object-fit: contain;
  border-radius: var(--r-sm);
  background: var(--night);
  padding: 8px;
  margin-bottom: 16px;
}
.card-label {
  margin: 0 0 8px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--robe);
}
.hero-card h2 { margin: 0; color: var(--night); font-size: clamp(1.5rem, 2.4vw, 1.95rem); line-height: 1.12; }
.hero-card > p { color: var(--muted); line-height: 1.6; font-size: 0.98rem; }
.visit-list { display: grid; gap: 12px; margin-top: 22px; }
.visit-box {
  display: grid;
  gap: 3px;
  padding: 15px 16px;
  border-radius: var(--r);
  background: var(--snow);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold-2);
}
.visit-box strong { color: var(--robe); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; }
.visit-box span { font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; color: var(--night); }
.visit-box small { color: var(--muted); font-size: 0.85rem; }
.deadline-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--r);
  background: rgba(177, 42, 37, 0.08);
  border: 1px solid rgba(177, 42, 37, 0.24);
  color: var(--robe-dark);
  font-weight: 600;
  font-size: 0.95rem;
}

/* --- Intro-Band (schmales Nachtband) ---------------------------------------- */
.intro-band {
  padding: 30px 22px;
  background: var(--night);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.intro-band-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.intro-band img { width: 56px; height: 56px; object-fit: contain; border-radius: var(--r-sm); background: #fff; padding: 8px; flex: none; }
.intro-band p {
  margin: 0;
  max-width: 640px;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
  font-style: italic;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

/* --- Sections --------------------------------------------------------------- */
.section { padding: clamp(60px, 8vw, 100px) 22px; }
.section-light { background: var(--snow); }
.section-heading { max-width: 720px; margin: 0 auto; text-align: center; }
.section-heading h2,
.form-info h2,
.donate-text h2 { margin: 0; font-size: clamp(2rem, 3.8vw, 3.1rem); line-height: 1.06; }
.section-heading p:not(.eyebrow),
.form-info p:not(.eyebrow),
.donate-text p:not(.eyebrow) { color: var(--muted); line-height: 1.7; font-size: 1.06rem; margin-top: 14px; }

/* Schritte als Stationen der Besuchsroute (goldener Routen-Faden) */
.steps {
  position: relative;
  max-width: var(--maxw);
  margin: 52px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.steps::before { /* der Routen-Faden */
  content: "";
  position: absolute;
  top: 27px;
  left: 12%;
  right: 12%;
  height: 0;
  border-top: 2px dashed rgba(213, 154, 30, 0.5);
  z-index: 0;
}
.step-card { position: relative; z-index: 1; padding-top: 8px; text-align: center; }
.step-card span {
  width: 54px; height: 54px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--snow);
  border: 2px solid var(--gold-2);
  color: var(--robe);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  box-shadow: 0 0 0 6px var(--snow);
}
.step-card h3 { color: var(--night); font-size: 1.12rem; margin: 0 0 8px; }
.step-card p { color: var(--muted); line-height: 1.6; font-size: 0.96rem; margin: 0; }

/* --- Formular (Nacht mit warmem Stubenfenster) ------------------------------ */
.section-form {
  color: #fff;
  background:
    radial-gradient(50% 55% at 82% 8%, rgba(244, 197, 24, 0.12), transparent 60%),
    linear-gradient(168deg, var(--night), var(--night-deep));
}
.form-layout {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1.08fr);
  gap: clamp(32px, 5vw, 60px);
  align-items: start;
}
.form-info h2 { color: #fff; }
.form-info p:not(.eyebrow) { color: rgba(255, 255, 255, 0.82); }
.notice-card {
  margin-top: 28px;
  padding: 24px 26px;
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 3px solid var(--gold);
}
.notice-card h3 { margin: 0 0 12px; color: #fff; font-size: 1.15rem; }
.notice-card ul { margin: 0; padding-left: 1.1rem; }
.notice-card li { margin: 9px 0; color: rgba(255, 255, 255, 0.82); line-height: 1.55; }

.form-card { padding: clamp(22px, 3.4vw, 34px); border-radius: var(--r-lg); background: var(--card); color: var(--ink); box-shadow: var(--shadow-lift); }
.form-card-header { display: flex; gap: 15px; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.form-card-header img { width: 60px; height: 60px; object-fit: contain; border-radius: var(--r-sm); background: var(--night); padding: 8px; flex: none; }
.form-card-header h3 { margin: 0; color: var(--night); font-size: 1.4rem; }
.form-card-header p { margin: 3px 0 0; color: var(--muted); font-size: 0.92rem; }
.form-card h4 { font-family: var(--font-body); color: var(--night); font-size: 1.02rem; font-weight: 700; margin: 24px 0 6px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
label { display: grid; gap: 7px; color: var(--night); font-weight: 500; font-size: 0.92rem; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 0.98rem;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}
textarea { min-height: 76px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--robe); box-shadow: 0 0 0 3px rgba(177, 42, 37, 0.14); }
.participants-head { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.participants-head h4 { margin: 0; }
.participants-head p { margin: 4px 0 0; color: var(--muted); font-size: 0.9rem; }
.participants { display: grid; gap: 16px; margin-top: 16px; }
.participant { padding: 18px; border-radius: var(--r); background: var(--snow); border: 1px solid var(--line); }
.participant-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 14px; }
.participant-top strong { font-family: var(--font-display); font-size: 1.1rem; color: var(--night); font-weight: 500; }
.remove-participant { border: 0; background: transparent; color: var(--robe); font-weight: 600; cursor: pointer; font-size: 0.9rem; }
.remove-participant:hover { text-decoration: underline; }
.consent { margin-top: 20px; grid-template-columns: auto 1fr; align-items: start; font-weight: 400; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
.consent input { width: auto; margin-top: 3px; }
.consent a { color: var(--robe); font-weight: 600; }
.form-message { text-align: center; font-weight: 600; color: var(--night); margin-top: 14px; min-height: 1.2em; }

/* --- Galerie ---------------------------------------------------------------- */
.gallery {
  max-width: var(--maxw);
  margin: 50px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px;
  gap: 14px;
}
.gallery figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--night);
  box-shadow: var(--shadow);
}
.gallery-large { grid-column: span 2; grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute;
  left: 12px; right: 12px; bottom: 12px;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  background: rgba(14, 18, 54, 0.72);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Spenden ---------------------------------------------------------------- */
.section-donate { background: var(--snow-2); }
.donate-layout {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.68fr);
  gap: clamp(30px, 5vw, 60px);
  align-items: center;
}
.qr-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow); }
.qr-image-wrap { border-radius: var(--r); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.qr-image-wrap img { width: 100%; height: auto; }
.qr-info { display: flex; gap: 13px; align-items: center; margin-top: 16px; }
.qr-info img { width: 48px; height: 48px; object-fit: contain; border-radius: var(--r-sm); background: var(--night); padding: 6px; flex: none; }
.qr-info h3 { margin: 0; color: var(--night); font-size: 1.1rem; }
.qr-info p { margin: 3px 0 0; color: var(--muted); line-height: 1.45; font-size: 0.9rem; }

/* --- Footer (tiefste Nacht) ------------------------------------------------- */
.site-footer { padding: 56px 22px 44px; color: #fff; background: var(--night-deep); }
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr repeat(3, minmax(150px, 1fr));
  gap: 18px;
  align-items: start;
}
.footer-brand img { max-width: 320px; width: 100%; height: auto; background: #fff; border-radius: var(--r); padding: 10px; }
.footer-brand p { max-width: 420px; color: rgba(255, 255, 255, 0.68); line-height: 1.6; font-size: 0.95rem; }
.footer-card { padding: 18px 20px; border-radius: var(--r); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); display: grid; gap: 6px; }
.footer-card strong { color: var(--gold); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; }
.footer-card span { color: rgba(255, 255, 255, 0.82); line-height: 1.5; font-size: 0.95rem; }

/* --- Zusatzfelder Kinder/Senioren ------------------------------------------- */
.child-details {
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--r);
  background: rgba(22, 28, 71, 0.04);
  border: 1px dashed var(--line-strong);
}
.child-details.is-hidden { display: none; }
.child-details-title { margin: 0 0 14px; font-family: var(--font-body); color: var(--night); font-weight: 700; font-size: 0.92rem; }
.field-help { margin-top: -2px; color: var(--muted); font-size: 0.78rem; line-height: 1.4; font-weight: 400; }
.grade-field.is-hidden { display: none; }
.participant-summary { color: var(--muted); font-size: 0.85rem; font-weight: 400; }

/* --- Unterseiten (Klausenbrief, Besuchstage, Downloads, Datenschutz) --------- */
.inner-hero {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: grid;
  align-items: end;
  padding: 48px 22px;
  color: #fff;
  background: var(--night-deep);
}
.inner-hero-background { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.03); }
.inner-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 60% at 22% 60%, rgba(244, 197, 24, 0.16), transparent 62%),
    linear-gradient(180deg, rgba(9, 12, 40, 0.45), rgba(9, 12, 40, 0.9));
}
.inner-hero-inner { position: relative; z-index: 1; max-width: var(--maxw); width: 100%; margin: 0 auto; }
.inner-hero .eyebrow { color: var(--gold); }
.inner-hero .eyebrow::before { color: var(--gold); }
.inner-hero h1 { margin: 0; color: #fff; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.04; }

.content-section { max-width: 760px; margin: 0 auto; padding: clamp(52px, 8vw, 80px) 22px; }
.content-section h1, .content-section h2 { color: var(--night); font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 0 0 18px; }
.content-section p { color: var(--muted); line-height: 1.8; font-size: 1.06rem; }
.content-section .visit-list { margin-top: 26px; }
.placeholder-box {
  padding: 22px 26px;
  border-radius: var(--r);
  background: rgba(22, 28, 71, 0.04);
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  font-style: italic;
  line-height: 1.7;
}
.download-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.download-list li { padding: 16px 20px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.download-list a { color: var(--robe); font-weight: 600; text-decoration: none; }
.download-pending { color: var(--muted); font-weight: 500; font-size: 0.9rem; }
.download-info { display: grid; gap: 3px; }
.download-info strong { color: var(--night); }
.download-info small { color: var(--muted); font-weight: 400; font-size: 0.9rem; }
.download-link { color: var(--robe); font-weight: 600; text-decoration: none; white-space: nowrap; }
.download-link:hover { text-decoration: underline; }

.karten-wrap { display: grid; gap: 18px; margin-top: 26px; }
.karten-wrap .karte { margin: 0; }
.karten-wrap .karte img { width: 100%; height: auto; border-radius: var(--r); border: 1px solid var(--line); }
.karten-wrap .karte figcaption { margin-top: 8px; color: var(--muted); font-weight: 500; font-size: 0.9rem; }

/* --- Utilities -------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  z-index: 100;
  background: var(--robe);
  color: #fff;
  padding: 14px 22px;
  border-radius: 0 0 var(--r-sm) 0;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 0; top: 0; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Sichtbarer Tastatur-Fokus (Qualitätsboden) */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, .button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* --- Responsive ------------------------------------------------------------- */
@media (max-width: 1040px) {
  .site-header { grid-template-columns: auto auto; }
  .brand-logo { width: min(300px, 58vw); }
  .menu-toggle {
    display: inline-grid;
    place-items: center;
    justify-self: end;
    width: 44px; height: 44px;
    border-radius: var(--r-sm);
    border: 1px solid var(--line-strong);
    background: var(--card);
    color: var(--night);
    font-size: 22px;
    cursor: pointer;
  }
  .main-nav, .header-cta { display: none; }
  .site-header.nav-open .main-nav { display: grid; grid-column: 1 / -1; justify-content: stretch; gap: 4px; padding-top: 10px; }
  .site-header.nav-open .main-nav a { padding: 12px 14px; border-radius: var(--r-sm); background: rgba(22, 28, 71, 0.05); }
  .site-header.nav-open .main-nav a.active::after { display: none; }
  .hero-inner, .form-layout, .donate-layout { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand-logo { width: 240px; }
  .hero { min-height: auto; padding-top: 56px; }
  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(9, 12, 40, 0.78), rgba(14, 18, 54, 0.9)),
      radial-gradient(70% 40% at 40% 26%, rgba(244, 197, 24, 0.18), transparent 60%);
  }
  .quick-facts, .steps, .form-grid, .footer-inner, .gallery { grid-template-columns: 1fr; }
  .quick-facts { max-width: none; }
  .gallery { grid-auto-rows: 240px; }
  .gallery-large { grid-column: auto; grid-row: auto; }
  .intro-band-inner, .qr-info { flex-direction: column; align-items: flex-start; text-align: left; }
  .participants-head { flex-direction: column; align-items: flex-start; }
  .hero-actions .button { flex: 1 1 auto; }
}

/* --- Reduced motion --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .hero-copy, .hero-card { animation: none; }
}
