/* Layout der datengetriebenen Seitentypen (Hub, Leistung, Kosten).
   Bewusst ohne Scroll-Animationen und ohne opacity:0 - der Text steht
   ohne JavaScript sofort sichtbar im HTML. */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--surface-white);
  color: var(--dark);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: 'Noto Serif', Georgia, serif;
  color: var(--dark);
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-wrap: balance;
}
p { text-wrap: pretty; }

.page-inner {
  max-width: 820px;
  margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}

/* ── Navigation ─────────────────────────────────────────────── */
.site-nav {
  border-bottom: 1px solid var(--outline);
  background: var(--surface-white);
}
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px max(24px, env(safe-area-inset-left, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--dark);
  font-family: 'Noto Serif', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
}
.site-nav nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.site-nav nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.86rem;
  transition: color 0.2s var(--ease);
}
.site-nav nav a:hover { color: var(--gold); }
.nav-cta {
  background: var(--dark);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: transform 0.16s var(--ease-out), opacity 0.2s var(--ease);
}
.nav-cta:hover { opacity: 0.88; }
.nav-cta:active { transform: scale(0.97); }

/* ── Seitenkopf ─────────────────────────────────────────────── */
.page-head {
  background: var(--surface);
  border-bottom: 1px solid var(--outline);
  padding-block: 40px 48px;
}
.page-head h1 {
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  margin: 0 0 16px;
}
.page-intro {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 62ch;
  margin: 0;
}

.page-body { padding-block: 48px 72px; }

/* ── Inhaltsbloecke ─────────────────────────────────────────── */
.prose-block { margin-bottom: 40px; }
.prose-block h2 {
  font-size: 1.4rem;
  margin: 0 0 12px;
}
.prose-block p { margin: 0 0 14px; color: var(--muted); }
.punkte { margin: 0; padding-left: 20px; color: var(--muted); }
.punkte li { margin-bottom: 8px; }

/* ── Angebotsbox auf Leistungsseiten ────────────────────────── */
.angebot-box {
  border: 1px solid var(--outline);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface);
  padding: 24px;
  margin: 0 0 40px;
}
.angebot-preis { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.preis-wert {
  font-family: 'Noto Serif', Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.preis-einheit { color: var(--muted); font-size: 0.86rem; }
.angebot-gebiet { color: var(--muted); font-size: 0.86rem; margin: 8px 0 18px; }
.angebot-cta {
  display: inline-block;
  background: var(--dark);
  color: #fff;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 0.16s var(--ease-out), opacity 0.2s var(--ease);
}
.angebot-cta:hover { opacity: 0.88; }
.angebot-cta:active { transform: scale(0.97); }

.leistung-bild { margin: 0 0 40px; }
.leistung-bild img { border-radius: var(--radius); display: block; width: 100%; }
.leistung-bild figcaption { color: var(--muted); font-size: 0.82rem; margin-top: 8px; }

/* ── Ablaufliste ────────────────────────────────────────────── */
.ablauf { counter-reset: schritt; list-style: none; padding: 0; margin: 0; }
.ablauf li {
  counter-increment: schritt;
  position: relative;
  padding-left: 44px;
  margin-bottom: 18px;
}
.ablauf li::before {
  content: counter(schritt, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2px;
  font-family: 'Noto Serif', Georgia, serif;
  font-size: 0.82rem;
  color: var(--gold);
  font-weight: 600;
}
.ablauf strong { display: block; }
.ablauf span { color: var(--muted); font-size: 0.92rem; }

/* ── Hub-Kinderliste ────────────────────────────────────────── */
.hub-kinder { margin: 48px 0 0; }
.hub-kinder h2 { font-size: 1.4rem; margin: 0 0 20px; }
.karten {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.karte a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 20px;
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--dark);
  background: var(--surface-white);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.karte a:hover { border-color: var(--gold); background: var(--surface); }
.karte-typ {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.karte-titel { font-weight: 600; line-height: 1.35; }
.karte-teaser { color: var(--muted); font-size: 0.86rem; }
.karte-preis {
  margin-top: auto;
  padding-top: 8px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ── Preistabelle ───────────────────────────────────────────── */
.preis-section { margin: 48px 0; }
.preis-section h2 { font-size: 1.4rem; margin: 0 0 16px; }
.tabelle-scroll { overflow-x: auto; }
.preis-tabelle {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}
.preis-tabelle caption {
  caption-side: top;
  text-align: left;
  color: var(--muted);
  font-size: 0.82rem;
  padding-bottom: 10px;
}
.preis-tabelle th,
.preis-tabelle td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--outline);
}
.preis-tabelle thead th {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.preis-tabelle tbody th { font-weight: 500; }
.preis-tabelle .einheit { color: var(--muted); font-size: 0.82rem; }
.tabelle-fussnote { color: var(--muted); font-size: 0.82rem; margin-top: 10px; }

/* ── FAQ. <details>, damit es ohne JavaScript funktioniert. ──── */
.faq-block { margin: 48px 0 0; }
.faq-block h2 { font-size: 1.4rem; margin: 0 0 16px; }
.faq-item { border-bottom: 1px solid var(--outline); }
.faq-item summary {
  cursor: pointer;
  padding: 18px 0;
  font-weight: 500;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--gold);
  font-size: 1.3rem;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.25s var(--ease-out);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 0 18px; }
.faq-answer p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.zurueck-hub { margin-top: 48px; }
.zurueck-hub a { color: var(--gold); text-decoration: none; font-weight: 500; }
.zurueck-hub a:hover { text-decoration: underline; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--dark-container);
  color: rgba(255, 255, 255, 0.72);
  margin-top: 80px;
  font-size: 0.86rem;
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 56px max(24px, env(safe-area-inset-left, 0px));
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 36px;
}
.footer-brand strong {
  color: #fff;
  font-family: 'Noto Serif', Georgia, serif;
  font-size: 1.05rem;
  display: block;
  margin-bottom: 10px;
}
.footer-inner address { font-style: normal; line-height: 1.8; }
.footer-col h2 {
  color: rgba(255, 255, 255, 0.45);
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; }
.site-footer a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.site-footer a:hover { color: var(--gold-pale); }
.footer-base {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px max(24px, env(safe-area-inset-left, 0px));
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.45);
}
