/* Stuckateurmeister Ralf Kasper - style.css
   Fassung 2 (2026-10-09). Static site, no build step. Fonts local, no CDN.
   Regeln und Begruendung: 20_design/styleguide.md */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/BricolageGrotesque-Variable.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-Variable.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --mineral: #eceeeb;
  --mineral-dunkel: #dde1dd;
  --hell: #f8f9f7;
  --tinte: #1d2b31;
  --grau: #52616a;
  --petrol: #173b4a;
  --petrol-tief: #0f2a35;
  --petrol-text: #c9d6db;
  --ocker: #d4a21f;
  --wa: #25d366;
  --wa-hover: #1fbf5b;
  --wa-text: #062b17;
  --blase: #d9f4df;
  --linie: rgba(23, 59, 74, 0.14);
  --linie-dunkel: rgba(255, 255, 255, 0.16);

  --display: "Bricolage Grotesque", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --text: "Source Sans 3", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --mass: 74rem;
  --rand: clamp(1rem, 4vw, 2.5rem);
  --abstand: clamp(4rem, 9vw, 7rem);
  --kopf-hoehe: 4.5rem;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--kopf-hoehe) + 1rem);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-delay: 0s !important; }
}

body {
  margin: 0;
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--tinte);
  background: var(--mineral);
}

[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--petrol); text-underline-offset: 0.15em; text-decoration-thickness: 1px; }
a:hover { color: var(--tinte); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--petrol); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 86%;
  font-optical-sizing: auto;
  color: var(--petrol);
  line-height: 1.02;
  letter-spacing: -0.018em;
  margin: 0 0 0.55em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.2vw, 5rem); line-height: 0.98; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: 1.35rem; font-weight: 650; letter-spacing: -0.01em; line-height: 1.15; }
p { margin: 0 0 1.1em; max-width: 38em; }
ul, ol { padding-left: 1.2em; }

.wrap { width: min(100% - 2 * var(--rand), var(--mass)); margin-inline: auto; }

.skip {
  position: absolute; left: -999px; top: 0.5rem;
  background: var(--petrol); color: #fff; padding: 0.5rem 1rem; z-index: 60; border-radius: 999px;
}
.skip:focus { left: 0.5rem; }
.unsichtbar {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Knoepfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 3rem; padding: 0.7rem 1.4rem; border-radius: 999px;
  font: inherit; font-weight: 650; font-size: 1.05rem; line-height: 1.2; text-decoration: none;
  border: 1.5px solid var(--petrol); color: var(--petrol); background: transparent; cursor: pointer;
  transition: background-color 0.15s, color 0.15s, transform 0.15s;
}
.knopf:hover { background: var(--petrol); color: #fff; text-decoration: none; }
.knopf svg { width: 1.25em; height: 1.25em; flex: none; }
.knopf--wa { background: var(--wa); border-color: var(--wa); color: var(--wa-text); }
.knopf--wa:hover { background: var(--wa-hover); border-color: var(--wa-hover); color: var(--wa-text); }
.knopf--wa:active { transform: translateY(1px); }
.knopf--gross { min-height: 3.6rem; padding: 0.9rem 1.8rem; font-size: 1.15rem; }
.knopf--hell { border-color: var(--linie-dunkel); color: #fff; }
.knopf--hell:hover { background: #fff; color: var(--petrol); }
.knoepfe { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* ---------- Kopf ---------- */
.kopf {
  position: sticky; top: 0; z-index: 30;
  background: rgba(248, 249, 247, 0.88);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--linie);
}
.kopf__zeile { display: flex; align-items: center; gap: 1.5rem; min-height: var(--kopf-hoehe); }
.marke { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--petrol); margin-right: auto; }
.marke:hover { color: var(--petrol); }
.marke svg { width: 38px; height: 38px; flex: none; }
.marke__name { font-family: var(--display); font-weight: 700; font-stretch: 86%; font-size: 1.3rem; line-height: 1; letter-spacing: -0.02em; }
.marke__name small { display: block; font-family: var(--text); font-weight: 500; font-size: 0.85rem; color: var(--grau); letter-spacing: 0; margin-top: 0.2rem; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 1.5rem; }
.nav a { color: var(--tinte); text-decoration: none; font-weight: 550; padding: 0.35rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--ocker); color: var(--tinte); }
.nav__tel a { color: var(--petrol); font-weight: 650; }
.kopf__wa { min-height: 2.75rem; padding: 0.55rem 1.1rem; font-size: 1rem; }

.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--linie); border-radius: 999px;
  min-height: 2.75rem; padding: 0.4rem 1rem; font: inherit; font-weight: 650; color: var(--petrol); cursor: pointer;
}
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav { display: none; order: 5; width: 100%; }
  .nav.ist-offen { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 1rem; }
  .nav li { border-top: 1px solid var(--linie); }
  .nav a { display: block; padding: 0.85rem 0; border-bottom: 0; }
  .nav a[aria-current="page"] { color: var(--petrol); font-weight: 700; }
  .kopf__zeile { flex-wrap: wrap; gap: 0.6rem; }
  .kopf__wa { padding: 0.55rem; width: 2.75rem; }
  .kopf__wa span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
}

/* ---------- Abschnitte ---------- */
.abschnitt { padding: var(--abstand) 0; }
.abschnitt--hell { background: var(--hell); }
.abschnitt--petrol { background: var(--petrol); color: var(--petrol-text); }
.abschnitt--petrol h2, .abschnitt--petrol h3 { color: #fff; }
.abschnitt--petrol a:not(.knopf) { color: #fff; }
.abschnitt--petrol :focus-visible { outline-color: var(--ocker); }

.kopfzeile { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 1rem 4rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.kopfzeile h2, .kopfzeile h1 { margin: 0; }
.kopfzeile p { margin: 0; font-size: 1.15rem; color: var(--grau); }
.abschnitt--petrol .kopfzeile p { color: var(--petrol-text); }
@media (max-width: 760px) { .kopfzeile { grid-template-columns: minmax(0, 1fr); } }
.mehr { margin: 2.25rem 0 0; }

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(3.5rem, 7vw, 6rem); }
.hero__raster { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.hero h1 { margin-bottom: 0.45em; }
.hero__intro { font-size: clamp(1.2rem, 1.8vw, 1.4rem); line-height: 1.45; max-width: 28em; margin-bottom: 1.8rem; }
.hero__tel { font-weight: 650; }
.fakten { list-style: none; margin: 2.25rem 0 0; padding: 1.25rem 0 0; border-top: 1px solid var(--linie); display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; color: var(--grau); font-size: 1rem; }
.fakten li { display: flex; align-items: center; gap: 0.5rem; }
.fakten li::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 2px; background: var(--ocker); flex: none; }
@media (max-width: 960px) { .hero__raster { grid-template-columns: minmax(0, 1fr); } }

/* Chat: das tragende Motiv. Ein Beispielgespraech wie in WhatsApp. */
.chat {
  margin: 0; border-radius: 28px; overflow: hidden; max-width: 30rem; justify-self: end; width: 100%;
  background-color: var(--mineral-dunkel);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.09 0 0 0 0 0.23 0 0 0 0 0.29 0 0 0 0.16 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  box-shadow: 0 30px 60px -35px rgba(15, 42, 53, 0.55), 0 0 0 1px var(--linie);
}
.chat__kopf { display: flex; align-items: center; gap: 0.75rem; padding: 0.8rem 1.1rem; background: var(--petrol); color: #fff; }
.chat__kopf img { width: 2.6rem; height: 2.6rem; border-radius: 50%; object-fit: cover; object-position: 50% 15%; }
.chat__kopf strong { display: block; font-weight: 650; line-height: 1.15; }
.chat__kopf small { display: block; font-size: 0.85rem; color: var(--petrol-text); }
.chat__verlauf { display: grid; gap: 0.8rem; padding: 1.25rem 1rem 1.4rem; }
.chat figcaption { padding: 0.7rem 1.1rem; font-size: 0.9rem; color: var(--grau); background: var(--hell); border-top: 1px solid var(--linie); }
@media (max-width: 960px) { .chat { justify-self: start; } }

.blase {
  position: relative; max-width: 88%; padding: 0.65rem 0.9rem; border-radius: 18px;
  font-size: 1rem; line-height: 1.45; color: var(--tinte);
  box-shadow: 0 1px 1px rgba(15, 42, 53, 0.12);
}
.blase p { margin: 0; }
.blase--aus { justify-self: end; background: var(--blase); border-bottom-right-radius: 4px; }
.blase--ein { justify-self: start; background: #fff; border-bottom-left-radius: 4px; padding: 0.35rem 0.35rem 0.65rem; }
.blase--ein img { border-radius: 14px; margin-bottom: 0.55rem; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.blase--ein p { padding: 0 0.55rem; }
.blase__von { display: block; font-size: 0.82rem; font-weight: 650; color: var(--petrol); margin-bottom: 0.15rem; }

/* Die eine Einblendung der Seite: das Gespraech baut sich auf. */
@keyframes blase-rein { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
.hero .chat .blase { animation: blase-rein 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero .chat .blase:nth-child(1) { animation-delay: 0.35s; }
.hero .chat .blase:nth-child(2) { animation-delay: 1.1s; }

/* ---------- Ablauf ---------- */
.ablauf { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; counter-reset: schritt; }
.ablauf li { counter-increment: schritt; border-top: 1px solid var(--linie); padding-top: 1.25rem; }
.ablauf li::before {
  content: counter(schritt); display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--ocker); color: var(--petrol-tief); font-family: var(--display); font-weight: 800; font-size: 1.2rem; margin-bottom: 1rem;
}
.ablauf p { margin: 0; color: var(--grau); }
@media (max-width: 760px) {
  .ablauf { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .ablauf li { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); column-gap: 1rem; align-items: start; }
  .ablauf li::before { grid-row: span 2; margin: 0; }
  .ablauf h3 { margin: 0.45rem 0 0.35rem; }
}

/* ---------- Leistungen ---------- */
.leistungen-bild { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2rem); margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.leistung { display: flex; flex-direction: column; }
.leistung img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; background: var(--mineral-dunkel); margin-bottom: 1.1rem; }
.leistung h3 { font-size: 1.45rem; margin-bottom: 0.35em; }
.leistung p { color: var(--grau); margin-bottom: 1rem; }
.leistung .wa-link { margin-top: auto; }
@media (max-width: 860px) { .leistungen-bild { grid-template-columns: minmax(0, 1fr); } .leistung img { aspect-ratio: 16 / 9; } }

.leistungen-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2.5rem; }
.leistungen-liste li { border-top: 1px solid var(--linie); padding: 1.1rem 0 1.4rem; }
.leistungen-liste h3 { font-size: 1.25rem; margin-bottom: 0.3em; }
.leistungen-liste p { margin: 0 0 0.6rem; font-size: 1.02rem; color: var(--grau); }
@media (max-width: 900px) { .leistungen-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .leistungen-liste { grid-template-columns: minmax(0, 1fr); } }

.wa-link { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 650; color: var(--petrol); text-decoration: none; border-bottom: 2px solid var(--wa); padding-bottom: 0.1rem; align-self: flex-start; }
.wa-link:hover { color: var(--tinte); border-bottom-color: var(--petrol); text-decoration: none; }
.wa-link svg { width: 1.05em; height: 1.05em; flex: none; }

/* ---------- Arbeiten (Startseite) ---------- */
.musterwand {
  display: grid; gap: 0.75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(3, clamp(150px, 16vw, 210px));
  grid-template-areas: "a a b c" "a a b d" "e e f d";
}
.musterwand figure { margin: 0; position: relative; overflow: hidden; border-radius: 16px; background: var(--mineral-dunkel); }
.musterwand img { width: 100%; height: 100%; object-fit: cover; }
.musterwand figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem 0.9rem 0.6rem; font-size: 0.9rem; color: #fff;
  background: linear-gradient(to top, rgba(15, 42, 53, 0.78), rgba(15, 42, 53, 0));
}
.musterwand .m-a { grid-area: a; } .musterwand .m-b { grid-area: b; } .musterwand .m-c { grid-area: c; }
.musterwand .m-d { grid-area: d; } .musterwand .m-e { grid-area: e; } .musterwand .m-f { grid-area: f; }
@media (max-width: 760px) {
  .musterwand { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(5, 150px); grid-template-areas: "a a" "b c" "b d" "e d" "f f"; }
}

/* ---------- Baukasten ---------- */
.baukasten { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 900px) { .baukasten { grid-template-columns: minmax(0, 1fr); } }
.baukasten__form { display: grid; gap: 1.6rem; }
.baukasten fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.baukasten legend, .feld > span { display: block; font-weight: 650; color: #fff; margin-bottom: 0.65rem; font-size: 1.05rem; padding: 0; }
.feld small { font-weight: 400; color: var(--petrol-text); }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.6rem; padding: 0.45rem 1rem; border-radius: 999px;
  border: 1.5px solid var(--linie-dunkel); color: #fff; font-weight: 550; font-size: 1rem; cursor: pointer; user-select: none;
  transition: background-color 0.15s, border-color 0.15s;
}
.chip:hover span { border-color: rgba(255, 255, 255, 0.5); }
.chip input:checked + span { background: #fff; border-color: #fff; color: var(--petrol); }
.chip input:checked + span::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--ocker); }
.chip input:focus-visible + span { outline: 3px solid var(--ocker); outline-offset: 2px; }

.feld input, .feld textarea {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--tinte); background: var(--hell);
  border: 1.5px solid transparent; border-radius: 14px; padding: 0.75rem 0.95rem; resize: vertical;
}
.feld input:focus, .feld textarea:focus { outline: 3px solid var(--ocker); outline-offset: 1px; }
.feld input::placeholder, .feld textarea::placeholder { color: var(--grau); }
.felder-zwei { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.6rem; }
@media (max-width: 560px) { .felder-zwei { grid-template-columns: minmax(0, 1fr); } }

.vorschau { position: sticky; top: calc(var(--kopf-hoehe) + 1.5rem); background: var(--petrol-tief); border-radius: 28px; padding: 1.4rem 1.25rem 1.5rem; }
.vorschau__titel { font-weight: 650; color: #fff; margin: 0 0 0.9rem; }
.vorschau .blase { max-width: 100%; display: block; min-height: 7rem; white-space: pre-line; overflow-wrap: anywhere; }
.vorschau__hinweis { font-size: 0.95rem; margin: 0.9rem 0 1.2rem; }
.vorschau .knoepfe { flex-direction: column; align-items: stretch; }
.vorschau .klein { font-size: 0.9rem; margin: 1rem 0 0; }
@media (max-width: 900px) { .vorschau { position: static; } }

/* ---------- Ueber mich ---------- */
.person { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.person__bild { margin: 0; max-width: 24rem; }
.person__bild img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: 16px; }
.person__bild figcaption { font-size: 0.95rem; color: var(--grau); padding-top: 0.6rem; }
@media (max-width: 760px) { .person { grid-template-columns: minmax(0, 1fr); } .person__bild { max-width: 18rem; } }

.werdegang { list-style: none; margin: 1.5rem 0 2rem; padding: 0; border-left: 2px solid var(--ocker); }
.werdegang li { position: relative; padding: 0 0 1.2rem 1.6rem; }
.werdegang li::before { content: ""; position: absolute; left: -7px; top: 0.5em; width: 12px; height: 12px; border-radius: 50%; background: var(--mineral); border: 2px solid var(--ocker); }
.werdegang time { display: block; font-weight: 700; color: var(--petrol); font-variant-numeric: tabular-nums; }
.werdegang p { margin: 0; max-width: 34em; }

/* ---------- Taetigkeitsgebiet ---------- */
.gebiet { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
@media (max-width: 860px) { .gebiet { grid-template-columns: minmax(0, 1fr); } }
.karte { width: 100%; height: auto; }
.karte text { font-family: var(--text); font-size: 15px; fill: var(--tinte); }
.karte .ort { fill: var(--petrol); }
.karte .heim { fill: var(--ocker); stroke: var(--petrol); stroke-width: 2.5; }
.karte .heim-ring { fill: none; stroke: var(--ocker); stroke-width: 1.5; opacity: 0.55; }
.karte .fluss { fill: none; stroke: #7fa3b3; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.karte .region { font-family: var(--display); font-weight: 600; font-size: 17px; fill: var(--grau); }
.karte .hinweis { font-size: 12px; fill: var(--grau); }
.karte .strasse { fill: none; stroke: var(--grau); stroke-width: 1.2; stroke-dasharray: 3 5; opacity: 0.7; }
.orte { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.orte li { padding: 0.3rem 0.85rem; border-radius: 999px; background: var(--mineral); font-size: 1rem; }

/* ---------- Fragen ---------- */
.fragen { max-width: 52rem; border-top: 1px solid var(--linie); }
.fragen details { border-bottom: 1px solid var(--linie); }
.fragen summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.15rem 0; font-family: var(--display); font-stretch: 90%; font-weight: 650; font-size: 1.25rem; color: var(--petrol); letter-spacing: -0.01em;
}
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after {
  content: ""; flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 1.5px solid var(--linie);
  background: linear-gradient(var(--petrol), var(--petrol)) center / 0.75rem 2px no-repeat, linear-gradient(var(--petrol), var(--petrol)) center / 2px 0.75rem no-repeat;
}
.fragen details[open] summary::after { background: linear-gradient(var(--petrol), var(--petrol)) center / 0.75rem 2px no-repeat; }
.fragen details > div { padding: 0 0 1.25rem; }
.fragen details p { margin: 0 0 0.8rem; }

/* ---------- Schluss-Kontakt ---------- */
.schluss { background: var(--petrol-tief); color: var(--petrol-text); padding: var(--abstand) 0; }
.schluss h2 { color: #fff; font-size: clamp(2.4rem, 5.4vw, 4.2rem); max-width: 14em; }
.schluss a:not(.knopf) { color: #fff; }
.schluss :focus-visible { outline-color: var(--ocker); }
.schluss__raster { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: end; }
@media (max-width: 860px) { .schluss__raster { grid-template-columns: minmax(0, 1fr); } }
.schluss__intro { font-size: 1.2rem; margin-bottom: 1.8rem; }
.kontaktwege { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--linie-dunkel); }
.kontaktwege li { border-bottom: 1px solid var(--linie-dunkel); }
.kontaktwege a, .kontaktwege span.zeile { display: flex; align-items: center; gap: 0.8rem; padding: 0.9rem 0; text-decoration: none; font-size: 1.15rem; font-weight: 600; }
.kontaktwege a:hover { text-decoration: underline; }
.kontaktwege svg { width: 1.3em; height: 1.3em; flex: none; color: var(--ocker); }
.kontaktwege small { margin-left: auto; font-size: 0.95rem; font-weight: 400; color: var(--petrol-text); }
.adresse { font-style: normal; margin-top: 1.5rem; line-height: 1.6; }
.adresse strong { color: #fff; }

/* ---------- Fuss ---------- */
.fuss { background: var(--petrol-tief); color: var(--petrol-text); border-top: 1px solid var(--linie-dunkel); padding: 2rem 0; font-size: 1rem; }
.fuss__raster { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 3rem; }
.fuss p { margin: 0; }
.fuss ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.25rem; }
.fuss a { color: #fff; }
.fuss :focus-visible { outline-color: var(--ocker); }

/* ---------- Leiste (Handy) ---------- */
.leiste { display: none; }
@media (max-width: 760px) {
  .leiste {
    display: flex; gap: 0.5rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
    background: rgba(248, 249, 247, 0.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-top: 1px solid var(--linie); transition: transform 0.2s;
  }
  .leiste .knopf { flex: 1; min-height: 3.1rem; padding: 0.6rem 0.8rem; }
  .leiste .knopf--wa { flex: 1.6; }
  .leiste.ist-weg { transform: translateY(110%); }
  .kopf__wa { display: none; }
  .fakten { gap: 0.35rem 1.5rem; margin-top: 1.75rem; }
  body { padding-bottom: 4.6rem; }
}

/* ---------- Unterseiten ---------- */
.seitenkopf { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem); }
.seitenkopf h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
.seitenkopf p { font-size: 1.2rem; color: var(--grau); max-width: 36em; }

.sprung { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sprung a { display: inline-flex; align-items: center; min-height: 2.6rem; padding: 0.4rem 1.05rem; border-radius: 999px; border: 1.5px solid var(--linie); text-decoration: none; font-weight: 600; color: var(--petrol); background: var(--hell); }
.sprung a:hover { border-color: var(--petrol); }

.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 1rem; }
.galerie figure { margin: 0; }
.galerie button { display: block; width: 100%; padding: 0; border: 0; background: var(--mineral-dunkel); border-radius: 16px; overflow: hidden; cursor: zoom-in; }
.galerie button img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.3s; }
.galerie button:hover img { transform: scale(1.03); }
.galerie figcaption { font-size: 0.95rem; color: var(--grau); padding: 0.5rem 0.2rem 0; }
.galerie--hoch button img { aspect-ratio: 3 / 4; }
@media (max-width: 560px) {
  .galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem 0.6rem; }
  .galerie button { border-radius: 12px; }
  .galerie figcaption { font-size: 0.85rem; line-height: 1.35; }
}

.anstoss {
  margin-top: clamp(2rem, 4vw, 3rem); padding: 1.25rem 1.5rem; border-radius: 16px; background: var(--hell);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; border: 1px solid var(--linie);
}
.abschnitt--hell .anstoss { background: var(--mineral); }
.anstoss p { margin: 0; font-family: var(--display); font-stretch: 90%; font-weight: 650; font-size: 1.25rem; color: var(--petrol); letter-spacing: -0.01em; }

dialog.leuchtkasten { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1400px); max-height: 96vh; }
dialog.leuchtkasten::backdrop { background: rgba(15, 42, 53, 0.94); }
dialog.leuchtkasten figure { margin: 0; display: grid; gap: 0.6rem; justify-items: center; }
dialog.leuchtkasten img { max-height: 84vh; width: auto; max-width: 96vw; border-radius: 12px; }
dialog.leuchtkasten figcaption { color: var(--petrol-text); font-size: 1rem; text-align: center; max-width: 50rem; }
dialog.leuchtkasten .schliessen {
  position: fixed; top: 1rem; right: 1rem; background: #fff; color: var(--petrol); border: 0; border-radius: 999px;
  min-height: 2.75rem; padding: 0.5rem 1.1rem; font: inherit; font-weight: 650; cursor: pointer;
}

.kontakt-wa { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 2.5rem; align-items: center; background: var(--hell); border-radius: 28px; padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--linie); }
.kontakt-wa h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.kontakt-wa p { color: var(--grau); }
.qr { margin: 0; text-align: center; }
.qr img { width: 180px; height: 180px; padding: 12px; background: #fff; border-radius: 16px; border: 1px solid var(--linie); }
.qr figcaption { font-size: 0.9rem; color: var(--grau); margin-top: 0.5rem; max-width: 12rem; }
@media (max-width: 700px) { .kontakt-wa { grid-template-columns: minmax(0, 1fr); } .qr, .nur-gross { display: none; } }

.kontakt-raster { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4.5rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
@media (max-width: 860px) { .kontakt-raster { grid-template-columns: minmax(0, 1fr); } }
.kontakt-raster .kontaktwege { border-top-color: var(--linie); }
.kontakt-raster .kontaktwege li { border-bottom-color: var(--linie); }
.kontakt-raster .kontaktwege a { color: var(--petrol); }
.kontakt-raster .kontaktwege svg { color: var(--petrol); }
.kontakt-raster .kontaktwege small { color: var(--grau); }
.kontakt-raster .adresse strong { color: var(--petrol); }

.textseite { padding: clamp(2.5rem, 6vw, 5rem) 0 var(--abstand); }
.textseite .inhalt { max-width: 44rem; }
.textseite h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
.textseite h2 { font-size: 1.55rem; margin-top: 2.2em; letter-spacing: -0.015em; }
.textseite h3 { font-size: 1.2rem; margin-top: 1.6em; }
.textseite ul { max-width: 38em; }
.textseite address { font-style: normal; }
.textseite .platzhalter { background: rgba(212, 162, 31, 0.22); padding: 0 0.25em; border-radius: 3px; }

/* ---------- Anfrage-Assistent (anfrage.html) ---------- */
.anfrage-seite { padding: clamp(2rem, 5vw, 4rem) 0 var(--abstand); }
.anfrage-raster {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto 1fr;
  grid-template-areas: "kopf app" "extra app"; gap: 0 clamp(2rem, 5vw, 4.5rem); align-items: start;
}
.anfrage-kopf { grid-area: kopf; } .anfrage-extra { grid-area: extra; } .anfrage-app { grid-area: app; }
@media (max-width: 900px) {
  .anfrage-raster { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "kopf" "app" "extra"; row-gap: 1.5rem; }
  .anfrage-kopf .hero__intro { margin-bottom: 0; }
}
.anfrage-raster h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
.anfrage-raster .hero__intro { margin-bottom: 1.5rem; }
.anfrage-direkt { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--linie); }
.anfrage-direkt p { margin: 0 0 0.9rem; color: var(--grau); }

.assistent { max-width: none; justify-self: stretch; display: flex; flex-direction: column; }
.assistent .chat__verlauf { min-height: 20rem; max-height: min(58vh, 34rem); overflow-y: auto; overscroll-behavior: contain; align-content: start; }
.assistent .blase { white-space: pre-line; animation: blase-rein 0.3s ease-out both; }
.assistent .blase--aus { max-width: 80%; }
.assistent .blase--ein { padding: 0.65rem 0.9rem; }
.blase--liste { max-width: 100%; background: #fff; line-height: 1.6; }
.blase--tippt { display: inline-flex; gap: 5px; padding: 0.8rem 0.9rem; }
.blase--tippt i { width: 7px; height: 7px; border-radius: 50%; background: var(--grau); animation: tippen 1s infinite; }
.blase--tippt i:nth-child(2) { animation-delay: 0.15s; }
.blase--tippt i:nth-child(3) { animation-delay: 0.3s; }
@keyframes tippen { 0%, 60%, 100% { opacity: 0.25; } 30% { opacity: 1; } }

.assistent__eingabe { background: var(--hell); border-top: 1px solid var(--linie); padding: 1rem 1rem 1.15rem; display: grid; gap: 0.75rem; }
.assistent__eingabe:empty { display: none; }
.wahlen { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.wahl {
  font: inherit; font-weight: 600; font-size: 1rem; min-height: 2.75rem; padding: 0.45rem 1rem; border-radius: 999px;
  border: 1.5px solid var(--linie); background: #fff; color: var(--petrol); cursor: pointer;
}
.wahl:hover { border-color: var(--petrol); }
.wahl[aria-pressed="true"] { background: var(--petrol); border-color: var(--petrol); color: #fff; }
.eingabe-label { font-weight: 650; font-size: 0.95rem; color: var(--petrol); }
.eingabe-zeile { display: flex; gap: 0.5rem; align-items: flex-end; }
.eingabe-zeile input, .eingabe-zeile textarea {
  flex: 1; min-width: 0; font: inherit; font-size: 1.05rem; padding: 0.7rem 0.9rem; border-radius: 14px;
  border: 1.5px solid var(--linie); background: #fff; color: var(--tinte); resize: vertical;
}
.eingabe-zeile input:focus, .eingabe-zeile textarea:focus { outline: 3px solid var(--petrol); outline-offset: 1px; }
.eingabe-aktionen { display: flex; flex-wrap: wrap; gap: 0.5rem 0.9rem; align-items: center; }
.knopf--petrol { background: var(--petrol); border-color: var(--petrol); color: #fff; }
.knopf--petrol:hover { background: var(--petrol-tief); border-color: var(--petrol-tief); color: #fff; }
.link-knopf { background: none; border: 0; padding: 0.5rem 0.2rem; font: inherit; font-weight: 600; color: var(--petrol); text-decoration: underline; text-underline-offset: 0.15em; cursor: pointer; }
.link-knopf:hover { color: var(--tinte); }
.vorschaubilder { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.vorschaubilder img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.blase .vorschaubilder { margin-top: 0.5rem; }
.blase .vorschaubilder img { width: 52px; height: 52px; }
.einwilligung { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.95rem; line-height: 1.45; }
.einwilligung input { width: 1.25rem; height: 1.25rem; margin: 0.12rem 0 0; accent-color: var(--petrol); flex: none; }
.fehler-text { color: #9b2c1f; font-weight: 600; font-size: 0.95rem; margin: 0; }

/* Formular ohne JavaScript */
.formular { display: grid; gap: 1.25rem; background: var(--hell); border-radius: 28px; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--linie); }
.formular fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.formular legend, .formular label > span { display: block; font-weight: 650; color: var(--petrol); margin-bottom: 0.4rem; }
.formular input[type="text"], .formular input[type="tel"], .formular input[type="email"], .formular textarea {
  width: 100%; font: inherit; padding: 0.7rem 0.9rem; border-radius: 14px; border: 1.5px solid var(--linie); background: #fff; color: var(--tinte);
}
.formular .optionen { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; }
.formular .optionen label { display: flex; gap: 0.4rem; align-items: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hero__alt { margin: 1rem 0 0; font-size: 1rem; color: var(--grau); }
.formular .einwilligung span { display: inline; font-weight: 400; color: var(--tinte); margin: 0; }
.assistent__eingabe > .wa-link, .assistent__eingabe > .knopf { justify-self: start; }
