﻿/* ---------- Theme Tokens ---------- */
:root {
  /* Core colors */
  --bg: #000000;
  --bg-hero: #0a0a14;      /* Hero canvas; keep dark to avoid load flashes */
  --bg-showcase: #0d0d1a;  /* Dark band after hero; match hero for seamless transition */
  --bg-gear: #2975d9;      /* Primary blue block */
  --bg-contact: #000001;   /* Contact goes dark again */
  --fg: #f3f3f3;
  --muted: #a9a9a9;
  --card: #010105;
  --acc: #e6e6e6;
  --line: #232323;

  /* Layout */
  --pad: clamp(12px, 2.5vw, 24px);
  --radius: 18px;
  --header-h: 50px;             /* Resize when header height changes */
  --section-diagonal: clamp(32px, 5vw, 72px); /* Increase for steeper diagonals */

  /* Effects */
  --shadow: 0 6px 30px rgba(0, 0, 0, 0.35);
  font-synthesis-weight: none;
}

/* ---------- Base Elements ---------- */
[hidden] { display: none !important; }
* { box-sizing: border-box; }

html {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .25) transparent;
  background: var(--bg-hero);
}
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .25); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .35); }

body {
  margin: 0;
  background: var(--bg-hero); /* Keep the base canvas aligned with hero/showcase fallback */
  color: var(--fg);
  font: 16px/1.5 "Montserrat", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-top: var(--header-h); /* Keeps content clear of fixed header */
}

main {
  padding: 0;
  position: relative;
  z-index: 2;
  background: var(--bg-hero); /* Fallback while sections load */
}

h1, h2, h3, .hero-title, .brand-text {
  font-family: "Montserrat", "Segoe UI", sans-serif;
  letter-spacing: 0.04em;
}

a { color: var(--acc); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.visually-hidden { position: absolute; width: 0; height: 0; overflow: hidden; }
.mobile-only { display: none; }

/* ---------- Floating Contact Button ---------- */
.contact-fab {
  position: fixed;
  right: clamp(12px, 4vw, 22px);
  bottom: clamp(12px, 4vw, 22px);
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, #ffd86f, #ffae00);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
  border: none;
  color: #1b1505;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.02em;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px) scale(0.95);
  transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.2s ease;
  z-index: 12000;
}
.contact-fab::after { content: none; }
.contact-fab.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.contact-fab.is-hidden { opacity: 0; pointer-events: none; transform: translateY(8px) scale(0.92); }
.contact-fab:hover { box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4); transform: translateY(-1px) scale(1.02); }
@media (max-width: 640px) {
  .contact-fab { width: 42px; height: 42px; border-radius: 12px 12px 12px 6px; font-size: 15px; }
}

/* ---------- Buttons & Links ---------- */
.btn {
  padding: 12px 18px;           /* Increase for larger tap targets */
  border-radius: 999px;
  background: var(--acc);
  color: #111;
  font-weight: 700;
  font-family: "Montserrat", "League Gothic", "Segoe UI", sans-serif;
  border: 1px solid transparent;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn:hover { transform: translateY(-1px); }
.copy-btn { background: none; border: none; cursor: pointer; font-size: 1.2rem; margin-left: 8px; }
.link { text-decoration: underline; }

/* ---------- Reveal Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Layout Helpers ---------- */
.content-width-limiter {
  max-width: var(--tile-w, 1450px); /* Change var(--tile-w) to adjust global content width */
  margin: 0 auto;
  padding: 0 var(--pad);
}

.nav-is-open .hero,
.nav-is-open main,
.nav-is-open footer {
  filter: blur(50px);
  transition: filter 0.3s ease;
  pointer-events: none;
}

/* ---------- Diagonal Sections & Overlaps ---------- */
.hero,
#dollies,
#gear,
#contact {
  position: relative;
  margin: 0;
  overflow: hidden; /* Keep slopes and art contained */
}

.hero::before,
#dollies::before,
#gear::before,
#contact::before {
  display: none; /* Replaced by direct clip-path slope on sections */
}

#dollies,
#gear,
#contact {
  --slope: var(--section-diagonal);
  --section-pad-top: clamp(64px, 7vw, 120px);
  --section-pad-bottom: clamp(64px, 7vw, 120px);
  margin-top: calc(-1 * var(--slope));
  padding: calc(var(--section-pad-top) + var(--slope)) 0 var(--section-pad-bottom);
  clip-path: polygon(0 var(--slope), 100% 0, 100% 100%, 0 100%);
  background: var(--section-bg, var(--bg-hero));
}

#dollies {
  --section-bg: var(--bg-showcase);
  --slope: 0px;
  z-index: 2;
}

#gear {
  --section-bg: var(--bg-gear);
  z-index: 3;
}

#contact {
  --section-bg: var(--bg-contact);
  --section-pad-top: clamp(48px, 6vw, 96px);
  --section-pad-bottom: clamp(140px, 16vh, 220px);
  z-index: 4;
  color: var(--fg);
}

@supports not (clip-path: polygon(0 var(--section-diagonal), 100% 0, 100% 100%, 0 100%)) {
  #dollies,
  #gear,
  #contact {
    margin-top: 0;
    padding-top: var(--section-pad-top);
    clip-path: none;
  }
}

.hero {
  background: var(--bg-hero);
  padding: clamp(48px, 6vw, 96px) 0;
}

/* ---------- Mobile Tweaks ---------- */
@media (max-width: 760px) {
  .mobile-only {
    display: initial;
    content: '\A';
    white-space: pre;
  }
}

/* -------------------- 2. Site Header (Rebuilt) -------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  
  /* Visuals: adjust alpha/blur combo to change glassiness */
  background: #000000;
  backdrop-filter: blur(12px);
  
  /* Animation */
  transition: transform 220ms ease;
  will-change: transform;
}

/* This class is added by JavaScript to hide the header */
.site-header.is-hidden {
  transform: translateY(-100%);
}

/* Prevents a flash of animation on page load */
.js-warmup .site-header {
  transition: none !important;
}

/* Inner container for alignment */
.header-inner {
  height: var(--header-h, 64px); /* Tweak --header-h in base.css if header height changes */
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative; /* Anchor for the absolute positioned nav */
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 32px; height: 32px; }
.brand-wordmark { width: 72px; height: auto; display: block; font-family: "League Gothic", "Segoe UI", sans-serif; }

/* Group the nav and list button together */
.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav {
    position: absolute; /* Take it out of the normal flow */
    left: 50%; /* Move its left edge to the center of the screen */
    transform: translateX(-50%); /* Shift it back by half its own width */

    /* Keep these existing styles */
    display: flex; 
    gap: 28px; 
    align-items: center; 
}

.nav a { 
  opacity: 0.8; 
  transition: opacity 0.2s; 
  font-family: "Montserrat", "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.nav a:hover { opacity: 1; }

/* Header Inquiry List Button */
.nav-list-btn {
  background: none;
  border: none;
  color: var(--fg);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  position: relative;
  padding: 4px 8px;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.nav-list-btn:hover {
  opacity: 1;
}
.counter {
  position: absolute;
  top: -4px;
  right: -8px;
  background-color: #e11d48;
  color: white;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  padding: 0 4px;
  display: none; /* Hidden by default */
}
.counter.is-visible {
  display: inline-block;
}


/* Mobile Navigation (Hamburger Menu) */
.nav-toggle {
  display: none; /* Hide on desktop */
}

.nav-toggle-box {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  justify-content: center;
}

.nav-toggle-line {
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-is-open .nav-toggle-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-is-open .nav-toggle-line:nth-child(2) {
  opacity: 0;
}
.nav-is-open .nav-toggle-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 760px) {
    /* --- Mobile Navigation --- */
  .nav { 
    display: none; 
  }
  
  .nav-toggle {
    display: block;
    background: transparent;
    color: var(--fg);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    display: grid;
    place-items: center;
  }
  
  .nav[data-collapsible] {
    display: flex;
    position: fixed;
    top: var(--header-h, 64px);
    left: 0;
    right: 0;
    background: #000;
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: flex-start;
    padding: 40px;
    gap: 30px;
    
    /* Fix for FOUC */
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  }

  .nav[data-open="true"] {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
  }

  .nav a {
    font-size: 24px;
    opacity: 1;
  }
}

/* -------------------- 3. Hero Section -------------------- */
.hero {
  position: sticky;
  top: 0; /* Adjust if header height changes */
  display: grid;
  place-items: start center;
  min-height: 100vh; /* Lower for a shorter hero; keep >=80vh for impact */
  padding: clamp(20px, 4vh, 60px) var(--pad) clamp(60px, 8vh, 140px); /* First value = top breathing room */
  overflow: hidden;
  z-index: 1;
  opacity: 1;
  visibility: visible;
  transition: opacity 220ms ease;
}

.is-loading .hero {
  opacity: 0;
  visibility: hidden;
}

.is-ready .hero {
  opacity: 1;
  visibility: visible;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(160px, 22vh, 280px); /* Increase for a longer fade into the next section */
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 20, 0) 0%,
    rgba(10, 10, 20, 0.35) 45%,
    rgba(10, 10, 20, 0.7) 75%,
    var(--bg-showcase) 100%
  );
  pointer-events: none;
  z-index: 2;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(45px) saturate(50%) contrast(50%) brightness(30%); /* Darker, less saturated backdrop */
  transform: scale(1.05);
  transition: filter 600ms ease, transform 600ms ease;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 520px at 50% -10%, rgba(255, 255, 255, 0.06), transparent 60%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.65));
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 1600px;
  margin-top: clamp(20px, 6vh, 80px);  /* Raise hero content on desktop */
  padding: 0 4vw;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 761px) {
  .hero-content {
    margin-top: clamp(20px, 6vh, 80px);
  }
}

.hero-title {
  display: block;
  font-size: clamp(120px, 20vw, 240px);
  font-weight: 900;
  font-family: "League Gothic", "Montserrat", "Segoe UI", sans-serif;
  letter-spacing: -0.02em;
  line-height: 0.85;
  margin: 0;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-logo {
  display: block;
  width: clamp(420px, 52vw, 940px); /* Increase width; middle value keeps it centered responsively */
  max-width: min(88vw, 1000px);
  height: auto;
  margin: 0 auto;
}

.hero-sub {
  font-size: clamp(22px, 3vw, 36px);
  color: var(--muted);
  margin: 0.35em 0 0;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  display: block;
  text-align: center;
  line-height: 1.4;
  font-family: "League Gothic", "Segoe UI", sans-serif;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.6s ease 0.05s, transform 0.6s ease 0.05s;
}

.decrypt {
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "calt" 0;
  display: block;
  line-height: 1.15;
  min-height: 1.25em;
  padding: 2px 0;
}

@media (min-width: 761px) {
  .hero-sub .decrypt {
    white-space: nowrap;
  }
}

.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 22px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s;
}

.hero .btn {
  padding: 14px 22px;
  font-size: 17px;
}

.text-pressure {
  display: inline-block;
  transform-origin: center center;
  will-change: transform;
  transition: transform 120ms ease-out;
}

/* States for Hero animations (controlled by app.js) */
.hero.is-blurred .hero-media video {
  filter: blur(45px) saturate(110%) contrast(110%);
  transform: scale(1.05);
}

.hero-content.is-visible .hero-title,
.hero-content.is-visible .hero-sub,
.hero-content.is-visible .cta-row {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-media video {
    transition: none;
  }
}

@media (max-width: 760px) {
  /* --- Hero Section --- */
  .hero {
    min-height: 88vh; /* Shorter hero so the next section peeks in */
    padding-top: clamp(18px, 5vh, 52px); /* Push hero content down a bit */
    padding-bottom: clamp(32px, 6vh, 80px);
  }

  .hero-content {
    margin-top: 0; /* Center the hero block vertically on mobile */
    gap: 22px;
    align-items: center;
  }

  .hero-title {
    font-size: clamp(32px, 22vw, 140px);
    line-height: 1.05; /* Tighter line-height for large text */
  }

  .hero-logo {
    width: clamp(260px, 84vw, 480px);
    max-width: 94vw;
  }

  .hero-sub {
    font-size: clamp(18px, 5vw, 26px);
    line-height: 1.6;
    text-align: center;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

  /* --- CTA Buttons (Moved from showcase.css) --- */
  .cta-row {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 90%; /* Control the width of the buttons' container */
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
  }

  .cta-row .btn {
    width: 100%; /* Make both buttons fill the container */
    box-sizing: border-box; /* Ensures padding doesn't break the layout */
    text-align: center; /* Explicitly center the text */
  }
}

/* -------------------- 5. Media Card Gallery (Showcase) -------------------- */
#dollies,
.media-card-gallery {
  background-color: var(--bg-showcase);
  color: var(--fg);
}

.media-card-gallery {
  --gallery-gap: 24px;          /* Space between cards */
  --gallery-radius: 28px;       /* Card corner radius */
  --tile-w: min(98vw, 1360px);  /* Card width; ties to header width */
  --tile-ratio: .64;            /* Height = width * ratio */
  --inactive-scale: .94;        /* Scale for non-active cards */
  --inactive-opa: .58;          /* Opacity for non-active cards */
  --gallery-shadow: 0 14px 40px rgba(0, 0, 0, .35);
  --progress: 0;
  --progress-height: 6px;
  --progress-bg: rgba(255, 255, 255, .2);
  --progress-fg: #fff;
}

.media-card-gallery {
  position: relative;
  width: 100%;
  padding-top: 108px; /* room for pinned heading */
  display: grid;
  row-gap: 18px;
}

.track-viewport {
  position: relative;
  overflow: hidden;
  
  /* DELETE the old -webkit-mask-image and mask-image lines and REPLACE with these: */
  --edge-fade: 75px; /* Default fade size for desktop */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--edge-fade), #000 calc(100% - var(--edge-fade)), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 var(--edge-fade), #000 calc(100% - var(--edge-fade)), transparent 100%);
  touch-action: pan-y;
}

.track {
  display: flex;
  gap: var(--gallery-gap);
  padding: 6px var(--track-padding, 20px); /* Padding is now calculated by JS */
  will-change: transform;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card-container {
  flex: 0 0 var(--tile-w);
  display: grid;
  place-items: center;
}

.showcase-header {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: var(--tile-w);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  z-index: 3;
  justify-content: flex-start;
  box-sizing: border-box;
}

.showcase-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #f6c442;
  color: #1e1e1e;
  font-size: 24px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  position: relative;
  top: 2px;
}

.showcase-title {
  font-size: clamp(34px, 4.6vw, 66px);
  margin: 0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
  font-family: "Montserrat", "Segoe UI", sans-serif;
  font-weight: 700;
}

.card.tile {
  width: var(--tile-w);
  height: calc(var(--tile-w) * var(--tile-ratio));
  border-radius: var(--gallery-radius);
  overflow: hidden;
  box-shadow: var(--gallery-shadow);
  position: relative;
  transform: scale(var(--inactive-scale));
  opacity: var(--inactive-opa);
  transition: transform .35s ease, opacity .35s ease;
  cursor: pointer;
}

.card-container[aria-hidden="false"] .card.tile {
  transform: scale(1);
  opacity: 1;
}

.card.tile > video,
.card.tile > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}

/* Captions and Controls styling */
.caption-container {
  position: absolute;
  inset: auto 0 0 0;
  padding: 20px 24px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.caption {
  font-size: clamp(18px, 3.2vw, 28px);
  font-weight: 700;
  line-height: 1.25;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
  margin: 0;
}
.caption-actions {
  display: flex;
  gap: 10px;
}
.caption-actions .btn-ghost {
  background: #ffffff;
  color: #0f0f0f;
  border-color: #0f0f0f;
  text-shadow: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}
.caption-actions .btn-ghost:hover {
  background: #f5f5f5;
}
.btn.btn-small {
  padding: 8px 14px;
  font-size: 14px;
}
.aap { position: relative; z-index: 4; margin-top: 14px; display: grid; place-items: center; }
.dotnav { display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); padding: 10px 12px; border-radius: 999px; backdrop-filter: blur(8px); }
.dotnav-items { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 10px; }
.dotnav-item a { width: 10px; height: 10px; border-radius: 999px; display: block; background: rgba(255, 255, 255, .35); }
.dotnav-item[aria-current="true"] a { background: #fff; transform: scale(1.2); }
.progress { position: relative; width: 88px; height: var(--progress-height); background: var(--progress-bg); border-radius: 999px; overflow: hidden; }
.progress::after { content: ""; position: absolute; inset: 0; transform: scaleX(var(--progress)); transform-origin: left center; background: var(--progress-fg); transition: transform .18s linear; }

/* Dragging States */
.dragging .track {
  transition: none;
  cursor: grabbing;
}

.dragging .card {
  transition: opacity .2s ease;
}

/* Play/Pause Button Symbols */
.pp {
  position: relative;
  font-size: 0; /* Hide text */
  width: 40px;
  height: 30px;
  padding: 0;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: #111;
  color: #fff;
  border-radius: 999px;
  cursor: pointer;
}

/* Pause Symbol (when playing) */
.pp[aria-pressed="true"]::before,
.pp[aria-pressed="true"]::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 12px;
  background-color: white;
}
.pp[aria-pressed="true"]::before { left: 13px; }
.pp[aria-pressed="true"]::after { right: 13px; }

/* Play Symbol (when paused) */
.pp[aria-pressed="false"]::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid white;
  background-color: transparent;
}
.pp[aria-pressed="false"]::after {
  content: none;
}


/* ... (all desktop styles for showcase remain the same) ... */

/* Reduced Motion & Mobile adjustments */
@media (prefers-reduced-motion: reduce) {
  .track,
  .card,
  .progress::after {
    transition: none;
  }
}

@media (max-width:520px) {
  .media-card-gallery {
    --tile-ratio: 1.3;
    --edge-fade: 30px;
  }
}

@media (max-width: 760px) {
  /* --- (Der .cta-row Block wurde von hier entfernt) --- */

  .media-card-gallery {
    padding-top: 88px;
    padding-bottom: 90px;
  }

  .media-card-gallery {
    --tile-w: 96vw;
    --tile-ratio: 1.05;
  }

  .showcase-header {
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: var(--tile-w);
    padding-inline: 0;
    gap: 10px;
    justify-content: flex-start;
  }

  .showcase-badge {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }

  .showcase-title {
    font-size: clamp(26px, 6vw, 40px);
    margin-bottom: 6px;
    width: auto;
    text-align: left;
    letter-spacing: 0.08em;
  }

  .media-card-gallery .btn {
    padding: 4px 8px;
    font-size: 14px;
    text-align: center
  }

  .caption-actions .btn-ghost {
    display: none;
  }
}

/* -------------------- All Gear Section -------------------- */
.all-gear {
  padding: var(--pad) 0;
  background-color: var(--bg-gear);
  color: var(--fg);
}

.section-title {
  font-size: clamp(32px, 4.6vw, 58px);
  margin-bottom: 24px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.gear-grid {
  display: grid;
  gap: 28px;
  justify-items: center;
}

/* keep background visible; animate cards only */
.all-gear.reveal {
  opacity: 1;
  transform: none;
}

.gear-card-horizontal {
  opacity: 1;
  transform: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.gear-card-horizontal.reveal-card {
  opacity: 0;
  transform: translateY(12px);
}

.gear-card-horizontal.is-visible,
.all-gear.is-visible .gear-card-horizontal {
  opacity: 1;
  transform: none;
}

/* ---- Gear Cards Layout ---- */
.gear-card-horizontal {
  display: grid;
  grid-template-columns: minmax(340px, 1.1fr) minmax(480px, 1.9fr);
  gap: 28px;
  width: min(1400px, 100%);
  
  /* Card palette: adjust these four to retheme cards fast */
  --card-bg: #ffffff;
  --card-text: var(--bg);
  --card-text-muted: #1f1f1f;
  --card-border: #ccc;

  background-color: var(--card-bg);
  color: var(--card-text);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 28px;
  min-height: 380px;
}


.gear-card-media {
  position: relative;
  width: 100%;
  height: clamp(300px, 38vw, 460px);
  min-height: 300px;
  max-height: 460px;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: var(--card-bg);
  border-radius: calc(var(--radius) - 6px);
  overflow: hidden;
}

.gear-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #000;
  border-radius: calc(var(--radius) - 6px);
  cursor: pointer;
  display: block;
  /* Optional depth: uncomment for a floating thumb */
  /* box-shadow: 0 20px 40px rgba(0,0,0,.6); */
}

.gear-thumb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  opacity: 0;
  pointer-events: none;
}

.gear-thumb-prev { left: 12px; }
.gear-thumb-next { right: 12px; }

.gear-thumb-nav:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: translateY(-50%) scale(1.03);
}

@media (min-width: 769px) {
  .gear-card-media:hover .gear-thumb-nav,
  .gear-card-media:focus-within .gear-thumb-nav {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 768px) {
  .gear-thumb-nav {
    display: none;
  }
}

.gear-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 999px;
  display: none;
}

.gear-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.gear-dot.is-active {
  background: #fff;
  transform: scale(1.15);
}

.gear-thumb-nav.is-hidden,
.gear-dots.is-hidden {
  display: none;
}


/* Textseite */
.gear-card-info {
  /* Flex layout keeps actions pinned to the bottom */
  display: flex;
  flex-direction: column;
  height: 100%; /* Stellt sicher, dass der Container die volle HÃ¶he hat */
  padding: 8px 14px 0;
  max-width: 760px;
  position: relative; /* Anchor for absolute icon */
}


.gear-card-title {
  font-size: clamp(34px, 3.6vw, 56px);
  margin: 0 0 14px; /* Mehr margin-bottom */
  line-height: 1.2;
  letter-spacing: 0.04em; /* Wunsch nach mehr spacing */
  /* Farbe wird von .gear-card-horizontal geerbt */
  font-family: "League Gothic", "Segoe UI", sans-serif;
}

.gear-card-desc {
  color: var(--card-text-muted);
  margin: 0 0 18px;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.5;
  max-width: 75ch;
}

.gear-card-actions {
  /* margin-top: auto pins actions to the bottom */
  margin-top: auto; 
  padding-top: 16px; /* Etwas Luft nach oben */
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
}
.gear-card-actions .btn {
  box-shadow: none;
  background: #2975d9;
  color: #fff;
  border: 1px solid #1f5fb4;
}
.gear-card-actions .btn:hover {
  transform: translateY(-1px); /* Hover-Effekt beibehalten */
  filter: brightness(0.95);
}

.gear-card-icon {
  position: absolute;
  right: 12px; /* Desktop anchor position */
  bottom: 12px; /* Adjust vertical placement */
  max-width: 120px; /* Desktop icon size */
  opacity: 0.85;
}
.gear-card-icon img {
  display: block;
  width: 100%;
  height: auto;
}

.gear-card-actions .btn-ghost {
  background: #000;
  color: #fff;
  border-color: #000;
}

.gear-share {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 999px;
  display: none;
  place-items: center;
  font-size: 0;
}

.gear-share::before {
  content: "";
  width: 16px;
  height: 16px;
  background: currentColor;
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 16V3'/><path d='M8 7l4-4 4 4'/><path d='M4 14v6h16v-6'/></svg>");
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 16V3'/><path d='M8 7l4-4 4 4'/><path d='M4 14v6h16v-6'/></svg>");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}

@media (max-width: 768px) {
  .gear-share {
    display: grid;
    width: 28px;
    height: 28px;
    position: absolute;
    right: 10px;
    bottom: 10px;
    border-radius: 8px;
    background: #ffffff;
    color: #0a0a14;
    border: 1px solid #0a0a14;
    box-shadow: none;
    z-index: 2;
  }

  .gear-share::before {
    width: 14px;
    height: 14px;
  }
}

.gear-bundle {
  margin-top: 6px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--card-border);
  border-radius: calc(var(--radius) - 8px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gear-bundle-items {
  display: grid;
  gap: 10px;
}

.gear-bundle-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.bundle-item-thumb {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: #000;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.bundle-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bundle-item-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bundle-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.bundle-item-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.bundle-item-price {
  font-size: 13px;
  color: var(--card-text-muted);
  font-weight: 700;
  white-space: nowrap;
}

.bundle-item-desc {
  margin: 0;
  color: var(--card-text-muted);
  font-size: 14px;
  line-height: 1.45;
}

.bundle-item-cta {
  white-space: nowrap;
  padding: 8px 14px;
}

.gear-bundle-toggle {
  align-self: flex-start;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: transparent;
  color: var(--card-text);
  font-weight: 700;
  cursor: pointer;
}

.gear-bundle-item.is-hidden {
  display: none;
}


@media (max-width: 768px) {
  .gear-card-horizontal {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 16px;
  }
  .gear-card-media {
    height: clamp(300px, 88vw, 440px);
    min-height: 300px;
    max-height: 480px;
    aspect-ratio: 4 / 3;
  }
  .gear-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .gear-card-info {
    height: auto; /* Auf MobilgerÃ¤ten normales Verhalten */
    padding: 0;
    max-width: none;
  }
  .gear-card-title {
    font-size: clamp(26px, 7vw, 32px);
  }
  .gear-card-desc {
    font-size: 16px;
  }

  .gear-bundle {
    padding: 10px 12px;
  }

  .gear-bundle-item {
    grid-template-columns: 56px 1fr;
    grid-template-areas:
      "thumb body"
      "cta cta";
  }

  .bundle-item-thumb {
    grid-area: thumb;
  }

  .bundle-item-body {
    grid-area: body;
  }

  .bundle-item-cta {
    grid-area: cta;
    justify-self: flex-start;
  }

  .bundle-item-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .gear-card-icon {
    right: 6px;
    bottom: 6px;
    max-width: 56px; /* Keep the placeholder icon tiny on mobile */
    opacity: 0.6;
  }
}

@media (min-width: 960px) {
  .gear-card-title {
    font-size: clamp(40px, 3.8vw, 60px);
  }
  .gear-card-desc {
    font-size: 18px;
    line-height: 1.6;
  }
}

/* ---- Tech Spec Panel ---- */
.gear-spec-panel {
  background-color: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  margin-bottom: 24px;
  max-width: 900px;
  width: 100%;
}

/* 2 columns on desktop, 1 col on narrow */
.gear-specs {
  list-style: none;
  margin: 0 0 12px 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  column-gap: 32px;
  row-gap: 16px;
}

@media (max-width: 760px) {
  .gear-specs {
    grid-template-columns: 1fr;
  }
}

/* einzelne spec line */
.gear-specs li {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  font-size: clamp(14px, 1.05vw, 17px);
  line-height: 1.5;
  color: var(--card-text); /* Variable verwenden */
  font-weight: 600;
  box-shadow: none;
  min-height: unset;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* label oben */
.gear-specs li span {
  font-size: clamp(13px, 0.95vw, 15px);
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--card-text-muted); /* Variable verwenden */
  margin-bottom: 4px;
  display: block;
}

/* Quelle / Hinweis */
.gear-spec-note {
  font-size: 12px;
  line-height: 1.5;
  color: var(--card-text-muted); /* Variable verwenden */
  opacity: 0.8;
}

/* -------------------- Contact & Impressum Section -------------------- */
.contact-section {
  position: relative;
  color: var(--fg);
  background: transparent;
}

.contact-title {
  text-align: center;
  font-size: clamp(42px, 6vw, 72px);
  letter-spacing: 0.12em;
  margin-bottom: 22px;
  color: #ffffff; /* Keep the Kontakt title readable on dark background */
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 28px;
  justify-items: center;
  justify-content: center;
  align-items: start;
  max-width: 1080px;
  margin: 0 auto;
}

.contact-card {
  background-color: #ffffff; /* Make contact cards solid white */
  color: #0a0a14;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  text-align: center;
  width: 100%;
  border: 1px solid #d9e4f5;
}

.contact-card h3 {
  font-size: 22px;
  color: #0a0a14;
  margin: 0 0 14px;
  letter-spacing: 0.06em;
}

.contact-card p,
.contact-card a {
  color: #0a0a14; /* Card text stays dark for readability */
}

.contact-card .contact-details {
  font-size: clamp(26px, 4.8vw, 38px); /* Make phone/email bigger */
  font-weight: 700;
  margin: 0;
  color: #0a0a14;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
}

.contact-card .contact-details a {
  color: #0a0a14;
  text-decoration: none;
  min-width: 0;
}

.contact-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 14px;
}

.contact-link {
  color: #0a0a14;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
}

.copy-btn {
  background: transparent;
  border: none;
  color: #2975d9; /* Brand blue icon */
  border-radius: 0;
  padding: 0;
}

.copy-btn:hover {
  border-color: transparent;
  filter: brightness(0.9);
}

.contact-link:hover {
  border-color: #0a0a14;
}

/* Styling for the new introductory text */
.contact-intro-text {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 500;
  color: #000;
  text-align: center;
  margin: 12px 0 -4px;
  grid-column: 1 / -1;
}

.contact-illustration {
  position: absolute;
  right: clamp(24px, 7vw, 90px);
  bottom: clamp(420px, 32vw, 640px);
  width: clamp(220px, 26vw, 360px);
  max-width: min(34vw, 380px);
  max-height: 60vh;
  display: none;
  opacity: 0.9;
  pointer-events: none;
  filter: none;
  z-index: 1;
}

.contact-illustration img {
  width: 100%;
  height: auto;
  display: block;
}

.contact-grid,
.contact-card {
  position: relative;
  z-index: 2;
}

@media (min-width: 1700px) {
  .contact-illustration {
    display: block;
  }
}

@media (max-width: 420px) {
  .contact-card .contact-details {
    font-size: clamp(20px, 6vw, 28px);
    gap: 8px;
  }

  .contact-card .copy-btn {
    font-size: 1rem;
  }
}

/* Make the email card full width on wider screens */
@media (min-width: 624px) {
  .contact-card-full-width {
    grid-column: span 2;
    max-width: 880px;
    justify-self: center;
  }
}

/* Impressum card should stay left-aligned on all sizes */
.impressum-card {
  text-align: left;
}

.contact-card.impressum-card,
.contact-card.impressum-card h3,
.contact-card.impressum-card p {
  text-align: left;
}

/* Ensure the Impressum card still spans 2 columns on wider screens */
@media (min-width: 624px) {
  .impressum-card {
    grid-column: span 2;
    max-width: 880px;
    justify-self: center;
  }
}

.impressum-card p {
  font-size: 16px; /* Increase font size for better readability */
  line-height: 1.7;
  color: #0a0a14; /* Make Impressum text solid dark */
}

.impressum-note {
  margin-top: 1em;
  color: var(--muted); /* Keep the placeholder copy muted */
}

.impressum-card a {
  color: #0a0a14; /* Make links dark as well */
  text-decoration: underline;
}

/* -------------------- Legal / About Pages -------------------- */
.page-shell {
  background: var(--bg-hero);
  color: var(--fg);
}

.page-hero {
  padding: clamp(56px, 7vw, 120px) 0 clamp(32px, 6vw, 72px);
  background: linear-gradient(180deg, rgba(10, 10, 20, 0.96) 0%, rgba(10, 10, 20, 0.4) 100%);
}

.page-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 14px;
}

.page-title {
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: 0.08em;
  margin: 0 0 14px;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.page-lede {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 18px);
  margin: 0 0 22px;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-section {
  padding: 0 0 clamp(72px, 10vw, 140px);
}

.page-grid {
  display: grid;
  gap: clamp(18px, 3vw, 32px);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.page-card,
.page-content {
  background: #0b0b16;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px);
  box-shadow: var(--shadow);
}

.page-card h2,
.page-content h2 {
  margin-top: 0;
  letter-spacing: 0.08em;
  font-size: clamp(20px, 2.4vw, 26px);
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.page-card a,
.page-content a {
  color: var(--acc);
  text-decoration: underline;
}

.page-content {
  max-width: 980px;
  margin: 0 auto;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.legal-section + .legal-section {
  margin-top: clamp(20px, 4vw, 36px);
}

.legal-list {
  padding-left: 1.2rem;
  margin: 16px 0 0;
}

.legal-list li {
  margin-bottom: 10px;
  color: var(--muted);
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

/* This targets screens wide enough for a 2x2 grid */
@media (min-width: 624px) { 
  .impressum-card {
    grid-column: span 2; /* Tells the card to take up two grid columns */
  }
}

/* -------------------- 6. Footer -------------------- */
.site-footer {
  border-top: none;
  padding: clamp(10px, 2vw, 18px);
  text-align: center;
  color: var(--muted);
  background: var(--bg-contact);
  position: relative;
  z-index: 5;
}

.logos {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  margin-bottom: 8px;
}

.logos img {
  height: 28px; /* Bump to scale partner logos */
  opacity: 0.9;
  filter: grayscale(100%);
}

.footer-sticker {
  display: flex;
  justify-content: center;
  padding: 6px 0;
}

.footer-sticker img {
  width: min(60px, 18vw);
  height: auto;
  aspect-ratio: 1 / 1;
}

.site-footer small {
  display: block;
  border-top: 1px solid var(--line);
  padding-top: 6px;
  margin-top: 6px;
}

/* Disable old modal markup; new lightbox is built dynamically */
.zoom-modal { display: none !important; }

/* New lightweight lightbox */
.lb-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 3vw, 24px); /* Raise the first value to add breathing room on very small screens */
  background: rgba(0, 0, 0, 0.9);
  z-index: 20000;
}

.lb-shell {
  position: relative;
  width: min(94vw, 1100px);
  max-width: 1100px;
  height: min(92vh, 920px);
  max-height: 92vh;
  background: #0d0d0d;
  border-radius: 14px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.lb-close {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.92);
  border: none;
  border-radius: 999px;
  font-size: 18px;
  cursor: pointer;
  z-index: 3;
}

.lb-stage {
  flex: 1;
  display: grid;
  place-items: center;
  padding: clamp(12px, 2vw, 20px);
  min-height: 0;
  width: 100%;
  max-height: calc(92vh - 140px);
}

.lb-stage img {
  max-width: 100%;
  max-height: 100%;
  max-height: calc(92vh - 170px);
  object-fit: contain;
  border-radius: 10px;
  display: block;
}

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) scale(1);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  font-family: "Montserrat", "Segoe UI", sans-serif;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
  line-height: 1;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.lb-nav.left { left: 14px; }
.lb-nav.right { right: 14px; }
.lb-nav:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.04);
}

.lb-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 999px;
}

.lb-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.lb-dot.is-active {
  background: #fff;
  transform: scale(1.1);
}

@media (max-width: 640px) {
  .lb-shell {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    border-radius: 0;
  }

  .lb-stage {
    padding: 12px;
    max-height: calc(100vh - 170px);
  }

  .lb-close {
    top: 14px;
    right: 14px;
  }
}

