/* Pommeranzen GmbH — gemeinsames Stylesheet für alle Seiten */

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("/assets/fonts/source-sans-3-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/source-sans-3-latin-italic.woff2") format("woff2");
}

:root {
  --white: #FFFFFF;
  --surface: #F5F5F5;
  --border: #E8E8EC;

  --iris: #5548D9;
  --iris-deep: #3A2FC4;
  --iris-light: #EEF0FC;

  --ink: #262626;
  --grey: #808080;

  --font: "Source Sans 3", Carlito, Calibri, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --h1-size: 62px;
  --h2-size: 46px;
  --h3-size: 26px;
  --body-size: 20px;
  --lead-size: 28px;
  --caption-size: 13px;
  --stat-size: 52px;

  --max-width: 900px;
  --section-pad: 116px;
  --nav-height: 74px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.7;
}

html {
  scroll-behavior: smooth;
}

/* ---------------------------------------------------------------- Navigation */

.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.top-nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.brand {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.02em;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.brand-name {
  color: var(--ink);
}

.brand-suffix {
  color: var(--iris);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: -6px -10px -6px 0;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--iris);
  outline-offset: 2px;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease, top 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 {
  top: -7px;
}

.nav-toggle-bars::after {
  top: 7px;
}

.top-nav.is-open .nav-toggle-bars {
  background: transparent;
}

.top-nav.is-open .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.top-nav.is-open .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.top-nav-links {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  margin-left: auto;
}

.top-nav-links a {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--grey);
  text-decoration: none;
  padding: 4px 0;
  line-height: 1;
  white-space: nowrap;
}

.top-nav-links a + a {
  border-left: 1px solid var(--border);
  padding-left: 10px;
}

.top-nav-links a:hover,
.top-nav-links a.is-active {
  color: var(--iris);
}

.nav-cta {
  flex: none;
  background: var(--iris);
  color: var(--white);
  border-radius: 6px;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}

.nav-cta:hover {
  background: var(--iris-deep);
}

/* ------------------------------------------------------------------ Sektionen */

.snap-container {
  margin-top: var(--nav-height);
}

section {
  margin: 0;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--section-pad) 24px;
}

/* Mehrspaltige Raster brauchen mehr Breite, sonst wird die Zeile je Spalte zu kurz. */
.section-inner.wide {
  max-width: 1080px;
}

.section-anchor {
  scroll-margin-top: calc(var(--nav-height) + 12px);
}

@media (min-width: 1024px) {
  .section-fill {
    min-height: 72vh;
    display: flex;
    align-items: center;
  }

  .section-fill > .section-inner {
    width: 100%;
  }
}

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

.section-surface {
  background: var(--surface);
}

.section-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(85, 72, 217, 0.10), transparent 42%),
    radial-gradient(circle at 88% 82%, rgba(85, 72, 217, 0.08), transparent 48%),
    linear-gradient(180deg, var(--white) 0%, #FAFAFE 100%);
}

.section-hero .section-inner {
  position: relative;
  z-index: 1;
  padding-top: 152px;
  padding-bottom: 152px;
  text-align: center;
}

.section-hero .lead {
  max-width: 700px;
}

/* Vollflächiges Band ohne eigene Sektionsfarbe — Schlussbereiche beider Seiten. */
.band {
  background: var(--white);
  padding: 128px 24px;
}

.band-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.band-inner > .lead {
  max-width: 640px;
}

.band-narrow {
  max-width: 640px;
}

.band-narrow > .lead {
  max-width: 560px;
}

.band .btn-primary {
  margin-top: 24px;
}

.center {
  text-align: center;
}

hr {
  border: none;
  border-bottom: 1px solid var(--border);
  margin: 0;
}

/* ---------------------------------------------------------------- Typografie */

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  font-size: var(--h1-size);
  font-weight: 400;
  letter-spacing: -0.035em;
  color: var(--ink);
  line-height: 1.12;
  margin-bottom: 28px;
}

h2 {
  font-size: var(--h2-size);
  font-weight: 400;
  letter-spacing: -0.028em;
  color: var(--ink);
  line-height: 1.22;
  margin-bottom: 28px;
}

h3 {
  font-size: var(--h3-size);
  font-weight: 500;
  letter-spacing: -0.014em;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 18px;
}

.lead {
  font-size: var(--lead-size);
  color: var(--ink);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.body {
  font-size: var(--body-size);
  color: var(--ink);
  line-height: 1.75;
}

.caption {
  font-size: var(--caption-size);
  font-weight: 400;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 22px;
}

.stat {
  font-size: var(--stat-size);
  font-weight: 400;
  letter-spacing: -0.04em;
  color: var(--iris);
  margin: 0;
  line-height: 1.05;
}

/* Erster kurzer Satz einer Kachel: fetter Lead-in in Iris (CI). */
.lead-in {
  color: var(--iris);
  font-weight: 600;
}

/* Abbindersatz am Ende einer Sektion. */
.closer {
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink);
  max-width: 700px;
  margin: 56px auto 0;
  text-wrap: balance;
}

/* Zweiteiliger Abbinder der Prüfdienstleister-Seite: Aussage plus Nachsatz. */
.abbinder {
  margin-top: 48px;
}

.abbinder h2 {
  font-size: 22px;
  max-width: 700px;
  margin: 0 auto;
}

.abbinder p {
  font-size: 24px;
  color: var(--grey);
  font-style: italic;
  margin-top: 16px;
}

.note {
  font-style: italic;
  margin-top: 32px;
}

.stat-body {
  max-width: 580px;
  margin: 8px auto 0;
}

.stat-body + .stat-body {
  margin-top: 16px;
}

.btn-primary {
  background: var(--iris);
  color: var(--white);
  border: none;
  border-radius: 6px;
  padding: 13px 26px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-block;
  margin-top: 32px;
}

.btn-primary:hover {
  background: var(--iris-deep);
}

.link-arrow {
  display: inline-block;
  margin-top: 28px;
  font-size: 18px;
  color: var(--iris);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.link-arrow:hover {
  border-bottom-color: var(--iris);
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 32px;
}

.icon {
  width: 28px;
  height: 28px;
  color: var(--iris);
  stroke-width: 1.5;
  display: inline-block;
  vertical-align: middle;
}

.icon-wrap {
  margin-bottom: 18px;
}

/* ------------------------------------------------------- Startseite: Bausteine */

/* Die Startseite nutzt durchgehend eigene Klassen. Alles, was
   /pruefdienstleister anfasst, bleibt darüber unverändert. */

/* Der Verlauf endet hell, die Folgesektion beginnt grau. Der Tonsprung plus
   die Linie aus .section-edge machen die Grenze klar sichtbar. */
.section-hero-home {
  background: linear-gradient(180deg, #EDEAFA 0%, #F5F3FC 40%, #FCFCFE 100%);
}

.section-edge {
  border-top: 1px solid var(--border);
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--iris);
  margin-bottom: 20px;
}

/* Karten mit Tiefe: feiner Rahmen, weicher Schatten, leichte Anhebung im Hover. */
.elevated {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(38, 38, 38, 0.04), 0 10px 28px rgba(38, 38, 38, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.elevated:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 4px rgba(38, 38, 38, 0.05), 0 18px 44px rgba(38, 38, 38, 0.10);
}

@media (prefers-reduced-motion: reduce) {
  .elevated,
  .elevated:hover {
    transform: none;
    transition: none;
  }
}

/* Sektion 1 Hero */

.section-hero-home .section-inner {
  max-width: 1160px;
  padding-top: 108px;
  padding-bottom: 128px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 56px;
  align-items: center;
  text-align: left;
}

/* Die Headline steht in drei Sätzen. Der Grad ist so gewählt, dass jeder Satz
   auch in der schmalen Textspalte auf einer Zeile bleibt. */
.hero-copy h1 {
  font-size: clamp(40px, 3.2vw, 54px);
}

.hero-grid .lead {
  margin: 0;
  max-width: none;
}

.hero-visual {
  display: block;
  width: 100%;
  height: auto;
}

.hero-visual text {
  font-family: var(--font);
  font-size: 15px;
}

.hero-trust {
  font-size: 16px;
  color: var(--grey);
  margin: 16px 0 0;
}

.nowrap {
  white-space: nowrap;
}

/* Sektion 2 Führungs-Cockpit */

.dashboard {
  max-width: 940px;
  margin: 56px auto 0;
  text-align: left;
}

.browser-frame {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 2px 6px rgba(38, 38, 38, 0.05), 0 26px 64px rgba(38, 38, 38, 0.11);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  background: #FAFAFC;
}

.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #DCDCE4;
}

.browser-body {
  padding: 28px;
}

.chart-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.chart-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px;
}

.chart-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
  margin: 0 0 8px;
}

.chart-value {
  font-size: 30px;
  letter-spacing: -0.03em;
  color: var(--iris);
  line-height: 1.1;
  margin: 0 0 4px;
}

.chart-meta {
  font-size: 13px;
  color: var(--grey);
  margin: 0 0 18px;
}

.chart-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.kpi-cell {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 18px;
}

.kpi-cell-label {
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--grey);
  line-height: 1.4;
  margin: 0 0 8px;
}

.kpi-cell-value {
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 10px;
}

/* Wichtigstes Einwand-Argument der Cockpit-Sektion, deshalb als Karte statt
   als loser Abbindersatz. */
.callout {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 720px;
  margin: 56px auto 0;
  padding: 22px 26px;
  border: 1px solid rgba(85, 72, 217, 0.35);
  border-radius: 10px;
  background: var(--iris-light);
  text-align: left;
}

.callout-icon {
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 3px;
  color: var(--iris);
  stroke-width: 2.25;
}

.callout p {
  margin: 0;
  font-size: 21px;
  line-height: 1.5;
  color: var(--ink);
}

/* Sektion 3 Drei Engpässe, drei Ergebnisse */

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 64px;
  text-align: left;
}

.result-card {
  padding: 32px 28px;
}

.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.result-num {
  font-size: 44px;
  letter-spacing: -0.04em;
  color: var(--iris);
  line-height: 1;
  margin: 0;
}

.result-icon {
  width: 26px;
  height: 26px;
  stroke-width: 1.5;
  color: var(--iris);
  opacity: 0.75;
}

.result-card p {
  margin: 0;
}

/* Sektion 4 Andocken statt ablösen */

.systems {
  margin-top: 48px;
}

.systems-rail {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
}

.systems-rail::before,
.systems-rail::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(85, 72, 217, 0.4));
}

.systems-rail::after {
  background: linear-gradient(90deg, rgba(85, 72, 217, 0.4), transparent);
}

.systems-rail span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--iris);
}

.systems-band {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Endloses Laufband. Drei identische Listen, verschoben wird um genau eine
   davon. Zwei Kopien reichen nicht, weil eine Liste schmaler als das
   Sichtfenster ist und beim Umlauf rechts eine Lücke entstünde. */
.marquee {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: systems-marquee 46s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes systems-marquee {
  to { transform: translateX(calc(-100% / 3)); }
}

.systems-list {
  display: flex;
  gap: 34px;
  margin: 0;
  padding: 0 17px;
  list-style: none;
}

.systems-list li {
  font-size: 17px;
  color: var(--grey);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.systems-list li:hover {
  color: var(--iris);
}

.systems-chip {
  flex: none;
  padding: 8px 16px;
  border: 1px solid rgba(85, 72, 217, 0.35);
  border-radius: 999px;
  background: var(--iris-light);
  color: var(--iris);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.systems-note {
  margin: 28px 0 0;
  font-size: var(--body-size);
  color: var(--ink);
}

/* Ohne Bewegung steht das Band still und zeigt die Auswahl statisch. */
@media (prefers-reduced-motion: reduce) {
  .marquee {
    overflow: visible;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .marquee-track {
    width: auto;
    animation: none;
  }

  .marquee-track > [aria-hidden="true"] {
    display: none;
  }

  .systems-list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 30px;
    padding: 0;
  }
}

/* Sektion 5 Ablauf */

.step-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 64px;
  text-align: left;
}

/* Verbindungslinie auf Höhe der Nummernmitte. Sie liegt hinter den Karten und
   wird nur in den Lücken sichtbar, damit sie beim Hover nicht mitwandert. */
.step-grid::before {
  content: "";
  position: absolute;
  top: 50px;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(85, 72, 217, 0.4);
}

.step {
  position: relative;
  padding: 28px 24px;
}

.step-num {
  font-size: 44px;
  letter-spacing: -0.04em;
  color: var(--iris);
  line-height: 1;
  margin: 0 0 18px;
}

.step p {
  margin: 0;
}

/* Sektion 6 Warum Pommeranzen */

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  text-align: left;
}

.stat-figure {
  font-size: 48px;
  letter-spacing: -0.04em;
  color: var(--iris);
  line-height: 1;
  margin: 0 0 10px;
}

.stat-caption {
  font-size: 17px;
  color: var(--ink);
  line-height: 1.5;
  margin: 0;
}

/* Sektion 7 FAQ */

.faq {
  max-width: 760px;
  margin: 48px auto 0;
  text-align: left;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  font-size: 20px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  transition: color 0.2s ease;
}

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

.faq-item summary:hover {
  color: var(--iris);
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--iris);
  outline-offset: 4px;
  border-radius: 4px;
}

.faq-icon {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--iris);
  stroke-width: 1.5;
}

/* Der senkrechte Balken dreht sich auf den waagerechten, aus dem Plus wird
   dadurch ein Minus. */
.faq-icon-bar {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-icon-bar {
  transform: rotate(90deg);
}

.faq-answer {
  font-size: 17px;
  color: var(--ink);
  line-height: 1.7;
  max-width: 640px;
  margin: 0;
  padding: 0 0 26px;
}

@media (prefers-reduced-motion: reduce) {
  .faq-icon-bar {
    transition: none;
  }
}

/* Sektion 8 Prüfdienstleister-Teaser. Als abgesetzte Karte, damit die
   Branchen-Spezialisierung nicht wie ein Fremdkörper im Seitenfluss steht. */
.teaser-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 56px;
  border: 1px solid rgba(85, 72, 217, 0.35);
  border-radius: 12px;
  background: var(--white);
  text-align: center;
}

.teaser-card > .lead {
  max-width: 560px;
  margin: 0 auto;
}

/* Sektion 9 Schluss-CTA */

.band-accent {
  background: var(--iris-light);
}

.about-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: center;
  margin-top: 8px;
  text-align: left;
}

.portrait {
  margin: 0;
}

.portrait-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center top;
  border-radius: 6px;
  background: var(--iris-light);
}

.portrait figcaption {
  font-size: 13px;
  color: var(--grey);
  margin-top: 12px;
}

/* ------------------------------------------- Prüfdienstleister: Bausteine */

.hero-title-line {
  display: block;
  text-wrap: balance;
}

.hero-stat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 36px 0 28px;
}

.hero-stat-num {
  font-size: 48px;
  font-weight: 400;
  letter-spacing: -0.035em;
  color: var(--iris);
  line-height: 1;
}

.hero-stat-label {
  font-size: 18px;
  color: var(--ink);
  line-height: 1.3;
  text-align: left;
}

.section-stat .section-inner {
  text-align: center;
  padding-top: 72px;
  padding-bottom: 72px;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px;
  margin-top: 92px;
}

.problem-grid p {
  margin: 0;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 96px;
  text-align: left;
}

.solution-grid p {
  margin-bottom: 0;
}

.compliance-note {
  margin: 56px auto 0;
  font-size: 14px;
  color: var(--grey);
  line-height: 1.6;
  max-width: 720px;
}

.compliance-note strong {
  color: var(--ink);
  font-weight: 500;
}

.dashboard-card {
  max-width: 800px;
  margin: 88px auto 0;
  padding: 48px;
}

.dashboard-gauges {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
}

.gauge-widget {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.gauge-svg {
  width: 80px;
  height: 80px;
  display: block;
}

.badge {
  display: inline-block;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 500;
  margin-top: 4px;
}

.badge-plan {
  background: #E8F5E9;
  color: #2E7D32;
}

.badge-watch {
  background: #FFF8E1;
  color: #F57F17;
}

.badge-action {
  background: #FFEBEE;
  color: #C62828;
}

.phase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 52px;
  margin-top: 96px;
  text-align: left;
  position: relative;
}

.phase-grid > div {
  position: relative;
  padding-right: 16px;
}

.phase-grid > div:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 14px;
  right: -16px;
  width: 32px;
  height: 1px;
  background: var(--border);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px;
  margin-top: 96px;
  text-align: left;
}

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

footer {
  background: var(--surface);
  text-align: center;
  padding: 56px 24px;
}

footer p {
  margin: 0;
}

.footer-brand {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.footer-address,
.footer-legal,
.footer-copy {
  font-size: 13px;
  color: var(--grey);
  margin-top: 8px;
}

.footer-legal a {
  color: var(--grey);
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--iris);
}

.footer-sep {
  margin: 0 8px;
}

/* -------------------------------------------------- Rechtstexte (.legal) */

.legal .wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.legal .back {
  display: inline-block;
  margin-bottom: 32px;
  font-size: 14px;
  color: var(--grey);
  text-decoration: none;
}

.legal .back:hover {
  color: var(--iris);
}

.legal h1 {
  margin: 0 0 28px;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.legal h2 {
  margin: 36px 0 12px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.legal p {
  margin: 0 0 16px;
  font-size: 17px;
}

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

.legal ul {
  margin: 0 0 16px;
  padding-left: 1.25em;
  font-size: 17px;
}

.legal li {
  margin-bottom: 8px;
}

.legal li:last-child {
  margin-bottom: 0;
}

.legal .imprint-block {
  margin-bottom: 8px;
}

/* Art. 21 Abs. 4 DSGVO verlangt, dass der Hinweis auf das Widerspruchsrecht
   getrennt von den übrigen Informationen dargestellt wird. */
.legal .highlight {
  margin: 28px 0;
  padding: 20px 24px;
  border: 1px solid rgba(85, 72, 217, 0.35);
  border-radius: 8px;
  background: var(--surface);
}

.legal .highlight-title {
  font-weight: 600;
  margin-bottom: 10px;
}

.legal .wrap a:not(.back) {
  color: var(--iris);
  text-decoration: none;
  word-break: break-word;
}

.legal .wrap a:not(.back):hover {
  text-decoration: underline;
}

/* ------------------------------------------------------------------ Animation */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  will-change: opacity, transform;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --------------------------------------------- Startseite: Satz und Umbruch */

/* Nur die Startseite. Beide Seiten teilen sich dieses Stylesheet, und
   /pruefdienstleister bleibt unverändert. Die Regeln stehen bewusst hinter den
   Bausteinen, damit sie deren Pixelbreiten überschreiben. */

/* Fließtext auf rund 65 Zeichen begrenzen. Mehrzeilige Absätze stehen
   linksbündig, der Block selbst bleibt mittig in der Sektion. Einzeilige
   Abbinder, Dachzeilen und Titel behalten ihre mittige Ausrichtung. */
.home .lead,
.home .band-inner > .lead,
.home .band-narrow > .lead,
.home .teaser-card > .lead {
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

/* Die Antwort richtet sich an ihrer Frage aus, nicht an der Sektionsmitte. */
.home .faq-answer {
  max-width: 65ch;
  text-align: left;
}

.home h1,
.home h2,
.home h3 {
  text-wrap: balance;
}

.home .lead,
.home .body,
.home .faq-answer,
.home .systems-note,
.home .closer,
.home .callout p,
.home .stat-caption {
  text-wrap: pretty;
}

/* Tabellenziffern, damit die Werte untereinander bündig stehen. */
.home .browser-frame,
.home .stat-row {
  font-variant-numeric: tabular-nums;
}

/* Lead-in als eigene Zeile über dem Fließtext, damit in den schmalen Spalten
   keine sehr kurzen Zeilen entstehen. */
.result-card .lead-in {
  display: block;
  margin: 0 0 14px;
  font-size: var(--body-size);
  line-height: 1.4;
  /* Drei Zeilen Platz, damit der Fließtext in allen Karten auf derselben
     Linie beginnt. Der längste Lead-in braucht sie, die kürzeren lassen
     den Rest frei. */
  min-height: 4.2em;
}

/* ---------------------------------------------------------------------- Mobil */

@media (max-width: 1023px) {
  .about-grid {
    grid-template-columns: 220px 1fr;
    gap: 36px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  /* Gestapelt steht der Headline die volle Breite zur Verfügung. */
  .hero-copy h1 {
    font-size: clamp(40px, 5.4vw, 54px);
  }

  .hero-visual {
    max-width: 480px;
  }

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

  /* Ab hier stehen die Nummern nicht mehr in einer Reihe. */
  .step-grid::before {
    display: none;
  }
}

/* Die Prüfdienstleister-Navigation braucht rund 1170px für eine Zeile. Darunter
   liefe sie aus dem Viewport, deshalb übernimmt ab hier das Burger-Menü. */
@media (max-width: 1200px) {
  :root { --nav-height: 60px; }

  .top-nav-inner {
    padding: 12px 24px;
    gap: 12px;
  }

  .nav-toggle {
    display: flex;
    order: 3;
  }

  .nav-cta {
    order: 2;
    margin-left: auto;
  }

  .top-nav-links {
    display: none;
    order: 4;
    position: absolute;
    z-index: 60;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 8px 16px 16px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 40px rgba(38, 38, 38, 0.08);
  }

  .top-nav.is-open .top-nav-links {
    display: flex;
  }

  .top-nav-links a {
    white-space: normal;
    padding: 12px 0;
    line-height: 1.35;
    border-left: none !important;
    padding-left: 0 !important;
    border-top: 1px solid var(--border);
  }

  .top-nav-links a:first-of-type {
    border-top: none;
  }
}

@media (max-width: 768px) {
  :root { --nav-height: 56px; }

  .top-nav-inner {
    padding: 10px 16px;
    gap: 10px;
  }

  .brand {
    font-size: 15px;
  }

  .nav-cta {
    padding: 9px 12px;
    font-size: 13px;
  }

  .section-inner {
    padding: 48px 20px;
  }

  .section-hero .section-inner {
    padding-top: 64px;
    padding-bottom: 56px;
  }

  .section-stat .section-inner {
    padding-top: 44px;
    padding-bottom: 44px;
  }

  footer {
    padding: 36px 20px;
  }

  .hero-visual text {
    font-size: 18px;
  }

  .hero-copy h1 {
    font-size: clamp(32px, 9vw, 46px);
  }

  .eyebrow {
    font-size: 12px;
    margin-bottom: 14px;
  }

  .hero-trust {
    font-size: 13px;
  }

  .browser-body {
    padding: 16px;
  }

  .chart-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .chart-card {
    padding: 18px;
  }

  .chart-value {
    font-size: 26px;
  }

  .kpi-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .kpi-cell {
    padding: 14px 16px;
  }

  .kpi-cell-value {
    font-size: 20px;
  }

  .dashboard {
    margin-top: 36px;
  }

  .result-grid,
  .step-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 40px;
  }

  .result-card {
    padding: 26px 22px;
  }

  /* Gestapelt stehen die Karten untereinander, da gibt es keine Linie,
     auf die sich der Fließtext ausrichten müsste. */
  .result-card .lead-in {
    min-height: 0;
  }

  .result-num,
  .step-num {
    font-size: 38px;
  }

  .systems {
    margin-top: 36px;
  }

  .systems-band {
    flex-direction: column;
    gap: 18px;
  }

  .marquee {
    flex: none;
    width: 100%;
  }

  .systems-list {
    gap: 24px;
  }

  .systems-list li {
    font-size: 16px;
  }

  .systems-note {
    margin-top: 22px;
    font-size: 16px;
  }

  .callout {
    gap: 12px;
    margin-top: 36px;
    padding: 18px 20px;
  }

  .callout-icon {
    width: 21px;
    height: 21px;
  }

  .callout p {
    font-size: 18px;
  }

  .teaser-card {
    padding: 32px 24px;
    border-radius: 10px;
  }

  /* Die Dachzeile des Teasers ist deutlich länger als die übrigen. */
  .teaser-card .eyebrow {
    font-size: 11px;
    letter-spacing: 0.1em;
  }

  .stat-row {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 40px;
    padding-top: 32px;
  }

  .stat-figure {
    font-size: 40px;
  }

  .faq {
    margin-top: 32px;
  }

  .faq-item summary {
    font-size: 18px;
    padding: 20px 0;
  }

  .faq-answer {
    font-size: 16px;
    padding-bottom: 22px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  /* Gestapelt wirkt das Porträt linksbündig verloren — mittig unter der Überschrift. */
  .portrait {
    text-align: center;
  }

  .portrait-image {
    max-width: 260px;
    margin: 0 auto;
  }

  .closer {
    font-size: 19px;
    margin-top: 36px;
  }

  .problem-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 44px;
  }

  .solution-grid {
    grid-template-columns: 1fr;
    margin-top: 40px;
    gap: 20px;
  }

  .dashboard-card {
    margin-top: 40px;
    padding: 24px 18px;
  }

  .dashboard-gauges {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }

  .gauge-widget {
    flex: 0 0 calc(33.333% - 14px);
  }

  .phase-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 44px;
  }

  .phase-grid > div {
    border-bottom: 1px solid var(--border);
    padding-bottom: 24px;
    padding-right: 0;
  }

  .phase-grid > div::after {
    display: none;
  }

  .phase-grid > div:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .trust-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 44px;
  }

  .compliance-note {
    margin-top: 32px;
    font-size: 13px;
  }

  .card {
    padding: 22px 20px;
  }

  .caption {
    margin-bottom: 14px;
  }

  h1 {
    font-size: clamp(32px, 9vw, 46px);
    line-height: 1.14;
    margin-bottom: 16px;
    text-wrap: balance;
  }

  h2 {
    font-size: clamp(26px, 7vw, 36px);
    line-height: 1.22;
    margin-bottom: 18px;
    text-wrap: balance;
  }

  h3 {
    font-size: 21px;
    margin-bottom: 12px;
  }

  .hero-title-line {
    display: inline;
  }

  .hero-title-line + .hero-title-line::before {
    content: " ";
  }

  .hero-stat {
    gap: 10px;
    margin: 24px 0 20px;
  }

  .hero-stat-num {
    font-size: 36px;
  }

  .hero-stat-label {
    font-size: 15px;
  }

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

  .body {
    font-size: 17px;
    line-height: 1.65;
  }

  .stat {
    font-size: clamp(28px, 8vw, 40px);
    line-height: 1.12;
    text-wrap: balance;
    hyphens: auto;
    -webkit-hyphens: auto;
  }

  .btn-primary {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 22px;
  }
}
