/*
Theme Name: Borgstedt Theme
Theme URI: https://borgstedt-gmbh.de
Description: Custom Theme für Borgstedt Gebäudeservice GmbH
Author: Borgstedt Gebäudeservice GmbH
Version: 1.0.0
*/

/* Kein horizontales Scrollen: das Off-Canvas-Menue (.nav-links,
   transform: translateX(100%)) ragt sonst ueber den Viewport hinaus.

   'clip' statt 'hidden': 'hidden' erzeugt einen Scroll-Container und
   zerstoert dadurch den sticky Header (.site-header). 'clip' kappt den
   Ueberhang ohne Scroll-Container — beides funktioniert gleichzeitig.
   'hidden' bleibt als Fallback fuer Browser ohne clip-Support stehen. */
html, body {
  overflow-x: hidden;
  overflow-x: clip;
}

/* =========================================================
   Borgstedt Gebäudeservice GmbH — Beta-Stylesheet v2
   Design-System: Industrial Clean + warme Typografie
   ========================================================= */

/* ---------- Custom Properties ---------- */
:root {
  --color-primary:       #003087;
  --color-primary-light: #5B9BD5;
  --color-accent:        #5B9BD5;
  --color-accent-dark:   #4A7FB5;
  --color-bg:            #F5F4F0;
  --color-bg-dark:       #002070;
  --color-text:          #1a1c2e;
  --color-text-muted:    #5c6070;
  --color-white:         #FFFFFF;
  --color-border:        #D8D6D0;

  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  --radius:    8px;
  --radius-lg: 16px;

  --shadow:    0 2px 12px rgba(0,48,135,0.08);
  --shadow-lg: 0 8px 32px rgba(0,48,135,0.14);

  --transition: 0.22s ease;

  --container:       1200px;
  --section-padding: clamp(3rem, 8vw, 6rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

img, svg { display: block; max-width: 100%; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ---------- Fokus-Styles ---------- */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* ---------- Typografie-Skala ---------- */
h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: inherit;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: inherit;
}

h3 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: inherit;
}

h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
  color: inherit;
}

p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 65ch;
}

small { font-size: 0.85rem; }

/* ---------- Layout-Utilities ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 2.5rem);
}

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

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

.section--dark p { color: rgba(255,255,255,0.65); }

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

.section--accent p { color: rgba(255,255,255,0.85); }

.section-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
  display: block;
}

.section--dark .section-label { color: var(--color-accent); }

.section-title { margin-bottom: 1rem; }

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin-bottom: 2.5rem;
}

.section--dark .section-subtitle { color: rgba(255,255,255,0.65); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition);
  min-height: 48px;
  white-space: nowrap;
}

.btn:active { transform: scale(0.98); }

/* Primär-Button: weiß — für dunkle Hintergründe (Hero, dunkle Sektionen) */
.btn-primary {
  background: #FFFFFF;
  color: #003087;
  border: 2px solid #FFFFFF;
  font-weight: 700;
}

.btn-primary:hover {
  background: transparent;
  color: #FFFFFF;
  border-color: #FFFFFF;
}

/* Sekundär-Button: transparent mit weißem Rand — für Hero und dunkle Sektionen */
.btn-secondary {
  background: transparent;
  color: #FFFFFF;
  border: 2px solid rgba(255,255,255,0.5);
}

.btn-secondary:hover {
  border-color: #FFFFFF;
  background: rgba(255,255,255,0.1);
  color: #FFFFFF;
}

/* Outline-Button: blau — für helle Hintergründe */
.btn-outline {
  background: transparent;
  color: #003087;
  border: 2px solid #003087;
}

.btn-outline:hover {
  background: #003087;
  color: #FFFFFF;
  border-color: #003087;
}

/* Nav CTA-Button: Marineblau auf weißer Navigation */
.nav .btn-primary {
  background: #003087;
  color: #FFFFFF;
  border-color: #003087;
}

.nav .btn-primary:hover {
  background: #002070;
  border-color: #002070;
  color: #FFFFFF;
}

/* CTA-Banner Button */
.cta-banner .btn,
.section--accent .btn-primary,
.kontakt-cta-section .btn-primary {
  background: #FFFFFF;
  color: #003087;
  border-color: #FFFFFF;
}

.cta-banner .btn:hover,
.section--accent .btn-primary:hover,
.kontakt-cta-section .btn-primary:hover {
  background: transparent;
  color: #FFFFFF;
  border-color: #FFFFFF;
}

/* Alias für Rückwärtskompatibilität */
.btn-dark {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn-dark:hover {
  background: #002070;
  border-color: #002070;
}

/* ---------- Skip-Link ---------- */
.skip-link {
  position: absolute;
  left: -10000px;
  top: 0;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.75rem 1.25rem;
  z-index: 9999;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus { left: 0; }

/* =========================================================
   HEADER / NAVIGATION
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--color-primary);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1.5rem;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo img, .nav-logo svg { height: 36px; width: auto; }

/* Hamburger-Toggle (CSS-only) */
.nav-toggle { display: none; }

.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.nav-burger:hover { background: var(--color-border); }

.nav-burger-icon {
  position: relative;
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-primary);
  transition: background var(--transition);
}

.nav-burger-icon::before,
.nav-burger-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--color-primary);
  transition: transform var(--transition);
}

.nav-burger-icon::before { top: -7px; }
.nav-burger-icon::after  { top:  7px; }

/* Navigation-Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-primary);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover { color: var(--color-primary); background: rgba(0,48,135,0.06); }
.nav-links a[aria-current="page"] { color: var(--color-primary); }

.nav-cta { margin-left: 0.75rem; }

/* Mobile */
@media (max-width: 860px) {
  .nav-burger { display: flex; }

  .nav-links {
    position: fixed;
    inset: 72px 0 0 0;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 1.5rem clamp(1rem, 5vw, 2.5rem);
    gap: 0.25rem;
    background: var(--color-white);
    border-top: 2px solid var(--color-primary);
    transform: translateX(100%);
    transition: transform 0.28s ease;
    overflow-y: auto;
  }

  .nav-links a {
    font-size: 1.1rem;
    padding: 1rem 0.5rem;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
    min-height: 56px;
  }

  .nav-cta { margin-left: 0; margin-top: 1rem; }

  .nav-toggle:checked ~ .nav-links { transform: translateX(0); }

  .nav-toggle:checked ~ .nav-burger .nav-burger-icon {
    background: transparent;
  }
  .nav-toggle:checked ~ .nav-burger .nav-burger-icon::before {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle:checked ~ .nav-burger .nav-burger-icon::after {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  background: var(--color-primary);
  color: var(--color-white);
  padding: clamp(4rem, 10vw, 7rem) 0;
  position: relative;
  overflow: hidden;
  min-height: 75vh;
  display: flex;
  align-items: center;
}

/* Strukturierter Hintergrund-Effekt — Hellblau-Akzent passend zu Logo */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 80% 50%, rgba(91,155,213,0.12) 0%, transparent 65%),
    repeating-linear-gradient(
      -55deg,
      transparent,
      transparent 40px,
      rgba(255,255,255,0.015) 40px,
      rgba(255,255,255,0.015) 41px
    );
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--color-accent);
  flex-shrink: 0;
}

.hero h1 { max-width: 16ch; margin-bottom: 1.25rem; }

.hero h1 .highlight { color: var(--color-accent); }

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
  max-width: 52ch;
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* =========================================================
   TRUST-BAR
   ========================================================= */
.trust-bar {
  background: var(--color-primary);
}

.trust-bar .container {
  padding-top: 2.25rem;
  padding-bottom: 2.25rem;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem 2rem;
  text-align: center;
}



.trust-number {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  display: block;
}

.trust-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  display: block;
  margin-top: 0.3rem;
  letter-spacing: 0.03em;
}

/* Trennlinie zwischen Trust-Items (Desktop) */
@media (min-width: 640px) {
  .trust-item:not(:last-child) {
    border-right: 1px solid rgba(255,255,255,0.15);
    padding-right: 2rem;
  }
}

/* =========================================================
   LEISTUNGEN — KARTEN-GRID (8 Karten)
   ========================================================= */

/* Standard: 1 Spalte */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

/* Tablet: 2 Spalten */
@media (min-width: 560px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Desktop: 3 Spalten — 3+3+2, letzte Reihe linksbündig */
@media (min-width: 901px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Karten */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

/* Obere Akzentlinie beim Hover */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}

.card:hover::before { transform: scaleX(1); }

.card__icon {
  width: 52px;
  height: 52px;
  background: rgba(91,155,213,0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}

.card__icon svg { width: 28px; height: 28px; }

.card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
  margin-top: 0.25rem;
}

.card__text {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  flex-grow: 1;
}

.card__link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding-bottom: 2px;
  border-bottom: 2px solid var(--color-accent);
  align-self: flex-start;
  min-height: 44px;
  transition: color var(--transition), border-color var(--transition);
}

.card__link:hover { color: var(--color-accent-dark); }

/* Rückwärtskompatibel: altes Grid und Karten */
.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .leistungen-grid { grid-template-columns: repeat(2, 1fr); }
}

.leistung-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.leistung-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}

.leistung-icon {
  width: 52px;
  height: 52px;
  background: rgba(91,155,213,0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-dark);
  flex-shrink: 0;
}

.leistung-card h3 { margin-top: 0.25rem; color: var(--color-primary); }

.leistung-card p { flex-grow: 1; }

.leistung-link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding-bottom: 2px;
  border-bottom: 2px solid var(--color-accent);
  align-self: flex-start;
  min-height: 44px;
  align-items: center;
  transition: color var(--transition), border-color var(--transition);
}

.leistung-link:hover { color: var(--color-accent-dark); }

/* =========================================================
   QUALITÄT / ÜBER UNS
   ========================================================= */
.qualitaet-layout {
  display: grid;
  gap: 3rem;
}

@media (min-width: 860px) {
  .qualitaet-layout { grid-template-columns: 1.2fr 1fr; align-items: start; }
}

.qualitaet-text p + p { margin-top: 1rem; }

.qualitaet-box {
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.qualitaet-box h3 {
  color: var(--color-white);
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}

.qualitaet-dl {
  display: grid;
  gap: 1.25rem;
}

.qualitaet-dl dt {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-accent);
}

.qualitaet-dl dd {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.75);
  margin-top: 0.15rem;
}

/* =========================================================
   KONTAKT-CTA (Akzentfarbe)
   ========================================================= */
.kontakt-cta-section {
  text-align: center;
}

.kontakt-cta-section .section-title { margin: 0 auto 1rem; }

.kontakt-cta-section p {
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  max-width: 50ch;
  color: rgba(255,255,255,0.85);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--color-bg-dark);
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand { max-width: 260px; }

.footer-logo {
  display: inline-block;
  margin-bottom: 1.25rem;
}

.footer-address {
  font-style: normal;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.65);
}

.footer-address a {
  color: rgba(255,255,255,0.85);
  transition: color var(--transition);
}

.footer-address a:hover { color: var(--color-accent); }

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 1.1rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }

.footer-col a {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.65);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--color-accent); }

.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
}

/* =========================================================
   SEITEN-HEADER (kontakt.html)
   ========================================================= */
.page-header {
  background: var(--color-primary);
  color: var(--color-white);
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.page-header p {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  max-width: 55ch;
  margin-top: 0.75rem;
}

/* =========================================================
   KONTAKT-SEITE
   ========================================================= */
.kontakt-layout {
  display: grid;
  gap: 3rem;
}

@media (min-width: 860px) {
  .kontakt-layout { grid-template-columns: 1.5fr 1fr; align-items: start; }
}

/* Formular */
.kontakt-form {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: grid;
  gap: 1.5rem;
  box-shadow: var(--shadow);
}

.form-row { display: grid; gap: 1.25rem; }

@media (min-width: 540px) {
  .form-row-2 { grid-template-columns: 1fr 1fr; }
}

.form-field { display: flex; flex-direction: column; gap: 0.4rem; }

.form-field label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
}

.form-field .req { color: var(--color-accent-dark); }
.form-field .opt { font-weight: 400; color: var(--color-text-muted); }

.form-field input,
.form-field textarea,
.form-field select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  min-height: 50px;
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  transition: border-color var(--transition), background var(--transition);
}

.form-field textarea {
  min-height: 148px;
  resize: vertical;
  line-height: 1.6;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--color-accent);
  background: var(--color-white);
}

/* Honeypot unsichtbar verstecken */
.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  left: -9999px !important;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.form-footer small { color: var(--color-text-muted); }
.form-footer .req { color: var(--color-accent-dark); }

/* Kontaktinfos-Box */
.kontakt-info-box {
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: sticky;
  top: 88px;
}

.kontakt-info-box h2 {
  color: var(--color-white);
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-accent);
}

.kontakt-dl { display: grid; gap: 1.5rem; }

.kontakt-dl dt {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.25rem;
}

.kontakt-dl dd {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
}

.kontakt-dl a {
  color: rgba(255,255,255,0.9);
  border-bottom: 1px solid rgba(91,155,213,0.35);
  transition: border-color var(--transition), color var(--transition);
}

.kontakt-dl a:hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

/* =========================================================
   SERVICE-DETAIL-SEKTIONEN
   ========================================================= */
.service-section {
  padding: var(--section-padding) 0;
  border-top: 1px solid var(--color-border);
}

.service-section:nth-child(even) {
  background: var(--color-white);
}

.service-section__grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 700px) {
  .service-section__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .service-section__grid { grid-template-columns: repeat(3, 1fr); }
}

.service-section__col h4 {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.service-section__col ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.service-section__col ul li {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.5;
}

.service-section__col ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-size: 0.85rem;
  font-weight: 700;
}

.service-section__cta {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

/* =========================================================
   NAV DROPDOWN (Leistungen)
   ========================================================= */
.nav-item--dropdown {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-primary);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 240px;
  padding: 0.5rem 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity var(--transition), transform var(--transition);
  z-index: 200;
}

.nav-item--dropdown:hover .nav-dropdown,
.nav-item--dropdown:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text) !important;
  min-height: 44px;
  display: flex;
  align-items: center;
  border-radius: 0 !important;
  background: none !important;
  border-bottom: none !important;
  transition: background var(--transition), color var(--transition);
}

.nav-dropdown a:hover {
  background: rgba(0,48,135,0.05) !important;
  color: var(--color-primary) !important;
}

/* Dropdown-Pfeil am Toggle-Link — via HTML <span class="nav__arrow"> */
.nav-dropdown-toggle::after {
  content: none !important;
  display: none !important;
}
.nav__arrow {
  font-size: 0.7em;
  margin-left: 0.25rem;
  display: inline-block;
  transition: transform 0.2s ease;
}
.nav-item--dropdown:hover .nav__arrow,
.nav-item--dropdown:focus-within .nav__arrow {
  transform: rotate(180deg);
}

/* Mobile: Dropdown flach anzeigen */
@media (max-width: 860px) {
  .nav-dropdown {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--color-accent);
    border-radius: 0;
    background: rgba(0,48,135,0.04);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-item--dropdown.is-open .nav-dropdown {
    max-height: 600px;
  }

  .nav-dropdown a {
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
    min-height: 40px;
  }
}

/* =========================================================
   PAGE-HERO (Unterseiten)
   ========================================================= */
.page-hero {
  background: var(--color-primary);
  color: var(--color-white);
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
}

.page-hero h1 {
  color: var(--color-white);
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0.5rem 0;
}

.page-hero__sub {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  line-height: 1.75;
  margin-top: 0.5rem;
  max-width: 60ch;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-primary-light);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
  transition: gap var(--transition), color var(--transition);
  min-height: 44px;
}

.back-link:hover {
  gap: 0.7rem;
  color: var(--color-white);
}

/* =========================================================
   PRINT
   ========================================================= */
@media print {
  .site-header, .hero-actions, .kontakt-cta-section, .nav-burger { display: none; }
}

/* =========================================================
   PHASE 2 — A11Y, MOBILE POLISH, MICRO-INTERACTIONS
   ========================================================= */

/* Form: Fehler-Zustand */
.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"],
.form-field select[aria-invalid="true"] {
  border-color: #c0392b;
  background: #fff7f6;
}
.form-error {
  display: block;
  margin-top: 0.4rem;
  color: #c0392b;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Touch-Targets */
.footer-col ul a { padding: 0.4rem 0; }
.card__link { padding: 0.5rem 0; gap: 0.4rem; }

/* Karten: Hover + Transition (keine Konflikte mit Scroll-Reveal) */
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,48,135,0.12);
  border-color: var(--color-accent);
}
.card__link { transition: gap var(--transition), color var(--transition); }
.card__link:hover { gap: 0.7rem; }

/* Aktiver Nav-Zustand */
.nav-dropdown a[aria-current="page"] {
  color: var(--color-primary) !important;
  font-weight: 700;
  background: rgba(91,155,213,0.09) !important;
}

/* Cookie-Banner: Hover */
#cookie-banner button[data-action="accept"]:hover {
  background: #5B9BD5 !important;
  border-color: #5B9BD5 !important;
  color: #fff !important;
}
#cookie-banner button[data-action="reject"]:hover {
  background: rgba(255,255,255,0.08) !important;
  border-color: rgba(255,255,255,0.7) !important;
}
#cookie-banner button:focus-visible {
  outline: 2px solid #5B9BD5 !important;
  outline-offset: 3px !important;
}

/* Mobile: Service-Grid */
@media (max-width: 700px) {
  .service-section__grid { grid-template-columns: 1fr; }
}
/* Mobile: Hero */
@media (max-width: 640px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .page-hero { padding: 2.5rem 0 2rem; }
  .page-hero h1 { font-size: clamp(1.8rem, 6vw, 2.4rem); }
}
/* Mobile: Cards + Form */
@media (max-width: 560px) {
  .card { padding: 1.5rem; }
  .cards-grid { gap: 1rem; }
  .form-row.form-row-2 { grid-template-columns: 1fr; }
}

/* Scroll-Reveal: Animation statt transform-Transition — kein Konflikt mit Hover */
@keyframes reveal-up {
  from { opacity: 0; translate: 0 20px; }
  to   { opacity: 1; translate: 0 0; }
}

/* opacity:0 NUR wenn JS geladen ist - sonst sind die Karten sichtbar */
.js-ready .card,
.js-ready .service-section__col,
.js-ready .trust-item {
  opacity: 0;
}
.js-ready .card.visible {
  opacity: 1;
  animation: reveal-up 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.js-ready .service-section__col.visible,
.js-ready .trust-item.visible {
  opacity: 1;
  animation: reveal-up 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.cards-grid .card:nth-child(2).visible { animation-delay: 0.07s; }
.cards-grid .card:nth-child(3).visible { animation-delay: 0.14s; }
.cards-grid .card:nth-child(4).visible { animation-delay: 0.21s; }
.cards-grid .card:nth-child(5).visible { animation-delay: 0.07s; }
.cards-grid .card:nth-child(6).visible { animation-delay: 0.14s; }
.cards-grid .card:nth-child(7).visible { animation-delay: 0.21s; }
.cards-grid .card:nth-child(8).visible { animation-delay: 0.28s; }
.service-section__col:nth-child(2).visible { animation-delay: 0.1s; }
.service-section__col:nth-child(3).visible { animation-delay: 0.2s; }
.trust-item:nth-child(2).visible { animation-delay: 0.08s; }
.trust-item:nth-child(3).visible { animation-delay: 0.16s; }
.trust-item:nth-child(4).visible { animation-delay: 0.24s; }

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .card, .service-section__col, .trust-item { opacity: 1; animation: none; }
  .card:hover { transform: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Mobile-Menü Scroll-Lock */
body.menu-open { overflow: hidden; }

/* =========================================================
   HERO: Word-by-word Reveal beim Laden
   ========================================================= */
.hero-line { display: block; }

.js-ready .hero-eyebrow,
.js-ready .hero-line,
.js-ready .hero-sub,
.js-ready .hero-actions {
  opacity: 0;
  animation: reveal-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.js-ready .hero-eyebrow              { animation-delay: 0.10s; }
.js-ready .hero-line:nth-child(1)    { animation-delay: 0.25s; }
.js-ready .hero-line:nth-child(2)    { animation-delay: 0.40s; }
.js-ready .hero-line:nth-child(3)    { animation-delay: 0.55s; }
.js-ready .hero-sub                  { animation-delay: 0.80s; }
.js-ready .hero-actions              { animation-delay: 1.00s; }

/* =========================================================
   REVEAL-ON-SCROLL: Allgemeines Reveal-Utility
   ========================================================= */
.js-ready .reveal-on-scroll {
  opacity: 0;
}
.js-ready .reveal-on-scroll.visible {
  opacity: 1;
  animation: reveal-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--reveal-delay, 0ms);
}

/* Reduced-motion-Override */
@media (prefers-reduced-motion: reduce) {
  .js-ready .hero-eyebrow,
  .js-ready .hero-line,
  .js-ready .hero-sub,
  .js-ready .hero-actions,
  .js-ready .reveal-on-scroll {
    opacity: 1;
    animation: none;
  }
}

/* =========================================================
   VISUAL UPGRADE PASS — Hero-Clip, Glassmorphism, Statement
   ========================================================= */

/* --- 1. HERO: Diagonaler Clip + Gradient -------------------- */
.hero {
  background: linear-gradient(135deg, #002070 0%, #003087 50%, #003d9e 100%);
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
  padding-bottom: clamp(6rem, 12vw, 10rem);
  margin-bottom: -3rem;
  z-index: 1;
}

.trust-bar {
  position: relative;
  z-index: 2;
}

/* --- 2. GLASSMORPHISM KARTEN -------------------------------- */
#leistungen {
  background: linear-gradient(160deg, #E8E6E0 0%, #DDD9D0 100%);
  position: relative;
}

.card {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow:
    0 2px 4px rgba(0, 48, 135, 0.04),
    0 8px 20px rgba(0, 48, 135, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.card:hover {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(91, 155, 213, 0.5);
  box-shadow:
    0 4px 8px rgba(0, 48, 135, 0.05),
    0 16px 32px rgba(0, 48, 135, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  transform: translateY(-5px);
}

@supports not (backdrop-filter: blur(1px)) {
  .card { background: rgba(255, 255, 255, 0.92); }
}

.card__icon {
  background: rgba(0, 48, 135, 0.07);
  border: 1px solid rgba(0, 48, 135, 0.1);
}

.card:hover .card__icon {
  background: rgba(0, 48, 135, 0.12);
}

/* --- 3. STATEMENT-SEKTION ----------------------------------- */
.section-statement {
  background: #002070;
  padding: clamp(4rem, 8vw, 7rem) 0;
  position: relative;
  overflow: hidden;
}

.section-statement::before {
  content: '"';
  position: absolute;
  top: -0.2em;
  left: -0.05em;
  font-family: var(--font-display);
  font-size: clamp(12rem, 25vw, 20rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.03);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.statement__inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.statement__inner::before {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: #5B9BD5;
  margin: 0 auto 2rem;
  border-radius: 2px;
}

.statement__quote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.statement__author {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.section-statement.is-visible .statement__quote,
.section-statement.is-visible .statement__author {
  opacity: 1;
  transform: translateY(0);
}

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

/* --- 4. HERO: Zweiter Button (btn-secondary) + eyebrow nowrap --- */
.hero .btn-secondary {
  background: transparent;
  color: #FFFFFF;
  border: 2px solid rgba(255, 255, 255, 0.6);
  font-family: var(--font-display);
  font-weight: 700;
  min-height: 48px;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.22s ease;
}
.hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #FFFFFF;
  color: #FFFFFF;
}

.hero-eyebrow {
  white-space: nowrap;
  font-size: clamp(0.7rem, 1.2vw, 0.82rem);
}

/* =========================================================
   ZERTIFIKATE-SEKTION
   ========================================================= */
.section-zertifikate {
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
}

.zert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.zert-item {
  padding: 1.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.zert-item:hover {
  border-color: var(--color-primary-light);
  box-shadow: 0 4px 16px rgba(0,48,135,0.07);
}

.zert-icon {
  width: 44px;
  height: 44px;
  background: rgba(0,48,135,0.06);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.zert-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-primary);
}

.zert-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.zert-text {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: none;
}

@media (max-width: 900px) {
  .zert-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .zert-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   SPEZIAL-DIENSTE — kompakte Ebene-2-Leistungen
   ========================================================= */
.spezial-dienste {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-border);
}

.spezial-dienste__label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: none;
}

.spezial-dienste__label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

.spezial-dienste__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.spezial-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.spezial-item:hover {
  border-color: var(--color-primary-light);
  box-shadow: 0 4px 16px rgba(0,48,135,0.08);
  transform: translateY(-2px);
}

.spezial-item__icon {
  width: 40px;
  height: 40px;
  background: rgba(0,48,135,0.06);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-primary);
}

.spezial-item__icon svg {
  width: 18px;
  height: 18px;
}

.spezial-item__content { flex: 1; min-width: 0; }

.spezial-item__title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.2rem;
  line-height: 1.2;
}

.spezial-item__text {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  max-width: none;
  margin: 0;
}

.spezial-item__arrow {
  color: var(--color-primary-light);
  font-size: 1rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.spezial-item:hover .spezial-item__arrow {
  transform: translateX(4px);
}

@media (max-width: 900px) {
  .spezial-dienste__grid { grid-template-columns: 1fr; }
}

/* =========================================================
   ZERTIFIKATE — Interaktion (Hover, Modal, Reveal)
   ========================================================= */

/* Hover-State + Akzentlinie + Icon-Skalierung */
.zert-item {
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease,
              box-shadow 0.25s ease,
              border-color 0.25s ease;
}

.zert-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.zert-item:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary-light);
  box-shadow:
    0 4px 8px rgba(0,48,135,0.05),
    0 16px 32px rgba(0,48,135,0.10);
}

.zert-item:hover::before { transform: scaleX(1); }

.zert-icon {
  transition: transform 0.25s ease, background 0.25s ease;
}

.zert-item:hover .zert-icon {
  transform: scale(1.1);
  background: rgba(0,48,135,0.12);
}

.zert-title { transition: color 0.25s ease; }
.zert-item:hover .zert-title { color: var(--color-primary-light); }

.zert-item:focus-visible {
  outline: 2px solid var(--color-primary-light);
  outline-offset: 3px;
}

/* Gestaffelter Reveal */
.zert-item:nth-child(1) { transition-delay: 0ms; }
.zert-item:nth-child(2) { transition-delay: 80ms; }
.zert-item:nth-child(3) { transition-delay: 160ms; }
.zert-item:nth-child(4) { transition-delay: 240ms; }
.zert-item:nth-child(5) { transition-delay: 320ms; }
.zert-item:nth-child(6) { transition-delay: 400ms; }

/* Modal */
.zert-modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.zert-modal[hidden] { display: none; }

.zert-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,32,112,0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
}

.zert-modal__content {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 24px 64px rgba(0,48,135,0.2);
  animation: modalIn 0.3s ease forwards;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.zert-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  background: rgba(0,48,135,0.06);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.zert-modal__close:hover { background: rgba(0,48,135,0.12); }
.zert-modal__close svg { width: 16px; height: 16px; stroke: var(--color-primary); }

.zert-modal__icon {
  width: 52px;
  height: 52px;
  background: rgba(0,48,135,0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--color-primary);
}
.zert-modal__icon svg { width: 26px; height: 26px; }

.zert-modal__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.zert-modal__body {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--color-text-muted);
  margin-bottom: 1.75rem;
  max-width: none;
}

.zert-modal__cta {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  width: 100%;
  justify-content: center;
  text-decoration: none;
}

.zert-modal__cta:hover {
  background: var(--color-bg-dark);
  border-color: var(--color-bg-dark);
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .zert-item { opacity: 1; transform: none; transition: none; }
  .zert-item:hover { transform: none; }
  .zert-modal__content { animation: none; }
}

/* =========================================================
   KONTAKT-TABS
   ========================================================= */
.contact-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 0;
}

.contact-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color 0.22s ease, border-color 0.22s ease;
  min-height: 48px;
  white-space: nowrap;
}

.contact-tab svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.contact-tab:hover { color: var(--color-primary); }

.contact-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* Tab Panels */
.tab-panel { display: block; }
.tab-panel[hidden] { display: none; }

/* Termin-Layout */
.termin-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.termin-facts {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.termin-fact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.termin-fact svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-primary-light);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .termin-wrapper {
    grid-template-columns: 1fr;
  }
  .contact-tab {
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
  }
}

/* =========================================================
   CALENDLY MOCKUP
   ========================================================= */
.calendly-mockup {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0,48,135,0.08);
}

.cal-header {
  background: var(--color-primary);
  padding: 1.5rem;
  color: #fff;
}

.cal-header__info {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cal-avatar {
  width: 44px;
  height: 44px;
  background: var(--color-primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  flex-shrink: 0;
}

.cal-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  margin: 0;
  max-width: none;
}

.cal-event {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  margin: 0.1rem 0 0;
  max-width: none;
}

.cal-header__meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cal-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
}

.cal-meta-item svg { width: 14px; height: 14px; }

.cal-body { padding: 1.5rem; }

.cal-month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.cal-month-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-primary);
}

.cal-nav-btn {
  width: 32px;
  height: 32px;
  background: rgba(0,48,135,0.06);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  line-height: 1;
}

.cal-nav-btn:hover { background: rgba(0,48,135,0.12); }

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 6px;
  text-align: center;
}

.cal-weekdays span {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-text-muted);
  padding: 4px 0;
  font-family: var(--font-display);
}

.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 1.25rem;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  border-radius: 50%;
  cursor: default;
  font-weight: 500;
}

.cal-day--empty { background: none; }
.cal-day--past { color: #ccc; }

.cal-day--available {
  cursor: pointer;
  color: var(--color-primary);
  font-weight: 700;
  transition: background 0.15s ease;
}

.cal-day--available:hover { background: rgba(0,48,135,0.08); }

.cal-day--selected {
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
}

.cal-day--unavailable {
  color: #ddd;
  text-decoration: line-through;
}

.cal-slots {
  border-top: 1px solid var(--color-border);
  padding-top: 1.25rem;
}

.cal-slots__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  max-width: none;
}

.cal-slots__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.cal-slot {
  padding: 0.5rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--color-primary);
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 44px;
}

.cal-slot:hover {
  border-color: var(--color-primary);
  background: rgba(0,48,135,0.04);
}

.cal-slot--selected {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.cal-slot--busy {
  color: #ccc;
  border-color: #eee;
  cursor: not-allowed;
  text-decoration: line-through;
}

.cal-confirm {
  width: 100%;
  padding: 0.85rem;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  min-height: 48px;
  transition: background 0.2s ease;
}

.cal-confirm:hover { background: var(--color-bg-dark); }

.cal-footer {
  padding: 0.75rem 1.5rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.cal-footer strong { color: var(--color-primary); }

/* =========================================================
   ANGEBOT-MODAL (3-Schritte-Wizard)
   ========================================================= */
.angebot-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.angebot-modal[hidden] { display: none; }

.angebot-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,32,112,0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}

.angebot-modal__container {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 32px 80px rgba(0,48,135,0.25);
  animation: modalIn 0.35s ease forwards;
}

.angebot-progress { margin-bottom: 2rem; }

.angebot-progress__bar {
  height: 4px;
  background: var(--color-border);
  border-radius: 2px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.angebot-progress__fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.angebot-progress__steps {
  display: flex;
  gap: 0.5rem;
}

.angebot-step {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-border);
  color: var(--color-text-muted);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.angebot-step.active { background: var(--color-primary); color: #fff; }
.angebot-step.done { background: var(--color-primary-light); color: #fff; }

.angebot-modal__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  background: rgba(0,48,135,0.06);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  z-index: 2;
}
.angebot-modal__close:hover { background: rgba(0,48,135,0.12); }
.angebot-modal__close svg { width: 16px; height: 16px; stroke: var(--color-primary); }

.angebot-step-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary-light);
  margin-bottom: 0.5rem;
  max-width: none;
}

.angebot-step-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.4rem;
  line-height: 1.2;
}

.angebot-step-sub {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  max-width: none;
}

.angebot-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.angebot-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--color-primary);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  min-height: 52px;
}

.angebot-option svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: var(--color-primary-light);
}

.angebot-option:hover {
  border-color: var(--color-primary);
  background: rgba(0,48,135,0.03);
  transform: translateY(-1px);
}

.angebot-option.selected {
  border-color: var(--color-primary);
  background: rgba(0,48,135,0.06);
}
.angebot-option.selected svg { stroke: var(--color-primary); }

.angebot-checks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.angebot-check {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text);
  transition: all 0.2s ease;
  min-height: 44px;
}

.angebot-check:hover { border-color: var(--color-primary-light); }
.angebot-check input { display: none; }

.angebot-check__box {
  width: 18px;
  height: 18px;
  border: 2px solid var(--color-border);
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.angebot-check input:checked ~ .angebot-check__box {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.angebot-check input:checked ~ .angebot-check__box::after {
  content: '✓';
  color: #fff;
  font-size: 0.7rem;
  font-weight: 900;
}

.angebot-check:has(input:checked) {
  border-color: var(--color-primary);
  background: rgba(0,48,135,0.04);
}

.angebot-urgency {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.angebot-urgency-btn {
  padding: 0.65rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--color-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 44px;
}

.angebot-urgency-btn:hover { border-color: var(--color-primary); }

.angebot-urgency-btn.selected {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.angebot-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.75rem;
  gap: 1rem;
}

.angebot-back {
  background: none;
  border: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.2s ease;
}
.angebot-back:hover { color: var(--color-primary); }

.angebot-next,
.angebot-submit {
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 0.85rem 2rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  min-height: 48px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.angebot-next:hover,
.angebot-submit:hover {
  background: var(--color-bg-dark);
  transform: translateY(-1px);
}

.angebot-form { display: grid; gap: 1rem; }

.angebot-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.angebot-form__group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.angebot-form__group label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--color-primary);
}

.angebot-form__group input,
.angebot-form__group textarea {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background: #fff;
  transition: border-color 0.2s ease;
  min-height: 44px;
}

.angebot-form__group input:focus,
.angebot-form__group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.angebot-form__group textarea {
  resize: vertical;
  min-height: 80px;
}

.angebot-success {
  text-align: center;
  padding: 2rem 0;
}

.angebot-success__icon {
  width: 72px;
  height: 72px;
  background: rgba(0,48,135,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--color-primary);
}

.angebot-success__icon svg { width: 36px; height: 36px; }

.angebot-success__title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.angebot-success__text {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.angebot-success__contact {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 1.75rem;
  max-width: none;
}

.angebot-success__contact a {
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 560px) {
  .angebot-modal__container {
    padding: 1.5rem;
    max-height: 95vh;
  }
  .angebot-options-grid,
  .angebot-checks,
  .angebot-urgency,
  .angebot-form__row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .angebot-modal__container { animation: none; }
}

/* ── Spacing: Statement → Über-uns ─────────────────────────────── */
:root { --section-padding: clamp(2.5rem, 6vw, 5rem); }
.section--dark { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section-statement { padding: clamp(2.5rem, 5vw, 4rem) 0; }
#qualitaet { padding-top: clamp(2rem, 4vw, 3.5rem); }

/* ── Statement-Sektion: Leerraum gezielt entfernen ─────────────── */
.section-statement { padding: 3rem 0 2rem; }
.statement__inner { padding: 0; }
.statement__author { margin-bottom: 0; }
#qualitaet { padding-top: 2.5rem; }
.section--dark.section-statement { padding: 3rem 0 2rem !important; }

/* ══════════════════════════════════════════════════════════════════
   DESIGN UPGRADE — Modern-Mutig. Typografie führt. Asymmetrie siegt.
   ══════════════════════════════════════════════════════════════════ */

/* ── 1. TYPOGRAFIE ─────────────────────────────────────────────── */

body {
  font-size: 1.0625rem;
  line-height: 1.75;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1.0;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}

.statement__quote {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
  font-style: normal;
}

/* Claim ausblenden — Titel allein ist stärker */
.card__claim { display: none; }
.card__badge { display: none; }

/* ── 2. KARTEN ──────────────────────────────────────────────────── */

.cards-grid { counter-reset: card-counter; }

.card {
  border-radius: 8px;
  counter-increment: card-counter;
  position: relative;
}

/* Obere Akzentlinie entfernen — zu dekorativ */
.card::before { display: none; }

/* Stattdessen: sanfte Border-Farbe beim Hover */
.card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

/* Dezente Karten-Nummer oben rechts */
.card::after {
  content: "0" counter(card-counter);
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(0,48,135,0.15);
  letter-spacing: 0.05em;
  pointer-events: none;
}

.card__icon {
  width: 36px;
  height: 36px;
  background: transparent;
  border-radius: 0;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.card__icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.5;
}

.card__title {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 0.65rem;
}

.card__text {
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 0.25rem;
}

/* "Mehr erfahren" — minimalistisch, uppercase */
.card__link {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  border-bottom: 1px solid rgba(0,48,135,0.25);
  border-top: none;
  padding-bottom: 2px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  transition: border-color 0.2s ease, gap 0.2s ease, color 0.2s ease;
  min-height: unset;
  align-self: flex-start;
}

.card__link:hover {
  border-color: var(--color-primary);
  gap: 0.7rem;
  color: var(--color-primary);
}

/* ── 3. HERO ────────────────────────────────────────────────────── */

.hero-eyebrow {
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.25rem;
}

/* Linie vor dem eyebrow entfernen */
.hero-eyebrow::before { display: none; }

.hero h1 { margin-bottom: 1.5rem; }

.hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  max-width: 480px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-actions { gap: 1.25rem; }

/* ── 4. NAVIGATION ──────────────────────────────────────────────── */

.nav-links a {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.nav__logo-link img,
.nav a.nav__logo-link img {
  height: 44px !important;
}

/* ── 5. TRUST-BAR ───────────────────────────────────────────────── */

.trust-number {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  letter-spacing: -0.03em;
  line-height: 1;
}

.trust-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-top: 0.5rem;
}

.trust-grid { gap: 0; }

.trust-item {
  padding: 2rem;
}

@media (min-width: 640px) {
  .trust-item:not(:last-child) {
    border-right: 1px solid rgba(255,255,255,0.08);
    padding-right: 2rem;
  }
}

/* ── 6. SEKTIONSÜBERSCHRIFTEN — Asymmetrie ──────────────────────── */

.section-title {
  text-align: left;
  max-width: 600px;
}

.section-subtitle {
  text-align: left;
  max-width: 520px;
}

/* CTA-Banner linksbündig */
.kontakt-cta-section {
  text-align: left;
}

.kontakt-cta-section .section-title {
  margin: 0 0 0.5rem 0;
}

.kontakt-cta-section p {
  margin: 0 0 2rem 0;
}

/* ── 7. FOOTER ──────────────────────────────────────────────────── */

.footer-col h4 {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  margin-bottom: 1.25rem;
}

.footer-col a {
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  min-height: unset;
  padding: 0.35rem 0;
}

.footer-col ul { gap: 0; }

.footer-bottom {
  font-size: 0.75rem;
  padding-top: 2rem;
  margin-top: 0;
}

/* ── 8. BUTTONS — kantiger, klarer ─────────────────────────────── */

.btn {
  border-radius: 4px;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
}

.btn:active { transform: scale(0.97); }

/* ── 9. KLEINE DETAILS ──────────────────────────────────────────── */

/* Service-Spalten h4 — uppercase, fein */
.service-section__col h4 {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--color-primary-light);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

/* Zertifikats-Karten — kantiger */
.zert-item { border-radius: 4px; }

.zert-title {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Page-Hero auf Unterseiten — mehr Gewicht */
.page-hero {
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(3rem, 5vw, 4rem);
}

.page-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: -0.03em;
}

/* Back-Link — feiner */
.back-link {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 2rem;
}

.back-link:hover { color: rgba(255,255,255,0.8); }

/* ── Mobile-Korrekturen ─────────────────────────────────────────── */
@media (max-width: 640px) {
  .nav-links a {
    text-transform: none;
    letter-spacing: normal;
    font-size: 1rem;
  }
  .btn {
    text-transform: uppercase;
    font-size: 0.8rem;
  }
}

/* ════════════════════════════════════════════════════════════════
   DESIGN-UPGRADE FORCE — !important-Overrides
   Steht als letztes in der Datei → gewinnt immer
   ════════════════════════════════════════════════════════════════ */

h1 {
  font-size: clamp(3rem, 7vw, 5.5rem) !important;
  line-height: 1.0 !important;
  letter-spacing: -0.04em !important;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.03em !important;
}

.section-label {
  font-size: 0.68rem !important;
  letter-spacing: 0.18em !important;
}

.card__claim,
.card__badge {
  display: none !important;
}

.card {
  border-radius: 6px !important;
  border: 1px solid rgba(0,48,135,0.08) !important;
}

.card:hover {
  border-color: var(--color-primary) !important;
  transform: translateY(-3px) !important;
}

.card::before {
  display: none !important;
}

.card__icon {
  width: 32px !important;
  height: 32px !important;
  background: transparent !important;
  border-radius: 0 !important;
}

.card__icon svg {
  width: 24px !important;
  height: 24px !important;
  stroke-width: 1.5 !important;
}

.card__title {
  font-size: 1.05rem !important;
  letter-spacing: -0.01em !important;
  line-height: 1.2 !important;
}

.card__link {
  font-size: 0.75rem !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
  color: var(--color-primary) !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(0,48,135,0.3) !important;
  border-top: none !important;
  padding-bottom: 2px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  min-height: unset !important;
}

.card__link:hover {
  border-color: var(--color-primary) !important;
  gap: 0.8rem !important;
  color: var(--color-primary) !important;
}

.nav-links a {
  font-size: 0.78rem !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
}

.trust-number {
  font-size: clamp(2.2rem, 4vw, 3.5rem) !important;
  letter-spacing: -0.03em !important;
  line-height: 1 !important;
}

.trust-label {
  font-size: 0.68rem !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,0.4) !important;
}

.btn {
  border-radius: 4px !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
}

.section-title,
.section-subtitle {
  text-align: left !important;
}

.back-link {
  font-size: 0.72rem !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,0.4) !important;
}

.back-link:hover {
  color: rgba(255,255,255,0.8) !important;
}

.page-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem) !important;
  letter-spacing: -0.03em !important;
}

.zert-item { border-radius: 4px !important; }

.zert-title {
  font-size: 0.75rem !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

/* Mobile: Nav nicht uppercase (zu eng) */
@media (max-width: 768px) {
  .nav-links a {
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-size: 1rem !important;
  }
}

/* ── VIER GEZIELTE FIXES ─────────────────────────────────────────── */

/* 1. Icons: kleiner, kein Hintergrund */
.card__icon {
  width: 20px !important;
  height: 20px !important;
  background: none !important;
  border-radius: 0 !important;
  margin-bottom: 1.25rem !important;
  padding: 0 !important;
}

.card__icon svg {
  width: 20px !important;
  height: 20px !important;
  stroke-width: 1.25 !important;
  stroke: rgba(0,48,135,0.45) !important;
}

/* 2. Karten: subtiler Hintergrund für Tiefenwirkung */
#leistungen {
  background: linear-gradient(170deg, #ECEAE4 0%, #E4E1DA 100%) !important;
}

.card {
  background: rgba(255,255,255,0.7) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

/* 3. Nummer — dezenter */
.card::after {
  font-size: 0.65rem !important;
  color: rgba(0,48,135,0.12) !important;
  letter-spacing: 0.05em !important;
}

/* ── ZWEI LETZTE FIXES ───────────────────────────────────────────── */

/* 1. Icon-Badge: komplett weg */
.card__icon {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* 2. Letzte zwei Karten zentrieren (8 Karten: 3+3+2) */
@media (min-width: 901px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cards-grid .card:nth-child(7) {
    grid-column: 1 / 2;
    margin-left: auto;
    margin-right: 0;
  }

  .cards-grid .card:nth-child(8) {
    grid-column: 2 / 3;
    margin-left: 0;
    margin-right: auto;
  }
}

/* ── ZERTIFIKATS-KARTEN UPGRADE ──────────────────────────────────── */

.zert-item {
  padding: 1.75rem !important;
  border-radius: 6px !important;
  border: 1px solid rgba(0,48,135,0.08) !important;
  position: relative !important;
  overflow: hidden !important;
  cursor: pointer !important;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease !important;
}

/* Hover-Linie links */
.zert-item::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  bottom: 0 !important;
  width: 3px !important;
  background: var(--color-primary) !important;
  transform: scaleY(0) !important;
  transform-origin: bottom !important;
  transition: transform 0.3s ease !important;
}

.zert-item:hover::before {
  transform: scaleY(1) !important;
}

/* Nummer oben rechts via data-index */
.zert-item::after {
  content: attr(data-index) !important;
  position: absolute !important;
  top: 1rem !important;
  right: 1rem !important;
  font-family: var(--font-display) !important;
  font-size: 0.65rem !important;
  font-weight: 700 !important;
  color: rgba(0,48,135,0.12) !important;
  letter-spacing: 0.05em !important;
}

.zert-item:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 24px rgba(0,48,135,0.10) !important;
  border-color: var(--color-primary-light) !important;
}

/* Titel: lesbar, nicht uppercase */
.zert-title {
  font-size: 1rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
  color: var(--color-primary) !important;
  margin-bottom: 0.5rem !important;
  line-height: 1.25 !important;
  padding-right: 1.5rem !important;
}

/* Icon: kleiner blauer Punkt */
.zert-icon {
  width: 8px !important;
  height: 8px !important;
  background: var(--color-primary-light) !important;
  border-radius: 50% !important;
  margin-bottom: 1.25rem !important;
  border: none !important;
  display: block !important;
}

.zert-icon svg {
  display: none !important;
}

/* Text */
.zert-text {
  font-size: 0.88rem !important;
  line-height: 1.65 !important;
  color: var(--color-text-muted) !important;
}

/* ── DREI ANPASSUNGEN ────────────────────────────────────────────── */

/* 1. LEISTUNGSKARTEN — dezenter Icon-Badge */
.card__icon {
  width: 36px !important;
  height: 36px !important;
  background: rgba(0,48,135,0.06) !important;
  border-radius: 8px !important;
  border: 1px solid rgba(0,48,135,0.08) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 1.25rem !important;
  padding: 0 !important;
  transition: background 0.22s ease, border-color 0.22s ease !important;
}

.card__icon svg {
  width: 18px !important;
  height: 18px !important;
  stroke-width: 1.5 !important;
  stroke: rgba(0,48,135,0.55) !important;
}

.card:hover .card__icon {
  background: rgba(0,48,135,0.10) !important;
  border-color: rgba(0,48,135,0.15) !important;
}

/* 2. ZERTIFIKATS-KARTEN — gleicher Badge */
.zert-icon {
  width: 36px !important;
  height: 36px !important;
  background: rgba(0,48,135,0.06) !important;
  border-radius: 8px !important;
  border: 1px solid rgba(0,48,135,0.08) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 1rem !important;
  padding: 0 !important;
}

.zert-icon svg {
  display: block !important;
  width: 16px !important;
  height: 16px !important;
  stroke: rgba(0,48,135,0.5) !important;
  stroke-width: 1.5 !important;
  fill: none !important;
}

.section-zertifikate .section-label {
  white-space: nowrap !important;
  font-size: 0.65rem !important;
}

/* 3. SPEZIAL-ITEMS — an Leistungskarten angleichen */
.spezial-item {
  background: rgba(255,255,255,0.7) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(0,48,135,0.08) !important;
  border-radius: 6px !important;
  padding: 1.25rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 1rem !important;
  text-decoration: none !important;
  color: inherit !important;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease !important;
  position: relative !important;
  overflow: hidden !important;
}

.spezial-item:hover {
  transform: translateY(-3px) !important;
  border-color: var(--color-primary) !important;
  box-shadow: 0 8px 24px rgba(0,48,135,0.09) !important;
}

.spezial-item__icon {
  width: 36px !important;
  height: 36px !important;
  background: rgba(0,48,135,0.06) !important;
  border-radius: 8px !important;
  border: 1px solid rgba(0,48,135,0.08) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.spezial-item__icon svg {
  width: 16px !important;
  height: 16px !important;
  stroke: rgba(0,48,135,0.55) !important;
  stroke-width: 1.5 !important;
}

.spezial-item:hover .spezial-item__icon {
  background: rgba(0,48,135,0.10) !important;
}

.spezial-item__title {
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  color: var(--color-primary) !important;
  margin-bottom: 0.2rem !important;
  letter-spacing: -0.01em !important;
  font-family: var(--font-display) !important;
}

.spezial-item__text {
  font-size: 0.8rem !important;
  color: var(--color-text-muted) !important;
  line-height: 1.45 !important;
  margin: 0 !important;
}

.spezial-item__arrow {
  color: rgba(0,48,135,0.3) !important;
  font-size: 0.9rem !important;
  flex-shrink: 0 !important;
  transition: transform 0.2s ease, color 0.2s ease !important;
}

.spezial-item:hover .spezial-item__arrow {
  transform: translateX(4px) !important;
  color: var(--color-primary) !important;
}

.spezial-dienste {
  background: transparent !important;
}

/* ── ZERT-KARTEN LETZTE FIXES ────────────────────────────────────── */
.zert-title {
  font-size: 1.0rem !important;
  font-weight: 700 !important;
  color: var(--color-primary) !important;
  text-transform: none !important;
  letter-spacing: -0.01em !important;
  margin-bottom: 0.5rem !important;
  padding-right: 1.5rem !important;
  line-height: 1.25 !important;
}

.zert-icon {
  margin-bottom: 0.75rem !important;
}

.zert-item {
  padding: 1.35rem 1.5rem !important;
}

/* ════════════════════════════════════════════════════════════════
   WCAG 2.2 AA — KOMPLETT-FIX
   ════════════════════════════════════════════════════════════════ */

/* FIX 1: section-label Kontrast auf hellem Hintergrund (4.59:1) */
.section-label { color: #2E6BA8 !important; }

/* Dunkle Sektionen behalten #5B9BD5 (4.92:1) */
.section--dark .section-label,
.hero .section-label,
.page-hero .section-label,
.section-statement .section-label,
.cta-banner .section-label,
.trust-bar .section-label { color: #5B9BD5 !important; }

/* FIX 2: Trust-Bar Labels (5.99:1 statt 2.06:1) */
.trust-bar__label,
.trust-label { color: rgba(255,255,255,0.72) !important; }

/* FIX 3: Footer-Bottom */
.footer__bottom,
.footer-bottom { color: rgba(255,255,255,0.72) !important; opacity: 1 !important; }

.footer__bottom a, .footer__bottom span,
.footer-bottom a, .footer-bottom span { color: rgba(255,255,255,0.72) !important; }

/* FIX 4: Back-Link */
.back-link { color: rgba(255,255,255,0.72) !important; }
.back-link:hover { color: rgba(255,255,255,0.95) !important; }

/* FIX 6: Fokus-Ring auf Inputs (ersetzt outline:none) */
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus,
.form__input:focus,
.form__textarea:focus,
.form__select:focus,
.angebot-form__group input:focus,
.angebot-form__group textarea:focus,
.angebot-form__group select:focus,
.cal-slot:focus,
.contact-tab:focus,
.cal-day:focus {
  outline: 2px solid #2E6BA8 !important;
  outline-offset: 2px !important;
  border-color: #2E6BA8 !important;
}

/* FIX 10: scroll-padding-top — Sticky Header kompensieren */
html { scroll-padding-top: 88px !important; }

@media (max-width: 768px) {
  html { scroll-padding-top: 72px !important; }
}

/* BONUS: Footer-Links Touch-Target ≥ 32px */
.footer__links a,
.footer-col a {
  display: inline-flex !important;
  min-height: 32px !important;
  align-items: center !important;
  padding: 0.35rem 0 !important;
}

/* WCAG 2.2 — kontakt.html spezifische Kontrast-Fixes */

/* Pflichtfeld-Sterne: #4A7FB5 (accent-dark) auf weiß ist 4.2:1.
   Auf #2E6BA8 anheben → 4.59:1 */
.form-field .req,
.form-footer .req,
.req { color: #2E6BA8 !important; }

/* kontakt-info aside dt: #5B9BD5 auf #003087 → 4:1.
   Auf #74AAD8 anheben → 5.41:1 */
.kontakt-info dt,
aside.kontakt-info dt,
.tab-panel aside dl dt { color: #74AAD8 !important; }

/* Hero-Akzentfarbe im h1 */
.hero-accent { color: #5B9BD5; }

/* .page-header (kontakt.html) ist ebenfalls dunkel */
.page-header .section-label { color: #5B9BD5 !important; }

/* #5B9BD5 auf #003087 ist nur 4.0:1 (pa11y misst exakt).
   #74AAD8 → 4.79:1, konform. Gilt für alle Section-Labels auf dunkel. */
.section--dark .section-label,
.hero .section-label,
.page-hero .section-label,
.page-header .section-label,
.section-statement .section-label,
.cta-banner .section-label,
.trust-bar .section-label { color: #74AAD8 !important; }

/* ── Leistungen Zwei-Tier-Layout ──────────────────────────────────────────
   Tier 1: 4 Kernleistungen als Featured-Cards (2×2)
   Tier 2: 6 Spezialleistungen als kompakte Linkliste (2 Spalten)        */

/* ── Tier 1: Featured Cards ─────────────────────────────────────────── */

.leistungen-featured {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.leistung-card {
  background: #fff;
  border: 1px solid #E2E4E9;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 48, 135, 0.06);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.leistung-card:hover {
  box-shadow: 0 12px 32px rgba(0, 48, 135, 0.11);
  transform: translateY(-2px);
}

.leistung-card__icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 48, 135, 0.06);
  border-radius: 10px;
  border: 1px solid rgba(0, 48, 135, 0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #003087;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.leistung-card__icon svg {
  width: 24px;
  height: 24px;
}

.leistung-card__title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #1a1a2e;
  margin: 0 0 0.75rem;
  line-height: 1.3;
}

.leistung-card__desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.94rem;
  color: #64748b;
  line-height: 1.65;
  margin: 0 0 1rem;
}

.leistung-card__benefit {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: #374151;
  line-height: 1.6;
  margin: 0 0 1.5rem;
  padding: 0.85rem 1rem;
  background: rgba(0, 48, 135, 0.04);
  border-radius: 6px;
  flex: 1;
}

.leistung-card__benefit strong {
  font-family: 'Syne', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: #003087;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.35rem;
}

.leistung-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #003087;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  margin-top: auto;
  padding-top: 0.1rem;
  transition: gap 0.2s ease, color 0.2s ease;
}

.leistung-card__cta:hover {
  gap: 0.55rem;
  color: #2E6BA8;
}

.leistung-card__cta:focus-visible {
  outline: 2px solid #003087;
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Tier 2: Spezialleistungen kompakt ───────────────────────────────── */

.leistungen-spezial {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid #E2E4E9;
}

.leistungen-spezial__label {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #2E6BA8;
  margin: 0 0 1.25rem;
}

.leistungen-spezial__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.leistung-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  background: #fff;
  border: 1px solid #E2E4E9;
  transition: background 0.15s ease, border-color 0.15s ease;
  min-height: 44px;
}

.leistung-item:hover {
  background: rgba(0, 48, 135, 0.03);
  border-color: #5B9BD5;
}

.leistung-item:focus-visible {
  outline: 2px solid #003087;
  outline-offset: 2px;
  border-radius: 8px;
}

.leistung-item__icon {
  width: 32px;
  height: 32px;
  background: rgba(0, 48, 135, 0.06);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #003087;
  flex-shrink: 0;
}

.leistung-item__icon svg {
  width: 16px;
  height: 16px;
}

.leistung-item__name {
  flex: 1;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.92rem;
  color: #1a1a2e;
}

.leistung-item__arrow {
  color: #5B9BD5;
  font-size: 0.88rem;
  transition: transform 0.15s ease;
  flex-shrink: 0;
}

.leistung-item:hover .leistung-item__arrow {
  transform: translateX(3px);
}

/* ── Responsive ──────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .leistungen-featured {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
  }

  .leistung-card {
    padding: 1.5rem;
  }

  .leistungen-spezial {
    margin-top: 2rem;
    padding-top: 1.75rem;
  }
}

@media (max-width: 480px) {
  .leistungen-spezial__list {
    grid-template-columns: 1fr;
  }
}

/* ── Legal Pages (Impressum / Datenschutz / AGB) ─────────────────────────
   Schmaler Seiten-Header, bewusst kleinere Überschriften-Hierarchie,
   65–70ch breiter Content-Bereich, strukturierte dl/dt/dd.               */

/* Seiten-Header auf hellem Hintergrund */
.page-header--legal {
  background: #F5F4F0;
  border-bottom: 1px solid #E2E4E9;
  padding: clamp(2rem, 5vw, 3rem) 0;
}

.page-header--legal h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.65rem, 3vw, 2.1rem) !important;
  font-weight: 700;
  color: #1a1a2e !important;
  margin: 0.75rem 0 0 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.01em !important;
}

/* Breadcrumb */
.legal-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.legal-breadcrumb a {
  color: #2E6BA8;
  text-decoration: none;
  text-underline-offset: 2px;
}

.legal-breadcrumb a:hover {
  text-decoration: underline;
}

.legal-breadcrumb a:focus-visible {
  outline: 2px solid #2E6BA8;
  outline-offset: 2px;
  border-radius: 2px;
}

.legal-breadcrumb__sep {
  color: #B8BAC0;
  font-size: 0.8rem;
  line-height: 1;
}

.legal-breadcrumb__current {
  color: #64748b;
}

/* Content-Section etwas kompakter */
.section--legal {
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3rem, 7vw, 5rem);
}

/* Content-Wrapper: max 70ch für lesbare Zeilenlänge */
.legal-content {
  max-width: 70ch;
}

/* h2: klar kleiner als Hero-Hierarchie, mit subtiler Trennlinie */
.legal-content h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: #1a1a2e !important;
  letter-spacing: -0.01em !important;
  line-height: 1.3 !important;
  margin: 0 0 0.875rem !important;
  padding: 2rem 0 0 !important;
  border-top: 1px solid #E2E4E9;
}

.legal-content h2:first-of-type {
  padding-top: 0 !important;
  border-top: none;
}

/* h3: Unterabschnitt */
.legal-content h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #374151 !important;
  letter-spacing: 0 !important;
  line-height: 1.4 !important;
  margin: 1.75rem 0 0.6rem !important;
}

/* Fließtext */
.legal-content p {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.96rem;
  color: #374151;
  line-height: 1.75;
  margin: 0 0 1rem;
}

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

/* Adressblöcke */
.legal-content address {
  font-style: normal;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.96rem;
  color: #374151;
  line-height: 1.8;
  margin: 0;
}

/* Definition Lists — gestapelt mit Trennlinien */
.legal-content dl {
  margin: 1rem 0 0;
}

.legal-content dl > div {
  padding: 0.75rem 0;
  border-bottom: 1px solid #F0F1F4;
}

.legal-content dl > div:last-child {
  border-bottom: none;
}

.legal-content dt {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  color: #003087;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

.legal-content dd {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.96rem;
  color: #374151;
  line-height: 1.65;
  margin: 0;
}

/* Ordered Lists (AGB) */
.legal-content ol {
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}

.legal-content ol li {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.96rem;
  color: #374151;
  line-height: 1.75;
  margin-bottom: 0.75rem;
  padding-left: 0.25rem;
}

/* Links im Content */
.legal-content a {
  color: #2E6BA8;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  opacity: 0.8;
}

.legal-content a:focus-visible {
  outline: 2px solid #2E6BA8;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Inline-Code (borgstedt_cookie_consent) */
.legal-content code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.875em;
  background: rgba(0, 48, 135, 0.05);
  border: 1px solid #E2E4E9;
  padding: 0.1em 0.4em;
  border-radius: 3px;
  color: #003087;
}

/* Quellenangabe / Lizenznachweis am Ende */
.legal-meta {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.7;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #E2E4E9;
}

/* Lead-Text oben (AGB-Einleitung) */
.legal-lead {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.96rem;
  color: #64748b;
  line-height: 1.65;
  margin-bottom: 2.5rem;
}

/* Mobile */
@media (max-width: 600px) {
  .legal-content h2 {
    font-size: 1.05rem;
  }

  .legal-content {
    max-width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   /impeccable typeset — Typografie-Hierarchie & Seiten-Rhythmus
   ─────────────────────────────────────────────────────────────────────
   Globale h1/h2-Resets (~Zeile 3101) nutzen !important → hier ebenfalls.
   WCAG AA-Kontrastverhältnisse bleiben unberührt (nur Größe & Spacing).
   ═══════════════════════════════════════════════════════════════════════ */

/* ── 1. Section-Labels: 0.7rem / letter-spacing 0.12em ──────────────── */

.section-label {
  font-size: 0.7rem !important;
  letter-spacing: 0.12em !important;
}

/* ── 2. h2 Section-Titel: enger gefasstes Größenband, tight line-height */

h2,
.section-title {
  font-size: clamp(2rem, 3.5vw, 2.4rem) !important;
  line-height: 1.15 !important;
  letter-spacing: -0.025em !important;
}

/* Konsistenter Abstand h2 → Subtitle */
.section-title {
  margin-bottom: 0.75rem !important;
}

/* ── 3. h3 Card-Titel (Tier 1 Kernleistungen) ───────────────────────── */

.leistung-card__title {
  font-size: 1.25rem !important;
  line-height: 1.3 !important;
  letter-spacing: -0.01em !important;
}

/* ── 4. Fließtext: 1rem / DM Sans 400 / line-height 1.65 ────────────── */

.section-subtitle {
  font-size: 1rem !important;
  line-height: 1.65 !important;
  max-width: 65ch !important;
  margin-bottom: 2.75rem !important;
}

.leistung-card__desc {
  font-size: 1rem !important;
  line-height: 1.65 !important;
  max-width: 52ch;
}

.qualitaet-text p {
  font-size: 1rem !important;
  line-height: 1.7 !important;
}

.zert-text {
  font-size: 0.94rem;
  line-height: 1.65;
}

/* ── 5. Small/Meta: 0.85rem DM Sans 500 (Vorteil-Box + Tier-2-Label) ── */

.leistung-card__benefit {
  font-size: 0.85rem !important;
  font-weight: 500 !important;
}

.leistungen-spezial__label {
  font-size: 0.7rem !important;
  letter-spacing: 0.12em !important;
}

/* ── 6. Hero-Subline: max 50ch ──────────────────────────────────────── */

.hero-sub {
  max-width: 50ch !important;
}

/* ── 7. Seiten-Rhythmus: variierende Section-Abstände ───────────────── */

/* Leistungen: großzügig oben (nach Trust-Bar), moderat unten */
#leistungen {
  padding-top: clamp(5rem, 8vw, 6rem) !important;
  padding-bottom: clamp(2.5rem, 4vw, 3.5rem) !important;
}

/* Statement-Zitat: kompakt — es ist ein Atemzug, keine Bühne */
.section-statement {
  padding-top: clamp(2rem, 3.5vw, 2.75rem) !important;
  padding-bottom: clamp(2rem, 3.5vw, 2.75rem) !important;
}

/* Qualität/Über-uns: mittel */
#qualitaet {
  padding-top: clamp(3rem, 5vw, 4rem) !important;
  padding-bottom: clamp(3rem, 5vw, 4rem) !important;
}

/* Zertifikate: kleiner Abstand oben — bewusst nah an Qualität */
.section-zertifikate {
  padding-top: clamp(2rem, 3vw, 2.5rem) !important;
  padding-bottom: clamp(2.5rem, 4vw, 3.5rem) !important;
}

/* CTA-Abschnitt: großzügig zum Footer */
#kontakt-cta {
  padding-top: clamp(4rem, 7vw, 5rem) !important;
  padding-bottom: clamp(4rem, 7vw, 5rem) !important;
}

/* ── 8. Interne Card-Abstände ────────────────────────────────────────── */

/* Tier 1: 1.5rem Gap (spec), Abstand zu Section-Header */
.leistungen-featured {
  gap: 1.5rem !important;
  margin-top: 0 !important;
}

/* Tier 2: kompakter, 0.75rem Gap */
.leistungen-spezial__list {
  gap: 0.75rem !important;
}

.leistungen-spezial {
  margin-top: 2.75rem !important;
}

/* Zertifikate-Grid: etwas weniger Abstand nach Section-Header */
.zert-grid {
  margin-top: 2rem !important;
}

/* ====================================================
   KONTAKT-CTA — Verbesserungen
   ==================================================== */

/* Weißer Button auf blauem Hintergrund — überschreibt btn-dark */
.btn-cta-white {
  background: #ffffff;
  color: #003087;
  border-color: #ffffff;
  padding: 0.9rem 2.5rem;
}

.btn-cta-white:hover {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.btn-cta-white:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
}

/* Reduzierter Abstand: Subtext → CTA-Zeile */
.kontakt-cta-section .kontakt-cta__sub {
  margin-bottom: 1.25rem;
}

/* Actions-Zeile: Button + Telefon nebeneinander, zentriert */
.kontakt-cta__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

/* Telefon-Link: klein, weiß, mit Icon */
.kontakt-cta__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}

.kontakt-cta__phone:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.kontakt-cta__phone:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (max-width: 640px) {
  .kontakt-cta__actions {
    flex-direction: column;
    gap: 1.25rem;
  }
}

/* ====================================================
   HERO — zweiter CTA-Button "Jetzt bewerben"
   ==================================================== */

/* Transparenter Ghost-Button mit vollem weißem Rand — für Hero (dunkler BG) */
.btn-hero-cta {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.btn-hero-cta:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: #ffffff;
}

.btn-hero-cta:focus-visible {
  outline: 2px solid #5B9BD5;
  outline-offset: 3px;
}


/* ====================================================
   KARRIERE SECTION
   ==================================================== */

/* Thematischer Trenner — signalisiert Themenwechsel */
hr.topic-break {
  border: none;
  border-top: 2px solid rgba(0, 48, 135, 0.15);
  width: 48px;
  margin: 2.5rem auto;
}

/* Section-Hintergrund: kühler blauer Ton, klar anders als #F5F4F0 */
.section--karriere {
  background-color: #eef2f9;
  padding-top: clamp(3rem, 5vw, 4.5rem);
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
}

/* Intro-Text */
.karriere-intro {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 1rem;
  line-height: 1.7;
  color: #1a1a2e;
  max-width: 65ch;
  margin: 1.25rem 0 2.5rem;
}

/* Benefits: 2×2-Grid, kein identisches Karten-Raster */
.karriere-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 3rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 3rem;
}

.karriere-benefit {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

/* Icon-Badge */
.karriere-benefit__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background-color: rgba(0, 48, 135, 0.07);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #003087;
}

.karriere-benefit__icon svg {
  width: 22px;
  height: 22px;
}

.karriere-benefit__body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.karriere-benefit__label {
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.3;
}

.karriere-benefit__text {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 0.9rem;
  line-height: 1.55;
  color: #64748b;
}

/* CTA-Block */
.karriere-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

/* Button: zentriert auf Desktop, breit genug für Klick-Komfort */
.karriere-cta__btn {
  padding: 0.875rem 3rem;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

/* Kontakt-Zeile unterhalb */
.karriere-cta__contact {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
}

.karriere-cta__contact a {
  color: #2E6BA8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.karriere-cta__contact a:hover {
  color: #003087;
}

/* ── Mobile ──────────────────────────────────────────── */
@media (max-width: 640px) {
  .karriere-benefits {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .karriere-cta__btn {
    width: 100%;
    text-align: center;
  }
}

/* ====================================================
   SO FUNKTIONIERT ES — Prozess-Section
   ==================================================== */

.section--prozess {
  background-color: #f8f9fa;
  padding-top: var(--section-padding, clamp(2.5rem, 6vw, 5rem));
  padding-bottom: var(--section-padding, clamp(2.5rem, 6vw, 5rem));
}

/* Drei-Spalten-Grid ohne Karten-Raster */
.prozess-steps {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 4rem;
}

/* Einzelner Schritt */
.prozess-step {
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Horizontale Verbindungslinie im Gap zwischen den Schritten */
.prozess-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 1.5rem;
  left: 100%;
  width: 4rem;
  height: 1px;
  background-color: #dde1ea;
  pointer-events: none;
  z-index: 0;
}

/* Große Ordnungszahl — primäres visuelles Anker-Element */
.prozess-step__num {
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: #003087;
  display: block;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

/* Icon unter der Zahl */
.prozess-step__icon {
  display: flex;
  align-items: center;
  color: #003087;
  margin-bottom: 0.875rem;
}

/* Schritt-Titel: Syne Bold */
.prozess-step__title {
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

/* Beschreibungstext: DM Sans */
.prozess-step__text {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 0.9rem;
  line-height: 1.65;
  color: #64748b;
  margin: 0;
  max-width: 28ch;
}

/* CTA-Block */
.prozess-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
  text-align: center;
  margin-top: 3rem;
}

.prozess-cta__phone {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
}

.prozess-cta__tel {
  color: #2E6BA8;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

.prozess-cta__tel:hover {
  color: #003087;
}

.prozess-cta__tel:focus-visible {
  outline: 2px solid #003087;
  outline-offset: 2px;
  border-radius: 2px;
}

/* ── Mobile: vertikale Timeline ─────────────────────── */
@media (max-width: 640px) {
  .prozess-steps {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Nummer absolut links, Inhalt daneben */
  .prozess-step {
    padding-left: 3.25rem;
    padding-bottom: 2.5rem;
    min-height: 3rem;
  }

  .prozess-step:last-child {
    padding-bottom: 0;
  }

  .prozess-step__num {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 2rem;
    margin-bottom: 0;
  }

  /* Verbinder wird zur vertikalen Timeline-Linie */
  .prozess-step:not(:last-child)::after {
    top: 2.2rem;
    left: 0.9rem;
    width: 1px;
    height: calc(100% - 2.2rem);
  }

  .prozess-cta {
    margin-top: 2.5rem;
  }

  .prozess-cta .btn-outline {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* ── Prozess-Nummerierung: kompaktere Größe ─────────── */
.prozess-step__num {
  font-size: 1.75rem;
  letter-spacing: 0.02em;
  line-height: 1;
}

/* ── Statement-Autorenzeile: linksbündig mit Zitattext ─ */
.statement__author {
  text-align: left;
}

/* =========================================================
   VORHER/NACHHER-SLIDER — Natursteinveredelung
   ========================================================= */
.vn-slider {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  height: 420px;
  cursor: col-resize;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  background: #e8e6e0;
  box-shadow: var(--shadow);
}

.vn-before,
.vn-after {
  position: absolute;
  inset: 0;
}

.vn-before img,
.vn-after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Nachher-Ebene liegt über Vorher und wird von links weggeschnitten,
   sodass sie rechts vom Regler sichtbar ist (links Vorher, rechts Nachher) */
.vn-after {
  clip-path: inset(0 0 0 50%);
  transition: clip-path 0.04s linear;
  will-change: clip-path;
}

.vn-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #ffffff;
  transform: translateX(-1px);
  pointer-events: none;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.25);
}

.vn-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  cursor: col-resize;
}

.vn-handle:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.vn-label {
  position: absolute;
  bottom: 1rem;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  pointer-events: none;
}

/* rgba 0.6 statt 0.5: hält AA-Kontrast auch über hellen Steinflächen */
.vn-label--before {
  left: 1rem;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
}

.vn-label--after {
  right: 1rem;
  background: #ffffff;
  color: var(--color-primary);
}

.vn-caption {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-align: center;
}

@media (max-width: 768px) {
  .vn-slider {
    height: 260px;
  }
}

/* =========================================================
   HERO — Mobile-Optimierung (< 640px)
   ========================================================= */
@media (max-width: 640px) {

  /* Problem 1: H1 läuft aus dem Viewport */
  .hero h1 {
    font-size: clamp(1.8rem, 7vw, 2.4rem) !important;
  }

  .hero .container {
    max-width: 100%;
    padding-right: 1.5rem;
  }

  /* Problem 2: "Jetzt bewerben" ausblenden — bereits in #karriere prominent platziert */
  .btn-hero-cta {
    display: none;
  }

  /* Verbleibende zwei Buttons: nebeneinander wenn Platz reicht, sonst gestapelt */
  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
    min-width: 140px;
    width: auto;
  }

  /* Problem 3: Hero-Spacing */
  .hero {
    padding-top: 3rem;
    padding-bottom: 2.5rem;
  }

  .hero-sub {
    font-size: 0.95rem;
  }
}

/* =========================================================
   MOBILE-FIXES (< 640px)

   Hinweis zu den Selektoren: Die Vorlage nannte .hero-title,
   .hero-content, .section-hero und .trust-bar (als Grid). Diese
   Klassen existieren in diesem Theme nicht bzw. sind kein Grid.
   Ersetzt durch die tatsaechlichen Gegenstuecke aus dem Markup:
     .hero-title   -> .hero h1        (h1 traegt keine Klasse)
     .hero-content -> .hero .container
     .section-hero -> .hero
     .trust-bar    -> .trust-grid     (.trust-bar ist nur der Rahmen)
   ========================================================= */
@media (max-width: 640px) {

  /* Hero H1 — kein Overflow auf Mobile.
     !important ist noetig, weil der globale Override-Block am
     Dateiende h1 { font-size/line-height ... !important } setzt. */
  .hero h1 {
    font-size: clamp(1.8rem, 7vw, 2.4rem) !important;
    line-height: 1.15 !important;
  }

  .hero .container {
    max-width: 100%;
    padding-right: 1.5rem;
    overflow-x: hidden;
  }

  /* Hero Subtext.
     !important bei max-width, weil weiter oben
     .hero-sub { max-width: 50ch !important } steht und sonst gewinnt. */
  .hero-sub {
    font-size: 0.95rem;
    max-width: 100% !important;
  }

  /* Hero Buttons — Jetzt bewerben auf Mobile ausblenden */
  .btn-hero-cta {
    display: none;
  }

  /* Hero Buttons gestapelt */
  .hero-actions {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  /* Hero Spacing reduzieren */
  .hero {
    padding-top: 3rem;
    padding-bottom: 2.5rem;
  }

  /* Trust-Bar */
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  /* Karriere Button volle Breite */
  .karriere-cta .btn {
    width: 100%;
  }

  /* Prozess-Schritte gestapelt */
  .prozess-steps {
    grid-template-columns: 1fr;
  }

  .prozess-step:not(:last-child)::after {
    display: none;
  }

  /* Footer gestapelt */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* ---------------------------------------------------------------
     Ergaenzung: Leistungskarten + Logo

     Selektor-Korrektur gegenueber der Vorlage — .leistungen-grid,
     .leistungen-tier1, .leistungen-tier2 und .nav-logo werden von
     keinem Element im Markup benutzt. Reale Gegenstuecke:
       .leistungen-tier1 -> .leistungen-featured
       .leistungen-tier2 -> .leistungen-spezial__list
       .nav-logo img     -> .nav__logo-link img
     --------------------------------------------------------------- */

  /* Leistungskarten auf Mobile gestapelt.
     Tier 1 stapelt bereits ab 768px; hier explizit, damit die Regel
     nicht an einer spaeteren Aenderung dort haengt. */
  .leistungen-featured {
    grid-template-columns: 1fr !important;
  }

  /* Tier 2 stapelte bisher erst ab 480px — schliesst die Luecke 481–640px. */
  .leistungen-spezial__list {
    grid-template-columns: 1fr !important;
  }

  /* Logo auf Mobile groesser (48px statt 44px).
     !important ist noetig: das <img> traegt einen Inline-Style
     (height: 52px) und weiter oben steht
     .nav__logo-link img { height: 44px !important }. */
  .nav__logo-link img,
  .nav a.nav__logo-link img {
    height: 48px !important;
    width: auto;
  }

}

/* =========================================================
   STADT-LANDINGPAGE — Breadcrumb, Einsatzgebiete, Leistungs-Items
   ========================================================= */

.breadcrumb {
  margin-bottom: 1.5rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.82rem;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.5);
}

.breadcrumb li:not(:last-child)::after {
  content: '→';
  color: rgba(255, 255, 255, 0.3);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.breadcrumb li[aria-current="page"] {
  color: #ffffff;
}

/* Einsatzgebiete: 2-spaltige Liste, kein Karten-Grid */
.gebiete-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 2rem;
  max-width: 620px;
}

.gebiete-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 0.95rem;
  color: #1a1a2e;
}

.gebiete-list svg {
  flex-shrink: 0;
  color: #5B9BD5;
}

/* Leistungen in Bielefeld: Icon + Titel + Kurztext, verlinkt */
.stadt-leistungen {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.stadt-leistung {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  background: #fff;
  border: 1px solid #E2E4E9;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.stadt-leistung:hover {
  background: rgba(0, 48, 135, 0.03);
  border-color: #5B9BD5;
}

.stadt-leistung:focus-visible {
  outline: 2px solid #003087;
  outline-offset: 2px;
}

.stadt-leistung__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(0, 48, 135, 0.06);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #003087;
}

.stadt-leistung__icon svg {
  width: 20px;
  height: 20px;
}

.stadt-leistung__body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.stadt-leistung__title {
  font-family: var(--font-display, 'Syne', sans-serif);
  font-weight: 700;
  font-size: 0.95rem;
  color: #1a1a2e;
}

.stadt-leistung__text {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 0.85rem;
  line-height: 1.55;
  color: #64748b;
}

.stadt-leistung__arrow {
  color: #5B9BD5;
  font-size: 0.9rem;
  align-self: center;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .gebiete-list,
  .stadt-leistungen {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   FAQ-ACCORDION
   ========================================================= */

.faq-section {
  padding: 3rem 0;
  background: var(--color-white, #ffffff);
  border-top: 1px solid var(--color-border, #E2E4E9);
}

.faq-list {
  max-width: 760px;
}

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

.faq-item__heading {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

/* Button statt div: per Tastatur ohne zusätzlichen JS-Handler bedienbar */
.faq-question {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-display, 'Syne', sans-serif);
  /* Syne ist nur in 700/800 geladen (siehe functions.php) — 500 gibt es
     nicht, der Browser würde sonst uneinheitlich synthetisieren. */
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text, #1a1a2e);
  text-align: left;
}

.faq-question:hover {
  color: var(--color-primary, #003087);
}

.faq-question:focus-visible {
  outline: 2px solid var(--color-primary, #003087);
  outline-offset: 2px;
}

.faq-question::after {
  content: '+';
  flex-shrink: 0;
  width: 1.4rem;
  font-family: var(--font-display, 'Syne', sans-serif);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--color-primary, #003087);
  text-align: center;
  transition: transform 0.25s ease;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-muted, #64748b);
  margin: 0 0 1.5rem;
}

@media (prefers-reduced-motion: reduce) {
  .faq-answer,
  .faq-question::after {
    transition: none;
  }
}

/* =========================================================
   LOGO-GRÖSSE — Header
   Bestehende Regeln (44px global, 48px ≤640px) bleiben unangetastet;
   diese Ergänzung gewinnt per Kaskadenposition (steht später in der
   Datei). .nav-logo img wird bewusst NICHT mit angepasst — die Klasse
   wird von keinem Element im Markup verwendet (siehe Kommentar weiter
   oben im Mobile-Fix-Block), eine Änderung hätte keine sichtbare
   Wirkung.
   ========================================================= */

/* Desktop (und alles über 768px): 64px statt bisher 44px */
.nav__logo-link img,
.nav a.nav__logo-link img {
  height: 64px !important;
}

/* Mobile/Tablet bis 768px: 48px — schließt zugleich die bisherige
   Lücke zwischen 641px und 768px, die bislang auf die Desktop-Regel
   zurückfiel. */
@media (max-width: 768px) {
  .nav__logo-link img,
  .nav a.nav__logo-link img {
    height: 48px !important;
    width: auto;
  }
}

/* =========================================================
   LOGO — weitere Vergrößerung (72px Desktop / 52px ≤768px)
   Bestehende Regeln oben (64px global, 48px ≤768px) nutzen
   !important — nur eine spätere !important-Regel gleicher
   Spezifität kann sie schlagen, daher hier zwingend nötig.
   ========================================================= */
.nav__logo-link img,
.nav a.nav__logo-link img {
  height: 72px !important;
}

@media (max-width: 768px) {
  .nav__logo-link img,
  .nav a.nav__logo-link img {
    height: 52px !important;
    width: auto;
  }
}

/* =========================================================
   HERO — Abstand zur Navigation reduzieren (Desktop/Tablet)

   Realer Selektor: .hero (nicht .section-hero — diese Klasse
   existiert im Markup/CSS nicht). Basisregel bei ca. Zeile 431:
   .hero { padding: clamp(4rem, 10vw, 7rem) 0; } — setzt
   padding-top ungescoped, computed 112px bei ≥1200px Breite.

   Kein !important nötig: gleiche Spezifität (.hero, 0,1,0),
   keine bestehende Regel nutzt !important für padding-top,
   spätere Kaskadenposition reicht zum Überschreiben.

   Bewusst auf min-width:641px begrenzt, damit die separat
   abgestimmte Mobile-Regel (.hero{padding-top:3rem} bei
   max-width:640px, aus einer früheren Session) unberührt
   bleibt — keine Lücke, keine Überlappung an der Grenze.
   ========================================================= */
@media (min-width: 641px) {
  .hero {
    padding-top: 60px;
  }
}

/* =========================================================
   HERO — weitere Reduzierung des Abstands (Ziel: ~2rem sichtbar)

   Realer Selektor bestätigt: .hero (kein .section-hero im Code).
   Vorheriger Wert (siehe Regel direkt oberhalb, aus vorigem
   Auftrag): padding-top: 60px, ergab real gemessen 60px Abstand
   zwischen Nav und .hero-eyebrow ("Bielefeld · NRW").

   .hero nutzt display:flex; align-items:center; min-height:75vh
   (Basisregel ca. Zeile 431). Sinkt padding-top so weit, dass
   Content + Padding die 75vh-Mindesthöhe unterschreiten, zentriert
   Flexbox den Inhalt zusätzlich — der sichtbare Abstand ist dann
   GRÖSSER als der reine padding-top-Wert. Empirisch mit
   getComputedStyle/getBoundingClientRect ermittelt: padding-top:
   32px ergibt real gemessen 34px sichtbaren Abstand (Ziel: ca. 2rem
   / 32px) — kein !important nötig, gleiche Spezifität, spätere
   Kaskadenposition reicht.

   KORREKTUR nach Test mit vollständig geladenen Webfonts (die erste
   Messung lief vor Font-Swap, mit kürzerem/schmalerem Fallback-Text
   und dadurch weniger Content-Höhe): Mit finalen Fonts unterschreitet
   der Content schon bei padding-top:0 nicht mehr die 75vh-Grenze in
   ausreichendem Maß, das Flexbox-Centering (siehe Kommentar oben)
   erzeugt einen Boden von ca. 38px sichtbarem Abstand, der durch
   weiteres Reduzieren von padding-top nicht mehr unterschritten
   werden kann. 38px liegt nah am Zielwert von 2rem/32px und ist der
   kleinstmögliche Wert ohne Eingriff in min-height/align-items der
   .hero-Basisregel (das wäre eine größere, hier nicht beauftragte
   Strukturänderung mit Seiteneffekten auf die gesamte Hero-Höhe).
   ========================================================= */
@media (min-width: 641px) {
  .hero {
    padding-top: 0;
  }
}

/* =========================================================
   HEADER — Innenabstand für größeres Logo (72px/52px)

   Reale Selektoren: .site-header (Zeile ~295) und .nav (Zeile ~305).
   Beide hatten bisher padding-top/-bottom: 0 (kein eigenes Padding
   gesetzt, per getComputedStyle bestätigt). .nav hat min-height:72px
   und zentriert den Inhalt vertikal (align-items:center) — bei
   72px Logo (siehe LOGO-Regeln oben) füllt das Bild die Zeile exakt
   aus, ohne jeden Rand, dadurch wirkt es abgeschnitten/gequetscht.

   Padding auf .site-header ergänzt (nicht auf .nav — .site-header
   ist der äußere Container laut Auftrag und umschließt nur
   .container > .nav, das Ergebnis ist visuell identisch, da keine
   weiteren Geschwister-Elemente vorhanden sind).
   ========================================================= */
.site-header {
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
}

/* =========================================================
   HERO — symmetrisches Padding oben/unten (Desktop/Tablet)

   Realer Selektor: .hero (.section-hero existiert weiterhin nicht
   im Markup/CSS). Vorherige computed Werte bei 1440px Breite:
   padding-top: 0px (aus der vorigen Aufgabe, direkt oberhalb bei
   Zeile ~5067 gesetzt), padding-bottom: 160px (aus der Basisregel
   ca. Zeile 431: padding-bottom: clamp(6rem, 12vw, 10rem) —
   unverändert seit einer früheren Session). Beide Werte lagen damit
   weit auseinander (0px vs. 160px), kein symmetrischer Look.

   Setzt jetzt beide Seiten auf denselben clamp(5rem, 10vw, 8rem) —
   ersetzt/übersteuert damit auch die padding-top:0-Regel der
   vorigen Aufgabe (per Kaskadenposition + !important).

   Bewusst weiterhin auf min-width:641px begrenzt: eine separat
   abgestimmte Mobile-Regel (.hero { padding-top:3rem; padding-
   bottom:2.5rem } bei max-width:640px, aus einer früheren Session)
   bleibt unberührt. Ohne diese Begrenzung würde !important sie
   trotz höherer Selektor-Herkunft überschreiben, da !important
   unabhängig von der Kaskadenreihenfolge gewinnt — das war vom
   Auftrag nicht verlangt und hätte die Mobile-Ansicht verändert.
   ========================================================= */
@media (min-width: 641px) {
  .hero {
    padding-top: clamp(5rem, 10vw, 8rem) !important;
    padding-bottom: clamp(5rem, 10vw, 8rem) !important;
  }
}

/* =========================================================
   HERO — padding-top erneut reduziert (Desktop/Tablet)

   Realer Selektor: .hero (.section-hero existiert weiterhin nicht).
   Vorheriger computed Wert bei 1440px: padding-top: 128px (aus der
   vorigen Aufgabe, Regel direkt oberhalb). padding-bottom bleibt
   unverändert bei 128px (aus derselben vorigen Regel, hier nicht
   angefasst).

   Neuer Wert: clamp(3rem, 5vw, 4rem) → 64px bei 1440px Breite.

   Hinweis (siehe auch Kommentar bei der HERO-Regel weiter oben zum
   Abstand zur Navigation): .hero nutzt display:flex; align-items:
   center; min-height:75vh. Der sichtbare Abstand zwischen Nav und
   .hero-eyebrow entspricht daher nicht zwingend exakt dem padding-
   top-Wert, sondern kann durch Flexbox-Zentrierung zusätzlich
   vergrößert werden, falls Content+Padding die 75vh-Mindesthöhe
   unterschreiten. Der reale Effekt wird unten in der Verifikation
   gemessen und berichtet.
   ========================================================= */
@media (min-width: 641px) {
  .hero {
    padding-top: clamp(3rem, 5vw, 4rem) !important;
  }
}
