/* Entwurf A „Vollbild“ · nur Ergänzungen zur Original-CSS (basis/assets/css), nichts davon wird geändert.
   1) Navbar ganz oben transparent über dem Video (html.ah-oben). Nach dem ersten Scrollen: Original-Navbar.
   2) Neuer Hero (.ah): Drohnenvideo über die ganze Breite, Begrüßung links, Anfrage-Karte rechts.
   3) Neuer Abschnitt „Über uns“ (.au) mit Kennenlernvideo.
   4) Vorschau-Schild unten links + Hinweis (Toast). */

/* ---------- 1) Navbar über dem Video ---------- */
.header { transition: transform .34s var(--e-out), background-color .3s ease, border-color .3s ease, box-shadow .3s ease !important; }
.header::before { transition: opacity .3s ease; }
.nav__logo img { transition: filter .3s ease; }

html.ah-oben .header:not(.menu-open) {
  background: transparent !important;
  border-bottom-color: rgba(255, 255, 255, .16) !important;
  box-shadow: none !important;
}
html.ah-oben .header:not(.menu-open)::before { opacity: 0; }
/* Fehler 18.11. (iPhone, Safari 26): „nach kurzem Hoch- und Runterscrollen oben über dem Hero ein weißer Abschnitt, für immer“.
   Safari färbt den Streifen hinter Uhrzeit/Akku mit der Hintergrundfarbe des klebenden Kopfs am oberen Rand. Ab 12 px
   wird der Kopf deckend hell → Streifen hell. Zurück oben war er wieder durchsichtig – daraus liest Safari keinen Ton
   und behält den hellen. Darum ist der Kopf hier oben deckend im Ton der Hero-Oberkante (Verlauf in .ah__schatten
   beginnt mit genau diesem Ton), und er springt ohne Überblendung um, damit Safari keinen Zwischenton festhält. */
html.ah-oben .header:not(.menu-open) .nav__logo img { filter: brightness(0) invert(1); }
/* Handy (hoch und quer), 19.11. (Elyes): „oben schwarz, beim Runterscrollen weiß“ – wie vor dem 18.11.: ganz oben (html.ah-oben,
   hero.js) deckend --tm-anthrazit-tief, ab 12 px Scrollweg der helle Kopf aus site.css (#F7F8F8). Kein Überblenden der Farbe, damit
   Safari keinen Zwischenton für den Streifen hinter Uhrzeit/Akku festhält. Zurück nach oben schaltet hero.js schon dunkel, sobald
   beim Hochscrollen wieder der dunkle Hero unter dem Kopf liegt (Safari hat dann Zeit, den Streifen nachzuziehen).
   Die weiße Fläche beim Nachfedern kam nicht vom Kopf, sondern von der Seitenfläche (site.css „Seitenfläche beim Nachfedern“).
   Offenes Menü (18.11.): Schublade beginnt unter dem Kopf (--ah-kopf-unten, hero.js); oben bleibt der Kopf in seinem Zustand. */
@media (max-width: 620px), (max-height: 520px) and (orientation: landscape) and (max-width: 1020px) {
  html .header {
    padding-top: env(safe-area-inset-top, 0px);
    transition: transform .34s var(--e-out) !important;
  }
  html .header::before { display: none; }
  html .header .nav__logo img { transition: none; }
  html.ah-oben .header,
  html.ah-oben .header.menu-open,
  html.ah-oben .header:not(.menu-open) {
    background: var(--tm-anthrazit-tief) !important;
    border-bottom: 1px solid rgba(255, 255, 255, .1) !important;
    box-shadow: none !important;
  }
  html.ah-oben .header .nav__logo img { filter: brightness(0) invert(1); }
  html.ah-oben .header .nav__tel { background: #fff; color: var(--tm-anthrazit-tief); box-shadow: none; }
  html.ah-oben .header .nav__toggle { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .26); box-shadow: none; }
  html.ah-oben .header .nav__toggle span,
  html.ah-oben .header .nav__toggle span::before,
  html.ah-oben .header .nav__toggle span::after { background: #fff; }
  html.ah-oben .header .nav__toggle[aria-expanded="true"] span { background: transparent; }
  html .header .nav__links { top: var(--ah-kopf-unten, var(--ah-kopf, 60px)); height: auto; padding-top: 14px; }
  html .nav__backdrop { top: var(--ah-kopf-unten, var(--ah-kopf, 60px)); }
  /* Scroll-Sperre bei offenem Menü über html statt body: site.js setzt body { overflow: hidden }; weil html overflow-x: clip
     hat, wurde body dadurch selbst zum Scroll-Container → der klebende Kopf sprang aus dem Bild (weiter unten auf der Seite
     stand dann oben die weiße Schublade) und beim Schließen sprang die Seite nach oben. */
  html.nav-open { overflow: hidden; }
  html.nav-open body { overflow: visible !important; }
}
@media (min-width: 1021px) {
  html.ah-oben .header:not(.menu-open) .navlink { color: #fff; }
  html.ah-oben .header:not(.menu-open) .navlink:hover { background: rgba(255, 255, 255, .12); color: #fff; }
  html.ah-oben .header:not(.menu-open) .navlink--not { color: #FFC4C7 !important; }
  html.ah-oben .header:not(.menu-open) .navlink--not .puls { background: #FF8A8F; }
  html.ah-oben .header:not(.menu-open) .nav__cta { background: #fff !important; color: var(--tm-text) !important; box-shadow: 0 10px 26px -12px rgba(0, 0, 0, .6) !important; }
}

/* ---------- 2) Hero ---------- */
.ah {
  --ah-pad: max(24px, 4vw, env(safe-area-inset-left, 0px));
  position: relative; isolation: isolate;
  display: flex;
  margin-top: calc(-1 * var(--ah-kopf, 75px));
  min-height: max(680px, calc(100svh - 38px - 48px));
  color: #fff; background: #26302B;
  overflow-x: clip; overflow-y: visible; z-index: 2;
}
.ah__video { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.ah__zoom { position: absolute; inset: 0; }
.ah__poster, .ah__poster img, .ah__film {
  position: absolute; inset: 0;
  width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: 42% 55%;
}
.ah__schatten {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(37, 41, 44, 0.92) 0%, rgba(37, 41, 44, 0.62) 12%, rgba(37, 41, 44, 0) 30%, rgba(37, 41, 44, 0) 70%, rgba(37, 41, 44, 0.56) 100%),
    linear-gradient(90deg, rgba(37, 41, 44, 0.96) 0%, rgba(37, 41, 44, 0.9) 38%, rgba(37, 41, 44, 0.34) 64%, rgba(37, 41, 44, 0.43) 100%);
}
.ah__blende { display: none; } /* nur Handy, siehe unten */
.ah__in {
  position: relative; z-index: 2;
  width: 100%; max-width: 1320px; margin: 0 auto;
  padding: calc(var(--ah-kopf, 75px) + 40px) var(--ah-pad) 68px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 476px);
  gap: clamp(32px, 5vw, 80px); align-items: center;
}
.ah :focus-visible { outline: 3px solid var(--tm-silber-hell); outline-offset: 3px; }
.ah-karte :focus-visible { outline-color: var(--tm-anthrazit); }

/* Begrüßung */
.ah__h1 { container-type: inline-size; display: grid; gap: 14px; margin: 0; font-weight: 700; color: #fff; text-wrap: balance; }
.ah__willkommen {
  display: flex; align-items: center; gap: 12px;
  font-size: .84rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; line-height: 1.2;
  color: var(--tm-silber-hell);
}
.ah__willkommen::before { content: ''; width: 34px; height: 2px; flex: none; border-radius: 2px; background: var(--tm-silber); }
.ah__name { font-size: min(clamp(2.2rem, 4.6vw, 4.6rem), 11cqi); line-height: 1; letter-spacing: -.035em; white-space: nowrap; }
.ah__kurz { display: none; margin: 12px 0 0; max-width: none; font-size: 1.02rem; font-weight: 500; line-height: 1.45; color: rgba(255, 255, 255, .94); }
.ah__text { margin: 22px 0 0; max-width: 40ch; font-size: clamp(1.05rem, 1.35vw, 1.22rem); line-height: 1.55; color: rgba(255, 255, 255, .92); }
.ah__usps { list-style: none; margin: 26px 0 0; padding: 0; display: block; font-size: 1rem; font-weight: 500; line-height: 1.35; }
.ah__usps li { display: flex; align-items: center; gap: 10px; }
.ah__usps li + li { margin-top: 10px; }
.ah__usps svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--tm-silber-hell); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* Anfrage-Karte: Felder wie im Original-Hero (Name, Telefon, E-Mail, PLZ/Einsatzort, Thema).
   Zwei Gruppen, Labels über den Feldern, weiche große Felder mit klaren Zuständen.
   #ahAnfrage erhöht die Spezifität: site.css gestaltet Eingabefelder global mit !important. */
.ah-karte {
  position: relative;
  background: #fff; color: var(--tm-text);
  border-radius: 6px; padding: 30px 30px 24px;
  /* kantiger Flügel, die Außenlinie (outline) = Blendrahmen – Formsprache wie Notdienst-Seite */
  box-shadow: 0 40px 90px -36px rgba(0, 0, 0, .8);
  outline: 1px solid rgba(255, 255, 255, .5); outline-offset: 8px;
}
.ah-karte__kicker { margin: 0 0 8px; max-width: none; font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; line-height: 1.3; color: var(--tm-anthrazit); }
.ah-karte__titel { margin: 0 0 24px; font-size: 1.65rem; font-weight: 700; letter-spacing: -.025em; line-height: 1.15; color: var(--tm-text); }

.ah-form { display: grid; gap: 22px; margin: 0; }
.ah-form[hidden] { display: none; } /* sonst bleibt das Formular nach dem Absenden über der Danke-Meldung stehen */
.ah-gruppe { position: relative; display: grid; gap: 14px; min-width: 0; margin: 0; padding: 0; border: 0; }
.ah-gruppe__titel {
  display: flex; align-items: center; gap: 12px; width: 100%;
  margin: 0; padding: 0 0 12px;
  font-size: .86rem; font-weight: 600; line-height: 1.2; color: var(--tm-text-3);
}
.ah-gruppe__titel::after { content: ''; flex: 1; height: 1px; background: var(--tm-hell); }
.ah-gruppe__reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.ah-gruppe__reihe--projekt { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; }

.ah-feld { position: relative; display: grid; gap: 7px; min-width: 0; }
.ah-feld label {
  font-size: .92rem; font-weight: 600; line-height: 1.25; color: var(--tm-anthrazit-tief);
  transition: color .2s ease;
}
.ah-feld__opt { display: block; margin-top: 1px; font-size: .78rem; font-weight: 500; color: var(--tm-anthrazit); }
.ah-feld:focus-within label { color: var(--tm-anthrazit); }

#ahAnfrage .ah-feld input.ah-eingabe,
#ahAnfrage .ah-feld select.ah-eingabe {
  display: block; width: 100%; height: 54px; min-height: 0; margin: 0;
  padding: 0 16px !important;
  font: 500 16px/1.2 var(--f-body) !important;
  color: var(--tm-text) !important; background: var(--tm-hell-2) !important;
  border: 1.5px solid var(--tm-linie-hell) !important; border-radius: 4px !important;
  box-shadow: none !important;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease !important;
  -webkit-appearance: none; appearance: none;
}
#ahAnfrage .ah-feld select.ah-eingabe[hidden] { display: none !important; }
#ahAnfrage .ah-feld select.ah-eingabe {
  cursor: pointer;
  background: var(--tm-hell-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23383E42' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center / 18px !important;
}
#ahAnfrage .ah-eingabe::placeholder { color: #8E9398; opacity: 1; font-weight: 400; }
#ahAnfrage .ah-feld input.ah-eingabe:hover, #ahAnfrage .ah-feld select.ah-eingabe:hover { border-color: var(--tm-linie) !important; }
#ahAnfrage .ah-feld input.ah-eingabe:focus, #ahAnfrage .ah-feld select.ah-eingabe:focus {
  outline: none !important; background-color: #fff !important;
  border-color: var(--tm-anthrazit) !important; box-shadow: 0 0 0 4px rgba(56, 62, 66, .14) !important;
}
/* ausgefüllt: weiß mit grünem Haken */
#ahAnfrage .ah-feld.ist-ok input.ah-eingabe { padding-right: 42px !important; background-color: #fff !important; border-color: var(--tm-silber-hell) !important; }
.ah-feld__ok {
  position: absolute; right: 15px; bottom: 17px; width: 20px; height: 20px;
  fill: none; stroke: #16A34A; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
  opacity: 0; transform: scale(.6); transition: opacity .2s ease, transform .3s var(--e-out); pointer-events: none;
}
.ah-feld.ist-ok .ah-feld__ok { opacity: 1; transform: none; }
/* Fehler: rote Kante, heller Grund, Meldung mit Zeichen */
#ahAnfrage .ah-feld.hat-fehler input.ah-eingabe { border-color: #DC2626 !important; background-color: #FFF8F8 !important; }
#ahAnfrage .ah-feld.hat-fehler input.ah-eingabe:focus { box-shadow: 0 0 0 4px rgba(220, 38, 38, .12) !important; }
.ah-feld.hat-fehler label { color: #B91C1C; }
.ah-feld.hat-fehler .ah-feld__ok { opacity: 0; }
.ah-feld__fehler { display: flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 500; line-height: 1.3; color: #B91C1C; }
.ah-feld__fehler::before { content: '!'; display: grid; place-items: center; width: 16px; height: 16px; flex: none; border-radius: 50%; background: #DC2626; color: #fff; font-size: .68rem; font-weight: 700; }
.ah-feld__fehler:empty { display: none; }

/* Thema: eigene Auswahl mit Symbol; das native <select> bleibt im Formular (versteckt, synchron) */
.ah-feld--thema { position: static; }
.ah-auswahl {
  position: relative; display: flex; align-items: center; gap: 10px;
  width: 100%; min-width: 0; height: 54px; margin: 0; padding: 0 44px 0 10px; overflow: hidden;
  font: inherit; text-align: left; color: var(--tm-text); cursor: pointer;
  background: var(--tm-hell-2); border: 1.5px solid var(--tm-linie-hell); border-radius: 4px;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.ah-auswahl:hover { border-color: var(--tm-linie); }
.ah-auswahl:focus-visible, .ah-auswahl[aria-expanded="true"] { outline: none; background: #fff; border-color: var(--tm-anthrazit); box-shadow: 0 0 0 4px rgba(56, 62, 66, .14); }
.ah-auswahl__ic, .ah-option__ic { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 3px; background: #fff; color: var(--tm-anthrazit); box-shadow: 0 0 0 1px var(--tm-linie-hell); }
.ah-auswahl__ic svg, .ah-option__ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ah-auswahl__wert { display: flex; align-items: baseline; gap: 8px; min-width: 0; overflow: hidden; white-space: nowrap; }
.ah-auswahl__wert b { overflow: hidden; text-overflow: ellipsis; font-size: 1rem; font-weight: 600; }
.ah-auswahl__wert small { display: none; }
.ah-auswahl__pfeil { position: absolute; right: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px; fill: none; stroke: var(--tm-anthrazit); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--e-out); }
.ah-auswahl[aria-expanded="true"] .ah-auswahl__pfeil { transform: rotate(180deg); }
.ah-liste {
  position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 8px);
  margin: 0; padding: 6px; list-style: none;
  max-height: min(380px, 58vh); overflow-y: auto; overscroll-behavior: contain;
  background: #fff; border: 1px solid var(--tm-linie-hell); border-radius: 6px;
  box-shadow: 0 30px 60px -22px rgba(31, 35, 38, .42), 0 2px 8px rgba(31, 35, 38, .06);
  animation: ah-liste-auf .22s var(--e-out);
}
.ah-liste.nach-oben { top: auto; bottom: 62px; animation-name: ah-liste-auf-oben; }
.ah-liste[hidden] { display: none; }
@keyframes ah-liste-auf { from { opacity: 0; transform: translateY(-6px); } }
@keyframes ah-liste-auf-oben { from { opacity: 0; transform: translateY(6px); } }
.ah-option { display: grid; grid-template-columns: 34px minmax(0, 1fr) 18px; align-items: center; gap: 12px; min-height: 52px; padding: 7px 10px; border-radius: 3px; cursor: pointer; }
.ah-option__txt b { display: block; font-size: .96rem; font-weight: 600; line-height: 1.25; color: var(--tm-text); }
.ah-option__txt small { display: block; font-size: .8rem; line-height: 1.3; color: var(--tm-text-3); }
.ah-option__ic { box-shadow: none; background: var(--tm-hell); }
.ah-option__haken { width: 18px; height: 18px; fill: none; stroke: var(--tm-anthrazit); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.ah-option.ist-aktiv { background: var(--tm-hell); }
.ah-option[aria-selected="true"] { background: var(--tm-linie-hell); }
.ah-option[aria-selected="true"] .ah-option__ic { background: var(--tm-anthrazit); color: #fff; }
.ah-option[aria-selected="true"] .ah-option__haken { opacity: 1; }

/* Absenden: der dominante Knopf, Pfeil im weißen Kreis */
.ah-senden {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  width: 100%; min-height: 64px; margin-top: 4px; padding: 0 10px 0 28px;
  border: 0; border-radius: 4px;
  background: var(--tm-anthrazit-tief); color: #fff;
  font: 700 1rem/1.2 var(--f-body); letter-spacing: 0; text-align: left; text-wrap: balance;
  cursor: pointer;
  box-shadow: 0 18px 34px -14px rgba(31, 35, 38, .8), inset 0 1px 0 rgba(255, 255, 255, .1);
  transition: transform .3s var(--e-out), box-shadow .3s var(--e-out);
}
.ah-senden__pfeil { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 3px; background: #fff; color: var(--tm-anthrazit); transition: transform .35s var(--e-out), background-color .3s; }
.ah-senden svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ah-senden:hover { background: var(--tm-anthrazit); transform: translateY(-2px); box-shadow: 0 24px 42px -16px rgba(31, 35, 38, .85), inset 0 1px 0 rgba(255, 255, 255, .1); }
.ah-senden:hover .ah-senden__pfeil { transform: translateX(3px); background: var(--tm-hell); }
.ah-senden:active { transform: scale(.985); }
.ah-senden:focus-visible { outline: 3px solid var(--tm-anthrazit); outline-offset: 3px; }
/* Vertrauenszeile: ruhig, klein, grau */
.ah-karte__klein { display: block; margin: -8px 0 0; max-width: none; font-size: .78rem; line-height: 1.5; text-align: center; text-wrap: balance; color: var(--tm-grau); }
.ah-karte__klein span { white-space: nowrap; }
.ah-karte__klein svg { display: inline-block; width: 13px; height: 13px; margin-right: 5px; vertical-align: -2px; fill: none; stroke: var(--tm-grau-hell); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Zweite Wege: Anrufen und WhatsApp */
.ah-alt { margin-top: 20px; }
.ah-alt__titel { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; max-width: none; font-size: .82rem; font-weight: 500; line-height: 1.2; color: var(--tm-grau); }
.ah-alt__titel::before, .ah-alt__titel::after { content: ''; flex: 1; height: 1px; background: var(--tm-hell); }
.ah-alt__knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ah-alt__knopf {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 6px 12px;
  border: 1.5px solid var(--tm-linie-hell); border-radius: 4px; background: #fff;
  color: var(--tm-text); font-weight: 600; font-size: .95rem; white-space: nowrap; text-decoration: none;
  transition: border-color .2s, background-color .2s, transform .3s var(--e-out);
}
.ah-alt__knopf:hover { border-color: var(--tm-linie); background: var(--tm-hell-2); color: var(--tm-text); transform: translateY(-1px); }
.ah-alt__knopf:focus-visible { outline: 3px solid var(--tm-anthrazit); outline-offset: 2px; }
.ah-alt__ic { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 3px; }
.ah-alt__ic svg { width: 15px; height: 15px; }
.ah-alt__ic--tel { background: var(--tm-anthrazit); }
.ah-alt__ic--tel svg { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ah-alt__ic--wa { background: #16A34A; }
.ah-alt__ic--wa svg { fill: #fff; }


/* Pause-Knopf für das Hintergrundvideo */
/* oben links unter der Navbar: unten rechts liegt der Chat-Knopf der Original-Seite, rechts oben bei 1024 px die Karte */
.ah__pause {
  position: absolute; z-index: 3; left: var(--ah-pad); top: calc(var(--ah-kopf, 75px) + 16px);
  display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4);
  background: rgba(37, 41, 44, 0.5); color: #fff; cursor: pointer;
}
.ah__pause:focus-visible { outline: 3px solid var(--tm-silber-hell); outline-offset: 3px; }
.ah__pause-ic { width: 18px; height: 18px; fill: currentColor; }
.ah__pause-ic--play { display: none; }
.ah__pause[data-zustand="pause"] .ah__pause-ic--pause { display: none; }
.ah__pause[data-zustand="pause"] .ah__pause-ic--play { display: block; }

/* Lade-Auftritt: nur transform/opacity, Überschrift wird nur bewegt */
@keyframes ah-heben { from { transform: translate3d(var(--von-x, 0px), var(--von-y, 24px), 0); } to { transform: none; } }
@keyframes ah-blenden { from { opacity: 0; } to { opacity: 1; } }
@keyframes ah-zoom { from { transform: scale(1.07); } to { transform: none; } }
/* backwards: nach dem Auftritt hält kein Animationszustand mehr fest */
html.js .ah-auf { animation: ah-heben 1s var(--e-out) var(--d, 0s) backwards; }
html.js .ah-auf--blende { animation: ah-heben 1s var(--e-out) var(--d, 0s) backwards, ah-blenden .7s ease var(--d, 0s) backwards; }
html.js .ah__zoom { animation: ah-zoom 2.2s var(--e-out) backwards; }

/* Niedrige Laptop-Bildschirme */
@media (min-width: 861px) and (max-height: 820px) {
  .ah__in { padding-top: calc(var(--ah-kopf, 75px) + 24px); padding-bottom: 56px; }
  .ah-karte { padding-top: 24px; padding-bottom: 20px; }
  .ah-karte__titel { margin-bottom: 18px; }
  .ah-form { gap: 18px; }
  .ah-gruppe { gap: 12px; }
  .ah-alt { margin-top: 16px; }
  .ah__usps { margin-top: 20px; }
  .ah__usps li + li { margin-top: 8px; }
}
@media (max-width: 1100px) {
  .ah__in { grid-template-columns: minmax(0, 1fr) minmax(360px, 440px); gap: 28px; }
  .ah-senden { font-size: .96rem; padding-left: 22px; letter-spacing: 0; }
  .ah-karte { padding-left: 24px; padding-right: 24px; }
}

/* Handy (und Handy quer): Das Video ist eine stehende Bühne hinter dem GANZEN Hero. Video, Abdunklung und Blende
   sind fest im Bildschirm (position: fixed), .ah schneidet sie mit clip-path auf seine eigene Fläche zu – Ersatz für
   background-attachment: fixed, läuft auch in iOS Safari (sticky geht nicht: html/body overflow-x: hidden im Original).
   Die Begrüßung steht im ersten Bildschirm unten im Bild, die Karte beginnt --ah-unten über der Unterkante und schiebt
   sich beim Scrollen über das stehende Video; seitlich, darüber und darunter bleibt Video, nirgends Weiß.
   --ah-buehne = Höhe des ersten Bildschirms bis 48 px unter den Kartenkopf (danach war früher das Video zu Ende). */
@media (max-width: 860px), (max-height: 520px) and (max-width: 1100px) {
  .ah {
    --ah-unten: 118px;
    --ah-buehne: calc(min(100vh, 100svh) - var(--ah-unten) - var(--ah-versatz, 0px) + 48px);
    display: block; min-height: 0;
    background: var(--tm-anthrazit-tief); /* falls Video und Poster noch laden; = Farbe der iPhone-Statusleiste (läuft beim Scrollen darunter durch) */
    clip-path: inset(0);
  }
  .ah__video, .ah__schatten, .ah__blende { position: fixed; top: 0; right: 0; bottom: auto; left: 0; height: 100vh; height: 100lvh; }
  /* iPhone (Safari ab iOS 26): Die Seite wird nicht hinter Uhrzeit/Akku gezeichnet – Safari füllt den Streifen einfarbig,
     mit der Hintergrundfarbe eines festen Elements am oberen Rand (sonst html/body). Deshalb: festes Video mit
     Hintergrund var(--tm-anthrazit-tief) und die Oberkante des Heros im selben Ton (Verlauf unten) → Streifen und Video gehen nahtlos
     ineinander über. Bewusst KEIN Umschalten beim Scrollen (früher html.ah-vorbei): Auf dem iPhone kam das beim schnellen
     Zurückwischen zu spät, oben und beim Nachfedern war dann der helle Seitengrund zu sehen („wird weiß“).
     Daher auf dem Handy immer dunkel – passt auch unten (Footer --nacht). theme-color fest dunkel (hero.js). */
  .ah__video { background-color: var(--tm-anthrazit-tief); }
  /* Seitenfläche (auch die beim Nachfedern oben/unten freigelegte Fläche) durchgehend dunkel: oben Kopf/Hero, unten Fuß.
     animation: none = ohne den Scroll-Wechsel aus site.css („Seitenfläche beim Nachfedern“), body ist dort durchsichtig. */
  html { background-color: var(--tm-anthrazit-tief); animation: none; }
  /* Abdunklung wie bisher auf den ersten Bildschirm bezogen (oben klar, unten dunkel genug für die Begrüßung:
     mind. 4,5:1 auch über hellen Fassaden), darunter bleibt es dunkel */
  .ah__schatten { background: linear-gradient(180deg,
    rgba(37, 41, 44, 1) 0,
    rgba(37, 41, 44, 0.67) calc(var(--ah-versatz, 0px) + var(--ah-kopf, 61px) + 8px),
    rgba(37, 41, 44, 0.13) calc(var(--ah-versatz, 0px) + var(--ah-buehne) * .15),
    rgba(37, 41, 44, 0) calc(var(--ah-versatz, 0px) + var(--ah-buehne) * .26),
    rgba(37, 41, 44, 0.65) calc(var(--ah-versatz, 0px) + var(--ah-buehne) * .42),
    rgba(37, 41, 44, 0.9) calc(var(--ah-versatz, 0px) + var(--ah-buehne) * .56),
    rgba(37, 41, 44, 0.96) calc(var(--ah-versatz, 0px) + var(--ah-buehne)),
    rgba(37, 41, 44, 0.96) 100%); }
  /* „Verblassen“: je weiter die Karte hochkommt, desto dunkler das stehende Video (bis 60 %, hero.js setzt opacity) */
  .ah__blende { display: block; z-index: 1; background: var(--tm-anthrazit-tief); opacity: 0; pointer-events: none; will-change: opacity; }
  .ah__willkommen, .ah__name, .ah__kurz { text-shadow: 0 1px 14px rgba(37, 41, 44, 0.5); }
  .ah__in { display: block; padding: calc(var(--ah-kopf, 61px) + 20px) var(--ah-pad) 36px; }
  .ah__gruss {
    display: flex; flex-direction: column; justify-content: flex-end; max-width: none;
    min-height: calc(100vh - var(--ah-unten) - var(--ah-versatz, 0px) - var(--ah-kopf, 61px) - 20px);
    min-height: calc(min(100vh, 100svh) - var(--ah-unten) - var(--ah-versatz, 0px) - var(--ah-kopf, 61px) - 20px);
    padding-bottom: 26px;
  }
  .ah__name { font-size: min(clamp(2.2rem, 9.4vw, 3.6rem), 11cqi); }
  .ah__text, .ah__usps { display: none; }
  .ah__kurz { display: block; }
  .ah-karte { max-width: 560px; margin-inline: auto; outline: 0; box-shadow: 0 -10px 36px -14px rgba(37, 41, 44, 0.62), 0 30px 60px -32px rgba(31, 35, 38, .35); }
  .ah__pause { left: auto; right: 16px; top: calc(var(--ah-kopf, 61px) + 14px); }
}
/* Bis 768 px gibt es die Schnellleiste der Original-Seite (Anrufen, WhatsApp, Angebot) und darüber das Google-Schild:
   Kartenkopf entsprechend höher, Anrufen/WhatsApp in der Karte entfallen */
@media (max-width: 768px) {
  .ah { --ah-unten: 200px; }
  .ah-alt { display: none; }
}
/* Handy quer: niedrige Höhe, unten links liegen Google-Schild und Chat-Knopf des Originals → Kartenkopf etwas höher */
@media (max-height: 520px) and (orientation: landscape) and (max-width: 1100px) {
  .ah { --ah-unten: 150px; }
  .ah__name { font-size: min(clamp(2rem, 6vw, 3rem), 11cqi); }
  /* quer: Text links, also seitlicher Verlauf – rechts bleibt das Video klar */
  .ah__schatten { background: linear-gradient(90deg, rgba(37, 41, 44, 0.96) 0%, rgba(37, 41, 44, 0.92) 48%, rgba(37, 41, 44, 0.39) 72%, rgba(37, 41, 44, 0.13) 100%), linear-gradient(180deg, rgba(37, 41, 44, 0.56) 0%, rgba(37, 41, 44, 0) 30%); }
}
@media (max-height: 520px) and (orientation: landscape) and (max-width: 768px) {
  .ah { --ah-unten: 170px; }
}
@media (max-width: 600px) {
  .ah__willkommen { font-size: .78rem; letter-spacing: .16em; gap: 10px; }
  .ah__willkommen::before { width: 24px; }
  .ah__h1 { gap: 10px; }
  .ah-karte { padding: 24px 18px 20px; border-radius: 6px; }
  .ah-karte__titel { font-size: 1.42rem; margin-bottom: 20px; }
  .ah-gruppe__reihe, .ah-gruppe__reihe--projekt { grid-template-columns: minmax(0, 1fr); }
  .ah-senden { font-size: .98rem; padding-left: 22px; min-height: 60px; }
  .ah-karte__klein { font-size: .78rem; }
}

/* Feste Knöpfe des Originals auf Handy und Handy quer (Google-Schild, Chat, Nach-oben):
   a) Solange die Anfrage-Karte im unteren Streifen liegt (html.ah-im-hero, setzt hero.js), ruhen sie –
      sonst verdecken sie Kartenkopf („Ihre Kontaktdaten“), Felder und Fehlermeldungen. */
@media (max-width: 860px), (max-height: 520px) and (max-width: 1100px) {
  .chat-fab:not(.is-spaet) { transition: transform var(--t-fast), opacity .3s ease, visibility .3s; }
  html.ah-im-hero .gsticky,
  html.ah-im-hero .chat-fab,
  html.ah-im-hero #btt-btn { opacity: 0 !important; visibility: hidden !important; transform: translateY(12px) !important; pointer-events: none !important; }
}
/* b) Nach-oben-Knopf über dem Chat-Knopf (rechts) statt auf dem Google-Schild: im Original liegen beide unten links
      übereinander (bis 768 px: bottom 76 px, ab 769 px bis 1024 px: bottom 20/24 px) */
@media (max-width: 768px) {
  #btt-btn { left: auto; right: 18px; width: 44px; height: 44px; bottom: calc(140px + env(safe-area-inset-bottom, 0px)); }
}
@media (min-width: 769px) and (max-width: 1024px) {
  #btt-btn { left: auto; right: 26px; bottom: calc(94px + env(safe-area-inset-bottom, 0px)); }
}
/* Sprung zur Karte („Angebot“ in der Schnellleiste, #anfrage-start) mit Platz für die Navbar */
#anfrage-start { scroll-margin-top: calc(var(--ah-kopf, 61px) + 12px); }

@media (prefers-reduced-motion: reduce) {
  .ah__film, .ah__pause { display: none; }
  .ah__blende { opacity: .4 !important; } /* fester Wert statt mitlaufender Abdunklung (nur Handy sichtbar) */
  html.js .ah-auf, html.js .ah-auf--blende, html.js .ah__zoom { animation: none; }
  .header, .header::before, .nav__logo img { transition: none !important; }
}

/* ---------- 3) Über uns mit Kennenlernvideo ---------- */
.au { background: #fff; border-top: 1px solid var(--tm-linie-hell); border-bottom: 1px solid var(--tm-linie-hell); }
.au__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); gap: clamp(40px, 7vw, 112px); align-items: center; }
.au__text .lead { max-width: 44ch; }
.au__werte {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 0;
  margin: 26px 0 30px; max-width: none;
  font-family: var(--f-display); font-size: clamp(1.15rem, 1.7vw, 1.4rem); font-weight: 600; letter-spacing: -.01em;
  color: var(--tm-text);
}
.au__werte span { display: inline-flex; align-items: center; }
.au__werte span:not(:last-child)::after { content: ''; width: 6px; height: 6px; margin: 0 16px; border-radius: 50%; background: var(--tm-grau); }
.au__mehr svg { transition: transform .3s var(--e-out); }
.au__mehr:hover svg { transform: translateX(3px); }

.au__video { margin: 0; width: 100%; max-width: 420px; justify-self: center; }
.au-kv {
  position: relative; isolation: isolate;
  aspect-ratio: 9 / 16; overflow: hidden;
  border-radius: 22px; background: #2E3236;
  outline: 1.5px solid var(--tm-linie); outline-offset: 8px;
  box-shadow: 0 44px 80px -40px rgba(31, 35, 38, .55);
}
.au-kv__poster, .au-kv__film { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.au-kv__start {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  padding: 0; border: 0; cursor: pointer; color: #fff;
  background: linear-gradient(180deg, rgba(37, 41, 44, 0) 45%, rgba(37, 41, 44, 0.67) 100%);
}
.au-kv__start:focus-visible { outline: 3px solid var(--tm-silber-hell); outline-offset: -6px; }
.au-kv__play { display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; background: #fff; color: var(--tm-text); box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .6); transition: transform .4s var(--e-out); }
.au-kv__play svg { width: 32px; height: 32px; margin-left: 4px; fill: currentColor; }
.au-kv__start:hover .au-kv__play { transform: scale(1.07); }
.au-kv__label { padding: 8px 14px; border-radius: 999px; background: rgba(37, 41, 44, 0.69); font-size: .95rem; font-weight: 600; line-height: 1.2; }
.au-kv.laeuft .au-kv__start, .au-kv.laeuft .au-kv__poster { display: none; }
@media (max-width: 900px) {
  .au__in { grid-template-columns: 1fr; gap: 44px; }
  .au__video { max-width: 360px; }
}
@media (max-width: 600px) {
  .au.sect { padding-top: 56px; padding-bottom: 64px; }
  .au__in { gap: 30px; }
  .au__werte { margin: 20px 0 22px; }
  .au__video { max-width: none; width: calc(100% + 16px); margin-inline: -8px; }
  .au-kv { border-radius: 20px; outline-offset: 5px; }
}
@media (max-width: 480px) {
  .au__werte { font-size: clamp(.92rem, 4.2vw, 1.1rem); }
  .au__werte span:not(:last-child)::after { margin: 0 9px; }
}

/* ---------- 4) Anfrage: Fehler unter dem Knopf, Danke statt Formular ---------- */
.ah-status { margin: 0; font-size: .9rem; line-height: 1.45; font-weight: 600; color: #B42318; text-align: center; }
.ah-status:empty { display: none; }
.ah-senden[disabled] { opacity: .75; cursor: progress; }
.ah-ok { display: grid; justify-items: center; gap: 8px; padding: 22px 4px 8px; text-align: center; }
.ah-ok[hidden] { display: none; }
.ah-ok:focus { outline: none; }
.ah-ok svg { width: 52px; height: 52px; padding: 12px; border-radius: 50%; background: #E3F4EA; fill: none; stroke: #1C6B44; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ah-ok__titel { margin: 4px 0 0; font-size: 1.2rem; font-weight: 700; line-height: 1.3; }
.ah-ok__text { margin: 0; max-width: 34ch; font-size: .95rem; line-height: 1.5; color: var(--tm-text-2); }

/* ---------- 5) Große Monitore (Elyes 03.11.: „bei sehr großen Monitoren nicht responsive“) ----------
   Rand gedeckelt: Mit max(24px, 4vw) wuchs er bei 3840 px auf 154 px, die Textspalte schrumpfte auf 456 px und
   „TM Fenstermonteur“ (nowrap) lief unter die Karte. Ab 2100 px wachsen Hero-Inhalt (Text + Karte), Navbar und Topbar
   stufenweise gemeinsam (--tm-gross), damit der erste Bildschirm auf QHD/4K nicht als kleiner Block in der Mitte steht.
   Pause-Knopf bündig mit dem Logo (Navbar-.wrap 1520 px × --tm-gross). */
:root { --tm-gross: 1; }
@media (min-width: 2100px) { :root { --tm-gross: 1.15; } }
@media (min-width: 2500px) { :root { --tm-gross: 1.3; } }
@media (min-width: 3000px) { :root { --tm-gross: 1.5; } }
@media (min-width: 3500px) { :root { --tm-gross: 1.7; } }
.ah { --ah-pad: max(24px, min(4vw, 64px), env(safe-area-inset-left, 0px)); }
.ah__in, .header > .wrap, .topbar > .wrap { zoom: var(--tm-gross); }
.ah__pause { left: max(var(--ah-pad), calc((100% - 1520px * var(--tm-gross)) / 2)); }

/* Knopf nur sichtbar, wenn das Video steht */
.ah__pause[data-zustand="laeuft"] { display: none; }

/* Prüflauf 10.11.: Zwischen 861 und 1199 px war die Vorauswahl „Neue Fenster“ im Feld „Worum geht es?“ abgeschnitten
   („Neue Fen…“) – etwas weniger Innenabstand und Schrift minimal kleiner, damit sie ganz passt. */
@media (min-width: 861px) and (max-width: 1199px) {
  .ah-auswahl { gap: 8px; padding-right: 36px; }
  .ah-auswahl__pfeil { right: 13px; }
  .ah-auswahl__wert b { font-size: .95rem; }
}
