/* ==========================================================================
   SIGMUND IT – Stylesheet
   Aufbau:  1 Schriften · 2 Variablen · 3 Basis · 4 Layout · 5 Bausteine
            6 Kopfbereich · 7 Hero · 8 Abschnitte · 9 Formular · 10 Karte
            11 Einwilligung · 12 Fußbereich · 13 Hilfsklassen und Bewegung
   Mobile-First: Grundregeln gelten für kleine Bildschirme, Media Queries
   erweitern das Layout nach oben.
   ========================================================================== */

/* 1 Schriften (lokal eingebunden, keine externen Anfragen) ----------------
   Space Grotesk, Inter und JetBrains Mono stehen unter der SIL Open Font License 1.1
   (https://openfontlicense.org). Copyright-Vermerk und Lizenzhinweis stecken auch in den
   Schriftdateien selbst; die Lizenztexte liegen im Branch "main" im Ordner lizenzen/. */
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

/* 2 Variablen -------------------------------------------------------------- */
:root {
  /* Farben (Marine stammt aus dem Logo) */
  --c-marine: #155071;
  --c-marine-dark: #0f3f5b;
  --c-deep: #0b2b40;
  --c-deep-soft: #103650;
  --c-cyan: #5cc8f0;
  --c-silver: #c4ccd4;
  --c-ice: #f3f6f9;
  --c-white: #ffffff;
  --c-text: #10222e;
  --c-muted: #4a5d6b;
  --c-line: #dce3ea;
  --c-field: #7b8b98;
  --c-error: #b3261e;
  --c-success: #17663f;

  /* Schriften */
  --font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  /* Fluide Schriftgrößen */
  --fs-hero: clamp(2.3rem, 1.35rem + 4.3vw, 4.25rem);
  --fs-h1: clamp(2rem, 1.4rem + 2.8vw, 3.25rem);
  --fs-h2: clamp(1.65rem, 1.25rem + 1.8vw, 2.5rem);
  --fs-h3: clamp(1.2rem, 1.1rem + 0.45vw, 1.4rem);
  --fs-lead: clamp(1.1rem, 1.02rem + 0.4vw, 1.3rem);
  --fs-body: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --fs-small: 0.9rem;
  --fs-mono: 0.78rem;

  /* Abstände */
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(5rem, 11vw, 7.5rem);
  --radius: 4px;
  --header-h: 4.25rem;

  /* Rahmen-Motiv aus dem Logo */
  --frame-a: #6b7178;
  --frame-b: #e8ebee;

  /* Fokusfarbe (auf dunklen Flächen wird sie zu Cyan) */
  --focus: var(--c-marine);
}

@media (min-width: 48rem) {
  :root {
    --header-h: 4.75rem;
  }
}

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

html {
  /* Farbe hinter der Seite: sichtbar beim Überscrollen oben/unten und unter dem Fußbereich,
     wenn eine Seite kürzer ist als das Fenster. Gleiche Farbe wie Kopf- und Fußbereich. */
  background: var(--c-deep);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--c-text);
  /* Blau wie Kopf- und Fußbereich: Mobile Browser färben damit auch den Bereich beim
     Überscrollen oben und unten. Weiß ist nur der Inhaltsbereich (main). */
  background: var(--c-deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  display: block;
  background: var(--c-white);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.6em;
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -0.01em; }

p {
  margin: 0 0 1.1em;
}

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

a {
  color: var(--c-marine);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

ul,
ol {
  margin: 0 0 1.1em;
  padding-left: 1.25em;
}

address {
  font-style: normal;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

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

::selection {
  background: var(--c-marine);
  color: var(--c-white);
}

/* Lange deutsche Wörter auf schmalen Bildschirmen sauber trennen */
@media (max-width: 30rem) {
  p,
  li,
  dd {
    -webkit-hyphens: auto;
    hyphens: auto;
    /* nur wirklich lange Wörter trennen */
    -webkit-hyphenate-limit-before: 5;
    -webkit-hyphenate-limit-after: 4;
    hyphenate-limit-chars: 12 5 4;
  }
}

/* 4 Layout ----------------------------------------------------------------- */
.container {
  width: min(100% - 2 * var(--gutter), 75rem);
  margin-inline: auto;
}

.section {
  padding-block: var(--section);
}

.section--ice {
  background: var(--c-ice);
}

.section--marine {
  background: var(--c-marine);
  color: var(--c-white);
}

/* Dunkle Flächen: helle Schrift, heller Fokus, helles Rahmen-Motiv */
.on-dark {
  --focus: var(--c-cyan);
  color: var(--c-white);
}

.on-dark a {
  color: var(--c-white);
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.75rem, 6vw, 3.5rem);
}

.section-head p:not(.eyebrow) {
  font-size: var(--fs-lead);
  color: var(--c-muted);
}

.on-dark .section-head p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.85);
}

.split {
  display: grid;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

@media (min-width: 56rem) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .split--wide-left {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
}

/* 5 Bausteine -------------------------------------------------------------- */

/* Kleine Code-Etiketten über Überschriften */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.1rem;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-marine);
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 2rem;
  height: 1px;
  background: currentColor;
}

.on-dark .eyebrow {
  color: var(--c-cyan);
}

.section--marine .eyebrow {
  color: var(--c-white);
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
}

/* Icons aus assets/img/icons.svg */
.icon {
  flex: none;
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Schaltflächen */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.7rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.btn .icon {
  transition: transform 0.2s ease;
}

.btn:hover .icon {
  transform: translateX(4px);
}

.btn--accent,
.on-dark .btn--accent {
  background: var(--c-cyan);
  color: var(--c-deep);
}

.btn--accent:hover {
  background: #84d7f5;
}

.btn--primary {
  background: var(--c-marine);
  color: var(--c-white);
}

.btn--primary:hover {
  background: var(--c-marine-dark);
}

.btn--ghost {
  border-color: var(--c-marine);
  color: var(--c-marine);
  background: transparent;
}

.btn--ghost:hover {
  background: var(--c-marine);
  color: var(--c-white);
}

.btn--ghost-light {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--c-white);
  background: transparent;
}

.btn--ghost-light:hover {
  background: var(--c-white);
  color: var(--c-deep);
}

.on-dark .btn--ghost-light:hover {
  color: var(--c-deep);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* Offener Rahmen: das Motiv aus dem Logo (Lücke oben in der Mitte) */
.open-frame {
  --frame-gap: 6.5rem;
  --frame-w: 2px;
  position: relative;
}

.open-frame::before {
  --l: linear-gradient(#000, #000);
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(108deg, var(--frame-a) 0%, var(--frame-b) 50%, var(--frame-a) 100%);
  -webkit-mask:
    var(--l) left top / calc(50% - var(--frame-gap) / 2) var(--frame-w) no-repeat,
    var(--l) right top / calc(50% - var(--frame-gap) / 2) var(--frame-w) no-repeat,
    var(--l) left top / var(--frame-w) 100% no-repeat,
    var(--l) right top / var(--frame-w) 100% no-repeat,
    var(--l) left bottom / 100% var(--frame-w) no-repeat;
  mask:
    var(--l) left top / calc(50% - var(--frame-gap) / 2) var(--frame-w) no-repeat,
    var(--l) right top / calc(50% - var(--frame-gap) / 2) var(--frame-w) no-repeat,
    var(--l) left top / var(--frame-w) 100% no-repeat,
    var(--l) right top / var(--frame-w) 100% no-repeat,
    var(--l) left bottom / 100% var(--frame-w) no-repeat;
}

.open-frame__icon {
  position: absolute;
  top: 0;
  left: 50%;
  width: 3.4rem;
  height: 3.4rem;
  margin: -1.7rem 0 0 -1.7rem;
  stroke-width: 1.5;
}

/* Häkchenliste */
.check-list {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
}

.check-list .icon {
  margin-top: 0.2em;
  color: var(--c-marine);
}

.on-dark .check-list .icon {
  color: var(--c-cyan);
}

/* Schlagwort-Marken */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 0.4rem 0.95rem;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: var(--c-white);
  font-size: var(--fs-small);
  font-weight: 500;
}

/* Hervorgehobene Platzhalter, die vor Veröffentlichung ersetzt werden müssen */
.platzhalter {
  padding: 0.1em 0.35em;
  background: #fff1b8;
  color: var(--c-text);
  border-radius: 2px;
}

/* 6 Kopfbereich und Navigation --------------------------------------------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--c-white);
  color: var(--c-deep);
  font-weight: 600;
  border-radius: 0 0 var(--radius) var(--radius);
  transform: translateY(-120%);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--c-deep);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.site-logo {
  display: inline-flex;
  align-items: center;
  padding-block: 0.4rem;
}

/* Logo-Höhe im Verhältnis zur Kopfzeile (ca. 2/3 der Höhe) */
.site-logo img {
  display: block;
  width: auto;
  height: 2.9rem;
}

@media (min-width: 48rem) {
  .site-logo img {
    height: 3.25rem;
  }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-right: -0.6rem;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--c-white);
  cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 1.5rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle__bars {
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bars::before { transform: translateY(-7px); }
.nav-toggle__bars::after { transform: translateY(7px); }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: rotate(-45deg);
}

/* Mobile Navigation: Feld unter der Kopfzeile, per Schaltfläche ein-/ausblendbar */
.site-nav {
  position: absolute;
  top: 100%;
  left: calc(-1 * var(--gutter));
  right: calc(-1 * var(--gutter));
  padding: 0.5rem var(--gutter) 1.5rem;
  background: var(--c-deep);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-0.5rem);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}

.site-nav.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition-delay: 0s;
}

.site-nav ul {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.5rem 0.25rem;
  color: var(--c-white);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-nav a[aria-current="page"] {
  color: var(--c-cyan);
}

.site-nav .nav-cta {
  justify-content: center;
  margin-top: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius);
  font-weight: 600;
}

.site-nav .nav-cta:hover {
  background: var(--c-white);
  color: var(--c-deep);
}

@media (min-width: 48rem) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    padding: 0;
    background: none;
    border: 0;
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .site-nav ul {
    display: flex;
    align-items: center;
    gap: clamp(1.75rem, 3.2vw, 2.5rem);
  }

  .site-nav a {
    position: relative;
    min-height: 2.75rem;
    padding: 0.5rem 0;
    border-bottom: 0;
    font-size: 1rem;
  }

  /* Unterstrich für Hover und aktive Seite */
  .site-nav a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.3rem;
    height: 2px;
    background: var(--c-cyan);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
  }

  .site-nav a:not(.nav-cta):hover::after,
  .site-nav a:not(.nav-cta)[aria-current="page"]::after {
    transform: scaleX(1);
  }

  .site-nav a[aria-current="page"] {
    color: var(--c-white);
  }

  .site-nav .nav-cta {
    margin: 0 0 0 0.5rem;
    padding-inline: 1.5rem;
  }

  .site-nav .nav-cta[aria-current="page"] {
    background: var(--c-white);
    color: var(--c-deep);
  }
}

/* 7 Hero ------------------------------------------------------------------- */
.hero,
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--c-deep);
}

/* Feines Raster und Lichtschein im Hintergrund */
.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 3.5rem 3.5rem;
  -webkit-mask-image: radial-gradient(ellipse 75% 85% at 75% 35%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 85% at 75% 35%, #000 0%, transparent 75%);
}

.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(ellipse 60% 70% at 78% 30%, rgba(21, 80, 113, 0.95) 0%, rgba(21, 80, 113, 0) 70%);
}

.hero__inner {
  display: grid;
  gap: clamp(4.5rem, 9vw, 5rem);
  align-items: center;
  padding-block: clamp(4rem, 8vw, 6.5rem) clamp(5rem, 10vw, 8rem);
}

.hero h1 {
  max-width: 15ch;
  margin-bottom: 0.5em;
  font-size: var(--fs-hero);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.hero .lead {
  max-width: 34rem;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.88);
}

@media (min-width: 62rem) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  }
}

/* Bühne: Desktop, Tablet und Smartphone im offenen Logo-Rahmen (rein dekorativ).
   Alle Maße der Grafik stehen in em und hängen an der Schriftgröße von .browser.
   Diese folgt über die Container-Einheit cqw der Breite der Bühne – die Grafik
   skaliert dadurch auf jedem Bildschirm als Ganzes, wie ein Bild. */
.stage {
  container-type: inline-size;
  width: min(100%, 33rem);
  margin-inline: auto;
  padding: clamp(2.25rem, 6vw, 3rem) clamp(1.5rem, 4vw, 2.25rem) clamp(1.75rem, 5vw, 2.5rem);
}

.stage .open-frame__icon {
  color: var(--c-white);
}

/* Das Browserfenster steht hinten links. Tablet und Smartphone staffeln sich
   davor nach rechts unten; der untere Außenabstand hält dafür Platz frei. */
.browser {
  position: relative;
  width: 25.6em;
  margin-bottom: 2.2em;
  font-size: 0.8rem; /* Rückfall für Browser ohne Container-Einheiten */
  font-size: 3.5cqw;
  border-radius: 0.6em;
  background: var(--c-white);
  box-shadow: 0 2em 4em -1.5em rgba(0, 0, 0, 0.55);
}

.browser__bar {
  display: flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.6em 0.8em;
  border-radius: 0.6em 0.6em 0 0;
  background: #e6ecf1;
}

.browser__dot {
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: #b9c4cd;
}

.browser__url {
  flex: 1;
  margin-left: 0.75em;
  padding: 0.38em 1.14em;
  border-radius: 999px;
  background: var(--c-white);
  font-family: var(--font-mono);
  font-size: 0.66em;
  line-height: 1.4;
  color: var(--c-muted);
  white-space: nowrap;
  overflow: hidden;
}

.browser__page {
  display: grid;
  gap: 0.9em;
  padding: 0.9em 1em 1.2em;
}

.mock-nav {
  display: flex;
  align-items: center;
  gap: 0.6em;
}

.mock-logo {
  width: 1.1em;
  height: 1.1em;
  margin-right: auto;
  border-radius: 0.2em;
  background: var(--c-marine);
}

.mock-link {
  width: 1.9em;
  height: 0.32em;
  border-radius: 99px;
  background: #cfd8e0;
}

.mock-btn {
  width: 2.6em;
  height: 0.95em;
  border-radius: 0.2em;
  background: var(--c-marine);
}

.mock-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0.9em;
  align-items: center;
  padding: 1.1em 1em;
  border-radius: 0.4em;
  background: linear-gradient(135deg, var(--c-deep) 0%, var(--c-marine) 100%);
}

.mock-line {
  display: block;
  height: 0.34em;
  margin-bottom: 0.42em;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.4);
  transform-origin: left center;
}

.mock-line--head {
  height: 0.7em;
  margin-bottom: 0.5em;
  background: var(--c-white);
}

.mock-line--w90 { width: 90%; }
.mock-line--w75 { width: 75%; }
.mock-line--w60 { width: 60%; }

.mock-cta {
  display: block;
  width: 3.3em;
  height: 1.05em;
  margin-top: 0.7em;
  border-radius: 0.2em;
  background: var(--c-cyan);
}

.mock-img {
  aspect-ratio: 4 / 3;
  border-radius: 0.3em;
  background:
    radial-gradient(circle at 72% 30%, rgba(255, 255, 255, 0.9) 0 9%, transparent 10%),
    linear-gradient(160deg, #3f9ecb 0%, #5cc8f0 100%);
}

.mock-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6em;
}

.mock-card {
  display: grid;
  align-content: start;
  gap: 0.35em;
  padding: 0.6em 0.6em 1.2em;
  border: 1px solid #e1e7ec;
  border-radius: 0.3em;
}

.mock-card::before {
  content: "";
  width: 0.95em;
  height: 0.95em;
  margin-bottom: 0.15em;
  border-radius: 0.2em;
  background: #d5e6f0;
}

.mock-card .mock-line {
  margin: 0;
  background: #d5dde4;
}

.mock-card .mock-line--head {
  height: 0.4em;
  background: #9fb0bd;
}

/* Tablet und Smartphone stehen gestaffelt vor dem Browserfenster */
.tablet,
.phone {
  position: absolute;
  display: grid;
  align-content: start;
  background: var(--c-white);
  box-shadow: 0 1.25em 2.5em -0.75em rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.device-layer {
  position: absolute;
  inset: 0;
}

/* Tablet (Hochformat): vor dem Browserfenster, rechts.
   Eigene Schriftgröße 1.2em vergrößert das Tablet samt Inhalt als Ganzes. */
.tablet {
  left: 13.64em;
  top: 7.75em;
  gap: 0.45em;
  width: 8.75em;
  font-size: 1.2em;
  aspect-ratio: 3 / 4;
  padding: 0.65em 0.6em;
  border: 0.3em solid #06202f;
  border-radius: 0.75em;
}

.tablet .mock-nav {
  gap: 0.3em;
}

.tablet .mock-logo {
  width: 0.7em;
  height: 0.7em;
}

.tablet .mock-link {
  width: 1.1em;
  height: 0.24em;
}

.tablet .mock-btn {
  width: 1.5em;
  height: 0.6em;
}

.tablet__hero,
.phone__hero {
  border-radius: 0.25em;
  background: linear-gradient(135deg, var(--c-deep) 0%, var(--c-marine) 100%);
}

.tablet__hero {
  padding: 0.7em 0.6em;
}

.tablet .mock-line {
  height: 0.26em;
  margin-bottom: 0.32em;
}

.tablet .mock-line--head {
  height: 0.5em;
}

.tablet .mock-cta {
  width: 2.2em;
  height: 0.7em;
  margin-top: 0.45em;
}

.tablet__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4em;
}

.tablet .mock-card {
  gap: 0.3em;
  padding: 0.45em;
}

.tablet .mock-card::before {
  width: 0.7em;
  height: 0.7em;
}

/* Smartphone: ganz vorne, rechts außen */
.phone {
  left: 21.57em;
  top: 13em;
  gap: 0.35em;
  width: 6em;
  aspect-ratio: 9 / 16.5;
  padding: 0.55em 0.45em 0;
  border: 0.2em solid #06202f;
  border-radius: 0.9em;
}

.phone .mock-nav {
  gap: 0.25em;
}

.phone .mock-logo {
  width: 0.6em;
  height: 0.6em;
}

.phone .mock-link {
  width: 0.9em;
  height: 0.22em;
}

.phone__hero {
  padding: 0.55em 0.45em;
}

.phone .mock-line {
  height: 0.22em;
  margin-bottom: 0.28em;
}

.phone .mock-line--head {
  height: 0.42em;
}

.phone .mock-cta {
  width: 1.9em;
  height: 0.6em;
  margin-top: 0.4em;
}

.phone .mock-card {
  padding: 0.4em;
}

.phone .mock-card::before {
  width: 0.6em;
  height: 0.6em;
}

.tablet .mock-card .mock-line,
.phone .mock-card .mock-line {
  margin: 0;
}

/* Aufbau-Animation der Bühne (nur transform und opacity) */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(1rem); }
  to { opacity: 1; transform: none; }
}

@keyframes grow-in {
  from { opacity: 0; transform: scaleX(0.15); }
  to { opacity: 1; transform: none; }
}

.hero__content > * {
  animation: rise-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero__content > :nth-child(2) { animation-delay: 0.08s; }
.hero__content > :nth-child(3) { animation-delay: 0.16s; }
.hero__content > :nth-child(4) { animation-delay: 0.24s; }
.hero__content > :nth-child(5) { animation-delay: 0.32s; }

/* Aufbau der Grafik: läuft einmal beim Laden der Seite ab und bleibt dann stehen.
   Reihenfolge: Browserfenster (bis ca. 1,3 s), Tablet (bis ca. 2,1 s), Smartphone (bis ca. 2,9 s). */
.browser { animation: rise-in 0.6s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.browser__page > * { animation: rise-in 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.browser__page > :nth-child(1) { animation-delay: 0.5s; }
.browser__page > :nth-child(2) { animation-delay: 0.65s; }
.browser__page > :nth-child(3) { animation-delay: 0.85s; }
.browser .mock-hero .mock-line { animation: grow-in 0.4s 0.75s ease-out both; }
.browser .mock-hero .mock-line:nth-child(2) { animation-delay: 0.8s; }
.browser .mock-hero .mock-line:nth-child(3) { animation-delay: 0.85s; }
.browser .mock-hero .mock-line:nth-child(4) { animation-delay: 0.9s; }

.device-layer--tablet { animation: rise-in 0.5s 1.3s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.tablet > * { animation: rise-in 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.tablet > :nth-child(1) { animation-delay: 1.5s; }
.tablet > :nth-child(2) { animation-delay: 1.6s; }
.tablet > :nth-child(3) { animation-delay: 1.7s; }

.device-layer--phone { animation: rise-in 0.5s 2s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.phone > * { animation: rise-in 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.phone > :nth-child(1) { animation-delay: 2.2s; }
.phone > :nth-child(2) { animation-delay: 2.3s; }
.phone > :nth-child(3) { animation-delay: 2.4s; }
.phone > :nth-child(4) { animation-delay: 2.5s; }

/* Sanftes Schweben für das Code-Zeichen in den Seitenköpfen */
@keyframes float {
  0%, 100% { transform: none; }
  50% { transform: translateY(-0.5rem); }
}

/* Kopfbereich der Unterseiten */
.page-hero__inner {
  position: relative;
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.page-hero h1 {
  max-width: 20ch;
}

.page-hero .lead {
  max-width: 40rem;
  color: rgba(255, 255, 255, 0.88);
}

.page-hero__mark {
  position: absolute;
  right: 0;
  bottom: 2rem;
  width: 7rem;
  height: 7rem;
  color: var(--c-white);
  opacity: 0.08;
  stroke-width: 1;
  animation: float 9s ease-in-out infinite;
}

/* Handy und Tablet: Das Code-Zeichen bekommt einen eigenen Platz unter dem Text,
   damit es nichts überdeckt. Der Kopfbereich wird dafür entsprechend höher. */
@media (max-width: 61.99rem) {
  .page-hero__inner {
    padding-top: clamp(3.5rem, 10vw, 5rem);
  }

  .page-hero__inner:has(.page-hero__mark) {
    padding-bottom: 10.5rem;
  }
}

@media (min-width: 62rem) {
  .page-hero__mark {
    right: -1rem;
    top: 50%;
    bottom: auto;
    width: 17rem;
    height: 17rem;
    margin-top: -8.5rem;
    opacity: 0.07;
  }
}

/* 8 Abschnitte ------------------------------------------------------------- */

/* Drei Stärken mit kleinen animierten Motiven */
.pillars {
  display: grid;
  gap: 2.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pillar {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
}

.pillar h3 {
  margin: 0.3rem 0 0.4rem;
}

.pillar p {
  color: var(--c-muted);
}

@media (min-width: 48rem) {
  .pillars {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(2rem, 4vw, 3.5rem);
  }

  .pillar {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .pillar h3 {
    margin-top: 0;
  }
}

/* Motiv-Kachel (dekorativ) */
.motif {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-ice);
  color: var(--c-marine);
}

/* Motiv 1: Sprechblase, in der gerade geschrieben wird */
.motif__bubble {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.22rem;
  width: 2.3rem;
  height: 1.5rem;
  margin-top: -0.25rem;
  border-radius: 0.5rem;
  background: var(--c-marine);
}

.motif__bubble::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  bottom: -0.22rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 0 0 2px 0;
  background: var(--c-marine);
  transform: rotate(45deg);
}

.motif__bubble i {
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 50%;
  background: var(--c-white);
  animation: dot-pulse 1.6s ease-in-out infinite;
}

.motif__bubble i:nth-child(2) { animation-delay: 0.2s; }
.motif__bubble i:nth-child(3) { animation-delay: 0.4s; }

@keyframes dot-pulse {
  0%, 60%, 100% { opacity: 0.4; transform: none; }
  30% { opacity: 1; transform: translateY(-0.18rem); }
}

/* Motiv 2: Ein Seitenlayout setzt sich zusammen */
.motif__wire {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: 0.26rem 1fr 1fr;
  gap: 0.2rem;
  width: 2.4rem;
  height: 1.9rem;
  padding: 0.24rem;
  border: 1.5px solid var(--c-marine);
  border-radius: 3px;
}

.motif__wire i {
  border-radius: 1px;
  background: var(--c-marine);
  animation: block-loop 6s ease-in-out infinite;
}

.motif__wire i:nth-child(1) { grid-column: 1 / -1; }
.motif__wire i:nth-child(2) { grid-row: 2 / 4; background: var(--c-cyan); animation-delay: 0.2s; }
.motif__wire i:nth-child(3) { animation-delay: 0.4s; }
.motif__wire i:nth-child(4) { animation-delay: 0.6s; }

@keyframes block-loop {
  0% { opacity: 0; transform: scale(0.5); }
  10%, 88% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: scale(0.5); }
}

/* Motiv 3: Pfeile drehen sich in Abständen weiter */
.motif--care .icon {
  width: 1.9rem;
  height: 1.9rem;
  animation: spin-pause 6s cubic-bezier(0.6, 0, 0.3, 1) infinite;
}

@keyframes spin-pause {
  0%, 65% { transform: none; }
  100% { transform: rotate(360deg); }
}

.num {
  display: block;
  margin-bottom: 0.9rem;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--c-marine);
}

/* Leistungs-Zeilen (Startseite) */
.service-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--c-line);
}

.service-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 1.5rem;
  align-items: center;
  padding: 1.75rem 0;
  border-top: 1px solid var(--c-line);
  color: inherit;
  text-decoration: none;
}

.service-row .num {
  grid-column: 1 / -1;
  margin: 0;
}

.service-row h3 {
  margin: 0;
  font-size: clamp(1.4rem, 1.1rem + 1.3vw, 2rem);
  letter-spacing: -0.02em;
}

.service-row p {
  grid-column: 1;
  margin: 0;
  max-width: 38rem;
  color: var(--c-muted);
}

.service-row__arrow {
  grid-column: 2;
  grid-row: 2 / span 2;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--c-field);
  border-radius: 50%;
  color: var(--c-marine);
  transition: transform 0.25s ease;
}

.service-row:hover h3 {
  color: var(--c-marine);
}

.service-row:hover .service-row__arrow {
  background: var(--c-marine);
  border-color: var(--c-marine);
  color: var(--c-white);
  transform: translateX(6px);
}

@media (min-width: 56rem) {
  .service-row {
    grid-template-columns: 4rem minmax(0, 5fr) minmax(0, 6fr) auto;
    gap: 2rem;
    padding: 2.25rem 0;
  }

  .service-row .num,
  .service-row p,
  .service-row__arrow {
    grid-column: auto;
    grid-row: auto;
  }
}

/* Ablauf in vier Schritten */
.steps {
  display: grid;
  gap: 2.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 4rem;
  counter-increment: step;
}

.step::before {
  content: "0" counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--c-silver);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
}

/* Verbindungslinie zum nächsten Schritt (mobil senkrecht) */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.375rem;
  top: 3.25rem;
  bottom: -2.25rem;
  width: 1px;
  background: rgba(196, 204, 212, 0.55);
  transform-origin: left top;
}

.step h3 {
  margin-bottom: 0.4em;
}

.step p {
  color: rgba(255, 255, 255, 0.86);
}

/* Beim Einblenden springt die Nummer kurz an und die Linie wächst zum nächsten Schritt */
.step.reveal::before {
  transform: scale(0.5);
}

.step.reveal.is-visible::before {
  transform: none;
  transition: transform 0.5s 0.25s cubic-bezier(0.3, 1.5, 0.5, 1);
}

.step.reveal:not(:last-child)::after {
  transform: scale(0);
}

.step.reveal.is-visible:not(:last-child)::after {
  transform: none;
  transition: transform 0.9s 0.45s ease;
}

@media (min-width: 62rem) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
  }

  .step {
    padding: 4rem 0 0;
  }

  /* Am Desktop verläuft die Linie waagerecht */
  .step:not(:last-child)::after {
    top: 1.375rem;
    bottom: auto;
    left: 3.5rem;
    right: -1.25rem;
    width: auto;
    height: 1px;
  }
}

/* Handlungsaufruf im Logo-Rahmen */
.cta {
  padding-block: clamp(4.5rem, 9vw, 7rem);
  background: var(--c-marine);
}

.cta__box {
  max-width: 52rem;
  margin-inline: auto;
  padding: clamp(3rem, 7vw, 4.5rem) clamp(1.5rem, 6vw, 4rem) clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}

.cta__box h2 {
  margin-bottom: 0.5em;
}

.cta__box p {
  max-width: 34rem;
  margin-inline: auto;
  font-size: var(--fs-lead);
  color: rgba(255, 255, 255, 0.9);
}

.cta__box .btn-row {
  justify-content: center;
  margin-top: 2rem;
}

/* Leistungen im Detail */
.service {
  display: grid;
  gap: 1.75rem clamp(2rem, 6vw, 5rem);
  padding-block: clamp(3.25rem, 7vw, 4.5rem);
  border-top: 1px solid var(--c-line);
}

.service:first-child {
  padding-top: 0;
  border-top: 0;
}

.service:last-child {
  padding-bottom: 0;
}

.service__head h2 {
  margin-bottom: 0;
}

.service__body > p {
  max-width: 40rem;
}

.service__more {
  color: var(--c-muted);
}

.service__body .check-list {
  margin-top: 1.75rem;
}

.service__note {
  margin-top: 1.5rem;
  font-size: var(--fs-small);
  color: var(--c-muted);
}

@media (min-width: 56rem) {
  .service {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    align-items: center;
  }
}

/* Kleine animierte Grafiken zu den Leistungen (dekorativ, im Stil eines Browserfensters).
   Alle Maße in em: Die Schriftgröße von .illu bestimmt die Größe der ganzen Grafik. */
.illu {
  font-size: 1rem;
  width: 12em;
  margin-bottom: 1.75rem;
  border: 1px solid var(--c-line);
  border-radius: 8px;
  background: var(--c-white);
  box-shadow: 0 1.25em 2.25em -1.5em rgba(11, 43, 64, 0.45);
  overflow: hidden;
}

.illu__bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.3em;
  height: 1.5em;
  padding: 0 0.6em;
  border-bottom: 1px solid var(--c-line);
  background: var(--c-ice);
}

.illu__bar i {
  width: 0.4em;
  height: 0.4em;
  border-radius: 50%;
  background: #b9c4cd;
}

.illu__body {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-content: start;
  gap: 0.45em;
  height: 6.75em;
  padding: 0.65em;
}

.illu__nav {
  grid-column: 1 / -1;
  width: 45%;
  height: 0.3em;
  border-radius: 99px;
  background: #cfd8e0;
}

.illu__hero {
  position: relative;
  grid-column: 1 / -1;
  height: 2.6em;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--c-deep) 0%, var(--c-marine) 100%);
}

.illu__hero::after {
  content: "";
  position: absolute;
  left: 0.5em;
  bottom: 0.5em;
  width: 1.5em;
  height: 0.45em;
  border-radius: 2px;
  background: var(--c-cyan);
}

.illu__card {
  height: 1.5em;
  border: 1px solid #dfe6ec;
  border-radius: 3px;
  background: var(--c-white);
}

/* Grafik 1: Die Seite baut sich Baustein für Baustein auf */
.illu--build .illu__body > * {
  animation: build-loop 7s cubic-bezier(0.2, 0.7, 0.2, 1) infinite both;
}

.illu--build .illu__body > :nth-child(1) { animation-delay: 0.4s; }
.illu--build .illu__body > :nth-child(2) { animation-delay: 0.7s; }
.illu--build .illu__body > :nth-child(3) { animation-delay: 1s; }
.illu--build .illu__body > :nth-child(4) { animation-delay: 1.15s; }
.illu--build .illu__body > :nth-child(5) { animation-delay: 1.3s; }

@keyframes build-loop {
  0% { opacity: 0; transform: translateY(0.5em); }
  9%, 86% { opacity: 1; transform: none; }
  94%, 100% { opacity: 0; transform: translateY(0.5em); }
}

/* Grafik 2: Aus der alten Seite wird die neue */
.illu__layer {
  position: absolute;
  inset: 0.65em;
  display: grid;
  align-content: start;
  gap: 0.45em;
}

.illu__layer--old {
  grid-template-columns: repeat(3, 1fr);
  animation: swap-old 7s ease-in-out infinite;
}

.illu__layer--old span {
  height: 1.1em;
  border-radius: 1px;
  background: #c9d0d6;
}

.illu__layer--old span:nth-child(1) { grid-column: span 2; height: 0.9em; background: #aab4bd; }
.illu__layer--old span:nth-child(2) { height: 1.6em; }
.illu__layer--old span:nth-child(4) { grid-column: span 2; height: 1.7em; background: #b8c1c9; }
.illu__layer--old span:nth-child(5) { height: 0.7em; }
.illu__layer--old span:nth-child(6) { grid-column: 1 / -1; height: 0.8em; background: #d5dade; }

.illu__layer--new {
  grid-template-columns: repeat(2, 1fr);
  animation: swap-new 7s ease-in-out infinite;
}

.illu__tag {
  position: absolute;
  right: 1em;
  top: 0.45em;
  padding: 0.17em 0.65em;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.6em;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.illu__tag--old {
  background: #dfe5ea;
  color: var(--c-muted);
  animation: swap-old 7s ease-in-out infinite;
}

.illu__tag--new {
  background: var(--c-marine);
  color: var(--c-white);
  animation: swap-new 7s ease-in-out infinite;
}

@keyframes swap-old {
  0%, 38% { opacity: 1; transform: none; }
  48%, 90% { opacity: 0; transform: scale(0.96); }
  100% { opacity: 1; transform: none; }
}

@keyframes swap-new {
  0%, 38% { opacity: 0; transform: scale(1.04); }
  48%, 90% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: scale(1.04); }
}

/* Grafik 3: Aufgaben werden der Reihe nach abgehakt */
.illu--care .illu__body {
  grid-template-columns: 1fr;
  align-content: center;
  gap: 0.75em;
}

.illu__task {
  display: flex;
  align-items: center;
  gap: 0.6em;
}

.illu__task b {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 1.15em;
  height: 1.15em;
  border: 1.5px solid #c3ccd4;
  border-radius: 50%;
}

.illu__task b::before {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: 50%;
  background: var(--c-marine);
}

.illu__task b .icon {
  position: relative;
  width: 0.7em;
  height: 0.7em;
  color: var(--c-white);
  stroke-width: 3;
}

.illu__task b::before,
.illu__task b .icon {
  animation: tick-loop 7s ease-out infinite both;
}

.illu__task i {
  flex: 1;
  height: 0.4em;
  border-radius: 99px;
  background: #d5dde4;
}

.illu__task:nth-child(2) i { max-width: 62%; }
.illu__task:nth-child(3) i { max-width: 80%; }
.illu__task:nth-child(1) b::before, .illu__task:nth-child(1) b .icon { animation-delay: 0.5s; }
.illu__task:nth-child(2) b::before, .illu__task:nth-child(2) b .icon { animation-delay: 1.2s; }
.illu__task:nth-child(3) b::before, .illu__task:nth-child(3) b .icon { animation-delay: 1.9s; }

/* Grafik 4: Ein Beitrag erscheint und bekommt ein „Gefällt mir“ */
.illu--social .illu__body {
  grid-template-columns: 1fr;
  gap: 0.5em;
}

.illu--social .illu__body > * {
  animation: build-loop 7s cubic-bezier(0.2, 0.7, 0.2, 1) infinite both;
}

.illu--social .illu__body > :nth-child(1) { animation-delay: 0.4s; }
.illu--social .illu__body > :nth-child(2) { animation-delay: 0.6s; }
.illu--social .illu__body > :nth-child(3) { animation-delay: 0.8s; }

.illu__post-head,
.illu__post-foot {
  display: flex;
  align-items: center;
  gap: 0.5em;
  height: 1em;
}

.illu__post-head b {
  flex: none;
  width: 1em;
  height: 1em;
  border-radius: 50%;
  background: var(--c-marine);
}

.illu__post-head i,
.illu__post-foot i {
  width: 40%;
  height: 0.3em;
  border-radius: 99px;
  background: #cfd8e0;
}

.illu__post-foot i {
  width: 26%;
}

.illu__post-img {
  height: 2.4em;
  border-radius: 0.25em;
  background:
    radial-gradient(circle at 78% 32%, rgba(255, 255, 255, 0.9) 0 0.32em, transparent 0.36em),
    linear-gradient(160deg, #3f9ecb 0%, #5cc8f0 100%);
}

.illu__post-foot b {
  display: grid;
  place-items: center;
  color: var(--c-marine);
}

.illu__post-foot b .icon {
  width: 1em;
  height: 1em;
  stroke-width: 2;
  animation: like-pop 7s ease-out 1.6s infinite;
}

@keyframes like-pop {
  0%, 12%, 100% { transform: none; }
  4% { transform: scale(1.5); }
  8% { transform: scale(0.92); }
}

@keyframes tick-loop {
  0% { opacity: 0; transform: scale(0.3); }
  7%, 80% { opacity: 1; transform: none; }
  88%, 100% { opacity: 0; transform: scale(0.3); }
}

@media (min-width: 56rem) {
  .illu {
    font-size: 1.3rem;
  }
}

/* Qualitätsmerkmale */
.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.75rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-white);
  color: var(--c-marine);
  font-size: 1.2rem;
}

.feature h3 {
  margin: 0 0 0.3rem;
  font-size: 1.1rem;
}

.feature p {
  font-size: var(--fs-small);
  color: var(--c-muted);
}

/* Beim Einblenden springt das Icon kurz an */
.feature.reveal .feature__icon {
  transform: scale(0.6);
}

.feature.reveal.is-visible .feature__icon {
  transform: none;
  transition: transform 0.5s 0.2s cubic-bezier(0.3, 1.5, 0.5, 1);
}

@media (min-width: 56rem) {
  .features {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2.5rem;
  }
}

/* Häufige Fragen (funktioniert ohne JavaScript über <details>) */
.faq {
  max-width: 52rem;
  border-top: 1px solid var(--c-line);
}

.faq details {
  border-bottom: 1px solid var(--c-line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0;
  font-family: var(--font-head);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}

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

.faq summary .icon {
  color: var(--c-marine);
  transition: transform 0.25s ease;
}

.faq details[open] summary .icon {
  transform: rotate(45deg);
}

.faq summary:hover {
  color: var(--c-marine);
}

.faq details > p {
  max-width: 44rem;
  padding: 0 0 1.5rem;
  color: var(--c-muted);
}

/* Über mich: Code-Karte statt Porträtfoto (dekorativ) */
.code-card {
  border-radius: 8px;
  background: var(--c-deep);
  box-shadow: 0 1.5rem 3rem -1.5rem rgba(11, 43, 64, 0.55);
  overflow: hidden;
}

.code-card__bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
}

.code-card__bar .browser__dot {
  width: 0.55rem;
  height: 0.55rem;
  background: rgba(255, 255, 255, 0.25);
}

.code-card__bar span:last-child {
  margin-left: 0.6rem;
}

.code-card__body {
  padding: 1.25rem 1.35rem 1.5rem;
  font-family: var(--font-mono);
  font-size: clamp(0.76rem, 0.7rem + 0.3vw, 0.88rem);
  line-height: 1.8;
  color: #9db2c1;
  overflow-wrap: anywhere;
}

/* Die Zeilen erscheinen nacheinander, als würden sie gerade getippt */
.code-line {
  display: block;
  animation: type-in 0.3s ease-out both;
}

.code-line--in1 { padding-left: 1.2em; }
.code-line--in2 { padding-left: 2.4em; }

.code-line:nth-child(1) { animation-delay: 0.5s; }
.code-line:nth-child(2) { animation-delay: 0.75s; }
.code-line:nth-child(3) { animation-delay: 1s; }
.code-line:nth-child(4) { animation-delay: 1.25s; }
.code-line:nth-child(5) { animation-delay: 1.5s; }
.code-line:nth-child(6) { animation-delay: 1.75s; }
.code-line:nth-child(7) { animation-delay: 2s; }
.code-line:nth-child(8) { animation-delay: 2.25s; }
.code-line:nth-child(9) { animation-delay: 2.5s; }
.code-line:nth-child(10) { animation-delay: 2.75s; }
.code-line:nth-child(11) { animation-delay: 3s; }

@keyframes type-in {
  from { opacity: 0; transform: translateX(-0.4rem); }
  to { opacity: 1; transform: none; }
}

/* Blinkende Schreibmarke am Ende */
.code-caret {
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  margin-left: 0.3em;
  vertical-align: text-bottom;
  background: var(--c-cyan);
  animation: caret-blink 1.1s steps(1, end) infinite;
}

@keyframes caret-blink {
  0% { opacity: 1; }
  50% { opacity: 0; }
}

.tok-key { color: var(--c-cyan); }
.tok-str { color: var(--c-white); }

/* Arbeitsweise */
.principles {
  display: grid;
  gap: 2.75rem clamp(2rem, 4vw, 3.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.principles li {
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-line);
}

.principles p {
  color: var(--c-muted);
}

@media (min-width: 52rem) {
  .principles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Werdegang und Zertifikate */
.cv {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cv li {
  position: relative;
  padding: 0 0 1.75rem 1.75rem;
  border-left: 1px solid var(--c-line);
}

.cv li:last-child {
  padding-bottom: 0;
}

.cv li::before {
  content: "";
  position: absolute;
  left: -0.3rem;
  top: 0.45rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--c-marine);
}

.cv h4,
.certs h4 {
  margin: 0 0 0.2rem;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.cv p,
.certs p {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--c-muted);
}

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

.certs li {
  display: grid;
  grid-template-columns: 3.75rem 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-white);
}

.certs__issuer {
  display: grid;
  place-items: center;
  height: 2.5rem;
  border-radius: 3px;
  background: var(--c-ice);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--c-marine);
}

.sub-title {
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-marine);
}

/* Fließtext-Seiten (Impressum, Datenschutz) */
.prose {
  max-width: 46rem;
}

.prose h2 {
  margin-top: 2.25em;
  font-size: clamp(1.4rem, 1.2rem + 0.9vw, 1.85rem);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: 1.75em;
}

.prose li {
  margin-bottom: 0.4em;
}

.prose a {
  overflow-wrap: anywhere;
}

.prose__meta {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--c-line);
  font-size: var(--fs-small);
  color: var(--c-muted);
}

/* Hinweisseiten (404, Danke) */
.notice {
  display: grid;
  justify-items: center;
  gap: 1rem;
  max-width: 40rem;
  margin-inline: auto;
  padding-block: clamp(1rem, 4vw, 3rem);
  text-align: center;
}

.notice__code {
  margin-bottom: 1.5rem;
  padding: 2.25rem 3.25rem 1.75rem;
  font-family: var(--font-mono);
  font-size: clamp(3rem, 2rem + 6vw, 5rem);
  font-weight: 500;
  line-height: 1;
  color: var(--c-marine);
  --frame-a: #7d8a95;
  --frame-b: #c9d1d8;
}

.notice__code .open-frame__icon {
  color: var(--c-marine);
}

.notice .btn-row {
  justify-content: center;
  margin-top: 1rem;
}

/* 9 Formular --------------------------------------------------------------- */
.form-card {
  padding: clamp(1.5rem, 5vw, 2.75rem);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-white);
  box-shadow: 0 1.5rem 3rem -2rem rgba(11, 43, 64, 0.35);
}

/* Kleinere Zwischenüberschrift (Formular, Kontaktspalte) */
.title-sm {
  font-size: clamp(1.4rem, 1.2rem + 0.9vw, 1.85rem);
}

.field {
  margin-bottom: 1.35rem;
}

.field label,
.field__label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.field__optional {
  font-weight: 400;
  color: var(--c-muted);
}

.field input[type="text"],
.field input[type="email"],
.field textarea {
  display: block;
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--c-field);
  border-radius: var(--radius);
  background: var(--c-white);
  line-height: 1.5;
}

.field textarea {
  min-height: 10rem;
  resize: vertical;
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline-offset: 1px;
  border-color: var(--c-marine);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--c-error);
  border-width: 2px;
}

.field__error {
  margin: 0.4rem 0 0;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--c-error);
}

.field--check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 0.8rem;
  align-items: start;
}

.field--check input {
  width: 1.35rem;
  height: 1.35rem;
  margin: 0.15rem 0 0;
  accent-color: var(--c-marine);
}

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

.field--check .field__error {
  grid-column: 2;
}

/* Spamschutz: Feld ist für Menschen unsichtbar und bleibt leer */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  margin-top: 1rem;
  font-size: var(--fs-small);
  color: var(--c-muted);
}

.form-status {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--c-marine);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--c-ice);
}

.form-status--error {
  border-left-color: var(--c-error);
  background: #fdf1f0;
}

.form-status--success {
  border-left-color: var(--c-success);
  background: #eef7f2;
}

.form-status h3 {
  margin-bottom: 0.3em;
}

/* Kontaktangaben neben dem Formular */
.contact-list {
  display: grid;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 1rem;
}

.contact-list .feature__icon {
  margin-bottom: 0;
  background: var(--c-ice);
}

.contact-list h3 {
  margin: 0 0 0.2rem;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.contact-list a {
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* 10 Karte (lädt erst nach Einwilligung) ----------------------------------- */
.map {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(20rem, 45vw, 28rem);
  padding: 2rem var(--gutter);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background-color: var(--c-ice);
  background-image:
    linear-gradient(rgba(21, 80, 113, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 80, 113, 0.07) 1px, transparent 1px);
  background-size: 2.5rem 2.5rem;
  overflow: hidden;
}

.map__placeholder {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  max-width: 34rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-white);
  text-align: center;
}

/* Stecknadel hüpft in Abständen, darunter ein kleiner Schatten */
.map__pin {
  position: relative;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  color: var(--c-marine);
}

.map__pin .icon {
  position: relative;
  width: 2.1rem;
  height: 2.1rem;
  animation: pin-hop 3.5s ease-in-out infinite;
}

.map__pin::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.1rem;
  width: 1.5rem;
  height: 0.4rem;
  margin-left: -0.75rem;
  border-radius: 50%;
  background: rgba(21, 80, 113, 0.22);
  animation: pin-shadow 3.5s ease-in-out infinite;
}

@keyframes pin-hop {
  0%, 55%, 100% { transform: none; }
  25% { transform: translateY(-0.5rem); }
}

@keyframes pin-shadow {
  0%, 55%, 100% { opacity: 1; transform: none; }
  25% { opacity: 0.45; transform: scale(0.6); }
}

.map__placeholder p {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--c-muted);
}

.map__placeholder .btn-row {
  justify-content: center;
  margin-top: 0.5rem;
}

.map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* 11 Einwilligung (Cookie-Meldung) ----------------------------------------- */
.consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: var(--gutter);
  pointer-events: none;
  animation: rise-in 0.4s ease both;
}

.consent__box {
  max-width: 44rem;
  margin-inline: auto;
  padding: clamp(1.25rem, 4vw, 1.75rem);
  border: 1px solid var(--c-line);
  border-top: 3px solid var(--c-marine);
  border-radius: var(--radius);
  background: var(--c-white);
  color: var(--c-text);
  box-shadow: 0 1.5rem 4rem -1rem rgba(11, 43, 64, 0.5);
  pointer-events: auto;
  max-height: calc(100vh - 2 * var(--gutter));
  overflow-y: auto;
}

.consent__box h2 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.consent__box p {
  font-size: var(--fs-small);
  line-height: 1.55;
  color: var(--c-muted);
}

.consent__actions {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* Beide Schaltflächen sind bewusst gleich groß und gleich gut sichtbar */
.consent__actions .btn {
  width: 100%;
}

.btn--neutral {
  background: var(--c-ice);
  border-color: var(--c-field);
  color: var(--c-text);
}

.btn--neutral:hover {
  background: var(--c-line);
}

@media (min-width: 34rem) {
  .consent__actions {
    grid-template-columns: 1fr 1fr;
  }
}

/* 12 Fußbereich ------------------------------------------------------------ */
.site-footer {
  background: var(--c-deep);
  font-size: var(--fs-small);
}

.site-footer__grid {
  display: grid;
  gap: 2.5rem;
  padding-block: clamp(3rem, 7vw, 4.5rem);
}

.site-footer__brand img {
  display: block;
  width: 11.5rem;
  margin-bottom: 1.25rem;
}

.site-footer__brand p {
  max-width: 22rem;
  color: rgba(255, 255, 255, 0.8);
}

.site-footer h2 {
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-silver);
}

.site-footer ul {
  display: grid;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a,
.link-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.25rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.site-footer a:hover,
.link-button:hover {
  color: var(--c-white);
  text-decoration: underline;
}

.link-button {
  padding: 0;
  border: 0;
  background: none;
  font-size: inherit;
  cursor: pointer;
}

.site-footer address {
  margin-bottom: 0.5rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

.site-footer__bottom {
  padding-block: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.75);
}

.site-footer__bottom p {
  margin: 0;
}

@media (min-width: 40rem) {
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (min-width: 62rem) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
  }

  .site-footer__brand {
    grid-column: auto;
  }
}

/* 13 Hilfsklassen und Bewegung --------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

[hidden] {
  display: none !important;
}

.mt-lg {
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

/* Sanftes Einblenden beim Scrollen (Klassen setzt js/main.js) */
.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Schmuck-Animationen starten erst, wenn ihr Abschnitt eingeblendet ist */
.reveal:not(.is-visible) *,
.reveal:not(.is-visible) *::before,
.reveal:not(.is-visible) *::after {
  animation-play-state: paused !important;
}

/* Kleine Bildschirme: weniger Text, mehr Luft zwischen den Elementen */
@media (max-width: 39.99rem) {
  /* Ausgeblendet werden nur Zusatztexte; Überschriften und Kernaussagen bleiben */
  .feature p,
  .service__more {
    display: none;
  }

  .service-row {
    padding: 1.6rem 0;
  }

  .btn-row {
    gap: 1rem;
  }

  .faq summary {
    padding: 1.6rem 0;
  }

  .certs {
    gap: 1.1rem;
  }

  .site-footer__grid {
    gap: 3rem;
  }
}

/* Nutzer, die weniger Bewegung wünschen: alle Animationen aus */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  /* Die Relaunch-Grafik zeigt dann nur den neuen Zustand */
  .illu__layer--old,
  .illu__tag--old {
    display: none;
  }
}

@media print {
  .reveal {
    opacity: 1;
    transform: none;
  }

  .site-header,
  .site-footer,
  .consent,
  .cta,
  .hero__visual {
    display: none;
  }
}
