/*
 * PhysioPraxis Hamburg – Stylesheet v2.1
 * Modernes, innovatives Design mit Animationen und Video-Sections
 */

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */

:root {
  /* Bordeaux-Palette. primary-dark = Hover/Aktiv, primary-light nur dekorativ. */
  --color-primary: #7F1734;
  --color-primary-dark: #5C0F24;
  --color-primary-light: #A63A54;
  --color-accent: #D9D2CC;
  --color-accent-light: #F2EEEB;

  /* Helle Sand-Flächen */
  --color-bg: #D9D2CC;
  --color-bg-alt: #f0efeb;
  --color-bg-dark: #CCC4BD;
  /* Dunkle Flächen (Footer, Marquee, Video-Fallback) – Träger für helle Schrift */
  --color-dark: #241A1D;

  --color-text: #1a1a1a;
  --color-text-light: #55504B;
  --color-text-muted: #635D57;
  --color-white: #ffffff;
  --color-border: #D6CFC8;

  /* Lasur für Icon-Flächen */
  --tint-primary: rgba(127, 23, 52, 0.08);

  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;
  --space-6xl: 10rem;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.16);

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);

  --header-height: 80px;
  --topbar-height: 40px;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

html {
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
}

body.nav-open,
body.modal-open {
  overflow: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition-base); }
a:hover { color: var(--color-primary-dark); }
ul { list-style: none; }

::selection { background: var(--color-primary); color: var(--color-white); text-shadow: none; }
::-moz-selection { background: var(--color-primary); color: var(--color-white); text-shadow: none; }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ==========================================================================
   Skip Link
   ========================================================================== */

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  z-index: 100000;
  font-weight: 600;
  transition: top var(--transition-base);
}
.skip-link:focus { top: var(--space-md); color: var(--color-white); }

/* ==========================================================================
   Header / Navigation
/* ==========================================================================
   Header / Navigation
   ========================================================================== */

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.header--scrolled {
  background: rgba(217, 210, 204, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--color-border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  transition: height 0.4s ease;
}
.header--scrolled .header__inner { height: 65px; }

/* ── Kontaktleiste über der Navigation ── */
.topbar {
  height: var(--topbar-height);
  overflow: hidden;
  background: var(--color-bg-dark);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: height 0.4s ease;
}
/* Beim Scrollen und im offenen Menü macht die Leiste Platz */
.header--scrolled .topbar,
body.nav-open .topbar { height: 0; border-bottom-color: transparent; }

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  height: var(--topbar-height);
  font-size: 0.82rem;
  color: var(--color-text);
}

.topbar__address {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar__contact {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-shrink: 0;
}
.topbar__contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--color-text);
  white-space: nowrap;
}
.topbar__contact a:hover { color: var(--color-primary); }
.topbar__contact svg { color: var(--color-primary); flex-shrink: 0; }

/* ── Logo ──
   Dreizeilige Wortmarke nach dem Schild an der Praxis.
   Buchstabenhöhen dort: 95 / 170 / 95 mm → die schmalen Zeilen laufen
   mit 0.559 der Hauptgröße, damit die Proportion exakt erhalten bleibt. */
.header__logo {
  text-decoration: none;
  z-index: 1001;
  position: relative;
}

.logo-mark {
  --logo-size: 1.25rem;   /* Schriftgröße der Zeile PHYSIOTHERAPIE */
  --logo-ratio: 0.559;    /* 95 mm / 170 mm */

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2em;
  font-family: var(--font-body);
  font-size: var(--logo-size);
  line-height: 1;
  text-transform: uppercase;
  color: var(--color-white);
  transition: color 0.4s ease;
}

.logo-mark__main {
  font-size: 1em;
  font-weight: 300;
  letter-spacing: 0.045em;
  margin-right: -0.045em;   /* Sperrung hinter dem letzten Buchstaben ausgleichen */
}

.logo-mark__top,
.logo-mark__bottom {
  font-size: calc(1em * var(--logo-ratio));
  font-weight: 400;
  letter-spacing: 0.2em;
  margin-right: -0.2em;
}

.header--scrolled .logo-mark { color: var(--color-primary); }
/* Logo immer weiß wenn Menü offen */
body.nav-open .logo-mark { color: var(--color-white); }

/* Größere Variante für den Footer */
.logo-mark--light {
  --logo-size: 1.4rem;
  color: var(--color-white);
}

/* ── Nav-Links (Desktop) ── */
.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav__link {
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  padding: var(--space-xs) 0;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.3s ease;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: currentColor;
  transition: width 0.3s ease;
}
.nav__link:hover { color: #ffffff; }
.nav__link:hover::after { width: 100%; }

/* Aktiver Abschnitt bzw. aktuelle Unterseite */
.nav__link--active { color: #ffffff; }
.nav__link--active::after { width: 100%; }

/* Scrolled → dunkle Links */
.header--scrolled .nav__link        { color: var(--color-text); }
.header--scrolled .nav__link:hover  { color: var(--color-primary); }
.header--scrolled .nav__link--active { color: var(--color-primary); }

/* ── CTA-Button ── */
.nav__link--cta {
  background: var(--color-primary);
  color: #ffffff !important;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover {
  background: var(--color-primary-dark);
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
/* CTA immer weiß + grüner Hintergrund – auch scrolled */
.header--scrolled .nav__link--cta {
  color: #ffffff !important;
  background: var(--color-primary) !important;
}

/* ── Hamburger ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px; height: 44px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}
.hamburger__line {
  display: block;
  width: 26px; height: 2px;
  margin: 0 auto;
  border-radius: 2px;
  background: #ffffff;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
  transform-origin: center;
}
.header--scrolled .hamburger__line      { background: var(--color-text); }
/* Wenn Menü offen ist, immer weiße Linien – egal ob gescrollt */
.hamburger.is-active .hamburger__line,
.header--scrolled .hamburger.is-active .hamburger__line { background: #ffffff; }
.hamburger.is-active .hamburger__line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.is-active .hamburger__line:nth-child(2) { opacity: 0; }
.hamburger.is-active .hamburger__line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Header-Hintergrund ausblenden, wenn das Menü geöffnet ist */
body.nav-open .header {
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.nav-open .header__inner { height: var(--header-height); }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 2.2rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-base);
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  border-radius: inherit;
}
.btn:hover::before { transform: scaleX(1); }

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}
.btn--primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(127, 23, 52, 0.28);
}

.btn--outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.4);
}
.btn--outline:hover {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
  transform: translateY(-2px);
}

.btn--outline-dark {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn--outline-dark:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn--accent {
  background: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-accent);
  font-weight: 700;
}
.btn--accent:hover {
  background: var(--color-accent-light);
  border-color: var(--color-accent-light);
  color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.btn--full { width: 100%; margin-top: var(--space-sm); }

/* ==========================================================================
   Animations & Reveals
   ========================================================================== */

/* Entrance animation (page load) */
.anim-fade-up {
  opacity: 0;
  transform: translateY(40px);
  animation: animFadeUp 0.8s ease forwards;
}
.anim-delay-1 { animation-delay: 0.2s; }
.anim-delay-2 { animation-delay: 0.4s; }
.anim-delay-3 { animation-delay: 0.6s; }

@keyframes animFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

.reveal--left {
  transform: translateX(-60px);
}
.reveal--right {
  transform: translateX(60px);
}
.reveal--scale {
  transform: scale(0.9);
}

/* Staggered delays for child elements */
.reveal:nth-child(1) { transition-delay: 0s; }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal:nth-child(6) { transition-delay: 0.4s; }

/* ==========================================================================
   HERO Section – Fullscreen Video Background
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-dark);
}

.hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(14, 14, 14, 0.55) 0%,
    rgba(14, 14, 14, 0.4) 40%,
    rgba(92, 15, 36, 0.55) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-5xl) 0 var(--space-4xl);
  max-width: 900px;
  margin: 0 auto;
}

.hero__tagline {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--color-accent);
  margin-bottom: var(--space-xl);
  position: relative;
}
.hero__tagline::before,
.hero__tagline::after {
  content: '';
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--color-accent);
  vertical-align: middle;
  margin: 0 1rem;
  opacity: 0.5;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.05;
  margin-bottom: var(--space-xl);
  letter-spacing: -0.03em;
}

.hero__title-line {
  display: block;
}

.hero__title-dynamic {
  display: block;
  position: relative;
  height: 1.15em;
  overflow: hidden;
}

.hero__rotating-word {
  position: absolute;
  left: 0;
  right: 0;
  font-style: italic;
  color: var(--color-accent);
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero__rotating-word.is-active {
  opacity: 1;
  transform: translateY(0);
}
.hero__rotating-word.is-leaving {
  opacity: 0;
  transform: translateY(-100%);
}

.hero__subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
  margin-bottom: var(--space-2xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

@keyframes scrollLine {
  0% { top: -100%; }
  50% { top: 100%; }
  100% { top: 100%; }
}

/* ==========================================================================
   Marquee Banner
   ========================================================================== */

/* Statische Leiste zwischen Hero und Inhalt, eine Stufe dunkler als der Seitengrund */
.marquee {
  background: var(--color-bg-dark);
  padding: var(--space-lg) 0;
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.marquee__track {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm) var(--space-lg);
  padding: 0 var(--space-lg);
}

.marquee__track span {
  font-family: var(--font-heading);
  font-size: clamp(0.9rem, 1.6vw, 1.15rem);
  color: var(--color-text);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.marquee__dot {
  color: var(--color-primary) !important;
  font-size: 0.5rem !important;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

/* ==========================================================================
   Sections – Common
   ========================================================================== */

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

.section__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  position: relative;
  padding-left: 2.5rem;
}
.section__label::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 1.5rem; height: 2px;
  background: var(--color-primary);
}

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-text);
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}
/* Hervorhebung in Überschriften: gleiche Schrift wie der Rest, nur in Bordeaux. */
.section__title em {
  font-style: normal;
  font-weight: inherit;
  color: var(--color-primary);
}

.section__subtitle {
  font-size: 1.05rem;
  color: var(--color-text-light);
  line-height: 1.7;
  max-width: 560px;
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}
.section__header .section__label::before { display: none; }
.section__header .section__label { padding-left: 0; }
.section__header .section__subtitle { margin: 0 auto; }

/* ==========================================================================
   ÜBER UNS
   ========================================================================== */

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

.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.about__image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: visible;
}
.about__image img {
  width: 100%;
  border-radius: var(--radius-xl);
  object-fit: cover;
  aspect-ratio: 4/3;
  position: relative;
  z-index: 1;
}
.about__image-accent {
  position: absolute;
  bottom: -16px; right: -16px;
  width: 100%; height: 100%;
  border: 2px solid var(--color-primary-light);
  border-radius: var(--radius-xl);
  opacity: 0.2;
  z-index: 0;
}

.about__text {
  font-size: 1.05rem;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.about__stats {
  display: flex;
  gap: var(--space-2xl);
  margin-top: var(--space-2xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--color-border);
}
.stat { text-align: center; }
.stat__number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-xs);
  transition: all 0.3s;
}
.stat__label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ==========================================================================
   VIDEO SHOWCASE – Immersive Fullscreen
   ========================================================================== */

.video-showcase__item {
  position: relative;
  min-height: 100vh;
  min-height: 80dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.video-showcase__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-showcase__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(14, 14, 14, 0.8) 0%,
    rgba(14, 14, 14, 0.3) 60%,
    transparent 100%
  );
  z-index: 1;
}
.video-showcase__content {
  position: relative;
  z-index: 2;
  padding: var(--space-3xl) var(--space-2xl);
  max-width: 600px;
}
.video-showcase__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}
.video-showcase__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 600;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}
.video-showcase__title em {
  font-style: italic;
  color: var(--color-accent);
}
.video-showcase__text {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  font-weight: 300;
}

/* ==========================================================================
   LEISTUNGEN
   ========================================================================== */

.section--services { background: var(--color-bg-alt); }

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.service-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.service-card__image {
  overflow: hidden;
  aspect-ratio: 16/10;
  flex-shrink: 0;
}
.service-card__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.service-card:hover .service-card__image img {
  transform: scale(1.08);
}

.service-card__content {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card__number {
  display: block;
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(127, 23, 52, 0.18);
  line-height: 1;
  margin-bottom: var(--space-sm);
  transition: color var(--transition-base);
}
.service-card:hover .service-card__number { color: var(--color-primary); }

.service-card__title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}
.service-card__text {
  font-size: 0.92rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ── Aufklappbarer Kartenteil ── */

.service-card__details {
  height: 0;
  overflow: hidden;
  /* overflow:hidden setzt min-height auf 0; ohne flex-shrink:0 würde die
     Karte den aufgeklappten Bereich im Flex-Container wieder plattdrücken. */
  flex-shrink: 0;
  transition: height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card__details-inner {
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-md);
}

.service-card__details p {
  font-size: 0.92rem;
  color: var(--color-text-light);
  line-height: 1.75;
  margin-bottom: var(--space-md);
}

.service-card__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.service-card__list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.88rem;
  color: var(--color-text-light);
  line-height: 1.6;
}
.service-card__list li::before {
  content: '';
  position: absolute;
  left: 0.15rem;
  top: 0.62em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}

.service-card__toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  align-self: flex-start;
  margin-top: auto;
  padding: var(--space-md) 0 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-primary);
  transition: color var(--transition-base);
}
.service-card__toggle:hover { color: var(--color-primary-dark); }
.service-card__toggle:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.service-card__toggle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--tint-primary);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background var(--transition-base);
}
.service-card__toggle:hover .service-card__toggle-icon { background: rgba(127, 23, 52, 0.16); }

.service-card.is-open .service-card__toggle-icon {
  transform: rotate(180deg);
  background: var(--color-primary);
  color: var(--color-white);
}

/* Aufgeklappte Karte soll nicht auch noch wandern */
.service-card.is-open:hover { transform: none; }

/* Text-only service card */
.service-card--text-only {
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
}
.service-card--text-only .service-card__number { color: rgba(255,255,255,0.15); }
.service-card--text-only:hover .service-card__number { color: rgba(255,255,255,0.3); }
.service-card--text-only .service-card__title { color: var(--color-white); }
.service-card--text-only .service-card__text { color: rgba(255,255,255,0.75); }
.service-card--text-only:hover { background: var(--color-primary-dark); }

/* ==========================================================================
   FAQ
   ========================================================================== */

.section--faq { background: var(--color-bg-alt); }

.faq__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3xl);
}

.faq__header { position: sticky; top: calc(var(--header-height) + 2rem); align-self: start; }

.faq__item {
  border-bottom: 1px solid var(--color-border);
}
.faq__item:first-child { border-top: 1px solid var(--color-border); }

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-xl) 0;
  background: none; border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  gap: var(--space-md);
  transition: color var(--transition-base);
}
.faq__question:hover { color: var(--color-primary); }

.faq__icon {
  color: var(--color-primary);
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--tint-primary);
}

.faq__item.is-open .faq__icon {
  transform: rotate(45deg);
  background: var(--color-primary);
  color: var(--color-white);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq__item.is-open .faq__answer { max-height: 420px; }

.faq__answer p {
  padding-bottom: var(--space-xl);
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.8;
}

/* ==========================================================================
   KONTAKT
   ========================================================================== */

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

.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3xl);
}

.contact__card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-lg);
}
.contact__detail {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md) 0;
}
.contact__detail:not(:last-child) { border-bottom: 1px solid var(--color-border); }

.contact__icon {
  flex-shrink: 0;
  color: var(--color-primary);
  margin-top: 4px;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tint-primary);
  border-radius: 50%;
}
.contact__detail strong { display: block; font-size: 0.88rem; color: var(--color-text); margin-bottom: 2px; }
.contact__detail p { font-size: 0.95rem; color: var(--color-text-light); line-height: 1.5; }
.contact__detail a { color: var(--color-primary); }
.contact__detail a:hover { text-decoration: underline; }

.contact__cta-group { display: flex; flex-direction: column; gap: 0; }

.contact__map iframe { width: 100%; border-radius: var(--radius-lg) !important; }

/* Street View Link-Box */
.streetview-link {
  display: block;
  margin-top: var(--space-md);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  transition: all var(--transition-base);
  border: 1px solid var(--color-border);
}
.streetview-link:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.streetview-link__inner {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl);
  background: var(--color-white);
  color: var(--color-text);
}
.streetview-link__inner svg:first-child {
  color: var(--color-primary);
  flex-shrink: 0;
  background: var(--tint-primary);
  padding: 6px;
  border-radius: 50%;
  width: 42px;
  height: 42px;
}
.streetview-link__inner > div {
  flex: 1;
}
.streetview-link__inner strong {
  display: block;
  font-size: 0.95rem;
  color: var(--color-text);
  margin-bottom: 2px;
}
.streetview-link__inner span {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}
.streetview-link__inner svg:last-child {
  color: var(--color-text-muted);
  flex-shrink: 0;
  transition: color var(--transition-base);
}
.streetview-link:hover .streetview-link__inner svg:last-child {
  color: var(--color-primary);
}

/* ── Merkmalsleiste unter der Karte ── */
.contact__facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--color-border);
}
.contact__fact {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.55;
}
.contact__fact svg {
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* ==========================================================================
   JOBS
   ========================================================================== */

.section--jobs { background: var(--color-bg-alt); }

.jobs__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.jobs__text {
  font-size: 1.05rem;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.jobs__points {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}
.jobs__points li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.7;
}
.jobs__points li::before {
  content: '';
  position: absolute;
  left: 0.2rem; top: 0.65em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
}

.jobs__card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
}
.jobs__card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}
.jobs__card p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}
.jobs__card .btn { width: 100%; }

/* ==========================================================================
   PREISE (Unterseite)
   ========================================================================== */

/* Kompakter Kopfbereich für Unterseiten – dunkel, damit die Nav lesbar bleibt */
.page-hero {
  position: relative;
  background: var(--color-dark);
  padding: calc(var(--header-height) + var(--topbar-height) + var(--space-2xl)) 0 var(--space-3xl);
}
.page-hero__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}
.page-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 600;
  color: var(--color-white);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}
.page-hero__text {
  font-size: 1.02rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.75;
  max-width: 620px;
}

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

.pricing__block { margin-bottom: var(--space-3xl); }
.pricing__block:last-child { margin-bottom: 0; }

.pricing__block-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}
.pricing__block-hint {
  font-size: 0.92rem;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  max-width: 620px;
}

.pricing__table {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.pricing__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: var(--space-lg) var(--space-xl);
}
.pricing__row:not(:last-child) { border-bottom: 1px solid var(--color-border); }

.pricing__row-main { flex: 1; }
.pricing__row-name {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
}
.pricing__row-meta {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}
.pricing__row-price {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
}

.pricing__note-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-3xl);
}
.pricing__note {
  background: var(--color-white);
  border-left: 3px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-xl);
  box-shadow: var(--shadow-sm);
}
.pricing__note h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}
.pricing__note p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

.pricing__cta {
  margin-top: var(--space-3xl);
  text-align: center;
}
.pricing__cta p {
  font-size: 1rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
}

@media (max-width: 479px) {
  .pricing__row { flex-direction: column; gap: var(--space-xs); padding: var(--space-md) var(--space-lg); }
  .pricing__row-price { font-size: 1.1rem; }
  .jobs__card { padding: var(--space-lg); }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.78);
}

.footer__top {
  padding: var(--space-5xl) 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer__cta {
  text-align: center;
}

.footer__cta-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 600;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: var(--space-2xl);
  letter-spacing: -0.02em;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  padding: var(--space-3xl) 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer__tagline {
  margin-top: var(--space-md);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 280px;
  color: rgba(255,255,255,0.62);
}

.footer__links h4,
.footer__contact h4 {
  color: var(--color-white);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-lg);
}
.footer__links ul { display: flex; flex-direction: column; gap: var(--space-sm); }
.footer__links a {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  transition: all var(--transition-base);
}
.footer__links a:hover { color: var(--color-white); transform: translateX(4px); display: inline-block; }

.footer__contact p { font-size: 0.88rem; margin-bottom: var(--space-sm); line-height: 1.6; color: rgba(255,255,255,0.65); }
.footer__contact a { color: rgba(255,255,255,0.65); }
.footer__contact a:hover { color: var(--color-white); }

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-xl) 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.58);
}
.footer__legal { display: flex; gap: var(--space-lg); }
.footer__legal a {
  color: rgba(255,255,255,0.58);
  transition: color var(--transition-base);
  cursor: pointer;
}
.footer__legal a:hover { color: var(--color-white); }

/* ==========================================================================
   MODAL – Impressum / Datenschutz
   ========================================================================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}
.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 14, 14, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

.modal__content {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  max-width: 700px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: translateY(30px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}
.modal.is-open .modal__content {
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  background: var(--color-bg-alt);
  border: none;
  border-radius: 50%;
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text);
  transition: all var(--transition-base);
}
.modal__close:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: rotate(90deg);
}

.modal__content h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2xl);
  padding-right: 3rem;
}
.modal__content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}
.modal__content h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-light);
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
}
.modal__content p {
  font-size: 0.92rem;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}
.modal__content a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* Scrollbar Styling for modal */
.modal__content::-webkit-scrollbar { width: 6px; }
.modal__content::-webkit-scrollbar-track { background: transparent; }
.modal__content::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 3px;
}

/* ==========================================================================
   Helpers
   ========================================================================== */

.hidden, [hidden] { display: none !important; }
.visually-hidden {
  border: 0; clip: rect(0,0,0,0); height: 1px; margin: -1px;
  overflow: hidden; padding: 0; position: absolute; white-space: nowrap; width: 1px;
}

/* ==========================================================================
   Responsive – Mobile First
   ========================================================================== */

/* --- Extra small (< 380px) – kleine Smartphones --- */
@media (max-width: 379px) {
  :root { --header-height: 60px; --topbar-height: 34px; }
  .container { padding: 0 var(--space-md); }
  .hero__tagline::before, .hero__tagline::after { width: 20px; margin: 0 0.5rem; }
  .hero__title { font-size: 2rem; }
  .hero__subtitle { font-size: 0.9rem; }
  .hero__actions { flex-direction: column; gap: var(--space-sm); }
  .hero__actions .btn { width: 100%; }
  .about__stats { flex-direction: column; gap: var(--space-lg); }
  .stat__number { font-size: 2rem; }
  .section { padding: var(--space-3xl) 0; }
  .section__title { font-size: 1.5rem; }
  .footer__cta-title { font-size: 1.6rem; }
  .footer__grid { gap: var(--space-xl); }
  .modal__content { padding: var(--space-xl); }
  .modal__content h2 { font-size: 1.4rem; }
  .faq__question { font-size: 0.92rem; padding: var(--space-lg) 0; }
}

/* --- Small smartphones (< 480px) --- */
@media (max-width: 479px) {
  .hero__scroll-indicator { display: none; }
  .marquee__track span { font-size: 0.85rem; }
  .video-showcase__item { min-height: 70vh; min-height: 70dvh; }
  .video-showcase__title { font-size: 1.6rem; }
  .video-showcase__text { font-size: 0.92rem; }
  .video-showcase__content { padding: var(--space-2xl) var(--space-lg); }
  .service-card__number { font-size: 2rem; }
  .service-card__content { padding: var(--space-lg); }
  .contact__card { padding: var(--space-lg); }
  .contact__map iframe { height: 250px !important; }
  .footer__top { padding: var(--space-3xl) 0; }
}

/* --- Small Tablets (≥ 480px) --- */
@media (min-width: 480px) {
  .hero__actions .btn { min-width: 200px; }
  .contact__facts { grid-template-columns: repeat(2, 1fr); }
}

/* --- Tablets (≥ 768px) --- */
@media (min-width: 768px) {
  /* Erst ab Tablet zwei Spalten – auf dem Handy stehen alle Karten untereinander */
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .contact__facts { grid-template-columns: repeat(4, 1fr); }
  .about__grid { grid-template-columns: 1fr 1.2fr; }
  .contact__grid { grid-template-columns: 1fr 1.2fr; }
  .jobs__grid { grid-template-columns: 1.3fr 1fr; }
  .pricing__note-grid { grid-template-columns: repeat(3, 1fr); }
  .faq__layout { grid-template-columns: 0.8fr 1.2fr; }
  .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
  .footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; }
  .video-showcase__content { padding: var(--space-4xl) var(--space-3xl); }
  .about__stats { gap: var(--space-2xl); }
}

/* --- Desktop (≥ 1024px) --- */
@media (min-width: 1024px) {
  .hamburger { display: none !important; }
  .nav {
    display: flex !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transition: none !important;
    z-index: auto !important;
  }
  .services__grid { grid-template-columns: repeat(3, 1fr); }
  .stat__number { font-size: 3rem; }
  .about__stats { gap: var(--space-3xl); }
}

/* --- Mobile Navigation (< 1024px) --- */
@media (max-width: 1023px) {

  .hamburger { display: flex; }

  /* Für die volle Adresse fehlt der Platz, Telefon und E-Mail reichen */
  .topbar__address { display: none; }
  .topbar__inner { justify-content: center; font-size: 0.78rem; }
  .topbar__contact { gap: var(--space-md); }

  /* Fullscreen Overlay */
  .nav {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    background: #0a0a0a;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    overflow: hidden;
  }

  /* Dekorativer Hintergrund-Kreis */
  .nav::before {
    content: '';
    position: absolute;
    right: -15vw;
    top: -15vw;
    width: 55vw;
    height: 55vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(127, 23, 52, 0.28) 0%, transparent 70%);
    pointer-events: none;
  }

  /* Dezente Akzentlinie links */
  .nav::after {
    content: '';
    position: absolute;
    left: 0; top: 15%; bottom: 15%;
    width: 3px;
    background: linear-gradient(to bottom, transparent, var(--color-primary), var(--color-accent), transparent);
    border-radius: 0 2px 2px 0;
    opacity: 0;
    transition: opacity 0.5s ease 0.2s;
  }

  .nav.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .nav.is-open::after {
    opacity: 1;
  }

  /* Hamburger über dem Overlay */
  .hamburger {
    z-index: 1002;
  }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    text-align: left;
    padding: 0 2rem 0 2.5rem;
    width: 100%;
    position: relative;
    z-index: 1;
  }

  /* Jedes List-Item als Block mit Trennlinie */
  .nav__list > li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    opacity: 0;
    transform: translateX(-28px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }

  .nav__list > li:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }

  /* Gestaffelte Einblend-Animation */
  .nav.is-open .nav__list > li:nth-child(1) { opacity: 1; transform: translateX(0); transition-delay: 0.08s; }
  .nav.is-open .nav__list > li:nth-child(2) { opacity: 1; transform: translateX(0); transition-delay: 0.14s; }
  .nav.is-open .nav__list > li:nth-child(3) { opacity: 1; transform: translateX(0); transition-delay: 0.20s; }
  .nav.is-open .nav__list > li:nth-child(4) { opacity: 1; transform: translateX(0); transition-delay: 0.26s; }
  .nav.is-open .nav__list > li:nth-child(5) { opacity: 1; transform: translateX(0); transition-delay: 0.32s; }
  .nav.is-open .nav__list > li:nth-child(6) { opacity: 1; transform: translateX(0); transition-delay: 0.38s; }
  .nav.is-open .nav__list > li:nth-child(7) { opacity: 1; transform: translateX(0); transition-delay: 0.44s; }

  /* Nav-Links NUR innerhalb des Overlays */
  .nav .nav__link,
  .header--scrolled .nav .nav__link {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.55rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    padding: 1.1rem 0;
    letter-spacing: -0.01em;
    transition: color 0.25s ease, padding-left 0.25s ease;
    position: relative;
  }

  /* Nummerierung als Counter */
  .nav__list { counter-reset: nav-counter; }
  .nav__list > li:not(:last-child) { counter-increment: nav-counter; }
  .nav .nav__link:not(.nav__link--cta)::before {
    content: counter(nav-counter, decimal-leading-zero);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.05em;
    opacity: 0.8;
    min-width: 1.8rem;
    margin-top: 2px;
  }

  .nav .nav__link:hover,
  .header--scrolled .nav .nav__link:hover {
    color: #ffffff;
    padding-left: 0.5rem;
  }
  .nav .nav__link::after { display: none; }

  /* CTA-Button im Menü – alle States explizit überschreiben */
  .nav .nav__link--cta,
  .header--scrolled .nav .nav__link--cta {
    display: inline-flex;
    align-self: flex-start;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.75rem 1.8rem;
    margin: 1.6rem 0 0.4rem;
    color: #ffffff !important;
    background: var(--color-primary) !important;
    border-radius: var(--radius-full);
    letter-spacing: 0.02em;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  }
  .nav .nav__link--cta:hover,
  .header--scrolled .nav .nav__link--cta:hover {
    background: var(--color-primary-dark) !important;
    color: #ffffff !important;
    padding-left: 1.8rem;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
  }
  .nav .nav__link--cta::before,
  .nav .nav__link--cta::after { display: none; }

  /* CTA-Item hat kein Trennstrich-Styling */
  .nav__list > li:last-child {
    border-bottom: none;
  }

  .faq__header { position: static; }
}

/* --- Kontaktleiste auf schmalen Geräten --- */
@media (max-width: 419px) {
  .topbar__inner { font-size: 0.72rem; }
  .topbar__contact { gap: var(--space-sm); }
}
/* Unter 360px reicht der Platz nur noch für die Rufnummer */
@media (max-width: 359px) {
  .topbar__contact a[href^="mailto"] { display: none; }
}

/* --- Large Desktop (≥ 1280px) --- */
@media (min-width: 1280px) {
  .container { max-width: 1400px; padding: 0 var(--space-2xl); }
  .section { padding: var(--space-6xl) 0; }
}

/* ==========================================================================
   Touch Device Optimizations
   ========================================================================== */

@media (hover: none) {
  .btn:hover { transform: none; }
  .btn--primary:hover { box-shadow: none; }
  .service-card:hover { transform: none; box-shadow: var(--shadow-sm); }
  .service-card:hover .service-card__image img { transform: none; }
  .nav__link::after { display: none; }
}

/* ==========================================================================
   Safe Area Padding (Notch-Geräte)
   ========================================================================== */

@supports (padding: env(safe-area-inset-bottom)) {
  .footer__bottom { padding-bottom: calc(var(--space-xl) + env(safe-area-inset-bottom)); }
  .hero__scroll-indicator { bottom: calc(2.5rem + env(safe-area-inset-bottom)); }
}

/* ==========================================================================
   Print
   ========================================================================== */

@media print {
  *, *::before, *::after { background: #fff !important; color: #000 !important; box-shadow: none !important; }
  .header, .hamburger, .hero__scroll-indicator, .hero__overlay, .hero__video-wrap,
  .marquee, .video-showcase, .modal { display: none !important; }
  .hero { min-height: auto; padding: 2rem 0; }
  .section { padding: 2rem 0; page-break-inside: avoid; }
}

/* ==========================================================================
   Online-Terminbuchung (oddc bookings)
   ========================================================================== */

/* Die Buchungs-Trigger sind <button>-Elemente und brauchen deshalb die
   Typografie, die Links über die Vererbung ohnehin mitbringen. */
.booking-trigger {
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-appearance: none;
  appearance: none;
}
.nav__link--cta.booking-trigger {
  border: none;
  cursor: pointer;
}

.btn__icon {
  flex-shrink: 0;
  margin-right: 0.6rem;
}

/* Wartezustand, solange das Buchungsskript noch lädt */
.booking-trigger.is-loading {
  pointer-events: none;
  opacity: 0.75;
}
.btn.booking-trigger.is-loading::after {
  content: '';
  width: 1rem;
  height: 1rem;
  margin-left: 0.6rem;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: booking-spin 0.7s linear infinite;
}

@keyframes booking-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .btn.booking-trigger.is-loading::after { animation-duration: 2s; }
}

/* Preisseite: Anruf- und Buchungs-Button nebeneinander. Ohne vertical-align
   sitzt der Button mit Icon auf einer anderen Baseline als der ohne. */
.pricing__cta .btn {
  vertical-align: middle;
  margin: 0 var(--space-xs) var(--space-sm);
}

/* Das Buchungsfenster des Anbieters liegt im Shadow DOM und lässt sich nur
   über die vererbten Custom Properties anpassen. Auf dem Handy füllt es den
   Bildschirm, dort sind runde Ecken fehl am Platz. */
oddc-bf-modal { --border-radius: 0px !important; }

@media (min-width: 960px) {
  oddc-bf-modal { --border-radius: var(--radius-lg) !important; }
}

/* Fällt der Anbieter auf seinen eigenen Floating-Button zurück, soll dieser
   das Layout nicht überlagern – geöffnet wird ausschließlich über die
   Buttons der Seite. */
oddc-bf-main-button,
oddc-bf-call-to-action { display: none !important; }

