/* TERRA – Gestaltung nach DESIGN.md. Nur Tokens verwenden, keine Rohwerte in Komponenten. */

@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); }

:root {
  --navy-900: #0C2F6E;
  --navy-950: #08214F;
  --navy-800: #16408A;
  --navy-100: #E7EDF6;
  --navy-200: #B8C7E0;
  --green-500: #5EA949;
  --green-400: #7CC466;
  --green-700: #367526;
  --ink: #1B2433;
  --muted: #4A5568;
  --line: #D5DDE8;
  --bg: #FFFFFF;
  --bg-alt: #F3F6FA;
  --error: #B42318;
  --focus: #F2B705;

  --font: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-xs: 0.875rem;
  --fs-sm: 1rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem);
  --fs-3xl: clamp(2.125rem, 1.6rem + 2.4vw, 3.25rem);
  --measure: 68ch;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --gutter: 16px;
  --max: 1200px;
  --section: var(--s-8);

  --r-sm: 4px;
  --r-md: 8px;
  --shadow: 0 8px 24px rgba(8, 33, 79, 0.18);
  --bar-h: 64px;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --section: var(--s-9); }
}

/* Grundlagen */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  padding-bottom: var(--bar-h);
}
@media (min-width: 768px) { body { padding-bottom: 0; } }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 var(--s-4); color: var(--navy-900); font-weight: 700; }
h1 { font-size: var(--fs-3xl); line-height: 1.1; letter-spacing: -0.01em; }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); line-height: 1.3; }
p { margin: 0 0 var(--s-4); }
a { color: var(--navy-900); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
main:focus { outline: none; }
address { font-style: normal; }
figure { margin: 0; }
ul, ol { padding: 0; margin: 0; list-style: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.25em; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(760px + 2 * var(--gutter)); }
.muted { color: var(--muted); }
.lead { font-size: var(--fs-lg); line-height: 1.5; color: var(--muted); max-width: var(--measure); }

.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: 100;
  background: var(--focus); color: var(--navy-950); padding: var(--s-3) var(--s-4);
  font-weight: 700; border-radius: var(--r-sm);
}
.skip-link:focus { top: var(--s-4); }

.eyebrow {
  display: flex; align-items: center; gap: var(--s-2);
  font-size: var(--fs-sm); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--green-700); margin-bottom: var(--s-3);
}
.eyebrow::before { content: ""; width: 24px; height: 3px; background: var(--green-500); }
.eyebrow--light { color: var(--green-400); }
.eyebrow .icon { width: 1.1em; height: 1.1em; }
.eyebrow:has(.icon)::before { display: none; }

/* Knöpfe */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: var(--s-3) var(--s-5);
  font: inherit; font-weight: 600; line-height: 1.2; text-decoration: none;
  border: 2px solid transparent; border-radius: var(--r-sm); cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn .icon { width: 1.15em; height: 1.15em; }
.btn--primary { background: var(--green-500); color: var(--navy-950); }
.btn--primary:hover { background: var(--green-400); }
.btn--secondary { background: transparent; color: var(--navy-900); border-color: var(--navy-900); }
.btn--secondary:hover { background: var(--navy-900); color: #fff; }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--sm { min-height: 44px; padding: var(--s-2) var(--s-4); }
.btn--lg { min-height: 56px; font-size: var(--fs-lg); padding-inline: var(--s-6); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Kopfzeile */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy-950); color: #fff; border-bottom: 3px solid var(--green-500); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 72px; }
.brand { display: flex; align-items: center; gap: var(--s-3); color: #fff; text-decoration: none; }
.brand__logo { width: 44px; height: 44px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__word { font-size: 1.5rem; font-weight: 700; letter-spacing: .14em; color: var(--green-500); }
.brand__claim { font-size: var(--fs-xs); color: var(--navy-200); margin-top: 2px; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: var(--s-2);
  min-height: 44px; padding: var(--s-2) var(--s-3);
  font: inherit; font-weight: 600; color: #fff; background: transparent;
  border: 2px solid rgba(255,255,255,.4); border-radius: var(--r-sm); cursor: pointer;
}
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline; }
.nav-toggle .icon { display: block; width: 24px; height: 24px; }

.main-nav { display: none; }
.main-nav.is-open {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--navy-950); box-shadow: var(--shadow);
  padding: var(--s-2) var(--gutter) var(--s-5);
  max-height: calc(100vh - 72px); overflow-y: auto;
}
.main-nav__list a {
  display: block; padding: var(--s-3) 0; color: #fff; text-decoration: none; font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.main-nav__list a:hover { color: var(--green-400); }
.main-nav__actions { display: flex; flex-direction: column; gap: var(--s-3); margin-top: var(--s-4); }
.header-phone { display: inline-flex; align-items: center; gap: var(--s-2); color: #fff; font-weight: 600; text-decoration: none; min-height: 44px; }
.header-phone:hover { color: var(--green-400); }

@media (min-width: 1100px) {
  .nav-toggle { display: none; }
  .main-nav, .main-nav.is-open {
    display: flex; align-items: center; gap: var(--s-6);
    position: static; background: none; box-shadow: none; padding: 0; max-height: none; overflow: visible;
  }
  .main-nav__list { display: flex; gap: var(--s-5); }
  .main-nav__list a { border: 0; padding: var(--s-2) 0; font-size: var(--fs-sm); }
  .main-nav__actions { flex-direction: row; align-items: center; margin: 0; gap: var(--s-4); }
}

/* Hero – Foto als Hintergrund, Text in einer „Glas“-Karte, Notdienst-Abzeichen.
   Handy: Foto oben, Karte überlappt es. Ab 1024px: Foto füllt den ganzen Bereich. */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--navy-950); color: #fff; padding-block: 0 var(--s-6); }
.hero__grid { display: grid; gap: 0; align-items: center; }
.hero h1 { color: #fff; }
.hero__lead { font-size: var(--fs-lg); line-height: 1.5; color: var(--navy-100); max-width: 34em; margin-bottom: var(--s-6); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.hero__media { position: relative; order: -1; margin: 0 calc(-1 * var(--gutter)); }
.hero__media img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 60% 35%; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,33,79,0) 55%, rgba(8,33,79,.9) 100%); }
.hero__text {
  position: relative; z-index: 2; margin-top: calc(-1 * var(--s-8));
  background: rgba(8,33,79,.82); border: 1px solid rgba(255,255,255,.16); border-radius: 16px;
  padding: var(--s-5); box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .hero__text { background: rgba(8,33,79,.55); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
}
.hero__badge {
  position: absolute; z-index: 3; right: var(--gutter); top: var(--s-4);
  display: inline-flex; align-items: center; gap: var(--s-3); padding: 10px 16px;
  background: #fff; color: var(--navy-950); border-radius: 999px; text-decoration: none;
  font-weight: 700; font-size: var(--fs-xs); line-height: 1.2; box-shadow: 0 12px 30px rgba(0,0,0,.3);
}
.hero__badge small { display: block; font-weight: 400; color: var(--muted); }
.hero__badge:hover { box-shadow: 0 12px 30px rgba(0,0,0,.3), 0 0 0 3px var(--green-500); }
.hero__pulse { position: relative; width: 12px; height: 12px; flex: none; border-radius: 50%; background: var(--green-500); }
.hero__pulse::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; background: rgba(94,169,73,.35); animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
.facts {
  display: grid; gap: var(--s-4); margin-top: var(--s-7); padding-top: var(--s-5);
  border-top: 1px solid rgba(255,255,255,.18); color: var(--navy-100); font-size: var(--fs-sm);
}
.facts li { display: flex; align-items: flex-start; gap: var(--s-3); }
.facts .icon { color: var(--green-400); width: 24px; height: 24px; }
.facts strong { color: #fff; font-weight: 700; }
@media (min-width: 640px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .hero__text { padding: var(--s-6); }
  .hero__badge { top: calc(100vw * 10 / 16 - var(--s-8) - 72px); font-size: var(--fs-sm); padding: 14px 20px; }
}
@media (min-width: 1024px) {
  .hero { min-height: 680px; padding-block: var(--s-9) var(--s-6); }
  .hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
    linear-gradient(90deg, rgba(8,33,79,.80) 0%, rgba(8,33,79,.40) 55%, rgba(8,33,79,.12) 100%),
    linear-gradient(0deg, rgba(8,33,79,.92) 0%, rgba(8,33,79,0) 32%),
    radial-gradient(120% 90% at 50% 40%, transparent 50%, rgba(8,33,79,.55)); }
  .hero__grid { grid-template-columns: minmax(0, 620px); }
  .hero__media { position: absolute; inset: 0; z-index: -2; margin: 0; order: 0; }
  .hero__media img { height: 100%; aspect-ratio: auto; object-position: 55% 35%; }
  .hero__media::after { display: none; }
  .hero__text { margin-top: 0; padding: var(--s-7); }
  .hero__badge { top: auto; right: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); bottom: 150px; }
  .facts { grid-template-columns: repeat(4, 1fr); border-top-color: rgba(255,255,255,.25); }
}

.fieldbar { background: var(--green-500); color: var(--navy-950); }
.fieldbar p {
  margin-block: 0; padding-block: var(--s-3); font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  font-size: var(--fs-xs);
}
@media (min-width: 768px) { .fieldbar p { font-size: var(--fs-sm); } }

/* Abschnitte */
.section { padding-block: var(--section); }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: var(--measure); margin-bottom: var(--s-7); }

.split { display: grid; gap: var(--s-6); align-items: start; }
.split__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-md); }
.split__text > .btn { margin-top: var(--s-3); }
@media (min-width: 1024px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--s-8); }
  .split__media { position: sticky; top: 104px; }
  .split__media img { aspect-ratio: 4 / 5; }
  .split--reverse .split__media { order: 2; }
}

.uses { margin-block: var(--s-5); border-top: 1px solid var(--line); }
.uses li { display: flex; gap: var(--s-4); padding-block: var(--s-4); border-bottom: 1px solid var(--line); }
.uses__icon {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: var(--r-sm); background: var(--navy-100); color: var(--navy-900);
}
.uses__icon .icon { width: 22px; height: 22px; }
.uses strong { display: block; color: var(--navy-900); font-size: var(--fs-lg); }

.offer { padding-block: var(--s-5); border-top: 1px solid var(--line); }
.offer:last-of-type { border-bottom: 1px solid var(--line); margin-bottom: var(--s-5); }
.offer h3 { display: flex; align-items: center; gap: var(--s-3); }
.offer h3 .icon { color: var(--green-700); }
.offer p { margin-bottom: var(--s-3); }
.tags { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.tags li {
  padding: var(--s-1) var(--s-3); border-radius: 999px; background: var(--navy-100);
  color: var(--navy-900); font-weight: 600; font-size: var(--fs-sm);
}

/* Notdienst */
.emergency { background: var(--navy-950); color: var(--navy-100); padding-block: var(--s-8); border-top: 6px solid var(--green-500); }
.emergency h2 { color: #fff; }
.emergency__grid { display: grid; gap: var(--s-6); align-items: center; }
.emergency__grid p { max-width: 36em; margin: 0; }
.emergency__numbers { display: grid; gap: var(--s-3); }
.emergency__numbers .btn { width: 100%; }
@media (min-width: 1024px) { .emergency__grid { grid-template-columns: 1.4fr 1fr; gap: var(--s-8); } }

/* Sprachen */
.languages { display: grid; gap: var(--s-6); }
.languages__group h3 { font-size: var(--fs-lg); padding-bottom: var(--s-2); border-bottom: 3px solid var(--green-500); display: inline-block; }
.languages__group ul { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.languages__group li {
  padding: var(--s-2) var(--s-3); border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--bg); font-size: var(--fs-sm);
}
.languages__more {
  display: flex; gap: var(--s-3); align-items: flex-start; margin-top: var(--s-7); padding: var(--s-5);
  background: var(--navy-100); border-radius: var(--r-md); color: var(--navy-900); font-weight: 600; max-width: none;
}
.languages__more .icon { width: 24px; height: 24px; }
@media (min-width: 1024px) { .languages { grid-template-columns: 1.3fr 1fr 1fr; gap: var(--s-7); } }

/* Ablauf */
.steps { display: grid; gap: var(--s-5); counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: var(--s-7); border-top: 3px solid var(--navy-900); }
.steps li::before {
  content: counter(step, decimal-leading-zero); position: absolute; top: var(--s-3); left: 0;
  font-weight: 700; font-size: var(--fs-lg); color: var(--green-700); letter-spacing: .05em;
}
.steps h3 { font-size: var(--fs-lg); }
.steps p { color: var(--muted); margin: 0; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); gap: var(--s-6); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* FAQ */
.faq { display: grid; gap: var(--s-6); }
@media (min-width: 1024px) { .faq { grid-template-columns: 1fr 2fr; gap: var(--s-8); } }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  padding-block: var(--s-4); min-height: 56px; cursor: pointer; list-style: none;
  font-weight: 600; font-size: var(--fs-lg); color: var(--navy-900);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { width: 22px; height: 22px; color: var(--green-700); transition: transform .2s ease; }
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__item p { max-width: var(--measure); color: var(--muted); padding-bottom: var(--s-4); margin: 0; }

/* Kontakt */
.contact { display: grid; gap: var(--s-7); }
@media (min-width: 1024px) { .contact { grid-template-columns: 1.6fr 1fr; gap: var(--s-8); align-items: start; } }
.form {
  display: grid; gap: var(--s-5); margin-top: var(--s-6);
  background: var(--bg); border: 1px solid #C3CFDF; border-radius: 16px; padding: var(--s-5);
  box-shadow: 0 1px 2px rgba(8,33,79,.06), 0 16px 40px rgba(8,33,79,.08);
}
@media (min-width: 640px) { .form { padding: var(--s-6); } }
.form__row { display: grid; gap: var(--s-5); align-items: start; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: var(--s-2); }
.field label { font-weight: 600; color: var(--navy-950); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: var(--s-3) 14px; font: inherit; color: var(--ink);
  background: var(--bg); border: 1.5px solid #8A97AB; border-radius: 10px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input::placeholder, .field textarea::placeholder { color: #6B7A90; }
.field textarea { resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--navy-900); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy-900); box-shadow: 0 0 0 4px rgba(94,169,73,.4);
}
.field input[type="file"] {
  min-height: 72px; padding: 18px 14px; cursor: pointer;
  border: 1.5px dashed var(--green-500); background: #F4FAF1;
}
.field input[type="file"]::file-selector-button {
  font: inherit; font-weight: 700; color: var(--navy-950); background: var(--bg); cursor: pointer;
  border: 1.5px solid var(--navy-900); border-radius: 8px; padding: var(--s-2) 14px; margin-right: var(--s-3);
}
.field input[type="file"]:hover { background: #EAF5E6; }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: var(--s-3); background: var(--bg-alt); border-radius: 10px; padding: 14px var(--s-4); }
.field--check input { width: 24px; height: 24px; min-height: 0; margin-top: 2px; accent-color: var(--navy-900); }
.field--check label { font-weight: 400; color: var(--ink); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); border-width: 2px; }
.field__error { color: var(--error); font-size: var(--fs-sm); font-weight: 600; margin: 0; }
.req { color: var(--error); }
.opt { font-weight: 400; color: var(--muted); }
.hint { font-size: var(--fs-sm); color: var(--muted); margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form > .btn { justify-self: stretch; justify-content: center; min-height: 56px; font-size: var(--fs-lg); border-radius: 10px; }
.alert { padding: var(--s-4) var(--s-5); border-radius: var(--r-sm); border-left: 4px solid; margin-bottom: var(--s-5); }
.alert--error { background: #FDECEA; border-color: var(--error); color: #7A1A12; }
.alert--success { background: #EAF5E6; border-color: var(--green-700); color: #234E19; }

.contact__info {
  background: var(--bg); border: 1px solid var(--line); border-top: 6px solid var(--navy-900);
  border-radius: var(--r-md); padding: var(--s-6) var(--s-5);
}
.contact__info h3 { font-size: var(--fs-lg); }
.contact__list { display: grid; gap: var(--s-4); margin-bottom: var(--s-6); }
.contact__list li, .contact__address { display: flex; gap: var(--s-3); align-items: flex-start; }
.contact__list .icon, .contact__address .icon { color: var(--green-700); width: 22px; height: 22px; margin-top: 2px; }
.contact__label { display: block; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.contact__address { margin-bottom: var(--s-3); }
.contact__info .muted { font-size: var(--fs-sm); }

/* Fußzeile */
.site-footer { background: var(--navy-950); color: var(--navy-200); padding-top: var(--s-8); font-size: var(--fs-sm); }
.site-footer a { color: #fff; }
.site-footer__grid { display: grid; gap: var(--s-6); padding-bottom: var(--s-7); }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .site-footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1.2fr 0.8fr; } }
.site-footer__title { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .1em; color: var(--green-400); margin-bottom: var(--s-3); }
.site-footer__fields { margin-top: var(--s-4); letter-spacing: .08em; text-transform: uppercase; font-size: var(--fs-xs); }
.site-footer__links { display: grid; gap: var(--s-2); }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: var(--s-5); }
.site-footer__bottom p { margin: 0; font-size: var(--fs-xs); }
.brand--footer .brand__claim { max-width: 22em; }

/* Handy-Leiste */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: repeat(3, 1fr);
  height: var(--bar-h); background: var(--navy-950); box-shadow: var(--shadow);
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-bar__item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: #fff; text-decoration: none; font-size: var(--fs-xs); font-weight: 600;
}
.mobile-bar__item .icon { width: 22px; height: 22px; }
.mobile-bar__item--alert .icon { color: var(--focus); }
.mobile-bar__item--primary { background: var(--green-500); color: var(--navy-950); }
@media (min-width: 768px) { .mobile-bar { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .mobile-bar, .nav-toggle, .form { display: none; }
  body { padding: 0; }
}

a[href^="tel:"] { white-space: nowrap; }

.field--check .field__error { grid-column: 1 / -1; }
.alert__list { list-style: disc; padding-left: var(--s-5); margin: var(--s-2) 0 0; }
.alert__list a { color: inherit; }
.notice { max-width: 44rem; }
.notice__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }
.notice .alert { font-size: var(--fs-lg); }

/* Unterseiten */
.page-hero { background: var(--navy-900); color: var(--navy-100); padding-block: var(--s-6) var(--s-7); }
.page-hero h1 { color: #fff; max-width: 22em; }
.page-hero__lead { font-size: var(--fs-lg); line-height: 1.5; max-width: 40em; margin-bottom: var(--s-5); }
.page-hero .eyebrow .icon { width: 1.2em; height: 1.2em; }
.page-hero--plain { padding-block: var(--s-5) var(--s-6); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: var(--s-2); font-size: var(--fs-sm); margin-bottom: var(--s-5); }
.crumbs li { display: flex; align-items: center; gap: var(--s-2); }
.crumbs li + li::before { content: "/"; color: var(--navy-200); }
.crumbs a { color: #fff; }
.crumbs [aria-current] { color: var(--navy-200); }

.article { display: grid; gap: var(--s-7); }
@media (min-width: 1024px) { .article { grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s-8); align-items: start; } }
.prose { max-width: var(--measure); }
.prose h2 { font-size: var(--fs-xl); margin-top: var(--s-7); }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 var(--s-5); padding-left: var(--s-5); }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: var(--s-2); padding-left: var(--s-1); }
.prose li::marker { color: var(--green-700); }
.prose mark.todo { background: #FFF3D6; color: #5A3B00; padding: 0 4px; border-radius: 2px; font-weight: 600; }
.prose .todo-note { background: #FFF3D6; border-left: 4px solid #C98A00; padding: var(--s-4); color: #5A3B00; }

.article__aside { display: grid; gap: var(--s-5); }
@media (min-width: 1024px) { .article__aside { position: sticky; top: 104px; } }
.aside-box { background: var(--bg-alt); border-top: 6px solid var(--green-500); border-radius: var(--r-md); padding: var(--s-5); }
.aside-box h2, .aside-links h2 { font-size: var(--fs-lg); }
.aside-box .btn { width: 100%; }
.aside-box__phone { margin: var(--s-4) 0 0; }
.aside-box__phone .icon { color: var(--green-700); }
.aside-box__alert { display: flex; gap: var(--s-3); margin: var(--s-4) 0 0; padding-top: var(--s-4); border-top: 1px solid var(--line); }
.aside-box__alert .icon { color: var(--error); margin-top: 3px; }
.aside-links ul { border-top: 1px solid var(--line); }
.aside-links li { border-bottom: 1px solid var(--line); }
.aside-links a { display: block; padding: var(--s-3) 0; font-weight: 600; text-decoration: none; }
.aside-links a:hover { text-decoration: underline; }

.tiles { display: grid; gap: var(--s-5); }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tiles { grid-template-columns: repeat(3, 1fr); } .tiles--2 { grid-template-columns: repeat(2, 1fr); } }
.tile {
  position: relative; padding: var(--s-5) var(--s-5) var(--s-6); background: var(--bg);
  border: 1.5px solid var(--navy-900); border-radius: 12px;
  box-shadow: 0 1px 2px rgba(8,33,79,.06), 0 6px 18px rgba(8,33,79,.06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.tile h3 { font-size: var(--fs-lg); margin-top: var(--s-4); }
.tile h3 a { text-decoration: none; }
.tile h3 a::after { content: ""; position: absolute; inset: 0; }
.tile:hover { transform: translateY(-4px); border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(94,169,73,.25), 0 18px 40px rgba(8,33,79,.14); }
.tile:hover .uses__icon { background: var(--navy-900); }
.tile:hover .uses__icon .icon { color: var(--green-400); }
.tile .uses__icon { transition: background .2s ease; }
.tile .uses__icon .icon { transition: color .2s ease; }
.tile:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.tile p { color: #2D3748; margin: 0; }

.uses strong a { text-decoration: none; }
.uses strong a:hover { text-decoration: underline; }
.offer h3 a { text-decoration: none; }
.offer h3 a:hover { text-decoration: underline; }
.notice__links { list-style: disc; padding-left: var(--s-5); margin-bottom: var(--s-5); }
.notice__links li { margin-bottom: var(--s-2); }

/* Statusseiten: Website im Aufbau / Wartung */
.status-body { padding-bottom: 0; }
.status { min-height: 100vh; background: var(--navy-900); color: var(--navy-100); display: flex; flex-direction: column; }
.status__top { padding-block: var(--s-5); background: var(--navy-950); }
.status__main { flex: 1; display: grid; align-items: center; padding-block: var(--s-7); }
.status__grid { display: grid; gap: var(--s-6); align-items: start; }
@media (min-width: 900px) { .status__grid { grid-template-columns: 1.2fr 1fr; gap: var(--s-8); } }
.status h1 { color: #fff; margin-bottom: var(--s-4); }
.status__lead { color: var(--navy-100); }
.status__badge {
  display: inline-flex; align-items: center; gap: var(--s-2); margin: 0 0 var(--s-5);
  padding: 6px var(--s-3); border-radius: 999px; background: rgba(255,255,255,.1);
  color: #fff; font-weight: 600; font-size: var(--fs-sm);
}
.status__badge .icon { color: var(--green-400); }
.status__until { color: #fff; font-weight: 600; }
.status__notice { background: #FFF3D6; color: #5A3B00; padding: var(--s-3) var(--s-4); border-radius: var(--r-sm); font-weight: 600; }
.status__emergency { display: grid; gap: var(--s-3); margin-top: var(--s-5); }
.status__emergency .btn { width: 100%; }
.status__emergency-title { display: flex; align-items: center; gap: var(--s-2); margin: 0; color: #fff; font-weight: 700; }
.status__card {
  background: var(--bg); color: var(--ink); border-radius: var(--r-md);
  padding: var(--s-6) var(--s-5); border-top: 6px solid var(--green-500);
}
.status__card h2 { font-size: var(--fs-lg); }
.status__card .contact__list { margin-bottom: 0; }

/* Vorschau-Balken (Website gesperrt, Besucher mit Vorschau-Link) */
.preview-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4);
  padding: var(--s-2) var(--gutter); background: var(--focus); color: var(--navy-950);
  font-size: var(--fs-sm); font-weight: 600;
}
.preview-bar strong { font-weight: 700; }
.preview-bar a { color: var(--navy-950); margin-left: auto; }
