/* Meisterstuck – Stuckateurmeister Holger Wittenbrink
   Gestaltung: Petrol und Sand, Ocker als Akzent. Putzstruktur und das geprägte Siegel als Handschrift. */

@font-face {
  font-family: "Instrument Sans";
  src: url("../assets/fonts/instrument-sans-var.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --sand: #f3eee6;
  --sand-2: #e9e1d4;
  --weiss: #ffffff;
  --petrol: #1f4e5a;
  --petrol-tief: #133540;
  --petrol-nacht: #0f2a32;
  --petrol-zart: #d8e5e6;
  --ocker: #c9963f;
  --ocker-text: #7d5a1c;
  --tinte: #15262c;
  --grau: #52626a;
  --linie: #ddd4c6;
  --ok: #2f7a4f;
  --fehler: #b03e2c;
  --sans: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --breite: 1240px;
  --rand: 32px;
  --kopf-h: 96px;
  --radius: 22px;
  --weich: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--sand); color: var(--tinte); font: 400 18px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--sans); font-weight: 600; margin: 0; letter-spacing: -0.025em; line-height: 1.06; text-wrap: balance; }
p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
button, input, textarea { font: inherit; color: inherit; }
.rahmen { width: min(var(--breite), 100% - 2 * var(--rand)); margin-inline: auto; }
.icon { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 3px solid var(--ocker); outline-offset: 3px; border-radius: 4px; }
.sprung { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 12px 18px; background: var(--petrol); color: #fff; text-decoration: none; border-radius: 8px; }
.sprung:focus { top: 16px; }

/* ---------- Knöpfe ---------- */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 14px 28px; border: 0; border-radius: 999px; background: var(--petrol); color: #fff; font-weight: 600; font-size: 17px; text-decoration: none; cursor: pointer; transition: transform .14s var(--weich), background-color .2s ease, box-shadow .2s ease; }
.knopf:hover { background: var(--petrol-tief); box-shadow: 0 10px 24px -12px rgba(19,53,64,.6); }
.knopf:active { transform: scale(.97); }
.knopf.zweit { background: transparent; color: var(--tinte); box-shadow: inset 0 0 0 1.5px currentColor; }
.knopf.zweit:hover { background: rgba(21,38,44,.06); }
.knopf.hell { background: var(--sand); color: var(--tinte); }
.knopf.hell:hover { background: #fff; }
.textknopf { border: 0; background: none; padding: 8px 2px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

/* ---------- Kopfzeile ---------- */
.kopf { position: fixed; inset: 0 0 auto; z-index: 20; transition: background-color .3s ease, box-shadow .3s ease; }
.kopf-innen { display: flex; align-items: center; gap: 36px; height: var(--kopf-h); transition: height .3s var(--weich); }
.marke { display: flex; align-items: center; gap: 13px; text-decoration: none; flex: none; }
.marke img { width: 52px; height: 52px; transition: width .3s var(--weich), height .3s var(--weich); }
.marke b { display: block; font-weight: 650; font-size: 19px; line-height: 1.1; letter-spacing: -0.01em; }
.marke small { display: block; font-size: 14px; color: var(--grau); }
.hauptmenue { display: flex; gap: 30px; margin-left: auto; font-weight: 500; font-size: 16px; }
.hauptmenue a { position: relative; text-decoration: none; padding-block: 6px; }
.hauptmenue a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 1px; background: var(--ocker); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--weich); }
.hauptmenue a:hover::after, .hauptmenue a[aria-current="true"]::after { transform: scaleX(1); }
.tel { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; text-decoration: none; font-weight: 600; font-size: 16px; padding: 11px 20px; border-radius: 999px; background: var(--petrol); color: #fff; transition: background-color .2s ease; }
.tel:hover { background: var(--petrol-tief); }
.menue-knopf { display: none; }
.kopf.kompakt { background: rgba(255,255,255,.94); box-shadow: 0 1px 0 rgba(21,38,44,.06), 0 12px 30px -20px rgba(21,38,44,.35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.kopf.kompakt .kopf-innen { height: 70px; }
.kopf.kompakt .marke img { width: 42px; height: 42px; }

/* ---------- Start ---------- */
.held { padding: calc(var(--kopf-h) + 36px) 0 110px; overflow: hidden; }
.held-raster { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.ort { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 11px; border-radius: 999px; background: rgba(201,150,63,.16); color: var(--ocker-text); font-weight: 600; font-size: 15px; }
.held h1 { margin-top: 22px; font-size: clamp(48px, 5.8vw, 86px); line-height: .98; letter-spacing: -0.035em; }
.held .unter { margin-top: 26px; font-size: 20px; line-height: 1.6; color: var(--grau); max-width: 31em; }
.aktionen { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.fakten { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--linie); font-weight: 500; font-size: 16px; }
.fakten li { display: flex; align-items: center; gap: 10px; }
.fakten .icon { width: 24px; height: 24px; padding: 5px; border-radius: 50%; background: var(--petrol); color: #fff; stroke-width: 3; }
.held-bild { position: relative; }
.bild-rahmen { border-radius: 28px; overflow: hidden; background: var(--sand-2); box-shadow: 0 40px 70px -40px rgba(19,53,64,.55); }
.bild-rahmen img { width: 100%; height: min(680px, calc(100svh - var(--kopf-h) - 120px)); min-height: 460px; object-fit: cover; object-position: 60% 50%; }
.baustelle-karte { position: absolute; right: -26px; bottom: -58px; width: 214px; margin: 0; padding: 8px 8px 12px; border-radius: 18px; background: #fff; box-shadow: 0 26px 44px -22px rgba(15,42,50,.5); transform: rotate(3deg); }
.baustelle-karte img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; }
.baustelle-karte figcaption { margin-top: 9px; text-align: center; font-size: 14px; font-weight: 600; }
.stempel { position: absolute; left: -54px; bottom: 44px; width: 150px; height: 150px; transform: rotate(-8deg); filter: drop-shadow(0 14px 18px rgba(15,42,50,.35)); }

/* Auftritt: Bild wird enthüllt, das Siegel wird aufgestempelt (einmal pro Besuch) */
.held.auftritt .bild-rahmen img { animation: enthuellen 1.3s var(--weich) .1s both; }
.held.auftritt .stempel { animation: stempeln .55s cubic-bezier(.3, 1.4, .5, 1) 1.05s both; }
.held.auftritt .baustelle-karte { animation: karte-rein .7s var(--weich) 1.35s both; }
.held.auftritt .held-text > * { animation: auftauchen .8s var(--weich) both; }
.held.auftritt .held-text > :nth-child(2) { animation-delay: .08s; }
.held.auftritt .held-text > :nth-child(3) { animation-delay: .16s; }
.held.auftritt .held-text > :nth-child(4) { animation-delay: .24s; }
.held.auftritt .held-text > :nth-child(5) { animation-delay: .32s; }
@keyframes enthuellen { from { clip-path: inset(0 0 100% 0); transform: scale(1.08); } to { clip-path: inset(0); transform: none; } }
@keyframes stempeln { from { opacity: 0; transform: rotate(-20deg) scale(1.5); } to { opacity: 1; transform: rotate(-8deg) scale(1); } }
@keyframes karte-rein { from { opacity: 0; transform: translateY(24px) rotate(8deg); } to { opacity: 1; transform: rotate(3deg); } }
@keyframes auftauchen { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Abschnitte ---------- */
.abschnitt { position: relative; padding-block: 120px; }
.kopfzeile { display: grid; grid-template-columns: 5fr 6fr; gap: 64px; align-items: end; margin-bottom: 56px; }
.kopfzeile h2 { font-size: clamp(34px, 3.8vw, 52px); }
.kopfzeile p { font-size: 19px; color: var(--grau); max-width: 36em; }

/* Leistungen als Bildkarten */
#leistungen { background: var(--weiss); }
.leistungen { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.karte { display: flex; flex-direction: column; background: var(--sand); border-radius: var(--radius); overflow: hidden; }
.karte img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .7s var(--weich); }
.karte-text { padding: 24px 26px 30px; }
.karte h3 { font-size: 23px; }
.karte p { margin-top: 8px; font-size: 17px; color: var(--grau); }
@media (hover: hover) {
  .karte:hover img { transform: scale(1.045); }
}

/* Bildband mit Aussage */
.band { position: relative; isolation: isolate; min-height: 560px; display: flex; align-items: center; overflow: hidden; background: var(--petrol-tief); }
.band-bild { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 70% 55%; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(15,42,50,.94) 0%, rgba(19,53,64,.82) 36%, rgba(19,53,64,.15) 72%, rgba(19,53,64,0) 100%); }
.band-inhalt { padding-block: 90px; }
.band-text { max-width: 14em; color: #fff; font-weight: 600; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.12; letter-spacing: -0.025em; }
.band .knopf { margin-top: 32px; }

/* Oberflächen */
#oberflaechen { background: var(--sand); }
.paneele { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.paneel { position: relative; height: 440px; overflow: hidden; border-radius: var(--radius); background: var(--sand-2) center / cover no-repeat; }
.paneel::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(255,255,250,.28), rgba(255,255,250,0) 55%, rgba(40,34,26,.10)), linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(243,238,230,.95) 100%); }
.paneel .text { position: absolute; left: 24px; right: 24px; bottom: 24px; }
.paneel h3 { font-size: 24px; }
.paneel p { margin-top: 4px; font-size: 15px; color: #4a4740; }
.js .paneele:not(.sichtbar) .paneel { background-image: none !important; }

/* Petrol-Flächen mit Putzkorn und geprägtem Siegel */
.petrol, .kontakt-karte { background: var(--petrol); color: #fff; isolation: isolate; overflow: hidden; }
.petrol::before, .kontakt-karte::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../assets/img/wand-korn.webp") 0 0 / 300px 300px; mix-blend-mode: hard-light; opacity: .55; }
.relief { position: absolute; z-index: -1; aspect-ratio: 1; background: url("../assets/img/siegel-relief.webp") center / contain no-repeat; mix-blend-mode: hard-light; opacity: .85; -webkit-mask-image: radial-gradient(closest-side, #000 92%, transparent 100%); mask-image: radial-gradient(closest-side, #000 92%, transparent 100%); pointer-events: none; }
.petrol .relief { width: 520px; right: -250px; top: -70px; opacity: .6; }
.petrol .kopfzeile p { color: #bfd3d6; }

/* Ablauf */
.schritte { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; counter-reset: s; position: relative; }
.schritte::before { content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 2px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.28) 0 12px, transparent 12px 20px); }
.schritte li { position: relative; counter-increment: s; }
.schritte li::before { content: counter(s); position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ocker); color: var(--tinte); font-weight: 700; font-size: 22px; box-shadow: 0 0 0 6px var(--petrol); }
.schritte h3 { margin-top: 24px; font-size: 23px; }
.schritte p { margin-top: 8px; color: #c7d8db; }

/* Der Meister */
#meister { background: var(--weiss); }
.meister { display: grid; grid-template-columns: 5fr 6fr; gap: 100px; align-items: center; }
.foto-fassade { position: relative; isolation: isolate; margin: 0 30px 30px 0; }
.foto-fassade::before { content: ""; position: absolute; inset: 30px -30px -30px 30px; z-index: -1; border-radius: 26px; background: var(--petrol); }
.foto-fassade img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 26px; }
.foto-fassade figcaption { position: absolute; left: 18px; bottom: 18px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.92); font-size: 14px; font-weight: 500; }
.meister h2 { font-size: clamp(34px, 3.8vw, 52px); }
.meister-text > p { margin-top: 22px; font-size: 19px; color: var(--grau); max-width: 33em; }
.platzhalter { padding: 14px 18px; border: 1.5px dashed var(--linie); border-radius: 12px; font-size: 16px !important; }
.unterschrift { display: flex; align-items: center; gap: 16px; margin-top: 36px; }
.unterschrift img { width: 72px; height: 72px; }
.unterschrift b { display: block; font-weight: 650; font-size: 19px; }
.unterschrift span { display: block; font-size: 15px; color: var(--grau); }

/* ---------- Kontakt: zwei gleich hohe Hälften ---------- */
.kontakt-bereich { background: var(--sand); }
.kontakt { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.kontakt-karte { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding: 52px 52px 48px; border-radius: 28px; }
.kontakt-karte .relief { width: 420px; right: -120px; bottom: -110px; opacity: .7; }
.kontakt h2 { font-size: clamp(36px, 3.8vw, 52px); }
.kontakt .intro { margin-top: 20px; font-size: 19px; color: #c7d8db; max-width: 26em; }
.tipps { margin-top: 36px; padding: 22px 24px; border-radius: 18px; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.tipps p { font-weight: 600; font-size: 16px; }
.tipps ul { list-style: none; display: grid; gap: 12px; margin-top: 14px; }
.tipps li { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; line-height: 1.45; color: #dbe7e9; }
.tipps .icon { width: 22px; height: 22px; margin-top: 0; color: var(--ocker); stroke-width: 1.8; }
.daten { display: grid; gap: 0; }
.daten div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding-block: 16px; border-top: 1px solid rgba(255,255,255,.18); }
.daten dt { color: #a9c2c6; font-size: 15px; padding-top: 3px; }
.daten dd { font-size: 18px; overflow-wrap: anywhere; }
.daten a { text-decoration: none; }
.daten a:hover { text-decoration: underline; text-underline-offset: 4px; }
.daten .gross { font-weight: 650; font-size: 28px; letter-spacing: -0.02em; line-height: 1.1; }

.formular-karte { background: var(--weiss); border-radius: 28px; padding: 40px 44px 44px; box-shadow: 0 30px 60px -40px rgba(19,53,64,.45); }
.ansprechpartner { display: flex; align-items: center; gap: 18px; padding-bottom: 26px; margin-bottom: 28px; border-bottom: 1px solid var(--linie); }
.ansprechpartner img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ocker); }
.ansprechpartner small { display: block; font-size: 14px; color: var(--grau); }
.ansprechpartner b { display: block; font-weight: 650; font-size: 23px; letter-spacing: -0.015em; line-height: 1.2; }
.ansprechpartner span { display: block; font-size: 15px; color: var(--grau); }

.anfrage { display: grid; gap: 22px; }
.feld-zeile { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.feld { display: grid; gap: 8px; min-width: 0; }
.feld > label, legend { font-weight: 600; font-size: 16px; }
.optional { font-weight: 400; color: var(--grau); font-size: 14px; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { padding: 0; margin-bottom: 10px; }
.eingabe { position: relative; }
.eingabe input, .eingabe textarea { display: block; width: 100%; font-size: 17px; padding: 14px 44px 14px 16px; border: 1.5px solid #d4cdc1; border-radius: 12px; background: #fbf9f6; transition: border-color .2s ease, box-shadow .2s ease; }
.eingabe textarea { min-height: 128px; resize: vertical; line-height: 1.5; }
.eingabe input:focus, .eingabe textarea:focus { outline: none; border-color: var(--petrol); box-shadow: 0 0 0 4px rgba(31,78,90,.16); }
.ok { position: absolute; right: 14px; top: 16px; width: 20px; height: 20px; fill: none; stroke: var(--ok); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; pointer-events: none; transition: opacity .15s ease; }
.ok path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .15s ease; }
.feld.gut .ok { opacity: 1; }
.feld.gut .ok path { stroke-dashoffset: 0; transition: stroke-dashoffset .35s var(--weich); }
.hinweis { font-size: 14px; line-height: 1.4; color: var(--fehler); }
.hinweis:empty { display: none; }
.feld.schlecht input, .feld.schlecht textarea { border-color: var(--fehler); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 8px 16px; border: 1.5px solid #d4cdc1; border-radius: 999px; background: #fbf9f6; font-size: 15px; font-weight: 500; transition: background-color .18s ease, border-color .18s ease, color .18s ease; }
.chips span::before { content: ""; width: 0; height: 10px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); opacity: 0; transition: width .18s var(--weich), opacity .18s ease; }
.chips input:checked + span { background: var(--petrol); border-color: var(--petrol); color: #fff; }
.chips input:checked + span::before { width: 5px; opacity: 1; margin-right: 2px; }
.chips input:focus-visible + span { outline: 3px solid var(--ocker); outline-offset: 2px; }

/* Fotos mitschicken */
.fotos-eingabe { position: absolute; width: 1px; height: 1px; opacity: 0; }
.fotos-knopf { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px dashed #c8c0b2; border-radius: 14px; background: #fbf9f6; cursor: pointer; transition: border-color .2s ease, background-color .2s ease; }
.fotos-knopf:hover { border-color: var(--petrol); background: #f6f8f8; }
.fotos-eingabe:focus-visible + .fotos-knopf { outline: 3px solid var(--ocker); outline-offset: 2px; }
.fotos.voll .fotos-knopf { opacity: .5; pointer-events: none; }
.kamera { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--petrol-zart); color: var(--petrol); flex: none; }
.kamera .icon { width: 24px; height: 24px; stroke-width: 1.8; }
.fotos-knopf b { display: block; font-weight: 600; font-size: 16px; }
.fotos-knopf small { display: block; font-size: 14px; line-height: 1.4; color: var(--grau); }
.fotos-liste { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.fotos-liste:empty { display: none; }
.fotos-liste li { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--sand-2); animation: auftauchen .35s var(--weich) both; }
.fotos-liste img { width: 100%; height: 100%; object-fit: cover; }
.fotos-liste button { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(21,38,44,.78); color: #fff; cursor: pointer; }
.fotos-liste button .icon { width: 14px; height: 14px; stroke-width: 2.4; }

.falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fehlt { padding: 14px 16px; border-radius: 12px; background: rgba(176,62,44,.07); box-shadow: inset 0 0 0 1px rgba(176,62,44,.32); font-size: 15px; }
.fehlt ul { margin-top: 6px; padding-left: 20px; }
.fehlt a { color: var(--fehler); font-weight: 600; }
.senden { justify-self: start; min-width: 210px; }
.kreisel { display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; }
.senden.laeuft { pointer-events: none; }
.senden.laeuft .kreisel { display: block; animation: drehen .7s linear infinite; }
@keyframes drehen { to { transform: rotate(360deg); } }
.klein { font-size: 14px; color: #6f7a7e; }
.klein a { color: inherit; }

/* Danke und Plan B */
.danke, .plan-b { display: grid; gap: 14px; outline: none; animation: auftauchen .5s var(--weich) both; }
.danke h3, .plan-b h3 { font-size: 28px; line-height: 1.15; }
.danke ol { padding-left: 22px; display: grid; gap: 8px; color: var(--grau); }
.danke .neu { justify-self: start; margin-top: 8px; }
.danke-haken { width: 56px; height: 56px; fill: none; stroke: var(--ok); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.danke-haken circle { stroke-dasharray: 1; stroke-dashoffset: 1; transform: rotate(-90deg); transform-origin: center; animation: zeichnen .6s var(--weich) .1s forwards; }
.danke-haken path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: zeichnen .4s var(--weich) .6s forwards; }
@keyframes zeichnen { to { stroke-dashoffset: 0; } }
.plan-b-wege, .plan-b-aktionen { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.plan-b-text { max-height: 180px; overflow: auto; margin: 0; padding: 12px 14px; background: #fbf9f6; border: 1.5px solid #d4cdc1; border-radius: 12px; font: 14px/1.5 var(--sans); white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- Fuß ---------- */
.fuss { background: var(--petrol-nacht); color: #9fb6ba; }
.fuss-innen { display: flex; align-items: center; gap: 18px; padding-block: 32px; font-size: 15px; }
.fuss-innen img { width: 44px; height: 44px; }
.fuss small { font-size: 13px; color: #7f989d; }
.fuss nav { margin-left: auto; display: flex; gap: 24px; }
.fuss a { text-decoration: none; }
.fuss a:hover { color: #fff; }
.kontaktleiste { display: none; }

/* ---------- Unterseiten (Impressum, Datenschutz) ---------- */
.unterseite .kopf { position: sticky; background: #fff; box-shadow: 0 1px 0 rgba(21,38,44,.08); }
.unterseite .kopf-innen { height: 80px; }
.text-seite { max-width: 760px; padding-block: 80px 110px; }
.text-seite h1 { font-size: clamp(32px, 5vw, 56px); margin-bottom: 30px; overflow-wrap: break-word; hyphens: auto; }
.text-seite { overflow-wrap: break-word; hyphens: auto; }
.text-seite h2 { font-size: 24px; margin: 40px 0 10px; }
.text-seite p { margin-bottom: 12px; color: var(--grau); }
.text-seite h3 { font-size: 19px; margin: 26px 0 8px; letter-spacing: -0.01em; }
.text-seite ul { margin: 0 0 14px; padding-left: 22px; color: var(--grau); display: grid; gap: 8px; }
.text-seite h2[id], .text-seite section[id] { scroll-margin-top: 100px; }
.text-seite .inhalt { margin: 8px 0 34px; padding: 20px 24px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--linie); }
.text-seite .inhalt p { margin-bottom: 8px; color: var(--tinte); }
.text-seite .inhalt ul { margin: 0; gap: 4px; }
.text-seite .inhalt a { color: var(--petrol); }
.widerspruch { margin: 40px 0 10px; padding: 6px 26px 14px; border-radius: 16px; background: #fff; box-shadow: inset 4px 0 0 var(--ocker), inset 0 0 0 1px var(--linie); }
.widerspruch h2 { margin-top: 24px !important; }
.entwurf { padding: 14px 18px; border-radius: 12px; background: rgba(201,150,63,.12); box-shadow: inset 0 0 0 1px rgba(201,150,63,.4); }
.offen { background: rgba(201,150,63,.2); padding: 0 4px; border-radius: 3px; }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  :root { --rand: 28px; }
  .hauptmenue { gap: 22px; font-size: 15px; }
  .kopf-innen { gap: 24px; }
  .held-raster { gap: 40px; }
  .stempel { width: 120px; height: 120px; left: -36px; }
  .baustelle-karte { right: -10px; width: 180px; }
  .leistungen { grid-template-columns: repeat(2, 1fr); }
  .paneele { grid-template-columns: repeat(2, 1fr); }
  .paneel { height: 340px; }
  .meister { gap: 64px; }
  .kontakt-karte { padding: 40px; }
  .formular-karte { padding: 36px; }
}
@media (max-width: 900px) {
  .tel span { display: none; }
  .tel { padding: 12px; }
  .kontakt { grid-template-columns: 1fr; }
  .daten div { grid-template-columns: 120px 1fr; }
}

/* ---------- Handy ---------- */
@media (max-width: 760px) {
  :root { --rand: 20px; --kopf-h: 74px; --radius: 18px; }
  body { font-size: 17px; padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  html { scroll-padding-top: 70px; }
  .kopf { background: rgba(243,238,230,.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .kopf-innen { gap: 12px; height: var(--kopf-h); }
  .kopf.kompakt .kopf-innen { height: 64px; }
  .marke img { width: 44px; height: 44px; }
  .kopf.kompakt .marke img { width: 38px; height: 38px; }
  .marke b { font-size: 17px; }
  .marke small { font-size: 13px; }
  .tel { display: none; }
  .menue-knopf { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; min-height: 44px; padding: 8px 15px 8px 13px; border: 0; border-radius: 999px; background: var(--petrol); color: #fff; font-weight: 600; font-size: 15px; cursor: pointer; }
  .striche { position: relative; width: 18px; height: 12px; }
  .striche i { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 1px; transition: transform .3s var(--weich), top .3s var(--weich); }
  .striche i:first-child { top: 1px; } .striche i:last-child { top: 9px; }
  .menue-offen .striche i:first-child { top: 5px; transform: rotate(45deg); }
  .menue-offen .striche i:last-child { top: 5px; transform: rotate(-45deg); }
  .hauptmenue { position: fixed; inset: var(--kopf-h) 0 0; z-index: -1; flex-direction: column; gap: 0; margin: 0; padding: 12px 20px 40px; background: var(--sand); font-weight: 600; font-size: 28px; letter-spacing: -0.02em; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s ease, transform .3s var(--weich), visibility 0s .3s; }
  .hauptmenue a { padding: 16px 0; border-bottom: 1px solid var(--linie); }
  .hauptmenue a::after { display: none; }
  .menue-offen .hauptmenue { visibility: visible; opacity: 1; transform: none; transition: opacity .25s ease, transform .3s var(--weich), visibility 0s; }
  .kopf.menue-offen { background: var(--sand); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .kopf.kompakt .hauptmenue { top: 64px; }

  .held { padding: calc(var(--kopf-h) + 24px) 0 70px; }
  .held-raster { grid-template-columns: 1fr; gap: 40px; }
  .held h1 { font-size: 48px; margin-top: 18px; }
  .held .unter { font-size: 18px; margin-top: 20px; }
  .aktionen { margin-top: 28px; }
  .aktionen .knopf { flex: 1 1 auto; }
  .fakten { margin-top: 32px; padding-top: 22px; flex-direction: column; gap: 10px; }
  .bild-rahmen { border-radius: 22px; }
  .bild-rahmen img { height: 420px; min-height: 0; }
  .stempel { width: 96px; height: 96px; left: 14px; bottom: -26px; }
  .baustelle-karte { right: 12px; bottom: -48px; width: 158px; padding: 6px 6px 9px; border-radius: 14px; }
  .baustelle-karte img { border-radius: 9px; }
  .baustelle-karte figcaption { font-size: 12px; margin-top: 6px; }
  .held { padding-bottom: 96px; }

  .abschnitt { padding-block: 80px; }
  .kopfzeile { grid-template-columns: 1fr; gap: 14px; margin-bottom: 36px; }
  .kopfzeile p { font-size: 17px; }
  .leistungen { grid-template-columns: 1fr; gap: 20px; }
  .karte-text { padding: 20px 22px 24px; }
  .band { min-height: 0; align-items: flex-end; }
  .band-bild { object-position: 62% 50%; }
  .band::before { background: linear-gradient(180deg, rgba(19,53,64,0) 0%, rgba(19,53,64,.35) 35%, rgba(15,42,50,.94) 78%); }
  .band-inhalt { padding-block: 230px 56px; }
  .band-text { font-size: 30px; }
  .paneele { gap: 12px; }
  .paneel { height: 250px; }
  .paneel .text { left: 16px; right: 16px; bottom: 16px; }
  .paneel h3 { font-size: 20px; }
  .paneel p { font-size: 14px; }
  .petrol .relief { width: 340px; right: -170px; top: -40px; }
  .tipps { padding: 18px; }
  .schritte { grid-template-columns: 1fr; gap: 30px; }
  .schritte::before { left: 27px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: repeating-linear-gradient(180deg, rgba(255,255,255,.28) 0 12px, transparent 12px 20px); }
  .schritte li { padding-left: 80px; }
  .schritte li::before { position: absolute; left: 0; top: 0; }
  .schritte h3 { margin-top: 12px; }
  .meister { grid-template-columns: 1fr; gap: 50px; }
  .foto-fassade { margin: 0 16px 16px 0; }
  .foto-fassade::before { inset: 16px -16px -16px 16px; }
  .kontakt-karte { padding: 32px 24px 28px; border-radius: 22px; gap: 36px; }
  .kontakt-karte .relief { width: 300px; right: -110px; bottom: -90px; }
  .daten div { grid-template-columns: 1fr; gap: 2px; }
  .formular-karte { padding: 26px 20px 28px; border-radius: 22px; }
  .ansprechpartner img { width: 68px; height: 68px; }
  .ansprechpartner b { font-size: 21px; }
  .feld-zeile { grid-template-columns: 1fr; }
  .fotos-liste { grid-template-columns: repeat(4, 1fr); }
  .senden { width: 100%; }
  .fuss-innen { flex-wrap: wrap; }
  .fuss nav { margin-left: 0; width: 100%; }
  .kontaktleiste { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding-bottom: env(safe-area-inset-bottom); background: var(--petrol); box-shadow: 0 -8px 24px -12px rgba(0,0,0,.4); }
  .kontaktleiste a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 60px; color: #fff; font-weight: 600; text-decoration: none; }
  .kontaktleiste a + a { background: var(--ocker); color: var(--tinte); }
  .unterseite .kopf-innen { height: 70px; }
  .text-seite { padding-block: 50px 80px; }
}

/* Sehr schmale Handys (bis 400 px) */
@media (max-width: 400px) {
  .unterseite .marke span { display: none; }
  .unterseite .kopf .knopf.zweit { padding: 8px 14px !important; font-size: 14px !important; }
}
@media (max-width: 360px) {
  .marke { gap: 9px; }
  .marke b { font-size: 15px; }
  .marke small { font-size: 12px; }
  .menue-wort { display: none; }
  .menue-knopf { padding: 10px 13px; }
}

/* Ruhige Fassung: keine Bewegung für Menschen, die das eingestellt haben */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}
