/* ===================================
   Perso Pro
   Based on design.json specifications
   =================================== */

/* CSS Variables - Color Palette */
:root {
  /* Primary Colors */
  --color-navy: #1E3A5F;
  --color-dark-navy: #152B42;
  --color-light-navy: #2A4A6B;
  
  /* Secondary Colors (Turquoise theme) */
  --color-orange: #14B8A6; /* primary turquoise */
  --color-light-orange: #2DD4BF; /* light turquoise */
  --color-dark-orange: #0D9488; /* dark turquoise */
  
  /* Neutral Colors */
  --color-white: #FFFFFF;
  --color-light-gray: #F8F9FA;
  --color-medium-gray: #E9ECEF;
  --color-dark-gray: #6C757D;
  --color-charcoal: #343A40;
  
  /* Accent Colors */
  --color-blue: #007BFF;
  --color-green: #28A745;
  --color-red: #DC3545;
  
  /* Typography */
  --font-primary: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-secondary: Georgia, 'Times New Roman', serif;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  --spacing-4xl: 5rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-full: 50%;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 12px 40px rgba(0,0,0,0.15);
  
  /* Transitions */
  --transition-default: all 0.3s ease;
  --transition-slow: all 0.6s ease;
  --transition-fast: all 0.15s ease;
  
  /* Breakpoints */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
}

/* Local Royalty Free font */
@font-face {
  font-family: 'Royalty Free';
  src: url('../royalty_free/Royalty%20Free.woff2') format('woff2'),
       url('../royalty_free/Royalty%20Free.woff') format('woff'),
       url('../royalty_free/Royalty%20Free.ttf') format('truetype'),
       url('../royalty_free/Royalty%20Free.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Optional: Photograph Signature (falls Datei vorhanden) */
@font-face {
  font-family: 'Photograph Signature';
  src: url('../royalty_free/Photograph%20Signature.woff2') format('woff2'),
       url('../royalty_free/Photograph%20Signature.woff') format('woff'),
       url('../royalty_free/Photograph%20Signature.ttf') format('truetype'),
       url('../royalty_free/Photograph%20Signature.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ===================================
   Reset and Base Styles
   =================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-charcoal);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* Globale Absicherung gegen horizontales Scrollen auf Mobilgeräten */
html, body { max-width: 100%; overflow-x: hidden; }

/* Responsive Media Defaults */
img, video { max-width: 100%; height: auto; }

/* Skip Link (A11y) */
.skip-link {
  position: absolute;
  left: 8px;
  top: -1000px;
  background: var(--color-white);
  color: var(--color-navy);
  padding: 10px 14px;
  border: 2px solid var(--color-orange);
  border-radius: 8px;
  z-index: 2000;
  box-shadow: var(--shadow-md);
}
.skip-link:focus {
  top: 8px;
  outline: none;
}

/* ===================================
   Typography
   =================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  color: var(--color-navy);
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  line-height: 1.3;
}

h3 {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.4;
}

p {
  margin-bottom: var(--spacing-md);
}

small {
  font-size: 0.875rem;
  color: var(--color-dark-gray);
  line-height: 1.5;
}

a {
  color: var(--color-orange);
  text-decoration: none;
  transition: var(--transition-default);
}

a:hover {
  color: var(--color-dark-orange);
}

/* ===================================
   Container
   =================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
/* Logo bündig an linken Rand des Viewports: gleicht Container-Padding aus */
.logo { margin-left: -1.5rem; }

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

.header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-medium-gray);
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  will-change: background-color, border-color, box-shadow, color;
  transition: background-color 300ms ease, border-color 300ms ease, box-shadow 300ms ease, color 300ms ease;
}
/* Logo bündig links: Container-Padding links im Header entfernen */
.header > .container { padding-left: 0; max-width: 100%; }
/* Startseite: Menügruppe minimal nach links verschieben über mehr rechten Innenabstand */
.home .header > .container { padding-right: 2rem; }
/* Erstes Element unter einem nicht-transparenten Header nach unten padden,
   damit nichts überlappt (Index mit transparentem Header ausgenommen) */
.header:not(.header-transparent) + * { padding-top: 72px; }

/* Sichere Header-Höhe auf sehr kleinen Viewports */
@media (max-width: 360px) {
  .header { padding: 0.75rem 0; }
  .logo-img { height: 48px; }
}

/* Transparent header on top (initial) */
.header-transparent {
  background-color: rgba(255,255,255,0); /* nur background-color animieren */
  border-bottom-color: transparent; /* Breite bleibt 1px → keine Layout-Verschiebung */
  box-shadow: none;
}
.header-transparent .nav-link,
.header-transparent .nav-link:hover,
.header-transparent .nav-link.active,
.header-transparent .logo h1 { color: var(--color-white) !important; }
/* Logo: "Pro" im transparenten Header ebenfalls weiß darstellen */
.header-transparent .logo h1 .logo-pro { color: inherit !important; }
.header-transparent .nav-toggle span { background: var(--color-white); }
/* Im transparenten Header: helles Logo zeigen */
.header-transparent .logo .logo-img-light { display: block; }
.header-transparent .logo .logo-img-dark { display: none; }
/* Konsistente vertikale Ausrichtung: gleiche Höhe & Aligning in beiden States */
.header-transparent .logo { align-items: center; }

/* Solid header on scroll */
.header-solid {
  background: var(--color-white) !important; /* überschreibt evtl. inline background */
  background-color: var(--color-white) !important;
  background-image: none !important; /* Inline-Gradient zuverlässig entfernen */
  border-bottom: 1px solid var(--color-medium-gray) !important;
  box-shadow: var(--shadow-sm) !important;
}
.header-solid .nav-link,
.header-solid .logo h1 { color: var(--color-navy) !important; }
/* Nur im weißen Header: "Pro" in Türkis */
.header-solid .logo h1 .logo-pro { color: inherit !important; }
.header-solid .nav-toggle span { background: var(--color-navy) !important; }
/* Im weißen Header: dunkles Logo zeigen */
.header-solid .logo .logo-img-light { display: none; }
.header-solid .logo .logo-img-dark { display: block; }
/* About-Seite: Logo bleibt hell auch im weißen Header */
.about-scope .header-solid .logo .logo-img-light { display: none; }
.about-scope .header-solid .logo .logo-img-dark { display: block; }
/* About-Seite: Logo-Größe wie Startseite */
.about-scope .logo-img { height: 200px; }
/* Leistungen-Seite: Logo-Größe wie Startseite */
.leistungen-scope .logo-img { height: 200px; }
/* Kontakt-Seite: Logo-Größe wie Startseite */
.contact-scope .logo-img { height: 200px; }
/* Leistungen-Seite: Logo auch im transparenten Header sichtbar (dunkle Variante) */
.leistungen-scope .header-transparent .logo .logo-img-dark { display: block; }
.header-solid .logo { align-items: center; transform: none; }

/* Hero leicht höher positionieren (dezenter) */
.hero-section { margin-top: -12px; }

.navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/* Logo ganz links innerhalb des Header-Containers */
.navigation { padding-left: 0; }
.navigation .nav-brand { margin-left: 0; }

.logo {
  display: flex;
  align-items: center;
  line-height: 0; /* vermeidet baseline-bedingte Hfhenabweichungen */
  max-height: 60px;
  text-decoration: none;
}
/* Logo bis an den linken Seitenrand schieben (alle Seiten) */
.logo { margin-left: 0; }

/* Startseite: Logo bis an den linken Seitenrand schieben (nur Logo, nicht die ganze Navigation) */
/* Startseiten-Override nicht mehr nötig, globale Regel oben aktiv */

/* Bild-Logo (Index) */
.logo-img { display: block; height: 100px; width: auto; }
.home .logo-img { height: 200px; }
.logo-img-light { display: block; }
.logo-img-dark { display: none; }

.logo h1 span {
  color: var(--color-orange);
  font-weight: 400;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--color-navy);
  transition: var(--transition-default);
}
/* Wenn das Menü geöffnet ist, Bars in Navy für Kontrast auf weißem Hintergrund */
.nav-toggle.active span { background: var(--color-navy) !important; }

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--spacing-xl);
}
/* Startseite: Menü leicht näher an die Mitte (optisch mehr links) */
.home .nav-menu { margin-right: 1rem; }

.nav-link {
  color: var(--color-navy);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition-default);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-orange);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-orange);
  transition: var(--transition-default);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ===================================
   Hero Section
   =================================== */

.hero-section {
  background: var(--color-light-gray);
  padding: 1.25rem 0;
  position: relative;
  container-type: inline-size;
}

/* Invisible top trigger spacer for IntersectionObserver */
/* .hero-trigger entfernt: Vermeidet leere Regel */


/* Full-width container for hero only */
.hero-section > .container {
  max-width: 100%;
  padding: 0;
}

.hero-overlay { display: none; }

.hero-media {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  width: min(2100px, calc(100% - 32px));
  margin: 0 auto;
  height: auto;
  aspect-ratio: 2100 / 1100;
  min-height: 0;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: stretch; /* beide Spalten volle Höhe */
  padding-bottom: 36px; /* mehr Raum unten, damit Referenzen tiefer sitzen */
}
/* Referenzen unten links in der linken Hälfte der Hero-Section */
.hero-refs {
  position: absolute;
  left: 0;
  bottom: -20px; /* weiter nach unten */
  width: 56%; /* endet kurz vor dem rechten Bild */
  padding: 10px 12px;
  box-sizing: border-box;
  z-index: 5; /* über dem dunklen Overlay */
}
.hero-refs .refs-marquee {
  /* sanftes Ausblenden rechts, damit Logos vor dem Bild verschwinden */
  -webkit-mask-image: linear-gradient(90deg, black 0, black calc(100% - 36px), transparent 100%);
          mask-image: linear-gradient(90deg, black 0, black calc(100% - 36px), transparent 100%);
}
.hero-refs .refs-track { gap: clamp(18px, 3vw, 40px); animation-duration: 24s; }
.hero-refs .refs-track img {
  height: 84px;
  /* edler & etwas dunkler/transparenter nur in der Hero-Section */
  opacity: 0.8;
  mix-blend-mode: soft-light;
  filter:
    grayscale(1)
    brightness(0)
    invert(1)
    sepia(1)
    saturate(11)
    hue-rotate(150deg)
    brightness(0.9)
    contrast(1.06)
    drop-shadow(0 0.5px 0 rgba(255,255,255,0.12))
    drop-shadow(0 1px 0 rgba(0,0,0,0.34))
    drop-shadow(0 12px 22px rgba(0,0,0,0.28));
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform, opacity;
  transform: translateZ(0);
}

.hero-media-overlay {
  position: absolute;
  inset: 0;
  /* nur unten stark abdunkeln – flüssiger Übergang */
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0) 58%,
    rgba(0,0,0,0.15) 68%,
    rgba(0,0,0,0.35) 76%,
    rgba(0,0,0,0.60) 86%,
    rgba(0,0,0,0.88) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 4;
  max-width: 900px;
  margin: 0;
  margin-left: var(--spacing-xl);
  padding: 0 var(--spacing-xl);
  /* etwas höher positionieren */
  padding-top: clamp(24px, 12vh, 180px);
  text-align: left;
}

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

.hero-side-image {
  position: relative;
  z-index: 1;
  grid-column: 2 / 3;
  grid-row: 1;
  width: 100%;
  height: 100%;
  align-self: stretch;
  justify-self: center;
  /* sehr deutlicher, größerer schwarzer Schatten */
  filter: drop-shadow(0 42px 68px rgba(0,0,0,0.6)) drop-shadow(0 18px 32px rgba(0,0,0,0.4));
  object-fit: contain; /* vollständiges Bild sichtbar */
  object-position: 80% 100%; /* weiter nach links, unten bündig */
  transform: translateY(36px) scale(1.36); /* nach unten bündig bis Container-Ende */
  transform-origin: bottom right; /* unten bündig vergrößern */
  /* keine Beschneidung, damit der größere Schatten sichtbar bleibt */
  backface-visibility: hidden;
  will-change: transform;
  /* bessere Schärfe beim Skalieren */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: -moz-crisp-edges;
  image-rendering: pixelated;
  -ms-interpolation-mode: nearest-neighbor;
}

/* Gleiche Höhe wie die Headline-Zeile (H2) */
.hero-media { grid-template-rows: initial; }
.hero-content .hero-title { margin-bottom: 0.75rem; }
/* Scroll Progress Bar under header */
.scroll-progress {
  position: relative; /* im Fluss unter der Hero-Section */
  top: 0;
  z-index: 1;
  height: 8px;
  margin: 0;
  background: rgba(20,184,166,0.18);
  border-radius: 999px;
  pointer-events: none;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,0.04);
  transform: translateZ(0); /* eigenes Layer, weniger Ruckler */
}
.scroll-progress.is-fixed {
  position: fixed; /* ab Schwelle unter dem Header anheften */
  left: 0;
  right: 0;
  z-index: 1100; /* vor dem Header, damit sichtbar bleibt */
}
.scroll-progress .bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-dark-orange) 0%, var(--color-orange) 50%, var(--color-light-orange) 100%);
  border-radius: inherit;
  box-shadow: 0 0 8px rgba(20,184,166,0.25);
  transition: width 90ms linear;
  will-change: width; /* Performance: GPU-Layer für Breite */
}
.hero-side-image { height: auto; }

/* ================================
   Hero Search Filter
   ================================ */
.hero-search {
  position: absolute;
  left: 50%;
  bottom: clamp(64px, 12vh, 160px);
  transform: translateX(-50%);
  width: min(100%, 1200px);
  background: var(--color-white);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  z-index: 3;
}

.hero-search-group {
  display: flex;
  gap: 8px;
  padding: 4px 12px 4px 6px;
  border-right: 1px solid var(--color-medium-gray);
  margin-right: 12px;
  flex-wrap: wrap;
  row-gap: 6px;
}

.chip {
  padding: 8px 14px;
  border-radius: 14px;
  border: 2px solid var(--color-medium-gray);
  background: var(--color-white);
  font-weight: 600;
  cursor: pointer;
}
.chip-active,
.chip:hover {
  border-color: var(--color-orange);
  background: rgba(20,184,166,0.12);
}

.hero-search-row {
  display: grid;
  grid-template-columns: 1.2fr 1px 2fr 1px auto auto;
  align-items: center;
  gap: 12px;
  padding: 0;
  width: 100%;
}

.hero-divider {
  width: 1px;
  height: 36px;
  background: var(--color-medium-gray);
  opacity: 0.6;
}

.hero-field label { display: none; }

.hero-field select,
.hero-field input[type="text"] {
  width: 100%;
  border: 2px solid var(--color-medium-gray);
  border-radius: 10px;
  height: 44px;
  padding: 8px 12px;
  font-size: 1rem;
}

.more-btn {
  padding: 10px 14px;
  border: 2px solid var(--color-medium-gray);
  background: var(--color-white);
  border-radius: 10px;
  cursor: pointer;
}

.hero-submit {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-orange);
  color: var(--color-white);
  border: none;
  font-size: 20px;
  cursor: pointer;
}

.hero-more {
  padding: 10px 6px 6px;
}

.hero-more-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (max-width: 768px) {
  .hero-search { width: calc(100% - 24px); flex-direction: column; align-items: stretch; }
  .hero-search-group { border-right: none; margin-right: 0; padding: 4px 6px; }
  .hero-search-row { grid-template-columns: 1fr; }
  .hero-divider { display: none; }
  .hero-submit { width: 100%; }
}

/* Mobile optimizations for search block */
@media (max-width: 768px) {
  .hero-search { bottom: auto; top: auto; position: static; transform: none; margin: 10px 12px 0; padding: 8px; width: auto; }
  .chip { font-size: 0.9rem; padding: 6px 10px; }
  .hero-field select,
  .hero-field input[type="text"] { height: 40px; font-size: 0.95rem; }
}

/* ================================
   Intro
   ================================ */
.section-intro {
  background: var(--color-light-gray);
}

.intro-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--spacing-3xl);
  align-items: end; /* beide Zellen am unteren Rand ausrichten */
}

.intro-copy { text-align: left; }

.intro-title {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--spacing-xl);
  position: relative;
  display: inline-block; /* macht den Unterstrich so breit wie die Überschrift */
}

/* Dynamischer Unterstrich: exakt so breit wie die Überschrift, animiert von links nach rechts */
.intro-title::after {
  content: "";
  display: block;
  height: 6px;
  width: 100%;
  margin-top: 0.6rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-dark-orange), var(--color-light-orange));
  transform: scaleX(0);
  transform-origin: left center;
  animation: intro-underline-sweep 900ms cubic-bezier(0.2, 0.8, 0.2, 1) 120ms forwards;
}

@keyframes intro-underline-sweep {
  0% { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .intro-title::after { animation: none; transform: none; }
}

.intro-text p {
  font-size: 1.125rem;
  line-height: 1.9;
  color: var(--color-charcoal);
}

.intro-awards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
  align-self: end; /* am unteren Rand ausrichten: untere Karte auf Höhe der letzten Textzeile */
}

.award-card {
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-medium-gray);
  background: var(--color-white);
  padding: var(--spacing-lg);
  min-height: 220px; /* einheitliche Kartenhöhe */
  text-align: center;
}

.award-card.gold {
  /* Subtle medal-like gold */
  /* palette for nuanced gold */
  --gold-1: #fff3c6; /* highlight (lighter) */
  --gold-2: #f5d881; /* light gold (lighter) */
  --gold-3: #e8bf5a; /* mid gold (lighter) */
  --gold-4: #cfa043; /* deep gold (lighter) */
  --gold-5: #b07d2c; /* rich amber (lighter) */
  background:
    /* soft top-left highlight */
    radial-gradient(120% 100% at 12% 0%, rgba(255,255,255,0.36) 0%, rgba(255,255,255,0.00) 42%),
    /* subtle bottom-right vignette */
    radial-gradient(140% 100% at 100% 100%, rgba(0,0,0,0.12) 0%, rgba(0,0,0,0.00) 55%),
    /* conic swirl for metallic reflections */
    conic-gradient(from 230deg at 38% 36%,
      rgba(255,255,255,0.25) 0deg,
      rgba(255,255,255,0.00) 42deg,
      rgba(0,0,0,0.12) 85deg,
      rgba(255,255,255,0.24) 120deg,
      rgba(0,0,0,0.12) 200deg,
      rgba(255,255,255,0.00) 260deg,
      rgba(255,255,255,0.22) 360deg),
    /* inner ring highlight */
    radial-gradient(65% 65% at 42% 38%, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.16) 30%, rgba(255,255,255,0.00) 60%),
    /* nuanced base gold gradient */
    linear-gradient(135deg, var(--gold-1) 0%, var(--gold-2) 24%, var(--gold-3) 48%, var(--gold-4) 72%, var(--gold-5) 100%),
    /* micro texture / brushed effect */
    repeating-linear-gradient(14deg, rgba(255,255,255,0.025) 0 1px, rgba(0,0,0,0.03) 1px 2px),
    repeating-linear-gradient(-14deg, rgba(255,255,255,0.02) 0 1px, rgba(0,0,0,0.025) 1px 2px);
  background-blend-mode: soft-light, multiply, soft-light, overlay, normal, overlay, overlay;
  color: #1E1E1E;
  border-color: #c4942d;
  box-shadow: 0 6px 16px rgba(0,0,0,0.10), inset 0 1px 0 rgba(255,255,255,0.55), inset 0 -1px 0 rgba(0,0,0,0.12);
  position: relative;
  overflow: hidden; /* sheen in border-radius clip */
  isolation: isolate;
  transition: transform 240ms cubic-bezier(0.22,1,0.36,1), box-shadow 240ms ease;
  cursor: default;
}

/* Shimmer on hover like buttons */
.award-card.gold::after {
  content: "";
  position: absolute;
  inset: -20% -68%;
  border-radius: inherit;
  pointer-events: none;
  background-image: linear-gradient(130deg,
    rgba(255,255,255,0) 45%,
    rgba(255,255,255,0.55) 50%,
    rgba(255,255,255,0) 55%
  );
  background-size: 200% 200%;
  background-position: -150% 0;
  opacity: 0;
  z-index: 1;
  mix-blend-mode: screen;
  will-change: background-position, opacity;
  transition: opacity 120ms ease;
}
.award-card.gold:hover::after {
  opacity: 1;
  animation: shimmer-sweep 0.9s ease-out both;
}

.award-card.gold:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}

/* Static subtle dark band for depth */
.award-card.gold::before {
  content: "";
  position: absolute;
  inset: -22% -66%;
  background: linear-gradient(120deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.00) 42%,
    rgba(0,0,0,0.12) 50%,
    rgba(0,0,0,0.00) 58%,
    rgba(0,0,0,0) 100%);
  pointer-events: none;
  border-radius: inherit;
  mix-blend-mode: multiply;
  opacity: 0.25;
}

@media (prefers-reduced-motion: reduce) {
  .award-card.gold:hover::after { animation: none; opacity: 0; }
}
.award-card.white { background: var(--color-white); }
.award-card.small { padding: var(--spacing-md); }
/* Flexibel-Karte exakt so groß wie die obere goldene Karte */
.award-card.gold.small {
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.award-top { font-weight: 800; font-size: 1.75rem; letter-spacing: 1px; }
.award-info { font-size: 0.9rem; display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.award-title { font-weight: 800; font-size: 1.25rem; line-height: 1.2; }
.award-year { margin-top: 6px; font-weight: 700; color: var(--color-dark-gray); }
.award-brand { font-weight: 800; letter-spacing: 0.5px; }
.award-stars { color: #E67E22; font-size: 1rem; margin: 4px 0; }
.award-note { font-size: 0.9rem; color: var(--color-charcoal); }

/* Titelgröße der Flexibel-Karte an Schnelle Verfügbarkeit angleichen */
.intro-awards .award-card.gold.small .award-brand {
  font-size: 1.75rem;
}

@media (max-width: 1024px) {
  .intro-grid { grid-template-columns: 1fr; }
  .intro-awards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .intro-awards { grid-template-columns: 1fr; }
}

.hero-title {
  font-size: clamp(2.25rem, 6.2vw, 4.6rem);
  font-weight: 850;
  line-height: 1.04;
  --hero-title-size: clamp(2.25rem, 6vw, 4.25rem);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(232,238,246,1) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block; /* Breite = Textbreite */
  width: fit-content;
}

.hero-script {
  font-family: 'Photograph Signature', cursive;
  color: var(--color-orange);
  font-weight: 400;
  font-size: clamp(2rem, 6.5vw, 4.2rem);
  line-height: 1;
  transform: translateY(0) rotate(0deg);
  margin-bottom: 0.35rem;
  position: relative;
}
.hero-script .hw-reveal {
  display: inline-block;
  overflow: hidden;
  width: 0;
  will-change: width;
  /* Platz nach oben, damit hohe Glyphen (z. B. ß, Akzente) nicht abgeschnitten werden */
  padding-top: 0.18em;
  margin-top: -0.18em;
  /* Platz nach unten für Unterlängen (g, j, y) */
  padding-bottom: 0.24em;
  margin-bottom: -0.24em;
}
.hero-script .hw-text { display: inline-block; }
.hero-script .hw-text { display: inline-block; }
.hero-script .hw-pen { display: none; }

.hero-title .hero-word-script {
  font-family: 'Photograph Signature', cursive;
  -webkit-text-fill-color: currentColor;
  background: none;
  color: var(--color-orange);
  letter-spacing: 0.01em;
  font-weight: 400;
  font-synthesis: none;
  display: inline-block;
  position: relative;
  transform: rotate(-1.2deg);
  text-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

.hero-title .hero-word-script .hw-reveal { display: block; overflow: hidden; width: 0; will-change: width; }
.hero-title .hero-word-script .hw-text { display: inline-block; }
.hero-title .hero-word-script .hw-pen { display: none; }

/* Typing cursor */
.tw-cursor {
  display: inline-block;
  width: 0.08em;
  height: 0.95em;
  margin-left: 0.1em;
  background: currentColor;
  border-radius: 2px;
  animation: tw-blink 1s steps(2, end) infinite, tw-wobble 1.6s ease-in-out infinite;
  transform-origin: center bottom;
}

@keyframes tw-blink { 50% { opacity: 0; } }
@keyframes tw-wobble { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(0.8px) rotate(0.3deg); } }
@keyframes tw-fade { to { opacity: 0; } }

/* SVG handwriting (stroke-based) */
/* remove SVG handwriting artifacts */
.handwriting-svg, .handwriting-svg * { display: none !important; }

.hero-title::after {
  content: "";
  display: block;
  width: 100%;
  height: 4px;
  margin: 1rem 0 1.25rem 0; /* links unter der Überschrift */
  background: linear-gradient(90deg, var(--color-orange), var(--color-light-orange));
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left center;
  animation: hero-underline 1.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

@keyframes hero-underline {
  from { transform: scaleX(0); opacity: 0.9; }
  to   { transform: scaleX(1); opacity: 1; }
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2.1vw, 1.35rem);
  font-weight: 500;
  margin-bottom: 1.75rem;
  letter-spacing: 0.015em;
}

/* Hero text block: remove backdrop blur to avoid blurring people/cups behind */
.hero-content {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.btn-hero {
  background: var(--color-orange);
  color: var(--color-white);
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: var(--transition-default);
  box-shadow: 0 8px 25px rgba(20, 184, 166, 0.35);
}

.btn-hero:hover {
  background: var(--color-dark-orange);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(20, 184, 166, 0.45);
}

@media (max-width: 768px) {
  .hero-section { padding: 1rem 0; }
  /* Mobile fine-tuning for hero content */
  .hero-section > .container { padding: 0; }
  .hero-media { display: block; width: 100%; min-height: clamp(448px, 69vh, 672px); border-radius: 0; margin: 0; }
  .hero-content { padding-top: clamp(20px, 8vh, 72px); margin-left: 12px; text-align: left; }
  .hero-side-image { display: none !important; }
  .hero-script { display: none; }
  .hero-title { font-size: clamp(1.8rem, 7.2vw, 2.4rem); letter-spacing: -0.015em; }
  .hero-title::after { width: 100%; margin: 0.75rem 0 1rem; }
  .hero-subtitle { font-size: clamp(0.95rem, 2.8vw, 1.1rem); margin-bottom: 1.25rem; }
  .btn-hero { width: auto; max-width: 100%; padding: 0.85rem 1.25rem; }

  /* Buttons untereinander für klare Hierarchie */
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }

  /* Mobile Navigation: Sicherer Kontrast auf weißem Dropdown-Hintergrund */
  .header-transparent .nav-menu { background: #fff; }
  .header-transparent .nav-menu .nav-link { color: var(--color-navy) !important; }
  .header-transparent .nav-menu .nav-link:hover,
  .header-transparent .nav-menu .nav-link.active { color: var(--color-orange) !important; }
  .nav-menu .nav-link { display: block; padding: 12px 4px; }
  .nav-menu .nav-link::after { display: none; }

  /* Referenzen-Leiste: kompakter und ohne Überstand */
  .hero-refs { width: 86%; left: 8px; bottom: -10px; padding: 6px 8px; }
  .hero-refs .refs-marquee {
    -webkit-mask-image: linear-gradient(90deg, black 0, black calc(100% - 24px), transparent 100%);
            mask-image: linear-gradient(90deg, black 0, black calc(100% - 24px), transparent 100%);
  }
  .hero-refs .refs-track { gap: clamp(12px, 4vw, 24px); }
  .hero-refs .refs-track img { height: 56px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(1.6rem, 8.5vw, 2rem); }
  .hero-title::after { width: 100%; }
  .hero-media { width: 100vw; min-height: clamp(496px, 73.6vh, 720px); }
  /* Noch kompaktere Referenzen für sehr kleine Geräte */
  .hero-refs { display: block; width: 94%; left: 3%; bottom: -6px; padding: 4px 6px; }
  .hero-refs .refs-marquee {
    -webkit-mask-image: linear-gradient(90deg, black 0, black calc(100% - 20px), transparent 100%);
            mask-image: linear-gradient(90deg, black 0, black calc(100% - 20px), transparent 100%);
  }
  .hero-refs .refs-track { gap: clamp(10px, 4vw, 20px); animation-duration: 22s; }
  .hero-refs .refs-track img { height: 44px; }
}

/* Floors über Container Queries, ohne das 2100/1022-Verhältnis zu brechen */
@container (min-width: 534px) {
  .hero-media { min-height: 260px; }
}

@container (min-width: 986px) {
  .hero-media { min-height: 480px; }
}

/* Fallback, falls Container Queries nicht unterstützt werden */
@supports not (container-type: inline-size) {
  @media (min-width: 534px) {
    .hero-media { min-height: 260px; }
  }
  @media (min-width: 986px) {
    .hero-media { min-height: 480px; }
  }
}

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

.btn {
  display: inline-block;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: var(--transition-default);
}

.btn-primary {
  background: var(--color-orange);
  color: var(--color-white);
  position: relative;
  z-index: 0;
}

.btn-primary:hover {
  /* kein Abdunkeln – stattdessen Glow/Effekt */
  background: linear-gradient(135deg, var(--color-light-orange) 0%, var(--color-orange) 100%);
  color: var(--color-white);
  transform: translateY(-2px);
  /* dezenter weißer Grund-Glow */
  box-shadow: 0 0 18px rgba(255,255,255,0.25), 0 10px 24px rgba(0,0,0,0.08);
}

/* Diagonaler Schimmerstreifen über den Button (einmalig pro Hover) */
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background-image: linear-gradient(130deg,
    rgba(255,255,255,0) 45%,
    rgba(255,255,255,0.55) 50%,
    rgba(255,255,255,0) 55%
  );
  background-size: 200% 200%;
  background-position: -150% 0;
  opacity: 0;
  z-index: 1;
  will-change: background-position, opacity;
  mix-blend-mode: screen;
}

.btn-primary:hover::before {
  animation: shimmer-sweep 0.85s ease-out both;
}

/* entfernt: rotierender Rand-Schimmer (::after) */

@keyframes shimmer-sweep {
  0% {
    background-position: -150% 0;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    background-position: 150% 0;
    opacity: 0;
  }
}

.btn-primary:focus {
  outline: 2px solid var(--color-orange);
  outline-offset: 2px;
}

.btn-secondary {
  background: transparent;
  color: var(--color-orange); /* Türkis */
  border: 2px solid var(--color-orange);
}

.btn-secondary:hover {
  background: var(--color-orange);
  color: var(--color-white);
  border-color: var(--color-orange);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-orange);
  border: none;
  padding: 0.5rem 1rem;
  font-weight: 500;
}

.btn-ghost:hover {
  color: var(--color-dark-orange);
  text-decoration: underline;
}

/* Accessible Focus Styles */
.nav-link:focus-visible,
.btn:focus-visible,
.nav-toggle:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-orange);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ===================================
   Sections
   =================================== */

.section {
  padding: 4rem 0;
  background: var(--color-white);
}

.section-alternate {
  padding: 4rem 0;
  background: var(--color-light-gray);
}

/* Roles Section (seamless under hero) */
.section-roles {
  padding-top: clamp(12px, 2vh, 20px); /* etwas schmaler oben */
  padding-bottom: clamp(16px, 3vh, 28px); /* insgesamt schmaler in der Höhe */
  background: linear-gradient(180deg, rgba(20,184,166,0.08) 0%, rgba(20,184,166,0.06) 100%);
  border-top: 1px solid rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
}

.section-roles > .container { max-width: 1200px; } /* mehr Raum, damit äußerste Cards ganz außen stehen */

.section-roles::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 220px;
  background: radial-gradient(1200px 140px at 50% 0%, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 60%);
  pointer-events: none;
}

/* .roles-accent removed */

@keyframes roles-accent-scan {
  0% { transform: translateX(-40px); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateX(40px); opacity: 1; }
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* gleichmäßig über die Breite verteilen */
  gap: clamp(2.5rem, 5vw, 6rem); /* größere Abstände */
  justify-items: center; /* Inhalte in den Spalten zentrieren */
  align-items: start;
  width: 100%;
}

.role-card {
  text-align: center;
  padding: 1rem 0.75rem 1rem;
  border-radius: 0;
  background: transparent; /* weiße Karten entfernen */
  border: none;
  box-shadow: none;
  transform: translateY(0);
  transition: transform 360ms cubic-bezier(0.22,1,0.36,1);
  width: auto; /* Zellbreite übernehmen, damit alles einheitlich ist */
}

.role-card:hover { transform: translateY(-6px); }

.role-icon {
  height: 60px;
  display: grid;
  place-items: center;
  margin-bottom: 0.75rem;
  /* leichtes Grau/Türkis für semi-transparenten Look */
  color: #6CB7B2; /* mix aus grau/türkis */
  position: relative;
}

/* Icons etwas kleiner und mit eingraviertem Look */
.role-icon svg {
  width: 60px;
  height: 60px;
  filter: drop-shadow(1px 1px 0 rgba(255,255,255,0.35)) drop-shadow(-1px -1px 0 rgba(0,0,0,0.25));
}

.role-icon::before {
  content: "";
  position: absolute;
  width: 84px;
  height: 84px;
  border-radius: 999px;
  background: conic-gradient(from 180deg, rgba(45,212,191,0.0) 0%, rgba(13,148,136,0.18) 30%, rgba(45,212,191,0.0) 60%);
  filter: blur(0.3px);
  transform: scale(0.85);
  opacity: 0;
  transition: transform 420ms cubic-bezier(0.22,1,0.36,1), opacity 420ms ease;
  z-index: -1;
}

.role-card:hover .role-icon::before { opacity: 1; transform: scale(1); }
.role-card:hover .role-icon { color: var(--color-dark-orange); }

.role-title {
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  color: var(--color-navy);
  margin-bottom: 0.5rem;
  position: relative;
  /* eingravierter Text-Effekt */
  text-shadow: 1px 1px 0 rgba(255,255,255,0.35), -1px -1px 0 rgba(0,0,0,0.25);
}

.role-title::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -8px;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-dark-orange), var(--color-light-orange));
  border-radius: 999px;
  transition: width 360ms cubic-bezier(0.22,1,0.36,1);
}

.role-card:hover .role-title::after { width: 68px; }

.role-desc {
  color: var(--color-dark-gray);
  font-size: 0.95rem;
  line-height: 1.65;
  transition: opacity 360ms ease, transform 360ms ease;
  max-width: 30ch;
  margin: 0 auto;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.25), -1px -1px 0 rgba(0,0,0,0.15);
}

.role-card:hover .role-desc { opacity: 0.96; transform: translateY(-2px); }

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

@media (max-width: 600px) {
  .roles-grid { grid-template-columns: 1fr; }
}

.section-dark {
  padding: 4rem 0;
  background: var(--color-navy);
  color: var(--color-white);
}

/* Testimonials */
.section-testimonials {
  background: linear-gradient(180deg, #2B2F33 0%, #222629 100%);
  color: var(--color-white);
}

.testimonials-container { max-width: 1060px; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.testimonial {
  text-align: center;
}

.testimonial .avatar {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  object-fit: cover;
  margin: 0 auto 1rem;
  box-shadow: 0 8px 22px rgba(0,0,0,0.25);
}

.testimonial .quote {
  font-size: 1.05rem;
  line-height: 1.9;
  color: rgba(255,255,255,0.92);
  max-width: 52ch;
  margin: 1.1rem auto 1.6rem;
}

.testimonial .author {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
}

/* Warum PersoPro - runde Bildkarten */
.why-section { background: var(--color-white); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
  justify-items: center;
}
.why-item { text-align: center; }
.why-thumb {
  width: 220px;
  height: 220px;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  margin-bottom: 1rem;
}
.why-thumb img { width: 100%; height: 100%; object-fit: cover; }
.why-title { font-size: 1.5rem; color: var(--color-navy); margin-bottom: .5rem; }
.why-text { color: var(--color-charcoal); max-width: 28ch; margin: 0 auto; }

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

@media (max-width: 640px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-thumb { width: 200px; height: 200px; }
  /* Ueber-uns: Kreise exakt mittig über den Texten ausrichten */
  .about-scope .why-item { display: flex; flex-direction: column; align-items: center; }
  .about-scope .why-thumb { margin-left: auto; margin-right: auto; }
  .about-scope .why-title, .about-scope .why-text { text-align: center; margin-left: auto; margin-right: auto; }
}

.testimonial .author .name {
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.testimonial .author .role { opacity: 0.85; }

@media (max-width: 1024px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .testimonial .quote { font-size: 1rem; }
}

.section-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--color-navy);
  text-align: center;
  margin-bottom: var(--spacing-3xl);
}

.section-cta {
  text-align: center;
  margin-top: var(--spacing-3xl);
}

/* ===================================
   Services Grid
   =================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: var(--spacing-2xl);
}

.service-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-medium-gray);
  padding: 2rem;
  transition: var(--transition-default);
  text-align: center;
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  /* keine farbige Umrandung im Hover */
}

.service-icon {
  background: var(--color-orange);
  color: var(--color-white);
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-lg);
}

.service-icon svg {
  width: 48px;
  height: 48px;
}

.service-title {
  color: var(--color-navy);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.service-description {
  color: var(--color-dark-gray);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.service-link {
  color: var(--color-orange);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
}

.service-link:hover {
  color: var(--color-dark-orange);
  text-decoration: underline;
}

/* CTA Service Card */
.service-cta {
  background: rgba(255,255,255,0.65); /* transparent */
  color: var(--color-orange);
  border: 2px solid rgba(20,184,166,0.35);
  text-align: left;
  padding: 1.5rem;
  transform: translateY(0);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.service-cta:hover { box-shadow: 0 10px 24px rgba(21,43,66,0.12); }

.service-cta-title { color: var(--color-orange); font-size: 1.35rem; }

.service-cta-sub { color: var(--color-orange); opacity: 0.9; }

.service-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-orange);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 0.65rem 1rem;
  font-weight: 700;
  text-decoration: none;
  margin-top: 0.25rem;
}

.service-cta-btn:hover { box-shadow: 0 0 0 2px rgba(20,184,166,0.7), 0 0 0 8px rgba(20,184,166,0.18), 0 8px 24px rgba(21,43,66,0.12); }

/* etwas dünner als die anderen Karten */
.services-list .service-cta { padding: 1.25rem 1.25rem; }

/* Sticky Services Layout */
.services-sticky {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); /* harte 50/50-Aufteilung */
  gap: 0; /* nahtloser Übergang zwischen Bild und Karte */
  align-items: stretch; /* wichtig: linke Spalte erhält volle Section-Höhe, damit sticky am Ende löst */
  --services-viewport: clamp(420px, 68vh, 640px); /* einheitliche Höhe für Bild & Karte */
}

.services-sticky-left { position: relative; }

.sticky-media {
  position: sticky;
  top: calc(72px + var(--spacing-xl));
  align-self: start; /* verhindert Stretching durch Grid */
  overflow: hidden; /* für Fade-Overlay am rechten Rand */
  height: var(--services-viewport);
  border-radius: var(--radius-xl) 0 0 var(--radius-xl);
  box-shadow: var(--shadow-md);
  contain: paint;
  will-change: transform, opacity;
}

.services-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-xl) 0 0 var(--radius-xl);
  pointer-events: none;
  will-change: opacity, transform, filter;
  backface-visibility: hidden;
  /* sanfter Übergang zum weißen Kartenbereich */
  -webkit-mask-image: linear-gradient(to right, black 92%, rgba(0,0,0,0) 100%);
          mask-image: linear-gradient(to right, black 92%, rgba(0,0,0,0) 100%);
  opacity: 0;
  transform: scale(1.03);
  filter: saturate(1) contrast(1);
  transition: opacity 800ms cubic-bezier(0.22,1,0.36,1), transform 900ms cubic-bezier(0.22,1,0.36,1), filter 800ms ease;
}
.services-image.is-active {
  opacity: 1;
  transform: scale(1);
  filter: none;
}

/* Während der Scroll-Synchronisation: keine Transition-Ruckler */
.sticky-media.scrubbing .services-image {
  transition: none !important;
}

/* weicher Übergang vom Bild zur Karte (rechts) */
.sticky-media::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 22px;
  pointer-events: none;
  /* reines Weiß am rechten Ende, abgestimmt auf Kartenhintergrund */
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.6) 58%, #ffffff 100%);
}

/* Naht: Bild rechts ohne Radius, Karte links ohne Radius */
.sticky-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-xl) 0 0 var(--radius-xl);
  transform: translateX(0.5px); /* subpixel shift verhindert feine Lücke */
}
.services-sticky-right .service-card {
  border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
  border-left: none;
  border-top: none;
  border-right: none;
  border-bottom: none; /* Karte ohne Rand für nahtloses Weiß */
  position: relative;
  margin-left: -1px; /* überlappt minimal, beseitigt evtl. 1px-Lücke */
  box-shadow: none; /* vermeidet dunklen Schatten an der Naht */
  background: #ffffff; /* exakt gleiches Weiß wie im Overlay-Ende */
}

.services-sticky-right { min-height: 100%; }
.services-list {
  display: flex;
  flex-direction: row;
  gap: 0;
  height: var(--services-viewport);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory; /* verlässlich auf vollen Slide einrasten */
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto; /* vertikale Scrollkette zum Body zulassen */
  touch-action: pan-x; /* nur horizontales Gesten-Scrolling erlauben */
  -webkit-overflow-scrolling: touch;
  padding: 0;
  /* weiche Ränder links/rechts – etwas sanfter */
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 12px, black calc(100% - 12px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, black 12px, black calc(100% - 12px), transparent 100%);
  scrollbar-width: none;
}
.services-list::-webkit-scrollbar { display: none; }

.service-card {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  flex: 0 0 100%;
  width: 100%;
  height: var(--services-viewport);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--color-medium-gray);
  background: #fff;
}

/* Slider arrows */
.svc-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.9); border: 1px solid var(--color-medium-gray); width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-sm); color: var(--color-navy); font-size: 20px; z-index: 3; }
.svc-arrow.left { left: 0; }
.svc-arrow.right { right: 0; }
.services-sticky { position: relative; }

/* Reveal Animation */
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.revealed { opacity: 1; transform: translateY(0); transition: opacity .6s ease, transform .6s ease; }

@media (max-width: 1024px) {
  .services-sticky { grid-template-columns: 1fr; }
  .sticky-media { position: static; top: auto; margin-bottom: var(--spacing-2xl); align-self: auto; }
  .services-list { height: auto; overflow: visible; scroll-snap-type: none; -webkit-mask-image: none; mask-image: none; display: grid; gap: var(--spacing-xl); touch-action: auto; }
  .service-card { flex: auto; height: auto; }
  .sticky-media { height: auto; }
  .sticky-media img { height: auto; }
  /* Pfeile auf Mobile ausblenden */
  .svc-arrow { display: none !important; }
}

/* ===================================
   Properties Grid
   =================================== */

.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: var(--spacing-2xl);
}

@media (max-width: 360px) {
  .properties-grid { grid-template-columns: 1fr; }
}

/* Removed homepage carousel styles (section deleted) */

.property-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-medium-gray);
  overflow: hidden;
  transition: var(--transition-default);
}

.property-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--color-orange);
}

.property-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  aspect-ratio: 16/9;
}

.property-content {
  padding: var(--spacing-xl);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  flex: 1 1 auto;
}

.property-price {
  color: var(--color-orange);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

.property-title {
  color: var(--color-navy);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2; /* Standard-Eigenschaft ergänzen */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.property-location {
  color: var(--color-dark-gray);
  font-size: 0.875rem;
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.property-features {
  display: flex;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--color-medium-gray);
}

/* Einheitliche Innenabstände in Karten */
#featuredProperties .property-content > * { margin: 0; }

.property-feature {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: var(--color-dark-gray);
  font-size: 0.875rem;
}

.property-link {
  color: var(--color-orange);
  font-weight: 500;
  text-decoration: none;
  margin-top: auto; /* an das Kartenende schieben, damit alle gleich hoch wirken */
}

.property-link:hover {
  color: var(--color-dark-orange);
  text-decoration: underline;
}

/* ===================================
   About Preview
   =================================== */

.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-3xl);
  align-items: start; /* Bild-Top an Titel-Top ausrichten */
}

@media (max-width: 640px) {
  .about-preview { gap: var(--spacing-xl); }
}

.about-content {
  padding-right: var(--spacing-xl);
}

.about-text {
  color: var(--color-dark-gray);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: var(--spacing-lg);
}

.about-stats {
  display: flex;
  gap: var(--spacing-2xl);
  margin: var(--spacing-2xl) 0;
}

.stat {
  text-align: center;
}

.stat-number {
  color: var(--color-orange);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
}

.stat-label {
  color: var(--color-dark-gray);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.about-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ===================================
   CTA Section
   =================================== */

.section-cta {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-light-navy) 100%);
  padding: var(--spacing-3xl) 0;
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  color: var(--color-white);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
}

.cta-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  margin-bottom: var(--spacing-2xl);
}

.cta-buttons {
  display: flex;
  gap: var(--spacing-lg);
  justify-content: center;
  flex-wrap: wrap;
}

/* CTA phone button: orange border and text */
.section-cta .cta-buttons .btn-secondary {
  border-color: var(--color-orange);
  color: var(--color-orange);
}

.section-cta .cta-buttons .btn-secondary:hover {
  background: var(--color-orange);
  color: var(--color-white);
  border-color: var(--color-orange);
}

/* ===================================
   Footer
   =================================== */

.footer {
  /* Leicht heller, weiterhin mit türkisem Stich */
  background: linear-gradient(180deg, rgba(20,184,166,0.06) 0%, rgba(20,184,166,0.04) 100%), #243b44;
  color: var(--color-white);
  padding: 3rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--spacing-2xl);
  margin-bottom: var(--spacing-2xl);
  padding-bottom: var(--spacing-2xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-column h3,
.footer-column h4 {
  color: var(--color-white);
  margin-bottom: var(--spacing-lg);
}

.footer-title {
  font-size: 1.5rem;
  font-weight: 600;
}

.footer-subtitle {
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-text {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: var(--spacing-lg);
}

.footer-social {
  display: flex;
  gap: var(--spacing-md);
}

.footer-social a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition-default);
}

.footer-social a:hover {
  color: var(--color-orange);
}

.footer-social svg {
  width: 24px;
  height: 24px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--spacing-sm);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition-default);
}

.footer-links a:hover {
  color: var(--color-orange);
}

.footer-address {
  font-style: normal;
  color: rgba(255, 255, 255, 0.8);
}

.footer-address p {
  margin-bottom: var(--spacing-sm);
}

.footer-address a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition-default);
}

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

.footer-hours {
  list-style: none;
  color: rgba(255, 255, 255, 0.8);
}

.footer-hours li {
  margin-bottom: var(--spacing-sm);
}

.footer-bottom {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

.footer-powered {
  margin-top: 0.5rem;
}

.footer-powered a {
  color: var(--color-light-orange);
  font-weight: 700;
}

.footer-powered a:hover {
  color: var(--color-orange);
}

/* ===================================
   Referenzen - Endlos-Karussell
   =================================== */
.references {
  background: #000; /* schwarzer Hintergrund */
  padding: 40px 0 56px;
}
.references .section-title { color:#fff; font-size: clamp(1.25rem, 2.4vw, 1.75rem); }
.refs-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}
.refs-track {
  display: flex;
  gap: clamp(28px, 5vw, 64px); /* gleichmäßige Abstände */
  align-items: center;
  width: max-content;
  animation: refs-scroll-rtl 26s linear infinite; /* Links → Rechts */
  will-change: transform;
}
/* Logo-Basisbild: statischer, metallischer Türkis-Look (ohne Glanz-Animation) */
/* Referenzen: Türkis-Gradient direkt im Logo (oben heller → unten dunkler), keine Box */
.refs-track img {
  height: var(--h, 128px);
  width: auto;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  /* Fallback: echte PNG anzeigen und türkis einfärben */
  filter:
    grayscale(1)
    brightness(0)
    invert(1)
    sepia(1)
    saturate(14)
    hue-rotate(150deg)
    brightness(1.08)
    contrast(1.10)
    drop-shadow(0 0.5px 0 rgba(255,255,255,0.16))
    drop-shadow(0 1px 0 rgba(0,0,0,0.38))
    drop-shadow(0 10px 20px rgba(0,0,0,0.26));
  opacity: 0.98;
  position: relative;
  z-index: 0;
  display: block;
}
/* Progressive Enhancement entfernt: Stabiler PNG-Fallback reicht aus */

.ref-logo { position: relative; display: inline-block; }

/* Optional: 4.png höher skalieren wie zuvor gewünscht */
.refs-track img[src$="4.png"] { height: 160px; }

/* Wrapper für konsistente Ausrichtung ohne Animation */
.ref-logo {
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}
@keyframes refs-scroll-rtl {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

/* Verhindere Scrollbar/Overflow auf kleineren Displays im Referenzen-Band */
@media (max-width: 768px) {
  .references { padding-bottom: 40px; }
  .refs-marquee { overflow: hidden; }
  .refs-track img { --h: 88px; }
}
@media (max-width: 480px) {
  .refs-track img { --h: 72px; }
}

/* ===================================
   Forms
   =================================== */

.form-container {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  border: 1px solid var(--color-medium-gray);
}

.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-label {
  color: var(--color-navy);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: block;
}

.form-input,
.form-textarea {
  background: var(--color-white);
  border: 2px solid var(--color-medium-gray);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  width: 100%;
  transition: var(--transition-default);
  font-family: var(--font-primary);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--color-orange);
  outline: none;
  box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* ===================================
   Utilities
   =================================== */

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }

.pt-1 { padding-top: var(--spacing-sm); }
.pt-2 { padding-top: var(--spacing-md); }
.pt-3 { padding-top: var(--spacing-lg); }
.pt-4 { padding-top: var(--spacing-xl); }

.pb-1 { padding-bottom: var(--spacing-sm); }
.pb-2 { padding-bottom: var(--spacing-md); }
.pb-3 { padding-bottom: var(--spacing-lg); }
.pb-4 { padding-bottom: var(--spacing-xl); }

/* ===================================
   Media Queries
   =================================== */

@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-preview {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .about-content {
    padding-right: 0;
  }
  
  .about-stats {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    position: relative;
    width: 28px;
    height: 20px;
  }
  
  .nav-menu {
    display: none;
    position: fixed;
    top: var(--mobile-menu-top, 72px);
    left: 0;
    right: 0;
    height: calc(100vh - var(--mobile-menu-top, 72px));
    background: rgba(248,249,250,0.96); /* helles Grau wie im Screenshot */
    flex-direction: column;
    padding: 18px 8px calc(18px + env(safe-area-inset-bottom));
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    border-top: 1px solid rgba(0,0,0,0.06);
    z-index: 2000; /* über jedem Overlay */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease;
    will-change: opacity;
    transform: translateZ(0); /* eigenes Layer, bessere Klick-Hit-Tests */
  }
  
  .nav-menu.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .properties-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  /* Bessere Touch-Ziele und Abstand im mobilen Menü */
  .nav-menu .nav-link { padding: 14px 6px; font-size: 1.05rem; }
  .nav-menu li { width: 100%; }
  .nav-menu li + li { border-top: 1px solid rgba(0,0,0,0.08); }
  .nav-menu .nav-link { display: block; width: 100%; padding: 22px 24px; font-size: 1.125rem; }
  .header .nav-menu .nav-link { color: var(--color-navy) !important; text-transform: uppercase; letter-spacing: 0.02em; font-weight: 700; }
  .header .nav-menu .nav-link.active { color: var(--color-orange) !important; }
  .header .nav-menu .nav-link:focus-visible { outline: 2px solid var(--color-orange); outline-offset: 2px; border-radius: 8px; }
  /* Einheitlicher Impressum-Stil: weiße Fläche, Navy-Links, Großbuchstaben */
  .header .nav-menu { background: #ffffff !important; }
  .header .nav-menu .nav-link { color: var(--color-navy) !important; text-transform: uppercase; letter-spacing: 0.02em; font-weight: 600; }
  .header .nav-menu .nav-link:hover, .header .nav-menu .nav-link:active { color: var(--color-orange) !important; }
  /* Hamburger → X Animation (sauber und konsistent) */
  .nav-toggle span {
    position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px;
    top: 0; transform: none; opacity: 1;
    transition: transform .24s cubic-bezier(.22,1,.36,1), opacity .18s ease, top .24s cubic-bezier(.22,1,.36,1);
  }
  .nav-toggle span:nth-child(1) { top: 3px; }
  .nav-toggle span:nth-child(2) { top: 9px; }
  .nav-toggle span:nth-child(3) { top: 15px; }
  .nav-toggle.active span:nth-child(1) { top: 9px; transform: rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { top: 9px; transform: rotate(-45deg); }
  /* Dimmed Overlay hinter dem aufklappenden Menü */
  .header::after { content: ""; display: none; }
  .header.nav-open::after {
    /* Overlay auf Mobile komplett deaktivieren (keine Abdunkelung) */
    content: none;
    display: none !important;
  }
  /* Sicherheit: Links immer klickbar */
  .nav-menu a { pointer-events: auto; }
  
  .footer-social {
    justify-content: center;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
  /* Mobile: Verhindere Überlappung von Header und erster Hero-Section pro Seite */
  .home .header + .hero-section { margin-top: 72px; }
  .about-scope .header + .about-header { padding-top: calc(72px + 1.5rem); }

  /* Mobile: Glasmorphism für festen Header-Zustand */
  .header-solid {
    background: var(--color-white) !important;
    background-color: var(--color-white) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    border-bottom-color: var(--color-medium-gray) !important;
    box-shadow: var(--shadow-sm) !important;
  }

  /* Einheitlicher mobiler Header: Start türkis, beim Scrollen weiß */
  .header {
    background: transparent !important;
    border-bottom-color: transparent !important;
    box-shadow: none !important;
  }
  .header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #14B8A6 0%, #0D9488 100%) !important;
    opacity: 1;
    transition: opacity 300ms ease;
    pointer-events: none;
  }
  .header-solid::before { opacity: 0 !important; }
  .header .navigation { position: relative; z-index: 1; }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }
  /* Logo bündig links: negativen Rand an mobile Container-Padding anpassen */
  .logo { margin-left: 0; }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .section-alternate {
    padding: 3rem 0;
  }
  
  .about-stats {
    flex-direction: column;
    gap: var(--spacing-lg);
  }
}

/* ===================================
   Cookie Consent
   =================================== */

.cc-hidden { display: none !important; }

.cc-banner {
  position: fixed;
  left: 16px;
  bottom: 16px;
  transform: translateY(24px);
  width: min(520px, calc(100% - 32px));
  background: var(--color-white);
  border: 1px solid var(--color-medium-gray);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  transition: transform 480ms cubic-bezier(0.22, 1, 0.36, 1), opacity 420ms ease;
}

.cc-banner .cc-text { color: var(--color-charcoal); }
.cc-banner .cc-text strong { color: var(--color-navy); }
.cc-banner .cc-text p { margin: 0; }
.cc-banner .cc-text small { color: var(--color-dark-gray); }

.cc-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

.cc-banner.cc-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 640px) {
  .cc-banner { grid-template-columns: 1fr; gap: 12px; width: calc(100% - 24px); left: 12px; right: 12px; }
  .cc-actions { justify-content: stretch; }
  .cc-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .cc-banner { transition: none; transform: translate(-50%, 0); }
}

.cc-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Panel links wie im Beispiel */
  padding: 18px;
  opacity: 0;
  transition: opacity 240ms ease;
}

.cc-modal .cc-dialog {
  position: relative;
  width: min(560px, 96vw);
  background: #3f4348; /* dunkles Panel wie Screenshot 2 */
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  box-shadow: var(--shadow-xl);
  padding: 18px 18px 16px;
  transform: translateX(-16px);
  transition: transform 360ms cubic-bezier(0.22,1,0.36,1);
}

.cc-dialog h3 { margin: 0 0 8px; color: var(--color-navy); }
.cc-dialog h3 { color: #fff; }
.cc-dialog .cc-modal-desc { margin: 0 0 10px; color: rgba(255,255,255,0.85); }

.cc-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0 6px; }
.cc-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
}
.cc-option input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--color-orange); }
.cc-option span { font-weight: 700; color: #fff; }
.cc-option small { color: rgba(255,255,255,0.8); }

@media (max-width: 520px) {
  .cc-options { grid-template-columns: 1fr; }
}

.cc-modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 12px; flex-wrap: wrap; }
.cc-legal { margin-top: 8px; font-size: 0.9rem; color: var(--color-dark-gray); }
.cc-legal { color: rgba(255,255,255,0.8); }
.cc-legal a { color: var(--color-light-orange); text-decoration: underline; }

.cc-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06);
  color: #fff;
  cursor: pointer;
}

.cc-modal.cc-visible { opacity: 1; }
.cc-modal.cc-visible .cc-dialog { transform: translateX(0); }

/* Floating Button unten links */
.cc-fab {
  position: fixed;
  left: 16px;
  bottom: 16px;
  width: 68px;
  height: 68px;
  border-radius: 999px;
  background: var(--color-orange);
  color: #fff;
  border: none;
  box-shadow: var(--shadow-lg);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2000;
}
/* Icon wird inline als SVG eingebettet; kein Background-Image nötig */
.cc-fab {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 2a10 10 0 1 0 10 10c0-.5-.03-1-.1-1.48a3 3 0 0 1-3.42-3.42C18 7.03 17.5 7 17 7A5 5 0 0 1 12 2z'/><path d='M8.5 12.5c.6 1.1 1.6 2 2.9 2.4'/><path d='M7 10c1.2 2.4 3.3 4 6 4.5'/><path d='M7.5 15.8c1.7 1.8 4.1 2.6 6.5 2.2'/><path d='M10 8.5c.5 1.3 1.6 2.2 3 2.5'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 34px 34px;
}
/* Fallback: Icon als Background laden, falls <img> durch CSP/CDN nicht geladen wird */
.cc-fab { background-image: url('../images/start/cookieicon.png'); background-repeat: no-repeat; background-position: center; background-size: 28px 28px; }
/* Aufmerksamkeitspuls entfernt – dezenter Button ohne Glow */

/* Wenn Banner sichtbar ist, FAB etwas nach oben versetzen, damit nichts 
   überlappt. Klasse wird durch JS auf <body> gesetzt. */
.cc-has-banner .cc-fab { bottom: 96px; }

@media (max-width: 640px) {
  /* FAB auf sehr kleinen Displays verkleinern und Safe-Area berücksichtigen */
  .cc-fab {
    width: 56px;
    height: 56px;
    left: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    background-size: 26px 26px;
  }
  .cc-has-banner .cc-fab { bottom: calc(92px + env(safe-area-inset-bottom)); }
}

/* ===================================
   Form Errors (sichtbares Feedback)
   =================================== */
input.error, textarea.error, select.error,
.form-input.error, .form-textarea.error,
.contact-input.error {
  border-color: var(--color-red) !important;
  box-shadow: 0 0 0 3px rgba(220,53,69,0.12);
}
.field-error {
  color: var(--color-red);
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
}
