/* MK Sanierungen – Stylesheet
   Farben und Schriften stehen oben als Variablen und lassen sich dort zentral ändern. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/BricolageGrotesque-Bold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/InstrumentSans-Regular.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/InstrumentSans-Bold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

:root {
  /* Farben aus dem Logo */
  --marine: #00457c;
  --marine-tief: #00315a;
  --nacht: #00213d;
  --himmel: #059de3;
  --himmel-hell: #5cc4f5;
  /* Flächen */
  --tinte: #0c2236;
  --text: #33475a;
  --porzellan: #f3f7fa;
  --dunst: #e2f0fa;
  --fuge: #c9d5e0;
  --weiss: #ffffff;

  --titel: "Bricolage Grotesque", "Arial Narrow", Arial, sans-serif;
  --lauf: "Instrument Sans", "Segoe UI", Arial, sans-serif;

  --rand: clamp(20px, 5vw, 48px);
  --breite: 1240px;
  --radius: 4px;
  --abstand: clamp(72px, 10vw, 136px);
  --kopf-hoehe: 76px;
  --sanft: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--kopf-hoehe);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--weiss);
  color: var(--text);
  font-family: var(--lauf);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }

h1, h2, h3 {
  margin: 0;
  color: var(--tinte);
  font-family: var(--titel);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.75rem, 7.2vw, 5.5rem); letter-spacing: -0.035em; line-height: 0.98; }
h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
h3 { font-size: 1.3125rem; line-height: 1.2; letter-spacing: -0.01em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--marine); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--himmel); }

:focus-visible {
  outline: 3px solid var(--himmel);
  outline-offset: 3px;
  border-radius: 2px;
}

.rahmen {
  width: 100%;
  max-width: calc(var(--breite) + 2 * var(--rand));
  margin-inline: auto;
  padding-inline: var(--rand);
}

.nur-sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--marine); color: var(--weiss);
  padding: 10px 16px; border-radius: var(--radius);
}
.skip:focus { top: 12px; color: var(--weiss); }

.gross {
  font-size: clamp(1.1875rem, 2vw, 1.4375rem);
  line-height: 1.45;
  color: var(--tinte);
}
.leise { opacity: 0.7; }

/* ---------- Icons ---------- */
.icon-vorrat { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  flex: none;
  width: 1.35em; height: 1.35em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-kachel {
  display: inline-flex; align-items: center; justify-content: center;
  flex: none;
  width: 52px; height: 52px;
  border-radius: var(--radius);
  background: var(--dunst);
  color: var(--marine);
  transition: background-color 0.25s, color 0.25s, transform 0.25s var(--sanft);
}
.icon-kachel .icon { width: 28px; height: 28px; }

/* ---------- Logo-Auftakt beim ersten Aufruf ---------- */
.auftakt { display: none; }
.intro { --warte: 1.7s; }           /* Text im Banner wartet, bis der Vorhang aufgeht */
.intro .auftakt {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: var(--weiss);
  animation: auftakt-weg 0.75s cubic-bezier(0.7, 0, 0.2, 1) 1.5s forwards;
}
.auftakt__marke { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; padding-bottom: 20px; }
.auftakt__marke img {
  width: auto; height: clamp(104px, 17vw, 164px);
  animation: auftakt-logo 0.85s var(--sanft) 0.1s both;
}
.auftakt__marke span {
  color: var(--marine);
  font: 700 clamp(1.625rem, 4.4vw, 2.5rem)/1 var(--titel);
  letter-spacing: -0.02em;
  animation: einblenden 0.55s var(--sanft) 0.6s both;
}
/* blaue Linie, die sich unter dem Namen aufzieht */
.auftakt__marke::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 4px;
  background: var(--himmel);
  transform-origin: left;
  animation: auftakt-linie 0.6s var(--sanft) 0.8s both;
}
/* Logo wischt schräg ins Bild – wie die Dachlinie im Logo */
@keyframes auftakt-logo {
  from { clip-path: polygon(-40% 0, -40% 0, -70% 100%, -70% 100%); transform: translateY(18px) scale(0.9); }
  to { clip-path: polygon(-40% 0, 140% 0, 110% 100%, -70% 100%); transform: none; }
}
@keyframes auftakt-linie { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes auftakt-weg { to { transform: translateY(-100%); visibility: hidden; } }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px;
  padding: 12px 26px;
  border: 2px solid var(--marine);
  border-radius: var(--radius);
  background: var(--marine);
  color: var(--weiss);
  font: 700 1.0625rem/1.2 var(--lauf);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s, border-color 0.18s, color 0.18s, transform 0.18s var(--sanft), box-shadow 0.18s;
}
.knopf:hover {
  background: var(--marine-tief); border-color: var(--marine-tief); color: var(--weiss);
  transform: translateY(-2px);
  box-shadow: 0 14px 24px -14px rgba(0, 33, 61, 0.7);
}
.knopf:active { transform: translateY(0); box-shadow: none; }
.knopf--linie { background: transparent; color: var(--marine); }
.knopf--linie:hover { background: var(--marine); border-color: var(--marine); color: var(--weiss); }
.knopf--himmel { background: var(--himmel); border-color: var(--himmel); color: var(--nacht); }
.knopf--himmel:hover { background: var(--himmel-hell); border-color: var(--himmel-hell); color: var(--nacht); }
.knopf--hell { background: transparent; border-color: rgba(255, 255, 255, 0.55); color: var(--weiss); }
.knopf--hell:hover { background: var(--weiss); border-color: var(--weiss); color: var(--marine); }
.knopf--klein { min-height: 44px; padding: 8px 18px; font-size: 1rem; }
.knopf--voll { width: 100%; }
.icon--pfeil { transition: transform 0.2s var(--sanft); }
.knopf:hover .icon--pfeil,
.pfeil-link:hover .icon--pfeil { transform: translateX(5px); }

.pfeil-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700;
}

/* ---------- Kopfzeile ---------- */
.kopf {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 0 transparent;
  transition: box-shadow 0.25s;
}
.kopf.ist-gescrollt { box-shadow: 0 10px 30px -18px rgba(0, 33, 61, 0.55); }
.kopf__innen {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--kopf-hoehe);
  gap: 24px;
}

.marke {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.marke img { width: auto; height: 40px; }
.marke__name {
  color: var(--marine);
  font: 700 1.375rem/1 var(--titel);
  letter-spacing: -0.02em;
}

.menue { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); }
.menue a:not(.knopf) {
  position: relative;
  color: var(--tinte);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 10px 0;
}
.menue a:not(.knopf)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px;
  height: 3px;
  background: var(--himmel);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s var(--sanft);
}
.menue a:not(.knopf):hover,
.menue a.ist-aktiv:not(.knopf) { color: var(--marine); }
.menue a:not(.knopf):hover::after,
.menue a.ist-aktiv:not(.knopf)::after { transform: scaleX(1); }

.menue-knopf {
  display: none;
  width: 48px; height: 48px;
  border: 1px solid var(--fuge); border-radius: var(--radius);
  background: var(--weiss);
  cursor: pointer;
  align-items: center; justify-content: center;
}
.menue-knopf__striche,
.menue-knopf__striche::before,
.menue-knopf__striche::after {
  display: block; width: 22px; height: 2px;
  background: var(--marine);
  transition: transform 0.2s, background-color 0.2s;
}
.menue-knopf__striche { position: relative; }
.menue-knopf__striche::before,
.menue-knopf__striche::after { content: ""; position: absolute; left: 0; }
.menue-knopf__striche::before { top: -7px; }
.menue-knopf__striche::after { top: 7px; }
.menue-knopf[aria-expanded="true"] .menue-knopf__striche { background: transparent; }
.menue-knopf[aria-expanded="true"] .menue-knopf__striche::before { transform: translateY(7px) rotate(45deg); }
.menue-knopf[aria-expanded="true"] .menue-knopf__striche::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .menue-knopf { display: inline-flex; }
  .menue {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--rand) 24px;
    background: var(--weiss);
    border-top: 1px solid var(--fuge);
    box-shadow: 0 24px 40px -24px rgba(0, 49, 90, 0.45);
    display: none;
  }
  .menue.ist-offen { display: flex; }
  .menue a:not(.knopf) {
    padding: 16px 0; font-size: 1.1875rem;
    border-bottom: 1px solid var(--fuge);
  }
  .menue a:not(.knopf)::after { display: none; }
  .menue .knopf { margin-top: 20px; min-height: 54px; }
}

/* ---------- Start ---------- */
.start {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex; align-items: center;
  min-height: min(88vh, 860px);
  padding-block: clamp(56px, 8vw, 120px);
  color: #cfe3f3;
  background: var(--nacht);
}
/* Bühne mit den Bannerfotos */
.start__buehne { position: absolute; inset: 0; z-index: -2; }
.start__buehne img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 62% 50%;
  opacity: 0;
  transition: opacity 1.8s ease;
}
.start__buehne img.ist-aktiv { opacity: 1; animation: zoom 14s ease-out both; }
@keyframes zoom { from { transform: scale(1.09); } to { transform: scale(1); } }
/* Blauer Verlauf, damit der Text lesbar bleibt, plus feines Fliesenraster */
.start__buehne::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px) center top / 96px 96px,
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px) center top / 96px 96px,
    linear-gradient(90deg, rgba(0, 33, 61, 0.96) 0%, rgba(0, 49, 90, 0.9) 34%, rgba(0, 49, 90, 0.45) 62%, rgba(0, 33, 61, 0.12) 100%);
}
/* Dachschräge aus dem Logo */
.start::before,
.start::after {
  content: ""; position: absolute; z-index: -1;
  top: -10%; bottom: -10%;
  transform: skewX(-38deg);
  transform-origin: bottom;
}
.start::before { left: 50%; width: clamp(50px, 7vw, 120px); background: rgba(5, 157, 227, 0.3); }
.start::after { left: calc(50% + clamp(62px, 8.6vw, 146px)); width: clamp(8px, 1.1vw, 18px); background: rgba(255, 255, 255, 0.22); }

.start__raster { display: block; }
.start__text { max-width: 660px; }
.start h1 { color: var(--weiss); font-size: clamp(2.6rem, 6.6vw, 5.25rem); text-shadow: 0 2px 30px rgba(0, 33, 61, 0.5); }
.zeile { display: block; overflow: hidden; padding-bottom: 0.08em; }
.zeile > span { display: block; white-space: nowrap; }

.start__lead {
  max-width: 34ch;
  margin-top: clamp(20px, 2.6vw, 32px);
  font-size: clamp(1.1875rem, 1.9vw, 1.4375rem);
  line-height: 1.45;
  color: #e3eef8;
}
.start__knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 3vw, 36px); }

.eckdaten {
  display: flex; flex-wrap: wrap; gap: 18px 44px;
  margin: clamp(32px, 4.5vw, 56px) 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}
.eckdaten > div {
  display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center;
}
.eckdaten .icon { grid-row: span 2; width: 30px; height: 30px; color: var(--himmel-hell); }
.eckdaten dt { font-size: 0.9375rem; color: #a9cbe6; }
.eckdaten dd { margin: 0; font-weight: 700; color: var(--weiss); }

.start__symbol {
  position: absolute; right: 14px; top: 10px;
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.75rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

@media (max-width: 900px) {
  .start { min-height: 0; }
  .start__buehne::after {
    background: linear-gradient(180deg, rgba(0, 33, 61, 0.9) 0%, rgba(0, 49, 90, 0.82) 55%, rgba(0, 33, 61, 0.9) 100%);
  }
  .start__lead { max-width: 40ch; }
  .start::before { left: 74%; }
  .start::after { left: calc(74% + 66px); }
}

/* Auftakt beim Laden (nur mit JavaScript, sonst alles sofort sichtbar) */
.js .zeile > span { transform: translateY(110%); animation: zeile-hoch 0.9s var(--sanft) var(--warte, 0s) forwards; }
.js .zeile:nth-child(2) > span { animation-delay: calc(var(--warte, 0s) + 0.12s); }
.js .start__lead,
.js .start__knoepfe,
.js .eckdaten { opacity: 0; animation: einblenden 0.8s var(--sanft) forwards; }
.js .start__lead { animation-delay: calc(var(--warte, 0s) + 0.35s); }
.js .start__knoepfe { animation-delay: calc(var(--warte, 0s) + 0.5s); }
.js .eckdaten { animation-delay: calc(var(--warte, 0s) + 0.65s); }

@keyframes zeile-hoch { to { transform: translateY(0); } }
@keyframes einblenden { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Laufband ---------- */
.laufband {
  overflow: hidden;
  background: var(--himmel);
  color: var(--nacht);
  font: 700 clamp(1.0625rem, 1.8vw, 1.375rem)/1 var(--titel);
  letter-spacing: -0.01em;
}
.laufband__spur {
  display: flex; width: max-content;
  animation: laufen 38s linear infinite;
}
.laufband span {
  display: inline-flex; align-items: center;
  padding: 18px 0;
  white-space: nowrap;
}
/* Fenster-Motiv aus dem Logo als Trenner */
.laufband span::after {
  content: ""; flex: none;
  width: 14px; height: 14px; margin-inline: clamp(22px, 3vw, 40px);
  background:
    linear-gradient(var(--nacht), var(--nacht)) 0 0 / 6px 6px no-repeat,
    linear-gradient(var(--nacht), var(--nacht)) 100% 0 / 6px 6px no-repeat,
    linear-gradient(var(--nacht), var(--nacht)) 0 100% / 6px 6px no-repeat,
    linear-gradient(var(--nacht), var(--nacht)) 100% 100% / 6px 6px no-repeat;
}
@keyframes laufen { to { transform: translateX(-50%); } }

/* ---------- Vorher/Nachher-Vergleich ---------- */
.vergleich {
  --pos: 50%;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  border-radius: var(--radius);
  background: var(--dunst);
  box-shadow: 0 0 0 1px var(--fuge), 0 40px 60px -40px rgba(0, 49, 90, 0.45);
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.vergleich img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}
.vergleich__vorher { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }

.vergleich__schild {
  position: absolute; top: 14px;
  padding: 6px 12px;
  border-radius: var(--radius);
  background: rgba(12, 34, 54, 0.82);
  color: var(--weiss);
  font-size: 0.875rem; font-weight: 700; line-height: 1.2;
  pointer-events: none;
  transition: opacity 0.15s;
}
.vergleich__schild--vorher { left: 14px; }
.vergleich__schild--nachher { right: 14px; background: var(--himmel); color: var(--nacht); }
.vergleich[data-seite="nachher"] .vergleich__schild--vorher,
.vergleich[data-seite="vorher"] .vergleich__schild--nachher { opacity: 0; }

.vergleich__griff {
  position: absolute; top: 0; bottom: 0; left: var(--pos);
  width: 4px; margin-left: -2px;
  background: var(--weiss);
  box-shadow: 0 0 0 1px rgba(12, 34, 54, 0.18);
  pointer-events: none;
}
.vergleich__griff span {
  position: absolute; top: 50%; left: 50%;
  width: 56px; height: 56px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--weiss);
  box-shadow: 0 6px 18px rgba(12, 34, 54, 0.35);
}
.vergleich__griff span::before,
.vergleich__griff span::after {
  content: ""; position: absolute; top: 50%;
  width: 10px; height: 10px;
  border: solid var(--marine); border-width: 3px 3px 0 0;
}
.vergleich__griff span::before { left: 15px; transform: translateY(-50%) rotate(-135deg); }
.vergleich__griff span::after { right: 15px; transform: translateY(-50%) rotate(45deg); }
/* pulsierender Ring, bis der Regler zum ersten Mal bewegt wurde */
.vergleich__griff::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 56px; height: 56px; margin: -28px 0 0 -28px;
  border-radius: 50%;
  border: 2px solid var(--weiss);
  animation: puls 2s ease-out infinite;
}
.vergleich.ist-benutzt .vergleich__griff::after { display: none; }
@keyframes puls { from { transform: scale(1); opacity: 0.9; } to { transform: scale(1.9); opacity: 0; } }

.vergleich__regler {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  margin: 0; opacity: 0;
  cursor: ew-resize;
  pointer-events: none; /* Ziehen übernimmt das Skript, der Regler dient der Tastatur */
}
.vergleich:has(.vergleich__regler:focus-visible) {
  outline: 3px solid var(--himmel);
  outline-offset: 3px;
}
.vergleich.ist-auftakt .vergleich__vorher,
.vergleich.ist-auftakt .vergleich__griff { transition: clip-path 1.2s cubic-bezier(0.65, 0, 0.2, 1), left 1.2s cubic-bezier(0.65, 0, 0.2, 1); }

/* ---------- Abschnitte ---------- */
.abschnitt { padding-block: var(--abstand); }
.abschnitt--hell { background: var(--porzellan); }
.abschnitt--dunst { background: var(--dunst); }

.titelzeile {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: 12px 40px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.titelzeile p { max-width: 40ch; margin: 0; }

/* Einblenden beim Scrollen (nur mit JavaScript) */
.js [data-zeig] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--sanft), transform 0.7s var(--sanft);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-zeig].ist-da { opacity: 1; transform: none; }

/* Fliesen behalten beim Einblenden ihren Farbwechsel */
.js .fliese[data-zeig] {
  transition: opacity 0.7s var(--sanft), transform 0.7s var(--sanft), background-color 0.3s, color 0.3s;
  transition-delay: calc(var(--i, 0) * 90ms), calc(var(--i, 0) * 90ms), 0s, 0s;
}

/* ---------- Über uns ---------- */
.ueber {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 5vw, 80px);
}
.ueber__kopf h2 { margin-bottom: clamp(18px, 2.4vw, 28px); }
.ueber__text { align-self: end; max-width: 52ch; }

.zusagen {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: clamp(16px, 3vw, 40px) 0 0; padding: 0;
  list-style: none;
}
.zusagen li {
  padding: clamp(22px, 2.6vw, 32px);
  background: var(--porzellan);
  border-radius: var(--radius);
  border-top: 3px solid var(--himmel);
}
.zusagen .icon-kachel { margin-bottom: 18px; background: var(--marine); color: var(--weiss); }
.zusagen h3 { margin-bottom: 6px; }

@media (max-width: 800px) {
  .ueber { grid-template-columns: 1fr; }
  .zusagen { grid-template-columns: 1fr; }
}

/* ---------- Leistungen: Fliesenwand ---------- */
.fliesen {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;                      /* die Fuge */
  margin: 0; padding: 6px;
  list-style: none;
  background: var(--fuge);
  border-radius: var(--radius);
}
.fliese {
  position: relative;
  display: flex; flex-direction: column;
  min-height: 230px;
  padding: clamp(20px, 2.2vw, 28px);
  background: var(--weiss);
  border-radius: 2px;
  transition: background-color 0.3s, color 0.3s, opacity 0.7s var(--sanft), transform 0.7s var(--sanft);
}
.fliese h3 { margin: 22px 0 10px; transition: color 0.3s; }
.fliese p { font-size: 1rem; line-height: 1.5; }

/* Fliese färbt sich beim Überfahren */
@media (hover: hover) {
  .fliese:not(.fliese--gross):hover { background: var(--marine); color: #d5e6f4; }
  .fliese:not(.fliese--gross):hover h3 { color: var(--weiss); }
  .fliese:not(.fliese--gross):hover .icon-kachel { background: var(--himmel); color: var(--nacht); transform: rotate(-6deg) scale(1.06); }
  .fliese--frage:hover a { color: var(--weiss); }
}

.fliese--gross {
  grid-column: span 2; grid-row: span 2;
  overflow: hidden;
  padding: clamp(26px, 3.4vw, 44px);
  background: linear-gradient(150deg, var(--marine), var(--marine-tief));
  color: #d5e6f4;
}
.fliese--gross .icon-kachel { background: var(--himmel); color: var(--nacht); width: 64px; height: 64px; margin-bottom: auto; }
.fliese--gross h3 { margin-top: 40px; }
.fliese--gross .icon-kachel .icon { width: 34px; height: 34px; }
.fliese--gross h3 {
  color: var(--weiss);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.fliese--gross p { font-size: 1.125rem; max-width: 40ch; }
/* großes Zeichen im Hintergrund */
.fliese__zeichen {
  position: absolute; right: -6%; top: -8%;
  width: 62%; height: auto; aspect-ratio: 1;
  fill: none; stroke: rgba(255, 255, 255, 0.09);
  stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round;
  pointer-events: none;
}

.haken { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.haken li { position: relative; padding-left: 28px; color: var(--weiss); font-weight: 700; }
.haken li::before {
  content: ""; position: absolute; left: 2px; top: 0.36em;
  width: 14px; height: 8px;
  border: solid var(--himmel-hell); border-width: 0 0 3px 3px;
  transform: rotate(-45deg);
}

.fliese--frage { background: var(--dunst); }
.fliese--frage .icon-kachel { background: var(--weiss); }
.fliese--frage a { margin-top: auto; padding-top: 14px; }

@media (max-width: 1000px) {
  .fliesen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .fliesen { grid-template-columns: 1fr; }
  .fliese { min-height: 0; }
  .fliese--gross { grid-column: auto; grid-row: auto; }
}

/* ---------- Vorher/Nachher-Projekte ---------- */
.projekte {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
}
.projekt { margin: 0; }
.projekt figcaption { margin-top: 20px; }
.projekt figcaption h3 { margin-bottom: 6px; font-size: 1.5rem; }
.projekt figcaption p { max-width: 46ch; }
.vergleich--hoch { aspect-ratio: 4 / 5; }

/* Umschalter zwischen zwei Fotos */
.wechsel {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: var(--dunst);
  box-shadow: 0 0 0 1px var(--fuge), 0 40px 60px -40px rgba(0, 49, 90, 0.45);
}
.wechsel img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.7s ease, transform 0.9s var(--sanft);
}
.wechsel img.ist-aktiv { opacity: 1; transform: none; }
.wechsel__knoepfe {
  position: absolute; left: 50%; bottom: 18px;
  display: flex; padding: 5px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(0, 33, 61, 0.86);
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.6);
}
.wechsel__knoepfe button {
  min-width: 108px; min-height: 44px;
  padding: 8px 20px;
  border: 0; border-radius: 999px;
  background: transparent; color: var(--weiss);
  font: 700 1rem/1 var(--lauf);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.wechsel__knoepfe button[aria-pressed="true"] { background: var(--himmel); color: var(--nacht); }
.wechsel__knoepfe button:focus-visible { outline-offset: 2px; }

@media (max-width: 760px) {
  .projekte { grid-template-columns: 1fr; gap: 44px; }
}

/* ---------- Referenzen: Galerie ---------- */
.galerie {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 0; padding: 6px;
  list-style: none;
  background: var(--fuge);
  border-radius: var(--radius);
}
.galerie__kachel {
  position: relative; display: block; overflow: hidden;
  width: 100%; padding: 0;
  aspect-ratio: 4 / 5;
  border: 0; border-radius: 2px;
  background: var(--dunst);
  cursor: zoom-in;
}
.galerie__kachel img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--sanft);
}
.galerie__kachel span {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 44px 16px 14px;
  background: linear-gradient(to top, rgba(0, 33, 61, 0.9), rgba(0, 33, 61, 0));
  color: var(--weiss);
  font: 700 1rem/1.25 var(--lauf);
  text-align: left;
}
.galerie__kachel:hover img { transform: scale(1.07); }
.galerie__kachel:focus-visible { outline-offset: -3px; }

@media (max-width: 900px) { .galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Großansicht */
.lichtkasten {
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  margin: 0; padding: 0;
  border: 0;
  background: rgba(0, 21, 40, 0.94);
  color: var(--weiss);
}
.lichtkasten[open] { display: flex; align-items: center; justify-content: center; }
.lichtkasten::backdrop { background: rgba(0, 21, 40, 0.6); }
.lichtkasten figure {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  margin: 0; padding: 60px clamp(56px, 8vw, 110px) 24px;
  max-height: 100vh;
}
.lichtkasten img {
  max-width: 100%; max-height: calc(100vh - 150px);
  width: auto; height: auto;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
}
.lichtkasten figcaption { font: 700 1.125rem/1.3 var(--lauf); text-align: center; }
.lichtkasten__zu,
.lichtkasten__pfeil {
  position: absolute;
  width: 52px; height: 52px;
  border: 0; border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.14); color: var(--weiss);
  cursor: pointer;
  transition: background-color 0.15s;
}
.lichtkasten__zu:hover,
.lichtkasten__pfeil:hover { background: var(--himmel); }
.lichtkasten__zu { top: 14px; right: 14px; }
.lichtkasten__zu::before,
.lichtkasten__zu::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 24px; height: 3px; margin: -1.5px 0 0 -12px;
  background: currentColor;
  transform: rotate(45deg);
}
.lichtkasten__zu::after { transform: rotate(-45deg); }
.lichtkasten__pfeil { top: 50%; right: clamp(6px, 2vw, 28px); margin-top: -26px; }
.lichtkasten__pfeil--zurueck { right: auto; left: clamp(6px, 2vw, 28px); }
.lichtkasten__pfeil::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 13px; height: 13px;
  border: solid currentColor; border-width: 3px 3px 0 0;
  transform: translate(-70%, -50%) rotate(45deg);
}
.lichtkasten__pfeil--zurueck::before { transform: translate(-30%, -50%) rotate(-135deg); }
@media (max-width: 600px) {
  .lichtkasten figure { padding-inline: 12px; }
  .lichtkasten__pfeil { top: auto; bottom: 18px; margin-top: 0; }
  .lichtkasten img { max-height: calc(100vh - 220px); }
  .lichtkasten figcaption { padding-inline: 64px; }
}

/* ---------- Ablauf ---------- */
.ablauf {
  position: relative; overflow: hidden; isolation: isolate;
  padding-block: var(--abstand);
  color: #cfe3f3;
  background-color: var(--nacht);
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 96px 96px;
}
.ablauf h2 { color: var(--weiss); margin-bottom: clamp(36px, 5vw, 64px); }
.schritte {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  margin: 0; padding: 0; list-style: none;
  counter-reset: schritt;
}
.schritte li { position: relative; counter-increment: schritt; }
.schritte__kopf {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 22px;
}
.schritte__kopf .icon-kachel { width: 64px; height: 64px; background: var(--himmel); color: var(--nacht); }
.schritte__kopf .icon-kachel .icon { width: 32px; height: 32px; }
.schritte__kopf::after {
  content: counter(schritt);
  color: rgba(255, 255, 255, 0.22);
  font: 700 4rem/0.8 var(--titel);
  letter-spacing: -0.04em;
}
/* Verbindungslinie zwischen den Schritten */
.schritte li:not(:last-child)::after {
  content: ""; position: absolute;
  top: 31px; left: 128px; right: calc(-1 * clamp(20px, 3vw, 40px) + 12px);
  border-top: 2px dashed rgba(92, 196, 245, 0.45);
}
.schritte h3 { color: var(--weiss); margin-bottom: 8px; }
.schritte p { font-size: 1rem; }

@media (max-width: 900px) {
  .schritte { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .schritte li:not(:last-child)::after { display: none; }
}
@media (max-width: 520px) {
  .schritte { grid-template-columns: 1fr; }
}

/* ---------- Bewertung ---------- */
.bewertung { text-align: center; }
.bewertung__sterne { display: flex; justify-content: center; gap: 8px; margin-bottom: 22px; color: var(--himmel); }
.bewertung__sterne .icon { width: 38px; height: 38px; fill: rgba(5, 157, 227, 0.16); }
.bewertung h2 { margin-bottom: 16px; }
.bewertung .gross { max-width: 46ch; margin-inline: auto; }
.bewertung__knoepfe { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(24px, 3vw, 36px); }
.bewertung__knoepfe .knopf--linie { background: var(--weiss); }
.bewertung__knoepfe .knopf--linie:hover { background: var(--marine); }

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.faq__kopf h2 { margin-bottom: 18px; }
.faq__kopf p { max-width: 30ch; margin-bottom: 22px; }
.faq__liste { display: grid; gap: 6px; }
.faq details {
  background: var(--porzellan);
  border-radius: var(--radius);
  border-left: 3px solid transparent;
  transition: border-color 0.2s, background-color 0.2s;
}
.faq details[open] { border-left-color: var(--himmel); background: var(--dunst); }
.faq summary {
  position: relative;
  padding: 22px 60px 22px 24px;
  color: var(--tinte);
  font: 700 1.1875rem/1.3 var(--lauf);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before,
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%;
  width: 18px; height: 3px; margin-top: -1.5px;
  background: var(--marine);
  transition: transform 0.25s var(--sanft);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover { color: var(--marine); }
.faq details p { max-width: 62ch; padding: 0 60px 24px 24px; }

@media (max-width: 800px) {
  .faq { grid-template-columns: 1fr; }
}

/* ---------- Kontakt ---------- */
.kontakt {
  position: relative; overflow: hidden; isolation: isolate;
  padding-block: var(--abstand);
  background: linear-gradient(160deg, var(--marine), var(--marine-tief));
  color: #d5e6f4;
}
.kontakt::before {
  content: ""; position: absolute; z-index: -1;
  top: -10%; bottom: -10%; left: 38%;
  width: clamp(50px, 8vw, 130px);
  background: rgba(5, 157, 227, 0.2);
  transform: skewX(-38deg);
}
.kontakt h2 { color: var(--weiss); margin-bottom: 18px; }
.kontakt .gross { color: var(--weiss); max-width: 30ch; }
.kontakt a { color: var(--weiss); }
.kontakt a:hover { color: #8fd3f7; }
.kontakt .formular a { color: var(--marine); }
.kontakt .formular a:hover { color: var(--himmel); }
.kontakt__raster {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.kontakt__telefon {
  display: inline-flex; align-items: center; gap: clamp(12px, 1.6vw, 20px);
  margin: clamp(20px, 3vw, 32px) 0 clamp(28px, 4vw, 44px);
  font: 700 clamp(1.75rem, 5vw, 3.5rem)/1 var(--titel);
  letter-spacing: -0.03em;
  text-decoration: none;
  white-space: nowrap;
}
.kontakt__telefon .icon-kachel { background: var(--himmel); color: var(--nacht); }
.kontakt__telefon:hover .icon-kachel { transform: rotate(-8deg) scale(1.08); }
.kontakt__liste {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 32px;
  margin: 0;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.kontakt__liste > div {
  display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-content: start;
}
.kontakt__liste .icon { grid-row: span 2; width: 26px; height: 26px; margin-top: 2px; color: var(--himmel-hell); }
.kontakt__liste dt { font-size: 0.9375rem; color: #a9cbe6; margin-bottom: 4px; }
.kontakt__liste dd { margin: 0; color: var(--weiss); }
.kontakt__liste > div:first-child { grid-column: 1 / -1; }

.formular {
  padding: clamp(24px, 3.4vw, 40px);
  background: var(--weiss);
  color: var(--text);
  border-radius: var(--radius);
  box-shadow: 0 40px 70px -40px rgba(0, 0, 0, 0.6);
}
.formular h3 { margin-bottom: 22px; font-size: 1.625rem; }
.feld { margin-bottom: 16px; }
.feld label { display: block; margin-bottom: 6px; color: var(--tinte); font-weight: 700; font-size: 1rem; }
.feld input, .feld select, .feld textarea {
  display: block; width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #9fb1c2;
  border-radius: var(--radius);
  background: var(--weiss);
  color: var(--tinte);
  font: 400 1.0625rem/1.4 var(--lauf);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.feld textarea { resize: vertical; }
.feld input:focus-visible, .feld select:focus-visible, .feld textarea:focus-visible {
  outline: none; border-color: var(--himmel); box-shadow: 0 0 0 3px rgba(5, 157, 227, 0.35);
}
.formular__fehler {
  margin: 0 0 14px; padding: 12px 14px;
  border-left: 4px solid #c2341d;
  background: #fdecea; color: #7d1f10;
  font-size: 1rem;
}
.formular__hinweis { margin: 14px 0 0; font-size: 0.9375rem; line-height: 1.45; }


.feld-paar { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.feld-paar .feld { margin-bottom: 6px; }
.feld-hinweis { margin: 0 0 16px; font-size: 0.9375rem; }
.falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.knopf[disabled] { opacity: 0.6; cursor: progress; transform: none; box-shadow: none; }
.formular__erfolg { padding-block: clamp(12px, 3vw, 32px); }
.formular__erfolg:focus { outline: none; }
.formular__erfolg .icon-kachel { width: 64px; height: 64px; margin-bottom: 22px; background: var(--himmel); color: var(--nacht); }
.formular__erfolg .icon-kachel .icon { width: 34px; height: 34px; }
.formular__erfolg h3 { margin-bottom: 12px; }
@media (max-width: 420px) { .feld-paar { grid-template-columns: 1fr; } .feld-paar .feld { margin-bottom: 16px; } }

@media (max-width: 900px) {
  .kontakt__raster { grid-template-columns: 1fr; }
  .kontakt::before { left: 70%; }
}
@media (max-width: 480px) {
  .kontakt__liste { grid-template-columns: 1fr; }
}

/* ---------- Instagram-Band ---------- */
.insta { padding-block: var(--abstand) clamp(56px, 7vw, 96px); background: var(--weiss); overflow: hidden; }
.insta__kopf {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: 20px 40px;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.insta__kopf h2 { margin-bottom: 10px; }
.insta__kopf p { margin: 0; }
.insta__steuerung { display: flex; align-items: center; gap: 8px; }
.insta__steuerung .knopf { margin-right: 8px; }

.pfeil {
  position: relative;
  width: 48px; height: 48px;
  border: 2px solid var(--marine); border-radius: var(--radius);
  background: var(--weiss);
  cursor: pointer;
  transition: background-color 0.15s;
}
.pfeil::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 11px; height: 11px;
  border: solid var(--marine); border-width: 3px 3px 0 0;
  transform: translate(-70%, -50%) rotate(45deg);
}
.pfeil--zurueck::before { transform: translate(-30%, -50%) rotate(-135deg); }
.pfeil:hover:not(:disabled) { background: var(--marine); }
.pfeil:hover:not(:disabled)::before { border-color: var(--weiss); }
.pfeil:disabled { opacity: 0.35; cursor: default; }

.insta__band {
  --kachel: clamp(210px, 23vw, 300px);
  display: flex; gap: 6px;
  margin: 0; list-style: none;
  /* bündig mit dem Seitenraster beginnen, nach rechts bis zum Bildschirmrand laufen */
  padding: 0 max(var(--rand), calc((100vw - var(--breite)) / 2));
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--rand), calc((100vw - var(--breite)) / 2));
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.insta__band::-webkit-scrollbar { display: none; }
.insta__band:focus-visible { outline-offset: -3px; }
.insta__kachel {
  flex: 0 0 var(--kachel);
  aspect-ratio: 1;
  scroll-snap-align: start;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--dunst);
}
.insta__kachel a { display: block; width: 100%; height: 100%; }
.insta__kachel img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--sanft);
}
.insta__kachel a:hover img { transform: scale(1.06); }

/* Beispielkacheln, solange Instagram nicht eingerichtet ist */
.insta__kachel--demo {
  display: flex; align-items: flex-end;
  padding: 16px;
  background-color: var(--marine);
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.16) 2px, transparent 2px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.16) 2px, transparent 2px);
  background-size: 25% 25%;
}
.insta__kachel--demo span {
  padding: 5px 10px;
  border-radius: var(--radius);
  background: var(--weiss);
  color: var(--tinte);
  font-size: 0.875rem; font-weight: 700;
}
.insta__kachel--demo:nth-child(3n + 2) { background-color: var(--himmel); background-size: 50% 25%; }
.insta__kachel--demo:nth-child(3n) { background-color: #9db4c8; background-size: 12.5% 50%; }
.insta__kachel--demo:nth-child(4n) { background-color: var(--marine-tief); background-size: 33.34% 33.34%; }

@media (max-width: 560px) {
  .insta__band { --kachel: 68vw; }
}

/* ---------- Fußzeile ---------- */
.fuss {
  background: var(--nacht);
  color: #c4d9ea;
  font-size: 1rem;
}
.fuss a { color: var(--weiss); text-decoration: none; }
.fuss a:hover { color: #8fd3f7; text-decoration: underline; }
.fuss__raster {
  display: grid;
  grid-template-columns: 1.3fr 1fr auto;
  gap: 32px clamp(32px, 6vw, 88px);
  padding-block: clamp(40px, 5vw, 64px);
}
.fuss__marke { display: flex; gap: 20px; align-items: flex-start; }
.fuss__logo {
  flex: none;
  padding: 10px 12px;
  background: var(--weiss);
  border-radius: var(--radius);
}
.fuss__logo img { width: auto; height: 44px; }
.fuss__menue { display: grid; gap: 6px; align-content: start; }
.fuss__recht {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px;
  padding-block: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.fuss__recht p { margin: 0; }
.fuss__recht nav { display: flex; gap: 28px; }
.fuss__recht nav a { font-weight: 700; text-decoration: underline; }

@media (max-width: 800px) {
  .fuss__raster { grid-template-columns: 1fr; }
  .fuss__menue { grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 24px; }
}

/* ---------- Feste Leiste auf dem Handy ---------- */
.rufleiste { display: none; }
@media (max-width: 700px) {
  .rufleiste {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 10px var(--rand) calc(10px + env(safe-area-inset-bottom));
    background: var(--nacht);
    box-shadow: 0 -12px 30px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(110%);
    transition: transform 0.35s var(--sanft);
  }
  .rufleiste.ist-sichtbar { transform: none; }
  .rufleiste .knopf { min-height: 50px; padding: 10px 12px; }
  .rufleiste .knopf:hover { transform: none; box-shadow: none; }
  .fuss { padding-bottom: 76px; }
}

/* ---------- Schwebende Knöpfe: nach oben und WhatsApp ---------- */
.schweber {
  position: fixed; right: clamp(14px, 2.4vw, 28px); bottom: clamp(14px, 2.4vw, 28px); z-index: 45;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
  transition: bottom 0.35s var(--sanft);
}
.schweber__chat {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 62px; height: 62px;
  border-radius: 50%;
  background: #25d366;
  color: #06301a;
  text-decoration: none;
  box-shadow: 0 14px 30px -10px rgba(0, 33, 61, 0.6);
  transition: transform 0.2s var(--sanft), box-shadow 0.2s;
}
.schweber__chat .icon { width: 32px; height: 32px; stroke-width: 1.9; }
.schweber__chat:hover { color: #06301a; transform: translateY(-3px) scale(1.05); box-shadow: 0 20px 34px -12px rgba(0, 33, 61, 0.7); }
/* sanft pulsierender Ring */
.schweber__chat::before {
  content: ""; position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: puls 2.6s ease-out infinite;
  pointer-events: none;
}
/* Beschriftung, die beim Überfahren erscheint */
.schweber__text {
  position: absolute; right: calc(100% + 12px); top: 50%;
  padding: 8px 14px;
  border-radius: var(--radius);
  background: var(--nacht); color: var(--weiss);
  font: 700 0.9375rem/1 var(--lauf);
  white-space: nowrap;
  opacity: 0; transform: translate(8px, -50%);
  transition: opacity 0.2s, transform 0.2s var(--sanft);
  pointer-events: none;
}
.schweber__chat:hover .schweber__text,
.schweber__chat:focus-visible .schweber__text { opacity: 1; transform: translate(0, -50%); }

.schweber__hoch {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin-right: 7px;
  border: 0; border-radius: var(--radius);
  background: var(--marine); color: var(--weiss);
  cursor: pointer;
  box-shadow: 0 12px 24px -10px rgba(0, 33, 61, 0.6);
  transition: background-color 0.18s, transform 0.2s var(--sanft);
  animation: einblenden 0.3s var(--sanft);
}
.schweber__hoch .icon { width: 24px; height: 24px; stroke-width: 2.2; }
.schweber__hoch:hover { background: var(--himmel); color: var(--nacht); transform: translateY(-3px); }

@media (max-width: 700px) {
  .schweber__chat { width: 56px; height: 56px; }
  .schweber__chat .icon { width: 29px; height: 29px; }
  .schweber__hoch { margin-right: 4px; }
  .schweber__text { display: none; }
  /* Platz für die Leiste mit „Anrufen“ und „Anfrage“ */
  .schweber.ist-angehoben { bottom: calc(82px + env(safe-area-inset-bottom)); }
}

/* ---------- Cookie-Hinweis ---------- */
.hinweis {
  position: fixed; left: clamp(12px, 2.4vw, 28px); bottom: clamp(12px, 2.4vw, 28px); z-index: 60;
  width: min(430px, calc(100vw - 24px));
  padding: 22px 24px 20px;
  border-radius: var(--radius);
  border-top: 4px solid var(--himmel);
  background: var(--weiss); color: var(--text);
  box-shadow: 0 24px 60px -18px rgba(0, 33, 61, 0.55), 0 0 0 1px var(--fuge);
  animation: hinweis-rein 0.5s var(--sanft) both;
}
.hinweis.geht { animation: hinweis-raus 0.3s ease-in forwards; }
.hinweis h2 {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 8px;
  font-size: 1.25rem; letter-spacing: -0.01em;
}
.hinweis h2 .icon { width: 26px; height: 26px; color: var(--himmel); }
.hinweis p { margin-bottom: 16px; font-size: 0.9375rem; line-height: 1.5; }
.hinweis__knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.hinweis__knoepfe .knopf { min-height: 46px; padding: 8px 22px; font-size: 1rem; }
.hinweis__knoepfe a:not(.knopf) { font-size: 0.9375rem; font-weight: 700; }
@keyframes hinweis-rein { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes hinweis-raus { to { opacity: 0; transform: translateY(24px); } }
@media (max-width: 700px) {
  .hinweis { left: 0; right: 0; bottom: 0; width: auto; padding: 18px var(--rand) calc(16px + env(safe-area-inset-bottom)); border-radius: 0; z-index: 70; }
}
/* Link in der Fußzeile, um den Hinweis erneut zu öffnen */
.fuss__recht nav button {
  padding: 0; border: 0; background: none;
  color: var(--weiss); font: 700 1rem/1.6 var(--lauf);
  text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px;
  cursor: pointer;
}
.fuss__recht nav button:hover { color: #8fd3f7; }
.fuss__recht nav { flex-wrap: wrap; row-gap: 6px; }

/* ---------- Rechtstexte (Impressum, Datenschutz) ---------- */
.recht { padding-block: clamp(40px, 6vw, 80px) var(--abstand); }
.recht__inhalt { max-width: 72ch; }
.recht h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); margin-bottom: 32px; }
.recht h2 { font-size: 1.625rem; margin: 44px 0 12px; letter-spacing: -0.015em; }
.recht h3 { margin: 28px 0 8px; }
.recht ul { padding-left: 1.2em; }
.recht li { margin-bottom: 6px; }
.recht .zurueck { display: inline-block; margin-bottom: 28px; font-weight: 700; }
.luecke {
  background: #fff1a8; color: #4a3b00;
  padding: 1px 6px; border-radius: 2px;
  font-weight: 700;
}
.recht__hinweis {
  margin-bottom: 36px; padding: 16px 18px;
  border-left: 4px solid #d9a400;
  background: #fff8d6; color: #4a3b00;
}

/* ---------- Weniger Bewegung, wenn im System so eingestellt ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .zeile > span { transform: none; }
  .js .start__lead, .js .start__knoepfe, .js .eckdaten { opacity: 1; }
  .start__buehne img.ist-aktiv { transform: none; }
  .js [data-zeig] { opacity: 1; transform: none; }
}
