:root {
  --blau: #2b3fd4;
  --blau-dunkel: #1b2a9e;
  --blau-tief: #141d6e;
  --gelb: #ffb300;
  --gelb-hell: #ffc83d;
  --tinte: #151a3b;
  --muted: #465068;
  --flaeche: #f3f5ff;
  --flaeche-2: #e6eaff;
  --weiss: #ffffff;
  --rand: #d5daf0;
  --schatten: 0 10px 30px rgba(21, 26, 59, 0.1);
  --schatten-klein: 0 2px 10px rgba(21, 26, 59, 0.08);
  --radius: 22px;
  --radius-klein: 14px;
  --gutter: 16px;
  --max: 1120px;
  --kopf-hoehe: 68px;
}

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

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

body {
  margin: 0;
  background: var(--weiss);
  color: var(--tinte);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

p,
li,
a,
blockquote,
summary {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 0.6rem;
  overflow-wrap: anywhere;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 5.2vw, 3.4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  font-weight: 800;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

p {
  margin: 0 0 0.9rem;
}

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

a:focus-visible,
summary:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--blau);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: var(--gutter);
  top: var(--gutter);
  background: var(--weiss);
  padding: 0.5rem 0.75rem;
  z-index: 30;
}

.icon {
  width: 28px;
  height: 28px;
  flex: none;
  fill: none;
  stroke: var(--blau);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 0.9rem;
  border-radius: 50%;
  background: var(--flaeche-2);
}

.karte-weiss .chip {
  background: var(--flaeche);
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  border: 2px solid var(--blau);
  background: var(--blau);
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  background: var(--blau-dunkel);
  border-color: var(--blau-dunkel);
  transform: translateY(-1px);
}

.btn-klein {
  padding: 0.55rem 1rem;
  font-size: 0.95rem;
}

.btn-gross {
  padding: 1rem 1.75rem;
  font-size: 1.05rem;
}

.btn-rand {
  background: transparent;
  color: var(--blau);
}

.btn-rand:hover {
  background: var(--flaeche-2);
  color: var(--blau-dunkel);
  border-color: var(--blau);
}

.btn-gelb {
  background: var(--gelb);
  border-color: var(--gelb);
  color: var(--tinte);
  box-shadow: 0 6px 18px rgba(255, 179, 0, 0.35);
}

.btn-gelb:hover {
  background: var(--gelb-hell);
  border-color: var(--gelb-hell);
}

.btn-hell {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.85);
  color: #ffffff;
}

.btn-hell:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #ffffff;
}

.hero .btn:focus-visible,
.cta .btn:focus-visible {
  outline-color: #ffffff;
}

/* Kopf */

.kopf {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--rand);
  box-shadow: var(--schatten-klein);
}

.kopf-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--kopf-hoehe);
}

.marke {
  display: inline-flex;
  align-items: center;
  flex: none;
  color: var(--tinte);
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
}

.marke img {
  height: 30px;
  width: auto;
}

.hauptnav {
  display: none;
}

.hauptnav ul,
.seitennav ul {
  display: flex;
  gap: 0.25rem 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hauptnav a,
.seitennav a {
  color: var(--tinte);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
}

.hauptnav a:hover,
.seitennav a:hover {
  color: var(--blau);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.kopf-aktionen {
  display: flex;
  gap: 0.5rem;
}

.kopf .btn-klein {
  padding: 0.5rem 0.8rem;
  font-size: 0.9rem;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 2.75rem 0 6.5rem;
  background: radial-gradient(120% 90% at 85% 0%, #4a5cf0 0%, var(--blau) 45%, var(--blau-dunkel) 100%);
  color: #ffffff;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.kicker {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero h1 {
  color: #ffffff;
}

.lead {
  max-width: 34rem;
  font-size: 1.15rem;
  color: #e8ebff;
}

.aktionen {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
}

.hero-bild {
  position: relative;
  margin: 0 12px 18px 0;
}

.hero-bild img {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 28px 28px 110px 28px;
  box-shadow: 0 24px 50px rgba(8, 12, 60, 0.45);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.deko {
  position: absolute;
  z-index: 0;
  display: block;
}

.deko-kreis {
  width: 62%;
  aspect-ratio: 1;
  right: -14px;
  bottom: -18px;
  border-radius: 50%;
  background: var(--gelb);
}

.deko-punkte {
  width: 96px;
  height: 96px;
  left: -14px;
  top: -14px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.55) 2.5px, transparent 3px);
  background-size: 16px 16px;
}

.schild {
  position: absolute;
  z-index: 2;
  left: 14px;
  bottom: -16px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: #ffffff;
  color: var(--tinte);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: var(--schatten);
}

/* Kennzahlen */

.kennzahlen {
  position: relative;
  z-index: 3;
  margin-top: -3.75rem;
  padding-bottom: 1.5rem;
}

.zahlen {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.zahlen li {
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--schatten);
}

.zahl {
  margin: 0;
  color: var(--blau);
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1;
}

.zahl-titel {
  margin: 0.15rem 0 0.4rem;
  font-size: 1.25rem;
  font-weight: 800;
}

.zahl-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

.quelle {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Abschnitte */

.abschnitt {
  padding: 4rem 0;
}

.abschnitt-hell {
  background: var(--flaeche);
}

.einleitung {
  max-width: 44rem;
  margin-bottom: 1.75rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.recht {
  max-width: 52rem;
  margin: 1.75rem 0 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.karten {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}

.karte {
  background: var(--flaeche);
  border-radius: var(--radius);
  padding: 1.6rem;
}

.karte p {
  margin: 0;
}

.karte-weiss {
  background: #ffffff;
  box-shadow: var(--schatten);
}

.karte-foto {
  padding: 0;
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--schatten);
}

.karte-foto img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.karte-inhalt {
  padding: 1.25rem 1.5rem 1.6rem;
}

.team h3 {
  font-size: 1.05rem;
}

/* Schritte */

.schritte {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: schritt;
}

.schritte li {
  position: relative;
  padding: 1.5rem 1.5rem 1.6rem;
  border-radius: var(--radius);
  background: var(--flaeche);
  counter-increment: schritt;
}

.schritte li::before {
  content: counter(schritt);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 0.9rem;
  border-radius: 50%;
  background: var(--gelb);
  color: var(--tinte);
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
}

.schritte p {
  margin: 0;
}

/* Fotokacheln */

.kacheln {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.kachel figure {
  position: relative;
  height: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  background: var(--blau-tief);
}

.kachel img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s;
}

.kachel:hover img {
  transform: scale(1.04);
}

.kachel figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 3.5rem 1.25rem 1.1rem;
  background: linear-gradient(180deg, rgba(20, 29, 110, 0) 0%, rgba(20, 29, 110, 0.88) 70%);
  color: #ffffff;
}

.kachel-titel {
  font-size: 1.15rem;
  font-weight: 800;
}

.kachel-text {
  font-size: 0.95rem;
}

/* Bewertungen (nur wenn gültige Einträge existieren) */

.bewertungen {
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.bewertung {
  background: var(--weiss);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  padding: 1.4rem 1.6rem;
}

.bewertung blockquote {
  margin: 0 0 0.6rem;
}

.bewertung-meta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Zugang-Band */

.cta {
  background: linear-gradient(120deg, var(--blau-dunkel), var(--blau-tief));
  color: #ffffff;
}

.cta h2,
.cta p {
  color: #ffffff;
}

.cta p {
  margin: 0;
}

.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  justify-items: start;
}

/* FAQ */

.faq-wrap {
  max-width: 820px;
}

details {
  margin-bottom: 0.75rem;
  border-radius: var(--radius-klein);
  background: var(--flaeche);
  padding: 0;
}

summary {
  position: relative;
  padding: 1rem 3rem 1rem 1.25rem;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-52%);
  color: var(--blau);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}

details[open] summary::after {
  content: "\2212";
}

details[open] {
  background: var(--flaeche-2);
}

details p {
  margin: 0;
  padding: 0 1.25rem 1.2rem;
}

/* Kontakt */

.kontakt-liste {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 1.05rem;
}

.kontakt-liste li {
  margin-bottom: 0.4rem;
}

.kontakt-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}

.formular {
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  padding: 1.5rem;
}

.feld {
  margin: 0 0 1rem;
}

.feld label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.feld input[type="text"],
.feld input[type="email"],
.feld input[type="tel"],
.feld textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid #7a85a3;
  border-radius: 12px;
  font: inherit;
  color: var(--tinte);
  background: #ffffff;
}

.feld input:focus-visible,
.feld textarea:focus-visible {
  outline: 3px solid var(--blau);
  outline-offset: 1px;
}

.feld-check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.6rem;
  align-items: start;
}

.feld-check input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.2rem;
}

.feld-check label {
  margin: 0;
  font-weight: 400;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.formular button {
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.formular button:disabled,
.formular input:disabled,
.formular textarea:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.status {
  margin: 0.9rem 0 0;
  font-weight: 600;
  min-height: 1.6em;
}

/* Fuss */

.fuss {
  background: var(--tinte);
  color: #e3e7f7;
  padding: 2.5rem 0;
}

.fuss a {
  color: #ffffff;
}

.fuss-inner {
  display: grid;
  gap: 1rem;
}

.fuss .marke img {
  height: 34px;
}

.fuss-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
}

.fuss p {
  font-size: 0.97rem;
}

.fuss-klein {
  margin: 0;
  font-size: 0.88rem;
  color: #b4bcd6;
}

/* Rechtsseiten */

.rechtstext {
  padding: 2.5rem 0 3.5rem;
}

.rechtstext h2 {
  font-size: 1.25rem;
  margin-top: 1.75rem;
}

.entwurf {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Schmale Bildschirme: Kopf muss in 343 px passen */

@media (max-width: 420px) {
  .kopf-inner {
    gap: 0.5rem;
  }

  .marke img {
    height: 24px;
  }

  .kopf-aktionen {
    gap: 0.35rem;
  }

  .kopf .btn-klein {
    padding: 0.45rem 0.65rem;
    font-size: 0.82rem;
  }

  .kicker {
    font-size: 0.78rem;
  }
}

/* Breiter Bildschirm */

@media (min-width: 560px) {
  .kopf .btn-klein {
    padding: 0.55rem 1.05rem;
    font-size: 0.95rem;
  }

  .marke img {
    height: 34px;
  }
}

@media (min-width: 720px) {
  .karten {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .zahlen {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .karten-vier,
  .schritte-vier {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kacheln {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    justify-items: stretch;
  }
}

@media (min-width: 900px) {
  .hero {
    padding: 4rem 0 8rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

  .kacheln {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .kachel-gross {
    grid-column: span 2;
  }

  .kachel-gross img {
    aspect-ratio: 16 / 9;
  }

  .hauptnav {
    display: block;
  }
}

@media (min-width: 960px) {
  .karten-vier,
  .schritte-vier {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .kontakt-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }

  .fuss-inner {
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .fuss-links {
    justify-content: flex-end;
  }

  .fuss-klein {
    grid-column: 1 / -1;
  }
}

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

  * {
    transition: none !important;
    animation: none !important;
  }

  .btn:hover,
  .kachel:hover img {
    transform: none;
  }
}
