/* ============================================================
   IBS AGENTUR MEDIA – One Page Website
   Premium, dezent, edel – inspiriert von zwetschke.de
   HORIZONTAL SCROLL VERSION
   ============================================================ */

/* ==================== LOCAL FONTS (DSGVO) ==================== */
/* Inter (Body) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/inter/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/inter/inter-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/inter/inter-600.woff2') format('woff2');
}

/* Outfit (Heading) */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/outfit/outfit-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('assets/fonts/outfit/outfit-800.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('assets/fonts/outfit/outfit-900.woff2') format('woff2');
}

/* ==================== RESET & BASE ==================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: clip;
}

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

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

/* ==================== CUSTOM PROPERTIES ==================== */
:root {
  /* Navigation */
  --navbar-height: 120px;

  /* Core Colors */
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-tertiary: #1a1a1a;
  --text-primary: #f0f0f0;
  --text-secondary: #aaaaaa;
  --text-muted: #666666;

  /* Section: Autoland (Rot) */
  --autoland-dark: #1a0505;
  --autoland-red: #8b1a1a;
  --autoland-red-mid: #a82020;
  --autoland-red-bright: #cc2222;

  /* Section: Linus (Grün/Teal) */
  --linus-bg: #f4f9f6;
  --linus-green-dark: #1a3a2e;
  --linus-green: #3d7a6e;
  --linus-green-light: #e0f0ea;
  --linus-text: #1a2a24;

  /* Section: Kübler (Navy/Weiß) */
  --kuebler-navy: #1a2744;
  --kuebler-navy-light: #243558;
  --kuebler-white: #f8f9fa;
  --kuebler-text: #111827;

  /* Section: Elektro Merz (Grün/Gelb, gedämpft) */
  --merz-dark: #1a2118;
  --merz-olive: #2d3b25;
  --merz-green: #4a6741;
  --merz-gold: #c4a84d;
  --merz-gold-muted: #a8924a;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --section-padding: clamp(60px, 8vh, 140px);
  --content-max: 1200px;
  --content-pad: clamp(20px, 5vw, 80px);

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --transition-smooth: 0.8s var(--ease-out-expo);
  --transition-medium: 0.5s var(--ease-out-quart);
  --transition-fast: 0.3s ease;
}

/* ==================== GRAIN OVERLAY ==================== */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  opacity: 0.03;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.grain-overlay::before {
  content: '';
  position: absolute;
  inset: -25%;
  width: 150%;
  height: 150%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  animation: grain 12s steps(2) infinite;
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-5%, -5%); }
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.section-headline {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 900;
  text-transform: none;
  margin-bottom: 0;
}

.section-subtext {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  font-weight: 400;
  line-height: 1.7;
  max-width: 540px;
  color: var(--text-secondary);
}

.client-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* ==================== NAVIGATION ==================== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  padding: 24px var(--content-pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition-medium);
}

#navbar.nav-scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px var(--content-pad);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-logo img {
  height: 117px;
  width: auto !important;
  transition: height var(--transition-fast);
}

#navbar.nav-scrolled .nav-logo img {
  height: 78px;
}

.nav-contact {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 10px 24px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  transition: all var(--transition-fast);
  letter-spacing: 0.03em;
}

.nav-contact:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-instagram {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.nav-instagram:hover {
  color: var(--merz-gold);
  border-color: var(--merz-gold);
  background: rgba(212, 175, 55, 0.05);
  transform: translateY(-2px);
}

.nav-instagram svg {
  width: 18px;
  height: 18px;
}

/* ==================== HERO SECTION ==================== */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/headliner.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(10, 10, 10, 0.45) 0%, rgba(10, 10, 10, 0.1) 60%, transparent 80%),
    linear-gradient(
      to bottom,
      rgba(10, 10, 10, 0.35) 0%,
      rgba(10, 10, 10, 0.15) 30%,
      rgba(10, 10, 10, 0.15) 70%,
      rgba(10, 10, 10, 0.85) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-logo {
  width: clamp(180px, 25vw, 320px);
  margin-bottom: 0;
  animation: heroFadeIn 1.5s var(--ease-out-expo) 0.3s both;
  filter: drop-shadow(0 0 30px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 60px rgba(0, 0, 0, 0.5));
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  font-weight: 400;
  font-style: italic;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  margin-top: 16px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
  animation: heroFadeIn 1.5s var(--ease-out-expo) 0.8s both;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================== VERTICAL SCROLL SYSTEM ==================== */
.horizontal-wrapper {
  position: relative;
  width: 100%;
}

.horizontal-container {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.h-panel {
  width: 100%;
  position: relative;
}

.h-panel-inner {
  width: 100%;
  height: auto;
  overflow: visible;
}

/* Panel type: Headline (centered text) */
.panel-headline {
  height: 80vh;
  min-height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--bg-primary);
  padding: var(--section-padding) var(--content-pad);
}

.panel-headline .section-headline {
  text-align: center;
}

/* Panel type: Content */
.panel-content {
  width: 100%;
}

/* Panel type: Split (Kübler/Merz) */
.panel-split {
  width: 100%;
}

/* ==================== HORIZONTAL SCROLL PROGRESS BAR ==================== */
.h-progress {
  position: fixed;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--autoland-red-bright), var(--linus-green), var(--merz-gold), var(--text-primary));
  z-index: 9999;
  transform-origin: left;
  transition: none;
  pointer-events: none;
}

/* ==================== SECTION 1: MANCHMAL LAUT (AUTOLAND) ==================== */
.section-laut-headline {
  background: var(--bg-primary);
}

.section-laut {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 160px 0 100px 0;
  background: linear-gradient(
    160deg,
    var(--autoland-dark) 0%,
    #1a0808 30%,
    var(--autoland-red) 70%,
    var(--autoland-red-mid) 100%
  );
  overflow: hidden;
  display: flex;
  align-items: center;
}

#particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.section-laut .section-inner {
  position: relative;
  z-index: 2;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--content-pad);
}

.case-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.case-logo {
  height: 40px;
  width: auto;
}

/* Fallback for general case grid */
.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 40px;
}

.case-video-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 9 / 16;
  max-height: 540px;
}

.case-video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-images {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.case-img {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: rgba(0, 0, 0, 0.3);
}

.case-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-quart);
}

.case-img:hover img {
  transform: scale(1.03);
}

.case-text {
  max-width: 600px;
}

.case-text p {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
}

/* ==================== AUTOLAND AG STYLES ==================== */
.autoland-main-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 30px;
  align-items: center;
  margin-bottom: clamp(12px, 2vh, 24px);
}

.autoland-main-row .case-video-wrapper {
  height: min(75vh, 600px);
  width: calc(min(75vh, 600px) * 9 / 16);
  justify-self: center;
}

.autoland-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.autoland-info .case-header {
  margin-bottom: 20px;
}

.autoland-images-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 0;
}

.autoland-images-row .case-img {
  height: min(25vh, 180px);
  width: calc(min(25vh, 180px) * 16 / 10);
  border-radius: 10px;
  overflow: hidden;
}

/* ==================== SECTION 2: MANCHMAL LEISE (LINUS) ==================== */
.section-leise-headline {
  background: var(--bg-primary);
  color: var(--text-primary);
}

.section-leise {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 160px 0 100px 0;
  background: linear-gradient(
    160deg,
    var(--linus-bg) 0%,
    #edf7f2 40%,
    var(--linus-green-light) 100%
  );
  color: var(--linus-text);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.section-leise .section-inner {
  position: relative;
  z-index: 2;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--content-pad);
}

.section-leise .case-text p {
  color: rgba(26, 42, 36, 0.75);
}

/* Styled client-label as heading for Linus Sterbehilfe */
.section-leise .client-label {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.2vh, 1.8rem);
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
  color: var(--linus-green-dark);
  margin-bottom: 16px;
}

/* Linus 3-Column Restructure using flex layout to center the entire block */
.linus-main-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  width: 100%;
}

.linus-images-grid {
  display: grid;
  grid-template-columns: auto auto;
  gap: 12px;
  justify-content: center;
  flex-shrink: 0;
}

.linus-images-grid .case-img {
  border-radius: 10px;
  overflow: hidden;
}

.linus-images-grid .case-img.img-tall {
  grid-row: span 2;
  height: clamp(380px, 36vw, 480px);
  width: calc(clamp(380px, 36vw, 480px) * 9 / 16);
}

.linus-images-grid .case-img:not(.img-tall) {
  height: calc((clamp(380px, 36vw, 480px) - 12px) / 2);
  aspect-ratio: 4 / 3;
  width: auto;
}

.linus-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 280px;
  flex-shrink: 0;
}

.linus-info .linus-logo {
  height: 48px;
  width: auto;
  margin-bottom: 20px;
}

.linus-video-wrapper {
  height: clamp(380px, 36vw, 480px);
  width: calc(clamp(380px, 36vw, 480px) * 9 / 16);
  flex-shrink: 0;
}

/* ==================== SECTION 3: SPLIT (Kübler / Elektro Merz) ==================== */
.split-headline {
  background: var(--bg-primary);
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  min-height: 100vh;
}

/* Links: Kübler Immobilien */
.split-left {
  position: relative;
  background: linear-gradient(
    170deg,
    var(--kuebler-white) 0%,
    #eef1f5 60%,
    #dde3ec 100%
  );
  color: var(--kuebler-text);
  padding: var(--navbar-height, 120px) clamp(30px, 4vw, 60px) 40px clamp(30px, 4vw, 60px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
}

.split-left-inner,
.split-right-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
}

.split-left::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60%;
  height: 60%;
  background: radial-gradient(ellipse at bottom right, rgba(26, 39, 68, 0.06), transparent 70%);
  pointer-events: none;
}

.split-left .split-headline-text {
  font-size: clamp(1.8rem, 3.5vh, 2.5rem);
  font-weight: 800;
  color: var(--kuebler-navy);
  margin-bottom: 8px;
  font-style: italic;
}

.split-left .case-logo {
  height: 28px;
  margin-bottom: 0;
}

.kuebler-grid {
  display: grid;
  grid-template-columns: auto auto;
  gap: 12px;
  margin-bottom: clamp(12px, 2vh, 20px);
  justify-content: center;
}

.kuebler-grid .video-wrapper,
.kuebler-grid .case-img {
  height: clamp(150px, 30vh, 230px);
  width: calc(clamp(150px, 30vh, 230px) * 4 / 3);
  border-radius: 8px;
  overflow: hidden;
}

.split-left .case-text p {
  color: rgba(17, 24, 39, 0.7);
  font-size: clamp(0.85rem, 1.2vw, 1.05rem);
}

/* Rechts: Elektro Merz */
.split-right {
  position: relative;
  background: linear-gradient(
    170deg,
    var(--merz-dark) 0%,
    var(--merz-olive) 50%,
    #2a3722 100%
  );
  color: var(--text-primary);
  padding: var(--navbar-height, 120px) clamp(30px, 4vw, 60px) 40px clamp(30px, 4vw, 60px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
}

.split-right::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 70%;
  height: 70%;
  background: radial-gradient(ellipse at top left, rgba(196, 168, 77, 0.08), transparent 70%);
  pointer-events: none;
}

.split-right .split-headline-text {
  font-size: clamp(1.8rem, 3.5vh, 2.5rem);
  font-weight: 800;
  color: var(--merz-gold);
  margin-bottom: 8px;
  font-style: italic;
}

.merz-grid {
  display: grid;
  grid-template-columns: auto auto;
  gap: 12px;
  margin-bottom: clamp(12px, 2vh, 20px);
  justify-content: center;
}

.merz-grid .video-wrapper,
.merz-grid .merz-portrait {
  height: clamp(300px, 60vh, 520px);
  width: calc(clamp(300px, 60vh, 520px) * 9 / 16);
  border-radius: 8px;
  overflow: hidden;
}

.merz-grid .merz-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.split-right .case-text p {
  color: rgba(240, 240, 240, 0.75);
  font-size: clamp(0.85rem, 1.2vw, 1.05rem);
}

.split-right .client-label {
  color: var(--merz-gold-muted);
}

/* ==================== WEITERE REFERENZEN SECTION ==================== */
.referenzen-section {
  width: 100%;
  min-height: 100vh;
  padding: 160px 0 80px 0;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
}

.referenzen-section .section-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--content-pad);
  width: 100%;
}

.referenzen-section .section-headline {
  font-size: clamp(2rem, 3.5vh, 3rem);
  color: var(--text-primary);
  margin-bottom: 8px;
  text-align: center;
}

.referenzen-intro {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  color: var(--text-secondary);
  margin: 0 auto clamp(16px, 2.5vh, 24px) auto;
  max-width: 600px;
  text-align: center;
}

.referenzen-grid {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 24px;
  padding: 24px var(--content-pad);
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  margin: 0 auto;
}

/* Custom Scrollbar for references grid */
.referenzen-grid::-webkit-scrollbar {
  height: 6px;
}
.referenzen-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
}
.referenzen-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  transition: background 0.3s;
}
.referenzen-grid::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.35);
}

.referenz-card {
  position: relative;
  width: 360px;
  flex-shrink: 0;
  scroll-snap-align: start;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  display: flex;
  flex-direction: column;
  height: auto;
}

.referenz-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.referenz-media {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
  background: #111;
}

.referenz-media.portrait-media {
  aspect-ratio: 9 / 16;
}

.referenz-card.video-card .referenz-media {
  height: auto;
  aspect-ratio: 9 / 16;
}

.referenz-media img,
.referenz-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-quart);
}

.referenz-card:hover .referenz-media img,
.referenz-card:hover .referenz-media video {
  transform: scale(1.03);
}

.referenz-info {
  padding: clamp(8px, 1.2vh, 12px) clamp(10px, 1.5vh, 16px);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.referenz-info .client-label {
  margin-bottom: 4px;
  font-size: clamp(0.6rem, 0.8vh, 0.7rem);
}

.referenz-info p {
  font-family: var(--font-body);
  font-size: clamp(0.72rem, 1vh, 0.82rem);
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ==================== SECTION 4: STATEMENT ==================== */
.statement-section {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--section-padding) var(--content-pad);
  background: var(--bg-primary);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.statement-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.02) 0%, transparent 70%);
  pointer-events: none;
}

.statement-intro {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 40px;
  letter-spacing: -0.01em;
}

.statement-main {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #ffffff 0%, #cccccc 50%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 30px;
}

.statement-sub {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ==================== SECTION 5: ZAHLEN ==================== */
.zahlen-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--section-padding) var(--content-pad);
  background: var(--bg-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.zahlen-grid {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.zahl-item {
  text-align: center;
  padding: 56px 20px 40px 20px;
  position: relative;
}

.zahl-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.zahl-prefix {
  position: absolute;
  top: 24px;
  left: 0;
  right: 0;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0;
  display: block;
}

.zahl-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 12px;
}

.zahl-label {
  font-family: var(--font-body);
  font-size: clamp(0.8rem, 1vw, 0.9rem);
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.5;
}

.zahlen-proof {
  text-align: center;
  margin-top: 48px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ==================== SECTION 6: CTA ==================== */
.cta-section {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--section-padding) var(--content-pad);
  background: var(--bg-primary);
  text-align: center;
  position: relative;
}

.cta-headline {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 8px;
}

.cta-sub {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.5vw, 3rem);
  font-weight: 400;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 48px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 40px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--bg-primary);
  background: var(--text-primary);
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition-fast);
  letter-spacing: 0.03em;
  text-decoration: none;
}

.cta-button:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 32px rgba(255, 255, 255, 0.15);
}

.cta-button svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.cta-button:hover svg {
  transform: translateX(4px);
}

/* ==================== FOOTER ==================== */
footer {
  width: 100%;
  padding: 40px var(--content-pad);
  background: var(--bg-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.footer-logo {
  display: flex;
  justify-content: flex-start;
}

.footer-logo img {
  height: 91px;
  width: auto !important;
  opacity: 0.95;
}

.footer-info {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
}

.footer-links a {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

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

/* ==================== SCROLL REVEAL ANIMATIONS ==================== */
.reveal {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
  will-change: opacity, transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.reveal.reveal-left {
  transform: translate3d(-30px, 0, 0);
}

.reveal.reveal-right {
  transform: translate3d(30px, 0, 0);
}

.reveal.reveal-scale {
  transform: scale3d(0.96, 0.96, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
}

/* Staggered delays */
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.4s; }

/* ==================== VIDEO PLAYER STYLES ==================== */
.video-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  cursor: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' style='font-size:24px'%3E%3Ctext y='24'%3E👀%3C/text%3E%3C/svg%3E") 16 16, pointer;
}

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

.video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.25);
  transition: background var(--transition-fast);
  z-index: 2;
}

.video-play-btn:hover {
  background: rgba(0, 0, 0, 0.15);
}

.video-play-btn svg {
  width: 64px;
  height: 64px;
  fill: white;
  opacity: 0.9;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
  transition: all var(--transition-fast);
}

.video-play-btn:hover svg {
  transform: scale(1.1);
  opacity: 1;
}

.video-wrapper.playing .video-play-btn {
  opacity: 0;
  pointer-events: none;
}

/* ==================== RESPONSIVE ==================== */

/* Tablet & Mobile Horizontal Scroll Experience */
@media (max-width: 1023px) {
  html, body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  .horizontal-wrapper {
    height: auto !important;
    overflow: visible !important;
  }

  .horizontal-container {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: auto !important;
    padding: 0 !important;
    transform: none !important;
  }

  .h-panel {
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    margin: 0 !important;
    overflow: visible !important;
  }

  .h-panel-inner {
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
  }

  .panel-headline {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    height: 60dvh !important;
    background: var(--bg-primary);
  }

  /* Reset section styles for vertical layout on mobile */
  .section-laut,
  .section-leise,
  .referenzen-section {
    height: auto !important;
    width: 100% !important;
    padding: clamp(60px, 8vh, 100px) 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .section-laut .section-inner,
  .section-leise .section-inner,
  .referenzen-section .section-inner {
    width: 100% !important;
    height: auto !important;
    padding: 0 var(--content-pad) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .split-left,
  .split-right {
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    position: relative !important;
    overflow: visible !important;
  }

  .split-left-inner,
  .split-right-inner {
    max-width: 100% !important;
    height: 100% !important; /* fill vertical space for margin: auto distribution */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }

  .split-left .split-headline-text,
  .split-right .split-headline-text {
    font-style: italic;
  }

  /* Numbers / Zahlen Section (after horizontal scroll) */
  .zahlen-section {
    height: auto !important;
    padding: clamp(60px, 8vh, 100px) var(--content-pad) !important;
  }

  /* Progress Bar remains visible and functional on mobile */
  .h-progress {
    display: block !important;
  }
}

/* ==================== TABLET OPTIMIZATION (768px bis 1023px) ==================== */
@media (min-width: 768px) and (max-width: 1023px) {
  :root {
    --content-pad: 40px;
    --navbar-height: 100px;
  }

  .nav-logo img {
    height: 85px !important;
  }
  #navbar.nav-scrolled .nav-logo img {
    height: 68px !important;
  }

  .panel-headline .section-headline {
    font-size: 5.5rem !important;
  }

  .section-headline {
    font-size: 4rem !important;
  }

  .client-label {
    font-size: 0.9rem !important;
    margin-bottom: 8px !important;
  }

  .case-text p,
  .referenzen-intro {
    font-size: 1.25rem !important;
    line-height: 1.6 !important;
  }

  .section-laut,
  .section-leise,
  .referenzen-section {
    padding: 90px 0 40px 0 !important;
  }

  /* Autoland AG (Panel 2) */
  .autoland-main-row {
    display: grid !important;
    grid-template-columns: 1fr 1.2fr !important;
    gap: 32px !important;
    align-items: center !important;
    margin-bottom: 12px !important;
    width: 100% !important;
    text-align: left !important;
  }

  .autoland-main-row .case-video-wrapper {
    height: min(50dvh, 480px) !important;
    width: calc(min(50dvh, 480px) * 9 / 16) !important;
    max-width: none !important;
    justify-self: start !important;
  }

  .autoland-info {
    text-align: left !important;
    align-items: flex-start !important;
  }

  .autoland-info .case-header {
    justify-content: flex-start !important;
    margin-bottom: 12px !important;
    gap: 16px !important;
  }

  .autoland-images-row {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 580px !important;
    margin: -8px auto 0 auto !important;
  }

  .autoland-images-row .case-img {
    width: calc((100% - 24px) / 3) !important;
    height: min(15dvh, 135px) !important;
    aspect-ratio: 16 / 10 !important;
  }

  /* Linus Sterbehilfe (Panel 4) */
  .linus-main-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: auto !important;
  }

  .linus-info {
    order: 1 !important;
    width: 100% !important;
    max-width: 540px !important;
    text-align: center !important;
    align-items: center !important;
    margin: 0 auto !important;
  }

  .section-leise .client-label {
    font-family: var(--font-body) !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    color: var(--linus-green) !important;
    margin-bottom: 8px !important;
  }

  .linus-images-grid {
    order: 2 !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 12px !important;
    justify-content: center !important;
    width: 100% !important;
  }

  .linus-images-grid .case-img.img-tall,
  .linus-images-grid .case-img:not(.img-tall) {
    width: auto !important;
    height: min(19dvh, 175px) !important;
    aspect-ratio: 3 / 4 !important;
  }

  .linus-video-wrapper {
    order: 3 !important;
    height: min(30dvh, 280px) !important;
    width: calc(min(30dvh, 280px) * 9 / 16) !important;
    margin: 16px auto 0 auto !important;
  }

  /* Split-Section (Kübler & Elektro Merz) (Panel 5) */
  .split-left,
  .split-right {
    padding: 90px var(--content-pad) 40px var(--content-pad) !important;
  }

  .split-left .split-headline-text,
  .split-right .split-headline-text {
    font-size: 2.5rem !important;
    margin-bottom: 8px !important;
  }

  .split-left .case-logo {
    height: 38px !important;
    margin-bottom: 16px !important;
  }

  .kuebler-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    max-width: 680px !important;
    gap: 16px !important;
    margin: 12px 0 !important;
    width: 100% !important;
    max-height: 480px !important;
    overflow-y: auto !important;
    padding-right: 8px !important;
    -webkit-overflow-scrolling: touch;
  }

  .kuebler-grid .video-wrapper,
  .kuebler-grid .case-img {
    height: min(24dvh, 230px) !important;
    width: 100% !important;
    aspect-ratio: 4 / 3 !important;
  }

  .merz-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    max-width: 600px !important;
    gap: 16px !important;
    margin: 12px 0 !important;
    width: 100% !important;
  }

  .merz-grid .video-wrapper,
  .merz-grid .merz-portrait {
    height: min(46dvh, 440px) !important;
    width: 100% !important;
    aspect-ratio: 9 / 16 !important;
  }

  /* Und noch mehr (Referenzen) (Panel 6) */
  .referenzen-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
    max-width: 580px !important;
    margin: 16px auto !important;
  }

  .referenz-card {
    width: calc(min(40dvh, 380px) * 9 / 16) !important;
    max-width: none !important;
  }

  .referenz-media {
    height: min(40dvh, 380px) !important;
    width: 100% !important;
    aspect-ratio: 9 / 16 !important;
  }

  .referenz-info {
    padding: 16px 20px !important;
  }

  .referenz-info .client-label {
    font-size: 0.85rem !important;
    margin-bottom: 8px !important;
  }

  .referenz-info p {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    display: block !important;
    overflow: visible !important;
    text-overflow: clip !important;
    -webkit-line-clamp: unset !important;
  }

  /* Zahlen / Social Proof */
  .zahlen-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 0 !important;
    width: 100% !important;
  }

  .zahl-item {
    padding: 46px 10px 30px 10px !important;
  }

  .zahl-prefix {
    top: 16px !important;
  }

  .zahl-item::after {
    display: block !important;
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
  }

  .zahl-item:last-child::after {
    display: none !important;
  }

  .zahl-item:nth-child(2)::after {
    display: block !important;
  }

  .zahl-item:nth-child(1),
  .zahl-item:nth-child(2) {
    border-bottom: none !important;
  }
}

/* ==================== MOBILE OPTIMIZATION (bis 767px) ==================== */
@media (max-width: 767px) {
  .split-section {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
  }

  .nav-logo img {
    height: 70px !important;
  }
  #navbar.nav-scrolled .nav-logo img {
    height: 56px !important;
  }

  /* Autoland AG Mobile Layout */
  .autoland-main-row {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    align-items: center !important;
    margin-bottom: 0 !important;
  }

  .autoland-main-row .case-video-wrapper {
    width: auto !important;
    height: min(38dvh, 320px) !important;
    aspect-ratio: 9 / 16 !important;
    max-width: none !important;
    justify-self: center !important;
  }

  .autoland-info {
    text-align: center !important;
    align-items: center !important;
  }

  .autoland-info .case-header {
    justify-content: center !important;
    margin-bottom: 8px !important;
    gap: 12px !important;
  }

  .case-logo {
    height: min(4vh, 32px) !important;
    width: auto !important;
  }

  .client-label {
    font-size: 0.65rem !important;
    margin-bottom: 0 !important;
  }

  .case-text p {
    font-size: clamp(0.8rem, 1.8vh, 0.95rem) !important;
    line-height: 1.4 !important;
  }

  .autoland-images-row {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: clamp(260px, 80vw, 360px) !important;
    margin-top: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .autoland-images-row .case-img {
    width: calc((100% - 16px) / 3) !important;
    height: auto !important;
    aspect-ratio: 16 / 10 !important;
  }

  /* Linus Sterbehilfe Mobile Layout */
  .linus-main-row {
    flex-direction: column !important;
    gap: 0 !important;
    align-items: center !important;
    height: 100% !important;
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
  }

  .linus-info {
    order: 1 !important;
    width: 100% !important;
    text-align: center !important;
    align-items: center !important;
    margin-bottom: 0 !important;
  }

  .section-leise .client-label {
    font-family: var(--font-body) !important;
    font-size: 0.65rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    color: var(--linus-green) !important;
    margin-bottom: 8px !important;
  }

  .linus-video-wrapper {
    order: 2 !important;
    width: auto !important;
    height: min(38dvh, 240px) !important;
    aspect-ratio: 9 / 16 !important;
    max-width: none !important;
    margin: 24px auto !important;
  }

  .linus-images-grid {
    order: 3 !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
    justify-content: center !important;
    width: 100% !important;
  }

  .linus-images-grid .case-img.img-tall,
  .linus-images-grid .case-img:not(.img-tall) {
    width: auto !important;
    height: min(13dvh, 110px) !important;
    aspect-ratio: 3 / 4 !important;
  }

  /* Split Left & Right Mobile Padding overrides */
  .split-left,
  .split-right {
    padding: clamp(100px, 12dvh, 130px) var(--content-pad) clamp(30px, 6dvh, 60px) var(--content-pad) !important;
  }

  .split-left .split-headline-text,
  .split-right .split-headline-text {
    font-size: clamp(1.4rem, 3vh, 2rem) !important;
    margin-bottom: 6px !important;
  }

  /* Kübler Grid Mobile */
  .kuebler-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    margin: auto 0 !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: clamp(240px, 80vw, 300px) !important;
    max-height: 480px !important;
    overflow-y: auto !important;
    padding-right: 8px !important;
    -webkit-overflow-scrolling: touch;
  }

  .kuebler-grid .video-wrapper,
  .kuebler-grid .case-img {
    width: 100% !important;
    height: clamp(426px, 142.2vw, 533px) !important;
  }

  /* Elektro Merz Grid Mobile */
  .merz-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    margin: auto 0 !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: clamp(240px, 78vw, 300px) !important;
  }

  .merz-grid .video-wrapper,
  .merz-grid .merz-portrait {
    width: 100% !important;
    height: clamp(426px, 142.2vw, 533px) !important;
  }

  /* Referenzen Mobile */
  .referenzen-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    max-width: clamp(250px, 36vh, 340px) !important;
    margin: auto 0 !important;
  }

  .referenz-card {
    width: 100% !important;
    border-radius: 10px !important;
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
  }

  .referenz-media {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 9 / 16 !important;
  }

  .referenz-info {
    padding: clamp(6px, 1vh, 10px) clamp(8px, 1.2vh, 12px) !important;
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .referenz-info .client-label {
    font-size: 0.55rem !important;
    margin-bottom: 2px !important;
  }

  .referenz-info p {
    font-size: clamp(0.7rem, 1.3vh, 0.82rem) !important;
    line-height: 1.4 !important;
    display: block !important;
    overflow: visible !important;
    text-overflow: clip !important;
    -webkit-line-clamp: unset !important;
  }

  /* Numbers / Zahlen Section Mobile */
  .zahlen-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0;
  }

  .zahl-item:nth-child(2)::after {
    display: none;
  }

  .zahl-item:nth-child(1),
  .zahl-item:nth-child(2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  /* Other mobile tweaks */
  .case-images {
    grid-template-columns: 1fr 1fr;
  }

  .split-images-row {
    grid-template-columns: 1fr;
  }

  .split-video-wrapper {
    max-height: none !important;
  }

  .footer-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 20px !important;
  }

  .footer-logo {
    justify-content: center !important;
  }

  .footer-links {
    justify-content: center !important;
  }

  .video-play-btn svg {
    width: 48px;
    height: 48px;
  }
}



/* Small Mobile */
@media (max-width: 480px) {
  .zahlen-grid {
    grid-template-columns: 1fr;
  }

  .zahl-item::after {
    display: none !important;
  }

  .zahl-item:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  #navbar {
    padding: 16px 20px;
  }

  .nav-contact {
    font-size: 0.75rem;
    padding: 8px 16px;
  }
}

/* ==================== UTILITY ==================== */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--content-pad);
}

/* ==================== CONTACT FORM MODAL ==================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out-expo);
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: clamp(24px, 4vh, 40px);
  width: 100%;
  max-width: 500px;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s var(--ease-out-expo);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal-container {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--text-primary);
  transform: scale(1.1);
}

.modal-header {
  margin-bottom: 24px;
  text-align: left;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vh, 2.5rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 6px;
}

.modal-subtitle {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.form-group label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.04);
}

.form-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
  text-align: left;
}

.form-checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--bg-primary);
  cursor: pointer;
  border-radius: 4px;
  margin-top: 2px;
}

.form-checkbox-group label {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
  cursor: pointer;
}

.form-checkbox-group label a {
  text-decoration: underline;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.form-checkbox-group label a:hover {
  color: var(--text-secondary);
}

.form-submit-btn {
  width: 100%;
  padding: 14px;
  background: var(--text-primary);
  color: var(--bg-primary);
  border: none;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.form-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

/* ── Honeypot (unsichtbar für echte Nutzer) ── */
.honeypot-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}

/* ── Submit-Button: Ladezustand ── */
.form-submit-btn .btn-loading {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.form-submit-btn.loading .btn-text {
  display: none;
}

.form-submit-btn.loading .btn-loading {
  display: inline-flex;
}

.form-submit-btn.loading {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.form-submit-btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.form-submit-btn:disabled:hover {
  transform: none;
  box-shadow: none;
}

/* Spinner-Animation */
.spinner {
  width: 18px;
  height: 18px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ── Formular-Status-Nachrichten ── */
.form-status {
  margin-bottom: 16px;
  padding: 0;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.5;
  transition: all var(--transition-fast);
  min-height: 0;
  overflow: hidden;
}

.form-status:empty {
  display: none;
}

.form-status-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
  padding: 10px 14px;
}

.form-status-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #34d399;
  padding: 10px 14px;
}

/* ==================== SUCCESS TOAST ==================== */
.success-toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #10b981;
  color: #ffffff;
  padding: 12px 28px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  z-index: 10001;
  box-shadow: 0 12px 32px rgba(16, 185, 129, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s var(--ease-out-expo), opacity 0.4s var(--ease-out-expo);
}

.success-toast.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==================== IMAGE LIGHTBOX MODAL ==================== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 11000;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out-expo);
  padding: 20px;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  font-size: 3rem;
  font-weight: 200;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition-fast), transform var(--transition-fast);
  z-index: 11001;
}

.lightbox-close-btn:hover {
  color: var(--text-primary);
  transform: scale(1.1);
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.95);
  transition: transform 0.4s var(--ease-out-expo);
}

.lightbox-overlay.active .lightbox-content {
  transform: scale(1);
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lightbox-caption {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 16px;
  text-align: center;
  max-width: 600px;
}

/* ==================== KÜBLER GRID SCROLLBAR ==================== */
.kuebler-grid {
  max-height: 58vh;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: thin;
}
.kuebler-grid::-webkit-scrollbar {
  width: 4px;
}
.kuebler-grid::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.02);
}
.kuebler-grid::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 4px;
}
.kuebler-grid::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}
/* Custom scrollbar class inherits properly on responsive views now */

/* ==================== ZOOM CURSOR FOR IMAGES ==================== */
.case-img img,
.merz-portrait img,
.referenz-media img,
.extra-item img {
  cursor: zoom-in;
}

/* ==================== PLUS BUTTON CARD ==================== */
.plus-card {
  background: rgba(255, 255, 255, 0.01) !important;
  border: 1px dashed rgba(255, 255, 255, 0.12) !important;
  cursor: pointer;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: stretch;
  min-height: 240px;
  transition: all var(--transition-medium) !important;
}
.plus-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}
.plus-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  transition: all var(--transition-medium);
}
.plus-symbol {
  font-size: 2.2rem;
  font-weight: 300;
  line-height: 1;
  color: var(--text-primary);
  transition: transform var(--transition-medium);
}
.plus-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}
.plus-card:hover {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4) !important;
}
.plus-card:hover .plus-circle {
  border-color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  transform: scale(1.05);
}
.plus-card:hover .plus-symbol {
  transform: rotate(90deg);
}
.plus-card:hover .plus-label {
  color: var(--text-primary);
}
.plus-card.active .plus-symbol {
  transform: rotate(45deg); /* morphs into an 'x' close button */
}

/* ==================== REFERENZEN CARD ASPECT RATIO (9:16) ==================== */
.referenzen-grid .referenz-media {
  height: 640px !important;
  aspect-ratio: 9 / 16 !important;
}

@media (max-width: 1023px) {
  .referenzen-grid .referenz-media {
    height: auto !important;
    aspect-ratio: 9 / 16 !important;
  }
}

.extras-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: rgba(10, 10, 10, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s var(--ease-out-expo), visibility 0.5s var(--ease-out-expo);
  padding: clamp(20px, 4vw, 60px);
}

.extras-modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.extras-modal-container {
  width: 100%;
  max-width: 1100px;
  max-height: 85vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-right: 12px;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.5s var(--ease-out-expo);
  scrollbar-width: thin;
}

.extras-modal-overlay.active .extras-modal-container {
  transform: scale(1) translateY(0);
}

/* Scrollbar for Extras Modal Container */
.extras-modal-container::-webkit-scrollbar {
  width: 6px;
}
.extras-modal-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
}
.extras-modal-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}
.extras-modal-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.35);
}

.extras-modal-close-btn {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  font-size: 3.5rem;
  font-weight: 200;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition-fast), transform var(--transition-fast);
  z-index: 9600;
}

.extras-modal-close-btn:hover {
  color: var(--text-primary);
  transform: scale(1.1);
}

.extras-modal-header {
  text-align: center;
}

.extras-modal-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.extras-modal-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Responsive Grid for Extras Modal (Masonry Layout) */
.extras-modal-grid {
  column-count: 3;
  column-gap: 24px;
  width: 100%;
}

@media (max-width: 768px) {
  .extras-modal-grid {
    column-count: 2;
    column-gap: 16px;
  }
  .extras-modal-item {
    margin-bottom: 16px !important;
  }
}

@media (max-width: 480px) {
  .extras-modal-grid {
    column-count: 1;
    column-gap: 0;
  }
}

.extras-modal-item {
  display: block;
  width: 100%;
  break-inside: avoid;
  margin-bottom: 24px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.06);
  aspect-ratio: 9 / 16;
  transition: transform 0.4s var(--ease-out-quart), border-color 0.4s, box-shadow 0.4s var(--ease-out-quart);
  transform: scale(0.95);
  opacity: 0;
  will-change: transform, opacity;
}

/* Staggered entrance pop up */
.extras-modal-overlay.active .extras-modal-item.animate-in {
  transform: scale(1);
  opacity: 1;
}

.extras-modal-item.video-item {
  aspect-ratio: 9 / 16 !important;
}

.extras-modal-item.landscape-item {
  aspect-ratio: 4 / 3 !important;
}

.extras-modal-item img,
.extras-modal-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out-quart);
}

.extras-modal-item:hover img,
.extras-modal-item:hover video {
  transform: scale(1.03);
}

.extras-modal-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Add zoom cursor to modal images */
.extras-modal-item img {
  cursor: zoom-in;
}

/* Fluid grid layout for screens where columns are side-by-side but narrow (e.g. iPad Pro) */
@media (min-width: 768px) and (max-width: 1280px) {
  .kuebler-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .kuebler-grid .video-wrapper,
  .kuebler-grid .case-img {
    width: 100% !important;
    height: min(24dvh, 230px) !important;
    aspect-ratio: 4 / 3 !important;
  }

  .merz-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .merz-grid .video-wrapper,
  .merz-grid .merz-portrait {
    width: 100% !important;
    height: min(46dvh, 440px) !important;
    aspect-ratio: 9 / 16 !important;
  }
}



