/* ============================================================
   Protect Berlin GmbH — Design System
   Weiß dominiert · Markenblau als Akzent · Footer dunkelblau
   ============================================================ */

/* ---------- Schrift (lokal gehostet, kein externer Request) ---------- */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/space-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  /* Markenblau — exakt die Farbe aus Ihrem Logo */
  --blue:      #27AAE1;
  --blue-dark: #0D6FA3;   /* für Text und Buttons, damit der Kontrast stimmt */
  --blue-deep: #0A587F;
  --blue-soft: #A6DCF4;
  --blue-tint: #EAF6FD;   /* getönte Flächen */
  --blue-mist: #F4FAFE;

  /* Dunkelblau aus Ihrer bisherigen Seite — kein Schwarz */
  --navy:      #1C2E3F;
  --navy-deep: #16242F;

  --ink:       #1C2E3F;
  --ink-soft:  #46586B;
  --ink-mute:  #5C6E80;

  --white:   #FFFFFF;
  --grey:    #F4F7FA;
  --line:    #E3E9EF;
  --line-2:  #D2DBE3;

  --header-h: 76px;
  --r-sm: 4px;
  --r:    8px;
  --r-lg: 14px;
  --maxw: 1240px;
  --gutter: 28px;

  --ease: cubic-bezier(.2, .7, .3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Space Grotesk', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.62;
  color: var(--ink-soft);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  /* Lange deutsche Wörter dürfen notfalls umbrechen, statt die Seite
     auf schmalen Geräten seitlich überlaufen zu lassen */
  overflow-wrap: break-word;
}

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

h1, h2, h3, h4 {
  color: var(--ink);
  margin: 0 0 .5em;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.03em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue-dark); text-underline-offset: 3px; }

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

.skip-link {
  position: absolute;
  left: 50%; top: 10px;
  transform: translate(-50%, -160%);
  z-index: 2000;
  padding: 12px 22px;
  background: var(--navy);
  color: #fff;
  border-radius: var(--r);
  text-decoration: none;
  font-weight: 600;
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Label mit vorangestellter blauer Linie — Leitmotiv */
.label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue-dark);
}
.label::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--blue);
  flex-shrink: 0;
}

/* ---------- Abschnitte ---------- */
.section { padding: clamp(68px, 7.5vw, 116px) 0; }
.section--grey { background: var(--grey); }
.section--tint { background: var(--blue-tint); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 23rem);
  gap: 0 48px;
  align-items: start;
  padding-top: 24px;
  border-top: 2px solid var(--ink);
  margin-bottom: clamp(44px, 5vw, 68px);
}

.section-head h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  margin: 0;
}

.section-head .lede {
  margin: 0;
  font-size: 1.0625rem;
  color: var(--ink-mute);
  padding-top: .55em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border: 2px solid transparent;
  border-radius: var(--r-sm);
  font: inherit;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.btn svg { flex-shrink: 0; transition: transform .25s var(--ease); }
.btn:hover svg.arrow { transform: translateX(3px); }

.btn--primary { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn--primary:hover { background: var(--blue-deep); border-color: var(--blue-deep); }

.btn--outline { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn--outline:hover { border-color: var(--blue); color: var(--blue-dark); }

.btn--block { width: 100%; padding: 17px 26px; font-size: 1rem; }

/* WhatsApp — im Stil der Seite, erkennbar am Symbol */
.btn--whatsapp {
  width: 100%;
  margin-top: 24px;
  background: var(--white);
  border-color: var(--line-2);
  color: var(--ink);
}
.btn--whatsapp:hover { border-color: var(--blue); color: var(--blue-dark); }
.wa-icon { flex-shrink: 0; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255,255,255,.93);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  /* Oben liegt die Kopfzeile flach auf der Seite, beim Scrollen hebt sie sich ab */
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 18px rgba(28, 46, 63, .07);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 48px; width: auto; }

.nav { display: flex; align-items: center; gap: 32px; }

.nav a {
  position: relative;
  padding: 6px 0;
  color: var(--ink);
  font-weight: 500;
  font-size: .9375rem;
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
/* aria-current markiert den Abschnitt, in dem man sich gerade befindet */
.nav a:hover,
.nav a[aria-current] { color: var(--blue-dark); }
.nav a:hover::after,
.nav a[aria-current]::after { transform: scaleX(1); }

.header-cta { display: inline-flex; align-items: center; gap: 14px; flex-shrink: 0; }

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border-radius: var(--r-sm);
  background: var(--blue-dark);
  color: #fff;
  font-weight: 600;
  font-size: .9375rem;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .18s var(--ease);
}
.phone-link:hover { background: var(--blue-deep); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle:hover { background: var(--blue-mist); border-color: var(--blue-soft); }
.nav-toggle span {
  position: relative;
  display: block;
  width: 18px; height: 2px;
  background: currentColor;
  transition: background-color .2s var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute; left: 0;
  width: 18px; height: 2px;
  background: currentColor;
  transition: transform .25s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   Hero — hell, typografisch, mit Schild als Grafik
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  margin-top: var(--header-h);
  background: var(--white);
  padding: clamp(56px, 6.5vw, 96px) 0 clamp(48px, 5vw, 76px);
}

/* Eigenes Foto: .hero { --hero-image: url('hero.jpg'); } */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image, none);
  background-size: cover;
  background-position: center 35%;
  opacity: .12;
}

.hero .container { position: relative; }

.hero-shield {
  position: absolute;
  right: -3%;
  top: 50%;
  transform: translateY(-50%);
  width: min(38vw, 420px);
  opacity: .07;
  pointer-events: none;
  user-select: none;
}

.hero-inner { max-width: 760px; }

/* Einblendung beim Laden — nacheinander, damit der erste Eindruck
   aufgeräumt wirkt statt abrupt */
@keyframes hero-auf {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.hero-inner > * {
  animation: hero-auf .55s var(--ease) both;
}
.hero-inner > *:nth-child(1) { animation-delay: .05s; }
.hero-inner > *:nth-child(2) { animation-delay: .13s; }
.hero-inner > *:nth-child(3) { animation-delay: .21s; }
.hero-inner > *:nth-child(4) { animation-delay: .29s; }
.hero-inner > *:nth-child(5) { animation-delay: .37s; }

.hero h1 {
  font-size: clamp(2.375rem, 5.6vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.02;
  margin: 0 0 26px;
}
.hero h1 .accent {
  display: block;
  color: var(--blue-dark);
  font-weight: 400;
  letter-spacing: -.035em;
}

.hero-lead {
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  line-height: 1.6;
  color: var(--ink-mute);
  max-width: 50ch;
  margin: 0 0 36px;
}

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* Firmenclaim als schmale Zeile unter den Buttons */
.hero-claim {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 30px 0 0;
  font-size: .9375rem;
  font-weight: 500;
  letter-spacing: -.005em;
  color: var(--ink-soft);
}
.hero-claim::before {
  content: "";
  flex-shrink: 0;
  width: 28px;
  height: 2px;
  background: var(--blue);
}

/* ---------- Faktenband, direkt unter dem Hero ---------- */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }

.fact {
  padding: 28px 28px 30px;
  border-left: 1px solid var(--line);
}
.fact:first-child { border-left: 0; padding-left: 0; }

.fact dt {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 10px;
}
.fact dd {
  margin: 0;
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -.025em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
}
.fact dd small {
  display: block;
  margin-top: 6px;
  font-size: .8125rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink-mute);
}

/* ============================================================
   Leistungen — Karten mit Hover-Effekt
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 28px;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--blue-soft);
  box-shadow: 0 8px 20px rgba(28,46,63,.06), 0 24px 48px rgba(28,46,63,.09);
}
.card:hover::before { transform: scaleX(1); }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  margin-bottom: 20px;
  border-radius: 10px;
  background: var(--blue-tint);
  color: var(--blue-dark);
  transition: background-color .28s var(--ease), color .28s var(--ease);
}
.card:hover .card-icon { background: var(--blue); color: #fff; }
.card-icon svg { width: 23px; height: 23px; }

.card h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 8px; }
.card p { color: var(--ink-mute); font-size: .9375rem; margin: 0; }

/* ============================================================
   Zertifizierungen — reine Darstellung, nicht anklickbar
   ============================================================ */
.certs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.cert {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
}

/* Beide Siegel auf dieselbe optische Höhe bringen — sie haben
   unterschiedliche Seitenverhältnisse */
.cert-img {
  width: auto;
  max-width: 100%;
  height: 156px;
  object-fit: contain;
  object-position: left center;
  margin: 0 0 26px;
}

/* Kein margin-top:auto — sonst sitzen die Trennlinien der beiden
   Kacheln auf unterschiedlicher Höhe */
.cert-body {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.cert-body h3 { font-size: 1.0625rem; font-weight: 600; margin-bottom: 6px; }
.cert-body p { font-size: .9375rem; color: var(--ink-mute); margin: 0; }

.cert-scope {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  font-size: .9375rem;
  color: var(--ink-mute);
}
.cert-scope li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
}
.cert-scope li::before {
  content: "";
  position: absolute;
  left: 0; top: .6em;
  width: 8px; height: 2px;
  background: var(--blue);
}

/* ============================================================
   Kontakt — weiß
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .74fr) minmax(0, 1.26fr);
  gap: clamp(36px, 5vw, 68px);
  align-items: start;
}

.contact-aside { min-width: 0; }
.contact-aside h3 { font-size: 1.1875rem; font-weight: 600; margin-bottom: 18px; }
.contact-list { margin: 0; }
.contact-list div { padding: 15px 0; border-top: 1px solid var(--line); }
.contact-list div:last-child { border-bottom: 1px solid var(--line); }
.contact-list dt {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 6px;
}
.contact-list dd { margin: 0; color: var(--ink); font-size: 1rem; font-weight: 500; line-height: 1.5; }
.contact-list dd a { color: var(--ink); text-decoration: none; }
.contact-list dd a:hover { color: var(--blue-dark); }

.form-card {
  min-width: 0;
  background: var(--grey);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(26px, 3.4vw, 42px);
}

.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--ink);
}
.field .req { color: var(--blue-dark); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 15px;
  font: inherit;
  font-size: .9375rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-mute); opacity: .8; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--blue-soft); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(39,170,225,.18);
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%236B7C8C' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
}

/* Einwilligung als eigenständiges Pflichtfeld — hebt sich vom
   grauen Formularkasten ab, damit der Haken nicht übersehen wird */
.privacy-box {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 22px;
  padding: 18px 20px;
  background: var(--blue-tint);
  border: 2px solid var(--blue-soft);
  border-radius: var(--r-sm);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.privacy-box:hover { border-color: var(--blue); }
.privacy-box:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(39,170,225,.18);
}

.privacy-box input[type="checkbox"] {
  flex-shrink: 0;
  width: 20px; height: 20px;
  margin: 1px 0 0;
  accent-color: var(--blue-dark);
  cursor: pointer;
}

.privacy-box label {
  /* ohne min-width:0 diktiert die lange E-Mail-Adresse die Mindestbreite */
  min-width: 0;
  font-size: .875rem;
  line-height: 1.55;
  color: var(--ink-soft);
  cursor: pointer;
}
.privacy-box label strong {
  display: block;
  margin-bottom: 4px;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--ink);
}
.privacy-box a { color: var(--blue-dark); text-decoration: underline; }

/* ============================================================
   Datenschutzhinweis beim Seitenbesuch
   ============================================================ */
.consent {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1100;
  padding: 0 var(--gutter) max(18px, env(safe-area-inset-bottom));
  pointer-events: none;
}
.consent[hidden] { display: none; }

.consent-inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 22px 26px;
  background: var(--white);
  border: 1px solid var(--line-2);
  border-top: 3px solid var(--blue);
  border-radius: var(--r-lg);
  box-shadow: 0 8px 24px rgba(28, 46, 63, .12), 0 28px 60px rgba(28, 46, 63, .14);
  transform: translateY(calc(100% + 32px));
  opacity: 0;
  transition: transform .35s var(--ease), opacity .3s var(--ease);
}
.consent.is-open .consent-inner { transform: none; opacity: 1; }

.consent-title {
  margin: 0 0 5px;
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink);
}
.consent-text {
  margin: 0;
  font-size: .875rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.consent-text a { color: var(--blue-dark); text-decoration: underline; }

.consent-actions { flex-shrink: 0; }
.consent-actions .btn { white-space: nowrap; }

@media (max-width: 720px) {
  .consent { padding-inline: 16px; }
  .consent-inner { flex-direction: column; align-items: stretch; gap: 16px; padding: 20px; }
  .consent-actions .btn { width: 100%; }
}

/* ============================================================
   Footer — dunkelblau wie auf Ihrer bisherigen Seite
   ============================================================ */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.66);
  padding: clamp(56px, 6vw, 80px) 0 0;
  font-size: .9375rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  padding-bottom: 50px;
}
.site-footer h4 {
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.site-footer img { height: 40px; width: auto; margin-bottom: 20px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: 10px; }
.site-footer a { color: rgba(255,255,255,.76); text-decoration: none; transition: color .18s var(--ease); }
.site-footer a:hover { color: var(--blue-soft); }
.site-footer address { font-style: normal; line-height: 1.7; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 0 26px;
  border-top: 1px solid rgba(255,255,255,.14);
  font-size: .8125rem;
  color: rgba(255,255,255,.58);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 22px; }

/* ============================================================
   Rechtstexte
   ============================================================ */
.page-head {
  margin-top: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: clamp(48px, 5.5vw, 76px) 0 clamp(36px, 4vw, 52px);
}
.page-head h1 { font-size: clamp(2rem, 4.4vw, 3rem); letter-spacing: -.04em; margin: 0; }
.page-head p { margin: 14px 0 0; font-size: 1rem; color: var(--ink-mute); }

.prose {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(48px, 5.5vw, 80px) var(--gutter);
}
.prose > * { max-width: 720px; }
.prose h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 44px 0 14px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.prose h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 1rem; font-weight: 600; color: var(--blue-dark); margin: 26px 0 8px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose .callout {
  background: var(--blue-mist);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: var(--r-sm);
  padding: 20px 24px;
}

/* ============================================================
   Scroll-Animation
   ============================================================ */
/* Standardzustand ist SICHTBAR. Versteckt wird erst, wenn main.js die
   Einblendung nachweislich übernommen hat (Klasse .reveal-ready).
   Fällt das JavaScript aus, bleibt die Seite vollständig lesbar. */
.reveal { transition: opacity .6s var(--ease), transform .6s var(--ease); }

.reveal-ready .reveal { opacity: 0; transform: translateY(16px); }
.reveal-ready .reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   Responsiv
   ============================================================ */
@media (max-width: 1080px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .section-head { grid-template-columns: minmax(0, 1fr); }
  .section-head .lede { margin-top: 16px; padding-top: 0; max-width: 56ch; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-shield { opacity: .05; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 28px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 36px rgba(28,46,63,.10);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 15px 0; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }

  /* minmax(0, 1fr), damit die Kachel unter die Eigenbreite des Siegels
     schrumpfen darf — sonst laeuft sie auf schmalen Geraeten ueber */
  .certs { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .cert-img { height: 132px; }
  .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; }
}

@media (max-width: 620px) {
  :root { --header-h: 64px; --gutter: 20px; }
  body { font-size: 1rem; }
  .brand img { height: 38px; }
  .phone-link span { display: none; }
  .phone-link { padding: 11px 12px; }

  /* Hauptaktion volle Breite, Telefon und WhatsApp teilen sich die Zeile
     darunter — passt es nicht, rutschen sie von selbst untereinander */
  .hero-actions { align-items: stretch; }
  .hero-actions .btn--primary { width: 100%; }
  .hero-actions .btn--outline {
    flex: 1 1 auto;
    min-width: 0;
    padding-inline: 14px;
    white-space: nowrap;
  }
  .hero-shield { display: none; }

  .facts-grid { grid-template-columns: minmax(0, 1fr); }
  .fact { border-left: 0; padding-left: 0; padding-right: 0; border-bottom: 1px solid var(--line); }
  .fact:last-child { border-bottom: 0; }

  .card-grid { grid-template-columns: minmax(0, 1fr); }
  .cert { padding: 22px; }
  .field-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

/* ============================================================
   Bedienhilfen
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: -1ms !important;      /* sonst bleibt der Hero bis zu 370 ms unsichtbar */
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-inner > * { animation: none; opacity: 1; transform: none; }
}

@media print {
  .site-header, .nav-toggle, .hero, .consent, .skip-link { display: none !important; }
  body { color: #000; font-size: 11pt; }
  .page-head { margin-top: 0; padding: 0 0 16pt; border: 0; }
  .prose { max-width: none; padding: 0; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
