/* =========================================
   SECTION HEAD COMPONENT (single source of truth)
   HTML:
========================================= */

@media (max-width: 480px){
  .section-head{
    display: flex;            /* statt inline-flex */
    width: 100%;              /* volle Zeile */
    flex-direction: column;   /* Icon oben */
    align-items: center;      /* Inhalt zentriert */
    text-align: center;
    gap: 0.75rem;
	  margin-bottom: var(--space-section-head);
  }
}

.section-head__icon{
  width: 44px;
  height: auto;
  display: block;
}

.section-head__title{
 margin: 0; /* wichtig: Abstand kommt jetzt aus .section-head */
}

/* Mobile: wie Cards (Icon oben, Text darunter) */
@media (max-width: 480px){
  .section-head{
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
  }
}

/* Legacy aliases (falls irgendwo noch alte Klassen existieren) */
.section-head img.leistungen__logo{ width: 44px; height: auto; display: block; }
.section-head h2.leistungen__title{ margin: 0; }

:root{
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-condensed: "IBM Plex Sans Condensed", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --lh-tight: 1.1;
  --lh-snug: 1.25;
  --lh-normal: 1.6;
  
  
  /* Typography system (tokenisiert, mobile-steuerbar) */
  --lh-body: 1.6;
  --lh-hero: 1.6;
  --lh-quote: 1.65;
  --p-space: 1em;
  --list-gap: 0.6rem;
--fs-body: clamp(1.0625rem, 0.35vw + 0.98rem, 1.25rem);
  --fs-lead: clamp(1.125rem, 0.5vw + 1.02rem, 1.375rem);
  --fs-h1: clamp(1.75rem, 1.2vw + 1.45rem, 2.375rem);
  --fs-h2: clamp(1.75rem, 1vw + 1.5rem, 2.1875rem);
  --fs-section-head: clamp(1.875rem, 0.6vw + 1.7rem, 2.1875rem);
  --fs-card-title: clamp(1.5rem, 1vw + 1.25rem, 2.5rem);
  --fs-quote: clamp(1.0625rem, 0.35vw + 0.98rem, 1.25rem);
  --ls-tight: -0.01em;
  --color-bg: #ffffff;
  --color-text: #303D46;
  --color-text-muted: #5E666D;
  --color-primary: #009FE3;
  --color-accent: #D0FD46;
  --color-border: #E5E7EB;
  --container-max: 1230px;
  --grid-gap: 24px;
  --container-pad: clamp(0.75rem, 4vw, 3.75rem); /* 12px → 60px */
  --btn-bg: var(--color-accent);
  --btn-fg: var(--color-text);
  --btn-bg-hover: #c4f53f;
  --btn-bg-hover-contact: #7B0C04;
  --btn-radius: 0.75rem;
  --btn-border: 2px;
  --btn-minh: 2.5rem;
  --btn-pad-y: 0.4rem;
  --btn-pad-x: 1.25rem;
  --btn-transition: 150ms ease;
  --btn-hover-shift: -1px;
  --scroll-offset: 110px;
  --logo-size: clamp(11rem, 22vw, 18rem);
  
  --ease-standard: cubic-bezier(.4, 0, .2, 1);
 --ease-out: cubic-bezier(.22, 1, .36, 1);

--dur-fast: 200ms;
--dur-medium: 380ms;
--dur-slow: 850ms;

  --motion-lift-sm: 4px;
  --motion-lift-md: 8px;
	
  --space-section-head: clamp(2rem, 3.5vw, 3.25rem);
  --space-section-subhead: clamp(0.75rem, 1.5vw, 1.25rem);
}

/* =========================================
   BASE LAYOUT SAFETY
   - verhindert 1–3px Overflow/Subpixel-Issues
========================================= */

*, *::before, *::after{
  box-sizing: border-box;
}

/* =========================================
   MICRO MOTION SYSTEM
   - progressive enhancement (nur wenn html.js)
   - performant: opacity/transform
========================================= */

/* Scroll Reveal */
html.js [data-reveal]{
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
  transition-delay: var(--delay, 0ms);
}

html.js [data-reveal].is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* Richtungsvarianten */
html.js [data-reveal="left"]{ transform: translateX(-20px); }
html.js [data-reveal="right"]{ transform: translateX(20px); }
html.js [data-reveal="fade"]{ transform: none; }

/* Interaktive Elemente (Hover Lift) */
@media (hover: hover) and (pointer: fine){
  .is-interactive{
    transition:
      transform var(--dur-medium) var(--ease-out),
      box-shadow var(--dur-medium) var(--ease-out),
      opacity var(--dur-medium) var(--ease-out);
    will-change: transform;
  }

  .is-interactive:hover{
    transform: translateY(calc(-1 * var(--motion-lift-sm)));
  }

  .is-interactive:active{
    transform: translateY(0);
    transition-duration: var(--dur-fast);
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce){
  html.js [data-reveal]{
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .is-interactive{
    transition: none !important;
    transform: none !important;
  }
}

/* =========================================
   LOCAL FONTS
========================================= */

/* IBM Plex Sans – Variable Roman */
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/IBM-Plex-Sans-Var-Roman.woff2") format("woff2");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}

/* IBM Plex Sans – Variable Italic */
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/IBM-Plex-Sans-Var-Italic.woff2") format("woff2");
  font-weight: 100 700;
  font-style: italic;
  font-display: swap;
}

/* IBM Plex Sans Condensed – Regular */
@font-face {
  font-family: "IBM Plex Sans Condensed";
  src: url("../fonts/IBMPlexSansCondensed-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* IBM Plex Sans Condensed – Bold */
@font-face {
  font-family: "IBM Plex Sans Condensed";
  src: url("../fonts/IBMPlexSansCondensed-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* IBM Plex Sans Condensed – Italic */
@font-face {
  font-family: "IBM Plex Sans Condensed";
  src: url("../fonts/IBMPlexSansCondensed-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
/* =========================================
   TYPOGRAPHY TOKENS
========================================= */


/* =========================================
   BASE TYPOGRAPHY
========================================= */

body {
  font-family: var(--font-sans);
  font-weight: var(--fw-regular);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--color-bg);
  margin: 0;
  text-rendering: optimizeLegibility;
}

/* Standard-Abstände: ruhig & konsistent */
p {
  margin: 0 0 var(--p-space);
}

/* Headings */
h1, h2, h3 {
  margin: 0 0 0.6em;
  font-family: var(--font-sans);
  letter-spacing: var(--ls-tight);
}

h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-snug);
  font-weight: var(--fw-semibold);
}

h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-tight);
  font-weight: var(--fw-bold);
  color: var(--color-text-muted);
}

/* Links & Fokus (A11y) */
a {
  color: inherit;
  text-underline-offset: 0.18em;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
/* =========================================
   TYPE UTILITIES (gezielt einsetzen)
========================================= */


/* Section-Headlines (grey/white/red) */
.section__headline {
  font-size: var(--fs-section-head);
  line-height: var(--lh-snug);
  font-weight: var(--fw-regular);
  color: var(--color-text-muted);
}

.section__headline--white { color: #fff; }
.section__headline--red { color: #9C1006; }

/* Condensed Body (z.B. längere Erklärtexte, Hero-Text) */
.text-condensed {
  font-family: var(--font-condensed);
}

/* Lead / Intro Text */
.text-lead {
  font-size: var(--fs-lead);
}

/* Hero Body (weiß + condensed) */
.hero__body {
  font-family: var(--font-condensed);
  font-size: var(--fs-lead);
  line-height: var(--lh-body);
  color: #fff;
}

/* Cards */
.card__title {
  font-family: var(--font-sans);
  font-size: var(--fs-card-title);
  line-height: var(--lh-tight);
  font-weight: var(--fw-regular);
  color: var(--color-primary);
}

.card__body {
  font-family: var(--font-condensed);
  font-size: var(--fs-body);
  color: var(--color-text-muted);
}

.card__bold-red {
  font-family: var(--font-condensed);
  font-weight: var(--fw-bold);
  color: #9C1006;
}

/* Zitat / Highlight */
.text-quote {
  font-family: var(--font-sans);
  font-size: var(--fs-quote);
  color: var(--color-primary);
}

/* =========================================
   DESIGN TOKENS
========================================= */



/* =========================================
   LAYOUT: CONTAINER / GRID
========================================= */



.container {
  width: min(var(--container-max), 100% - (2 * var(--container-pad)));
  margin-inline: auto;
}
/* =========================================
   GRID SYSTEM (Main Content)
========================================= */

/* Mobile: stacked */
.grid-12 {
  display: grid;
  gap: var(--grid-gap);
}

/* Desktop: 12 columns */
@media (min-width: 992px) {
  .grid-12 {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
  }
}

/* Desktop Seitenränder wie im Layout */
@media (min-width: 1280px) {
  
}
/* =========================================
   HEADER / NAVIGATION FINAL
========================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 2000;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
  gap: 2rem;

  width: min(var(--container-max), 100% - (2 * var(--container-pad)));
  margin-inline: auto;
  padding-inline: 0;
}

/* =====================================
   BUTTONS (global)
   überall gleich – Header-CTA bleibt .nav__cta (separat)
===================================== */



/* Base Button: funktioniert für <a class="btn"> und <button class="btn"> */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: var(--btn-minh);
  padding: var(--btn-pad-y) var(--btn-pad-x);

  border-radius: var(--btn-radius);
  border: var(--btn-border) solid transparent;

  text-decoration: none;
  cursor: pointer;

  font-family: var(--font-condensed);
  font-weight: var(--fw-medium);
  font-size: clamp(1.05rem, 0.4vw + 1rem, 1.2rem);
  line-height: 1;

  background-color: var(--btn-bg);
  color: var(--btn-fg);

  transition:
    transform var(--btn-transition),
    background-color var(--btn-transition),
    opacity var(--btn-transition);

  will-change: transform;
}
.btn--primary-cta {
  border-width: 2px;
  border-color: #9C1006;
  box-shadow: 0 2px 0 rgba(0,0,0,0.15);
}

/* echte Buttons neutralisieren */
button.btn {
  appearance: none;
  -webkit-appearance: none;
}

/* Hover nur auf Hover-Devices (Desktop/Maus) */
@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    transform: translateY(var(--btn-hover-shift));
    background-color: var(--btn-bg-hover);
  }
}

/* Active */
.btn:active {
  transform: translateY(0);
}

/* Focus (Accessibility) */
.btn:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 4px;
}

/* Disabled (optional, aber sauber) */
.btn[aria-disabled="true"],
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* Varianten (optional) */
.btn--primary {
  /* bleibt identisch zur Base (Primary ist Standard) */
}

.btn--secondary {
  background: transparent;
  border-color: var(--color-accent);
  color: var(--color-text);
}

@media (hover: hover) and (pointer: fine) {
  .btn--secondary:hover {
    background-color: var(--color-accent);
  }
}

/* Motion respektieren */
@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}

/* =====================================
   HEADER CTA (bleibt anders!)
   -> deinen bestehenden .nav__cta Stil beibehalten
   -> nur Fokus sauber ergänzen
===================================== */

.nav__cta:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}



/* ============================= */
/* LOGO */
/* ============================= */
.logo {
  display: inline-flex;
  align-items: center;
	margin-left: -20px;
}

.logo svg {
  height: auto;
  width: clamp(11rem, 22vw, 18rem);
  display: block;
}
/* ============================= */
/* MOBILE HEADER CLEAN VERSION */
/* ============================= */

@media (max-width: 991px){

  .header__inner{
    position: relative;
    padding-block: 1.25rem;              /* etwas normaler */
    padding-inline: var(--container-pad);
  }

  /* Logo zurück in den normalen Flow */
  .logo{
    position: static;
    transform: none;
  }

  .logo svg{
    width: clamp(12rem, 30vw, 16rem);
  }

  /* Burger nach rechts schieben */
  .nav-toggle{
    margin-left: auto;
  }

  .logo svg{
    width: clamp(12rem, 30vw, 16rem);
  }

  /* Burger nach rechts schieben */
  .nav-toggle{
    margin-left: auto;
  }
}
/* ============================= */
/* NAV + BURGER (Progressive Enhancement) */
/* Default (ohne JS): Nav ist sichtbar im Flow */
/* Mit JS (html.js): Mobile-Overlay + Burger */
/* ============================= */

/* Links-Base */
.nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.nav a {
  text-decoration: none;
  color: var(--color-text-muted);
  font-family: "IBM Plex Sans Condensed", sans-serif;
  font-weight: 400;
  font-size: 1.125rem; /* mobile default etwas kompakter */
  transition: color 0.2s ease;
}

/* Mobile/All: nur Farbe */
.nav a:hover {
  color: var(--color-primary);
}

/* Keyboard-Fokus immer sichtbar */
.nav a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 2px;
}

/* CTA in der Navigation: bleibt sichtbar, nutzt aber .btn Maße */
.nav__cta {
  /* nur Unterschiede zur .btn Base */
  background: transparent;
  border-color: var(--color-accent);
  color: var(--color-text-muted);
  font-weight: var(--fw-semibold);
}

/* Visually hidden helper */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Burger Button – wird ohne JS ausgeblendet */
.nav-toggle {
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
  position: relative;
  z-index: 2001; /* über Overlay */
}

/* Burger lines */
.burger {
  width: 28px;
  height: 3px;
  background: #5BC5F2; /* Burger blau */
  position: relative;
  display: block;
  border-radius: 2px;
}

.burger::before,
.burger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 28px;
  height: 3px;
  background: #5BC5F2;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger::before { top: -9px; }
.burger::after  { top:  9px; }

/* Burger -> X */
.nav-toggle.is-active .burger { background: transparent; }
.nav-toggle.is-active .burger::before { transform: rotate(45deg) translate(6px, 6px); }
.nav-toggle.is-active .burger::after  { transform: rotate(-45deg) translate(6px, -6px); }

/* -----------------------------
   Progressive Enhancement
----------------------------- */

/* Ohne JS: Burger weg, Nav normal sichtbar */
html:not(.js) .nav-toggle { display: none; }

.nav {
  position: static;
  transform: none;
  transition: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

/* Mit JS: Mobile-Overlay NUR auf Mobile */
@media (max-width: 991px) {
  html.js .nav {
    position: fixed;
    inset: 0 0 auto 0;
    background: var(--color-bg);
    transform: translateY(-110%);
    transition: transform 0.3s ease;
    padding: 5rem 2rem 2rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  }

  html.js .nav.is-open { transform: translateY(0); }

  html.js .nav__list {
    flex-direction: column;
    gap: 1.5rem;
  }
}
/* Desktop: Nav inline, Burger aus */
@media (min-width: 992px) {
  html.js .nav-toggle { display: none; }

  html.js .nav {
    position: static;
    inset: auto;
    transform: none;
    transition: none;
    padding: 0;
    box-shadow: none;
    background: transparent;
    z-index: auto;
  }

  html.js .nav__list {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 2rem;
  }

  html.js .nav a {
    font-size: 1.375rem; /* 22px */
  }
}

/* Hover nur auf echten Hover-Geräten (Desktop/Maus) */
@media (min-width: 992px) and (hover: hover) and (pointer: fine) {
  html.js .nav a:hover {
    text-decoration: underline;
    text-underline-offset: 0.2em;
    text-decoration-thickness: 2px;
  }
}
/* CTA in der Nav: nie unterstrichen (auch nicht bei Desktop-Hover-Regel) */
@media (min-width: 992px) and (hover: hover) and (pointer: fine) {
  html.js .nav a.nav__cta:hover {
    text-decoration: none;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html.js .nav { transition: none; }
}

/* =====================================
   Logo Fade-In
   ===================================== */

.logo {
  opacity: 0;
  animation: logo-fade 1500ms ease-out forwards;
}

@keyframes logo-fade {
  to {
    opacity: 1;
  }
}

/* Motion respektieren */
@media (prefers-reduced-motion: reduce) {
  .logo {
    animation: none;
    opacity: 1;
  }
}

/* =========================================
   SKIP LINK (Accessibility)
========================================= */

.skip-link {
  position: absolute;
  top: -100px; /* außerhalb des Bildschirms */
  left: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 3000;
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
}

.skip-link:focus {
  top: 0; /* sichtbar wenn fokussiert */
}
/* =========================================
   HERO
========================================= */

.hero {
  position: relative;
  min-height: clamp(36rem, 78vh, 52rem);
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
}

/* Background image + Overlay über eigenes Layer (sauber & wartbar) */
.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/Hero-Fussbodenheizung-Background-U-Pilot.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.02); /* minimal, damit keine Kanten bei GPU-Rounding */
  opacity: 0.2;        
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Kontrast-Overlay wie in deinem Design: oben dunkler, unten etwas heller */
 background: linear-gradient(
    180deg,
    rgba(48, 61, 70, 0.95) 0%,   /* #303D46 */
    rgba(0, 139, 210, 0.90) 100% /* #008BD2 */
  );

  pointer-events: none;
}

/* Content Layer */
.hero__inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(2rem, 4vw, 4rem);
  display: grid;
  gap: 1.5rem;
}

/* Mobile: alles untereinander */
.hero__content {
  max-width: 58ch;
}

.hero__title {
  margin: 0 0 1rem;
  color: #fff;
  font-size: var(--fs-h1);
  line-height: var(--lh-snug);
  font-weight: var(--fw-semibold);
}

.hero__text {
  margin-bottom: 1.25rem;
}

.hero__lead {
  margin: 0 0 0.9rem;
  font-family: var(--font-condensed);
  font-size: var(--fs-lead);
  line-height: var(--lh-hero);
  color: rgba(255,255,255,0.92);
}
.hero__claim{
  margin: 1.3rem 0 1rem;
  font-family: var(--font-sans);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.25rem, 0.8vw + 1rem, 1.6rem);
  color: var(--color-accent);
  line-height: var(--lh-snug);
}
.hero__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}

/* Hero CTA: auf kleinen Screens nicht umbrechen */
.hero__actions .btn {
  white-space: nowrap;
}
/* Card */
.hero__card {
  background: rgba(91, 197, 242, 0.88); /* dein Blau-Look */
  color: #fff;
  border-radius: 1.25rem;
  padding: 1.5rem 1.5rem;
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
  backdrop-filter: blur(2px); /* progressive: wenn nicht unterstützt, egal */
}

.hero__card-title {
  margin: 0 0 1rem;
  font-size: clamp(1.25rem, 1vw + 1.1rem, 1.6rem);
  line-height: var(--lh-snug);
  font-weight: var(--fw-semibold);
  color: #fff;
}

.hero__list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.5rem;
  font-family: var(--font-condensed);
  font-size: var(--fs-body);
  color: rgba(255,255,255,0.96);
}


/* Desktop: 2 Spalten wie in deinem Screenshot */
@media (min-width: 992px) {
  .hero__inner {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
    gap: 2.5rem;
    padding-block: clamp(3rem, 5vw, 5rem);
  }

  .hero__actions {
    grid-template-columns: max-content max-content;
    justify-content: start;
  }

  .hero__card {
    margin-top: 0.25rem;
    padding: 2rem 2rem;
  }

  .hero__title {
    font-size: var(--fs-h2); /* Desktop wirkt bei dir sehr groß/kräftig */
    line-height: var(--lh-tight);
  }
}
/* =========================================
   ANKER-OFFSET (Sticky Header)
   sorgt dafür, dass Section-Headlines nicht unter dem Header verschwinden
========================================= */



/* Anker-Ziele: die Sections mit id */
section[id],
#top {
  scroll-margin-top: var(--scroll-offset);
}

/* Optional: Desktop hat oft etwas anderen Header */
@media (min-width: 992px){
  
}
/* =========================================
   GLOBAL: Smooth Scroll (optional)
   ========================================= */

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
/* =========================================
   LEISTUNGEN
========================================= */

.section--leistungen {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: 0; /* bündig zum Divider */
}

/* Top Layout: mobile stacked, desktop 2 columns */
.leistungen__top {
  display: grid;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

@media (min-width: 992px) {
  .leistungen__top {
    grid-template-columns: 1fr 1fr;
  }
}

.leistungen__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.leistungen__kicker-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(0, 159, 227, 0.12);
  color: var(--color-primary);
  font-weight: var(--fw-bold);
}

.leistungen__kicker-text {
  font-family: var(--font-sans);
  font-weight: var(--fw-semibold);
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 1.25rem;
}

.leistungen__title {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
}

/* Bild */
.leistungen__figure {
  margin: 0;
}

.leistungen__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.75rem;
  border: 1px solid var(--color-border);
}

/* Cards Grid */
.leistungen__cards {
  display: grid;
  gap: 1.5rem;
}

/* 2 columns ab Tablet/Small Desktop */
@media (min-width: 768px) {
  .leistungen__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 3 columns ab großem Desktop */
@media (min-width: 1200px) {
  .leistungen__cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Card */
.leistung-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 10px 25px rgba(48,61,70,0.06);
}

/* Stagger/Versatz wie in deinem Screenshot */

@media (prefers-reduced-motion: reduce) {
  .leistung-card:nth-child(2),
  .leistung-card:nth-child(4) {
    transform: none;
  }
}

.leistung-card__head {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0.75rem;
  align-items: start;
  margin-bottom: 0.75rem;
}

.leistung-card__icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: rgba(182, 225, 45, 0.25);
  color: var(--color-text);
  font-weight: var(--fw-bold);
}

.leistung-card__title {
  margin: 0;
  font-size: clamp(1.15rem, 0.5vw + 1.05rem, 1.35rem);
  color: var(--color-primary);
  line-height: 1.2;
}

.leistung-card__claim {
  margin: 0.25rem 0 1rem;
}

.leistung-card__bullets {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.4rem;
}

.leistung-card__text {
  margin: 0 0 1rem;
}

.leistung-card__meta {
   margin-bottom: 2rem;
}

/* CTA in Card: nutzt deine .btn Styles */
.leistung-card__cta {
  width: 100%;
}

/* =========================================
   LEISTUNGEN – FULL WIDTH BACKGROUND
========================================= */

.leistungen__bg {
  width: 100%;
  padding-block: clamp(3rem, 6vw, 5rem);

  background-image: url("../images/Hintergrund_Verlauf_UP.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* =========================================
   LEISTUNGEN – CARD STYLING (wie Screenshot)
========================================= */

.leistungen__cards {
  /* sorgt dafür, dass CTA nicht am Rand klebt */
  padding-block: clamp(1.5rem, 4vw, 2.5rem);
}

/* Card */
.leistung-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--color-border);
  border-radius: 1.5rem;
  padding: clamp(1.25rem, 2.5vw, 2rem);

  display: flex;
  flex-direction: column;
  align-items: center; /* zentriert wie Screenshot */
  text-align: center;

  box-shadow: 0 12px 30px rgba(48, 61, 70, 0.10);

  transition:
    transform var(--dur-medium) var(--ease-out),
    box-shadow var(--dur-medium) var(--ease-out);
}

/* Hover nur Desktop */
@media (hover: hover) and (pointer: fine) {
  .leistung-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 44px rgba(48, 61, 70, 0.14);
  }
}

@media (prefers-reduced-motion: reduce) {
  .leistung-card {
    transition: none;
  }
}

/* =========================================
   CARD HEAD – Logo oben zentriert
========================================= */

.leistung-card__head {
  display: flex;
  flex-direction: column;
  align-items: center; /* horizontal zentriert */
  text-align: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.leistung-card__mark {
  width: 52px;        /* etwas größer wirkt hochwertiger */
  height: auto;
  display: block;
}

.leistung-card__title {
  margin: 0;
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: clamp(1.5rem, 1vw + 1.2rem, 2rem);
  line-height: 1.15;
  color: var(--color-primary);
}

/* Claim */
.leistung-card__claim {
  margin: 0.25rem 0 0.75rem;
  color: var(--color-primary);
}

.leistung-card__claim em {
  font-style: italic;
}

/* Inhaltstext / Meta */
.leistung-card__text,
.leistung-card__audience,
.leistung-card__hint,
.leistung-card__meta {
  width: 100%;
  text-align: left; /* wie im Screenshot: Fließtext links */
  margin: 0;
  color: var(--color-text-muted);
}

/* etwas Luft zwischen den Blöcken */
.leistung-card__text { margin-top: 0.5rem; }
.leistung-card__audience { margin-top: 0.9rem; }
.leistung-card__hint { margin-top: 0.75rem; }
.leistung-card__meta { margin-top: 0.9rem; }

/* Labels (Für wen / Förderhinweis) stärker */
.leistung-card__audience strong,
.leistung-card__hint strong {
  color: var(--color-text);
  font-weight: 700;
}

/* Kosten */
.leistung-card__meta strong {
  font-weight: 700;
}

/* Bullets mit Pfeil */
.leistung-card__bullets {
  width: 100%;
  text-align: left;
  margin: 0.75rem 0 0.25rem;
  padding: 0;
  list-style: none;

  display: grid;
  gap: 0.45rem;
}

.leistung-card__bullets li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--color-text-muted);
}

.leistung-card__bullets li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-text-muted);
}

/* CTA unten mittig */
.leistung-card__cta {
  margin-top: auto;              /* drückt CTA nach unten */
  align-self: center;
  width: min(220px, 100%);
  justify-content: center;
}

/* falls dein .btn nicht schon block/zentriert ist */
.leistung-card__cta.btn {
  display: inline-flex;
}
/* =========================================
   LEISTUNG CARDS – kompaktere Typografie
========================================= */

.leistung-card {
  line-height: 1.45; /* global für die Card etwas enger */
}

/* Paragraphen innerhalb der Card */
.leistung-card p {
  margin-block: 0.6rem;
}

/* Bullets kompakter */
.leistung-card__bullets {
  margin-block: 0.6rem;
  gap: 0.35rem;
}

/* Claim etwas enger */
.leistung-card__claim {
  margin-top: 0.3rem;
  margin-bottom: 0.6rem;
}

/* Meta-Blöcke kompakter */
.leistung-card__audience,
.leistung-card__hint,
.leistung-card__meta {
  margin-top: 0.6rem;
}

/* Head etwas kompakter */
.leistung-card__head {
  gap: 0.75rem;
}
/* =========================================
   LEISTUNG CARD – Label Farben
========================================= */

/* "Für wen?" bekommt Akzentfarbe */
.leistung-card__audience strong {
  color: #9C1006; /* dein Rot */
  font-weight: 700;
}

/* Kosten wieder normal */
.leistung-card__meta strong {
  color: var(--color-text);
}
/* =========================================
   LEISTUNGEN (consolidated)
   - one source of truth for grid + cards
   - keeps "wie Screenshot" look
========================================= */

.section--leistungen{
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: 0; /* bündig zum Divider */
}

/* Top Layout: mobile stacked, desktop 2 columns */
.leistungen__top{
  display: grid;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

@media (min-width: 992px){
  .leistungen__top{
    grid-template-columns: 1fr 1fr;
  }
}

.leistungen__title{
  margin: 0 0 1rem;
  color: var(--color-text-muted);
}

/* Bild */
.leistungen__figure{ margin: 0; }

.leistungen__image{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.75rem;
  border: 1px solid var(--color-border);
}

/* Full-width background area for cards */
.leistungen__bg{
  width: 100%;
  padding-block: clamp(3rem, 6vw, 5rem);

  background-image: url("../images/Hintergrund_Verlauf_UP.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Cards Grid */
.leistungen__cards{
  display: grid;
  gap: 1.5rem;
  padding-block: clamp(1.5rem, 4vw, 2.5rem);
}

/* 2 columns ab Tablet */
@media (min-width: 768px){
  .leistungen__cards{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 3 columns ab großem Desktop */
@media (min-width: 1200px){
  .leistungen__cards{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Card – "wie Screenshot" */
.leistung-card{
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--color-border);
  border-radius: 1.5rem;
  padding: clamp(1.25rem, 2.5vw, 2rem);

  display: flex;
  flex-direction: column;

  box-shadow: 0 12px 30px rgba(48, 61, 70, 0.10);

  transition:
    transform var(--dur-medium) var(--ease-out),
    box-shadow var(--dur-medium) var(--ease-out);
  line-height: 1.45; /* kompakt */
}
/* =========================================
   CARD MICROINTERACTIONS (Premium, subtil)
   - Lift + Shadow + Border Tint
   - Subtle Shine
   - CTA Arrow Slide
   - nur Hover-Geräte, Mobile bleibt ruhig
   - reduced-motion respektiert
========================================= */

/* Base: konsistente Transitions (Tokens) */
.leistung-card{
  position: relative;  /* nötig für ::before */
  overflow: hidden;    /* Shine bleibt innerhalb der Card */

  transition:
    transform var(--dur-medium) var(--ease-out),
    box-shadow var(--dur-medium) var(--ease-out),
    border-color var(--dur-medium) var(--ease-out);
  will-change: transform;
}

/* Shine-Layer (sehr subtil) */
.leistung-card::before{
  content: "";
  position: absolute;
  inset: -40% -60%;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0) 40%,
    rgba(255,255,255,0.22) 50%,
    rgba(255,255,255,0) 60%
  );
  transform: translateX(-35%) rotate(8deg);
  opacity: 0;

  transition:
    opacity var(--dur-medium) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);

  pointer-events: none;
}

/* Hover: Lift + Shadow + Border Tint + Shine-Run */
@media (hover: hover) and (pointer: fine){
  .leistung-card:hover{
    transform: translateY(-8px);
    box-shadow: 0 22px 52px rgba(48, 61, 70, 0.18);
    border-color: rgba(0, 159, 227, 0.35); /* leichtes Primary-Tint */
  }

  .leistung-card:hover::before{
    opacity: 1;
    transform: translateX(35%) rotate(8deg);
  }
}

/* CTA Arrow Slide (auf Card Hover) */
.leistung-card__cta{
  position: relative;
}

.leistung-card__cta::after{
  content: "→";
  display: inline-block;
  margin-left: 0.5rem;
  transform: translateX(0);
  transition: transform var(--dur-medium) var(--ease-out);
}

@media (hover: hover) and (pointer: fine){
  .leistung-card:hover .leistung-card__cta::after{
    transform: translateX(4px);
  }
}

/* Reduced motion: keine Bewegung/Animation */
@media (prefers-reduced-motion: reduce){
  .leistung-card{
    transition: none !important;
    transform: none !important;
  }

  .leistung-card::before{
    transition: none !important;
    opacity: 0 !important; /* Shine aus */
    transform: none !important;
  }

  .leistung-card__cta::after{
    transition: none !important;
    transform: none !important;
  }
}

/* Hover nur Desktop */
@media (hover: hover) and (pointer: fine){
  .leistung-card:hover{
    transform: translateY(-6px);
    box-shadow: 0 18px 44px rgba(48, 61, 70, 0.14);
  }
}

@media (prefers-reduced-motion: reduce){
  .leistung-card{ transition: none; }
}

/* Card Head – Logo oben zentriert, Title darunter */
.leistung-card__head{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.leistung-card__mark{
  width: 52px;
  height: auto;
  display: block;
}

.leistung-card__title{
  margin: 0;
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: clamp(1.5rem, 1vw + 1.2rem, 2rem);
  line-height: 1.15;
  color: var(--color-primary);
}

/* Claim */
.leistung-card__claim{
  margin: 0.3rem 0 0.6rem;
  color: var(--color-primary);
}

.leistung-card__claim em{ font-style: italic; }

/* Content blocks – linksbündig wie Screenshot */
.leistung-card__text,
.leistung-card__audience,
.leistung-card__hint,
.leistung-card__meta{
  margin: 0;
  color: var(--color-text-muted);
}

.leistung-card p{ margin-block: 0.6rem; }

/* Bullets als Pfeilliste */
.leistung-card__bullets{
  margin: 0.6rem 0;
  padding: 0;
  list-style: none;

  display: grid;
  gap: 0.35rem;
}

.leistung-card__bullets li{
  position: relative;
  padding-left: 1.4rem;
  color: var(--color-text-muted);
}

.leistung-card__bullets li::before{
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-text-muted);
}

/* Labels stärker */
.leistung-card__hint strong{
  color: var(--color-text);
  font-weight: 700;
}

/* "Für wen?" in Rot (wie dein Design) */
.leistung-card__audience strong{
  color: #9C1006;
  font-weight: 700;
}

/* Kosten wieder neutral */
.leistung-card__meta strong{
  color: var(--color-text);
  font-weight: 700;
}

/* CTA unten */
.leistung-card__cta{
  margin-top: 2rem;
  align-self: center;
  width: min(220px, 100%);
  justify-content: center;
}


/* ========================================
   IMAGE DIVIDER – Fullbleed + responsive height
======================================== */

.section--image-divider {
  padding: 0;
  margin: 0;
  width: 100vw;
  margin-inline: calc(50% - 50vw);
}

.image-divider {
  margin: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  background: #000;
}

.image-divider img {
  display: block;
  width: 100%;
  height: auto;          /* Basis */
  object-fit: cover;
  object-position: center;
  transform: none;       /* Zoom erstmal aus, reduziert Crop + Debug einfacher */
}

/* Mobile (deins ist gut – Höhe moderat) */
@media (max-width: 991px) {
  .image-divider img {
    height: clamp(240px, 32vh, 420px);
    object-position: center 40%;
  }
}

/* Desktop: hier kommt der "kein Streifen mehr"-Teil */
@media (min-width: 992px) {
  .image-divider img {
    min-height: 720px;                 /* <- verhindert Streifen */
    height: clamp(520px, 55vh, 980px); /* <- sichtbar groß */
    object-position: center 45%;
  }
}
/* =========================================
   VORTEILE
========================================= */

.section--vorteile {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.vorteile__grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}

@media (min-width: 992px) {
  .vorteile__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2rem, 4vw, 3rem);
  }
}

.vorteile__headline-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.vorteile__list {
  margin-top: 1.25rem;
  padding-left: 1.2rem;
  display: grid;
  gap: 1rem;
}

.vorteile__media {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem); /* mehr Luft */
}

.vorteile__media figure {
  margin: 0;
}

.vorteile__media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 1rem;
  border: 1px solid var(--color-border);
}
/* =========================================
   ÜBER (Section 3)
========================================= */

.section--ueber {
  padding-block: clamp(3rem, 6vw, 5rem);
}

/* Quote Panel */
.ueber-quote {
  margin: 1.25rem 0 0;
  border-radius: 1.5rem;
  overflow: hidden;
  display: grid;
  background: rgba(0, 159, 227, 0.88); /* blau */
  color: #fff;
}
/* Quote Typo & Spacing (robust) */
.ueber-quote__text {
  position: relative;
  margin: 0;

  /* Panel-Padding (entscheidend!) */
  padding: clamp(1.25rem, 3vw, 2rem);

  /* Platz links für das Zeichen */
  padding-left: calc(clamp(1.25rem, 3vw, 2rem) + 1.75rem);

  font-style: italic;
  line-height: var(--lh-quote); /* tokenisiert */
  max-width: 60ch; /* ruhige Lesebreite */
}

/* Mark sitzt im Panel, nicht am Rand */
.ueber-quote__mark {
  position: absolute;
  left: clamp(1.25rem, 3vw, 2rem);
  top: clamp(1.25rem, 3vw, 2rem);

  font-size: 2rem;
  line-height: 1;
  font-weight: 700;
}

/* Media stack on mobile */
.ueber-quote__media {
  display: grid;
}

.ueber-quote__image,
.ueber-quote__person {
  width: 100%;
  height: auto;
  display: block;
}

/* Desktop: 2 columns in quote panel */
@media (min-width: 992px) {
  .ueber-quote {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }

  .ueber-quote__image,
  .ueber-quote__person {
    height: 100%;
    object-fit: cover;
  }
}

/* Bottom grid */
.ueber-grid {
  display: grid;
  
  grid-template-columns: 1fr; /* Mobile: stabil, volle Breite */
gap: clamp(1.25rem, 3vw, 2rem);
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

@media (min-width: 992px) {
  .ueber-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

/* Red info box */
.ueber-box {
  border-radius: 1.5rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--color-border);
}

.ueber-box--red {
  background: #9C1006;
  color: #fff;
  border-color: transparent;
}

.ueber-box__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-sans);
  font-weight: var(--fw-semibold);
  font-size: clamp(1.125rem, 0.5vw + 1.05rem, 1.375rem); /* 18→22px */
  line-height: var(--lh-snug);
}

.ueber-box__body p {
  margin: 0 0 0.9rem;
}

.ueber-box__body p:last-child {
  margin-bottom: 0;
}

/* Vita */
.ueber-vita__name {
  margin: 0 0 0.75rem;
  font-family: var(--font-sans);
  font-weight: var(--fw-semibold);
  color: var(--color-text-muted);
  font-size: clamp(1.125rem, 0.5vw + 1.05rem, 1.375rem); /* 18→22px */
}

.ueber-vita__list {
  margin: 0 0 1.25rem;
  padding-left: 1.1rem;
  color: var(--color-text-muted);
  display: grid;
  gap: 0.6rem;
}

.ueber-eee {
  margin: 0;
}

.ueber-eee img {
  width: 100%;
  height: auto;
  display: block;
}
/* =========================================
   ÜBER – Einzugsgebiet Layout
========================================= */

.ueber-gebiet__grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: clamp(1.5rem, 3vw, 2.25rem);
  border-top: 1px solid var(--color-border);
}
/* Mobile First – Pin sauber zentriert */
.ueber-gebiet__icon {
  display: flex;
  justify-content: center;
}

.ueber-gebiet__icon img {
    width: clamp(60px, 18vw, 90px);
  height: auto;
}
/* Desktop */
@media (min-width: 992px) {
  .ueber-gebiet__grid {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .ueber-gebiet__content {
    grid-column: 1;
  }

  .ueber-gebiet__icon {
    grid-column: 2;
    justify-self: end; /* Pin optisch rechts ausrichten */
  }
}
/* =========================================
   WISSEN KOMPAKT – Shorts Grid
========================================= */

/* =========================================
   WISSEN KOMPAKT – Shorts Grid
========================================= */

.wissen__videos {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  justify-items: center;
}

/* Tablet: 2 Spalten */
@media (min-width: 768px) {
  .wissen__videos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Desktop: 4 Spalten, wenn genug Platz da ist */
@media (min-width: 1200px) {
  .wissen__videos {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
  }
}

.video-consent {
  position: relative;
  aspect-ratio: 9 / 16;
  width: min(320px, 100%);
  background: #000;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(48, 61, 70, 0.12);
}

/* Inner wrapper füllt die ganze Karte */
.video-consent__inner {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Lokales Thumbnail */
.video-consent__thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* iframe ersetzt später die komplette Box */
.video-consent iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Consent-Text als Bottom-Overlay */
.video-consent__text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0.875rem 0.875rem 4.75rem;

  font-family: var(--font-condensed);
  font-size: clamp(0.85rem, 0.3vw + 0.8rem, 0.95rem);
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);

  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.62) 56%,
    rgba(0, 0, 0, 0) 100%
  );
}

.video-consent__text a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.video-consent__text a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* Button unten über dem Overlay */
.video-consent__btn {
  position: absolute;
  left: 0.875rem;
  right: 0.875rem;
  bottom: 0.875rem;
  z-index: 2;
}

/* Optional: auf sehr schmalen Screens etwas kompakter */
@media (max-width: 360px) {
  .video-consent__text {
    padding: 0.75rem 0.75rem 4.5rem;
    font-size: 0.82rem;
  }

  .video-consent__btn {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
  }
}

.section--wissen {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(4.5rem, 8vw, 7rem);
}
/* =========================================
   KONTAKT
========================================= */

.section--kontakt {
  padding: 0; /* Hintergrund-Block steuert Padding */
}

.kontakt {
  background: var(--color-accent);
  width: 100%;
  padding-block: clamp(3rem, 6vw, 5rem);
}

.kontakt__intro {
  max-width: 62ch;
  color: rgba(48, 61, 70, 0.85);
  margin-bottom: 1.25rem;
}
.kontakt__claim{
  margin: 0 0 1rem;
  font-family: var(--font-sans);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.2rem, 0.6vw + 1rem, 1.45rem);
  line-height: var(--lh-snug);
  color: var(--color-text);
}

/* Telefonnummer wie im Mock groß */
.kontakt__tel {
  margin: 0 0 1.5rem;
  font-family: var(--font-sans);
  font-weight: var(--fw-regular);
  font-size: clamp(1.4rem, 1vw + 1.2rem, 2rem);
  color: var(--color-text);
}

.kontakt__tel-label {
  margin-right: 0.4rem;
}

.kontakt__tel-link {
  text-decoration: none;
  color: inherit;
}

.kontakt__tel-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* Buttons rot wie im Mock */
.kontakt__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.kontakt__btn--red {
  background: #9C1006;
  color: #fff;
}

@media (hover: hover) and (pointer: fine) {
  .kontakt__btn--red:hover {
    opacity: 0.92;
  }
}

/* Media */
.kontakt__figure {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 1rem;
}

.kontakt__portrait {
  width: min(340px, 70vw);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 999px;
  border: 6px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 44px rgba(48, 61, 70, 0.18);
}

.kontakt__caption {
  text-align: center;
  color: rgba(48, 61, 70, 0.8);
}

/* =========================================
   KONTAKT – Dekoratives Hintergrund-Logo
========================================= */

.kontakt {
  position: relative;
  overflow: hidden; /* verhindert Überlauf */
}

/* helles Logo im Hintergrund */
.kontakt::before {
  content: "";
  position: absolute;
  inset: 0;

  background-image: url("../images/HG-Lo.svg");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 40%;

  opacity: 0.3
	  ;   /* sehr subtil */
  pointer-events: none;
  z-index: 0;
}

/* Content darüber legen */
.kontakt__inner {
  position: relative;
  z-index: 1;
}
/* =========================================
   KONTAKT – eigener Button Hover
========================================= */

@media (hover: hover) and (pointer: fine) {
  .kontakt .btn:hover {
    background-color: var(--btn-bg-hover-contact);
  }
}

/* =========================================
   FOOTER (consolidated)
   - one source of truth (no cascade chaos)
   - logo size identical to header
   - footer logo recolored to white (SVG has fixed fills)
========================================= */

/* Single source of truth */


.site-footer{
  background: #3f4a52; /* dunkles Blau-Grau */
  color: #fff;
  font-family: var(--font-condensed);
}

.footer__inner{
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

/* Footer Links */
@media (min-width: 992px){
  .footer__nav{
    grid-column: 1 / -1;
    width: 100%;
    justify-self: start;
  }

  .footer__links{
    display: flex !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    gap: 2rem;
    justify-content: flex-start;
    align-items: center;

    /* falls es trotzdem zu lang wird: nicht umbrechen, sondern horizontal scrollen */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .footer__links::-webkit-scrollbar{
    height: 8px;
  }
}

/* Brand block */
.footer__brand{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer__logo{
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;

  /* gewünscht: 20px nach links */
  margin-left: -20px;
}

/* Header + Footer identical scaling */
.footer__logo-svg{
  width: var(--logo-size);
  height: auto;
  display: block;
}

/* Footer: recolor the dark fills to white */
.site-footer .footer__logo-svg [fill="#303d46"],
.site-footer .footer__logo-svg [fill="#303D46"]{
  fill: #ffffff;
}

/* Optional: leicht soften */
.site-footer .footer__logo-svg{
  opacity: 0.95;
}

.footer__address{
  margin-top: 0;
  font-style: normal;
  color: rgba(255,255,255,0.88);
  max-width: 40ch;
}

.footer__address p{
  margin: 0 0 1rem;
}

.footer__address a{
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  text-underline-offset: 0.2em;
}

@media (hover: hover) and (pointer: fine){
  .footer__address a:hover{
    text-decoration: underline;
  }
}

.footer__address a:focus-visible{
  outline: 2px solid #fff;
  outline-offset: 4px;
}

/* Links */
.footer__links{
  list-style: none;
  margin: 0;
  padding: 0;

  display: grid;
  gap: 0.9rem;
  justify-items: start;
}

.footer__links a{
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-family: var(--font-condensed);
  font-size: 1.125rem;
}

@media (hover: hover) and (pointer: fine){
  .footer__links a:hover{
    text-decoration: underline;
    text-underline-offset: 0.25em;
    text-decoration-thickness: 2px;
  }
}

.footer__links a:focus-visible{
  outline: 2px solid #fff;
  outline-offset: 4px;
}

/* Mobile: centered layout */
@media (max-width: 991px){
  .footer__inner{
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .footer__brand{
    align-items: center;
  }

  .footer__logo{
    margin-left: 0; /* mobile: zentriert statt Versatz */
  }

  .footer__links{
    justify-items: center;
  }

  .footer__nav{
    margin-top: 0;
  }
}


/* Keep header logo aligned with the same token */
.logo svg{
  width: var(--logo-size);
}
/* =========================================
   TINY MOBILE TUNING (<= 360px)
========================================= */
@media (max-width: 360px){
  :root{
    --btn-pad-x: 1rem;      /* weniger breit */
    --btn-pad-y: 0.35rem;   /* etwas flacher */
  }

  .btn{
    font-size: 1rem;        /* stabil, nicht zu groß */
  }

  /* Card-CTA wirkt sonst schnell "zu massiv" */
  .leistung-card__cta{
    width: min(200px, 100%);
  }
}
/* Über-Box darf niemals breiter als der Viewport werden */
.ueber-box{
  max-width: 100%;
  margin-inline: auto;
  overflow-wrap: anywhere;
  word-break: normal;
}

@media (max-width: 340px){
  .ueber-box{
    padding-inline: 1rem; /* statt 20px */
  }
}
/* =========================================
   MOBILE TYPOGRAPHY TUNING
   - Fließtext etwas kompakter auf schmalen Screens
   - nur mobile: Desktop bleibt wie bisher
========================================= */

/* =========================================
   MOBILE TYPO (token-gesteuert)
   - kompakterer Fließtext auf schmalen Screens
   - Desktop bleibt unverändert
========================================= */
@media (max-width: 480px){
  :root{
    --lh-body: 1.5;
    --lh-hero: 1.5;
    --lh-quote: 1.55;

    --p-space: 0.85em;
    --list-gap: 0.45rem;
  }

  /* lange Wörter/URLs sauber umbrechen */
  p, li{ overflow-wrap: anywhere; }
}
/* =========================================
   SECTION HEAD – Desktop: Icon + Titel in einer Zeile
   Mobile bleibt vertikal (wie Cards)
========================================= */

/* Mobile/Default: vertikal (wie gewünscht) */
.section-head{
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
	  margin-bottom: var(--space-section-head);
}

/* Desktop: horizontal */
@media (min-width: 992px){

  .section-head{
    display: inline-flex;
    width: auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    gap: 0.9rem;
  }

  .section-head__icon{
    position: relative;
    top: -11px;   /* optische Feinkorrektur */
  }

}
/* =========================================
   KONTAKT – Layout wie Screenshot (Desktop + Mobile)
========================================= */

/* Grundlayout */
.kontakt__inner{
  display: grid;
  gap: clamp(1.5rem, 3vw, 3rem);
}

/* Desktop */
@media (min-width: 992px){
  .kontakt__inner{
    grid-template-columns: 1.15fr 0.85fr;
    grid-template-areas:
      "head  media"
      "content media";
    align-items: start; /* wichtig: nicht center, sonst „hängt“ links alles */
  }

  .kontakt__head{ grid-area: head; }
  .kontakt__content{ grid-area: content; }
  .kontakt__media{ grid-area: media; }

  /* links nicht zu breit (wirkt wie im Screenshot) */
  .kontakt__content{
    max-width: 46rem;
  }

  /* Tel/Buttons linksbündig */
  .kontakt__tel{ text-align: left; }
  .kontakt__actions{ justify-content: flex-start; }
}

/* Mobile */
@media (max-width: 991px){
  .kontakt__inner{
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "media"
      "content";
    justify-items: center;
    text-align: center;
  }

  .kontakt__head{ grid-area: head; }
  .kontakt__media{ grid-area: media; }
  .kontakt__content{ grid-area: content; width: 100%; }

  /* Bubble mittig, nicht zu breit */
  .kontakt__bubble{
    max-width: 34rem;
    margin-inline: auto;
  }

  /* Tel zentrieren (hattest du gewünscht) */
  .kontakt__tel{
    text-align: center;
  }

  /* Buttons zentriert */
  .kontakt__actions{
    justify-content: center;
  }

  /* Caption zentrieren */
  .kontakt__caption{
    text-align: center;
  }
}
/* =========================================
   MOBILE NAV (Overlay) – bullets entfernen + zentrieren + touch targets
========================================= */
@media (max-width: 991px){

  /* UL/LI Reset nur fürs Menü */
  .nav ul,
  .nav__list{
    list-style: none;
    padding: 0;
    margin: 0;
  }

  /* Menü-Inhalt zentrieren */
  .nav{
    text-align: center;
  }

  .nav a{
    display: inline-flex;        /* saubere Klickfläche */
    align-items: center;
    justify-content: center;

    min-height: 44px;            /* Touch-Target */
    padding: 0.75rem 1rem;       /* „finger-friendly“ */
    margin: 0.25rem 0;           /* Abstand zwischen Links */

    text-decoration: none;
  }

  /* Wenn du aktive/CTA Link Styles hast: nicht kaputt machen */
  .nav a.nav__cta{
    display: inline-flex;
  }
}
/* =========================================
   MOBILE CARD ACCORDION (flow-based)
   - Mobile: aufklappbar
   - Desktop: Inhalte offen, Toggle unsichtbar
========================================= */

@media (max-width: 991px) {
  .acc-card {
    padding-bottom: 0;
  }

  .leistung-card__claim {
    margin-bottom: 1.25rem;
  }

  .acc-toggle {
    position: static;
    transform: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: #fff;
    font-size: 1.4rem;
    cursor: pointer;
  }

  .acc-content {
    display: none;
    margin-top: 0;
    padding-top: 0.25rem;
  }

  .acc-card.is-open .acc-content {
    display: block;
  }

  .acc-card.is-open .acc-toggle span {
    display: inline-block;
    transform: rotate(45deg);
  }

  /* Mehr Luft vor dem CTA im geöffneten Mobile-Accordion */
  .acc-content .leistung-card__cta {
    margin-bottom: 1.25rem;
  }

  .acc-content .leistung-card__meta {
    margin-bottom: 2.25rem;
  }
}

@media (max-width: 360px) {
  .leistung-card {
    padding: 1.25rem;
  }

  .acc-toggle {
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
  }

  .acc-content .leistung-card__meta {
    margin-bottom: 1.5rem;
  }
}

@media (min-width: 992px) {
  .acc-toggle {
    display: none;
  }

  .acc-content {
    display: block !important;
  }

  /* Desktop: etwas mehr Abstand zwischen letztem Textblock und CTA */
  .leistung-card__meta {
    margin-bottom: 2rem;
  }
}
/* =========================================
   iSFP VIDEO – Querformat + kompakter Button
========================================= */

.section--video {
  padding-top: clamp(4.5rem, 9vw, 7rem);
  padding-bottom: clamp(5rem, 10vw, 8rem);
}

.container--narrow {
  max-width: 900px;
  margin-inline: auto;
}

/* Header: zentriert wie Cards */
.section--video .isfp-video__header {
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
  text-align: center;
}

.section--video .isfp-video__header .card__title {
  margin-bottom: 0.5rem;
  text-align: center;
}

.section--video .isfp-video__header .card__body {
  max-width: 60ch;
  margin-inline: auto;
  margin-bottom: 0;
  text-align: center;
}

/* Video Format */
.video-consent--wide {
  aspect-ratio: 16 / 9;
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
}

/* Button schmal & zentriert */
.video-consent--wide .video-consent__btn {
  left: 50%;
  right: auto;
  bottom: 1rem;

  width: auto;
  min-width: 180px;
  max-width: calc(100% - 2rem);

  transform: translateX(-50%);
}

/* Overlay Text */
.video-consent--wide .video-consent__text {
  padding: 1rem 1rem 4.25rem;
}

/* Mobile */
@media (max-width: 480px) {
  .section--video {
    padding-top: 2.75rem;
    padding-bottom: 3.25rem;
  }

  .section--video .isfp-video__header {
    margin-bottom: 1.25rem;
  }

  .video-consent--wide .video-consent__btn {
    min-width: 160px;
  }

  .video-consent--wide .video-consent__text {
    font-size: 0.82rem;
    padding: 0.875rem 0.875rem 4rem;
  }
}