/* Dachdeckerei Saß – Entwurf. Richtung A „Giebel“: eine Form (der Giebel aus dem Logo) trägt das System. */

/* Schrift lokal (Datenschutz). Datei fonts/archivo-var.woff2 noch nicht vorhanden: bis dahin Systemschrift. */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #EEF1F3;
  --surface: #E1E6EA;
  --ink: #101B26;
  --muted: #4A5A68;
  --blue: #1F5FA6;
  --blue-deep: #184C86;
  --slate: #16212C;
  --red: #D33A1E;
  --red-strong: #B02F17;
  --on-dark: #FFFFFF;
  --on-dark-muted: #C5CED6;

  --font: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --step-hero: clamp(2.5rem, 1.2rem + 4vw, 4.5rem);
  --step-head: clamp(2rem, 1.4rem + 2.4vw, 3.5rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-small: 0.875rem;

  --gutter: clamp(16px, 3vw, 32px);
  --section: clamp(96px, 12vw, 200px);
  --max: 1360px;

  /* Giebel: Dachspitze aus dem Logo */
  --gable: polygon(50% 0, 100% 34%, 100% 100%, 0 100%, 0 34%);
  --gable-flat: polygon(0 18%, 50% 0, 100% 18%, 100% 100%, 0 100%);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1); /* kleiner Überschwinger, verspielt */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.5;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--blue); color: var(--on-dark); }
:focus-visible { outline: 3px solid var(--red-strong); outline-offset: 3px; }

h1, h2, h3 { font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; text-wrap: balance; }
h1 { font-size: var(--step-hero); }
h2 { font-size: var(--step-head); }
h3 { font-size: var(--step-lead); letter-spacing: -0.015em; line-height: 1.15; }
.lead { font-size: var(--step-lead); line-height: 1.35; max-width: 34ch; }
.small { font-size: var(--step-small); }
.muted { color: var(--muted); }
.prose p + p { margin-top: 1em; }
.prose { max-width: 62ch; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--gutter); top: -100px; background: var(--ink); color: var(--on-dark); padding: 12px 16px; z-index: 50; }
.skip:focus { top: 12px; }

/* Platzhalter für noch fehlende Angaben */
.ph { background: #FBE3DC; color: var(--red-strong); padding: 0 0.3em; font-weight: 600; }
.on-dark .ph { background: #3A2620; color: #FFB9A6; }

/* ---------- Kopfleiste ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; letter-spacing: -0.02em; font-size: 1.25rem; line-height: 1; }
.brand svg { width: 40px; height: 34px; flex: none; }
.brand small { display: block; font-weight: 400; font-size: var(--step-small); letter-spacing: 0; margin-top: 4px; color: var(--muted); }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; padding-block: 8px; }
.nav a[aria-current="page"] { color: var(--blue); }
@media (hover: hover) and (pointer: fine) {
  .nav a { transition: color 160ms ease; }
  .nav a:hover { color: var(--blue); }
}
@media (max-width: 860px) {
  .site-header .wrap { gap: 4px 16px; padding-block: 10px; min-height: 0; }
  .nav { order: 3; width: 100%; margin-left: 0; gap: 22px; }
  .header-call { margin-left: auto; min-height: 44px; padding: 10px 14px 8px; }
  .brand { font-size: 1.0625rem; }
  .brand small { display: none; }
  .brand svg { width: 32px; height: 27px; }
}

/* ---------- Schaltflächen: Giebelfläche auf einem versetzten Block ---------- */
.btn {
  --face: var(--blue); --depth: var(--ink); --fg: var(--on-dark);
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 18px 26px 14px;
  font: inherit; font-weight: 700; line-height: 1.1; text-decoration: none;
  color: var(--fg); background: none; border: 0; cursor: pointer;
  transition: transform 260ms var(--spring);
}
.btn::before, .btn::after { content: ""; position: absolute; inset: 0; clip-path: var(--gable-flat); }
.btn::before { background: var(--face); z-index: -1; transition: background-color 160ms ease; }
.btn::after { background: var(--depth); z-index: -2; transform: translate(5px, 5px); transition: transform 260ms var(--spring); }
.btn:active { transform: translate(3px, 3px); transition-duration: 90ms; }
.btn:active::after { transform: translate(2px, 2px); transition-duration: 90ms; }
.btn:focus-visible { outline: 3px solid var(--red-strong); outline-offset: 6px; }
.on-dark .btn:focus-visible, .way .btn:focus-visible, .coupon .btn:focus-visible, .ticket .btn:focus-visible { outline-color: var(--on-dark); }
.btn--call { --face: var(--red-strong); --depth: var(--ink); }
.btn--light { --face: var(--on-dark); --fg: var(--ink); --depth: var(--ink); }
.way--business .btn--light, .emergency .btn--call { --depth: var(--blue); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translate(-3px, -3px); }
  .btn:hover::after { transform: translate(8px, 8px); }
  .btn:active { transform: translate(3px, 3px); }
  .btn:active::after { transform: translate(2px, 2px); }
}
.header-call { min-height: 48px; padding: 14px 18px 10px; }

/* Wahlknöpfe (Dachart, Thema): eingedrückt, wenn gewählt */
.btn--chip { --face: var(--surface); --fg: var(--ink); --depth: var(--blue); min-height: 52px; padding: 16px 20px 12px; font-size: var(--step-body); }
.btn--chip[aria-pressed="true"], .btn--chip:has(input:checked) { --face: var(--ink); --fg: var(--on-dark); transform: translate(4px, 4px); }
.btn--chip[aria-pressed="true"]::after, .btn--chip:has(input:checked)::after { transform: translate(1px, 1px); }
.btn--chip:has(input:focus-visible) { outline: 3px solid var(--red-strong); outline-offset: 6px; }
.on-dark .btn--chip, .coupon .btn--chip, .ticket .btn--chip { --face: #F4F7FA; --depth: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .btn--chip[aria-pressed="true"]:hover, .btn--chip:has(input:checked):hover { transform: translate(4px, 4px); }
  .btn--chip[aria-pressed="true"]:hover::after, .btn--chip:has(input:checked):hover::after { transform: translate(1px, 1px); }
}
.chips { display: flex; flex-wrap: wrap; gap: 14px 12px; }

/* Giebel als Aufzählungszeichen */
.mark { display: inline-block; width: 0.8em; height: 0.72em; clip-path: var(--gable); background: var(--blue); flex: none; }

/* ---------- Medien-Platzhalter ---------- */
.media { position: relative; background: var(--surface); overflow: hidden; }
.media > img, .media > video { width: 100%; height: 100%; object-fit: cover; }
.media.gable { clip-path: var(--gable); }
.slot {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 4px;
  padding: 18% 12% 8%; color: var(--muted); font-size: var(--step-small); line-height: 1.35;
  background: var(--surface);
}
.slot b { color: var(--ink); font-size: 1rem; }
.on-dark .slot { background: #223140; color: var(--on-dark-muted); }
.on-dark .slot b { color: var(--on-dark); }
.r-16x9 { aspect-ratio: 16 / 9; }
.r-4x5 { aspect-ratio: 4 / 5; }
.r-3x2 { aspect-ratio: 3 / 2; }
.r-1x1 { aspect-ratio: 1 / 1; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(100svh - 76px, 900px); display: grid; grid-template-columns: 3fr 2fr; align-items: center; overflow: hidden; }
.hero-text { padding: clamp(48px, 7vw, 120px) var(--gutter) clamp(48px, 7vw, 120px) max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); position: relative; z-index: 2; }
.hero-text p { margin-top: 28px; max-width: 34ch; font-size: var(--step-lead); line-height: 1.35; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero-gable {
  position: absolute; left: 62%; bottom: -6vh; width: 62vw; height: 112%;
  background: var(--blue); clip-path: var(--gable);
}
.hero-gable .media { position: absolute; left: 12%; right: 36%; bottom: 10%; top: 26%; clip-path: var(--gable); }
.hero-gable .media .slot { background: #3A74B6; color: #E7EEF6; }
.hero-gable .media .slot b { color: #FFFFFF; }
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-text { padding: 40px var(--gutter) 0; }
  .hero-gable { position: relative; left: auto; right: auto; bottom: auto; width: 128vw; height: 92vw; margin: 40px 0 0 -14vw; }
  .hero-gable .media { left: 24%; right: 24%; top: 30%; bottom: 0; }
}

/* ---------- Zwei Wege ---------- */
.ways { display: grid; grid-template-columns: 1fr 1fr; }
.way { padding: clamp(48px, 7vw, 112px) var(--gutter); display: grid; gap: 28px; align-content: start; }
.way--private { background: var(--blue); color: var(--on-dark); }
.way--business { background: var(--slate); color: var(--on-dark); }
.way .media { width: 72%; max-width: 440px; }
.way p { max-width: 40ch; }
.way .btn--light { justify-self: start; }
@media (max-width: 800px) { .ways { grid-template-columns: 1fr; } .way .media { width: 82%; } }

/* ---------- Leistungen (Punkte mit Giebel) ---------- */
.services { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 96px); align-items: start; }
.services-media { position: sticky; top: 100px; margin-left: calc(-1 * var(--gutter) - 6vw); }
.services-media .layers { position: relative; aspect-ratio: 4 / 5; clip-path: var(--gable); }
.services-media .layers .media { position: absolute; inset: 0; will-change: opacity, transform; }
.services-media .layers .media + .media { opacity: 0; }
.points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 40px; margin-top: 56px; }
.points li { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; }
.points h3 { font-size: 1.1875rem; line-height: 1.25; letter-spacing: -0.01em; }
.points .mark { margin-top: 0.3em; }
.points p { grid-column: 2; margin-top: 6px; }
.points li:nth-child(3n+2) .mark { background: var(--slate); }
.points li:nth-child(3n) .mark { background: var(--red-strong); }
.confirm { display: block; margin-top: 6px; color: var(--muted); font-size: var(--step-small); }
@media (max-width: 900px) {
  .services { grid-template-columns: 1fr; }
  .services-media { position: relative; top: 0; width: 82vw; margin-left: calc(-1 * var(--gutter)); }
  .points { grid-template-columns: 1fr; gap: 28px; margin-top: 36px; }
}

/* ---------- Dachcheck ---------- */
.check-head { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 96px); align-items: end; }
.check-head .prose { margin-top: 0; }
.flow { width: 100%; height: auto; margin-top: 64px; }
.flow-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 28px; }
.flow-steps h3 { font-size: 1.25rem; }
.flow-steps p { margin-top: 8px; }
.picker { margin-top: clamp(72px, 9vw, 140px); display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 96px); }
.picker-tabs { display: flex; flex-wrap: wrap; gap: 14px 12px; margin-top: 28px; }
.picker-panel { background: var(--surface); padding: clamp(28px, 4vw, 56px); }
.picker-panel h3 { margin-bottom: 24px; }
.picker-list { columns: 2; column-gap: 40px; }
.picker-list li { display: flex; gap: 12px; align-items: baseline; padding-block: 7px; break-inside: avoid; }
.picker-list .mark { transform: translateY(0.05em); }
.picker-panel .btn { margin-top: 32px; }
.js .picker-panel[hidden] { display: none; }
.picker-panel.is-in { animation: panel-in 220ms var(--ease-out); }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 900px) {
  .check-head, .picker { grid-template-columns: 1fr; }
  .flow-steps { grid-template-columns: 1fr; gap: 20px; }
  .picker-list { columns: 1; }
}

/* ---------- Notruf ---------- */
.emergency { position: relative; background: var(--slate); color: var(--on-dark); clip-path: var(--gable-flat); padding-top: calc(var(--section) + 6vw); padding-bottom: var(--section); margin-top: calc(-1 * clamp(24px, 4vw, 64px)); }
.emergency .wrap { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 96px); align-items: center; }
.emergency .phone { display: inline-block; margin-top: 32px; font-size: clamp(2rem, 1.2rem + 3.4vw, 4.25rem); font-weight: 800; letter-spacing: -0.03em; text-decoration: none; line-height: 1; }
.emergency p { color: var(--on-dark-muted); max-width: 44ch; margin-top: 24px; }
.emergency p strong { color: var(--on-dark); }
.emergency .btn { margin-top: 36px; }
@media (max-width: 900px) { .emergency .wrap { grid-template-columns: 1fr; } }

/* ---------- Über uns ---------- */
.about { display: grid; grid-template-columns: 6fr 6fr; gap: clamp(32px, 5vw, 96px); align-items: center; }
.about .media { width: min(100%, 520px); }
.about .facts { display: grid; gap: 28px; margin-top: 40px; }
.about .facts h3 { font-size: 1.25rem; }
.about .facts p { margin-top: 6px; max-width: 48ch; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } .about .media { width: 86%; } }

/* ---------- Kontakt-Karte mit Kerben ---------- */
.coupon {
  position: relative; display: grid; grid-template-columns: 46fr 54fr;
  background: var(--blue); color: var(--on-dark);
  /* Kerben als kleine Giebel, oben und unten an der Trennkante */
  clip-path: polygon(0 0, calc(46% - 18px) 0, 46% 22px, calc(46% + 18px) 0, 100% 0, 100% 100%, calc(46% + 18px) 100%, 46% calc(100% - 22px), calc(46% - 18px) 100%, 0 100%);
}
.coupon-text { padding: clamp(32px, 4.5vw, 64px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.coupon-text p { max-width: 36ch; }
.coupon-text .direct { display: grid; gap: 6px; font-weight: 700; }
.coupon-text .direct a { text-decoration: none; }
.coupon form { padding: clamp(32px, 4.5vw, 64px); display: grid; gap: 10px; background: var(--blue-deep); }
.field label, .field legend { display: block; font-weight: 600; font-size: var(--step-small); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 52px; padding: 12px 14px; font: inherit; color: var(--ink);
  background: #F4F7FA; border: 2px solid transparent; border-radius: 0;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--red); }
.field input[aria-invalid="true"] { border-color: var(--red); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.choice { display: flex; gap: 20px; }
.choice label { display: inline-flex; gap: 8px; align-items: center; font-weight: 400; font-size: var(--step-body); margin: 0; }
.choice input { width: 20px; height: 20px; min-height: 0; accent-color: var(--red); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: var(--step-small); margin-top: 6px; }
.consent input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--red); }
.form-note { min-height: 1.5em; font-weight: 600; }
.form-note.is-in { animation: panel-in 200ms var(--ease-out); }
@media (max-width: 900px) {
  .coupon { grid-template-columns: 1fr; clip-path: none; }
  .row2 { grid-template-columns: 1fr; }
}

/* ---------- Unterseiten ---------- */
.page-head { padding-block: clamp(56px, 8vw, 128px) clamp(40px, 5vw, 80px); display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 96px); align-items: end; }
.page-head p { font-size: var(--step-lead); line-height: 1.35; max-width: 36ch; margin-top: 24px; }
@media (max-width: 900px) { .page-head { grid-template-columns: 1fr; } }

.service-block { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 96px); align-items: center; padding-block: clamp(56px, 7vw, 112px); }
.service-block:nth-child(even) { grid-template-columns: 7fr 5fr; }
.service-block:nth-child(even) .media { order: 2; }
.service-block .media { width: 100%; }
.service-block ul { margin-top: 20px; display: grid; gap: 8px; }
.service-block li { display: flex; gap: 12px; align-items: baseline; }
.service-block p { margin-top: 16px; max-width: 56ch; }
.band { background: var(--surface); }
@media (max-width: 900px) {
  .service-block, .service-block:nth-child(even) { grid-template-columns: 1fr; }
  .service-block:nth-child(even) .media { order: 0; }
  .service-block .media { width: 82%; }
}

.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 48px; }
.steps3 h3 { font-size: 1.25rem; }
.steps3 p { margin-top: 8px; }
@media (max-width: 900px) { .steps3 { grid-template-columns: 1fr; gap: 24px; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 96px); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.contact-list { display: grid; gap: 22px; margin-top: 32px; }
.contact-list dt { font-size: var(--step-small); color: var(--muted); }
.contact-list dd { font-size: var(--step-lead); font-weight: 700; line-height: 1.2; }
.contact-list a { text-decoration: none; }
.map { margin-top: 40px; background: var(--surface); padding: 32px; }
.map p + p { margin-top: 12px; }

.legal { max-width: 72ch; padding-bottom: var(--section); }
.legal h2 { font-size: var(--step-lead); margin-top: 48px; }
.legal p, .legal address { margin-top: 12px; font-style: normal; }
.notice { background: #FBE3DC; color: #5A1A0C; padding: 20px 24px; margin-bottom: 40px; }

/* ---------- Footer: Wortmarke aus Blöcken ---------- */
.site-footer { background: var(--slate); color: var(--on-dark); padding-top: clamp(64px, 8vw, 128px); }
.blockmark { display: flex; align-items: flex-end; gap: 4px; height: clamp(140px, 30vh, 300px); }
.blockmark span {
  flex: 1; display: grid; place-items: end center; overflow: hidden;
  font-weight: 800; font-size: clamp(5rem, 2rem + 14vw, 17rem); line-height: 0.78; letter-spacing: -0.04em;
  color: var(--slate); padding-bottom: 0.08em;
}
.blockmark span:nth-child(1) { background: var(--blue); height: 100%; }
.blockmark span:nth-child(2) { background: #2C6CB5; height: 74%; }
.blockmark span:nth-child(3) { background: #EEF1F3; height: 88%; }
.blockmark span:nth-child(4) { background: var(--red-strong); height: 62%; }
.footer-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px; padding-block: 56px; }
.footer-grid nav { grid-column: span 4; display: grid; gap: 10px; align-content: start; }
.footer-grid address { grid-column: span 4; font-style: normal; color: var(--on-dark-muted); }
.footer-grid address strong { color: var(--on-dark); }
.footer-grid .reach { grid-column: span 4; display: grid; gap: 6px; align-content: start; }
.footer-grid a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .footer-grid a:hover { text-decoration: underline; } }
.footer-base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-block: 24px 40px; color: var(--on-dark-muted); font-size: var(--step-small); }
@media (max-width: 800px) {
  .footer-grid nav, .footer-grid address, .footer-grid .reach { grid-column: 1 / -1; }
}

/* ---------- Bewegung: Einstieg je Abschnitt ---------- */
.js [data-reveal] > * { opacity: 0; transform: translateY(24px); transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out); }
.js [data-reveal].is-in > * { opacity: 1; transform: none; }
.js [data-reveal].is-in > *:nth-child(2) { transition-delay: 70ms; }
.js [data-reveal].is-in > *:nth-child(3) { transition-delay: 140ms; }
.js [data-reveal].is-in > *:nth-child(4) { transition-delay: 210ms; }
.js [data-reveal].is-in > *:nth-child(5) { transition-delay: 280ms; }

/* Signatur: der Giebel öffnet sich */
.js .hero-gable { animation: gable-open 900ms var(--ease-in-out) 120ms both; }
.js .hero-gable .media { animation: gable-rise 1100ms var(--ease-out) 420ms both; }
@keyframes gable-open { from { clip-path: polygon(50% 100%, 50% 100%, 50% 100%, 50% 100%, 50% 100%); } }
@keyframes gable-rise { from { opacity: 0; transform: translateY(6%) scale(1.06); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] > * { transform: none; transition: opacity 300ms ease; }
  .js .hero-gable, .js .hero-gable .media { animation: none; }
  .services-media .layers .media { transform: none !important; }
  .picker-panel.is-in, .form-note.is-in { animation: none; }
}

/* Notruf: V2 als gedämpfter Hintergrund (Video unter Schieferfläche, kein Verlauf) */
.emergency-bg { position: absolute; inset: 0; z-index: 0; background: var(--slate); }
.emergency-bg video { width: 100%; height: 100%; object-fit: cover; opacity: 0.2; }
.emergency .wrap { position: relative; z-index: 1; }

/* ---------- Verspielte Details ---------- */
/* Bilder: heben sich, kippen zur Maus (JS) und zoomen leicht */
.media.gable { transition: transform 600ms var(--spring); will-change: transform; }
.media.gable img { transition: transform 700ms var(--ease-out), filter 400ms ease; }
@media (hover: hover) and (pointer: fine) {
  .media.gable:hover img { transform: scale(1.07); filter: saturate(1.12) contrast(1.04); }
  .points li .mark { transition: transform 320ms var(--spring); }
  .points li:hover .mark { transform: translateY(-5px) rotate(-10deg) scale(1.25); }
  .service-block li .mark { transition: transform 320ms var(--spring); }
  .service-block li:hover .mark { transform: translateY(-3px) rotate(-10deg) scale(1.2); }
  .blockmark span { transition: transform 420ms var(--spring); }
  .blockmark span:hover { transform: translateY(-14px); }
  .emergency .phone:hover { animation: ring 520ms var(--ease-out); }
}
@keyframes ring { 20% { transform: rotate(-2.5deg); } 40% { transform: rotate(2deg); } 60% { transform: rotate(-1.2deg); } 80% { transform: rotate(0.6deg); } }
.emergency .phone { display: inline-block; transform-origin: 20% 60%; }

/* ---------- Kontakt: Fragen links, Auftragszettel rechts ---------- */
.coupon-quick { padding: clamp(32px, 4.5vw, 64px); background: var(--blue-deep); display: grid; gap: 24px; align-content: center; }
.coupon-quick h3 { font-size: var(--step-lead); }
.order { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 96px); align-items: start; padding-bottom: var(--section); }
.order-q { display: grid; gap: clamp(48px, 6vw, 80px); }
.q { border: 0; margin: 0; padding: 0; display: grid; gap: 22px; }
.q legend { font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.015em; padding: 0; margin-bottom: 22px; }
.q-sub { display: grid; gap: 14px; padding: 24px; background: var(--surface); }
.q-sub p { font-weight: 600; }
.q-sub[hidden], .q-hint[hidden] { display: none; }
.q-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding: 24px; background: #FBE3DC; color: #5A1A0C; font-weight: 600; }
.order .field input, .order .field textarea { background: var(--surface); }
.switch { display: inline-flex; align-items: center; gap: 14px; cursor: pointer; font-weight: 600; }
.switch input { appearance: none; -webkit-appearance: none; width: 54px; height: 30px; margin: 0; background: var(--surface); position: relative; cursor: pointer; clip-path: var(--gable-flat); transition: background-color 160ms ease; flex: none; }
.switch input::after { content: ""; position: absolute; top: 7px; left: 6px; width: 18px; height: 18px; background: var(--muted); clip-path: var(--gable); transition: transform 260ms var(--spring), background-color 160ms ease; }
.switch input:checked { background: var(--blue); }
.switch input:checked::after { transform: translateX(24px); background: var(--on-dark); }
.switch input:focus-visible { outline: 3px solid var(--red-strong); outline-offset: 4px; }

.ticket { position: sticky; top: 104px; background: var(--blue); color: var(--on-dark); padding: 92px clamp(28px, 3.5vw, 48px) clamp(32px, 4vw, 48px); clip-path: polygon(0 56px, 50% 0, 100% 56px, 100% 100%, 0 100%); display: grid; gap: 24px; }
.ticket h3 { font-size: var(--step-lead); }
.ticket dl { display: grid; gap: 14px; }
.ticket dt { font-size: var(--step-small); color: #CFE0F2; }
.ticket dd { font-weight: 700; font-size: 1.125rem; line-height: 1.3; overflow-wrap: anywhere; }
.ticket dd.is-open { color: #A9C4E4; font-weight: 400; }
.ticket dd.is-new { animation: tick-in 300ms var(--spring); }
@keyframes tick-in { from { transform: translateX(-8px); opacity: 0.2; } }
.ticket .consent a { color: var(--on-dark); }
.ticket .btn { justify-self: start; }
@media (max-width: 900px) { .order { grid-template-columns: 1fr; } .ticket { position: relative; top: 0; } }

@media (prefers-reduced-motion: reduce) {
  .btn, .btn::after, .media.gable, .media.gable img, .switch input::after { transition-duration: 0ms !important; }
  .media.gable { transform: none !important; }
  .ticket dd.is-new { animation: none; }
}
.band .map { background: var(--bg); }

/* ---------- Dach-Assistent (schwebt; Schatten nur hier, weil er wirklich über der Seite liegt) ---------- */
.bot { position: fixed; right: clamp(12px, 2vw, 28px); bottom: clamp(12px, 2vw, 28px); z-index: 40; display: grid; justify-items: end; gap: 12px; }
.bot-toggle { --face: var(--ink); --depth: var(--blue); min-height: 58px; padding: 20px 24px 14px; }
.bot-toggle span { font-weight: 400; color: var(--on-dark-muted); }
.bot.is-open .bot-toggle { display: none; }
.bot-teaser {
  max-width: 280px; text-align: left; font: inherit; font-size: var(--step-small); line-height: 1.45; cursor: pointer;
  background: var(--on-dark); color: var(--ink); border: 0; padding: 16px 18px; box-shadow: 0 12px 32px rgba(16, 27, 38, 0.18); /* taste-skill-ignore: schwebende Sprechblase */
  transform-origin: bottom right; animation: teaser-in 420ms var(--spring) both;
}
.bot-teaser b { display: block; font-size: 1rem; margin-bottom: 4px; }
@keyframes teaser-in { from { opacity: 0; transform: translateY(10px) scale(0.94); } }
.bot-panel {
  width: min(400px, calc(100vw - 24px)); height: min(620px, calc(100svh - 40px));
  display: grid; grid-template-rows: auto 1fr auto auto; background: var(--bg); color: var(--ink);
  box-shadow: 0 18px 48px rgba(16, 27, 38, 0.28); /* taste-skill-ignore: Dialog über der Seite */ transform-origin: bottom right; animation: panel-pop 260ms var(--ease-out);
}
.bot-panel[hidden] { display: none; }
@keyframes panel-pop { from { opacity: 0; transform: translateY(12px) scale(0.96); } }
.bot-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 24px 20px 16px; background: var(--blue); color: var(--on-dark); clip-path: polygon(0 14px, 50% 0, 100% 14px, 100% 100%, 0 100%); }
.bot-head b { display: block; font-size: 1.125rem; }
.bot-head small { display: block; font-size: var(--step-small); color: #CFE0F2; }
.bot-close { font: inherit; font-size: 1.75rem; line-height: 1; width: 44px; height: 44px; border: 0; background: transparent; color: var(--on-dark); cursor: pointer; transition: transform 140ms var(--ease-out); }
.bot-close:active { transform: scale(0.9); }
.bot-close:focus-visible { outline: 3px solid var(--on-dark); outline-offset: -4px; }
.bot-log { overflow-y: auto; padding: 18px 16px; display: grid; align-content: start; gap: 10px; }
.bot-msg { max-width: 88%; padding: 12px 14px; font-size: 0.9375rem; line-height: 1.45; animation: msg-in 240ms var(--ease-out); }
.bot-msg--bot { background: var(--surface); justify-self: start; }
.bot-msg--user { background: var(--blue); color: var(--on-dark); justify-self: end; }
.bot-msg a { color: var(--blue); font-weight: 600; }
.bot-demo { display: block; margin: 10px 0; padding: 10px 12px; background: #FBE3DC; color: #5A1A0C; font-size: var(--step-small); }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } }
.bot-typing { display: inline-flex; gap: 5px; padding: 4px 0; }
.bot-typing i { width: 10px; height: 9px; background: var(--muted); clip-path: var(--gable); animation: hop 900ms var(--ease-in-out) infinite; }
.bot-typing i:nth-child(2) { animation-delay: 120ms; }
.bot-typing i:nth-child(3) { animation-delay: 240ms; }
@keyframes hop { 30% { transform: translateY(-5px); } 60% { transform: none; } }
.bot-choices { display: flex; flex-wrap: wrap; gap: 10px 8px; justify-self: start; }
.bot-chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px 14px; scrollbar-width: thin; }
.bot .btn--chip { min-height: 42px; padding: 13px 14px 9px; font-size: var(--step-small); flex: none; }
.bot-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 12px 16px 16px; background: var(--surface); }
.bot-form input { min-height: 48px; padding: 10px 12px; font: inherit; border: 2px solid transparent; background: var(--on-dark); color: var(--ink); }
.bot-form input:focus { outline: none; border-color: var(--red); }
.bot-form .btn { min-height: 48px; padding: 16px 18px 10px; }
@media (max-width: 560px) {
  .bot-toggle span { display: none; }
  .bot-panel { width: calc(100vw - 24px); height: calc(100svh - 24px); }
}
@media (prefers-reduced-motion: reduce) {
  .bot-teaser, .bot-panel, .bot-msg { animation: none; }
  .bot-typing i { animation: none; }
}

/* ---------- Handy-Korrekturen (04.11.2026) ---------- */
@media (max-width: 860px) {
  /* Kopfleiste scrollt mit weg, statt 114 px dauerhaft zu belegen; Anrufen bleibt oben und im Assistenten */
  .site-header { position: relative; }
}
@media (max-width: 720px) {
  /* Notruf: flaches Dach mit fester Höhe, damit die Schräge keine Überschrift abschneidet */
  .emergency { clip-path: polygon(0 40px, 50% 0, 100% 40px, 100% 100%, 0 100%); padding-top: 96px; margin-top: 0; }
  .emergency .phone { font-size: clamp(2.25rem, 11vw, 3rem); }
  /* Schaubild ist auf dem Handy zu klein zum Lesen: weglassen, die drei Schritte darunter tragen die Aussage */
  .flow { display: none; }
  .flow-steps { margin-top: 40px; }
  /* Footer-Wortmarke: Blöcke und Buchstaben passend zur Breite */
  .blockmark { height: 34vw; }
  .blockmark span { font-size: 30vw; line-height: 0.8; padding-bottom: 0.04em; }
  /* Dachart-Wahl in einer Reihe */
  .picker-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 10px; }
  .picker-tabs .btn--chip { justify-content: center; padding-inline: 6px; }
  .picker-panel { padding: 24px 20px; }
  /* Abstände zwischen Abschnitten auf dem Handy etwas knapper */
  .section { padding-block: clamp(72px, 18vw, 96px); }
  .hero-gable { margin-top: 28px; }
}
@media (max-width: 560px) {
  /* Themen-Knöpfe als volle Zeilen: lange Texte brechen nicht mehr unter die Dachschräge */
  .chips .btn--chip { width: 100%; justify-content: flex-start; text-align: left; }
  .q-hint .btn { width: 100%; justify-content: center; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .way .btn--light, .ticket .btn { width: 100%; justify-content: center; }
}
@media (max-width: 800px) {
  /* 12 Spalten mit 32 px Abstand waren auf 360 px breiter als der Bildschirm */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 720px) { .blockmark span { place-items: center; padding: 0; } }

/* ---------- Touch: Effekte beim Scrollen (ersetzen Hover auf Handy und Tablet) ---------- */
@media (hover: none) {
  .js .media.gable img { transform: scale(1.14); transition: transform 1400ms var(--ease-out), filter 900ms ease; filter: saturate(0.85); }
  .js .media.gable.is-seen img { transform: scale(1); filter: none; }
  .js .points li.is-seen .mark, .js .service-block li.is-seen .mark { animation: mark-hop 640ms var(--spring) 120ms both; }
  .js .blockmark span { transform: translateY(18px); transition: transform 700ms var(--spring); }
  .js .blockmark.is-seen span { transform: none; }
  .js .blockmark.is-seen span:nth-child(2) { transition-delay: 80ms; }
  .js .blockmark.is-seen span:nth-child(3) { transition-delay: 160ms; }
  .js .blockmark.is-seen span:nth-child(4) { transition-delay: 240ms; }
  .js .emergency .phone.is-seen { animation: ring 620ms var(--ease-out) 300ms; }
}
@keyframes mark-hop { 40% { transform: translateY(-6px) rotate(-10deg) scale(1.25); } }
@media (prefers-reduced-motion: reduce) {
  .js .media.gable img, .js .blockmark span { transform: none !important; filter: none !important; }
}

/* ---------- Hero: Video füllt den ganzen ersten Bildschirm (alle Geräte), Kopfleiste liegt darüber ---------- */
@media all {
  body:has(.hero) .site-header { position: absolute; top: 0; left: 0; right: 0; background: transparent; color: var(--on-dark); }
  body:has(.hero) .site-header .nav a, body:has(.hero) .site-header .nav a[aria-current="page"] { color: var(--on-dark); }

  .hero { min-height: 100svh; display: grid; align-content: end; color: var(--on-dark); background: var(--slate); }
  .hero-text { position: relative; z-index: 2; padding: 180px var(--gutter) 104px; } /* unten Platz für den Assistenten-Knopf */
  .hero-text p { color: var(--on-dark); }
  .hero-gable, .js .hero-gable {
    position: absolute; inset: 0; width: auto; height: auto; margin: 0;
    clip-path: none; animation: none; background: var(--slate); z-index: 0;
  }
  .hero-gable .media, .js .hero-gable .media { position: absolute; inset: 0; clip-path: none; animation: none; }
  .hero-gable .media video { object-position: 45% 50%; }
  /* neutrale, flache Abdunklung, damit Schrift auf dem Video lesbar bleibt (kein Verlauf) */
  .hero-gable::after { content: ""; position: absolute; inset: 0; background: rgba(16, 27, 38, 0.5); z-index: 1; }
  .hero-text h1 { text-wrap: balance; }
  .hero-actions .btn--call { --depth: var(--on-dark); }
}

@media (min-width: 721px) {
  .hero-text { padding: 200px var(--gutter) clamp(72px, 9vh, 120px) max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }
  .hero-text p { max-width: 40ch; }
}
body:has(.hero) .site-header .brand small { color: var(--on-dark-muted); }

/* ---------- Hero am PC/Tablet: Headline groß über die volle Breite, darunter Satz links und Buttons rechts ---------- */
@media (min-width: 721px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: clamp(3.75rem, 1rem + 7vw, 8.5rem); letter-spacing: -0.035em; line-height: 0.95; max-width: 14ch; }
  .hero-text p { font-size: clamp(1.25rem, 1rem + 0.55vw, 1.625rem); max-width: 40ch; margin-top: 36px; }
}
@media (min-width: 1024px) {
  .hero-text {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(32px, 5vw, 96px); align-items: end;
    padding-right: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  }
  .hero-text h1 { grid-column: 1 / -1; }
  .hero-text p { grid-column: 1; }
  .hero-actions { grid-column: 2; margin-top: 0; justify-content: flex-end; }
  .hero-actions .btn { min-height: 62px; padding: 22px 30px 16px; font-size: 1.125rem; }
}
.nowrap { white-space: nowrap; }
@media (min-width: 721px) {
  /* unten Abstand zum schwebenden Assistenten-Knopf */
  .hero-text { padding-bottom: clamp(112px, 15vh, 150px); }
}
