/* ============================================
   TS-Scherer Design System v2
   Komplett-Redesign 2026-04-16
   Sage-Archetyp: klar, direkt, kompetent
   Colors: TS-Blue #1F4E78 · Gold #C9A961
   ============================================ */

/* ===========================================
   1. CUSTOM PROPERTIES
   =========================================== */
:root {
  /* Brand Colors */
  --ts-blue: #1F4E78;
  --ts-blue-dark: #15375A;
  --ts-blue-light: #2A6899;
  --ts-gold: #C9A961;
  --ts-gold-light: #E8D9B1;
  --ts-gold-dark: #A8893E;

  /* Neutrals */
  --anthracite: #2B2D33;
  --grey-700: #4A4F57;
  --grey-500: #6B7280;
  --grey-400: #8B9098;
  --grey-300: #B0B5BD;
  --grey-200: #D8DCE1;
  --grey-100: #EEF0F3;

  /* Warm Backgrounds (Briefing: #F4F1E8) */
  --bg-warm: #F4F1E8;
  --bg-warm-light: #F9F7F2;
  --bg-faq: #EBF0F5;             /* exklusiv FAQ-Sektion */
  --anthracite-light: #34373D;   /* exklusiv Footer-Top-Strip */
  --white: #FFFFFF;

  /* Semantic */
  --green: #2E7D5B;
  --red: #C0392B;

  /* Typography */
  --font: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing (8px Grid) */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 40px;
  --sp-6: 48px;
  --sp-8: 64px;
  --sp-10: 80px;
  --sp-12: 96px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(31, 78, 120, 0.06);
  --shadow-md: 0 4px 16px rgba(31, 78, 120, 0.08);
  --shadow-lg: 0 8px 32px rgba(31, 78, 120, 0.12);
  --shadow-xl: 0 16px 48px rgba(31, 78, 120, 0.16);

  /* Borders */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 12px;
  --radius-full: 50%;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.2s;
}

/* ===========================================
   2. RESET & BASE
   =========================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font);
  color: var(--anthracite);
  line-height: 1.65;
  background: var(--white);
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ts-blue); text-decoration: none; }
a:hover { color: var(--ts-blue-light); }
::selection { background: var(--ts-gold-light); color: var(--ts-blue-dark); }

/* ===========================================
   3. TYPOGRAPHY
   =========================================== */
h1, h2, h3, h4, h5 {
  font-family: var(--font);
  color: var(--ts-blue-dark);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.3px;
}
h1, h2, h3 { text-wrap: balance; }
h1 { font-size: clamp(32px, 5vw, 52px); margin-bottom: var(--sp-3); letter-spacing: -0.5px; }
h2 { font-size: clamp(26px, 3.5vw, 38px); margin-bottom: var(--sp-2); }
h3 { font-size: clamp(20px, 2.5vw, 24px); margin-bottom: var(--sp-2); }
h4 { font-size: 18px; margin-bottom: var(--sp-1); }
p { margin-bottom: var(--sp-2); color: var(--grey-700); line-height: 1.65; }
strong { color: var(--anthracite); }
ul, ol { color: var(--grey-700); padding-left: 22px; margin-bottom: var(--sp-3); }
li { margin-bottom: var(--sp-1); }

/* ===========================================
   4. LAYOUT
   =========================================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--sp-5); }
.container--narrow { max-width: 860px; margin: 0 auto; padding: 0 var(--sp-5); }
.container--wide { max-width: 1400px; margin: 0 auto; padding: 0 var(--sp-5); }
section { padding: var(--sp-10) 0; }
.section--lg { padding: var(--sp-12) 0; }

/* Backgrounds */
.bg-warm { background: var(--bg-warm); }
.bg-warm-light { background: var(--bg-warm-light); }
.bg-blue { background: linear-gradient(135deg, var(--ts-blue) 0%, var(--ts-blue-dark) 100%); color: var(--white); }
.bg-blue h2, .bg-blue h3 { color: var(--white); }
.bg-blue p { color: rgba(255,255,255,0.85); }
.bg-dark { background: linear-gradient(160deg, var(--anthracite) 0%, #1a1c21 100%); color: var(--white); }
.bg-dark h2, .bg-dark h3 { color: var(--white); }
.bg-dark p { color: rgba(255,255,255,0.75); }
.bg-white { background: var(--white); }

/* Section Labels & Lead Text */
.section-label {
  color: var(--ts-blue);
  font-size: 13px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: var(--sp-2);
  display: block;
}
.section-lead {
  font-size: 19px;
  color: var(--grey-700);
  max-width: 720px;
  margin-bottom: var(--sp-6);
  line-height: 1.6;
}
.bg-blue .section-label { color: var(--ts-gold); }

/* Links auf dunklen Hintergruenden (Hero, bg-blue, bg-dark) */
.hero a:not(.btn),
.bg-blue a:not(.btn):not(.card-link):not(.nav-cta),
.bg-dark a:not(.btn):not(.card-link) {
  color: var(--ts-gold-light);
  text-decoration: underline;
  text-decoration-color: rgba(232, 217, 177, 0.5);
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color var(--duration) var(--ease);
}
.hero a:not(.btn):hover,
.bg-blue a:not(.btn):not(.card-link):not(.nav-cta):hover,
.bg-dark a:not(.btn):not(.card-link):hover {
  color: var(--white);
  text-decoration-color: var(--ts-gold);
}
.bg-blue .section-lead { color: rgba(255,255,255,0.8); }

/* ===========================================
   5. NAVIGATION (UDE-Pattern adoptiert · Phase 2 · 2026-04-28)
   Drawer-Pattern via header[data-nav-open], Mobile-Cutoff 870px (TS-Bestand-
   Konvention, NICHT UDE 980px). Token-Substitution: --ude-red → --ts-gold
   (subtle), --ink-XXX → --grey-XXX/--anthracite, --paper → --bg-warm,
   --sans → --font (Roboto), --container → 1200px (TS-Bestand).
   =========================================== */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--anthracite);
  color: var(--white);
  padding: 12px 20px;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

.nav-link:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid var(--ts-gold);
  outline-offset: 3px;
}

/* HEADER */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--grey-200);
  /* iOS-Notch-Safe-Area: Status-Bar respektieren (Block 2.J Bug J1).
     viewport-fit=cover im <meta> aktiviert env(safe-area-inset-*). */
  padding-top: env(safe-area-inset-top, 0);
}
.header-inner {
  display: flex; align-items: center;
  height: 72px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  gap: var(--sp-4);
}
/* Logo links absolut, Nav rechtsbündig (Iteration 2.E) */
.logo-wrap { display: flex; align-items: center; text-decoration: none; margin-right: auto; }
.site-logo {
  display: block;
  height: 40px;
  width: auto;
  flex-shrink: 0;
}

.primary-nav { display: flex; gap: 0.5rem; align-items: center; list-style: none; padding: 0; margin: 0; }
.primary-nav > li { position: relative; }
.nav-link {
  display: inline-block;
  padding: 1rem 0.95rem;
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--anthracite);
  position: relative;
}
.nav-link:hover,
.nav-link[aria-current="page"] { color: var(--ts-blue-dark); }

.nav-link.has-caret {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.nav-chevron {
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  color: currentColor;
  transform: rotate(0deg);
  transform-origin: 50% 50%;
  transition: transform 0.18s ease;
}
/* Caret-Rotation: data-open ist immer aktiv (Mobile + Desktop), Hover nur
   auf echten Hover-Geräten (verhindert Touch-Hover-Persistence-Bug, der
   Caret rotated darstellt obwohl data-open false ist — Diagnose Bug 3a). */
.primary-nav > li.has-mega[data-open="true"] > .nav-link .nav-chevron {
  transform: rotate(180deg);
}
@media (hover: hover) {
  .primary-nav > li.has-mega:hover > .nav-link .nav-chevron,
  .primary-nav > li.has-mega:focus-within > .nav-link .nav-chevron {
    transform: rotate(180deg);
  }
}

/* Mega-Grid Varianten (Iteration 2.E):
   --3col:  1col + Mega-Feature-Aside (für Leistungen-Cluster)
   --4col:  3 Item-Cols + Mega-Feature-Aside (für Server-Beratung-Mega) */
.mega-grid { display: grid; gap: var(--sp-4); }
.mega-grid--3col { grid-template-columns: 1fr 320px; }
.mega-grid--4col { grid-template-columns: 1.3fr 0.9fr 0.8fr 280px; }
.mega-col { min-width: 0; }

/* Simple Dropdown (Leistungen-Cluster, Iteration 2.F Bug 1) —
   Desktop: position:absolute Hover-Dropdown
   Mobile : statisch im Drawer-Akkordeon */
.has-submenu { position: relative; }
.submenu {
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 1025px) {
  .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: var(--white);
    border: 1px solid var(--grey-100);
    border-top: 2px solid var(--ts-gold);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    padding: var(--sp-2) 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s;
    z-index: 60;
  }
  .has-submenu:hover .submenu,
  .has-submenu:focus-within .submenu,
  .has-submenu[data-open="true"] .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.15s ease, transform 0.15s ease;
  }
  .has-submenu[data-open="true"] > .nav-link .nav-chevron {
    transform: rotate(180deg);
  }
  @media (hover: hover) {
    .has-submenu:hover > .nav-link .nav-chevron,
    .has-submenu:focus-within > .nav-link .nav-chevron {
      transform: rotate(180deg);
    }
  }
}
.submenu li a {
  display: block;
  padding: 10px 20px;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--anthracite);
  text-decoration: none;
  transition: background-color 0.1s ease, color 0.1s ease;
}
.submenu li a:hover {
  background: var(--bg-warm);
  color: var(--ts-blue-dark);
}
.submenu li a[aria-current="page"] {
  color: var(--ts-blue-dark);
  font-weight: 600;
}
.submenu-overview {
  border-top: 1px solid var(--grey-100);
  margin-top: var(--sp-1);
  padding-top: var(--sp-1);
}
.submenu-overview a {
  color: var(--ts-blue);
  font-weight: 600;
}

/* Bullets-Reset auf allen Submenu-Listen (Iteration 2.E Quick-Fix) */
.mega .mega-list,
.mega-list,
.nav-submenu,
.nav-dropdown-menu,
.submenu {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

/* DESKTOP ≥ 1025px — Mega-Panel als Hover-Dropdown (Block 2.G: 870→1024) */
@media (min-width: 1025px) {
  .primary-nav .mega {
    position: absolute;
    top: 100%; left: 0; right: 0;
    width: auto;
    padding: 0;
    background: var(--white);
    border-top: 3px solid var(--ts-gold);
    box-shadow: 0 24px 32px -20px rgba(0, 0, 0, 0.12);
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 60;
  }
  .primary-nav .mega::before {
    content: "";
    position: absolute;
    top: -12px; left: 0; right: 0;
    height: 12px;
    background: transparent;
    pointer-events: none;
  }
  .primary-nav > li.has-mega:hover > .mega,
  .primary-nav > li.has-mega:focus-within > .mega,
  .primary-nav > li.has-mega[data-open="true"] > .mega {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateY(0);
  }
  .primary-nav > li.has-mega:hover .mega::before,
  .primary-nav > li.has-mega:focus-within .mega::before,
  .primary-nav > li.has-mega[data-open="true"] .mega::before {
    pointer-events: auto;
  }

  /* Iteration 2.F Bug 2: bei rechtsbündiger Nav (Iteration 2.E) ergaben
     die Edge-Sync-Margins eine Mega-Inner-Breite von ~510px → 4-spaltiges
     Grid kollabierte. Stattdessen fester max-width 1120px center. */
  .mega-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 1.75rem var(--sp-4) 2rem;
  }

  .primary-nav > li.has-mega { position: static; }
  .primary-nav > li.has-mega > a { position: relative; }

  /* Aktiv-Underline am Trigger — Brand-Akzent gold subtle (1-2px hairline) */
  .primary-nav > li.has-mega:hover > a::after,
  .primary-nav > li.has-mega:focus-within > a::after,
  .primary-nav > li.has-mega[data-open="true"] > a::after {
    content: "";
    position: absolute;
    left: 0.95rem; right: 0.95rem;
    bottom: -2px;
    height: 2px;
    background: var(--ts-gold);
  }
}

/* Section-Heading mit Goldlinie unten (Iteration 2.E Bestand-Look) */
.mega .col-title {
  font-family: var(--font); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--grey-500);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--ts-gold);
  margin-bottom: var(--sp-3);
}
.mega ul { margin: 0 0 var(--sp-3); }
.mega li { padding: 0; }

/* Mega-Item mit Icon + Sub-Text (Bestand-Layout, Iteration 2.E
   + Block 2.G Verdichtung: gap 0.625rem, Item-Padding 0.5rem). */
.mega .mega-list a {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.5rem 0;
  color: var(--anthracite);
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 500;
  border-left: 2px solid transparent;
  transition: color 0.15s ease, padding 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
}
.mega .mega-list a:hover { color: var(--ts-blue-dark); padding-left: 4px; }
.mega .mega-list a[aria-current="page"] {
  color: var(--ts-blue-dark);
  border-left-color: var(--ts-gold);
  padding-left: 6px;
}
.mega-icon {
  flex: 0 0 28px;
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ts-blue);
  margin-top: 1px;
}
.mega-icon img,
.mega-icon svg { width: 100%; height: 100%; display: block; }
.mega-link-text { flex: 1; min-width: 0; }
.mega-link-text strong {
  display: block;
  font-weight: 600;
  color: var(--ts-blue-dark);
  font-size: 0.9375rem;
  line-height: 1.3;
}
.mega-link-text small {
  display: block;
  color: var(--grey-500);
  font-size: 0.8125rem;
  font-weight: 400;
  margin-top: 1px;
  line-height: 1.4;
}

/* Regio-Liste (Vor Ort): kompakter, ohne Icon, ohne small (Block 2.G verdichtet) */
.mega-list--regio a { padding: 0.375rem 0; font-size: 0.9375rem; }
.mega-list--regio a strong { font-size: 0.9375rem; }
.mega-more-link {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--grey-100);
  font-size: 0.875rem;
  color: var(--ts-blue);
  font-weight: 500;
}

/* Overview-Link / More-Link am Spalten-Fuß */
.mega-overview-link,
.mega-more-link {
  display: inline-block;
  margin-top: var(--sp-2);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ts-blue);
  text-decoration: none;
}
.mega-overview-link:hover,
.mega-more-link:hover { color: var(--ts-blue-dark); }

.mega-feature {
  background: var(--bg-warm);
  padding: 1.5rem;
  border-left: 3px solid var(--ts-gold);
  border-radius: 0;
}
.mega-feature.mega-cta-card { padding: 1.5rem; }
.mega-cta-thumb {
  display: block;
  width: 56px; height: auto;
  margin-bottom: var(--sp-2);
}
.mega-feature .eyebrow {
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--grey-500);
  margin-bottom: 0.75rem;
}
.mega-feature .feature-title {
  font-family: var(--font); font-weight: 700; font-size: 1.125rem;
  color: var(--ts-blue-dark); margin-bottom: 0.5rem; line-height: 1.2;
}
.mega-feature p { font-size: 0.875rem; color: var(--grey-700); margin-bottom: 1rem; }
.mega-feature .btn-link {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ts-blue);
  text-decoration: none;
}
.mega-feature .btn-link:hover { color: var(--ts-blue-dark); }
.mega-feature .btn-link .arrow { display: inline-block; margin-left: 0.25rem; transition: transform 0.15s; }
.mega-feature .btn-link:hover .arrow { transform: translateX(2px); }
.mega-feature a[aria-current="page"] { color: var(--ts-blue-dark); font-weight: 700; }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.header-actions .btn-sm { padding: 10px 18px; font-size: 14px; }
.header-actions .cta-short { display: none; }

/* Hamburger — nur Mobile sichtbar (3 spans für CSS-X-Animation, Iteration 2.E) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px; height: 44px;
  background: transparent; border: 0;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ts-blue);
  border-radius: 0; /* Block 2.J: explizit kein Radius — verhindert
                       Endpunkt-Pixel-Reste beim Rotate (Geisterpunkt-Bug). */
  transition: transform 200ms ease, opacity 200ms ease;
  transform-origin: center;
}
.nav-toggle span + span { margin-top: 6px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  /* Block 2.J Bug J2: scaleX(0) zusätzlich zu opacity:0 — opacity allein
     ließ Anti-Aliasing-Reste der Span-Endpunkte als Geisterpunkte
     hinter dem X sichtbar bleiben. scaleX(0) entfernt den Span optisch
     komplett, ohne Layout-Sprung. */
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Case-Study-Strip unter Mega (Bestand-Pattern, Iteration 2.E +
   Block 2.G Banner-Verifikation: gap auf Bestand-12px, margin-left:auto
   auf .mega-banner a wie Live-Stand 65028db). */
.mega-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px var(--sp-5);
  background: linear-gradient(135deg, var(--ts-blue-dark) 0%, var(--ts-blue) 100%);
  color: var(--white);
  font-size: 0.875rem;
}
.mega-banner-tag {
  background: var(--ts-gold);
  color: var(--ts-blue-dark);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 3px;
  flex-shrink: 0;
}
.mega-banner a {
  color: var(--ts-gold-light);
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  margin-left: auto;
}
.mega-banner a:hover { color: var(--white); text-decoration: underline; }

/* MOBILE ≤ 1024px — Drawer von oben, Mega-Akkordeon (Block 2.G: 870→1024) */
@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
  .site-header {
    background: var(--white);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .primary-nav {
    position: fixed;
    /* iOS-Safe-Area: Drawer startet unter Header inkl. Notch-Inset. */
    top: calc(72px + env(safe-area-inset-top, 0));
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column; align-items: stretch;
    gap: 0; padding: 1rem 40px 2rem;
    border-bottom: 1px solid var(--grey-200);
    transform: translateY(-100vh);
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0s linear 0.25s;
    max-height: calc(100vh - 72px - env(safe-area-inset-top, 0));
    overflow-y: auto;
    z-index: 99;
  }
  .site-header[data-nav-open="true"] .primary-nav {
    transform: translateY(0);
    visibility: visible;
    transition: transform 0.25s ease, visibility 0s;
  }
  .primary-nav > li { border-bottom: 1px solid var(--grey-100); }
  .nav-link { display: block; padding: 1rem 0; font-size: 1rem; }
  .nav-link.has-caret {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
  .primary-nav .mega {
    position: static; opacity: 1; visibility: visible;
    transform: none; box-shadow: none; border-top: 0;
    padding: 0 0 1.25rem; min-width: 0;
    pointer-events: auto;
    display: none;
  }
  .mega-inner {
    margin: 0;
    max-width: none;
    padding: 0.25rem 0 1rem;
  }
  /* Keine Aktiv-Underline im Mobile-Akkordeon — Chevron-Rotation reicht */
  .primary-nav > li.has-mega:hover > a::after,
  .primary-nav > li.has-mega:focus-within > a::after,
  .primary-nav > li.has-mega[data-open="true"] > a::after { content: none; }
  .primary-nav .mega::before { content: none; }
  .primary-nav > li[data-open="true"] .mega { display: block; }
  .mega-grid,
  .mega-grid--3col,
  .mega-grid--4col { grid-template-columns: 1fr; gap: 0; }

  /* Simple Submenu auf Mobile: statisch im Drawer, max-height-Toggle */
  .has-submenu .submenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: 0; border-top: 0; box-shadow: none;
    padding: 0; margin: 0;
    max-height: 0; overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .has-submenu[data-open="true"] .submenu { max-height: 480px; }
  .submenu li a { padding: 12px 0 12px 16px; }
  .submenu-overview { border-top: 0; margin-top: 0; padding-top: 0; }
  /* Section-Headings auf Mobile aus (Iteration 2.E Bug 1) */
  .mega .col-title { display: none; }
  /* Mega-Feature-Aside + Case-Study-Strip auf Mobile aus */
  .mega-feature { display: none; }
  .mega-banner { display: none; }
  /* Mega-Items kompakter im Akkordeon */
  .mega .mega-list a { padding: 10px 0; }
  .mega-icon { display: none; }
  .mega-link-text small { display: none; }
  .header-actions .btn-sm { padding: 8px 14px; font-size: 13px; }
  .header-actions .cta-short { display: inline; }
  .header-actions .cta-full { display: none; }
}

/* ===========================================
   6. BUTTONS
   =========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1);
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease);
  letter-spacing: 0.3px;
  cursor: pointer;
  border: 2px solid transparent;
  font-family: var(--font);
  text-decoration: none;
  line-height: 1.2;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--ts-gold);
  color: var(--anthracite);
  border-color: var(--ts-gold);
}
.btn-primary:hover {
  background: var(--ts-gold-dark);
  border-color: var(--ts-gold-dark);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(201, 169, 97, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--ts-blue);
  border-color: var(--ts-blue);
}
.btn-outline:hover {
  background: var(--ts-blue);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--ts-blue);
  border-color: transparent;
  padding: 14px 16px;
}
.btn-ghost:hover { color: var(--ts-gold); }
.btn-ghost::after { content: " →"; }

.btn-large { padding: 18px 36px; font-size: 16px; }
.btn-sm { padding: 10px 20px; font-size: 14px; }

/* ===========================================
   7. HERO
   =========================================== */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  padding: var(--sp-12) 0;
}
.hero--blue {
  background: linear-gradient(135deg, var(--ts-blue) 0%, var(--ts-blue-dark) 100%);
}
.hero--with-bg {
  background:
    linear-gradient(135deg, rgba(31, 78, 120, 0.82) 0%, rgba(21, 55, 90, 0.88) 100%),
    var(--hero-bg, none);
  background-size: cover;
  background-position: center;
}

/* Decorative pattern overlay */
.hero::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 50%; height: 100%;
  background-image: url('../images/hero-pattern.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 0.08;
  pointer-events: none;
}

/* Legacy compat */
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}
.hero-badge {
  display: inline-block;
  background: rgba(201, 169, 97, 0.2);
  color: var(--ts-gold-light);
  padding: 6px 16px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
  border-left: 3px solid var(--ts-gold);
}
.hero h1 {
  color: var(--white);
  font-size: clamp(34px, 5vw, 52px);
  letter-spacing: -0.5px;
  line-height: 1.1;
}
.hero-sub {
  font-size: 19px;
  color: rgba(255,255,255,0.85);
  margin: var(--sp-3) 0 var(--sp-4);
  line-height: 1.6;
  max-width: 600px;
}
.hero-slogan {
  font-size: 20px;
  color: var(--ts-gold-light);
  margin: var(--sp-3) 0;
  font-weight: 400;
  line-height: 1.5;
  border-left: 3px solid var(--ts-gold);
  padding-left: 18px;
  font-style: italic;
}
.hero-text { color: rgba(255,255,255,0.88); font-size: 18px; max-width: 640px; }
.hero-ctas { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-top: var(--sp-4); }

/* Hero compact (for sub-pages) */
.hero--compact { padding: var(--sp-8) 0; }
.hero--compact h1 { font-size: clamp(28px, 4vw, 40px); }

/* ===========================================
   8. LEGACY TRUST BAR / LOGO ROW
   (Brücke bis Phase B Schritt 8 = logo-wall ablöst)
   =========================================== */
.legacy-trust-bar {
  background: var(--bg-warm);
  padding: var(--sp-5) 0;
  border-bottom: 1px solid rgba(201, 169, 97, 0.15);
}
.trust-label {
  text-align: center;
  color: #595959;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
  font-weight: 600;
}
.trust-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--sp-4) var(--sp-5);
  flex-wrap: wrap;
}
.trust-logo {
  height: 48px;
  opacity: 0.6;
  filter: grayscale(100%);
  transition: all var(--duration) var(--ease);
}
.trust-logo:hover { opacity: 1; filter: none; }
.trust-logo img { height: 100%; width: auto; max-width: 120px; object-fit: contain; }

/* ===========================================
   9. CARDS & GRIDS
   =========================================== */

/* --- Value / Feature Cards (3-column) --- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  padding: var(--sp-5) var(--sp-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--grey-200);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  position: relative;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card--accent { border-top: 4px solid var(--ts-gold); }
.card--blue {
  background: linear-gradient(135deg, var(--ts-blue) 0%, var(--ts-blue-dark) 100%);
  color: var(--white);
  border: none;
}
.card--blue h3 { color: var(--white); }
.card--blue p { color: rgba(255,255,255,0.85); }
.card--blue { overflow: hidden; }
.card--blue::before {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 140px; height: 140px;
  background: var(--ts-gold);
  opacity: 0.12;
  border-radius: var(--radius-full);
}

/* Card Icons */
.card-icon {
  width: 56px; height: 56px;
  margin-bottom: var(--sp-3);
  background: var(--bg-warm);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-icon img, .card-icon svg { width: 28px; height: 28px; }
.card--accent .card-icon { background: var(--bg-warm); }

/* Card Link */
.card-link {
  color: var(--ts-blue);
  font-weight: 600;
  font-size: 14px;
  margin-top: var(--sp-2);
  display: inline-block;
  transition: color var(--duration) var(--ease);
}
.card-link::after { content: " →"; }
.card-link:hover { color: var(--ts-gold); }
.card--blue .card-link { color: var(--ts-gold-light); }

/* Card Tag */
.card-tag {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--ts-gold);
  color: var(--anthracite);
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: 2px;
  text-transform: uppercase;
}

/* --- Two-Pillar Cards (Startseite) --- */
.pillar-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.pillar-card {
  background: var(--white);
  border: 2px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: var(--sp-6) var(--sp-5);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  position: relative;
}
.pillar-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.pillar-card .pillar-label {
  display: inline-block;
  background: var(--bg-warm);
  color: #7D6B2F;
  padding: 4px 12px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: var(--sp-2);
}
.pillar-card h3 { font-size: 22px; }

/* ===========================================
   10. TWO COLUMN LAYOUTS
   =========================================== */
.two-col {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--sp-8);
  align-items: center;
}
.two-col--reverse { grid-template-columns: 1fr 1.3fr; }
.two-col--equal { grid-template-columns: 1fr 1fr; }

.col-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.col-image img { width: 100%; display: block; }
.col-image--framed {
  border: 4px solid var(--bg-warm);
  box-shadow: var(--shadow-lg);
}

/* ===========================================
   11. STATISTICS / COUNTERS
   =========================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  text-align: center;
}
.stat-item { padding: var(--sp-4) var(--sp-2); }
.stat-num {
  font-size: 48px;
  font-weight: 700;
  color: var(--ts-gold);
  display: block;
  line-height: 1;
  letter-spacing: -1px;
}
.stat-label {
  font-size: 14px;
  color: var(--grey-500);
  margin-top: var(--sp-1);
  letter-spacing: 0.5px;
}
.bg-blue .stat-num { color: var(--ts-gold-light); }
.bg-blue .stat-label { color: rgba(255,255,255,0.6); }

/* ===========================================
   12. PROCESS / TIMELINE
   =========================================== */
.process-steps { counter-reset: step; max-width: 700px; }
.process-step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
  align-items: start;
  position: relative;
}
.process-step::before {
  counter-increment: step;
  content: counter(step);
  width: 48px; height: 48px;
  background: var(--ts-blue);
  color: var(--white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}
/* Connecting line */
.process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 23px;
  top: 56px;
  bottom: -24px;
  width: 2px;
  background: var(--grey-200);
}
.process-step h3 { margin-bottom: 4px; font-size: 18px; }
.process-step p { font-size: 15px; margin-bottom: 0; }

/* ===========================================
   13. COMPARISON TABLE
   =========================================== */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--sp-4);
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.compare-table th, .compare-table td {
  padding: var(--sp-2) 18px;
  text-align: left;
  border-bottom: 1px solid var(--grey-200);
  font-size: 15px;
}
.compare-table th {
  background: var(--ts-blue);
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
}
.compare-table th:first-child { background: var(--ts-blue-dark); }
.compare-table td:first-child { font-weight: 600; color: var(--ts-blue-dark); background: var(--bg-warm-light); }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: var(--bg-warm-light); }
.compare-table tr:hover td:first-child { background: var(--bg-warm); }
.compare-table { margin-bottom: var(--sp-5); }
.compare-table .yes { color: var(--green); font-weight: 700; }
.compare-table .no { color: var(--red); font-weight: 700; }
.compare-table .mid { color: var(--ts-gold-dark); font-weight: 700; }

/* ===========================================
   14. CASE STUDY
   =========================================== */
.case-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
}
.case-image {
  background-size: cover;
  background-position: center top;
  min-height: 360px;
}
.case-content { padding: var(--sp-6) var(--sp-5); }
.case-quote {
  font-size: 20px;
  font-style: italic;
  color: var(--ts-blue-dark);
  margin-bottom: var(--sp-3);
  line-height: 1.5;
  border-left: 3px solid var(--ts-gold);
  padding-left: var(--sp-3);
}
.case-author { font-size: 14px; color: var(--grey-700); }
.case-author strong { color: var(--ts-blue-dark); }
.case-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--grey-200);
}
.case-stat { text-align: center; }
.case-stat .stat-num { font-size: 28px; }
.case-stat .stat-label { font-size: 11px; }

/* ===========================================
   15. LEAD MAGNET
   =========================================== */
.lead-magnet {
  padding: var(--sp-8) var(--sp-6);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--sp-8);
  align-items: center;
  position: relative;
  overflow: hidden;
}
.lead-magnet::before {
  content: "";
  position: absolute;
  bottom: -60px; right: -60px;
  width: 280px; height: 280px;
  background: var(--ts-gold);
  opacity: 0.1;
  border-radius: var(--radius-full);
}
.lead-magnet h2 { color: var(--white); font-size: 30px; }
.lead-magnet p { color: rgba(255,255,255,0.8); font-size: 16px; }
.lm-tag {
  display: inline-block;
  background: var(--ts-gold);
  color: var(--anthracite);
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 2px;
  margin-bottom: var(--sp-2);
}
.lm-mockup {
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border-radius: var(--radius-md);
  transform: rotate(-2deg);
  position: relative;
  z-index: 2;
  transition: transform var(--duration) var(--ease);
}
.lm-mockup:hover { transform: rotate(0deg); }
.lm-mockup img { width: 100%; display: block; }

/* ===========================================
   16. REGIO GRID
   =========================================== */
.regio-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: var(--sp-4); }
.regio-chip {
  background: var(--white);
  border: 1px solid var(--grey-200);
  padding: 18px var(--sp-2);
  text-align: center;
  border-radius: var(--radius-sm);
  color: var(--ts-blue-dark);
  font-weight: 500;
  font-size: 15px;
  transition: all var(--duration) var(--ease);
  text-decoration: none;
}
.regio-chip:hover {
  background: var(--ts-blue);
  color: var(--white);
  border-color: var(--ts-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(31, 78, 120, 0.2);
}
.regio-chip.prio-a {
  font-weight: 700;
  border-color: var(--ts-gold);
  background: #FDFBF5;
}
.regio-chip.prio-a:hover {
  background: var(--ts-blue);
  color: var(--white);
  border-color: var(--ts-blue);
}

/* ===========================================
   17. DECISION NODES
   =========================================== */
.decision-visual {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-md);
  margin-top: var(--sp-4);
}
.decision-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); margin-bottom: var(--sp-4); }
.decision-node {
  padding: var(--sp-3);
  border-radius: var(--radius-md);
  text-align: center;
  border: 2px solid var(--grey-200);
  background: var(--bg-warm-light);
  transition: border-color var(--duration) var(--ease);
}
.decision-node:hover { border-color: var(--ts-gold); }
.decision-node.cloud { border-color: var(--ts-blue); background: rgba(31, 78, 120, 0.04); }
.decision-node.nas { border-color: var(--green); background: rgba(46, 125, 91, 0.04); }
.decision-node.hybrid { border-color: var(--ts-gold); background: rgba(201, 169, 97, 0.06); }
.decision-node h4 { margin-bottom: 10px; }
.node-tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 2px;
  text-transform: uppercase;
  margin-bottom: var(--sp-2);
}
.decision-node.cloud .node-tag { background: var(--ts-blue); color: var(--white); }
.decision-node.nas .node-tag { background: var(--green); color: var(--white); }
.decision-node.hybrid .node-tag { background: var(--ts-gold); color: var(--anthracite); }
.decision-node ul { text-align: left; margin-top: var(--sp-2); font-size: 14px; }

/* ===========================================
   18. TEAM SECTION
   =========================================== */
.team-wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--sp-8);
  align-items: center;
}
.team-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 420px;
  background-size: cover;
  background-position: center top;
  box-shadow: var(--shadow-lg);
}

/* ===========================================
   19. FAQ-Sektion · einheitliches Akkordeon
   Hintergrund IMMER --bg-faq, unabhängig vom Page-Kontext
   =========================================== */
section.faq-section {
  padding: 72px 0;
  background: var(--bg-faq);
}

.faq-section h2 { margin-bottom: 12px; }
.faq-lead {
  color: var(--grey-700);
  margin-bottom: 32px;
  font-size: 17px;
  max-width: 680px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: 4px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.faq-item:hover { background: #FAFAF7; }
.faq-item[open] {
  border-color: var(--ts-blue);
  box-shadow: 0 1px 6px rgba(31,78,120,0.08);
  background: var(--white);
}

.faq-item summary {
  list-style: none;
  padding: 18px 22px;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  font-size: 17px;
  font-weight: 600;
  color: var(--anthracite);
  line-height: 1.45;
  user-select: none;
}
.faq-item summary::-webkit-details-marker,
.faq-item summary::marker { display: none; }
.faq-item summary:focus-visible {
  outline: 2px solid var(--ts-blue);
  outline-offset: 2px;
  border-radius: 4px;
}

.faq-q { flex: 1; }
.faq-toggle {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ts-blue);
  transition: transform 0.25s cubic-bezier(.4,0,.2,1);
  margin-top: 2px;
}
.faq-toggle svg { width: 18px; height: 18px; display: block; }
.faq-item[open] .faq-toggle { transform: rotate(180deg); }

.faq-a {
  padding: 0 22px 22px 22px;
  color: var(--grey-700);
  line-height: 1.7;
  font-size: 16px;
  animation: faqFadeIn 0.25s ease;
}
.faq-a > p:first-child { margin-top: 0; }
.faq-a > p:last-child  { margin-bottom: 0; }
.faq-a a {
  color: var(--ts-blue);
  text-decoration: underline;
  text-decoration-color: rgba(31,78,120,0.4);
  text-underline-offset: 2px;
}
.faq-a a:hover { text-decoration-color: var(--ts-blue); }

@keyframes faqFadeIn {
  from { opacity: 0; transform: translateY(-2px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  section.faq-section { padding: 48px 0; }
  .faq-item summary  { padding: 16px 16px; font-size: 16px; gap: 12px; }
  .faq-toggle        { width: 24px; height: 24px; }
  .faq-toggle svg    { width: 16px; height: 16px; }
  .faq-a             { padding: 0 16px 18px 16px; font-size: 15px; }
  .faq-lead          { font-size: 16px; margin-bottom: 24px; }
}

/* ===========================================
   20. CTA SECTIONS
   =========================================== */
.cta-section {
  text-align: center;
  padding: var(--sp-12) var(--sp-3);
}
.cta-section h2 { color: var(--white); font-size: clamp(28px, 4vw, 40px); }
.cta-section .section-lead {
  color: rgba(255,255,255,0.85);
  margin: var(--sp-3) auto var(--sp-5);
  text-align: center;
}
.cta-section .section-label { color: var(--ts-gold-light); }
.cta-phone {
  margin-top: var(--sp-3);
  color: rgba(255,255,255,0.7);
  font-size: 15px;
}
.cta-phone a { color: var(--white); font-weight: 700; }
.cta-section .section-lead { max-width: 600px; }
.cta-section .btn { margin-bottom: var(--sp-2); }

/* ===========================================
   21. CONTACT FORM
   =========================================== */
.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-lg);
  max-width: 580px;
}
.contact-form--dark {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: none;
}
.form-group { margin-bottom: var(--sp-2); }
.form-group label {
  display: block;
  color: var(--grey-700);
  font-size: 14px;
  margin-bottom: 6px;
  font-weight: 500;
}
.contact-form--dark .form-group label { color: rgba(255,255,255,0.7); }

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-warm-light);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-sm);
  color: var(--anthracite);
  font-size: 15px;
  font-family: var(--font);
  transition: border-color var(--duration) var(--ease);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--ts-gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.15);
}
.contact-form--dark .form-group input,
.contact-form--dark .form-group textarea {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  color: var(--white);
}
.contact-form--dark .form-group input:focus,
.contact-form--dark .form-group textarea:focus {
  border-color: var(--ts-gold);
  background: rgba(255,255,255,0.12);
}
.form-group textarea { min-height: 100px; resize: vertical; }
.form-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--grey-500);
  margin-top: var(--sp-2);
}
.form-consent input[type="checkbox"] { margin-top: 2px; accent-color: var(--ts-gold); }

/* ===========================================
   22. BLOG / NEWS
   =========================================== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.blog-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  text-decoration: none;
}
.blog-card-image {
  height: 200px;
  background: var(--bg-warm);
  background-size: cover;
  background-position: center;
}
.blog-card-body { padding: var(--sp-3); }
.blog-card-date { font-size: 13px; color: var(--grey-400); margin-bottom: var(--sp-1); }
.blog-card h3 { font-size: 18px; line-height: 1.35; }
.blog-card p { font-size: 15px; color: var(--grey-500); }

/* Article-Body: Inline-Links bekommen Underline (a11y, WCAG 1.4.1) */
.article-body a {
  color: var(--ts-blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-skip-ink: auto;
  text-underline-offset: 0.18em;
}
.article-body a:hover,
.article-body a:focus-visible {
  color: var(--ts-blue-dark);
  text-decoration-thickness: 2px;
}

/* Article-Body: Table-Styling */
.article-body .table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 2em 0;
  border-radius: 6px;
  background:
    linear-gradient(to right, #fff 30%, rgba(255,255,255,0)),
    linear-gradient(to right, rgba(255,255,255,0), #fff 70%) right,
    radial-gradient(farthest-side at 0 50%, rgba(28,54,97,0.18), rgba(0,0,0,0)),
    radial-gradient(farthest-side at 100% 50%, rgba(28,54,97,0.18), rgba(0,0,0,0)) right;
  background-size: 32px 100%, 32px 100%, 14px 100%, 14px 100%;
  background-repeat: no-repeat;
  background-attachment: local, local, scroll, scroll;
}

.article-body table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.5;
}

.article-body thead th {
  background: var(--ts-blue);
  color: #fff;
  font-weight: 600;
  text-align: left;
  padding: 14px 16px;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  vertical-align: bottom;
}

.article-body thead th:not(:last-child) {
  border-right: 1px solid rgba(255,255,255,0.18);
}

.article-body tbody td {
  padding: 12px 16px;
  vertical-align: top;
  border-bottom: 1px solid #e5e7eb;
}

.article-body tbody tr:nth-child(even) td {
  background: #f8f9fb;
}

.article-body tbody tr:last-child td {
  border-bottom: none;
}

.article-body tbody td:first-child {
  font-weight: 600;
  color: var(--ts-blue);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .article-body table {
    font-size: 0.875rem;
  }
  .article-body thead th,
  .article-body tbody td {
    padding: 10px 12px;
  }
  .article-body tbody td:first-child {
    white-space: normal;
  }
}

/* ===========================================
   23. PRICE CARDS
   =========================================== */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.price-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  padding: var(--sp-4);
  text-align: center;
  transition: all var(--duration) var(--ease);
}
.price-card:hover { border-color: var(--ts-gold); box-shadow: var(--shadow-md); }
.price-card .price-label { font-size: 13px; color: var(--grey-400); text-transform: uppercase; letter-spacing: 1px; margin-bottom: var(--sp-1); }
.price-card .price-value { font-size: 36px; font-weight: 700; color: var(--ts-blue-dark); margin-bottom: var(--sp-2); letter-spacing: -1px; }
.price-card .price-desc { font-size: 14px; color: var(--grey-700); }
.price-card.featured { border-color: var(--ts-gold); border-width: 2px; }
.price-card.featured .price-value { color: var(--ts-gold); }

/* ===========================================
   24. BREADCRUMBS · UDE-Pattern, Phase 2
   <nav class="breadcrumbs"> mit direkten <a>/<span>-Kindern,
   Trenner via ::after content:'/'.
   =========================================== */
.breadcrumbs {
  background: var(--bg-warm);
  border-bottom: 1px solid rgba(216, 220, 225, 0.5);
  padding: 16px 0;
}
.breadcrumbs .container {
  font-family: var(--font);
  font-size: 13px;
  color: var(--grey-500);
  letter-spacing: 0.04em;
  line-height: 1.8;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}
.breadcrumbs .container::-webkit-scrollbar { display: none; }
.breadcrumbs a {
  color: var(--grey-500);
  text-decoration: none;
  transition: color 0.15s ease;
}
.breadcrumbs a:hover { color: var(--ts-gold); }
.breadcrumbs > .container > *:not(:last-child)::after {
  content: '/';
  display: inline-block;
  margin: 0 0.75rem;
  color: var(--grey-300);
  font-weight: 300;
}
.breadcrumbs span[aria-current="page"] {
  color: var(--anthracite);
  font-weight: 500;
}

@media (max-width: 870px) {
  .breadcrumbs { padding: 12px 0; }
  .breadcrumbs > .container > *:not(:last-child)::after { margin: 0 0.5rem; }
}

/* ===========================================
   25. FOOTER · 5-Spalten-Grid mit Säule-2-Dominanz
   =========================================== */
.site-footer {
  background: var(--anthracite);
  color: rgba(255,255,255,0.78);
  font-size: 14px;
  line-height: 1.6;
}
.site-footer a { color: inherit; text-decoration: none; }

/* TOP-STRIP */
.footer-top {
  background: var(--anthracite-light);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 24px 0;
}
.footer-top .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-lead-magnet {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}
.footer-lead-magnet-cover-img {
  width: 56px;
  height: auto;
  flex-shrink: 0;
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  border: 1px solid rgba(201,169,97,0.3);
}
.footer-lead-magnet-text strong {
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}
.footer-lead-magnet-text small {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  display: block;
  margin-bottom: 6px;
}
.footer-lead-magnet-cta {
  color: var(--ts-gold);
  font-weight: 600;
  font-size: 13px;
}
.footer-lead-magnet:hover .footer-lead-magnet-cta { color: var(--ts-gold-light); }

.footer-trust {
  display: flex;
  gap: 24px;
  align-items: center;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  font-weight: 500;
}
.trust-badge svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--ts-gold);
}

/* MAIN-BLOCK */
.footer-main { padding: 56px 0 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1.3fr 1.3fr 1fr 1fr;
  gap: 40px;
}
.footer-col-title {
  display: block;
  color: var(--ts-gold);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(201,169,97,0.18);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a {
  color: rgba(255,255,255,0.72);
  transition: color 0.15s ease;
  font-size: 14px;
}
.footer-col a:hover { color: var(--white); }

.footer-sub {
  margin-top: 24px;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.footer-more {
  display: inline-block;
  margin-top: 8px;
  color: var(--ts-gold) !important;
  font-weight: 600;
  font-size: 13px;
}
.footer-more:hover { color: var(--ts-gold-light) !important; }

/* Brand-Spalte */
.footer-brand-logo {
  height: 40px;
  width: auto;
  margin-bottom: 6px;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
.footer-brand-logo-text small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}
.footer-address {
  color: rgba(255,255,255,0.78);
  margin-bottom: 16px;
}
.footer-address strong {
  color: var(--white);
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}
.footer-contact { margin-bottom: 16px; }
.footer-contact a {
  display: block;
  color: var(--white) !important;
  font-weight: 500;
  margin-bottom: 4px;
}
.footer-contact a:hover { color: var(--ts-gold) !important; }
.footer-hours {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 18px;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.78);
  transition: all 0.15s ease;
}
.footer-social a:hover {
  background: var(--ts-gold);
  border-color: var(--ts-gold);
  color: var(--anthracite);
}
.footer-social svg { width: 16px; height: 16px; }

/* BOTTOM-BAR */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom-links { display: flex; gap: 18px; }
.footer-bottom-links a { color: rgba(255,255,255,0.5); }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.85); }

/* Footer Responsive */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-col-brand {
    grid-column: 1 / -1;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 8px;
  }
}
/* Phase E Sweep B+: 768→870 (Konsistenz Footer-Stacking mit Hamburger-Cutoff) */
@media (max-width: 870px) {
  .footer-top .container { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-trust { flex-wrap: wrap; gap: 16px; }
  .footer-main { padding: 40px 0 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-col-brand { grid-column: auto; }
  .footer-col-title { margin-bottom: 14px; padding-bottom: 8px; }

  /* Mobile-Collapsible */
  .footer-collapsible summary {
    cursor: pointer;
    list-style: none;
    margin-bottom: 0;
    padding: 4px 0 10px;
    display: block;
  }
  .footer-collapsible summary::-webkit-details-marker { display: none; }
  .footer-collapsible summary .footer-col-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
  }
  .footer-collapsible summary .footer-col-title::after {
    content: '+';
    color: var(--ts-gold);
    font-size: 18px;
    font-weight: 700;
    transition: transform 0.2s ease;
  }
  .footer-collapsible[open] summary .footer-col-title::after { content: '−'; }
  .footer-collapsible[open] ul { padding-top: 12px; }

  .footer-bottom .container { flex-direction: column; align-items: flex-start; }
}

/* ===========================================
   26. SECTION DIVIDER
   =========================================== */
.section-divider {
  display: block;
  width: 100%;
  height: auto;
  margin: -1px 0;
}

/* ===========================================
   27. UTILITY CLASSES
   =========================================== */
.text-center { text-align: center; }
.text-gold { color: var(--ts-gold); }
.text-white { color: var(--white); }
.text-small { font-size: 14px; }
.text-muted { color: var(--grey-400); }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--sp-2); }
.mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--sp-2); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-6 { margin-bottom: var(--sp-6); }
.mx-auto { margin-left: auto; margin-right: auto; }
.hidden { display: none; }

/* ===========================================
   28. RESPONSIVE
   =========================================== */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Phase E Sweep B: Hamburger-Cutoff 768 → 870px (kombinierter Layout+Nav-Block) */
@media (max-width: 870px) {
  section { padding: var(--sp-6) 0; }

  .two-col,
  .two-col--reverse,
  .two-col--equal,
  .team-wrap,
  .case-wrap,
  .lead-magnet,
  .pillar-grid { grid-template-columns: 1fr; gap: var(--sp-4); }

  .card-grid,
  .card-grid--2,
  .card-grid--4,
  .price-grid,
  .blog-grid { grid-template-columns: 1fr; }

  .decision-row { grid-template-columns: 1fr; }
  .regio-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr; gap: 0; }

  .compare-table { font-size: 13px; }
  .compare-table th, .compare-table td { padding: 10px; }

  /* Mobile-Nav-Spec liegt im Section-5-Block (UDE-Drawer-Pattern via
     header[data-nav-open]). Hier kein Override mehr. */

  .lead-magnet { padding: var(--sp-4) var(--sp-3); }
  .case-content { padding: var(--sp-3); }
  .case-image { min-height: 240px; }
  .hero { padding: var(--sp-8) 0; }
  .hero--compact { padding: var(--sp-6) 0; }
  .team-image { min-height: 300px; }
}

@media (max-width: 480px) {
  .regio-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .case-stats { grid-template-columns: 1fr; }
}

/* ===========================================
   29. ACCESSIBILITY — Tap Targets
   Phase E Sweep B+: 768→870 (Konsistenz mit Hamburger-Cutoff)
   =========================================== */
@media (max-width: 1024px) {
  a, button, [role="button"], input, select, textarea { min-height: 48px; }
  /* Drawer-Item-Spacing liegt im Section-5-Block (UDE-Drawer-Adaption). */
  .footer-col a { padding: 6px 0; min-height: 44px; display: inline-flex; align-items: center; }
  .regio-chip { min-height: 48px; display: flex; align-items: center; justify-content: center; }
}

/* ===========================================
   30. PRINT STYLES
   =========================================== */
@media print {
  .site-nav, .site-footer, .cta-section, .nav-toggle { display: none; }
  body { font-size: 12pt; color: #000; }
  a { color: #000; text-decoration: underline; }
  .hero { background: #f5f5f5 !important; color: #000 !important; padding: 20px 0; }
  .hero h1 { color: #000 !important; }
}

/* ===========================================================
   31. SECTION-LIBRARY · Card-Grid (Phase B Snippet)
   Selektoren bewusst unter .cards-section gescoped, damit
   Bestand-.card / .card-grid (Section 9) unverändert bleiben.
   =========================================================== */
section.cards-section { padding: 72px 0; }
section.cards-section.bg-warm { background: var(--bg-warm); }

.cards-section h2 { margin-bottom: 14px; }
.cards-section .section-lead {
  color: var(--grey-700);
  font-size: 17px;
  max-width: 720px;
  margin-bottom: 36px;
}

.cards-section .card-grid { display: grid; gap: 24px; align-items: stretch; }
.cards-section .card-grid--2 { grid-template-columns: repeat(2, 1fr); gap: 32px; }
.cards-section .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.cards-section .card-grid--4 { grid-template-columns: repeat(4, 1fr); }
.cards-section .card-grid--6 { grid-template-columns: repeat(3, 1fr); gap: 20px; }

.cards-section .card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: 6px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  position: static;
}
.cards-section .card-icon {
  width: 48px; height: 48px;
  background: rgba(201,169,97,0.14);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ts-gold);
  margin-bottom: 18px;
  margin-top: 0;
  flex-shrink: 0;
}
.cards-section .card-icon svg { width: 24px; height: 24px; display: block; }
.cards-section .card h3 {
  color: var(--ts-blue-dark);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
}
.cards-section .card p {
  color: var(--grey-700);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 14px 0;
  flex-grow: 1;
}
.cards-section .card-link {
  color: var(--ts-blue);
  font-weight: 600;
  font-size: 14px;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease;
}
.cards-section .card-link::after { content: ''; }

/* Klickbare Card */
.cards-section a.card { cursor: pointer; }
.cards-section a.card:hover {
  border-color: var(--ts-blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(31,78,120,0.10);
}
.cards-section a.card .card-link::after { content: ' →'; transition: transform 0.2s ease; }
.cards-section a.card:hover .card-link { gap: 8px; }

/* Statische Card (kein Hover) */
.cards-section article.card { cursor: default; }

/* 2-Card-Hero-Variante */
.cards-section .card-grid--2 .card {
  padding: 36px 32px;
  border-radius: 8px;
}
.cards-section .card-grid--2 .card-icon { width: 56px; height: 56px; margin-bottom: 22px; }
.cards-section .card-grid--2 .card-icon svg { width: 28px; height: 28px; }
.cards-section .card-grid--2 .card h3 { font-size: 24px; margin-bottom: 12px; }
.cards-section .card-grid--2 .card p { font-size: 16px; }
.cards-section .card-grid--2 .pillar-label {
  color: var(--ts-gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

/* Kompakt-Variante (6-Card-Grid) */
.cards-section .card-grid--6 .card {
  padding: 22px 22px;
  border-radius: 4px;
}
.cards-section .card-grid--6 .card-icon { width: 40px; height: 40px; margin-bottom: 14px; }
.cards-section .card-grid--6 .card-icon svg { width: 20px; height: 20px; }
.cards-section .card-grid--6 .card h3 { font-size: 16px; margin-bottom: 6px; }
.cards-section .card-grid--6 .card p { font-size: 14px; line-height: 1.55; margin-bottom: 10px; }
.cards-section .card-grid--6 .card-link { font-size: 13px; }

@media (max-width: 1024px) {
  .cards-section .card-grid--3,
  .cards-section .card-grid--4,
  .cards-section .card-grid--6 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  section.cards-section { padding: 48px 0; }
  .cards-section .card-grid--2,
  .cards-section .card-grid--3,
  .cards-section .card-grid--4,
  .cards-section .card-grid--6 { grid-template-columns: 1fr; gap: 16px; }
  .cards-section .card { padding: 24px 22px; }
  .cards-section .card-grid--2 .card { padding: 28px 24px; }
}

/* ===========================================================
   32. SECTION-LIBRARY · Process-Steps (Phase B Snippet)
   Selektoren unter .process-section gescoped — Bestand-Section 12
   (.process-step mit counter-Logik) bleibt für Templates wie
   master.php / regio.php unverändert.
   =========================================================== */
section.process-section { padding: 72px 0; }
section.process-section.bg-warm { background: var(--bg-warm); }

.process-section h2 { margin-bottom: 14px; }
.process-section .section-lead {
  color: var(--grey-700);
  font-size: 17px;
  max-width: 720px;
  margin-bottom: 48px;
}

.process-section .process-list {
  display: grid;
  gap: 32px;
  position: relative;
  list-style: none;
  padding: 0;
  margin: 0;
}
.process-section .process-list--3 { grid-template-columns: repeat(3, 1fr); }
.process-section .process-list--4 { grid-template-columns: repeat(4, 1fr); }

.process-section .process-step {
  position: relative;
  text-align: left;
  display: block;
  grid-template-columns: none;
  gap: 0;
  margin-bottom: 0;
  align-items: stretch;
}
.process-section .process-step::before { content: none; }

.process-section .process-step::after {
  content: '';
  position: absolute;
  top: 28px;
  left: 106px;
  right: -28px;
  height: 2px;
  background-image: linear-gradient(to right, var(--grey-200) 50%, transparent 50%);
  background-size: 12px 2px;
  background-repeat: repeat-x;
  z-index: 0;
  width: auto;
  bottom: auto;
  background-color: transparent;
}
.process-section .process-step:last-child::after { display: none; }

.process-section .process-step-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.process-section .process-step-num {
  width: 56px;
  height: 56px;
  background: var(--ts-blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 22px;
  font-family: var(--font);
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(31,78,120,0.18);
}

.process-section .process-step-icon {
  width: 32px;
  height: 32px;
  color: var(--ts-gold);
  flex-shrink: 0;
}
.process-section .process-step-icon svg { width: 32px; height: 32px; display: block; }

.process-section .process-step h3 {
  color: var(--ts-blue-dark);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
}

.process-section .process-step-body p,
.process-section .process-step-body {
  color: var(--grey-700);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 1024px) {
  .process-section .process-list--4 { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .process-section .process-list--4 .process-step:nth-child(2)::after { display: none; }
}

@media (max-width: 768px) {
  section.process-section { padding: 48px 0; }
  .process-section .section-lead { font-size: 16px; margin-bottom: 32px; }

  .process-section .process-list--3,
  .process-section .process-list--4 {
    grid-template-columns: 1fr;
    gap: 32px;
    position: relative;
  }
  .process-section .process-list--3::before,
  .process-section .process-list--4::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 56px;
    bottom: 56px;
    width: 2px;
    background-image: linear-gradient(to bottom, var(--grey-200) 50%, transparent 50%);
    background-size: 2px 12px;
    background-repeat: repeat-y;
    z-index: 0;
  }
  .process-section .process-step::after { display: none; }

  .process-section .process-step {
    display: grid;
    grid-template-columns: 56px 1fr;
    column-gap: 20px;
    align-items: start;
    position: relative;
  }
  .process-section .process-step-header {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 0;
    gap: 0;
  }
  .process-section .process-step-icon { display: none; }

  .process-section .process-step h3 {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    margin: 0 0 8px 0;
    padding: 0;
    min-height: 0;
    display: block;
    font-size: 18px;
  }
  .process-section .process-step-body,
  .process-section .process-step p {
    grid-column: 2;
    grid-row: 2;
    margin-top: 0;
  }
}

/* ===========================================================
   33. SECTION-LIBRARY · Trust-Bar (Phase B Snippet)
   Bestand-Logo-Wand-CSS heißt jetzt .legacy-trust-bar (Section 8)
   und kollidiert nicht mit diesen Selektoren.
   =========================================================== */
section.trust-bar {
  padding: 28px 0;
  background: var(--white);
}
section.trust-bar.has-border-bottom {
  border-bottom: 1px solid var(--grey-200);
}

.trust-bar-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.trust-bar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--grey-700);
  font-size: 14px;
  font-weight: 500;
}

.trust-bar-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--ts-gold);
}

.trust-bar-item strong {
  color: var(--anthracite);
  font-weight: 600;
}

@media (max-width: 1024px) {
  .trust-bar-list { gap: 28px; }
  .trust-bar-item { font-size: 13px; }
}

@media (max-width: 768px) {
  section.trust-bar { padding: 20px 0; }
  .trust-bar-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .trust-bar-item { font-size: 14px; gap: 12px; }
  .trust-bar-item svg { width: 18px; height: 18px; }
}

/* ===========================================================
   34. SECTION-LIBRARY · Stat-Strip (Phase B Snippet)
   Selektoren unter .stat-strip gescoped — Bestand-.stat-item /
   .stat-num / .stat-label aus Section 11 (regio.php Praxis-Block)
   bleiben unangetastet.
   =========================================================== */
section.stat-strip { padding: 64px 0; }
section.stat-strip.bg-warm { background: var(--bg-warm); }
section.stat-strip.bg-blue {
  background: linear-gradient(135deg, var(--ts-blue) 0%, var(--ts-blue-dark) 100%);
}
section.stat-strip.bg-blue h2,
section.stat-strip.bg-blue .section-lead { color: var(--white); }
section.stat-strip.bg-blue .section-label { color: var(--ts-gold); font-weight: 700; }

.stat-strip .stat-strip-header { text-align: center; margin-bottom: 40px; }
.stat-strip .stat-strip-header.is-narrow { max-width: 640px; margin: 0 auto 40px; }

.stat-strip .section-lead {
  color: var(--grey-700);
  font-size: 17px;
  margin: 0;
}

.stat-strip .stat-list {
  display: grid;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}
.stat-strip .stat-list--3 { grid-template-columns: repeat(3, 1fr); }
.stat-strip .stat-list--4 { grid-template-columns: repeat(4, 1fr); }

.stat-strip .stat-item {
  text-align: center;
  padding: 0 24px;
  position: relative;
}
.stat-strip .stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: var(--grey-200);
}
section.stat-strip.bg-blue .stat-item:not(:last-child)::after {
  background: rgba(255,255,255,0.18);
}

.stat-strip .stat-number {
  display: block;
  font-size: 56px;
  font-weight: 700;
  color: var(--ts-blue-dark);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -1px;
  font-feature-settings: "tnum";
}
section.stat-strip.bg-blue .stat-number { color: var(--ts-gold); }

.stat-strip .stat-number .stat-prefix,
.stat-strip .stat-number .stat-suffix {
  font-size: 0.5em;
  font-weight: 600;
  vertical-align: super;
  margin: 0 2px;
}

.stat-strip .stat-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--anthracite);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
  margin-top: 0;
}
section.stat-strip.bg-blue .stat-label { color: var(--white); }

.stat-strip .stat-sublabel {
  display: block;
  font-size: 13px;
  color: var(--grey-700);
  line-height: 1.5;
}
section.stat-strip.bg-blue .stat-sublabel { color: rgba(255,255,255,0.7); }

@media (max-width: 1024px) {
  .stat-strip .stat-list--4 { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .stat-strip .stat-list--4 .stat-item:nth-child(2)::after { display: none; }
  .stat-strip .stat-number { font-size: 48px; }
}

@media (max-width: 768px) {
  section.stat-strip { padding: 48px 0; }
  .stat-strip .stat-strip-header { margin-bottom: 32px; }
  .stat-strip .stat-number { font-size: 42px; margin-bottom: 8px; }
  .stat-strip .stat-label { font-size: 12px; }
}
@media (max-width: 600px) {
  .stat-strip .stat-list--3,
  .stat-strip .stat-list--4 {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .stat-strip .stat-item { padding: 0; }
  .stat-strip .stat-item::after { display: none !important; }
}

/* Sicherheitsnetz für Buttons mit Inline-SVG (Briefing 4.5 Hinweis) */
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ===========================================================
   35. SECTION-LIBRARY · Lead-Magnet-Inline (Phase B Snippet)
   Section-Klasse heißt .lead-magnet-inline (nicht .lead-magnet),
   um Konflikt mit Bestand-Section 15 (Hub-Lead-Magnet-Form) und
   Footer-.footer-lead-magnet zu vermeiden.
   =========================================================== */
section.lead-magnet-inline { padding: 64px 0; }
section.lead-magnet-inline.bg-warm { background: var(--bg-warm); }
section.lead-magnet-inline.bg-blue {
  background: linear-gradient(135deg, var(--ts-blue) 0%, var(--ts-blue-dark) 100%);
}

.lead-magnet-inline .lead-magnet-box {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  align-items: center;
  max-width: 920px;
  margin: 0 auto;
  padding: 0;
  border-radius: 0;
  overflow: visible;
}
.lead-magnet-inline .lead-magnet-box::before { content: none; }

.lead-magnet-inline .lead-magnet-cover img {
  width: 200px;
  height: auto;
  display: block;
  border-radius: 4px;
  border: 1px solid var(--grey-200);
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
  transform: rotate(-3deg);
  transition: transform 0.3s ease;
}
.lead-magnet-inline:hover .lead-magnet-cover img { transform: rotate(0deg); }

.lead-magnet-inline .lead-magnet-content h2 {
  margin-bottom: 12px;
  color: var(--ts-blue-dark);
  font-size: clamp(22px, 2.6vw, 28px);
}

.lead-magnet-inline .lead-magnet-desc {
  color: var(--grey-700);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 18px;
  max-width: 520px;
}

.lead-magnet-inline .lead-magnet-bullets {
  list-style: none;
  margin: 0 0 24px 0;
  padding: 0;
}
.lead-magnet-inline .lead-magnet-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--grey-700);
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 8px;
}
.lead-magnet-inline .lead-magnet-bullets li svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--ts-gold);
}

.lead-magnet-inline .lead-magnet-meta {
  margin-top: 12px;
  color: var(--grey-700);
  font-size: 13px;
}

.lead-magnet-inline .lead-magnet-form {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.lead-magnet-inline .lead-magnet-form input[type="email"] {
  flex: 1 1 240px;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--grey-200);
  border-radius: 4px;
  font-family: var(--font);
  font-size: 15px;
  background: var(--white);
  color: var(--anthracite);
}
.lead-magnet-inline .lead-magnet-form input[type="email"]:focus {
  outline: 2px solid var(--ts-blue);
  outline-offset: 1px;
  border-color: var(--ts-blue);
}
.lead-magnet-inline .lead-magnet-form button { flex-shrink: 0; white-space: nowrap; }
.lead-magnet-inline .lead-magnet-privacy {
  font-size: 12px;
  color: var(--grey-700);
  line-height: 1.5;
}
.lead-magnet-inline .lead-magnet-privacy a { color: var(--ts-blue); text-decoration: underline; }

/* Bg-Blue (dunkel) Overrides */
section.lead-magnet-inline.bg-blue h2 { color: var(--white); }
section.lead-magnet-inline.bg-blue .lead-magnet-desc,
section.lead-magnet-inline.bg-blue .lead-magnet-bullets li,
section.lead-magnet-inline.bg-blue .lead-magnet-meta { color: rgba(255,255,255,0.85); }
section.lead-magnet-inline.bg-blue .lead-magnet-bullets li svg { color: var(--ts-gold); }
section.lead-magnet-inline.bg-blue .section-label { color: var(--ts-gold); font-weight: 700; }
section.lead-magnet-inline.bg-blue .lead-magnet-form input[type="email"] {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  color: var(--white);
}
section.lead-magnet-inline.bg-blue .lead-magnet-form input[type="email"]::placeholder {
  color: rgba(255,255,255,0.5);
}
section.lead-magnet-inline.bg-blue .lead-magnet-privacy { color: rgba(255,255,255,0.6); }
section.lead-magnet-inline.bg-blue .lead-magnet-privacy a { color: var(--ts-gold); }

@media (max-width: 1024px) {
  .lead-magnet-inline .lead-magnet-box { gap: 40px; }
  .lead-magnet-inline .lead-magnet-cover img { width: 180px; }
}

@media (max-width: 768px) {
  section.lead-magnet-inline { padding: 48px 0; }
  .lead-magnet-inline .lead-magnet-box {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }
  .lead-magnet-inline .lead-magnet-cover { display: flex; justify-content: center; }
  .lead-magnet-inline .lead-magnet-cover img {
    width: 140px;
    transform: rotate(0deg);
  }
  .lead-magnet-inline .lead-magnet-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .lead-magnet-inline .lead-magnet-content > * {
    width: 100%;
    max-width: 480px;
  }
  .lead-magnet-inline .lead-magnet-content h2 { font-size: 22px; }
  .lead-magnet-inline .lead-magnet-desc { margin-left: auto; margin-right: auto; }
  .lead-magnet-inline .lead-magnet-bullets {
    display: block;
    text-align: left;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }
  .lead-magnet-inline .lead-magnet-form { justify-content: center; }
  .lead-magnet-inline .btn { width: auto; }
}

/* ===========================================================
   36. SECTION-LIBRARY · Case-Study-Teaser (Phase B Snippet)
   Selektoren unter .case-teaser gescoped — Bestand-.case-quote /
   .case-stats / .case-stat (Section 14, regio.php Praxis-Block)
   bleiben unangetastet.
   =========================================================== */
section.case-teaser { padding: 64px 0 76px; } /* Cleanup B: Bottom-Spacing für Quote-Author-Bereich */

.case-teaser .case-teaser-card {
  background: var(--bg-warm);
  border-radius: 8px;
  padding: 48px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  max-width: 920px;
  margin: 0 auto;
}

.case-teaser .case-teaser-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(31,78,120,0.12);
}
.case-teaser .case-teaser-header .section-label { margin: 0; }

.case-teaser .case-teaser-logo {
  height: 40px;
  width: auto;
  max-width: 160px;
  flex-shrink: 0;
  opacity: 0.92;
}

.case-teaser .case-teaser-card h2 {
  margin-bottom: 28px;
  max-width: 720px;
}

/* Stats-Variante */
.case-teaser .case-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 28px;
  list-style: none;
  padding: 0;
}
.case-teaser .case-stat {
  text-align: left;
  padding: 0 24px;
  position: relative;
}
.case-teaser .case-stat:first-child { padding-left: 0; }
.case-teaser .case-stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: rgba(31,78,120,0.12);
}
.case-teaser .case-stat-num {
  display: block;
  font-size: 42px;
  font-weight: 700;
  color: var(--ts-blue-dark);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
  font-feature-settings: "tnum";
}
.case-teaser .case-stat-num .case-stat-prefix,
.case-teaser .case-stat-num .case-stat-suffix {
  font-size: 0.5em;
  font-weight: 600;
  vertical-align: super;
  margin: 0 2px;
}
.case-teaser .case-stat-label {
  display: block;
  font-size: 13px;
  color: var(--grey-700);
  line-height: 1.4;
}

/* Quote-Variante */
.case-teaser .case-quote {
  position: relative;
  padding: 8px 0 8px 32px;
  margin: 0 0 28px 0;
  border-left: 3px solid var(--ts-gold);
  font-size: 19px;
  line-height: 1.55;
  color: var(--anthracite);
  font-style: italic;
  background: transparent;
}
.case-teaser .case-quote::before {
  content: '"';
  position: absolute;
  left: 6px;
  top: -8px;
  font-size: 56px;
  color: var(--ts-gold);
  line-height: 1;
  font-family: Georgia, serif;
  font-style: normal;
}
.case-teaser .case-quote-author {
  margin-top: 16px;
  display: block;
  font-size: 14px;
  font-style: normal;
  color: var(--grey-700);
  font-weight: 500;
}
.case-teaser .case-quote-author strong { color: var(--anthracite); font-weight: 600; }

.case-teaser .case-teaser-body {
  color: var(--grey-700);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 720px;
}

.case-teaser .case-teaser-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ts-blue);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: gap 0.2s ease;
}
.case-teaser .case-teaser-link:hover { gap: 10px; text-decoration: underline; }
.case-teaser .case-teaser-link::after { content: '→'; }

@media (max-width: 1024px) {
  .case-teaser .case-teaser-card { padding: 40px; }
  .case-teaser .case-stat-num { font-size: 36px; }
}

@media (max-width: 768px) {
  section.case-teaser { padding: 48px 0 60px; } /* Cleanup B: Mobile-Spacing analog Desktop +12px */
  .case-teaser .case-teaser-card { padding: 28px 22px; }

  .case-teaser .case-teaser-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 20px;
  }

  .case-teaser .case-stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .case-teaser .case-stat {
    padding: 16px 0 0 0;
    border-top: 1px solid rgba(31,78,120,0.12);
  }
  .case-teaser .case-stat:first-child { padding-top: 0; border-top: 0; }
  .case-teaser .case-stat::after { display: none !important; }
  .case-teaser .case-stat-num { font-size: 36px; }

  .case-teaser .case-quote { font-size: 17px; padding-left: 24px; }
  .case-teaser .case-quote::before { font-size: 44px; left: 0; top: -4px; }

  .case-teaser .case-teaser-body { font-size: 15px; }
  .case-teaser .case-teaser-link {
    width: 100%;
    justify-content: center;
    padding: 12px;
    border: 1px solid var(--ts-blue);
    border-radius: 4px;
    margin-top: 8px;
  }
}

/* ===========================================================
   37. SECTION-LIBRARY · Logo-Wall (Phase B Snippet)
   Eindeutige Klassen — kein Konflikt mit Bestand.
   =========================================================== */
section.logo-wall { padding: 56px 0; }
section.logo-wall.bg-warm { background: var(--bg-warm); }

.logo-wall-header {
  text-align: center;
  margin-bottom: 36px;
}
.logo-wall-lead {
  color: var(--grey-700);
  font-size: 15px;
  margin: 0 auto;
  max-width: 600px;
}

.logo-wall-list {
  display: grid;
  align-items: center;
  gap: 36px 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.logo-wall-list[data-cols="4"] { grid-template-columns: repeat(4, 1fr); }
.logo-wall-list[data-cols="5"] { grid-template-columns: repeat(5, 1fr); }
.logo-wall-list[data-cols="6"] { grid-template-columns: repeat(6, 1fr); }

.logo-wall-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 4px;
}
.logo-wall-item a { display: block; line-height: 0; }

.logo-wall-item img {
  max-height: 36px;
  max-width: 130px;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.logo-wall.is-greyscale .logo-wall-item img {
  filter: grayscale(100%);
  opacity: 0.65;
}
.logo-wall.is-greyscale .logo-wall-item:hover img,
.logo-wall.is-greyscale .logo-wall-item a:focus-visible img {
  filter: grayscale(0%);
  opacity: 1;
}

@media (max-width: 1024px) {
  .logo-wall-list { gap: 32px; }
  .logo-wall-list[data-cols="5"],
  .logo-wall-list[data-cols="6"] { grid-template-columns: repeat(3, 1fr); }
  .logo-wall-list[data-cols="4"] { grid-template-columns: repeat(2, 1fr); }
  .logo-wall-item { height: 60px; }
  .logo-wall-item img { max-height: 40px; max-width: 150px; }
}
@media (max-width: 768px) {
  section.logo-wall { padding: 40px 0; }
  .logo-wall-header { margin-bottom: 24px; }
  .logo-wall-list,
  .logo-wall-list[data-cols] { grid-template-columns: repeat(2, 1fr); gap: 28px 24px; }
  .logo-wall-item { height: 52px; }
  .logo-wall-item img { max-height: 32px; max-width: 120px; }
}

/* ===========================================================
   38. SECTION-LIBRARY · Local-Context-Block (Phase B Snippet)
   Eindeutige Klassen — kein Konflikt mit Bestand.
   =========================================================== */
section.local-context {
  padding: 64px 0;
  background: var(--bg-warm);
}

.local-context-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 56px;
  align-items: start;
}

.local-context-visual {
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--grey-200);
  aspect-ratio: 16 / 10;
  position: relative;
}
.local-context-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.local-photo-overlay {
  position: absolute;
  bottom: 16px;
  left: 16px;
  color: var(--white);
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  z-index: 2;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.5px;
}

.local-pin-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: linear-gradient(135deg, var(--bg-warm) 0%, #EFEAD9 100%);
  text-align: center;
  padding: 24px;
}
.local-pin-fallback svg { width: 80px; height: 80px; color: var(--ts-gold); }
.local-pin-fallback .pin-city {
  font-size: 22px;
  font-weight: 700;
  color: var(--ts-blue-dark);
  letter-spacing: -0.3px;
}
.local-pin-fallback .pin-distance { font-size: 14px; color: var(--grey-700); }
.local-pin-fallback .pin-distance strong { color: var(--anthracite); font-weight: 600; }

.local-context-content { padding-top: 4px; }
.local-context-lead {
  color: var(--grey-700);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 600px;
}

.local-context-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
  margin: 0 0 28px 0;
  padding: 0;
}

.local-fact { display: flex; align-items: flex-start; gap: 14px; }
.local-fact-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(201,169,97,0.16);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ts-gold);
}
.local-fact-icon svg { width: 20px; height: 20px; }

.local-fact-text { margin: 0; }
.local-fact-text dt {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--grey-700);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}
.local-fact-text dd {
  display: block;
  margin: 0;
  font-size: 16px;
  color: var(--anthracite);
  line-height: 1.4;
  font-weight: 500;
}

@media (max-width: 1024px) {
  .local-context-grid { grid-template-columns: 320px 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  section.local-context { padding: 48px 0; }
  .local-context-grid { grid-template-columns: 1fr; gap: 28px; }
  .local-context-facts { grid-template-columns: 1fr; gap: 18px; }
  .local-pin-fallback .pin-city { font-size: 19px; }
  .local-pin-fallback svg { width: 60px; height: 60px; }
}

/* ===========================================================
   39. SECTION-LIBRARY · Regio-Liste-Block (Phase B Snippet)
   Selektoren unter .regio-list gescoped — Bestand-.regio-grid /
   .regio-chip aus snippet('regio-grid') bleibt unangetastet.
   =========================================================== */
section.regio-list {
  padding: 72px 0;
  background: var(--bg-warm);
}

.regio-list-header {
  margin-bottom: 40px;
  max-width: 720px;
}
.regio-list-lead {
  color: var(--grey-700);
  font-size: 17px;
  line-height: 1.6;
  margin: 0;
}

.regio-list .regio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  list-style: none;
  margin: 0 0 24px 0;
  padding: 0;
}

.regio-list .regio-card {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 18px;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: 6px;
  color: var(--anthracite);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.3;
  min-height: 64px;
  transition: all 0.18s ease;
  position: relative;
}
.regio-list .regio-card:hover {
  border-color: var(--ts-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(31,78,120,0.10);
  color: var(--ts-blue);
}

.regio-list .regio-card--prio-a {
  background: #FAF6EA;
  border: 1.5px solid var(--ts-gold);
  font-weight: 700;
  color: var(--ts-blue-dark);
}
.regio-list .regio-card--prio-a:hover {
  border-color: var(--ts-blue);
  background: var(--white);
}

.regio-list-footer {
  color: var(--grey-700);
  font-size: 14px;
  text-align: center;
  margin: 0 auto;
  padding-top: 16px;
  border-top: 1px dashed rgba(31,78,120,0.15);
  max-width: 720px;
}

@media (max-width: 1024px) {
  .regio-list .regio-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  section.regio-list { padding: 48px 0; }
  .regio-list-header { margin-bottom: 28px; }
  .regio-list-lead { font-size: 16px; }
  .regio-list .regio-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .regio-list .regio-card { font-size: 14px; min-height: 56px; padding: 16px 14px; }
  .regio-list-footer { font-size: 13px; }
}

/* ===========================================================
   40. SECTION-LIBRARY · Text-with-Image (Phase B Snippet)
   Eindeutige Klassen — kein Konflikt mit Bestand.
   =========================================================== */
section.text-image { padding: 80px 0; }
section.text-image.bg-warm { background: var(--bg-warm); }

.text-image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.text-image-grid.image-right .text-image-visual { order: 2; }
.text-image-grid.image-right .text-image-content { order: 1; }

.text-image-visual {
  border-radius: 8px;
  overflow: hidden;
  background: var(--grey-200);
}
.text-image-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.text-image-visual.aspect-portrait { aspect-ratio: 4 / 5; }
.text-image-visual.aspect-landscape { aspect-ratio: 4 / 3; }
.text-image-visual.aspect-square { aspect-ratio: 1 / 1; }

.text-image-content { max-width: 540px; }
.text-image-content h2 { margin-bottom: 16px; }

.text-image-body {
  color: var(--grey-700);
  font-size: 16px;
  line-height: 1.7;
}
.text-image-body p { margin-bottom: 14px; }
.text-image-body p:last-child { margin-bottom: 0; }
.text-image-body a {
  color: var(--ts-blue);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(31,78,120,0.4);
  text-underline-offset: 2px;
}
.text-image-body a:hover { text-decoration-color: var(--ts-blue); }

.text-image-cta { margin-top: 24px; }

@media (max-width: 1024px) {
  .text-image-grid { gap: 48px; }
}

@media (max-width: 768px) {
  section.text-image { padding: 56px 0; }
  .text-image-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .text-image-grid.image-right .text-image-visual,
  .text-image-grid .text-image-visual { order: 1; }
  .text-image-grid.image-right .text-image-content,
  .text-image-grid .text-image-content { order: 2; }

  .text-image-visual {
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }
  .text-image-visual.aspect-portrait { aspect-ratio: 4 / 5; }
  .text-image-visual.aspect-landscape,
  .text-image-visual.aspect-square { aspect-ratio: 4 / 3; }

  .text-image-content {
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
  }
  .text-image-content h2 { font-size: 24px; }
  .text-image-body { font-size: 15px; }
}

/* ===========================================================
   41. SECTION-LIBRARY · CTA-Section (Phase B Snippet)
   Selektoren überschreiben Bestand-Section 22 (.cta-section).
   Werte sehr ähnlich, Bestand-Aufrufe (regio/sub-regio/contact mit
   .bg-blue) bleiben funktional identisch. .btn-secondary weicht
   minimal vom Bestand ab (transparent statt white-bg) — auf weißem
   Page-Hintergrund visuell gleich, auf bg-warm leicht durchsichtig.
   =========================================================== */
section.cta-section {
  padding: 72px 0;
  text-align: center;
}
section.cta-section.bg-blue {
  background: linear-gradient(135deg, var(--ts-blue) 0%, var(--ts-blue-dark) 100%);
}
section.cta-section.bg-warm { background: var(--bg-warm); }
section.cta-section.bg-anthracite {
  background: linear-gradient(135deg, var(--anthracite) 0%, #1A1C20 100%);
}

.cta-section h2 { color: var(--ts-blue-dark); margin-bottom: 14px; }
.cta-section .section-lead {
  color: var(--grey-700);
  font-size: 18px;
  line-height: 1.6;
  margin: 0 auto 28px;
  max-width: 580px;
}

.cta-section.bg-blue h2,
.cta-section.bg-anthracite h2 { color: var(--white); }
.cta-section.bg-blue .section-lead,
.cta-section.bg-anthracite .section-lead { color: rgba(255,255,255,0.85); }

.cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.cta-phone {
  margin: 0;
  font-size: 15px;
}
.cta-section.bg-blue .cta-phone,
.cta-section.bg-anthracite .cta-phone { color: rgba(255,255,255,0.7); }
.cta-section.bg-warm .cta-phone { color: var(--grey-700); }

.cta-phone a {
  color: var(--ts-gold);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}
.cta-phone a:hover { color: var(--ts-gold-light); }
.cta-section.bg-warm .cta-phone a { color: var(--ts-blue); }
.cta-section.bg-warm .cta-phone a:hover { color: var(--ts-blue-dark); }

.btn-secondary-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-secondary-light:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--white);
}

@media (max-width: 768px) {
  section.cta-section { padding: 48px 0; }
  .cta-section h2 { font-size: 26px; }
  .cta-section .section-lead { font-size: 16px; margin-bottom: 24px; }
  .cta-buttons { flex-direction: column; gap: 10px; }
  .cta-buttons .btn { width: 100%; }
  .cta-phone { font-size: 14px; }
}

/* ===========================================================
   42. SECTION-INTRO · inline auf Master-Pages (Phase C3)
   Eigenes Pattern aus Briefing 4.15 Abschnitt 2 — kein Snippet,
   sondern direkt im Template. „Was ist das Thema?" in 2–3 Absätzen
   Sage-Stil zwischen Trust-Bar und Card-Grid.
   =========================================================== */
section.section-intro { padding: 64px 0; background: var(--bg-warm); }
.section-intro h2 { margin-bottom: 16px; }
.section-intro p {
  color: var(--grey-700);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 16px;
}
.section-intro p:last-child { margin-bottom: 0; }

/* Cleanup-Sprint B: 50/50-Layout wenn intro_image gesetzt. Default-Block
   bleibt narrow text-only. Image-Variante zeigt Bild rechts neben Text. */
.section-intro--with-image .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.section-intro--with-image .section-intro__image {
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
}
.section-intro--with-image .section-intro__image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
@media (max-width: 870px) {
  .section-intro--with-image .container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
.section-intro p a {
  color: var(--ts-blue);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(31,78,120,0.4);
  text-underline-offset: 2px;
}
.section-intro p a:hover { text-decoration-color: var(--ts-blue); }

@media (max-width: 768px) {
  section.section-intro { padding: 48px 0; }
  .section-intro p { font-size: 16px; }
}

/* ===========================================================
   43. REGIO-LIST Verfügbarkeits-Indikator (Phase B+ via C3)
   .regio-list__item--unavailable rendert ein Stadt-Karte als
   Platzhalter (kein Klick), für 13-Cities-Listen, deren
   Detail-Pages noch nicht existieren.
   =========================================================== */
.regio-list .regio-card.regio-list__item--unavailable {
  background: var(--grey-100);
  border: 1px dashed var(--grey-300);
  color: var(--grey-500);
  cursor: not-allowed;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}
.regio-list .regio-card.regio-list__item--unavailable:hover {
  /* Hover-Effekte des Standard-Cards überschreiben */
  border-color: var(--grey-300);
  transform: none;
  box-shadow: none;
  color: var(--grey-500);
  background: var(--grey-100);
}
.regio-list .regio-card.regio-list__item--unavailable .regio-card-name {
  color: var(--grey-500);
  font-weight: 500;
  line-height: 1.3;
}
.regio-list .regio-card.regio-list__item--unavailable .regio-card-status {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--grey-400);
}
/* Prio-A unavailable behält Gold-Border-Hint, aber dezenter */
.regio-list .regio-card--prio-a.regio-list__item--unavailable {
  background: var(--grey-100);
  border: 1px dashed rgba(201,169,97,0.4);
}

/* ===========================================================
   44. SECTION-LIBRARY · Decision-Tree (Phase B+ via C4-A)
   3-Wege-Entscheidungs-Karten gleichwertig nebeneinander.
   Nicht im Hub eingesetzt — exklusiv für Master-Pages.
   =========================================================== */
section.decision-tree {
  padding: 72px 0;
  background: var(--bg-warm);
}
.decision-tree .section-header {
  max-width: 720px;
  margin-bottom: 40px;
}
.decision-tree .section-header h2 { margin-bottom: 12px; }
.decision-tree .section-lead {
  color: var(--grey-700);
  font-size: 17px;
  line-height: 1.6;
  margin: 0;
}

.decision-tree__grid {
  display: grid;
  gap: 24px;
  align-items: stretch;
}
.decision-tree[data-cols="2"] .decision-tree__grid { grid-template-columns: repeat(2, 1fr); }
.decision-tree[data-cols="3"] .decision-tree__grid { grid-template-columns: repeat(3, 1fr); }

.decision-tree__path {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: 6px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  text-align: left;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.decision-tree__path:hover {
  border-color: var(--ts-blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(31,78,120,0.10);
}

.decision-tree__label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--ts-gold);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.decision-tree__icon {
  width: 56px;
  height: 56px;
  background: rgba(201,169,97,0.14);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ts-gold);
  margin-bottom: 18px;
  flex-shrink: 0;
}
.decision-tree__icon svg { width: 28px; height: 28px; display: block; }

.decision-tree__path h3 {
  color: var(--ts-blue-dark);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
}

.decision-tree__body {
  color: var(--grey-700);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.decision-tree__bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  flex-grow: 1;
}
.decision-tree__bullets li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--grey-700);
  line-height: 1.55;
  margin-bottom: 8px;
}
.decision-tree__bullets li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--ts-gold);
  font-weight: 700;
}

.decision-tree__cta {
  margin-top: auto;
  align-self: flex-start;
}

@media (max-width: 1024px) {
  .decision-tree[data-cols="3"] .decision-tree__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  section.decision-tree { padding: 48px 0; }
  .decision-tree[data-cols="2"] .decision-tree__grid,
  .decision-tree[data-cols="3"] .decision-tree__grid { grid-template-columns: 1fr; }
  .decision-tree__path { padding: 28px 24px; }
  .decision-tree__path h3 { font-size: 19px; }
}

/* ===========================================================
   45. SECTION-LIBRARY · Comparison-Table (Phase B+ via C4-A)
   Klassische Tabelle Desktop/Tablet, Karten-Stack auf Mobile.
   Symbol-Mapping: Ja → ✓ (--green), Nein → ✗ (--red),
   Teilweise → ○ (--ts-gold), sonst Text-Wert.
   =========================================================== */
section.comparison-table {
  padding: 72px 0;
  background: var(--white);
}
.comparison-table .section-header {
  max-width: 720px;
  margin-bottom: 36px;
}
.comparison-table .section-header h2 { margin-bottom: 12px; }
.comparison-table .section-lead {
  color: var(--grey-700);
  font-size: 17px;
  line-height: 1.6;
  margin: 0;
}

/* Desktop/Tablet: Tabelle */
.comparison-table__wrapper {
  overflow-x: auto;
  border: 1px solid var(--grey-200);
  border-radius: 6px;
}
.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  background: var(--white);
}
.comparison-table thead th {
  background: var(--bg-warm);
  color: var(--ts-blue-dark);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.3px;
  padding: 18px 20px;
  text-align: left;
  border-bottom: 2px solid var(--grey-200);
  vertical-align: top;
}
.comparison-table .comparison-table__corner {
  background: var(--white);
}
.comparison-table thead th.comparison-table__highlight {
  background: rgba(201,169,97,0.14);
  border-top: 3px solid var(--ts-gold);
  padding-top: 15px;
}
.comparison-table tbody th {
  background: var(--white);
  color: var(--anthracite);
  font-weight: 600;
  font-size: 14px;
  text-align: left;
  padding: 14px 20px;
  border-bottom: 1px solid var(--grey-200);
  vertical-align: middle;
  width: 28%;
}
.comparison-table tbody td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--grey-200);
  color: var(--grey-700);
  vertical-align: middle;
}
.comparison-table tbody td.comparison-table__highlight {
  background: rgba(201,169,97,0.06);
}
.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table__badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  background: var(--ts-gold);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border-radius: 3px;
  vertical-align: middle;
}

.comparison-table__symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.comparison-table__cell--yes .comparison-table__symbol { color: var(--green); font-size: 18px; }
.comparison-table__cell--no .comparison-table__symbol { color: var(--red); font-size: 18px; }
.comparison-table__cell--partial .comparison-table__symbol { color: var(--ts-gold); font-size: 18px; }

/* Mobile-Karten-Stack standardmäßig versteckt */
.comparison-table__mobile { display: none; }

@media (max-width: 768px) {
  section.comparison-table { padding: 48px 0; }

  .comparison-table__wrapper { display: none; }
  .comparison-table__mobile {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .comparison-table__card {
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: 6px;
    padding: 24px 22px;
  }
  .comparison-table__card--highlight {
    border-top: 3px solid var(--ts-gold);
    background: rgba(201,169,97,0.04);
  }
  .comparison-table__card h3 {
    color: var(--ts-blue-dark);
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 16px;
  }
  .comparison-table__card dl {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 16px;
    margin: 0;
  }
  .comparison-table__card dt {
    font-size: 13px;
    color: var(--grey-700);
    font-weight: 500;
    line-height: 1.4;
    align-self: center;
  }
  .comparison-table__card dd {
    font-size: 14px;
    color: var(--anthracite);
    font-weight: 600;
    text-align: right;
    margin: 0;
    align-self: center;
  }
  .comparison-table__card dd.comparison-table__cell--yes { color: var(--green); }
  .comparison-table__card dd.comparison-table__cell--no { color: var(--red); }
  .comparison-table__card dd.comparison-table__cell--partial { color: var(--ts-gold); }
}

/* ===========================================================
   46. HUB · Hero-Slogan (Phase C4-B)
   Hub-spezifisches Slogan-Element zwischen H1 und Subtitle.
   Empty-Selector verhindert Vertical-Spacing-Bug bei leerem Field.
   =========================================================== */
.hero .hero__slogan,
.hero-content .hero__slogan {
  display: block;
  font-size: 1.05em;
  font-style: italic;
  color: var(--ts-gold);
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}
.hero__slogan:empty { display: none; }

/* ===========================================================
   46b. PHASE E SWEEP B · Mobile-Layout-Fixes
   - Mega-Menu-Slimming auf ≤ 870px (Icon + Subtitle hide → kompakter Dropdown-Look)
   - Breadcrumb-Container scopt overflow-x korrekt + iOS-Smooth-Scroll
   - Ellipsis für 4-stufige Breadcrumbs auf ≤ 480px
   - Footer-Col-Title Spacing-Match: <div>-Spalten gleiches Top-Spacing
     wie <details>-Spalten, damit Titel auf Mobile aligned sind.
   =========================================================== */
@media (max-width: 870px) {
  /* Mega-Mobile-Spec liegt im Section-5-Block (UDE-Adaption). */
  .footer-col:not(.footer-collapsible) > .footer-col-title {
    margin-bottom: 0;
    padding: 4px 0 10px;
  }
}

/* ===========================================================
   47. PHASE D-F · A11y-Fixes
   Color-Contrast: .btn-secondary ist standardmäßig white-on-transparent
   (für dark Hero-/CTA-Backgrounds). Auf hellen Section-Backgrounds
   (warm/white) → blue-on-transparent (WCAG AA-konform, 1.12 → 8.6).
   Inline-Links: kirbytext-rendered <a> in Lauftext brauchen Underline,
   nicht nur Color-Differenzierung (link-in-text-block-Audit).
   =========================================================== */
.local-context .btn-secondary,
.text-image .btn-secondary,
.decision-tree .btn-secondary,
.team-section .btn-secondary {
  color: var(--ts-blue);
  border-color: var(--ts-blue);
}
.local-context .btn-secondary:hover,
.text-image .btn-secondary:hover,
.decision-tree .btn-secondary:hover,
.team-section .btn-secondary:hover {
  background: var(--ts-blue);
  color: var(--white);
  border-color: var(--ts-blue);
}

.team-section p a:not(.btn):not(.card-link),
.kirbytext a,
.section-intro p a:not(.btn) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.team-section p a:not(.btn):not(.card-link):hover,
.kirbytext a:hover,
.section-intro p a:not(.btn):hover {
  text-decoration-thickness: 2px;
}

/* ===========================================================
   48. PHASE E · 404-Page-Footnote
   Schmaler Sage-Toned-Hint unter dem 3-Card-Grid.
   =========================================================== */
.error-footnote {
  margin-top: 56px;
  text-align: center;
  font-size: 15px;
  color: var(--grey-500);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.error-footnote a {
  color: var(--ts-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.error-footnote a:hover {
  text-decoration-thickness: 2px;
}

/* ===========================================================
   49. PHASE E · Legacy-Content-Fallback
   Rendert Bestand-Content_sections für Pages ohne Section-Library-
   Befüllung (branche.php + master.php Fallback-Block). Bridge bis
   Stefan-Migration auf Section-Library-Felder.
   =========================================================== */
section.legacy-content {
  padding: 72px 0;
  background: var(--bg-warm);
}
section.legacy-content + section.legacy-content {
  padding-top: 0;
}
.legacy-content h2 {
  font-size: 28px;
  color: var(--ts-blue-dark);
  margin-bottom: 1rem;
}
.legacy-content p,
.legacy-content ul,
.legacy-content ol {
  color: var(--anthracite);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.legacy-content a {
  color: var(--ts-blue-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legacy-content p > strong:first-child {
  display: block;
  margin-top: 1.5rem;
  font-size: 18px;
  color: var(--ts-blue-dark);
  letter-spacing: 0.01em;
}
@media (max-width: 768px) {
  section.legacy-content { padding: 48px 0; }
  .legacy-content h2 { font-size: 22px; }
}
@media (max-width: 870px) {
  .legacy-content p > strong:first-child {
    font-size: 17px;
    margin-top: 1.25rem;
  }
}

/* =========================================================================
   Design-System-Page (interne Übersicht)
   Living Style Guide unter /design-system/
   noindex,nofollow — nicht in Navigation verlinkt
   ========================================================================= */
.design-system-main {
  background: var(--white);
  color: var(--anthracite);
}
.design-system-main .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-3);
}

/* Hero */
.design-system-hero {
  padding: var(--sp-8) 0 var(--sp-6);
  background: linear-gradient(180deg, var(--bg-warm-light) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--grey-200);
}
.design-system-hero h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin: var(--sp-1) 0 var(--sp-2);
  color: var(--ts-blue-dark);
}
.design-system-hero .ds-eyebrow {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ts-gold-dark);
}
.design-system-hero .ds-lead {
  max-width: 720px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--grey-700);
}
.design-system-hero .ds-lead code {
  background: var(--grey-100);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 14px;
}

/* Inhaltsverzeichnis */
.ds-toc {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
}
.ds-toc a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ts-blue);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}
.ds-toc a:hover {
  background: var(--ts-blue);
  color: var(--white);
}

/* Section-Layout */
.ds-section {
  padding: var(--sp-8) 0;
  border-bottom: 1px solid var(--grey-200);
}
.ds-section h2 {
  font-size: 1.875rem;
  margin-bottom: var(--sp-2);
  color: var(--ts-blue-dark);
}
.ds-section h3 {
  font-size: 1.125rem;
  margin: var(--sp-5) 0 var(--sp-3);
  padding-bottom: 6px;
  border-bottom: 2px solid var(--ts-gold);
  color: var(--anthracite);
  display: inline-block;
}
.ds-section-lead,
.ds-note {
  max-width: 760px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--grey-700);
  margin-bottom: var(--sp-3);
}
.ds-note {
  font-size: 14px;
  padding: var(--sp-2);
  background: var(--bg-warm);
  border-left: 3px solid var(--ts-gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.ds-note code,
.ds-section code {
  background: var(--grey-100);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 13px;
  color: var(--ts-blue-dark);
}

/* Color-Grid */
.ds-color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}
.ds-color-swatch {
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--white);
}
.ds-swatch-fill {
  height: 80px;
  border-bottom: 1px solid var(--grey-100);
}
.ds-swatch-meta {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ds-swatch-meta code {
  font-size: 13px;
  color: var(--ts-blue-dark);
  font-weight: 500;
  background: transparent;
  padding: 0;
}
.ds-swatch-hex {
  font-size: 12px;
  color: var(--grey-500);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.ds-swatch-purpose {
  font-size: 12px;
  color: var(--grey-700);
  margin-top: 2px;
}

/* Schriften */
.ds-font-samples {
  display: grid;
  gap: var(--sp-2);
}
.ds-font-row {
  padding: var(--sp-3);
  background: var(--bg-warm-light);
  border-radius: var(--radius-sm);
}
.ds-font-row .ds-sample {
  margin: 0;
}
.ds-font-row > code {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--grey-500);
}

/* Spacings */
.ds-spacing-bars {
  display: grid;
  gap: var(--sp-1);
}
.ds-spacing-row {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 6px 0;
}
.ds-spacing-token {
  flex: 0 0 90px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ts-blue-dark);
  background: transparent;
  padding: 0;
}
.ds-spacing-bar {
  height: 24px;
  background: var(--ts-gold);
  border-radius: 2px;
  flex: 0 0 auto;
}
.ds-spacing-value {
  font-size: 13px;
  color: var(--grey-500);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* Radii */
.ds-radius-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--sp-3);
}
.ds-radius-sample {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}
.ds-radius-box {
  width: 80px;
  height: 80px;
  background: var(--ts-blue);
}

/* Shadows */
.ds-shadow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--sp-4);
  padding: var(--sp-3) var(--sp-2);
  background: var(--bg-warm);
  border-radius: var(--radius-sm);
}
.ds-shadow-sample {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.ds-shadow-box {
  width: 100%;
  height: 100px;
  background: var(--white);
  border-radius: var(--radius-md);
}

/* Logo-Samples */
.ds-logo-samples {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-3);
}
.ds-logo-sample {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ds-logo-frame {
  padding: var(--sp-3);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
}

/* Component-Rows */
.ds-component-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  padding: var(--sp-3);
  background: var(--bg-warm-light);
  border: 1px dashed var(--grey-200);
  border-radius: var(--radius-sm);
  align-items: center;
  margin-bottom: var(--sp-3);
}
/* Buttons-Demo: weißer Hintergrund (lässt heller Buttons sichtbar werden) */
.ds-buttons-demo {
  background: var(--white);
  border: 1px solid var(--grey-100);
}
/* Buttons-Demo Variant: warmer Hintergrund für Buttons-on-Warm-Test */
.ds-buttons-demo--warm {
  background: var(--bg-warm);
  border: 1px solid var(--grey-200);
}
.ds-h4 {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey-700);
  margin: var(--sp-3) 0 var(--sp-1);
}

/* Card-Demo */
.ds-card-demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-3);
  padding: var(--sp-3);
  background: var(--bg-warm-light);
  border: 1px dashed var(--grey-200);
  border-radius: var(--radius-sm);
}

/* Form-Demo */
.ds-form-demo {
  display: grid;
  gap: var(--sp-2);
  max-width: 560px;
  padding: var(--sp-3);
  background: var(--bg-warm-light);
  border: 1px dashed var(--grey-200);
  border-radius: var(--radius-sm);
}
.ds-form-row {
  display: grid;
  gap: 6px;
}
.ds-form-row label:not(.ds-checkbox-label):not(.ds-radio-label) {
  font-size: 14px;
  font-weight: 500;
  color: var(--anthracite);
}
.ds-form-demo input[type="text"],
.ds-form-demo input[type="email"],
.ds-form-demo select,
.ds-form-demo textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--grey-300);
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 15px;
  background: var(--white);
  color: var(--anthracite);
}
.ds-form-demo input:focus,
.ds-form-demo select:focus,
.ds-form-demo textarea:focus {
  outline: 2px solid var(--ts-blue);
  outline-offset: 1px;
  border-color: var(--ts-blue);
}
.ds-form-demo textarea {
  resize: vertical;
  min-height: 90px;
}
.ds-checkbox-label,
.ds-radio-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--grey-700);
  cursor: pointer;
}
.ds-form-radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
}
.ds-radio-group-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--anthracite);
}

/* Pattern-Mini-List */
.ds-pattern-mini-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}
.ds-pattern-mini-list li {
  font-size: 14px;
}
.ds-pattern-mini-list a {
  color: var(--ts-blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* Snippet-Frame: visueller Container um jede Live-Demo */
.ds-snippet-frame {
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  margin-bottom: var(--sp-1);
  overflow: hidden;
}
/* Innerhalb des Frames sollen die Snippet-Sections nicht weiter eingeschränkt
   werden — sie bringen ihre eigenen padding-Werte mit. */
.ds-snippet-frame > section {
  margin: 0;
}
.ds-snippet-meta {
  font-size: 13px;
  line-height: 1.55;
  color: var(--grey-500);
  margin: 0 0 var(--sp-5);
  padding: 8px 12px;
  background: var(--bg-warm-light);
  border-left: 3px solid var(--grey-300);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.ds-snippet-meta code {
  background: var(--grey-100);
  padding: 1px 5px;
  border-radius: 2px;
  font-size: 12px;
  color: var(--ts-blue-dark);
}

/* Helper-List (technische Helper-Snippets ohne visuelle Demo) */
.ds-helper-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.ds-helper-item {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--sp-2);
  align-items: start;
  padding: 10px var(--sp-2);
  background: var(--white);
  border-bottom: 1px solid var(--grey-100);
}
.ds-helper-item:last-child {
  border-bottom: none;
}
.ds-helper-item:nth-child(even) {
  background: var(--bg-warm-light);
}
.ds-helper-name {
  font-size: 13px;
  color: var(--ts-blue-dark);
  font-weight: 500;
  background: transparent;
  padding: 0;
  word-break: break-word;
}
.ds-helper-purpose {
  font-size: 13px;
  line-height: 1.55;
  color: var(--grey-700);
}

/* Page-Pattern-List */
.ds-page-pattern-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.ds-page-pattern-item {
  display: grid;
  grid-template-columns: 200px 1fr 160px;
  gap: var(--sp-2);
  align-items: center;
  padding: 10px var(--sp-2);
  background: var(--white);
  border-bottom: 1px solid var(--grey-100);
}
.ds-page-pattern-item:last-child {
  border-bottom: none;
}
.ds-page-pattern-item:nth-child(even) {
  background: var(--bg-warm-light);
}
.ds-pp-label {
  font-size: 14px;
  color: var(--anthracite);
}
.ds-pp-url {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  color: var(--ts-blue);
}
.ds-template-badge {
  background: var(--grey-100);
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 12px;
  color: var(--grey-700);
  text-align: center;
  font-weight: 500;
  justify-self: start;
}
.ds-pp-purpose {
  grid-column: 2 / -1;
  font-size: 13px;
  color: var(--grey-500);
  margin-top: 2px;
}

/* Mobile */
@media (max-width: 768px) {
  .design-system-hero { padding: var(--sp-5) 0 var(--sp-4); }
  .ds-section { padding: var(--sp-5) 0; }
  .ds-helper-item,
  .ds-page-pattern-item {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: var(--sp-2);
  }
  .ds-pp-url { word-break: break-all; }
  .ds-pp-purpose { grid-column: 1; margin-top: 0; }
}


/* ===========================================================
   Legacy long-form: echte Sub-Überschriften (h3) + Subsections
   (Astro-Rebuild — ergänzt den 1:1-Bestand, ohne ihn zu ändern)
   =========================================================== */
.legacy-content h3 {
  font-size: 19px;
  color: var(--ts-blue-dark);
  margin: 2rem 0 0.5rem;
  line-height: 1.3;
  letter-spacing: -0.2px;
}
.legacy-content h3:first-child { margin-top: 0; }
.legacy-content .legacy-subsection {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--grey-200);
}
.legacy-content .legacy-subsection h3 { margin-top: 0; }

/* Intro-Block am Hero ausrichten: voller Container (gleiche linke Kante wie
   der Hero), Textbreite gekappt für Lesbarkeit (nur Text-Variante). */
.section-intro:not(.section-intro--with-image) .section-intro__text {
  max-width: 760px;
}

/* Legacy-Content linksbündig + gekappte Textbreite (gleiche Kante wie Hero/Intro) */
.legacy-content .legacy-prose { max-width: 760px; }
