/* Beispiel-Website „Installateur Ingo“ von kundenhebel.de. Ein erfundener Betrieb, der zeigt,
   wie eine Website für Handwerker aussehen kann. Schriften liegen auf dem eigenen Server. */
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/schriften/bricolage-grotesque.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: 'Figtree';
  src: url('/schriften/figtree.woff2') format('woff2');
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --blau: #1f4bff;
  --blau-tief: #0d1b5e;
  --gelb: #ffd43b;
  --mint: #3ad6a0;
  --koralle: #ff6b57;
  --grund: #f6f8fc;
  --text: #141a33;
  --leise: #535b7a;
  --linie: #e3e8f4;
  --kh-orange: #ff4405;
  --weich: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 130px;
}

body {
  font-family: 'Figtree', system-ui, sans-serif;
  color: var(--text);
  background: var(--grund);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
}

.disp {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  letter-spacing: -0.02em;
}

:focus-visible {
  outline: 3px solid var(--blau);
  outline-offset: 3px;
}

/* Linien-Icons aus dem Symbol-Satz in index.html */
.ic {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Hinweis und Kopf, beide bleiben oben stehen ---------- */

header {
  position: sticky;
  top: 0;
  z-index: 20;
}

.hinweis {
  background: var(--text);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

.hinweis .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
  flex-wrap: wrap;
  min-height: 46px;
  padding-block: 8px;
  text-align: center;
}

.hinweis b {
  color: var(--gelb);
}

.hinweis a {
  color: #fff;
  text-underline-offset: 3px;
}

header > .wrap.kopf {
  max-width: none;
  padding-inline: max(40px, calc(50% - 580px));
  border-bottom: 1px solid var(--linie);
  background: #fff;
}

.kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.marke {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 22px;
  text-decoration: none;
}

.marke i {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--blau);
  transition: transform 0.3s var(--weich);
}

.marke:hover i {
  transform: rotate(-8deg) scale(1.06);
}

.marke small {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--leise);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

nav {
  display: flex;
  gap: 34px;
  font-weight: 600;
  font-size: 16px;
  color: var(--leise);
}

nav a {
  position: relative;
  text-decoration: none;
}

.kopf nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 3px;
  border-radius: 2px;
  background: var(--gelb);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--weich);
}

nav a:hover {
  color: var(--text);
}

.kopf nav a:hover::after {
  transform: scaleX(1);
}

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 14px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--weich), background-color 0.15s ease, box-shadow 0.2s ease;
}

.knopf:hover {
  transform: translateY(-2px);
}

.knopf:active {
  transform: translateY(0) scale(0.98);
}

.k-blau {
  background: var(--blau);
  color: #fff;
  box-shadow: 0 10px 22px -12px rgb(31 75 255 / 0.8);
}

.k-blau:hover {
  background: #1238d6;
}

.k-gelb {
  background: var(--gelb);
  color: var(--text);
}

.k-gelb:hover {
  background: #f5c400;
}

.k-rand {
  background: #fff;
  color: var(--text);
  border: 2px solid #dfe5f2;
}

.k-rand:hover {
  border-color: var(--text);
}

.burger {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 14px;
  background: var(--gelb);
  place-items: center;
  cursor: pointer;
}

.menue,
.menue-schleier {
  display: none;
}

/* ---------- Held ---------- */

.held {
  padding: 56px 0 72px;
}

.held > .wrap:first-child {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 10px;
  border-radius: 99px;
  background: #fff;
  border: 1px solid #e1e7f5;
  font-weight: 600;
  font-size: 15px;
}

/* Grüner Punkt mit zwei Ringen, die sich abwechselnd ausdehnen */
.chip b {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mint);
}

.chip b::before,
.chip b::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--mint);
  animation: puls 2s ease-out infinite;
}

.chip b::after {
  animation-delay: 1s;
}

@keyframes puls {
  from {
    transform: scale(1);
    opacity: 0.55;
  }
  to {
    transform: scale(3.2);
    opacity: 0;
  }
}

h1 {
  font-size: 76px;
  line-height: 0.98;
  margin: 22px 0 20px;
  font-weight: 800;
}

h1 > span {
  display: inline-block;
}

/* Gelber Marker zieht sich nach dem Laden unter „Ingo“ */
h1 mark {
  background: linear-gradient(var(--gelb), var(--gelb)) no-repeat 0 88% / 100% 34%;
  color: inherit;
  padding: 0 4px;
}

.bewegt h1 mark {
  animation: marker 0.7s 0.65s var(--weich) backwards;
}

@keyframes marker {
  from {
    background-size: 0% 34%;
  }
}

.lead {
  font-size: 20px;
  line-height: 1.55;
  color: var(--leise);
  max-width: 520px;
}

.reihe {
  display: flex;
  gap: 14px;
  margin-top: 30px;
}

/* Hörer im Anrufknopf wackelt ab und zu */
.bewegt .klingeln .ic {
  animation: klingeln 3.2s 2s ease-in-out infinite;
}

@keyframes klingeln {
  0%,
  16%,
  100% {
    transform: rotate(0);
  }
  2%,
  6%,
  10% {
    transform: rotate(-14deg);
  }
  4%,
  8%,
  12% {
    transform: rotate(14deg);
  }
}

/* Rückruf-Formular. Die Felder haben keinen Namen und senden nichts. */
.formular {
  background: #fff;
  border-radius: 22px;
  border: 1px solid var(--linie);
  padding: 22px;
  margin-top: 32px;
  max-width: 520px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: end;
  box-shadow: 0 18px 40px -28px rgb(20 26 51 / 0.35);
}

.formular label {
  font-size: 13px;
  font-weight: 600;
  color: var(--leise);
  display: grid;
  gap: 6px;
}

.formular input {
  height: 48px;
  width: 100%;
  min-width: 0;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--grund);
  border: 1px solid #dfe5f2;
  font: 500 16px 'Figtree', system-ui, sans-serif;
  color: var(--text);
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.formular input:focus {
  outline: none;
  border-color: var(--blau);
  background: #fff;
  box-shadow: 0 0 0 4px rgb(31 75 255 / 0.14);
}

.formular .titel {
  grid-column: 1 / -1;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.formular .titel em {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-style: normal;
  color: #0c7a55;
  font-size: 13px;
}

.formular .titel em i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: blinken 1.6s ease-in-out infinite;
}

@keyframes blinken {
  50% {
    opacity: 0.25;
  }
}

/* Kurz hervorheben, wenn oben „Rückruf anfordern“ geklickt wurde */
.formular.zeigen {
  animation: zeigen 1.2s ease;
}

@keyframes zeigen {
  0%,
  100% {
    border-color: var(--linie);
  }
  30% {
    border-color: var(--blau);
    box-shadow: 0 0 0 5px rgb(31 75 255 / 0.25);
  }
}

/* Foto von Ingo mit zwei schwebenden Schildern und gelber Fläche dahinter */
.held-bild {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 500px;
}

.held-bild img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 32px;
  background: #dfe5f2;
}

.held-bild::before {
  content: '';
  position: absolute;
  inset: 26px -26px -26px 26px;
  z-index: -1;
  border-radius: 32px;
  background: var(--gelb);
}

.schild {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 18px;
  background: #fff;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 18px 36px -18px rgb(20 26 51 / 0.45);
}

.schild .ic {
  width: 38px;
  height: 38px;
  padding: 8px;
  border-radius: 12px;
}

.s1 {
  left: -34px;
  bottom: 48px;
  background: var(--blau);
  color: #fff;
}

.s1 .ic {
  background: var(--gelb);
  color: var(--text);
}

.s1 b {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: 22px;
}

.s2 {
  right: -18px;
  top: 40px;
}

.s2 .ic {
  background: #d9f7ec;
  color: #0f9a6c;
}

.bewegt .schild {
  animation: schweben 5s ease-in-out infinite;
}

.bewegt .s2 {
  animation-delay: -2.5s;
}

@keyframes schweben {
  50% {
    transform: translateY(-10px);
  }
}

/* Drei Kacheln unter dem Held */
.kacheln {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 16px;
  margin-top: 64px;
}

.kachel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 236px;
  padding: 26px;
  border-radius: 26px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s var(--weich), box-shadow 0.3s ease;
}

.kachel:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px -24px rgb(20 26 51 / 0.5);
}

.kachel h3 {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 700;
}

.kachel p {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  opacity: 0.85;
  margin-top: 6px;
}

.k1 {
  background: var(--blau);
  color: #fff;
}

.k1 .ober {
  position: relative;
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}

.k1 > div {
  position: relative;
  max-width: 300px;
}

.k1 .gross {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: 96px;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.k1 h3 {
  margin-top: 10px;
  font-size: 21px;
}

.rohr {
  position: absolute;
  right: 22px;
  top: 0;
}

/* Tropfen fällt aus dem Rohr */
.tropf {
  transform-box: fill-box;
  transform-origin: center top;
  opacity: 0;
}

.bewegt .tropf {
  animation: tropfen 2.4s 1s cubic-bezier(0.55, 0, 0.9, 0.5) infinite;
}

@keyframes tropfen {
  0% {
    opacity: 0;
    transform: translateY(-14px) scale(0.3);
  }
  20%,
  30% {
    opacity: 1;
    transform: translateY(-6px) scale(1);
  }
  75% {
    opacity: 0;
    transform: translateY(90px) scale(0.9, 1.15);
  }
  100% {
    opacity: 0;
    transform: translateY(90px);
  }
}

.k2 {
  background: var(--gelb);
}

.k3 {
  background: var(--mint);
}

.kreis {
  position: relative;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  flex: none;
  border-radius: 50%;
  background: var(--text);
  transition: transform 0.4s var(--weich);
}

.kreis .ic {
  width: 30px;
  height: 30px;
}

.kachel > div {
  position: relative;
}

/* Großes Icon als Wasserzeichen in der Ecke, dreht sich beim Darüberfahren leicht */
.wasserzeichen {
  position: absolute;
  right: -26px;
  bottom: -34px;
  width: 190px;
  height: 190px;
  stroke-width: 1.4;
  color: rgb(20 26 51 / 0.09);
  transition: transform 0.6s var(--weich);
}

.kachel:hover .wasserzeichen {
  transform: rotate(-10deg) scale(1.06);
}

.k2 .kreis {
  color: var(--gelb);
}

.k3 .kreis {
  color: var(--mint);
}

.kachel:hover .kreis {
  transform: rotate(-12deg) scale(1.08);
}

/* ---------- Laufband ---------- */

.laufband {
  overflow: hidden;
  padding: 18px 0;
  background: var(--text);
  color: #fff;
}

.spur {
  display: flex;
  width: max-content;
}

.bewegt .spur {
  animation: laufen 38s linear infinite;
}

.laufband:hover .spur {
  animation-play-state: paused;
}

@keyframes laufen {
  to {
    transform: translateX(-50%);
  }
}

.laufband ul {
  display: flex;
  padding: 0;
  list-style: none;
}

.laufband li {
  display: flex;
  align-items: center;
  gap: 26px;
  padding-right: 26px;
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: 22px;
  font-weight: 700;
  white-space: nowrap;
}

/* Gelber Tropfen zwischen den Begriffen */
.laufband li::after {
  content: '';
  width: 10px;
  height: 13px;
  background: var(--gelb);
  clip-path: path('M5 0C5 0 0 5.6 0 8.5a5 4.5 0 0 0 10 0C10 5.6 5 0 5 0Z');
}

/* ---------- Abschnitte allgemein ---------- */

.leist,
.ablauf,
.notdienst {
  padding: 96px 0;
}

.leist {
  background: #fff;
}

.leist h2,
.ablauf h2,
.notdienst h2 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
}

.oben {
  font-weight: 700;
  color: var(--blau);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 14px;
  margin-bottom: 14px;
}

/* ---------- Leistungen ---------- */

.karten {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 44px;
}

.karte {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 0 24px;
  border-radius: 22px;
  border: 1px solid #e6eaf4;
  background: var(--grund);
  overflow: hidden;
}

.karte:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 44px -28px rgb(20 26 51 / 0.45);
}

.karte-bild {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #dfe5f2;
}

.karte-bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--weich);
}

.karte:hover .karte-bild img {
  transform: scale(1.06);
}

.marke-ic {
  position: relative;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin: -32px 0 4px 22px;
  border-radius: 16px;
  border: 4px solid var(--grund);
  background: var(--h);
  color: var(--f);
}

.marke-ic .ic {
  width: 28px;
  height: 28px;
}

.karte h3,
.karte p,
.karte button {
  margin-inline: 24px;
}

.karte h3 {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: 24px;
  font-weight: 700;
}

.karte p {
  color: var(--leise);
  line-height: 1.5;
  font-size: 16px;
}

.karte button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-top: auto;
  padding: 8px 0 0;
  border: 0;
  background: none;
  font-weight: 700;
  color: var(--blau);
  cursor: pointer;
}

.karte button .ic {
  width: 18px;
  height: 18px;
  transition: transform 0.25s var(--weich);
}

.karte:hover button .ic {
  transform: translateX(5px);
}

/* ---------- Notdienst ---------- */

.notdienst {
  background: var(--blau-tief);
  color: #fff;
}

.notdienst .wrap {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: center;
}

.notdienst .oben {
  color: var(--gelb);
}

.notdienst h2 + p {
  margin-top: 18px;
  font-size: 19px;
  color: #c5cdf0;
}

.handgriffe {
  display: grid;
  gap: 12px;
  margin: 22px 0 30px;
  padding: 0;
  list-style: none;
}

.handgriffe li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgb(255 255 255 / 0.07);
  border: 1px solid rgb(255 255 255 / 0.12);
  line-height: 1.45;
  color: #c5cdf0;
}

.handgriffe li > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 13px;
  background: var(--gelb);
  color: var(--text);
}

.handgriffe b {
  display: block;
  font-size: 18px;
  color: #fff;
}

.notdienst-bild {
  position: relative;
}

.notdienst-bild img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 28px;
}

.notdienst-bild figcaption {
  position: absolute;
  left: 20px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 99px;
  background: #fff;
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
}

/* Kleiner Funkpunkt: „unterwegs“ */
.funk {
  position: relative;
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 50%;
  background: var(--koralle);
}

.funk::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--koralle);
  animation: puls 1.8s ease-out infinite;
}

/* ---------- Ablauf ---------- */

.schritte {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 44px;
  padding: 0;
  list-style: none;
}

/* Linie verbindet die drei Icons und füllt sich beim Hereinscrollen */
.schritte::before,
.schritte::after {
  content: '';
  position: absolute;
  z-index: 2;
  top: 54px;
  left: 16.66%;
  right: 16.66%;
  height: 4px;
  border-radius: 2px;
  background: #dfe5f2;
}

.schritte::after {
  background: var(--koralle);
  transform-origin: left;
}

.bewegt .schritte::after {
  transform: scaleX(0);
  transition: transform 1.4s 0.2s var(--weich);
}

.bewegt .schritte.sichtbar::after {
  transform: scaleX(1);
}

.schritt {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  text-align: center;
  padding: 28px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid #e6eaf4;
}

.schritt-ic {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--koralle);
  color: #fff;
  box-shadow: 0 0 0 8px #fff;
}

.bewegt .schritte .schritt-ic {
  transform: scale(0.4);
  opacity: 0;
  transition: transform 0.5s var(--weich), opacity 0.3s ease;
}

.bewegt .schritte.sichtbar .schritt-ic {
  transform: none;
  opacity: 1;
}

.bewegt .schritte.sichtbar .schritt:nth-child(2) .schritt-ic {
  transition-delay: 0.6s;
}

.bewegt .schritte.sichtbar .schritt:nth-child(3) .schritt-ic {
  transition-delay: 1.2s;
}

.schritt b {
  margin-top: 14px;
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #d9432f;
  text-transform: uppercase;
}

.schritt b::before {
  content: 'Schritt ';
}

.schritt h3 {
  font-size: 22px;
  margin: 6px 0 8px;
}

.schritt p {
  color: var(--leise);
  line-height: 1.5;
}

.band {
  position: relative;
  overflow: hidden;
  background: var(--blau-tief);
  color: #fff;
  border-radius: 28px;
  padding: 44px;
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.band-rohr {
  position: absolute;
  right: 220px;
  top: 0;
  width: 400px;
  height: 120px;
}

.band h3,
.band .knopf {
  position: relative;
}

.band h3 {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: 36px;
}

/* ---------- Diese Website könnte Ihnen gehören (kundenhebel.de) ---------- */

.ihre {
  padding: 96px 0;
  background: var(--kh-orange);
  color: var(--text);
}

.ihre .wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
}

.ihre .oben {
  color: var(--text);
}

.ihre h2 {
  font-size: 64px;
  line-height: 1;
  font-weight: 800;
  color: #fff;
  margin-bottom: 24px;
}

.ihre p {
  font-size: 20px;
  line-height: 1.55;
}

.ihre .kasten p {
  font-size: 17px;
}

.ihre .liste {
  display: grid;
  gap: 12px;
  padding: 0;
  margin-top: 22px;
  list-style: none;
  font-size: 18px;
  font-weight: 600;
}

.ihre .liste li {
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.ihre .liste li::before {
  content: '';
  flex: none;
  width: 10px;
  height: 10px;
  translate: 0 -2px;
  background: var(--text);
}

.ihre .kasten {
  display: grid;
  gap: 14px;
  padding: 32px;
  background: #fff;
}

.ihre .kasten b {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: 28px;
  line-height: 1.1;
}

/* Knöpfe von kundenhebel.de: eckig */
.kh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 24px;
  border: 2px solid var(--text);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
}

.kh-dunkel {
  background: var(--text);
  color: #fff;
}

.kh-dunkel:hover {
  background: #000;
}

.kh-hell {
  background: #fff;
  color: var(--text);
}

.kh-hell:hover {
  background: var(--text);
  color: #fff;
}

/* ---------- Fuß ---------- */

footer {
  padding: 32px 0;
  background: var(--text);
  color: #c9cee0;
  font-size: 15px;
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
}

footer nav {
  gap: 24px;
  font-size: 15px;
  color: #c9cee0;
}

footer a:hover {
  color: #fff;
}

/* ---------- Hinweisfenster ---------- */

dialog {
  width: min(520px, calc(100vw - 32px));
  /* zurück zur Mitte, die Grundregel oben setzt margin auf 0 */
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 26px;
  color: var(--text);
  overflow: visible;
}

dialog::backdrop {
  background: rgb(20 26 51 / 0.55);
}

dialog[open] {
  animation: aufgehen 0.35s var(--weich);
}

@keyframes aufgehen {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
}

.fenster {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 36px 32px 32px;
  text-align: center;
}

.fenster h2 {
  font-size: 32px;
  line-height: 1.05;
  font-weight: 800;
}

.fenster p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--leise);
}

.fenster .knoepfe {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.zu {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--grund);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.haken {
  justify-self: center;
  width: 76px;
  height: 76px;
}

.haken circle {
  fill: var(--mint);
}

.haken path {
  fill: none;
  stroke: #fff;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 32;
  animation: haken 0.6s 0.15s ease-out backwards;
}

@keyframes haken {
  from {
    stroke-dashoffset: 32;
  }
}

dialog[data-art='info'] .haken,
dialog[data-art='info'] .feuerwerk {
  display: none;
}

/* Feuerwerk über dem Fenster nach dem Absenden: kurze Funken, die auseinanderfliegen */
.feuerwerk {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.burst {
  position: absolute;
  width: 0;
  height: 0;
}

.burst i {
  position: absolute;
  left: -9px;
  top: -2.5px;
  width: 18px;
  height: 5px;
  border-radius: 99px;
  background: var(--f);
  opacity: 0;
  animation: funken 1.3s var(--v, 0s) cubic-bezier(0.15, 0.7, 0.3, 1) forwards;
}

@keyframes funken {
  0% {
    opacity: 1;
    transform: rotate(var(--w)) translateX(6px) scaleX(0.4);
  }
  45% {
    opacity: 1;
    transform: rotate(var(--w)) translateX(var(--d)) scaleX(1);
  }
  100% {
    opacity: 0;
    transform: rotate(var(--w)) translateX(calc(var(--d) * 1.25)) translateY(10px) scaleX(0.3);
  }
}

/* ---------- Bewegung beim Laden und Scrollen ---------- */

.bewegt .auftritt {
  animation: auftreten 0.8s var(--weich) backwards;
}

.bewegt h1 .auftritt:nth-child(1) {
  animation-delay: 0.08s;
}

.bewegt h1 .auftritt:nth-child(3) {
  animation-delay: 0.18s;
}

.bewegt .lead.auftritt {
  animation-delay: 0.28s;
}

.bewegt .reihe.auftritt {
  animation-delay: 0.36s;
}

.bewegt .formular.auftritt {
  animation-delay: 0.44s;
}

.bewegt .held-bild.auftritt {
  animation: bild-auftritt 1s 0.2s var(--weich) backwards;
}

@keyframes auftreten {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
}

@keyframes bild-auftritt {
  from {
    opacity: 0;
    transform: translateY(30px) rotate(2deg);
  }
}

/* translate statt transform, damit die Hover-Bewegung der Karten unabhängig bleibt */
.bewegt [data-zeigen] {
  opacity: 0;
  translate: 0 28px;
}

.bewegt [data-zeigen].sichtbar {
  opacity: 1;
  translate: 0 0;
}

[data-zeigen],
.karte {
  transition: opacity 0.7s var(--weich) var(--verz, 0ms), translate 0.7s var(--weich) var(--verz, 0ms),
    transform 0.3s var(--weich), box-shadow 0.3s ease;
}

/* ---------- Rückruf-Fenster ---------- */

.rr-form {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 34px 30px 26px;
}

.rr-form h2 {
  padding-right: 48px;
  font-size: 30px;
  line-height: 1.05;
  font-weight: 800;
}

.rr-form > p {
  margin-bottom: 6px;
  color: var(--leise);
  font-size: 17px;
}

.rr-form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--leise);
}

.rr-form input {
  height: 52px;
  width: 100%;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--grund);
  border: 1px solid #dfe5f2;
  font: 500 17px 'Figtree', system-ui, sans-serif;
  color: var(--text);
}

.rr-form input:focus {
  outline: none;
  border-color: var(--blau);
  background: #fff;
  box-shadow: 0 0 0 4px rgb(31 75 255 / 0.14);
}

.rr-form .knopf {
  margin-top: 8px;
  min-height: 56px;
  font-size: 17px;
}

.rr-form small {
  text-align: center;
  font-size: 13px;
  color: var(--leise);
}

/* ---------- Rechtstexte ---------- */

/* main.recht, damit .wrap am Handy das Polster oben und unten nicht überschreibt */
main.recht {
  max-width: 760px;
  padding-block: 64px 96px;
}

.recht h1 {
  font-size: 52px;
  margin-top: 0;
}

.recht h2 {
  font-size: 22px;
  margin: 32px 0 8px;
}

.recht p,
.recht li,
.recht address {
  font-size: 17px;
  line-height: 1.6;
  color: var(--leise);
  font-style: normal;
}

.recht ul {
  padding-left: 22px;
}

.recht a {
  color: var(--blau);
}

/* ---------- Kleinere Bildschirme ---------- */

@media (min-width: 901px) and (max-width: 1200px) {
  h1 {
    font-size: 64px;
  }

  .karten {
    grid-template-columns: 1fr 1fr;
  }

  .k1 .gross {
    font-size: 80px;
  }

  .s1 {
    left: -18px;
  }

  .formular {
    grid-template-columns: 1fr 1fr;
  }

  .formular .knopf {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 140px;
  }

  .wrap {
    padding: 0 22px;
  }

  .hinweis {
    font-size: 14px;
  }

  header > .wrap.kopf {
    padding-inline: 22px;
  }

  .kopf {
    height: 72px;
  }

  .kopf nav,
  .kopf > .knopf {
    display: none;
  }

  .burger {
    display: grid;
  }

  /* Klappmenü: dunkle Fläche unter dem weißen Kopf, die Seite darunter wird abgedunkelt */
  .menue[data-offen='true'] {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: grid;
    padding: 8px 22px 22px;
    border-top: 4px solid var(--gelb);
    border-radius: 0 0 24px 24px;
    background: var(--blau-tief);
    color: #fff;
    box-shadow: 0 24px 40px -20px rgb(0 0 0 / 0.5);
    max-height: calc(100dvh - 130px);
    overflow-y: auto;
  }

  .bewegt .menue[data-offen='true'] {
    animation: menue-auf 0.3s var(--weich);
  }

  @keyframes menue-auf {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
  }

  .menue > a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 0;
    border-bottom: 1px solid rgb(255 255 255 / 0.12);
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
  }

  .menue > a .ic {
    color: var(--gelb);
  }

  .menue-knoepfe {
    display: grid;
    gap: 10px;
    margin-top: 18px;
  }

  .menue-schleier {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 15;
    background: rgb(20 26 51 / 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s;
  }

  body[data-menue='offen'] {
    overflow: hidden;
  }

  body[data-menue='offen'] .menue-schleier {
    opacity: 1;
    visibility: visible;
  }

  .held {
    padding: 34px 0 52px;
  }

  .held > .wrap:first-child,
  .notdienst .wrap,
  .ihre .wrap {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  h1 {
    font-size: 52px;
  }

  .lead {
    font-size: 18px;
  }

  .reihe {
    flex-direction: column;
  }

  .formular {
    grid-template-columns: 1fr;
  }

  .held-bild {
    justify-self: center;
    max-width: 440px;
    margin: 0 18px 18px 0;
  }

  .held-bild::before {
    inset: 18px -18px -18px 18px;
  }

  .s1 {
    left: -10px;
    bottom: 28px;
  }

  .s2 {
    right: -10px;
    top: 24px;
  }

  .kacheln {
    grid-template-columns: 1fr 1fr;
    margin-top: 44px;
  }

  .k1 {
    grid-column: 1 / -1;
    min-height: 210px;
  }

  .karten {
    grid-template-columns: 1fr 1fr;
  }

  .leist,
  .ablauf,
  .notdienst {
    padding: 72px 0;
  }

  .leist h2,
  .ablauf h2,
  .notdienst h2 {
    font-size: 40px;
  }

  .schritte {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* Am Handy läuft die Linie senkrecht durch die Icons */
  .schritte::before,
  .schritte::after {
    top: 50px;
    bottom: 50px;
    left: 49px;
    right: auto;
    width: 4px;
    height: auto;
  }

  .schritte::after {
    transform-origin: top;
  }

  .bewegt .schritte::after {
    transform: scaleY(0);
  }

  .bewegt .schritte.sichtbar::after {
    transform: scaleY(1);
  }

  .schritt {
    grid-template-columns: 56px 1fr;
    column-gap: 18px;
    justify-items: start;
    text-align: left;
    padding: 22px;
  }

  .schritt-ic {
    grid-row: span 3;
  }

  .schritt b {
    margin-top: 0;
  }

  .band {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px;
  }

  .band-rohr {
    right: -140px;
  }

  .band h3 {
    font-size: 30px;
  }

  .ihre {
    padding: 72px 0;
  }

  .ihre h2 {
    font-size: 44px;
  }

  .recht h1 {
    font-size: 40px;
  }
}

/* Schmale Handys: Wasserschaden und Bad als Zeilen mit Icon links, Notdienst bleibt die große Kachel */
@media (max-width: 560px) {
  .hinweis .weg {
    display: none;
  }

  h1 {
    font-size: 48px;
  }

  .kacheln {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .kachel {
    min-height: 0;
    padding: 22px;
    border-radius: 22px;
  }

  .k1 {
    min-height: 200px;
  }

  .k1 .gross {
    font-size: 72px;
  }

  .k1 h3 {
    font-size: 19px;
    max-width: 230px;
  }

  .rohr {
    right: -18px;
    width: 150px;
    height: 115px;
  }

  .k2,
  .k3 {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
  }

  .k2 h3,
  .k3 h3 {
    font-size: 21px;
  }

  .k2 p,
  .k3 p {
    margin-top: 2px;
  }

  .kreis {
    width: 54px;
    height: 54px;
  }

  .wasserzeichen {
    right: -20px;
    bottom: -40px;
    width: 130px;
    height: 130px;
  }

  .karten {
    grid-template-columns: 1fr;
  }

  .schild {
    padding: 10px 14px;
    font-size: 14px;
    gap: 10px;
  }

  .schild .ic {
    width: 32px;
    height: 32px;
    padding: 6px;
  }

  .s1 b {
    font-size: 18px;
  }

  .laufband li {
    font-size: 18px;
  }

  .notdienst-bild figcaption {
    left: 12px;
    right: 12px;
    bottom: 12px;
    font-size: 14px;
  }

  .ihre .kasten {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
