/* ═══════════════════════════════════════════════════════════════
   Soltech AG — Haupt-Stylesheet v4.0
   Premium smooth: Lenis + GSAP + ScrollTrigger + Three.js
   Mobile-first, reduced-motion safe, accessible
   ════════════════════════════════════════════════════════════════ */

@import url('../assets/design-tokens.css');

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../assets/fonts/plus-jakarta-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

/* ── Extra CSS variables for easing / animation ── */
:root {
  --st-ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --st-ease-expo-out: cubic-bezier(0.16, 1, 0.3, 1);
  --st-ease-expo-in-out: cubic-bezier(0.87, 0, 0.13, 1);
}

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

html {
  font-size: 16px;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

body {
  font-family: var(--st-font-body);
  background-color: var(--st-bg);
  color: var(--st-text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  -webkit-hyphens: none !important;
  hyphens: none !important;
}

h1, h2, h3, h4, h5, h6, .hero__title, .hero__label, .hero__sub, .tres-title, .tres-label {
  text-wrap: balance;
  -webkit-hyphens: none !important;
  hyphens: none !important;
}

p, li, .text-pretty {
  text-wrap: pretty;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

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

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

/* ── Utilities ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-left: var(--st-space-5);
  padding-right: var(--st-space-5);
}

@media (min-width: 768px) {
  .container {
    padding-left: var(--st-space-7);
    padding-right: var(--st-space-7);
  }
}

.hide-mobile {
  display: none;
}

@media (min-width: 768px) {
  .hide-mobile {
    display: inline;
  }
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--st-font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--st-text-primary);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.6rem, 7vw, 4.8rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
h4 { font-size: 1.15rem; }

p {
  color: var(--st-text-secondary);
  line-height: 1.7;
}

.text-center { text-align: center; }
.text-white { color: var(--st-white); }
.text-accent { color: var(--st-secondary); }

/* ── Section layout ── */
.section {
  padding-top: var(--st-section-padding-y-mobile);
  padding-bottom: var(--st-section-padding-y-mobile);
}

@media (min-width: 1024px) {
  .section {
    padding-top: var(--st-section-padding-y);
    padding-bottom: var(--st-section-padding-y);
  }
}

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

.section-header {
  max-width: 680px;
  margin-bottom: var(--st-space-8);
}

.section-header--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-header--tighter {
  margin-bottom: var(--st-space-5);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--st-space-3);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--st-primary);
  margin-bottom: var(--st-space-4);
  overflow: hidden;
}

.section-label-inner {
  display: inline-flex;
  align-items: center;
  gap: var(--st-space-3);
  transform: translateX(0);
}

.section-label::before,
.section-label-inner::before {
  content: '';
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--st-primary), var(--st-secondary));
  border-radius: 2px;
  flex-shrink: 0;
}

/* Avoid duplicate label line when an inner wrapper is used */
.section-label:has(.section-label-inner)::before {
  display: none;
}

/* ── Scroll progress indicator ── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--st-primary), var(--st-secondary));
  z-index: 9999;
  transform-origin: left;
  transform: scaleX(0);
  pointer-events: none;
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--st-nav-height);
  background-color: transparent;
  transition: background-color 0.4s var(--st-ease-smooth), backdrop-filter 0.4s var(--st-ease-smooth), box-shadow 0.4s var(--st-ease-smooth);
}

.nav.scrolled {
  background-color: rgba(0, 26, 46, 0.92);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.home .nav:not(.scrolled) {
  background-color: transparent;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--st-space-4);
}

.nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav__logo-img {
  height: 48px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.95;
  transition: opacity var(--st-transition-base), transform var(--st-transition-base);
}

.nav__logo:hover .nav__logo-img,
.nav__logo:focus-visible .nav__logo-img {
  opacity: 1;
  transform: scale(1.03);
}

.nav__links {
  display: none;
  align-items: center;
  gap: var(--st-space-6);
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.80);
  letter-spacing: -0.01em;
  padding: var(--st-space-2) 0;
  position: relative;
  transition: color var(--st-transition-base);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 100%;
  height: 2px;
  background: var(--st-secondary);
  border-radius: 2px;
  transition: right var(--st-transition-base);
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--st-white);
}

.nav__link.active {
  color: var(--st-secondary);
}

.nav__link:hover::after,
.nav__link:focus-visible::after,
.nav__link.active::after {
  right: 0;
}

.nav__cta {
  display: none;
}

.nav__cta {
  background-color: var(--st-secondary);
  color: var(--st-navy-900);
  box-shadow: none;
  transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav__cta::before {
  display: none !important; /* Disable the extreme radial shine from btn--primary */
}

a.nav__cta:hover,
a.nav__cta:focus-visible {
  background-color: transparent !important;
  color: var(--st-secondary) !important;
  box-shadow: inset 0 0 0 1.5px var(--st-secondary) !important;
  transform: translateY(-2px);
}

.nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  gap: 5px;
  color: var(--st-white);
  z-index: 1002;
  border-radius: var(--st-radius-md);
  transition: background-color var(--st-transition-fast);
}

.nav__toggle:hover,
.nav__toggle:focus-visible {
  background-color: rgba(255, 255, 255, 0.15);
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background-color: currentColor;
  border-radius: 2px;
  transition: transform var(--st-transition-base), opacity var(--st-transition-base);
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile navigation overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: linear-gradient(160deg, var(--st-primary) 0%, var(--st-surface-dark) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--st-space-5);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--st-transition-base), visibility var(--st-transition-base);
}

.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav__link {
  font-family: var(--st-font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--st-white);
  padding: var(--st-space-2);
  position: relative;
  letter-spacing: -0.02em;
}

.mobile-nav__link.active {
  color: var(--st-secondary);
}

.mobile-nav__link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--st-primary), var(--st-secondary));
  border-radius: 2px;
}

@media (min-width: 1024px) {
  .nav__links,
  .nav__cta {
    display: flex;
  }

  .nav__toggle {
    display: none;
  }

  .mobile-nav {
    display: none;
  }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--st-space-3);
  font-size: var(--st-btn-font-size);
  font-weight: var(--st-btn-font-weight);
  letter-spacing: -0.01em;
  padding: var(--st-btn-padding);
  border-radius: var(--st-btn-radius);
  transition: background-color var(--st-transition-base), color var(--st-transition-base), transform var(--st-transition-base), box-shadow var(--st-transition-base);
  min-height: 48px;
  min-width: 44px;
  position: relative;
  overflow: hidden;
  touch-action: manipulation;
}

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

.btn:focus-visible {
  outline: 2px solid var(--st-primary);
  outline-offset: 3px;
}

.btn--lg {
  padding: var(--st-btn-padding);
  font-size: 1rem;
}

.btn--primary {
  background-color: var(--st-btn-primary-bg);
  color: var(--st-btn-primary-text);
  box-shadow: var(--st-shadow-blue);
}

.btn--primary:hover {
  background-color: var(--st-btn-primary-bg-hover);
  box-shadow: 0 14px 40px -12px rgba(0, 42, 74, 0.35);
}

.btn--secondary {
  background: linear-gradient(135deg, var(--st-navy-800) 0%, var(--st-primary) 100%);
  color: var(--st-white);
  box-shadow: 0 10px 30px -10px rgba(10, 57, 91, 0.35);
}

.btn--secondary:hover {
  background: linear-gradient(135deg, var(--st-navy-900) 0%, var(--st-navy-800) 100%);
  box-shadow: 0 14px 40px -12px rgba(10, 57, 91, 0.45);
}

.btn--outline {
  background-color: transparent;
  color: var(--st-btn-outline-text);
  border: 1.5px solid var(--st-btn-outline-border);
}

.btn--outline:hover {
  background-color: var(--st-btn-outline-bg-hover);
  color: var(--st-btn-outline-text-hover);
}

.btn--ghost {
  background-color: transparent;
  color: var(--st-primary);
}

.btn--ghost:hover {
  background-color: var(--st-surface-alt);
  color: var(--st-primary);
}

.btn--outline-light {
  background-color: transparent;
  color: var(--st-white);
  border: 1.5px solid rgba(255, 255, 255, 0.50);
}

.btn--outline-light:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.80);
}

.btn--accent {
  background: linear-gradient(135deg, var(--st-navy-700) 0%, var(--st-primary) 100%);
  color: var(--st-white);
  box-shadow: 0 10px 30px -10px rgba(10, 57, 91, 0.35);
}

.btn--accent:hover {
  background: linear-gradient(135deg, var(--st-navy-800) 0%, var(--st-navy-700) 100%);
  box-shadow: 0 14px 40px -12px rgba(10, 57, 91, 0.45);
}

.btn .arrow {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
  transition: transform var(--st-transition-base);
}

.btn:hover .arrow {
  transform: translateX(4px);
}

/* Button shine */
.btn--primary,
.btn--secondary {
  position: relative;
  overflow: hidden;
}

.btn--primary::before,
.btn--secondary::before {
  content: '';
  position: absolute;
  top: var(--shine-y, 50%);
  left: var(--shine-x, 50%);
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, transparent 70%);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: transform 0.5s var(--st-ease-smooth), opacity 0.5s var(--st-ease-smooth);
  pointer-events: none;
}

.btn--primary:hover::before,
.btn--secondary:hover::before {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════
   HERO — Premium Awwwards-ready Preloader
═══════════════════════════════════════════════════════════════ */

#heroLoader {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: var(--st-navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  /* GSAP will handle the exit animation, so no CSS transition here */
}

.hero-loader__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--st-space-6);
  width: 100%;
}

.hero-loader__logo {
  opacity: 0; /* GSAP will fade and slide this in */
  transform: translateY(15px);
}

.hero-loader__logo img {
  height: 60px;
  width: auto;
  opacity: 0.95;
}

.hero-loader__progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--st-space-2);
  width: 100%;
}

.hero-loader__track {
  width: 140px;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
}

.hero-loader__fill {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  width: 0%;
  background: var(--st-white);
  transform: translateX(-50%);
  /* GSAP will animate width */
}

/* Scroll animation section (Optimal scroll speed sweet spot) */
.hero-scroll {
  position: relative;
  height: 175vh;
  background: var(--st-surface-dark);
}

@media (max-width: 1024px) { .hero-scroll { height: 165vh; } }
@media (max-width: 768px)  { .hero-scroll { height: 195vh; } }

.hero-scroll__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: var(--st-surface-dark);
}

#frameCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

/* Mouse spotlight (hardware accelerated transform) */
.hero__spotlight {
  position: absolute;
  top: 0;
  left: 0;
  width: 1400px;
  height: 1400px;
  margin-top: -700px;
  margin-left: -700px;
  z-index: 2; /* above the blue veil */
  /* Eased gradient using pure light to prevent color-banding */
  background: radial-gradient(
    50% 50% at 50% 50%,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.11) 22%,
    rgba(255, 255, 255, 0.06) 45%,
    rgba(255, 255, 255, 0.02) 65%,
    rgba(255, 255, 255, 0.005) 85%,
    rgba(255, 255, 255, 0) 100%
  );
  /* The blur filter completely destroys any remaining 8-bit gradient rings */
  filter: blur(80px);
  -webkit-filter: blur(80px);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  mix-blend-mode: screen;
  will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
  .hero__spotlight {
    opacity: 0.85; /* slightly softer max opacity */
  }
}

.hero-canvas__overlay {
  position: absolute;
  inset: 0;
  z-index: 1; /* moved below the spotlight */
  background: linear-gradient(
    110deg,
    rgba(0, 26, 46, 1.00) 0%,
    rgba(0, 26, 46, 0.80) 45%,
    rgba(0, 26, 46, 0.43) 100%
  );
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.hero__content {
  position: absolute;
  z-index: 3;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--st-space-5);
  width: 100%;
  top: 50%;
  left: 0;
  right: 0;
  text-align: center;
  transform: translateY(-50%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero__label {
  justify-content: center;
  color: var(--st-secondary);
}

.hero__title {
  color: var(--st-white);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  line-height: 1.05;
  margin-bottom: var(--st-space-6);
  letter-spacing: -0.03em;
}

.hero__title em {
  font-style: normal;
  color: var(--st-secondary);
}

.hero__sub {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  color: rgba(255, 255, 255, 0.75);
  max-width: 640px;
  margin: 0 auto var(--st-space-7);
  line-height: 1.65;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--st-space-4);
  justify-content: center;
}

.hero__scroll {
  position: absolute;
  bottom: var(--st-space-7);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--st-space-2);
  color: rgba(255, 255, 255, 0.40);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  transition: opacity 0.4s ease;
}

.hero__scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.40), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top;    opacity: 0; }
  50%  { transform: scaleY(1); transform-origin: top;    opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* Stats bar */
.stats-bar {
  background: var(--st-surface-dark);
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.stats-bar__inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .stats-bar__inner {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stats-bar__item {
  padding: var(--st-space-6) var(--st-space-4);
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
  transition: background var(--st-transition-base);
}

.stats-bar__item:nth-child(2n) { border-right: none; }
.stats-bar__item:nth-last-child(-n+2) { border-bottom: none; }

@media (min-width: 768px) {
  .stats-bar__item:nth-child(2n) { border-right: 1px solid rgba(255, 255, 255, 0.06); }
  .stats-bar__item:nth-child(4n) { border-right: none; }
  .stats-bar__item:nth-last-child(-n+4) { border-bottom: none; }
}

.stats-bar__item:hover { background: rgba(255, 255, 255, 0.03); }

.stats-bar__value {
  font-family: var(--st-font-heading);
  font-size: clamp(2.2rem, 5vw, 3rem);
  color: var(--st-secondary);
  line-height: 1;
  margin-bottom: var(--st-space-2);
  font-weight: 800;
}

.stats-bar__suffix {
  font-size: 1.2rem;
  vertical-align: super;
}

.stats-bar__label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════
   GSAP flicker prevention for hero content
═══════════════════════════════════════════════════════════════ */
.js #heroContent .hero__label,
.js #heroContent .hero__title,
.js #heroContent .hero__sub,
.js #heroContent .hero__ctas,
.js #heroScrollHint {
  opacity: 0;
}

/* ── Trust strip + Marquee ── */
.trust-strip {
  background-color: var(--st-white);
  border-bottom: 1px solid var(--st-border);
  padding: var(--st-space-6) 0;
  overflow: hidden;
}

.trust-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--st-space-5);
  text-align: center;
}

.trust-strip__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--st-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.trust-strip__items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--st-space-3);
}

.trust-strip__item {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--st-primary);
  padding: 0.75rem 1.5rem;
  background-color: var(--st-surface-alt);
  border-radius: var(--st-radius-pill);
}

.trust-strip__marquee {
  display: none;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee__track {
  display: flex;
  gap: var(--st-space-6);
  width: max-content;
  animation: marquee var(--marquee-duration, 28s) linear infinite;
}

.marquee__track span {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--st-primary);
  padding: 0.75rem 1.5rem;
  background-color: var(--st-surface-alt);
  border-radius: var(--st-radius-pill);
  white-space: nowrap;
}

.trust-strip__marquee:hover .marquee__track {
  animation-play-state: paused;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(var(--marquee-translate, -50%)); }
}

@media (min-width: 1024px) {
  .trust-strip__items {
    display: none;
  }

  .trust-strip__marquee {
    display: block;
  }
}

/* ── Cards / Grid ── */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--st-space-5);
}

@media (min-width: 640px) {
  .card-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .card-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  background-color: var(--st-card-bg);
  border-radius: var(--st-card-radius);
  box-shadow: var(--st-card-shadow);
  overflow: hidden;
  transition: transform var(--st-transition-base), box-shadow var(--st-transition-base);
  border: 1px solid var(--st-border-light);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--st-card-shadow-hover);
}

.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

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

/* Removed image hover scale (AI anti-pattern) */

.card__body {
  padding: var(--st-card-padding);
}

.card__title {
  font-family: var(--st-font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: var(--st-space-2);
  color: var(--st-text-primary);
}

.card__text {
  font-size: 0.95rem;
  color: var(--st-text-secondary);
  line-height: 1.65;
}

.card__link {
  display: block;
  text-decoration: none;
}

.card__link:focus-visible {
  outline: 2px solid var(--st-primary);
  outline-offset: 3px;
}

/* ── Bodenkategorien-Index (Startseite) — Heid-style Galerie ── */
.boden-section {
  padding-top: var(--st-space-6);
  padding-bottom: var(--st-space-6);
}

@media (min-width: 1024px) {
  .boden-section {
    padding-top: var(--st-space-7);
    padding-bottom: var(--st-space-7);
  }
}

.boden-section .section-header {
  margin-bottom: var(--st-space-3);
}

.boden-section .section-label {
  margin-bottom: var(--st-space-1);
}

.floor-gallery-shell {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto var(--st-space-10) auto;
  padding: 0 2vw;
}

@media (max-width: 768px) {
  .floor-gallery-shell {
    padding: 0 var(--st-space-5);
  }
}

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

@media (min-width: 640px) and (max-width: 1023px) {
  .floor-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--st-space-4);
  }
}

@media (min-width: 1024px) {
  .floor-gallery {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 340px;
    gap: var(--st-space-5);
  }

  .floor-card {
    aspect-ratio: auto;
  }

  .floor-card__media {
    aspect-ratio: auto;
    height: 100%;
  }

  .floor-card:nth-child(1) { grid-column: span 7; }
  .floor-card:nth-child(2) { grid-column: span 5; }
  .floor-card:nth-child(3),
  .floor-card:nth-child(4),
  .floor-card:nth-child(5) { grid-column: span 4; }
  .floor-card:nth-child(6) { grid-column: span 5; }
  .floor-card:nth-child(7) { grid-column: span 7; }
}

@media (min-width: 1440px) {
  .floor-gallery {
    grid-auto-rows: 400px;
  }
}

.floor-card {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  height: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 0;
  overflow: hidden;
  background-color: transparent;
  transition: box-shadow 0.5s var(--st-ease-expo-out);
}

/* Progressive enhancement: cards stay visible without JS. Once the observer is
   ready, each card gets one light, compositor-only entrance and then rests. */
.floor-gallery.is-reveal-ready .floor-card {
  --floor-reveal-delay: 0ms;
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity 520ms cubic-bezier(0.23, 1, 0.32, 1) var(--floor-reveal-delay),
    transform 520ms cubic-bezier(0.23, 1, 0.32, 1) var(--floor-reveal-delay),
    box-shadow 500ms var(--st-ease-expo-out);
}

.floor-gallery.is-reveal-ready .floor-card.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.floor-card:focus-within {
  box-shadow: 0 22px 50px -28px rgba(0, 26, 46, 0.30);
}

.floor-card__link {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  height: 100%;
  text-decoration: none;
  color: inherit;
  transform-origin: center center;
  transform-style: flat;
}

.floor-card__link:focus-visible {
  outline: 2px solid var(--st-primary);
  outline-offset: 3px;
  border-radius: 0;
}

.floor-card__media {
  position: absolute;
  inset: 0;
  width: 100%;
  min-width: 0;
  height: 100%;
  aspect-ratio: auto;
  overflow: hidden;
  pointer-events: none;
}

.floor-card__media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  min-width: 100%;
  max-width: none;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  transform: translate3d(0, 0, 0) scale(1.12);
}

.motion-ready .team-parallax,
.motion-ready .gsap-parallax {
  will-change: transform;
}

.floor-card:nth-child(1) .floor-card__media img { object-position: center 60%; }
.floor-card:nth-child(2) .floor-card__media img { object-position: center 40%; }
.floor-card:nth-child(3) .floor-card__media img { object-position: right 60%; }
.floor-card:nth-child(4) .floor-card__media img { object-position: center center; }
.floor-card:nth-child(5) .floor-card__media img { object-position: center 60%; }
.floor-card:nth-child(6) .floor-card__media img { object-position: center 30%; }

.floor-card__media::before,
.floor-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.6s var(--st-ease-expo-out);
}

.floor-card__media::after {
  background: linear-gradient(0deg, rgba(10, 57, 91, 0.45) 0%, transparent 60%);
  opacity: 1;
}

.floor-card__media::before {
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.7) 0%, transparent 70%);
  opacity: 0;
}

.floor-card:focus-within .floor-card__media::before {
  opacity: 1;
}

.floor-card:focus-within .floor-card__media::after {
  opacity: 0;
}

.floor-card__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--st-space-3);
  padding: 1.15rem;
  transition: transform 0.4s var(--st-ease-expo-out);
  pointer-events: none;
}

.floor-card:focus-within .floor-card__caption {
  transform: translateX(6px);
}

.floor-card__label {
  overflow: hidden;
  display: block;
  padding-bottom: 0.15em;
  margin-bottom: -0.15em;
}

.floor-card__label-inner {
  position: relative;
  display: inline-block;
  font-family: var(--st-font-heading);
  font-size: clamp(1.65rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--st-neutral-300);
  letter-spacing: -0.01em;
  line-height: 1.15;
  white-space: nowrap;
}

.floor-card__label-inner::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  color: var(--st-primary);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  white-space: nowrap;
}

.floor-card:focus-within .floor-card__label-inner::after {
  clip-path: inset(0 0 0 0);
}

.floor-card__arrow {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: var(--st-primary);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.4s var(--st-ease-expo-out), transform 0.4s var(--st-ease-expo-out);
}

.floor-card__arrow .arrow {
  width: 22px;
  height: 22px;
}

.floor-card:focus-within .floor-card__arrow {
  opacity: 1;
  transform: translateX(0);
}

@media (hover: hover) and (pointer: fine) {
  .floor-card:hover {
    box-shadow: 0 22px 50px -28px rgba(0, 26, 46, 0.30);
  }

  .floor-card:hover .floor-card__media::before {
    opacity: 1;
  }

  .floor-card:hover .floor-card__media::after {
    opacity: 0;
  }

  .floor-card:hover .floor-card__caption {
    transform: translateX(6px);
  }

  .floor-card:hover .floor-card__label-inner::after {
    clip-path: inset(0 0 0 0);
  }

  .floor-card:hover .floor-card__arrow {
    opacity: 1;
    transform: translateX(0);
  }
}


.no-js .floor-card__label-inner {
  transform: translateY(0);
}
/* ── Service Index (Subpages) ── */
.service-index {
  display: flex;
  flex-direction: column;
}

.service-index__item {
  display: flex;
  align-items: center;
  padding: var(--st-space-5) 0;
  border-bottom: 1px solid var(--st-border-light);
  text-decoration: none;
  color: var(--st-text-primary);
  transition: padding var(--st-transition-base), color var(--st-transition-base);
  font-family: var(--st-font-heading);
}

.service-index__item:first-child {
  border-top: 1px solid var(--st-border-light);
}

.service-index__item:hover,
.service-index__item:focus-visible {
  padding-left: var(--st-space-4);
  color: var(--st-primary);
  outline: none;
}

.service-index__num {
  font-size: 0.9rem;
  color: var(--st-text-tertiary);
  margin-right: var(--st-space-6);
  width: 2ch;
}

.service-index__name {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 500;
  flex: 1;
}

.service-index__item .arrow {
  width: 32px;
  height: 32px;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity var(--st-transition-base), transform var(--st-transition-base);
}

.service-index__item:hover .arrow,
.service-index__item:focus-visible .arrow {
  opacity: 1;
  transform: translateX(0);
}


/* ── Feature blocks ── */
.feature-grid {
  display: grid;
  gap: var(--st-space-5);
}

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

.feature {
  background-color: var(--st-surface);
  border-radius: var(--st-radius-lg);
  padding: var(--st-space-7);
  box-shadow: var(--st-shadow-sm);
  border: 1px solid var(--st-border);
  transition: transform var(--st-transition-base), box-shadow var(--st-transition-base), border-color var(--st-transition-base);
  transform-style: preserve-3d;
}

.feature:hover {
  box-shadow: var(--st-shadow-lg);
  border-color: var(--st-secondary);
}

.feature__icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: var(--st-radius-md);
  background: linear-gradient(135deg, var(--st-surface-alt), var(--st-border-light));
  color: var(--st-primary);
  display: grid;
  place-items: center;
  margin-bottom: var(--st-space-5);
  transition: transform var(--st-transition-bounce), box-shadow var(--st-transition-base);
}

.feature:hover .feature__icon-wrap {
  transform: scale(1.08) rotate(-4deg);
  box-shadow: var(--st-shadow-blue);
}

.feature__icon {
  width: 28px;
  height: 28px;
}

.feature__title {
  font-family: var(--st-font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: var(--st-space-3);
  letter-spacing: -0.01em;
}

.feature__text {
  font-size: 0.95rem;
  color: var(--st-text-secondary);
  line-height: 1.7;
}

/* ── Split section / Project teaser ── */
.split-section {
  display: grid;
  gap: var(--st-space-8);
  align-items: center;
}

@media (min-width: 1024px) {
  .split-section {
    grid-template-columns: 1fr 1.2fr;
  }
}

.split-section__content {
  max-width: 520px;
}

.split-section__content p {
  margin-bottom: var(--st-space-6);
}

.project-teaser {
  position: relative;
  border-radius: var(--st-radius-xl);
  overflow: hidden;
  box-shadow: var(--st-shadow-xl);
  transform: perspective(1000px) rotateY(-3deg) rotateX(2deg);
  transition: transform var(--st-transition-slow), box-shadow var(--st-transition-slow);
  transform-style: preserve-3d;
}

.project-teaser:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg) translateY(-8px);
  box-shadow: 0 30px 60px -20px rgba(15, 23, 42, 0.25);
}

.project-teaser img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.project-teaser__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 42, 74, 0.9) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--st-space-6);
  gap: var(--st-space-2);
}

.project-teaser__tag {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--st-secondary);
}

.project-teaser__title {
  font-family: var(--st-font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--st-white);
}

/* ── CTA Section (Integrated Tresmares Style) ── */
.cta-section {
  position: relative;
  background-color: var(--st-surface-alt);
  padding-top: var(--st-space-9);
  padding-bottom: var(--st-space-9);
  overflow: hidden;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--st-space-4);
  justify-content: center;
  margin-top: var(--st-space-5);
}

/* ── Page Header ── */
.page-header {
  position: relative;
  min-height: 45vh;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--st-navy-800) 0%, var(--st-navy-700) 100%);
  overflow: hidden;
}

.page-header__bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/hero-natur.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.2;
}

.page-header__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 42, 74, 0.85) 0%, rgba(0, 42, 74, 0.75) 100%);
}

.page-header__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: calc(var(--st-nav-height) + var(--st-space-8)) var(--st-space-5) var(--st-space-8);
}

.page-header__label {
  display: inline-flex;
  align-items: center;
  gap: var(--st-space-3);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--st-secondary);
  margin-bottom: var(--st-space-4);
}

.page-header__label::before {
  content: '';
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--st-primary), var(--st-secondary));
  border-radius: 2px;
}

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: var(--st-space-3);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--st-secondary);
  margin-bottom: var(--st-space-4);
}

.hero__label::before {
  content: '';
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--st-primary), var(--st-secondary));
  border-radius: 2px;
  flex-shrink: 0;
}

.page-header__title {
  color: var(--st-white);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
}

/* ── Project Showcase ── */
.project-showcase {
  display: flex;
  flex-direction: column;
}

.project-showcase__container {
  display: flex;
  flex-direction: column;
  gap: var(--st-space-11);
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: var(--st-space-6);
  position: relative;
  align-items: stretch; /* Image and text match heights */
}

.project-card:first-child {
  margin-top: var(--st-space-11); 
}

@media (min-width: 992px) {
  .project-card {
    flex-direction: row;
    gap: var(--st-space-11);
    justify-content: space-between;
    min-height: auto;
  }
  
  .project-card--reverse {
    flex-direction: row-reverse;
  }
}

.project-card__image-wrapper {
  width: 100%;
  border-radius: var(--st-radius-lg);
  overflow: hidden;
  position: relative;
  transform: translateZ(0);
}

@media (min-width: 992px) {
  .project-card__image-wrapper {
    width: 60%;
    height: auto; 
    /* Matches text height due to stretch */
  }
}

.project-card__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.15); 
  transform-origin: center center;
  will-change: transform;
  backface-visibility: hidden;
}

.project-card__content {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
  padding: 0; /* Remove padding to keep text block compact */
}

@media (min-width: 992px) {
  .project-card__content {
    width: 45%;
    padding: 0; /* Ensures the stretched image perfectly matches the text height without becoming excessively tall */
  }
}

.project-card__number {
  font-family: var(--st-font-mono), monospace;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--st-primary);
  display: flex;
  align-items: center;
  gap: var(--st-space-4);
  margin-bottom: var(--st-space-4);
  /* Reset all the old absolute positioning */
  position: static;
  -webkit-text-stroke: 0;
  text-shadow: none;
  transform: none;
}

.project-card__number::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background-color: var(--st-primary);
  opacity: 0.5;
}

.project-card__title {
  font-size: clamp(2rem, 3vw, 2.5rem); /* Reduced size to prevent 4-line wraps */
  font-family: var(--st-font-heading);
  font-weight: 400; 
  letter-spacing: -0.02em; 
  color: var(--st-text-primary);
  margin-bottom: var(--st-space-6);
  line-height: 1.1;
  z-index: 2;
  position: relative;
}

.project-card__desc {
  font-size: 1.1rem;
  color: var(--st-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--st-space-6);
  z-index: 2;
  position: relative;
}

.project-card__quote {
  position: relative;
  z-index: 2;
  padding: 0;
  padding-left: var(--st-space-6);
  background-color: transparent;
  border-left: 2px solid var(--st-primary); /* Elegant thin blue line matching homepage */
}

.project-card__quote .quote-icon {
  display: none; /* Hide icon to match homepage clean typography */
}

.project-card__quote p {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-style: italic;
  color: var(--st-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--st-space-6);
  position: relative;
  z-index: 2;
  max-width: 90%;
}

.project-card__quote footer {
  font-weight: 600;
  color: var(--st-text-primary);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── Team cards ── */
.team-grid {
  display: grid;
  gap: var(--st-space-5);
}

@media (min-width: 640px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.team-card {
  display: flex;
  align-items: center;
  gap: var(--st-space-5);
  background-color: var(--st-surface);
  border-radius: var(--st-radius-lg);
  padding: var(--st-space-5);
  box-shadow: var(--st-shadow-sm);
  border: 1px solid var(--st-border);
  transition: transform var(--st-transition-base), box-shadow var(--st-transition-base);
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--st-shadow-md);
}

.team-card__avatar {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--st-primary), var(--st-navy-800));
  color: var(--st-white);
  display: grid;
  place-items: center;
  font-family: var(--st-font-heading);
  font-size: 1.6rem;
  font-weight: 700;
}

.team-card__name {
  font-family: var(--st-font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--st-space-1);
}

.team-card__role {
  font-size: 0.85rem;
  color: var(--st-primary);
  font-weight: 600;
  margin-bottom: var(--st-space-2);
}

.team-card__contact {
  font-size: 0.85rem;
  color: var(--st-text-secondary);
  line-height: 1.5;
}

.team-card__contact a {
  color: var(--st-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.team-card__contact a:hover {
  color: var(--st-primary);
}

/* ── Contact / Locations ── */
.location-grid {
  display: grid;
  gap: var(--st-space-5);
}

@media (min-width: 768px) {
  .location-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.location-card {
  background-color: var(--st-surface);
  border-radius: var(--st-radius-lg);
  padding: var(--st-space-7);
  box-shadow: var(--st-shadow-md);
  border: 1px solid var(--st-border);
  transition: transform var(--st-transition-base), box-shadow var(--st-transition-base);
}

.location-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--st-shadow-lg);
}

.location-card h3 {
  margin-bottom: var(--st-space-5);
  color: var(--st-primary);
}

.location-card__item {
  display: flex;
  align-items: flex-start;
  gap: var(--st-space-3);
  margin-bottom: var(--st-space-3);
  color: var(--st-text-secondary);
  font-size: 0.95rem;
}

.location-card__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--st-primary);
  margin-top: 2px;
}

/* ── Form ── */
.form {
  max-width: 640px;
  margin: 0 auto;
  background-color: var(--st-surface);
  border-radius: var(--st-radius-xl);
  padding: var(--st-space-7);
  box-shadow: var(--st-shadow-lg);
  border: 1px solid var(--st-border);
}

.form__group {
  margin-bottom: var(--st-space-5);
}

.form__label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--st-text-primary);
  margin-bottom: var(--st-space-2);
}

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

.form__input,
.form__textarea {
  width: 100%;
  background-color: var(--st-input-bg);
  border: 1px solid var(--st-input-border);
  border-radius: var(--st-input-radius);
  padding: var(--st-input-padding);
  font-size: 1rem;
  transition: border-color var(--st-transition-base), box-shadow var(--st-transition-base);
}

.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--st-input-border-focus);
  box-shadow: 0 0 0 4px rgba(10, 57, 91, 0.12);
}

.form__input.error,
.form__textarea.error {
  border-color: var(--st-error);
}

.form__hint {
  font-size: 0.85rem;
  color: var(--st-error);
  margin-top: var(--st-space-2);
  display: none;
}

.form__hint.is-visible {
  display: block;
}

.form__textarea {
  min-height: 140px;
  resize: vertical;
}

.form__success {
  display: none;
  text-align: center;
  padding: var(--st-space-7);
}

.form__success.is-visible {
  display: block;
}

.form__success svg {
  width: 56px;
  height: 56px;
  color: var(--st-success);
  margin: 0 auto var(--st-space-4);
}

/* ── Footer ── */
.footer {
  background-color: var(--st-navy-900);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--st-space-11) 0 var(--st-space-7);
}

.footer__grid {
  display: grid;
  gap: var(--st-space-8);
  margin-bottom: var(--st-space-8);
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.footer__brand img {
  height: 56px;
  width: auto;
  margin-bottom: var(--st-space-4);
  filter: brightness(0) invert(1);
}

.footer__brand p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  max-width: 300px;
  line-height: 1.65;
}

.footer__title {
  font-family: var(--st-font-heading);
  color: var(--st-white);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: var(--st-space-4);
}

.footer__links li {
  margin-bottom: var(--st-space-3);
}

.footer__links a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  transition: color var(--st-transition-base);
}

.footer__links a:hover,
.footer__links a:focus-visible {
  color: var(--st-secondary);
}

.footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: var(--st-space-3);
  margin-bottom: var(--st-space-3);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer__contact svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--st-secondary);
  margin-top: 2px;
}

.footer__social {
  display: flex;
  gap: var(--st-space-3);
  margin-top: var(--st-space-5);
}

.footer__social a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--st-white);
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: background-color var(--st-transition-base), transform var(--st-transition-base), color var(--st-transition-base);
}

.footer__social a:hover,
.footer__social a:focus-visible {
  background-color: var(--st-primary);
  color: var(--st-white);
  transform: translateY(-3px);
}

.footer__social svg {
  width: 18px;
  height: 18px;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--st-space-6);
  display: flex;
  flex-direction: column;
  gap: var(--st-space-3);
  align-items: center;
  text-align: center;
}

.footer__bottom p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ── Scroll reveal / Split text / Section labels ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--st-transition-slow), transform var(--st-transition-slow);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--left {
  transform: translateX(-40px);
}

.reveal--right {
  transform: translateX(40px);
}

.reveal--scale {
  transform: scale(0.94);
}

.reveal--left.is-visible,
.reveal--right.is-visible,
.reveal--scale.is-visible {
  transform: translate(0) scale(1);
}

.card-grid .reveal:nth-child(1) { transition-delay: 0ms; }
.card-grid .reveal:nth-child(2) { transition-delay: 80ms; }
.card-grid .reveal:nth-child(3) { transition-delay: 160ms; }
.card-grid .reveal:nth-child(4) { transition-delay: 240ms; }
.card-grid .reveal:nth-child(5) { transition-delay: 320ms; }
.card-grid .reveal:nth-child(6) { transition-delay: 400ms; }
.card-grid .reveal:nth-child(7) { transition-delay: 480ms; }
.card-grid .reveal:nth-child(8) { transition-delay: 560ms; }
.card-grid .reveal:nth-child(9) { transition-delay: 640ms; }
.card-grid .reveal:nth-child(10) { transition-delay: 720ms; }

.trust-strip__item:nth-child(1) { transition-delay: 0ms; }
.trust-strip__item:nth-child(2) { transition-delay: 80ms; }
.trust-strip__item:nth-child(3) { transition-delay: 160ms; }
.trust-strip__item:nth-child(4) { transition-delay: 240ms; }

.feature-grid .reveal:nth-child(1) { transition-delay: 0ms; }
.feature-grid .reveal:nth-child(2) { transition-delay: 120ms; }
.feature-grid .reveal:nth-child(3) { transition-delay: 240ms; }

/* Split text reveal helpers */
.split-title,
.split-text {
  overflow: hidden;
  padding-bottom: 0.2em;
  margin-bottom: -0.2em;
}

.split-title .line,
.split-text .line {
  display: block;
  overflow: hidden;
  line-height: inherit;
  padding-bottom: 0.15em;
  margin-bottom: -0.15em;
}

.split-title .line-inner,
.split-text .line-inner {
  display: block;
  transform: translateY(110%);
}

/* JS fallback: once revealed, inner sits at normal position */
.split-title.is-revealed .line-inner,
.split-text.is-revealed .line-inner {
  transform: translateY(0);
}

.no-js .split-title .line-inner,
.no-js .split-text .line-inner {
  transform: translateY(0);
}

/* Section label reveal */
.section-label.is-revealed .section-label-inner {
  transform: translateX(0);
}

.no-js .section-label .section-label-inner {
  transform: translateX(0);
}

/* ── Skip link ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  background-color: var(--st-primary);
  color: var(--st-white);
  padding: var(--st-space-3) var(--st-space-5);
  border-radius: var(--st-radius-pill);
  font-weight: 600;
  transition: top var(--st-transition-base);
}

.skip-link:focus {
  top: var(--st-space-4);
}

/* ── Focus outline helper ── */
:focus-visible {
  outline: 2px solid var(--st-primary);
  outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════════════════
   GSAP ENHANCEMENTS
   Lenis smooth scroll, scroll reveals, no-JS fallbacks
═══════════════════════════════════════════════════════════════ */

/* ── GSAP Initial States (no flash of unstyled content) ── */
.gsap-hero {
  opacity: 0;
  transform: translateY(24px);
}

.gsap-fade {
  opacity: 0;
  transform: translateY(16px);
}

.gsap-reveal,
.gsap-reveal-right {
  opacity: 0;
  transform: translateY(40px);
}

.gsap-reveal-right {
  transform: translateX(40px);
}

.gsap-feature {
  opacity: 0;
  transform: translateY(40px);
}

.gsap-footer {
  opacity: 0;
  transform: translateY(30px);
}

/* When GSAP is not loaded or JS disabled, show content immediately */
.no-js .gsap-hero,
.no-js .gsap-fade,
.no-js .gsap-reveal,
.no-js .gsap-reveal-right,
  .no-js .gsap-feature,
.no-js .gsap-footer {
  opacity: 1;
  transform: none;
}

/* ── Subtle parallax helper ── */
.gsap-parallax {
  will-change: auto;
}

.reveal-mask {
  clip-path: inset(2% 2% 2% 2% round 0);
}

.reveal-mask.is-revealed {
  clip-path: inset(0% 0% 0% 0% round 0);
}

.reveal-mask img {
  transform: scale(1.05);
}

.reveal-mask.is-revealed img {
  transform: scale(1);
}

.no-js .reveal-mask {
  clip-path: inset(0);
}

.no-js .reveal-mask img {
  transform: scale(1);
}

/* ── 3D Tilt cards ── */
.tilt {
  transform-style: preserve-3d;
  transition: transform 0.1s linear;
}

.tilt:hover {
  transition: transform 0.1s linear;
}

/* ── Reduced motion ── */
@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;
  }

  .gsap-hero,
  .gsap-fade,
  .gsap-reveal,
  .gsap-reveal-right,
  .gsap-feature,
  .gsap-footer,
  .project-teaser,
  .split-title .line-inner,
  .split-text .line-inner,
  .section-label-inner,
  .floor-card,
  .floor-card__link,
  .floor-card__media img,
  .floor-card__label-inner,
  .floor-card__arrow,
  .reveal-mask,
  .reveal-mask img,
  .tres-char,
  .tres-word,
  #heroContent .hero__label,
  #heroContent .hero__title,
  #heroContent .hero__sub,
  #heroContent .hero__ctas,
  #heroScrollHint {
    animation: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    transition: none !important;
    will-change: auto;
    clip-path: inset(0) !important;
  }
  
  .tres-word {
    color: var(--st-navy-900) !important;
  }

  .floor-card__media img {
    transform: translate3d(0, 0, 0) scale(1.12) !important;
  }

  .scroll-progress,
  .trust-strip__marquee {
    display: none !important;
  }

  .lenis.lenis-smooth {
    scroll-behavior: auto !important;
  }
}

/* ── Referenzen Awwwards Layout ── */
.ref-showcase {
  overflow: clip; /* Erlaubt position: sticky und verhindert x-overflow */
}

.ref-showcase__inner {
  display: grid;
  gap: var(--st-space-6);
}

@media (min-width: 1024px) {
  .ref-showcase__inner {
    grid-template-columns: 5fr 7fr;
    gap: var(--st-space-8);
    align-items: flex-start;
  }
}

.ref-showcase__sticky {
  position: sticky;
  top: 25vh;
}

.ref-showcase__right {
  display: flex;
  flex-direction: column;
}

.ref-card {
  position: relative;
  display: block;
}

.ref-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--st-radius-xl);
  box-shadow: var(--st-shadow-lg);
  transform: translateZ(0);
}

.ref-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--st-ease-expo-out);
}

.ref-card:hover .ref-card__media img,
.ref-card:focus-within .ref-card__media img {
  transform: scale(1.05);
}

.ref-card__info {
  margin-top: var(--st-space-4);
  padding-left: var(--st-space-2);
}

.ref-card__tag {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--st-secondary);
  display: block;
  margin-bottom: var(--st-space-1);
}

.ref-card__title {
  font-family: var(--st-font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--st-text-primary);
}

/* ── Awwwards Typography (Konzept 5) ── */
.awwwards-title {
  font-family: var(--st-font-heading);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--st-navy-900);
}

.awwwards-title em {
  font-style: normal;
  font-weight: 800;
  color: var(--st-primary);
}

.awwwards-text {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: var(--st-secondary);
  font-weight: 400;
  max-width: 44ch;
}

.section-header--center .awwwards-text {
  margin-left: auto;
  margin-right: auto;
}

.awwwards-label .section-label-inner {
  color: var(--st-secondary);
  letter-spacing: 0.15em;
  font-weight: 600;
}

.awwwards-label::before {
  background-color: var(--st-secondary) !important;
}

/* ── Style 1: Editorial Offset (Kompetenzen) ── */
.style1-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--st-space-6);
  margin-bottom: var(--st-space-11);
  align-items: end;
}

@media (min-width: 1024px) {
  .split-section {
    grid-template-columns: 1fr 1fr;
    gap: var(--st-space-11);
  }
  .split-section--reversed .split-section__media {
    order: 2;
  }
  .style1-header {
    grid-template-columns: 1fr 1fr;
    gap: var(--st-space-8);
  }
  .style1-header__text-col {
    padding-bottom: 0.5rem;
  }
}

.style1-label {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--st-secondary);
  margin-bottom: var(--st-space-4);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.style1-label::after {
  content: '';
  display: block;
  height: 1px;
  flex: 1;
  background-color: var(--st-border);
}

.style1-title {
  font-family: var(--st-font-heading);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--st-navy-900);
}

.style1-title .line-inner {
  display: block;
}

.style1-title em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 2px var(--st-primary);
}

.style1-text {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.5;
  color: var(--st-secondary);
  font-weight: 300;
  border-left: 2px solid var(--st-primary);
  padding-left: var(--st-space-5);
  max-width: 45ch;
}

/* ── Style 2: Sidebar Accent (Referenzen) ── */
.style2-header {
  margin-bottom: var(--st-space-8);
}
.style2-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--st-secondary);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: var(--st-space-6);
}
.style2-label::before {
  content: '';
  width: 30px;
  height: 1px;
  background-color: var(--st-primary);
}
.style2-title {
  font-family: var(--st-font-heading);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--st-navy-900);
  margin-bottom: var(--st-space-6);
}
.style2-title em {
  display: block;
  font-style: italic;
  font-weight: 700;
  color: var(--st-primary);
  margin-left: var(--st-space-4);
}
.style2-text {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--st-secondary);
  font-weight: 300;
  padding-left: var(--st-space-4);
  border-left: 1px solid var(--st-border);
}

/* ── Style 5: Tresmares Scroll-Color Reveal ── */
.tres-wrapper {
  margin-bottom: var(--st-space-11);
  max-width: 900px;
}
.tres-wrapper--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.tres-label {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--st-secondary);
  font-weight: 500;
  margin-bottom: var(--st-space-7);
}
.tres-title {
  font-family: var(--st-font-heading);
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--st-navy-900);
  margin-bottom: var(--st-space-7);
}
.tres-word {
  display: inline;
  color: var(--st-neutral-300);
}

/* Character-level reveal (Tresmares-style) */
.tres-title--char-reveal {
}
.tres-line {
  display: block;
}
.tres-char {
  display: inline-block;
  opacity: 0.12;
  color: var(--st-navy-900);
}
/* Preserve whitespace between words */
.tres-char.tres-char--space {
  width: 0.3em;
}
.tres-text {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.7;
  color: var(--st-secondary);
  max-width: 540px;
}
.tres-wrapper--center .tres-text {
  margin: 0 auto;
}

/* Theme overrides for dark backgrounds */
.theme-dark .tres-title {
  color: var(--st-white);
}
.theme-dark .tres-char {
  color: var(--st-white);
}
.theme-dark .tres-text {
  color: rgba(255, 255, 255, 0.70);
}
.theme-dark .tres-label {
  color: rgba(255, 255, 255, 0.70);
}

/* ── Style 6: Elegant Sidebar (Referenzen) ── */
.ref6-wrapper {
  margin-bottom: var(--st-space-8);
}
.ref6-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--st-secondary);
  font-weight: 500;
  margin-bottom: var(--st-space-5);
}
.ref6-rule {
  width: 48px;
  height: 2px;
  background-color: var(--st-primary);
  margin-bottom: var(--st-space-6);
  transform-origin: left;
}
.ref6-title {
  font-family: var(--st-font-heading);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--st-navy-900);
  margin-bottom: var(--st-space-5);
}
.ref6-line {
  display: block;
  overflow: hidden;
}
.ref6-inner {
  display: block;
}
.ref6-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--st-secondary);
  max-width: 38ch;
}

/* Centered modifiers for Bodenbeläge */
.ref6-wrapper--center {
  text-align: center;
}
.ref6-wrapper--center .ref6-label {
  text-align: center;
}
.ref6-rule--center {
  margin-left: auto;
  margin-right: auto;
  transform-origin: center;
}
.ref6-title--center {
  text-align: center;
}
.ref6-text--center {
  text-align: center;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* ── SOHUB STICKY STACKING CARDS (REFERENZEN) ── */
.ref-stack-fw {
  position: relative;
  width: 100%;
  padding: 0 2vw 35vh 2vw; /* Invisible runway for the last card to stick */
  max-width: 1920px;
  margin: 0 auto -70vh auto; /* Neutralizes both the 35vh padding AND the 35vh card margin so the white space is standard */
}

.ref-stack-card {
  --stack-scale: 1;
  --stack-bright: 1;
  position: sticky;
  top: calc(10vh + (var(--card-index) * 15px)); 
  height: 80vh; /* Height reverted back to original */
  min-height: 500px;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  /* Mathematically align the bottom of ALL cards so they release stickiness at the EXACT same millisecond */
  margin-bottom: calc(35vh + ((6 - var(--card-index)) * 15px)); 
  transform-origin: top center;
  transform: scale(var(--stack-scale));
  filter: brightness(var(--stack-bright));
  will-change: transform, filter;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.4);
  color: #fff;
}

/* Background image filling the entire card */
.ref-stack-card__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.ref-stack-card__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

/* Gradient Overlay - Base (Blue Fade Left to Right) */
.ref-stack-card__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(10, 57, 91, 0.7) 0%, rgba(10, 57, 91, 0.3) 40%, transparent 80%);
  transition: opacity 0.6s var(--st-ease-expo-out);
  opacity: 1;
  z-index: 2;
}

/* Gradient Overlay - Hover (White Fade Left to Right) */
.ref-stack-card__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.25) 45%, transparent 80%);
  transition: opacity 0.6s var(--st-ease-expo-out);
  opacity: 0;
  z-index: 2;
}

.ref-stack-card:hover .ref-stack-card__bg::before,
.ref-stack-card:focus-within .ref-stack-card__bg::before {
  opacity: 1;
}

.ref-stack-card:hover .ref-stack-card__bg::after,
.ref-stack-card:focus-within .ref-stack-card__bg::after {
  opacity: 0;
}

/* Content layer on top of background */
.ref-stack-card__content {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  padding: 4vw 5vw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ------------------------------------
   Horizontal Scroll Referenzen
-------------------------------------*/
.hz-scroll-wrapper {
  overflow: hidden;
  position: relative;
  background-color: transparent;
}

.hz-scroll-container {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  height: 80vh;
  will-change: transform;
}

.hz-panel {
  flex: 0 0 100vw;
  width: 100vw;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5vw;
  box-sizing: border-box;
}

.hz-panel__inner {
  width: 100%;
  max-width: 1600px;
  height: 70vh;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8vw; /* Generous clean gap */
  position: relative;
}

/* Image Column */
.hz-panel__image-col {
  width: 55%;
  height: 100%;
  position: relative;
  z-index: 1;
}

.hz-panel__image-mask {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--st-radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08); /* Clean, soft shadow */
  position: relative; /* needed for overlay */
}

/* Clickable image link */
.hz-panel__image-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

/* Hover overlay */
.hz-panel__hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
  border-radius: var(--st-radius-lg);
}

.hz-panel__image-link:hover .hz-panel__hover-overlay,
.hz-panel__image-link:focus-visible .hz-panel__hover-overlay {
  opacity: 1;
}

.hz-panel__hover-label {
  color: #fff;
  font-family: var(--st-font-heading);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  transform: translateY(6px);
  transition: transform 0.35s ease;
}

.hz-panel__image-link:hover .hz-panel__hover-label,
.hz-panel__image-link:focus-visible .hz-panel__hover-label {
  transform: translateY(0);
}

/* Subtle image scale on hover */
.hz-panel__image-link:hover .hz-panel__img {
  transform: scale(1.18);
}


.hz-panel__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.15);
  transform-origin: center center;
  will-change: transform;
  backface-visibility: hidden;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Text Column */
.hz-panel__text-col {
  width: 45%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.hz-panel__number {
  font-family: var(--st-font-heading);
  font-size: clamp(12rem, 18vw, 20rem);
  font-weight: 800; 
  /* The ultimate bug-free transparent outline: Use an SVG filter to dilate the alpha channel */
  color: #000; /* Base color must be opaque to generate an alpha mask */
  -webkit-text-stroke: 0;
  text-shadow: none;
  filter: url(#true-outline); /* Reference the filter injected in index.html */
  line-height: 0.8;
  position: absolute;
  top: -9rem;
  left: -4rem; 
  z-index: -1;
  user-select: none;
  will-change: transform;
  backface-visibility: hidden;
}

.hz-panel__title {
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-family: var(--st-font-heading);
  font-weight: 400; /* Lighter, more elegant weight */
  letter-spacing: -0.02em; /* Tighter for premium look */
  color: var(--st-text-primary);
  margin-bottom: var(--st-space-8);
  line-height: 1.1;
  z-index: 2;
  position: relative;
}

.hz-panel__quote {
  /* Removed white card, strict typography only */
  position: relative;
  z-index: 2;
  padding-left: var(--st-space-6);
  border-left: 2px solid var(--st-primary); /* Elegant thin line */
}



.hz-panel__quote p {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-style: italic;
  color: var(--st-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--st-space-6);
  position: relative;
  z-index: 2;
  max-width: 90%;
}

.hz-panel__quote footer {
  font-weight: 600;
  color: var(--st-text-primary);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Responsive */
@media (max-width: 991px) {
  .hz-scroll-container {
    height: auto;
  }
  .hz-panel {
  flex: 0 0 100vw;
    height: 100vh;
    padding: var(--st-space-5);
  }
  .hz-panel__inner {
    flex-direction: column;
    height: 100%;
    gap: var(--st-space-6);
    justify-content: center;
  }
  .hz-panel__image-col {
    width: 100%;
    flex: 0 0 45vh;
  }
  .hz-panel__text-col {
    width: 100%;
    margin-left: 0;
  }
  .hz-panel__title {
    font-size: 2.8rem;
    margin-bottom: var(--st-space-5);
  }
  .hz-panel__number {
    font-size: 8rem;
    top: -4rem;
    right: -1rem;
  }
  .hz-panel__quote {
    padding: var(--st-space-6);
  }
  .hz-panel__quote p {
    font-size: 1.15rem;
  }
  .hz-panel__quote .quote-icon {
    width: 40px;
    height: 40px;
  }
}


.ref-stack-card:hover .ref-stack-card__tags li,
.ref-stack-card:focus-within .ref-stack-card__tags li {
  color: var(--st-text-primary);
  border-color: rgba(0, 0, 0, 0.2);
}

.ref-stack-card__text {
  display: flex;
  gap: var(--st-space-3);
  align-items: flex-start;
}

.ref-stack-card__text .asterisk {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 4px;
  opacity: 0.8;
}

.ref-stack-card__text p {
  font-family: var(--st-font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  opacity: 0.9;
  margin: 0;
  color: #fff;
  transition: color 0.4s ease;
}

.ref-stack-card:hover .ref-stack-card__text p,
.ref-stack-card:hover .asterisk {
  color: var(--st-text-primary);
}

@media (max-width: 768px) {
  .ref-stack-fw {
    padding: 0 var(--st-space-5) 35vh var(--st-space-5);
    margin: 0 auto -70vh auto;
  }
  .ref-stack-card {
    height: 80vh;
    min-height: 450px;
    top: calc(10vh + (var(--card-index) * 12px));
    margin-bottom: calc(35vh + ((6 - var(--card-index)) * 12px));
  }
  .ref-stack-card__content {
    padding: var(--st-space-6);
  }
  .ref-stack-card__title-line {
    font-size: 2.2rem;
  }
}

/* ── Service Directory (Dienstleistungen TOC) ── */
.service-dir {
  display: flex;
  flex-direction: column;
  gap: var(--st-space-4);
}

.service-dir__item {
  display: flex;
  flex-direction: column;
  background-color: var(--st-surface-alt);
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform var(--st-transition-normal), box-shadow var(--st-transition-normal);
}

@media (min-width: 768px) {
  .service-dir__item {
    flex-direction: row;
    align-items: stretch;
    min-height: 160px;
  }
}

.service-dir__item:hover,
.service-dir__item:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(0, 26, 46, 0.2);
}

.service-dir__item:hover .service-dir__arrow {
  background-color: var(--st-primary);
  color: var(--st-white);
  transform: translateX(5px);
}

.service-dir__content {
  display: flex;
  flex-direction: column;
  gap: var(--st-space-3);
  padding: var(--st-space-5);
  flex: 1;
}

@media (min-width: 768px) {
  .service-dir__content {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--st-space-6);
    padding: var(--st-space-6) var(--st-space-8);
  }
}

.service-dir__num {
  font-family: 'Outfit', sans-serif;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--st-primary);
  flex-shrink: 0;
}

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

.service-dir__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--st-text);
  margin: 0;
}

.service-dir__desc {
  font-size: 1.125rem;
  color: var(--st-text-secondary);
  margin: 0;
  max-width: 600px;
}

.service-dir__media {
  position: relative;
  flex-shrink: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

@media (min-width: 768px) {
  .service-dir__media {
    width: 320px;
    aspect-ratio: auto;
  }
}

.service-dir__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-dir__arrow {
  position: absolute;
  bottom: var(--st-space-4);
  right: var(--st-space-4);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--st-white);
  color: var(--st-text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--st-transition-normal),
    color var(--st-transition-normal), transform var(--st-transition-normal);
}

.service-dir__arrow .arrow {
  width: 24px;
  height: 24px;
}

/* ── Gussböden Landing Page Components ── */

/* Welten Grid (Deco-Welten) */
.welten-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--st-space-6);
  margin-top: var(--st-space-8);
}

@media (min-width: 768px) {
  .welten-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--st-space-8);
  }
}

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

.welt-card__media {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 4px;
}

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

.welt-card:hover .welt-card__media img {
  transform: scale(1.05);
}

.welt-card__title {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 600;
  margin: 0;
  color: var(--st-text);
}

.welt-card__desc {
  font-size: 1rem;
  color: var(--st-text-secondary);
  margin: 0;
}

/* Features Grid (Eigenschaften) */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--st-space-6);
  margin-top: var(--st-space-10);
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--st-space-8);
  }
}

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

.feature-item {
  display: flex;
  flex-direction: column;
  gap: var(--st-space-3);
  padding: var(--st-space-6);
  background-color: var(--st-surface-alt);
  border-radius: 6px;
  transition: transform var(--st-transition-normal), box-shadow var(--st-transition-normal);
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px -10px rgba(0, 26, 46, 0.15);
}

.feature-item__num {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--st-primary);
  opacity: 0.8;
}

.feature-item__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--st-text);
  margin: 0;
}

.feature-item__desc {
  font-size: 1rem;
  color: var(--st-text-secondary);
  margin: 0;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .welt-card:nth-child(even) {
    margin-top: 4rem;
  }
}

/* ── Immersive Welten (Gussböden) ── */
.immersive-welten {
  display: flex;
  flex-direction: column;
  gap: var(--st-space-11);
}

.immersive-welt {
  display: flex;
  flex-direction: column;
  gap: var(--st-space-6);
}

@media (min-width: 992px) {
  .immersive-welt {
    flex-direction: row;
    align-items: center;
    gap: var(--st-space-10);
  }
  .immersive-welt--reversed {
    flex-direction: row-reverse;
  }
}

.immersive-welt__media {
  flex: 1;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
}

@media (min-width: 992px) {
  .immersive-welt__media {
    width: 50%;
    flex: none;
    /* aspect-ratio now handled via inline styles for variety */
  }
}

.immersive-welt__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.immersive-welt__content {
  flex: 1;
  min-width: 0;
  position: relative; /* For absolute number */
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--st-space-6) 0;
  z-index: 1;
}

@media (min-width: 992px) {
  .immersive-welt__content {
    padding: 0 var(--st-space-8);
    /* Remove artificial max-width constraint to let text flow beautifully */
    width: 100%;
    max-width: 600px; /* Sensible upper bound for text column */
  }
}

.immersive-welt__eyebrow {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  font-family: 'Outfit', sans-serif;
  font-size: clamp(8rem, 15vw, 15rem);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 3px var(--st-primary);
  opacity: 0.25;
  z-index: -1;
  pointer-events: none;
  line-height: 1;
  white-space: nowrap;
}

.immersive-welt__title {
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 400; /* Regular weight, highly elegant */
  color: var(--st-text);
  margin: 0 0 1.5rem 0;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.immersive-welt__desc {
  font-size: clamp(1.125rem, 1.5vw, 1.25rem);
  color: var(--st-text-secondary);
  line-height: 1.6;
  margin: 0;
  width: 100%;
}

@media (min-width: 992px) {
  .immersive-welt__desc {
    width: 100%;
    max-width: 500px; /* Restores a clean constrained width without overflowing parent */
  }
}

/* ── Sticky Features ── */
.sticky-features-section {
  padding: var(--st-space-12) 0;
}

.sticky-features {
  display: flex;
  flex-direction: column;
  gap: var(--st-space-8);
}

@media (min-width: 992px) {
  .sticky-features {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--st-space-12);
  }
}

.sticky-features__left {
  flex: 1;
}

@media (min-width: 992px) {
  .sticky-features__left {
    position: sticky;
    top: 20vh;
  }
}

.sticky-features__right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--st-space-10);
}

.sticky-feature {
  display: flex;
  flex-direction: column;
  gap: var(--st-space-3);
  padding-bottom: var(--st-space-6);
  border-bottom: 1px solid var(--st-border);
}

.sticky-feature__num {
  font-family: inherit;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--st-primary);
  opacity: 0.8;
  margin-bottom: 0.5rem;
  display: block;
}
.sticky-feature__num::after {
  content: '.';
}

.sticky-feature__title {
  font-weight: 500;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  letter-spacing: -0.01em;
  color: var(--st-text);
  margin: 0 0 0.3rem 0;
}

.sticky-feature__desc {
  font-size: 1.05rem;
  color: var(--st-text-secondary);
  line-height: 1.6;
  margin: 0;
  max-width: 95%;
  opacity: 0.8;
}


/* ── Awwwards Masonry Galerie ── */
.awwwards-masonry {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--st-space-6);
}

@media (min-width: 768px) {
  .awwwards-masonry {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--st-space-8);
  }
}

.masonry-col {
  display: flex;
  flex-direction: column;
  gap: var(--st-space-6);
}

@media (min-width: 768px) {
  .masonry-col {
    gap: var(--st-space-8);
  }
}

.masonry-item {
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
}


/* ── Editorial Gallery (Scattered Awwwards Style) ── */
.editorial-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3.5vw;
  padding: 0;
  width: 100%;
}

.editorial-gallery__col {
  display: flex;
  flex-direction: column;
  gap: 4.5vw;
}

.editorial-gallery__item {
  width: 100%;
  position: relative;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 992px) {
  /* Subtle organic scatter by shifting entire columns */
  .editorial-gallery__col:nth-child(2) {
    margin-top: 8vh;
  }
  .editorial-gallery__col:nth-child(3) {
    margin-top: 4vh;
  }
}

@media (max-width: 991px) and (min-width: 600px) {
  .editorial-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 599px) {
  .editorial-gallery {
    grid-template-columns: 1fr;
    gap: 8vw;
    padding: 5vh 0;
  }
  .editorial-gallery__col {
    gap: 8vw;
  }
}

.editorial-gallery__media {
  width: 100%;
  border-radius: 0; /* No rounded corners as requested */
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.2);
  position: relative;
}

/* ── Impeccable Polish: Massive Marquee & Hover ── */
.editorial-gallery__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.editorial-gallery__media:hover img {
  transform: scale(1.06);
}



/* ═══════════════════════════════════════════════════════════════
   H+W KONZEPT GRIDS (Imported for Über uns & Kontakt)
   ═══════════════════════════════════════════════════════════════ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.form-group label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--st-text-primary);
  letter-spacing: .04em;
}

.form-control {
  width: 100%;
  padding: 1rem 1.2rem;
  font-size: 1rem;
  background: var(--st-bg);
  border: 1px solid var(--st-border);
  border-radius: var(--st-radius-md);
  color: var(--st-text-primary);
  font-family: inherit;
  transition: border-color var(--st-dur) var(--st-ease);
}

.form-control:focus {
  outline: none;
  border-color: var(--st-primary);
  box-shadow: 0 0 0 3px rgba(10, 57, 91, 0.12);
}

.contact-form button[type="submit"]:disabled {
  cursor: wait;
  opacity: .72;
  transform: none;
}

.form-submit__spinner {
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 auto;
  animation: contact-form-spin .8s linear infinite;
}

.form-trust,
.form-status {
  margin-top: 1.8rem;
  font-size: .85rem;
  line-height: 1.55;
  text-align: center;
}

.form-trust {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  color: var(--st-text-tertiary);
}

.form-status {
  font-weight: 600;
}

.form-status--success {
  color: var(--st-success-text);
}

.form-status--error {
  color: var(--st-error-text);
}

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

@media (prefers-reduced-motion: reduce) {
  .form-submit__spinner { animation: none; }
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.value-card {
  padding: 2rem;
  border-radius: var(--st-radius-md);
  border: 1px solid var(--st-border);
  background: var(--st-surface);
  transition: border-color var(--st-dur) var(--st-ease), transform var(--st-dur) var(--st-ease);
}

.value-card:hover {
  border-color: var(--st-primary);
  transform: translateY(-3px);
}

.value-card__num {
  font-size: 3rem;
  color: var(--st-text-secondary);
  line-height: 1;
  margin-bottom: .5rem;
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.split-grid--top {
  align-items: start;
}

.team-split-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto;
}

.vision-visual {
  background: var(--st-bg);
  border-radius: 20px;
  padding: 3rem;
  aspect-ratio: 4/5;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}

.map-wrap {
  border-radius: var(--st-radius-md);
  overflow: hidden;
  box-shadow: var(--st-shadow);
}

@media (max-width: 992px) {
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .split-grid { gap: 3rem; }
  .team-split-grid { grid-template-columns: repeat(2, 1fr); max-width: 960px; }
}

@media (max-width: 768px) {
  .split-grid { grid-template-columns: 1fr !important; gap: 2.5rem !important; }
  .split-grid--top { grid-template-columns: 1fr !important; gap: 2.5rem !important; }
  .team-split-grid { grid-template-columns: 1fr !important; max-width: 100% !important; }
  .values-grid { grid-template-columns: 1fr; }
  .contact-grid { gap: 2rem; }
  .vision-visual { aspect-ratio: auto; min-height: 500px; padding: 2rem; }
  .team-split-grid > div { min-height: 800px !important; }
  
  .team-split-grid > div:nth-child(-n+4) > img:first-child {
    height: 80% !important;
    bottom: auto !important;
  }
  .team-split-grid > div:nth-child(-n+4) > div:nth-child(2) {
    background: linear-gradient(to top, rgba(10,10,10,1) 0%, rgba(10,10,10,1) 40%, rgba(10,10,10,0) 60%) !important;
  }
}

@media (max-width: 480px) {
  .split-grid { gap: 1.5rem !important; }
  .split-grid--top { gap: 1.5rem !important; }
}

@media (max-width: 390px) {
  .team-split-grid,
  .values-grid {
    width: 100% !important;
    max-width: 100% !important;
  }

  .team-split-grid > div,
  .values-grid > div {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }

  .team-split-grid > div:nth-child(n+3) {
    padding: 1.5rem !important;
  }
}

/* ── FAQ Accordion System ── */
.faq-section {
  padding: var(--st-space-12) 0;
  background-color: var(--st-surface);
}

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

.faq-header {
  text-align: center;
  margin-bottom: var(--st-space-8);
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--st-space-3);
}

.faq-item {
  background: var(--st-white);
  border: 1px solid var(--st-border);
  border-radius: var(--st-radius-md);
  overflow: hidden;
  transition: box-shadow var(--st-transition-fast), border-color var(--st-transition-fast);
  /* Fix Safari flickering */
  transform: translateZ(0);
  backface-visibility: hidden;
}

.theme-dark .faq-item {
  background: var(--st-surface-alt);
}

.faq-item:hover {
  border-color: var(--st-primary-light);
  box-shadow: var(--st-shadow-sm);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: var(--st-space-5);
  background: transparent;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--st-font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--st-text);
  cursor: pointer;
}

.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--st-primary);
  transition: transform var(--st-transition-base);
}

.faq-item.is-active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--st-transition-base);
  /* Fix Safari flickering */
  transform: translateZ(0);
  backface-visibility: hidden;
}

.faq-answer {
  padding: 0 var(--st-space-5) var(--st-space-5) var(--st-space-5);
  color: var(--st-text-secondary);
  line-height: 1.6;
}

.faq-answer a {
  color: var(--st-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.faq-answer a:hover {
  color: var(--st-primary-dark);
}

/* ── Custom Lightbox (Awwwards Style) ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.77, 0, 0.175, 1), visibility 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #fff;
  z-index: 2;
  transition: transform 0.3s ease;
}
.lightbox__close:hover {
  transform: scale(1.1) rotate(90deg);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 4rem;
  height: 4rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background-color 0.3s ease, transform 0.3s ease;
  backdrop-filter: blur(4px);
}
.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-50%) scale(1.1);
}
.lightbox__nav--prev {
  left: 2rem;
}
.lightbox__nav--next {
  right: 2rem;
}
@media (max-width: 768px) {
  .lightbox__nav {
    width: 3rem;
    height: 3rem;
  }
  .lightbox__nav--prev { left: 1rem; }
  .lightbox__nav--next { right: 1rem; }
}

.lightbox__content {
  position: relative;
  max-width: 85vw;
  max-height: 85vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox__media {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.lightbox.is-open .lightbox__media {
  opacity: 1;
  transform: scale(1);
}
.lightbox__media.fade {
  opacity: 0 !important;
  transform: scale(0.98) !important;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.lightbox__caption {
  margin-top: 1.5rem;
  text-align: center;
  color: #fff;
}
.lightbox__title {
  display: block;
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  font-family: var(--st-font-serif);
}
.lightbox__meta {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}


/* ════════════════════════════════════════
   COOKIE BANNER
   ════════════════════════════════════════ */
.st-cookie-banner {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  max-width: 420px;
  background-color: var(--st-navy-900);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border-radius: var(--st-radius-lg);
  z-index: 9999;
  transform: translateY(120%) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
}

.st-cookie-banner.is-visible {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.st-cookie-banner__inner {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.st-cookie-banner__content p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--st-neutral-300);
  margin: 0;
}

.st-cookie-banner__content a {
  color: var(--st-white);
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

.st-cookie-banner__content a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background-color: var(--st-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
}

.st-cookie-banner__content a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.st-cookie-banner__actions {
  display: flex;
  justify-content: flex-end;
}

.st-cookie-banner__actions .btn {
  padding: 0.6rem 1.4rem;
  font-size: 0.85rem;
}

@media (max-width: 576px) {
  .st-cookie-banner {
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    max-width: none;
  }
}
