/* Sauber & Rein: Designsystem.
   Linie "Version 1 mit echten Fotos": weißes Papier, Hellgrau für ruhige Flächen,
   Signalrot nur für Logo, Knöpfe, Zahlenband und Kontakt. Keine schwarzen Flächen.
   Die Wiener Skyline als feine Linie unter dem Hero und über dem Footer. */
:root {
  --rot: #e30613;
  --rot-tief: #b8050f;
  --rot-hell: #ffe3e4;
  --anth: #26292e;
  --tinte: #1d1f22;
  --grau: #5b6068;
  --tray: #f1f1ef;
  --linie: #dcdcd8;
  --weiss: #ffffff;
  --ok: #1d6b4a;

  --f-text: 'Archivo', system-ui, sans-serif;
  --f-kick: 'Libre Caslon Text', Georgia, serif;

  --breite: 1240px;
  --rand: clamp(16px, 4vw, 56px);
  --r: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
* { min-width: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; font: 400 1rem/1.55 var(--f-text); color: var(--tinte); background: var(--weiss); overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rot); text-underline-offset: 3px; }
a:hover { color: var(--rot-tief); }
:focus-visible { outline: 3px solid var(--anth); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3 { font-weight: 800; line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .5em; color: var(--tinte); text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; max-width: 68ch; }
.lead { font-size: 1.125rem; color: var(--grau); max-width: 52ch; }
.kick { font-family: var(--f-kick); text-transform: uppercase; letter-spacing: .2em; font-size: .8125rem; color: var(--rot); margin: 0 0 12px; }

.wrap { max-width: var(--breite); margin: 0 auto; padding-inline: var(--rand); }
.band { padding-block: clamp(40px, 6vw, 80px); }
.band.hell { background: var(--tray); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--weiss); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* Knöpfe */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font: 700 .97rem/1.1 var(--f-text); padding: 12px 18px; border-radius: 4px; border: 2px solid var(--rot); background: var(--rot); color: var(--weiss); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--rot-tief); border-color: var(--rot-tief); color: var(--weiss); }
.btn.zweit { background: transparent; color: var(--anth); border-color: var(--anth); }
.btn.zweit:hover { background: var(--anth); color: var(--weiss); }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* Leiste oben und Header */
.oben { background: var(--tray); color: var(--grau); font-size: .8125rem; }
.oben .wrap { display: flex; flex-wrap: wrap; gap: 4px 22px; padding-block: 7px; }
.oben a { color: var(--anth); text-decoration: none; font-weight: 600; }
.oben a:hover { text-decoration: underline; }
.oben .stern { margin-left: auto; color: var(--anth); font-weight: 600; }
.kopf { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--linie); }
.kopf .wrap { display: flex; align-items: center; gap: 12px 26px; min-height: 76px; }
.marke { display: block; flex: none; }
.marke svg { display: block; height: 46px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px 20px; font-size: .97rem; font-weight: 600; }
.nav a { color: var(--tinte); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current='page'] { border-bottom-color: var(--rot); color: var(--tinte); }
.nav .btn { color: var(--weiss); padding: 11px 18px; border-bottom: 2px solid var(--rot); }
.nav .btn:hover, .nav .btn[aria-current='page'] { color: var(--weiss); border-bottom-color: var(--rot-tief); }
.menu-knopf { display: none; margin-left: auto; cursor: pointer; background: none; border: 2px solid var(--linie); border-radius: 4px; padding: 8px 12px; font: 700 1rem var(--f-text); color: var(--tinte); }
@media (max-width: 1020px) {
  .kopf .wrap { flex-wrap: wrap; padding-block: 10px; }
  .nav { flex-wrap: wrap; margin-left: 0; }
  .kopf.js-menu .wrap { flex-wrap: nowrap; padding-block: 0; }
  .kopf.js-menu .menu-knopf { display: block; }
  .kopf.js-menu .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--weiss); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--rand) 20px; border-bottom: 1px solid var(--linie); box-shadow: 0 20px 30px -24px rgba(0,0,0,.35); }
  .kopf.js-menu .nav.offen { display: flex; }
  .kopf.js-menu .nav a { padding: 12px 0; border-bottom: 1px solid var(--linie); }
  .nav .btn { margin-top: 12px; }
}
@media (max-width: 560px) { .marke svg { height: 38px; } .oben .stern { margin-left: 0; } }

/* Fotos */
.foto { position: relative; margin: 0; border-radius: var(--r); overflow: hidden; background: var(--tray); }
.foto img { width: 100%; height: 100%; object-fit: cover; }

/* Startseite: Hero */
.hero { padding-top: clamp(28px, 5vw, 64px); }
.hero .wrap > .raster { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px 48px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.25rem); }
.hero .foto { aspect-ratio: 5 / 4; }
.haken { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 22px 0 0; padding: 0; list-style: none; font-size: .875rem; font-weight: 600; }
.haken li::before { content: "✓ "; color: var(--rot); font-weight: 900; }
.skyline { margin-top: clamp(24px, 3vw, 40px); background: linear-gradient(var(--anth), var(--anth)) left bottom / 100% 2px no-repeat; }
.skyline img { height: 64px; width: auto; margin-inline: auto; }

/* Rotes Faktenband */
.fakten { background: var(--rot); color: var(--weiss); }
.fakten ul { list-style: none; margin: 0 auto; padding-block: 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.fakten b { display: block; font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 900; font-stretch: 112%; line-height: 1; margin-bottom: 4px; }
.fakten span { font-size: .875rem; color: var(--rot-hell); }

/* Kopfzeile eines Abschnitts */
.kopfzeile { display: flex; justify-content: space-between; align-items: end; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 28px; }
.kopfzeile h2 { margin-bottom: 0; }
.kopfzeile p { color: var(--grau); max-width: 56ch; margin: 10px 0 0; }

/* Leistungsgruppen mit Foto */
.gruppen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.gruppe { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.gruppe .foto { aspect-ratio: 16 / 9; border-radius: 0; }
.gruppe .inhalt { padding: 18px 20px 20px; }
.gruppe h2, .gruppe h3 { font-size: 1.3rem; margin-bottom: 12px; }
.liste { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linie); }
.liste li { border-bottom: 1px solid var(--linie); }
.liste a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; text-decoration: none; color: var(--tinte); font-weight: 600; }
.liste a::after { content: "→"; color: var(--rot); }
.liste a:hover { color: var(--rot); }
.liste a span { display: block; font-weight: 400; color: var(--grau); font-size: .9rem; margin-top: 2px; }
.liste--lang a { align-items: start; }

/* Für wen */
.karten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.karte { background: var(--weiss); border-top: 4px solid var(--rot); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.karte h3 { margin: 0; }
.karte p { color: var(--grau); font-size: .97rem; margin: 0; }
.karte a { margin-top: auto; padding-top: 6px; font-weight: 700; text-decoration: none; }
.karte a:hover { text-decoration: underline; }
.band:not(.hell) .karte { border: 1px solid var(--linie); border-top: 4px solid var(--rot); }

/* Ablauf */
.ablauf { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 28px; counter-reset: s; }
.ablauf li { counter-increment: s; }
.ablauf li::before { content: counter(s); width: 44px; height: 44px; background: var(--anth); color: var(--weiss); display: grid; place-items: center; font-weight: 900; font-size: 1.25rem; margin-bottom: 12px; }
.ablauf h3 { font-size: 1.2rem; margin-bottom: .3em; }
.ablauf p { color: var(--grau); margin: 0; }
.band h2 + .ablauf, .band h2 + .umfang { margin-top: 28px; }

/* Zwei Spalten */
.zwei { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px clamp(32px, 5vw, 64px); align-items: start; }
.zwei--mitte { align-items: center; }
.zwei .foto { aspect-ratio: 4 / 3; }

.werte { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.werte li { padding-left: 16px; border-left: 3px solid var(--rot); color: var(--grau); }
.werte b { display: block; font-size: 1.1rem; color: var(--tinte); }

/* Unterseiten: Kopf mit Box rechts */
.seitenkopf { padding-block: 16px clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--linie); }
.seitenkopf .raster { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 28px 48px; align-items: start; margin-top: 20px; }
.seitenkopf h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.krumen { font-size: .8125rem; color: var(--grau); }
.krumen a { color: var(--grau); }
.plus { background: var(--tray); border-left: 4px solid var(--rot); padding: 14px 16px; margin-top: 20px; font-weight: 600; max-width: 56ch; }
.fuer { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 18px 0 0; font-size: .875rem; color: var(--grau); }
.fuer li { border: 1px solid var(--linie); border-radius: 4px; padding: 4px 10px; }
.box { border: 1px solid var(--linie); border-radius: var(--r); padding: 22px; display: grid; gap: 12px; background: var(--weiss); box-shadow: 0 14px 30px -24px rgba(0,0,0,.4); }
.box h2 { font-size: 1.2rem; margin: 0; }
.box ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: .875rem; font-weight: 600; }
.box li::before { content: "✓ "; color: var(--rot); font-weight: 900; }
.box .tel { font-size: 1.5rem; font-weight: 900; font-stretch: 112%; color: var(--tinte); text-decoration: none; }
.box .tel:hover { color: var(--rot); }
.box .btn { width: 100%; }
.box small { color: var(--grau); }
.box small a { color: var(--grau); }

/* Leistungsumfang als Karten */
.umfang { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.umfang li { background: var(--weiss); border: 1px solid var(--linie); border-top: 4px solid var(--rot); padding: 18px 20px; }
.umfang b { display: block; font-size: 1.1rem; margin-bottom: 6px; }
.umfang span { color: var(--grau); font-size: .97rem; }

/* FAQ */
.faq h2 { margin-bottom: 12px; }
.faq details { border-bottom: 1px solid var(--linie); }
.faq summary { cursor: pointer; padding: 14px 32px 14px 0; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 10px; font-size: 1.4rem; font-weight: 900; color: var(--rot); }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--grau); padding-bottom: 6px; }
.faq-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px 48px; }

.andere { columns: 2; column-gap: 32px; list-style: none; padding: 0; margin: 12px 0 0; }
.andere li { break-inside: avoid; padding: 6px 0; border-bottom: 1px solid var(--linie); }
.andere a { color: var(--tinte); text-decoration: none; font-weight: 600; }
.andere a:hover { color: var(--rot); }

/* Roter Kontaktbereich */
.cta { background: var(--rot); color: var(--weiss); }
.cta h2 { color: var(--weiss); }
.cta p { color: var(--rot-hell); margin-bottom: 0; }
.cta .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: center; }
.cta .wrap.mit-formular { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cta .btns { margin-top: 0; }
.cta .mit-formular .btns { margin-top: 24px; }
.cta .btn { background: var(--weiss); color: var(--rot); border-color: var(--weiss); }
.cta .btn:hover { background: var(--rot-hell); border-color: var(--rot-hell); color: var(--rot-tief); }
.cta .btn.zweit { background: transparent; color: var(--weiss); border-color: var(--weiss); }
.cta .btn.zweit:hover { background: rgba(255,255,255,.12); }
.cta .form { background: var(--weiss); color: var(--tinte); border-radius: var(--r); padding: 20px; }
.cta .form a { color: var(--rot); }
.cta .form .btn { background: var(--rot); color: var(--weiss); border-color: var(--rot); width: 100%; }
.cta .form .btn:hover { background: var(--rot-tief); border-color: var(--rot-tief); }
.cta .form-status { color: var(--tinte); }

/* Formular */
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; padding: 11px 12px; border: 1px solid #c6c6c0; border-radius: 4px; background: var(--weiss); color: var(--tinte); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--anth); outline: 2px solid var(--tray); }
.form .paar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .875rem; }
.form .check input { width: auto; margin-top: 3px; }
.hp { position: absolute; left: -9999px; }
.kontaktdaten { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.kontaktdaten b { display: block; font-size: .875rem; color: var(--grau); font-weight: 600; }
.form-fehler { color: var(--rot-tief); font-size: .875rem; margin: 0; }
.form-status { background: var(--tray); border-left: 4px solid var(--ok); border-radius: 4px; padding: 14px 16px; font-weight: 600; }
.form-status[hidden], .form-fehler[hidden] { display: none; }
.form [aria-invalid='true'] { border-color: var(--rot-tief); }

/* Textseiten */
.text { max-width: 760px; }
.text h2 { font-size: 1.5rem; margin-top: 1.6em; }
.text h3 { margin-top: 1.2em; }
.text ul { padding-left: 1.2em; }

/* Footer in Hellgrau mit Skyline */
.fuss { background: var(--tray); color: var(--grau); font-size: .875rem; padding-bottom: 24px; }
.fuss .skyline { margin-top: 0; padding-top: 12px; }
.fuss a { color: var(--grau); text-decoration: none; }
.fuss a:hover { color: var(--rot); text-decoration: underline; }
.fuss .spalten { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 24px; padding-top: 28px; }
.fuss .marke svg { height: 52px; margin-bottom: 12px; }
.fuss .fuss-titel { color: var(--anth); font-size: .95rem; letter-spacing: 0; margin-bottom: 8px; }
.fuss ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.fuss p { margin: 0 0 .6em; }
.fuss .gebiet { margin-top: 20px; font-size: .8125rem; line-height: 1.7; max-width: none; }
.fuss .gebiet b { color: var(--anth); }
.fuss .unten { border-top: 1px solid var(--linie); margin-top: 20px; padding-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .8125rem; }
.fuss .rechtliches { display: flex; gap: 18px; flex-wrap: wrap; }
.fuss button { background: none; border: 0; color: var(--grau); font: inherit; padding: 0; cursor: pointer; }
.fuss button:hover { color: var(--rot); text-decoration: underline; }

/* Cookie-Banner */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 560px; background: var(--weiss); border: 1px solid var(--linie); border-top: 4px solid var(--rot); border-radius: var(--r); box-shadow: 0 16px 48px -12px rgba(0,0,0,.3); padding: 22px; }
.cookie[hidden] { display: none; }
.cookie h2 { font-size: 1.25rem; margin-bottom: .3em; }
.cookie p { font-size: .9rem; color: var(--grau); }
.cookie .btns { margin-top: 12px; }
.cookie .btns .btn { flex: 1 1 160px; }
.cookie .optionen { display: grid; gap: 8px; margin: 12px 0; }
.cookie .optionen[hidden] { display: none; }
.cookie .optionen label { display: flex; gap: 10px; font-size: .95rem; }

/* Staging-Hinweis */
.staging { background: var(--anth); color: var(--weiss); text-align: center; font-size: .875rem; padding: 6px 12px; font-weight: 600; }
.staging[hidden] { display: none; }

/* Fehlerseite: passende Meldung über die Sprungmarke zeigen */
.meldung-fall { display: none; }
.meldung-fall:target { display: block; }
.meldungen:has(.meldung-fall:target) .meldung-standard { display: none; }

@media (max-width: 960px) {
  .hero .wrap > .raster, .seitenkopf .raster, .zwei, .faq-raster, .cta .wrap, .cta .wrap.mit-formular { grid-template-columns: minmax(0, 1fr); }
  .gruppen, .karten, .ablauf, .umfang { grid-template-columns: minmax(0, 1fr); }
  .umfang { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fakten ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fuss .spalten { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .umfang, .form .paar, .fuss .spalten { grid-template-columns: minmax(0, 1fr); }
  .andere { columns: 1; }
}

/* Ergänzungen Unterseiten */
.krumen + h1, .krumen + .kick { margin-top: 20px; }
.foto.breit { aspect-ratio: 21 / 8; margin-top: clamp(24px, 3vw, 36px); }
@media (max-width: 600px) { .foto.breit { aspect-ratio: 4 / 3; } }
.liste--lang a { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; }
.liste--lang a strong, .liste--lang a span { grid-column: 1; }
.liste--lang a::after { grid-column: 2; grid-row: 1; }
.seitenkopf .fakten-zeile { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 24px 0 0; padding: 0; color: var(--grau); font-size: .95rem; }
.seitenkopf .fakten-zeile b { display: block; font-size: 1.9rem; font-weight: 900; font-stretch: 112%; color: var(--rot); line-height: 1.1; }
.umfang b a { color: var(--tinte); text-decoration: none; }
.umfang b a:hover { color: var(--rot); text-decoration: underline; }
.kopfzeile .kick { color: var(--rot); margin: 0 0 12px; }
.form .check input { width: 18px; height: 18px; padding: 0; flex: none; accent-color: var(--rot); }
