/* =========================================================
   AMZwerk: Design-System
   Farben, Schriften und Bausteine für alle Seiten
   ========================================================= */

/* ---------- Schriften (lokal gehostet) ---------- */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Farben und Grundwerte ---------- */
:root {
  --petrol: #00687a;        /* Markenfarbe aus dem Logo */
  --petrol-deep: #0b2b31;   /* dunkle Flächen, Fußbereich */
  --paper: #f2f5f5;         /* heller Hintergrund */
  --amber: #e9a23b;         /* nur für den Erstgespräch-Knopf */

  --ink: #15262a;
  --ink-soft: #4a5e62;
  --line: #d5dfe0;
  --white: #ffffff;
  --petrol-tint: #e3eff1;

  --font-head: "Bricolage Grotesque", Georgia, serif;
  --font-body: "Public Sans", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 14px;
  --radius-sm: 8px;
  --section: clamp(64px, 9vw, 120px);
  --shadow: 0 1px 2px rgba(11, 43, 49, 0.06), 0 8px 24px rgba(11, 43, 49, 0.06);
  --shadow-lift: 0 2px 4px rgba(11, 43, 49, 0.06), 0 18px 40px rgba(11, 43, 49, 0.12);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--petrol); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--petrol-deep); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 1.6vw, 1.4rem); letter-spacing: -0.01em; line-height: 1.2; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--paper { background: var(--paper); }
.section--dark { background: var(--petrol-deep); color: #d8e5e7; }
.section--dark h2, .section--dark h3 { color: var(--white); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--petrol-deep); color: var(--white); padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: var(--white); }

/* ---------- Kicker: kleine Überzeile im Stil des Logo-Untertitels ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600;
  font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--petrol); margin: 0 0 18px;
}
/* vier steigende Balken wie im Logo */
.kicker::before {
  content: ""; width: 18px; height: 14px; flex: none;
  background:
    linear-gradient(currentColor, currentColor) 0 100% / 3px 35% no-repeat,
    linear-gradient(currentColor, currentColor) 5px 100% / 3px 55% no-repeat,
    linear-gradient(currentColor, currentColor) 10px 100% / 3px 75% no-repeat,
    linear-gradient(currentColor, currentColor) 15px 100% / 3px 100% no-repeat;
}
.section--dark .kicker, .hero .kicker { color: #7fc3cf; }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .kicker { justify-content: center; }
.lead { font-size: clamp(1.08rem, 1.4vw, 1.22rem); color: var(--ink-soft); max-width: 640px; }
.section--dark .lead { color: #b9cfd3; }

/* ---------- Knöpfe ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--amber); color: var(--petrol-deep);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s;
  box-shadow: 0 6px 18px rgba(233, 162, 59, 0.28);
}
.btn svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.btn:hover { color: var(--petrol-deep); background: #f0b051; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(233, 162, 59, 0.36); }
.btn:hover svg { transform: translateX(3px); }
.btn--small { min-height: 44px; padding: 10px 20px; font-size: 0.95rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; text-decoration: none; color: var(--petrol);
}
.link-arrow svg { width: 17px; height: 17px; transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.hero .link-arrow, .section--dark .link-arrow { color: var(--white); }

.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(11, 43, 49, 0.05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.logo { display: block; flex: none; }
.logo img { width: 172px; height: auto; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { list-style: none; display: flex; gap: 26px; }
.main-nav a:not(.btn) {
  position: relative; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.95rem; padding: 6px 0;
}
.main-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--petrol); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.main-nav a:not(.btn):hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--petrol); }
.nav-toggle {
  display: none; width: 48px; height: 48px; border: 0; background: transparent; color: var(--ink);
  align-items: center; justify-content: center; cursor: pointer; border-radius: var(--radius-sm); margin-right: -10px;
}
.nav-toggle .icon { width: 26px; height: 26px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

/* ---------- Startseite: Kopfbereich ---------- */
.hero {
  position: relative; color: var(--white); overflow: hidden;
  background: var(--petrol-deep);
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(11, 43, 49, 0.96) 0%, rgba(11, 43, 49, 0.86) 48%, rgba(0, 104, 122, 0.5) 100%);
}
.hero__inner {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 56px; align-items: center; padding-top: clamp(72px, 10vw, 136px); padding-bottom: clamp(72px, 9vw, 120px);
}
.hero h1 { color: var(--white); max-width: 14ch; }
.hero .lead { color: #c9dcdf; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.hero__note { margin: 18px 0 0; font-size: 0.92rem; color: #9fbec3; }

/* Kennzahlen-Karte im Kopfbereich (nur Desktop) */
.kpi-card {
  background: rgba(255, 255, 255, 0.97); color: var(--ink);
  border-radius: var(--radius); padding: 26px 26px 22px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.28);
}
.kpi-card__title { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; margin: 0 0 4px; }
.kpi-card__sub { font-size: 0.86rem; color: var(--ink-soft); margin: 0 0 18px; }
.kpi-card ul { list-style: none; }
.kpi-card li {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px;
  padding: 12px 0; border-top: 1px solid var(--line); font-weight: 600; font-size: 0.95rem;
}
.kpi-card li span { font-weight: 400; font-size: 0.82rem; color: var(--ink-soft); display: block; }
.mini-bars { display: flex; align-items: flex-end; gap: 3px; height: 26px; }
.mini-bars i { display: block; width: 6px; background: var(--petrol); border-radius: 2px 2px 0 0; opacity: 0.85; transform-origin: bottom; }
.js .kpi-card .mini-bars i { transform: scaleY(0.15); transition: transform 0.9s var(--ease); }
.js .kpi-card.is-visible .mini-bars i { transform: scaleY(1); }
.kpi-card li:nth-child(2) .mini-bars i { transition-delay: 0.1s; }
.kpi-card li:nth-child(3) .mini-bars i { transition-delay: 0.2s; }
.kpi-card li:nth-child(4) .mini-bars i { transition-delay: 0.3s; }

/* ---------- Unterseiten: Kopfbereich ---------- */
.page-hero { background: var(--paper); padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 8vw, 96px); position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 104, 122, 0.08), rgba(0, 104, 122, 0) 70%);
  pointer-events: none;
}
.page-hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.page-hero .lead { margin-bottom: 30px; }
.page-hero--text .page-hero__inner { grid-template-columns: minmax(0, 1fr); }
.page-hero--text .page-hero__inner > div { max-width: 760px; }
.breadcrumb { font-size: 0.86rem; color: var(--ink-soft); margin-bottom: 22px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--petrol); }

/* ---------- Bilder und Platzhalter ---------- */
.media { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--petrol-tint); box-shadow: var(--shadow); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--43 { aspect-ratio: 4 / 3; }
.media--32 { aspect-ratio: 3 / 2; }
.media--11 { aspect-ratio: 1 / 1; }
.media--white { background: var(--white); }
.media--white img { object-fit: contain; padding: 4%; }
.media figcaption, .media-caption { font-size: 0.86rem; color: var(--ink-soft); margin-top: 12px; }

.placeholder {
  position: relative; display: grid; place-items: center; border-radius: var(--radius); overflow: hidden;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 40px),
    linear-gradient(140deg, #00788c 0%, var(--petrol) 45%, #07434d 100%);
  box-shadow: var(--shadow);
}
.placeholder::after {
  /* steigende Balken unten rechts als ruhiges Markenmotiv */
  content: ""; position: absolute; right: 7%; bottom: 0; width: 26%; height: 34%; opacity: 0.16;
  background:
    linear-gradient(#fff, #fff) 0 100% / 18% 35% no-repeat,
    linear-gradient(#fff, #fff) 27% 100% / 18% 55% no-repeat,
    linear-gradient(#fff, #fff) 55% 100% / 18% 75% no-repeat,
    linear-gradient(#fff, #fff) 82% 100% / 18% 100% no-repeat;
}
.placeholder__icon {
  width: clamp(76px, 20%, 112px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, 0.12); color: var(--white);
  box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.05);
}
.placeholder__icon .icon { width: 42%; height: 42%; stroke-width: 1.5; }

/* ---------- Vertrauensleiste ---------- */
.trust { background: var(--white); border-bottom: 1px solid var(--line); }
.trust__list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); }
.trust__item { display: flex; gap: 16px; align-items: flex-start; padding: 30px 28px 30px 0; }
.trust__item + .trust__item { border-left: 1px solid var(--line); padding-left: 28px; }
.trust__icon {
  flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--petrol-tint); color: var(--petrol);
}
.trust__item strong { display: block; font-family: var(--font-head); font-size: 1.08rem; letter-spacing: -0.01em; margin-bottom: 2px; }
.trust__item p { margin: 0; font-size: 0.94rem; color: var(--ink-soft); line-height: 1.5; }

/* ---------- Karten ---------- */
.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 32px);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.section--paper .card { border-color: transparent; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 0.98rem; margin: 0; }
.card__icon {
  width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center;
  background: var(--petrol-tint); color: var(--petrol); margin-bottom: 22px;
}
.card__num {
  font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; color: var(--petrol);
  font-variant-numeric: tabular-nums; display: block; margin-bottom: 16px;
}
.card__note { display: inline-block; margin-top: 14px; font-size: 0.84rem; color: var(--petrol); font-weight: 600; }

/* Leistungskarten mit Link */
.card--link { display: flex; flex-direction: column; text-decoration: none; color: inherit; overflow: hidden; }
.card--link::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: var(--petrol); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease);
}
.card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); color: inherit; }
.card--link:hover::before { transform: scaleX(1); }
.card--link p { flex: 1; margin-bottom: 22px; }
.card--link .link-arrow { margin-top: auto; }
.card--link:hover .link-arrow svg { transform: translateX(4px); }

/* Problemkarten */
.problem { border-top: 3px solid var(--petrol); border-radius: 0 0 var(--radius) var(--radius); }

/* ---------- Text neben Bild ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--reverse .split__media { order: -1; }
.split__text > :last-child { margin-bottom: 0; }

.kpi-list { list-style: none; margin-top: 28px; display: grid; gap: 4px; }
.kpi-list li { display: grid; grid-template-columns: 112px 1fr; gap: 18px; padding: 16px 0; border-top: 1px solid var(--line); }
.kpi-list li:last-child { border-bottom: 1px solid var(--line); }
.kpi-list dt, .kpi-list strong { font-family: var(--font-head); font-weight: 700; color: var(--petrol); font-size: 1.08rem; }
.kpi-list span { color: var(--ink-soft); font-size: 0.98rem; }

.check-list { list-style: none; display: grid; gap: 14px; margin-top: 8px; }
.check-list li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.check-list li::before {
  content: ""; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--petrol-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300687a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.section--dark .check-list li::before { background-color: rgba(255, 255, 255, 0.1); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237fc3cf' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); }

/* ---------- Ablauf ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: step; position: relative; }
.steps::before {
  content: ""; position: absolute; left: 24px; right: 24px; top: 24px; height: 2px;
  background: linear-gradient(90deg, var(--petrol), rgba(0, 104, 122, 0.15));
}
.js .steps::before { transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease) 0.2s; }
.js .steps.is-visible::before { transform: scaleX(1); }
.step { position: relative; counter-increment: step; }
.step::before {
  content: counter(step, decimal-leading-zero);
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--petrol); color: var(--petrol);
  font-family: var(--font-head); font-weight: 700; font-size: 0.98rem; margin-bottom: 22px; position: relative;
}
.section--paper .step::before { background: var(--paper); }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 0.97rem; margin: 0; }

/* ---------- Zielgruppen ---------- */
.audience { padding-top: 28px; border-top: 2px solid var(--ink); }
.audience h3 { font-size: 1.35rem; }
.audience p { color: var(--ink-soft); margin: 0; }
.audience__icon { color: var(--petrol); margin-bottom: 18px; }
.audience__icon .icon { width: 30px; height: 30px; }

/* ---------- Leistungsblöcke (Account Management) ---------- */
.feature-row { display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(20px, 4vw, 56px); padding: clamp(36px, 5vw, 56px) 0; border-top: 1px solid var(--line); }
.feature-row:last-child { border-bottom: 1px solid var(--line); }
.feature-row__num { font-family: var(--font-head); font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--petrol); opacity: 0.9; }
.feature-row h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.feature-row p { color: var(--ink-soft); }

/* ---------- Häufige Fragen ---------- */
.faq { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 0; font-family: var(--font-head); font-weight: 600; font-size: clamp(1.08rem, 1.5vw, 1.25rem); letter-spacing: -0.01em;
  transition: color 0.2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--petrol); }
.faq summary .faq__plus {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--petrol-tint); color: var(--petrol); transition: transform 0.3s var(--ease), background-color 0.3s;
}
.faq summary .faq__plus .icon { width: 18px; height: 18px; }
.faq details[open] .faq__plus { transform: rotate(45deg); background: var(--petrol); color: var(--white); }
.faq .faq__answer { padding: 0 60px 26px 0; color: var(--ink-soft); }
.faq .faq__answer p:last-child { margin: 0; }

/* ---------- Abschluss-Aufruf ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--petrol-deep); color: #c9dcdf; padding: clamp(72px, 9vw, 112px) 0; }
.cta-band::after {
  content: ""; position: absolute; right: 4%; bottom: 0; width: min(380px, 40vw); height: 78%; opacity: 0.09; pointer-events: none;
  background:
    linear-gradient(#7fc3cf, #7fc3cf) 0 100% / 17% 32% no-repeat,
    linear-gradient(#7fc3cf, #7fc3cf) 27.6% 100% / 17% 52% no-repeat,
    linear-gradient(#7fc3cf, #7fc3cf) 55.3% 100% / 17% 74% no-repeat,
    linear-gradient(#7fc3cf, #7fc3cf) 83% 100% / 17% 100% no-repeat;
}
.cta-band__inner { position: relative; max-width: 720px; }
.cta-band h2 { color: var(--white); }
.cta-band p { font-size: 1.12rem; margin-bottom: 32px; }

/* ---------- Galerie ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.gallery figure { margin: 0; }
.gallery .media, .gallery .placeholder { aspect-ratio: 1 / 1; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.gallery figure:hover .media, .gallery figure:hover .placeholder { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.gallery figcaption { font-size: 0.88rem; color: var(--ink-soft); margin-top: 12px; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.form-card { background: var(--white); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 8px; }
.field label small { font-weight: 400; color: var(--ink-soft); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 15px; min-height: 50px; transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--petrol); background: var(--white); box-shadow: 0 0 0 3px rgba(0, 104, 122, 0.15); }
.field--check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: 0.92rem; color: var(--ink-soft); }
.field--check input { width: 22px; height: 22px; min-height: 0; margin: 2px 0 0; accent-color: var(--petrol); }
.field--check label { font-weight: 400; margin: 0; font-size: 0.92rem; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; margin-top: 18px; padding: 14px 16px; border-radius: var(--radius-sm); font-weight: 600; }
.form-status.is-ok { display: block; background: #e2f2ea; color: #1d5e3f; }
.form-status.is-error { display: block; background: #fbe9e4; color: #8a2f19; }
.form-card .btn { width: 100%; }
.form-hint { font-size: 0.85rem; color: var(--ink-soft); margin: 14px 0 0; }

.contact-aside h2 { font-size: 1.5rem; }
.contact-steps { list-style: none; counter-reset: c; display: grid; gap: 18px; margin-bottom: 36px; }
.contact-steps li { counter-increment: c; display: grid; grid-template-columns: 36px 1fr; gap: 14px; color: var(--ink-soft); }
.contact-steps li::before {
  content: counter(c); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--petrol); color: var(--white); font-family: var(--font-head); font-weight: 700; font-size: 0.92rem;
}
.contact-steps strong { display: block; color: var(--ink); }
.contact-card { background: var(--white); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.contact-card ul { list-style: none; display: grid; gap: 14px; }
.contact-card li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.contact-card .icon { width: 20px; height: 20px; color: var(--petrol); margin-top: 3px; }
.contact-card a { color: var(--ink); text-decoration: none; font-weight: 600; }
.contact-card a:hover { color: var(--petrol); }

/* ---------- Rechtstexte ---------- */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.5rem; margin-top: 2em; }
.legal h3 { font-size: 1.15rem; margin-top: 1.6em; }
.legal ul { padding-left: 1.2em; margin-bottom: 1em; }
.legal .notice { background: #fff6e6; border-left: 4px solid var(--amber); padding: 16px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 0.95rem; }

/* ---------- Fußbereich ---------- */
.site-footer { background: var(--petrol-deep); color: #a9c3c7; padding: clamp(56px, 7vw, 80px) 0 28px; font-size: 0.95rem; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; }
.footer-grid h2 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: #7fc3cf; margin-bottom: 18px; font-weight: 600; }
.footer-grid ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: #d8e5e7; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-logo img { width: 168px; margin-bottom: 18px; }
.footer-about p { max-width: 300px; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.86rem; }
.footer-bottom ul { list-style: none; display: flex; gap: 22px; }

/* ---------- Mobile Erstgespräch-Leiste ---------- */
.mobile-cta { display: none; }

/* ---------- Sanftes Einblenden ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-d1 { transition-delay: 0.08s; }
.js .reveal-d2 { transition-delay: 0.16s; }
.js .reveal-d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Tablet
   ========================================================= */
@media (max-width: 1080px) {
  .main-nav ul { gap: 18px; }
  .main-nav a:not(.btn) { font-size: 0.9rem; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  /* Menü wird zum Aufklapp-Menü */
  .site-header { background: var(--white); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; left: 0; right: 0; top: 76px; bottom: 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 32px;
    background: var(--white); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }
  .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li { border-bottom: 1px solid var(--line); }
  .main-nav a:not(.btn) { display: block; padding: 18px 0; font-size: 1.15rem; font-family: var(--font-head); }
  .main-nav a:not(.btn)::after { display: none; }
  .main-nav .btn { margin-top: 24px; width: 100%; }
  .nav-open { overflow: hidden; }

  .hero__inner { grid-template-columns: 1fr; }
  .kpi-card { display: none; }               /* auf schmalen Bildschirmen weg: der Text zählt */
  .page-hero__inner { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .steps::before { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 12px; }
  .feature-row__num { font-size: 1.6rem; }
}

/* =========================================================
   Handy
   ========================================================= */
@media (max-width: 680px) {
  body { font-size: 1rem; }
  .header-inner { height: 64px; }
  .main-nav { top: 64px; }
  .logo img { width: 142px; }
  .header-inner > .btn { display: none; }

  .hero__inner { padding-top: 56px; padding-bottom: 64px; }
  .hero h1 { font-size: clamp(2.1rem, 9vw, 2.6rem); }
  .hero .lead { font-size: 1.04rem; margin-bottom: 26px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .hero__actions .link-arrow { justify-content: center; padding: 8px 0; }
  .hero__bg img { object-position: 70% 40%; }

  /* Vertrauensleiste wird zur kompakten Liste */
  .trust__list { grid-template-columns: 1fr; }
  .trust__item { padding: 18px 0; }
  .trust__item + .trust__item { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .trust__icon { width: 40px; height: 40px; }

  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .card__icon { margin-bottom: 16px; }

  /* Ablauf als senkrechte Linie */
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { display: grid; grid-template-columns: 50px 1fr; column-gap: 18px; padding-bottom: 28px; }
  .step::before { grid-row: span 2; margin: 0; }
  .step:not(:last-child)::after { content: ""; position: absolute; left: 24px; top: 54px; bottom: 4px; width: 2px; background: var(--petrol-tint); }
  .step h3 { margin-top: 12px; }

  .audience { padding-top: 20px; }
  .kpi-list li { grid-template-columns: 1fr; gap: 4px; }

  /* Platzhalter im Kopfbereich der Unterseiten entfallen auf dem Handy */
  .page-hero__media--placeholder { display: none; }
  .page-hero .media--43 { aspect-ratio: 16 / 10; }
  .page-hero .btn { width: 100%; }

  .faq summary { padding: 20px 0; }
  .faq .faq__answer { padding-right: 0; }

  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-row { grid-template-columns: 1fr; gap: 0; }

  .cta-band .btn { width: 100%; }
  .cta-band::after { width: 50vw; height: 40%; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; }

  /* feste Erstgespräch-Leiste am unteren Rand */
  .mobile-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96); border-top: 1px solid var(--line);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    transform: translateY(110%); transition: transform 0.35s var(--ease);
  }
  .mobile-cta.is-shown { transform: none; }
  .mobile-cta .btn { width: 100%; min-height: 48px; }
  body.has-mobile-cta .site-footer { padding-bottom: 96px; }
}

.section--flush { padding-top: 0; }

/* ---------- Leiste ganz oben ---------- */
.topbar { background: var(--petrol-deep); color: #b9cfd3; font-size: 0.84rem; letter-spacing: 0.02em; }
.topbar p { margin: 0; padding: 9px 0; text-align: center; }
.topbar p::before {
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--amber); margin-right: 10px; vertical-align: middle; position: relative; top: -1px;
}
@media (max-width: 680px) {
  .topbar { font-size: 0.76rem; line-height: 1.4; }
  .topbar p { padding: 7px 0; }
  .topbar p::before { display: none; }
}

/* ---------- Größere Tippflächen auf dem Handy ---------- */
@media (max-width: 680px) {
  .logo { padding: 6px 0; }
  .link-arrow, .contact-card a, .check-list a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-grid ul { gap: 2px; }
  .footer-grid a, .footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; }
  .breadcrumb a { display: inline-flex; align-items: center; min-height: 32px; }
}

/* ---------- Cookie-Hinweis ---------- */
.consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  background: var(--white); color: var(--ink);
  border-top: 3px solid var(--petrol); box-shadow: 0 -12px 40px rgba(11, 43, 49, 0.18);
  padding: 26px 0; opacity: 0; transform: translateY(24px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  max-height: 100vh; overflow-y: auto;
}
.consent.is-shown { opacity: 1; transform: none; }
.consent__inner { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px 56px; align-items: center; }
.consent__title { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; margin: 0 0 10px; }
.consent__text { font-size: 0.95rem; line-height: 1.65; color: var(--ink-soft); margin: 0 0 16px; max-width: 760px; }
.consent__options { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.consent__option { display: inline-flex; align-items: center; gap: 10px; font-size: 0.92rem; font-weight: 600; cursor: pointer; min-height: 32px; }
.consent__option input { width: 20px; height: 20px; margin: 0; accent-color: var(--petrol); cursor: pointer; }
.consent__option input:disabled { cursor: default; }
.consent__actions { display: grid; gap: 12px; }
.consent__btn {
  min-height: 52px; padding: 12px 18px; border-radius: var(--radius-sm); cursor: pointer;
  font: 600 1rem var(--font-body); background: var(--white); color: var(--petrol-deep);
  border: 2px solid var(--petrol); transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.consent__btn:hover { background: var(--petrol-tint); }
.consent__btn--primary { background: var(--petrol); color: var(--white); }
.consent__btn--primary:hover { background: var(--petrol-deep); border-color: var(--petrol-deep); color: var(--white); }
.link-button {
  background: none; border: 0; padding: 0; font: inherit; color: #d8e5e7; cursor: pointer;
}
.link-button:hover { color: var(--white); text-decoration: underline; }
@media (max-width: 680px) {
  .consent { padding: 18px 0 calc(16px + env(safe-area-inset-bottom)); max-height: 88vh; }
  .consent__title { font-size: 1.08rem; margin-bottom: 6px; }
  .consent__text { font-size: 0.86rem; line-height: 1.55; margin-bottom: 10px; }
  .consent__btn { min-height: 46px; padding: 10px 16px; font-size: 0.95rem; }
  .consent__actions { gap: 8px; }
  .consent-open .mobile-cta { display: none; }
  .footer-bottom .link-button { min-height: 44px; }
}

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