/* ==========================================================================
   Die Baumfüchse – Stylesheet
   Author: Built for Michael Fuchs / Die Baumfüchse
   Stack: Pures CSS3, Mobile-First, BEM-inspirierte Klassenstruktur
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. CSS Custom Properties (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
  /* Farben – Primärsystem */
  --color-bg: #FAFAF7;                /* Warm-weißer Seitenhintergrund */
  --color-surface: #FFFFFF;           /* Karten / hervorgehobene Flächen */
  --color-surface-alt: #F4F2EC;       /* Sekundäre Sektionen */
  --color-text: #1A1A1A;              /* Primärtext, fast schwarz */
  --color-text-secondary: #4A4A48;    /* Sekundärtext */
  --color-text-muted: #6E6E6A;        /* Subtiler Text, Captions */
  --color-border: #E5E2DA;            /* Standard-Rahmen, warmgrau */
  --color-border-strong: #C9C5BB;     /* Stärkere Rahmen */

  /* Akzentfarbe – Wald-/Tannengrün */
  --color-primary: #1F4E2E;           /* Hauptakzent, tief und natürlich */
  --color-primary-hover: #163A22;     /* Hover dunkler */
  --color-primary-soft: #2D6A40;      /* Helleres Variation */
  --color-primary-tint: #E8F0EA;      /* Sehr helles Grün für Backgrounds */
  --color-primary-contrast: #FFFFFF;  /* Text auf Primärfarbe */

  /* Semantische Farben */
  --color-focus: #1F4E2E;
  --color-error: #B3261E;

  /* Schatten */
  --shadow-sm: 0 1px 2px rgba(26, 26, 26, 0.04), 0 1px 3px rgba(26, 26, 26, 0.06);
  --shadow-md: 0 4px 12px rgba(26, 26, 26, 0.08), 0 2px 4px rgba(26, 26, 26, 0.04);
  --shadow-lg: 0 12px 28px rgba(26, 26, 26, 0.12), 0 4px 10px rgba(26, 26, 26, 0.06);
  --shadow-hover: 0 16px 40px rgba(26, 26, 26, 0.14), 0 6px 12px rgba(26, 26, 26, 0.06);

  /* Radien */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 9999px;

  /* Abstände (8px-Basis) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* Typografie */
  --font-sans:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";

  --fs-xs: 12px;
  --fs-sm: 14px;
  --fs-base: 16px;
  --fs-md: 18px;
  --fs-lg: 20px;
  --fs-xl: 24px;
  --fs-2xl: 30px;
  --fs-3xl: 36px;
  --fs-4xl: 48px;
  --fs-5xl: 60px;
  --fs-6xl: 72px;

  --lh-tight: 1.1;
  --lh-snug: 1.25;
  --lh-normal: 1.5;
  --lh-relaxed: 1.65;

  /* Layout */
  --container-max: 1200px;
  --container-pad: clamp(16px, 4vw, 48px);
  --section-pad-y: clamp(64px, 10vw, 120px);

  --header-height: 72px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.35s ease;

  /* Z-Index */
  --z-base: 1;
  --z-sticky: 50;
  --z-fixed: 100;
  --z-modal: 200;
}


/* --------------------------------------------------------------------------
   2. Reset & Basis
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--color-primary-hover);
}

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

/* Visually hidden (für Accessibility) */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip-Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--color-primary);
  color: var(--color-primary-contrast);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  z-index: var(--z-modal);
  font-weight: 600;
  transition: top var(--transition-base);
}

.skip-link:focus {
  top: 16px;
  color: var(--color-primary-contrast);
}


/* --------------------------------------------------------------------------
   3. Typografie
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--space-4);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  color: var(--color-text);
}

h1 {
  font-size: clamp(var(--fs-3xl), 6vw, var(--fs-6xl));
  letter-spacing: -0.035em;
  line-height: 1.05;
}

h2 {
  font-size: clamp(var(--fs-2xl), 4.5vw, var(--fs-4xl));
  letter-spacing: -0.03em;
}

h3 {
  font-size: clamp(var(--fs-lg), 2.5vw, var(--fs-xl));
  letter-spacing: -0.02em;
}

h4 {
  font-size: var(--fs-md);
  letter-spacing: -0.015em;
}

p {
  margin: 0 0 var(--space-4);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
}

p:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 600;
  color: var(--color-text);
}

ul, ol {
  padding-left: 1.5em;
  margin: 0 0 var(--space-4);
}

li {
  margin-bottom: var(--space-2);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
}


/* --------------------------------------------------------------------------
   4. Layout-Container & Sektionen
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.section {
  padding-top: var(--section-pad-y);
  padding-bottom: var(--section-pad-y);
  position: relative;
}

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

.section__eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.section__title {
  max-width: 720px;
  margin-bottom: var(--space-4);
}

.section__lead {
  max-width: 640px;
  font-size: var(--fs-md);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-12);
}

.section__header {
  margin-bottom: var(--space-12);
}


/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 28px;
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-base),
              color var(--transition-base),
              border-color var(--transition-base),
              transform var(--transition-base),
              box-shadow var(--transition-base);
  white-space: nowrap;
  text-decoration: none;
  min-height: 48px;
  user-select: none;
  border: 2px solid transparent;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-primary-contrast);
}

.btn--primary:hover {
  background-color: var(--color-primary-hover);
  color: var(--color-primary-contrast);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-text);
  border-color: var(--color-border-strong);
}

.btn--secondary:hover {
  background-color: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
}

.btn--ghost {
  background-color: transparent;
  color: var(--color-primary-contrast);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn--ghost:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--color-primary-contrast);
}

.btn--lg {
  padding: 18px 36px;
  font-size: var(--fs-md);
  min-height: 56px;
}

.btn--block {
  width: 100%;
}

.btn__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}


/* --------------------------------------------------------------------------
   6. Header / Navigation
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  background-color: rgba(250, 250, 247, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.header--scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 700;
  font-size: var(--fs-md);
  letter-spacing: -0.02em;
  color: var(--color-text);
  text-decoration: none;
}

.brand:hover {
  color: var(--color-text);
}

.brand__logo {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 10px;
  background-color: transparent;
}

.brand__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

.brand__name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__subtitle {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav__link {
  padding: 8px 14px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--transition-base), background-color var(--transition-base);
}

.nav__link:hover {
  color: var(--color-text);
  background-color: rgba(0, 0, 0, 0.04);
}

.header__cta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.header__tel {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 16px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-base);
}

.header__tel:hover {
  background-color: rgba(0, 0, 0, 0.04);
  color: var(--color-text);
}

.header__tel svg {
  width: 16px;
  height: 16px;
  color: var(--color-primary);
}

.header__cta .btn {
  padding: 10px 20px;
  min-height: 44px;
  font-size: var(--fs-sm);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--color-text);
}

.menu-toggle:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

.menu-toggle__icon,
.menu-toggle__icon::before,
.menu-toggle__icon::after {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
  position: relative;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.menu-toggle__icon::before {
  position: absolute;
  top: -7px;
  left: 0;
}

.menu-toggle__icon::after {
  position: absolute;
  top: 7px;
  left: 0;
}

.nav--open .menu-toggle__icon {
  background-color: transparent;
}

.nav--open .menu-toggle__icon::before {
  top: 0;
  transform: rotate(45deg);
}

.nav--open .menu-toggle__icon::after {
  top: 0;
  transform: rotate(-45deg);
}


/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100svh - var(--header-height));
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #FFFFFF;
  background-color: #1A1A1A;
}

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

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

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.55) 60%, rgba(0, 0, 0, 0.7) 100%),
    linear-gradient(120deg, rgba(31, 78, 46, 0.35) 0%, rgba(0, 0, 0, 0.15) 100%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: var(--space-20);
  padding-bottom: var(--space-20);
}

.hero__content {
  max-width: 800px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 16px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.hero__eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  background-color: #6BCB77;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(107, 203, 119, 0.7);
}

.hero__title {
  color: #FFFFFF;
  font-size: clamp(var(--fs-4xl), 7vw, var(--fs-6xl));
  margin-bottom: var(--space-6);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}

.hero__title em {
  font-style: normal;
  color: #B8D9C2;
}

.hero__lead {
  font-size: clamp(var(--fs-md), 2.2vw, var(--fs-xl));
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: var(--space-10);
  max-width: 640px;
  line-height: var(--lh-snug);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-10);
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6) var(--space-8);
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: var(--fs-sm);
  font-weight: 500;
}

.hero__trust svg {
  width: 18px;
  height: 18px;
  color: #6BCB77;
  flex-shrink: 0;
}

.hero__scroll-hint {
  position: absolute;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.7);
  pointer-events: none;
  animation: hero-bounce 2.4s ease-in-out infinite;
}

.hero__scroll-hint svg {
  width: 16px;
  height: 16px;
}

@keyframes hero-bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}


/* --------------------------------------------------------------------------
   8. Trust-Strip
   -------------------------------------------------------------------------- */
.trust-strip {
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-8) 0;
}

.trust-strip__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-6);
  align-items: center;
}

.trust-strip__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text);
}

.trust-strip__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background-color: var(--color-primary-tint);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-strip__icon svg {
  width: 22px;
  height: 22px;
}

.trust-strip__title {
  font-weight: 600;
  font-size: var(--fs-sm);
  margin-bottom: 2px;
}

.trust-strip__sub {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  line-height: 1.4;
}


/* --------------------------------------------------------------------------
   9. Services / Leistungen
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

.service-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: box-shadow var(--transition-base),
              border-color var(--transition-base);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background-color: var(--color-primary-tint);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.service-card__title {
  margin: 0;
  font-size: var(--fs-lg);
}

.service-card__desc {
  margin: 0;
  font-size: var(--fs-base);
  color: var(--color-text-secondary);
}


/* --------------------------------------------------------------------------
   10. Über uns
   -------------------------------------------------------------------------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.about__media {
  position: relative;
}

.about__image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.about__badge {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background-color: var(--color-surface);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  max-width: 240px;
}

.about__badge-number {
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-1);
  letter-spacing: -0.03em;
}

.about__badge-label {
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
  line-height: 1.3;
}

.about__quote {
  margin-top: var(--space-8);
  padding-left: var(--space-6);
  border-left: 3px solid var(--color-primary);
  font-size: var(--fs-md);
  color: var(--color-text);
  font-style: italic;
  line-height: var(--lh-snug);
}

.about__signature {
  display: block;
  margin-top: var(--space-3);
  font-style: normal;
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  font-weight: 600;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}

.about__stat-value {
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  letter-spacing: -0.03em;
}

.about__stat-label {
  margin-top: var(--space-1);
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}


/* --------------------------------------------------------------------------
   11. Galerie
   -------------------------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-4);
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background-color: var(--color-surface-alt);
  aspect-ratio: 4 / 3;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery__item:hover img {
  transform: scale(1.05);
}

.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 50%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.gallery__item:hover::after {
  opacity: 1;
}

.gallery__caption {
  position: absolute;
  bottom: var(--space-4);
  left: var(--space-4);
  right: var(--space-4);
  color: #FFFFFF;
  font-size: var(--fs-sm);
  font-weight: 600;
  z-index: 2;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.gallery__item:hover .gallery__caption {
  opacity: 1;
  transform: translateY(0);
}

/* Asymmetrisches Layout für visuelle Vielfalt */
.gallery__item:nth-child(1) { grid-column: span 7; aspect-ratio: 16 / 10; }
.gallery__item:nth-child(2) { grid-column: span 5; aspect-ratio: 16 / 10; }
.gallery__item:nth-child(3) { grid-column: span 4; }
.gallery__item:nth-child(4) { grid-column: span 4; }
.gallery__item:nth-child(5) { grid-column: span 4; }


/* --------------------------------------------------------------------------
   12. Warum wir / USPs
   -------------------------------------------------------------------------- */
.usps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-8);
}

.usp {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.usp__icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background-color: var(--color-primary);
  color: var(--color-primary-contrast);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.usp__icon svg {
  width: 32px;
  height: 32px;
}

.usp__title {
  font-size: var(--fs-lg);
  margin: 0;
}

.usp__desc {
  font-size: var(--fs-base);
  color: var(--color-text-secondary);
  margin: 0;
}


/* --------------------------------------------------------------------------
   13. FAQ Accordion (auf <details>/<summary> aufbauend)
   -------------------------------------------------------------------------- */
.faq {
  max-width: 820px;
  margin: 0 auto;
}

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

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

/* Native disclosure-Pfeil verstecken */
.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  padding: var(--space-6) 0;
  text-align: left;
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
  transition: color var(--transition-base);
}

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

.faq__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  position: relative;
  color: var(--color-primary);
}

.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform var(--transition-base);
}

.faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq__item[open] .faq__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq__answer p {
  padding: 0 0 var(--space-6);
  margin: 0;
  font-size: var(--fs-base);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
  max-width: 720px;
}

.faq__cta {
  margin-top: 48px;
  text-align: center;
  padding: 40px 24px;
  background: var(--color-primary-tint);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(31, 78, 46, 0.15);
}

.faq__cta-text {
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 24px;
}

.faq__cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Centered section header variant */
.section__header--centered {
  text-align: center;
  margin-inline: auto;
}
.section__header--centered .section__title,
.section__header--centered .section__lead {
  margin-inline: auto;
}

/* Section footer (CTA at end of section) */
.section__footer {
  margin-top: 56px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.section__footer-note {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  margin: 0;
}

/* Form microcopy below submit button */
.form__microcopy {
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  margin: 12px 0 0;
}


/* --------------------------------------------------------------------------
   14. Kontakt / Form
   -------------------------------------------------------------------------- */
.contact {
  max-width: 880px;
  margin: 0 auto;
}

.contact__info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

.contact-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  transition: border-color var(--transition-base), transform var(--transition-base);
  text-decoration: none;
  color: inherit;
}

a.contact-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  color: inherit;
}

.contact-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--color-primary-tint);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.contact-card__label {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.contact-card__value {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
}

.form {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
}

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

.form__field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form__field--full {
  grid-column: 1 / -1;
}

.form__label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-text);
}

.form__label .required {
  color: var(--color-primary);
  margin-left: 2px;
}

.form__input,
.form__textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: var(--fs-base);
  background-color: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  transition: border-color var(--transition-base),
              background-color var(--transition-base),
              box-shadow var(--transition-base);
  font-family: inherit;
}

.form__textarea {
  min-height: 140px;
  resize: vertical;
  line-height: var(--lh-relaxed);
}

.form__input:hover,
.form__textarea:hover {
  border-color: var(--color-border-strong);
}

.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background-color: var(--color-surface);
  box-shadow: 0 0 0 4px var(--color-primary-tint);
}

.form__input[aria-invalid="true"],
.form__textarea[aria-invalid="true"] {
  border-color: var(--color-error);
}

.form__error {
  font-size: var(--fs-xs);
  color: var(--color-error);
  min-height: 1em;
  font-weight: 500;
}

.form__hint {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
  line-height: var(--lh-relaxed);
}

.form__hint a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form__actions {
  margin-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.form__status {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: 500;
  display: none;
}

.form__status--success {
  display: block;
  background-color: var(--color-primary-tint);
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.form__status--error {
  display: block;
  background-color: #FCEDEC;
  color: var(--color-error);
  border: 1px solid var(--color-error);
}


/* --------------------------------------------------------------------------
   15. Legal-Sektionen (Impressum / Datenschutz)
   -------------------------------------------------------------------------- */
.legal {
  max-width: 820px;
  margin: 0 auto;
}

.legal h1 {
  font-size: clamp(var(--fs-2xl), 4vw, var(--fs-4xl));
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
}

.legal h2 {
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
  font-size: var(--fs-xl);
}

.legal h3 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
  font-size: var(--fs-lg);
}

.legal address {
  font-style: normal;
  line-height: var(--lh-relaxed);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
}

.legal p,
.legal ul {
  font-size: var(--fs-base);
  color: var(--color-text-secondary);
}

.legal a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal__back {
  display: block;
  width: fit-content;
  margin: var(--space-2) 0 var(--space-6);
  font-size: var(--fs-sm);
  font-weight: 600;
}


/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.footer {
  background-color: var(--color-text);
  color: rgba(255, 255, 255, 0.85);
  padding-top: var(--space-16);
  padding-bottom: var(--space-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

.footer__simple {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-8);
  align-items: start;
  margin-bottom: var(--space-10);
}

.footer__simple-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #FFFFFF;
}

.footer__simple-brand strong {
  font-size: var(--fs-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.footer__simple-brand span {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.7);
}

.footer__simple-contact {
  font-style: normal;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.8);
  line-height: var(--lh-relaxed);
}

@media (max-width: 640px) {
  .footer__simple {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

.footer__brand-block {
  max-width: 360px;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: #FFFFFF;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.footer__brand:hover {
  color: #FFFFFF;
}

.footer__brand-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background-color: var(--color-primary-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer__brand-logo svg {
  width: 24px;
  height: 24px;
  color: #FFFFFF;
}

.footer__tagline {
  margin: 0;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.7);
  line-height: var(--lh-relaxed);
}

.footer__col-title {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
}

.footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer__list li {
  margin: 0;
  color: inherit;
}

.footer__link {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--fs-sm);
  text-decoration: none;
  transition: color var(--transition-base);
}

.footer__link:hover {
  color: #FFFFFF;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.6);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer__legal a {
  color: rgba(255, 255, 255, 0.6);
}

.footer__legal a:hover {
  color: #FFFFFF;
}


/* --------------------------------------------------------------------------
   17. Mobile Sticky CTA
   -------------------------------------------------------------------------- */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 10px 16px;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  gap: 8px;
}

.mobile-cta .btn {
  flex: 1;
  padding: 12px 16px;
  min-height: 48px;
  font-size: var(--fs-sm);
}


/* --------------------------------------------------------------------------
   18. Animationen (Reveal-on-Scroll)
       → Eigentliche Regeln stehen weiter unten im Motions-Block
   -------------------------------------------------------------------------- */


/* --------------------------------------------------------------------------
   19. Responsive: Tablet
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .about {
    grid-template-columns: 1fr;
  }

  .about__media {
    max-width: 480px;
    margin: 0 auto;
  }

  .about__badge {
    bottom: -24px;
    right: 16px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand-block {
    grid-column: 1 / -1;
  }

  .gallery__item:nth-child(1) { grid-column: span 12; }
  .gallery__item:nth-child(2) { grid-column: span 12; }
  .gallery__item:nth-child(3) { grid-column: span 6; }
  .gallery__item:nth-child(4) { grid-column: span 6; }
  .gallery__item:nth-child(5) { grid-column: span 12; }
}


/* --------------------------------------------------------------------------
   20. Responsive: Mobile
   -------------------------------------------------------------------------- */
@media (max-width: 720px) {
  :root {
    --header-height: 64px;
    --section-pad-y: clamp(56px, 12vw, 88px);
  }

  /* Mobile-Nav */
  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-bg);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: var(--space-6) var(--container-pad);
    gap: var(--space-2);
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    overflow-y: auto;
    z-index: calc(var(--z-fixed) - 1);
  }

  .nav--open {
    transform: translateX(0);
  }

  .nav__link {
    font-size: var(--fs-md);
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
  }

  .nav__link:hover {
    background-color: transparent;
    color: var(--color-primary);
  }

  .menu-toggle {
    display: inline-flex;
  }

  .header__tel-text {
    display: none;
  }

  .header__tel {
    padding: 10px;
  }

  .header__cta .btn {
    display: none;
  }

  /* Hero auf Mobile: Video bleibt sichtbar */
  .hero__video {
    display: block;
  }

  .hero__inner {
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
  }

  .hero__lead {
    font-size: var(--fs-md);
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__trust {
    gap: var(--space-3) var(--space-5);
  }

  .hero__trust li {
    font-size: var(--fs-xs);
  }

  .hero__scroll-hint {
    display: none;
  }

  /* Mobile CTA Bar */
  .mobile-cta {
    display: flex;
  }

  body {
    padding-bottom: 72px; /* Platz für sticky mobile-cta */
  }

  /* Kontakt-Karten einspaltig auf Mobile */
  .contact__info {
    grid-template-columns: 1fr;
  }

  /* About */
  .about__stats {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer__brand-block {
    grid-column: auto;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  /* Gallery */
  .gallery {
    gap: var(--space-3);
  }

  .gallery__item:nth-child(n) {
    grid-column: span 12;
    aspect-ratio: 4 / 3;
  }
}


/* --------------------------------------------------------------------------
   21. Reduzierte Motion: Hero-Bounce stoppen
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .hero__scroll-hint {
    animation: none;
  }
}


/* --------------------------------------------------------------------------
   22. Print
   -------------------------------------------------------------------------- */
@media print {
  .header,
  .mobile-cta,
  .hero__media,
  .hero__overlay,
  .hero__scroll-hint,
  .form,
  .footer {
    display: none !important;
  }

  body {
    background: #FFFFFF;
    color: #000;
  }
}


/* ==========================================================================
   23. MODELL-2 · 3D · MOTION · PARALLAX
   ========================================================================== */

/* 3D-Kontext nur für gezielte Sektionen (nicht body, das stört das Layout) */
.services-grid,
.usps,
.gallery,
.trust-strip__grid,
.showcase__stage,
.contact__info {
  perspective: 1200px;
}

/* ------ HERO: Subtle parallax + Ken-Burns video ------ */
.hero__video {
  animation: kenBurns 28s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes kenBurns {
  0%   { transform: scale(1.05) translate(0, 0); }
  100% { transform: scale(1.18) translate(-2%, -2%); }
}

.hero__content {
  transform: translate3d(0, var(--scrollY, 0), 0);
  will-change: transform;
}

.hero__title em {
  background: linear-gradient(120deg, #6BCB77 0%, #FBBF24 50%, #6BCB77 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 8s linear infinite;
}
@keyframes shimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* ------ MARQUEE (horizontaler Scroll-Streifen) ------ */
.marquee {
  background: #0F2A1B;
  color: #FFFFFF;
  padding: 22px 0;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
}
.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0;  background: linear-gradient(90deg, #0F2A1B 0%, transparent 100%); }
.marquee::after  { right: 0; background: linear-gradient(-90deg, #0F2A1B 0%, transparent 100%); }

.marquee__track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 35s linear infinite;
}
.marquee__row {
  display: flex;
  align-items: center;
  gap: 36px;
  padding-right: 36px;
}
.marquee__item {
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  background: linear-gradient(180deg, #FFFFFF 0%, #B8D6C4 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.marquee__dot {
  color: #6BCB77;
  font-size: 14px;
}
@keyframes marqueeScroll {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ------ SERVICE-CARDS: 3D Tilt + Depth ------ */
.services-grid {
  perspective: 1200px;
}
.service-card {
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.4s ease,
              border-color 0.4s ease;
  will-change: transform;
  position: relative;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    600px circle at var(--mx, 50%) var(--my, 50%),
    rgba(31, 78, 46, 0.10),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}
.service-card:hover::before { opacity: 1; }

.service-card:hover {
  box-shadow:
    0 30px 60px -20px rgba(31, 78, 46, 0.25),
    0 18px 36px -18px rgba(0, 0, 0, 0.15);
  border-color: rgba(31, 78, 46, 0.25);
}
.service-card .service-card__icon,
.service-card .service-card__title,
.service-card .service-card__desc {
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.service-card:hover .service-card__title { transform: translateZ(40px); }
.service-card:hover .service-card__desc  { transform: translateZ(20px); }

/* ------ USP-Cards: 3D Float ------ */
.usps {
  perspective: 1200px;
}
.usp {
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.4s ease;
  will-change: transform;
  position: relative;
}
.usp__icon,
.usp__title,
.usp__desc {
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.usp:hover .usp__icon  { transform: translateZ(50px) rotateZ(-6deg); }
.usp:hover .usp__title { transform: translateZ(30px); }
.usp:hover .usp__desc  { transform: translateZ(15px); }
.usp:hover {
  box-shadow:
    0 30px 60px -20px rgba(31, 78, 46, 0.20),
    0 18px 36px -18px rgba(0, 0, 0, 0.10);
}

/* ------ SHOWCASE / MOTION-Video Sektion ------ */
.showcase {
  position: relative;
  padding: clamp(80px, 12vw, 140px) 0;
  background:
    radial-gradient(1200px 600px at 100% 0%, rgba(31, 78, 46, 0.08), transparent 60%),
    radial-gradient(1000px 500px at 0% 100%, rgba(107, 203, 119, 0.06), transparent 60%),
    var(--color-bg, #FAFAF7);
  overflow: clip;
}
.showcase::before {
  content: "";
  position: absolute;
  inset: -20% -10%;
  background:
    radial-gradient(circle at 20% 30%, rgba(31, 78, 46, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(107, 203, 119, 0.03) 0%, transparent 40%);
  z-index: 0;
  animation: drift 30s ease-in-out infinite alternate;
}
@keyframes drift {
  0%   { transform: translate(0,0) rotate(0deg); }
  100% { transform: translate(2%, -2%) rotate(2deg); }
}

.showcase__stage {
  position: relative;
  margin: 64px auto 0;
  max-width: 980px;
  perspective: 1400px;
  perspective-origin: 50% 50%;
  z-index: 1;
}

.showcase__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  transform-style: preserve-3d;
  transform:
    rotateX(var(--rx, 0deg))
    rotateY(var(--ry, 0deg))
    translateZ(0);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
  box-shadow:
    0 60px 120px -30px rgba(31, 78, 46, 0.45),
    0 30px 60px -20px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

.showcase__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.05);
}

.showcase__glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at center, rgba(107, 203, 119, 0.25), transparent 60%);
  filter: blur(40px);
  z-index: -1;
  animation: pulseGlow 6s ease-in-out infinite alternate;
}
@keyframes pulseGlow {
  0%   { opacity: 0.4; transform: scale(1); }
  100% { opacity: 0.8; transform: scale(1.1); }
}

.showcase__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(31, 78, 46, 0.2);
  pointer-events: none;
}
.showcase__ring--1 {
  inset: -60px;
  border-color: rgba(31, 78, 46, 0.15);
  animation: spin 28s linear infinite;
}
.showcase__ring--2 {
  inset: -110px;
  border-color: rgba(107, 203, 119, 0.10);
  border-style: dashed;
  animation: spin 40s linear infinite reverse;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Schwebende Trust-Badges im Showcase */
.showcase__floats {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.showcase__float {
  position: absolute;
  background: #FFFFFF;
  color: #1F4E2E;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 18px 40px -10px rgba(0,0,0,0.18), 0 0 0 1px rgba(31,78,46,0.06);
  white-space: nowrap;
  transform-style: preserve-3d;
}
.showcase__float--1 {
  top: -8%;
  left: 4%;
  transform: rotateZ(-6deg) translateZ(80px);
  animation: float1 7s ease-in-out infinite alternate;
}
.showcase__float--2 {
  top: 12%;
  right: -4%;
  background: #1F4E2E;
  color: #FFFFFF;
  transform: rotateZ(5deg) translateZ(60px);
  animation: float2 8s ease-in-out infinite alternate;
}
.showcase__float--3 {
  bottom: 8%;
  left: -3%;
  transform: rotateZ(4deg) translateZ(70px);
  animation: float3 9s ease-in-out infinite alternate;
}
.showcase__float--4 {
  bottom: -6%;
  right: 8%;
  background: #FBBF24;
  color: #1A1A1A;
  transform: rotateZ(-3deg) translateZ(90px);
  animation: float4 10s ease-in-out infinite alternate;
}
@keyframes float1 {
  0%   { transform: rotateZ(-6deg) translateY(0)   translateZ(80px); }
  100% { transform: rotateZ(-3deg) translateY(-12px) translateZ(80px); }
}
@keyframes float2 {
  0%   { transform: rotateZ(5deg)  translateY(0)   translateZ(60px); }
  100% { transform: rotateZ(2deg)  translateY(14px) translateZ(60px); }
}
@keyframes float3 {
  0%   { transform: rotateZ(4deg)  translateY(0)    translateZ(70px); }
  100% { transform: rotateZ(7deg)  translateY(-10px) translateZ(70px); }
}
@keyframes float4 {
  0%   { transform: rotateZ(-3deg) translateY(0)   translateZ(90px); }
  100% { transform: rotateZ(0deg)  translateY(8px) translateZ(90px); }
}

@media (max-width: 720px) {
  .showcase__float { font-size: 11px; padding: 6px 12px; }
  .showcase__float--1 { top: -6%; left: 2%; }
  .showcase__float--2 { top: 8%; right: -2%; }
  .showcase__float--3 { bottom: 6%; left: -2%; }
  .showcase__float--4 { bottom: -4%; right: 4%; }
  .showcase__ring--1, .showcase__ring--2 { display: none; }
}

/* ------ GALLERY: Parallax / Scroll Float ------ */
.gallery__item {
  transform: translate3d(0, var(--gallery-offset, 0), 0);
  transition: transform 0.3s ease-out;
  will-change: transform;
}
.gallery__item:hover img {
  transform: scale(1.08) translateZ(20px);
}
.gallery__item img {
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

/* ------ ABOUT IMAGE: 3D float on scroll ------ */
.about__media {
  transform-style: preserve-3d;
  transform: rotateY(var(--about-ry, 0deg));
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.about__image {
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.about:hover .about__image {
  transform: translateZ(20px) scale(1.02);
}

/* ------ Reveal: standardmaessig sichtbar! Nur wenn JS bereit ist, wird
   verborgen. So bleibt der Content sichtbar, selbst wenn JS scheitert. ------ */
.reveal {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}
.js-ready .reveal {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
}
.js-ready .reveal.reveal--visible,
.js-ready .reveal--visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* ------ Reduced-Motion Override: alles statisch ------ */
/* ------ USP-Cards: Maus-Spotlight + Border-Glow ------ */
.usp {
  isolation: isolate;
  background-clip: padding-box;
}
.usp::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    480px circle at var(--mx, 50%) var(--my, 50%),
    rgba(107, 203, 119, 0.18),
    rgba(31, 78, 46, 0.06) 30%,
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 1;
}
.usp::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--angle, 0deg) at var(--mx, 50%) var(--my, 50%),
    rgba(31, 78, 46, 0) 0deg,
    rgba(31, 78, 46, 0.6) 90deg,
    rgba(107, 203, 119, 0.5) 180deg,
    rgba(31, 78, 46, 0) 270deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 0;
}
.usp:hover::before,
.usp:hover::after { opacity: 1; }
.usp > * { position: relative; z-index: 2; }

.usp__icon {
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
              color 0.3s ease,
              background-color 0.3s ease;
}
.usp:hover .usp__icon {
  transform: translateZ(50px) rotateZ(-8deg) scale(1.08);
  background-color: var(--color-primary);
  color: #FFFFFF;
}

/* ------ SERVICE-Cards: Shine-Sweep + Border-Highlight ------ */
.service-card {
  isolation: isolate;
  background-clip: padding-box;
}
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    115deg,
    transparent 0%,
    transparent 40%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 60%,
    transparent 100%
  );
  background-size: 250% 100%;
  background-position: 200% 0;
  opacity: 0;
  transition: background-position 0.9s cubic-bezier(0.2, 0.8, 0.2, 1),
              opacity 0.3s ease;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: overlay;
}
.service-card:hover::after {
  opacity: 1;
  background-position: -50% 0;
}
.service-card > * { position: relative; z-index: 3; }

.service-card__icon {
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
              background-color 0.4s ease,
              color 0.4s ease;
}
.service-card:hover .service-card__icon {
  transform: translateZ(60px) rotate(-10deg) scale(1.1);
  background-color: var(--color-primary);
  color: #FFFFFF;
}

/* ------ SHOWCASE-FRAME: Mouse-Spotlight + reflektierender Glanz ------ */
.showcase__frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.15),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: overlay;
}
.showcase__frame:hover::before { opacity: 1; }

.showcase__frame::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(
    120deg,
    rgba(107, 203, 119, 0) 30%,
    rgba(107, 203, 119, 0.4) 50%,
    rgba(31, 78, 46, 0.6) 60%,
    rgba(107, 203, 119, 0) 80%
  );
  background-size: 200% 100%;
  background-position: 200% 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  padding: 2px;
  opacity: 0;
  transition: opacity 0.4s ease, background-position 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
  z-index: 1;
}
.showcase__frame:hover::after {
  opacity: 1;
  background-position: -100% 0;
}

/* ------ GALLERY: Cursor-Spotlight + verstärkter Hover ------ */
.gallery__item {
  position: relative;
  isolation: isolate;
}
.gallery__item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    300px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.25),
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: overlay;
}
.gallery__item:hover::before { opacity: 1; }
.gallery__item:hover {
  transform: translate3d(0, calc(var(--gallery-offset, 0) - 4px), 0) scale(1.01);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.3);
}

/* ------ MAGNETISCHE BUTTONS ------ */
.btn {
  position: relative;
  transform: translate3d(var(--mag-x, 0), var(--mag-y, 0), 0);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.3s ease,
              background-color 0.25s ease,
              color 0.25s ease;
  overflow: hidden;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    200px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.25),
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}
.btn:hover::before { opacity: 1; }
.btn:hover {
  box-shadow: 0 18px 40px -10px rgba(31, 78, 46, 0.35);
}
.btn > * { position: relative; z-index: 2; }
.btn .btn__icon {
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.btn:hover .btn__icon {
  transform: translateX(6px);
}

/* ------ CONTACT-CARDS: Mouse-Spotlight ------ */
.contact-card {
  position: relative;
  isolation: isolate;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
}
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    320px circle at var(--mx, 50%) var(--my, 50%),
    rgba(31, 78, 46, 0.10),
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -15px rgba(31, 78, 46, 0.25);
}
.contact-card:hover::before { opacity: 1; }
.contact-card > * { position: relative; z-index: 2; }
.contact-card__icon {
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
              background-color 0.3s ease,
              color 0.3s ease;
}
.contact-card:hover .contact-card__icon {
  transform: rotate(-8deg) scale(1.1);
  background-color: var(--color-primary);
  color: #FFFFFF;
}

/* ------ TRUST-STRIP: Hover-Pop ------ */
.trust-strip__item {
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.trust-strip__item:hover {
  transform: translateY(-4px);
}
.trust-strip__icon {
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
              background-color 0.3s ease,
              color 0.3s ease;
}
.trust-strip__item:hover .trust-strip__icon {
  transform: rotate(-10deg) scale(1.1);
  background-color: var(--color-primary);
  color: #FFFFFF;
}

/* ------ NAV-Links: Animierter Underline-Sweep ------ */
.nav__link {
  position: relative;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 8px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), #6BCB77);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nav__link:hover::after { transform: scaleX(1); }

/* ------ HERO Trust-Items: Pop ------ */
.hero__trust li {
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
              color 0.3s ease;
}
.hero__trust li:hover {
  transform: translateY(-2px) scale(1.04);
  color: #6BCB77;
}

/* ------ Reduced-Motion Override ------ */
@media (prefers-reduced-motion: reduce) {
  .marquee__track,
  .hero__video,
  .showcase__glow,
  .showcase::before,
  .showcase__ring,
  .showcase__float,
  .hero__title em {
    animation: none !important;
  }
  .service-card,
  .usp,
  .showcase__frame,
  .reveal,
  .btn,
  .contact-card,
  .trust-strip__item,
  .gallery__item {
    transform: none !important;
    transition: opacity 0.3s ease !important;
  }
  .service-card::after,
  .usp::before,
  .usp::after,
  .showcase__frame::before,
  .showcase__frame::after,
  .gallery__item::before,
  .btn::before,
  .contact-card::before {
    display: none !important;
  }
  .reveal { opacity: 1; }
}
