/* TURNS Website v2.0 - Main Styles */

/* ===========================
   1. Base Styles
   =========================== */

/* Import Fonts */
@import './fonts.css';
@import './typography.css';

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

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

body {
  line-height: 1.5;
  color: #111214;
  background: #ffffff;
}

/* ===========================
   2. Custom Properties
   =========================== */

:root {
  /* Colors */
  --color-yellow: #fffc35;
  --color-dark: #111214;
  --color-white: #ffffff;
  --color-gray: #f5f5f5;

  /* Typography */
  --font-primary: 'Euclid Circular A', system-ui, sans-serif;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;

  /* Spacing System (8-base) */
  --space-1: 0.5rem;   /* 8px */
  --space-2: 1rem;     /* 16px */
  --space-3: 1.5rem;   /* 24px */
  --space-4: 2rem;     /* 32px */
  --space-5: 2.5rem;   /* 40px */
  --space-6: 3rem;     /* 48px */
  --space-8: 4rem;     /* 64px */
  --space-10: 5rem;    /* 80px */
  --space-12: 6rem;    /* 96px */
  --space-16: 8rem;    /* 128px */
  --space-20: 10rem;   /* 160px */
  --space-24: 12rem;   /* 192px */
  --space-32: 16rem;   /* 256px */

  /* Legacy spacing (kept for backwards compatibility) */
  --spacing-xs: var(--space-1);
  --spacing-sm: var(--space-2);
  --spacing-md: var(--space-3);
  --spacing-lg: var(--space-4);
  --spacing-xl: var(--space-6);
  --spacing-2xl: var(--space-8);

  /* Transitions */
  --transition-fast: 200ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;

  /* Content Alignment - Vertical line right of header logo */
  --header-padding-left: 40px;
  --logo-height: 48px;
  --logo-aspect-ratio: 3.1691; /* 881/278 from logo.svg viewBox */
  --logo-width: calc(var(--logo-height) * var(--logo-aspect-ratio)); /* ~152px */
  --content-alignment: calc(var(--header-padding-left) + var(--logo-width) + 20px); /* ~212px */
  --content-alignment-mobile: var(--space-3); /* 24px */

  /* Grid System - Desktop (12 columns) */
  --grid-columns: 12;
  --grid-gutter: var(--space-3); /* 24px */
  --grid-margin-left: var(--content-alignment); /* ~212px - aligns with vertical line */
  --grid-margin-right: var(--content-alignment); /* ~212px - symmetric with left */
  --container-max-width: 1920px;
}

/* Tablet: 8-column grid */
@media (min-width: 769px) and (max-width: 1024px) {
  :root {
    --grid-columns: 8;
    --grid-gutter: var(--space-2); /* 16px */
    --grid-margin-left: var(--space-8); /* 64px */
    --grid-margin-right: var(--space-8); /* 64px - symmetric */
  }
}

/* Mobile: 4-column grid */
@media (max-width: 768px) {
  :root {
    --content-alignment: var(--content-alignment-mobile);
    --grid-columns: 4;
    --grid-gutter: var(--space-2); /* 16px */
    --grid-margin-left: var(--content-alignment-mobile); /* 24px */
    --grid-margin-right: var(--space-3); /* 24px */
  }
}

/* ===========================
   3. Hero Animation Styles
   =========================== */

.scene-1-title-screen {
  background: var(--color-yellow);
  min-height: 100vh;
  position: relative;
}

.scene-1-content {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  padding-left: var(--content-alignment);
  padding-right: var(--content-alignment);
}

.scene-1-white-circle {
  position: absolute;
  width: clamp(300px, 60vh, 800px);
  height: clamp(300px, 60vh, 800px);
  border-radius: 50%;
  background: white;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
}

.scene-1-yellow-dot {
  position: absolute;
  width: clamp(80px, 16vh, 200px);
  height: clamp(80px, 16vh, 200px);
  border-radius: 50%;
  background: var(--color-yellow);
  top: 15%;
  left: 15%;
}

.background-gif {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  z-index: 1;
}

.slide-inner-container {
  position: relative;
  width: 100%;
  z-index: 2;
}

.title-container {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
}

.title-split {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: clamp(1rem, 2vh, 2rem);
  white-space: nowrap;
  width: 100%;
}

.hero-text {
  opacity: 0; /* Start hidden for animation */
  will-change: transform, opacity;
  text-align: left;
  margin: 0;
  max-width: 100%;
  word-wrap: break-word;
  white-space: normal;
}

/* ===========================
   4. Intro Sequence Styles
   =========================== */

.intro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-yellow);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease;
}

.intro-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-logo {
  max-width: 60vw;
  max-height: 40vh;
  width: auto;
  height: auto;
  opacity: 0;
  transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
}

/* Fallback class for non-GSAP transition */
.intro-logo.transitioning {
  position: fixed;
  top: 24px;
  left: 40px;
  max-width: 48px;
  max-height: 48px;
  opacity: 1;
  transform: scale(1);
}

/* Loading indicator (pulsing animation while assets load) */
.intro-loading-indicator {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.intro-loading-pulse {
  width: 12px;
  height: 12px;
  background-color: var(--color-dark);
  border-radius: 50%;
  animation: intro-pulse 1.5s ease-in-out infinite;
}

@keyframes intro-pulse {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* Mobile adjustments for intro */
@media (max-width: 768px) {
  .intro-logo {
    max-width: 80vw;
    max-height: 30vh;
  }

  .intro-loading-indicator {
    bottom: 15%;
  }
}

/* ===========================
   5. Grid System
   =========================== */

/* Grid Container */
.grid-container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding-left: var(--grid-margin-left);
  padding-right: var(--grid-margin-right);
}

/* Grid Layout */
.grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), 1fr);
  gap: var(--grid-gutter);
  width: 100%;
}

/* Grid Column Spans - Desktop (12 columns) */
.col-1 { grid-column: span 1; }
.col-2 { grid-column: span 2; }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }
.col-10 { grid-column: span 10; }
.col-11 { grid-column: span 11; }
.col-12 { grid-column: span 12; }

/* Column Start Positions */
.col-start-1 { grid-column-start: 1; }
.col-start-2 { grid-column-start: 2; }
.col-start-3 { grid-column-start: 3; }
.col-start-4 { grid-column-start: 4; }
.col-start-5 { grid-column-start: 5; }
.col-start-6 { grid-column-start: 6; }
.col-start-7 { grid-column-start: 7; }

/* Tablet Responsive (8 columns) */
@media (min-width: 769px) and (max-width: 1024px) {
  .col-md-1 { grid-column: span 1; }
  .col-md-2 { grid-column: span 2; }
  .col-md-3 { grid-column: span 3; }
  .col-md-4 { grid-column: span 4; }
  .col-md-5 { grid-column: span 5; }
  .col-md-6 { grid-column: span 6; }
  .col-md-7 { grid-column: span 7; }
  .col-md-8 { grid-column: span 8; }
}

/* Mobile Responsive (4 columns) */
@media (max-width: 768px) {
  .col-sm-1 { grid-column: span 1; }
  .col-sm-2 { grid-column: span 2; }
  .col-sm-3 { grid-column: span 3; }
  .col-sm-4 { grid-column: span 4; }
}

/* ===========================
   6. Main App Container
   =========================== */

/* Main content container - no padding, sections handle their own */
#app {
  width: 100%;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* ===========================
   7. Section Base Styles
   =========================== */

.section {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
}

/* Circle Section - Background image sizing (same size as hero circle) */
.circle-section-bg {
  background-size: clamp(300px, 80vh, 800px);
}

/* Tablet: Medium circle (same as hero tablet) */
@media (min-width: 769px) and (max-width: 1024px) {
  .circle-section-bg {
    background-size: clamp(250px, 50vh, 600px);
  }
}

/* Mobile: Smaller circle (same as hero mobile) */
@media (max-width: 768px) {
  .circle-section-bg {
    background-size: clamp(200px, 40vh, 400px);
  }
  .section {
  min-height: 50vh;
}
}

/* ===========================
   6. Faserkreislauf Section Styles
   =========================== */

/* Circle Section with Transformation */
.circle-section-transforming {
  position: relative;
  overflow: hidden;
}

/* Overlapping SVG circles */
.circle-svg {
  position: absolute;
  width: clamp(300px, 60vh, 800px);
  height: clamp(300px, 60vh, 800px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
}

.circle-svg-yellow {
  z-index: 1;
}

.circle-svg-white {
  z-index: 2;
}

/* Initial text content (fades out during transformation) */
.circle-text-content {
  position: relative;
  z-index: 5;
  max-width: 75%;
  will-change: opacity, transform;
}

/* Yarn icon (appears during transformation) */
.yarn-icon {
  position: absolute;
  width: clamp(120px, 20vh, 240px);
  height: clamp(120px, 20vh, 240px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 8;
  pointer-events: none;
  will-change: opacity, transform, scale;
}

/* Faserkreislauf scene content container */
.faserkreislauf-scene-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: opacity;
}

/* Mobile Step Label (above circle) */
.mobile-step-label {
  display: none; /* Hidden on desktop */
}

@media (max-width: 768px) {
  .mobile-step-label {
    display: flex;
    align-items: flex-end;
    gap: var(--space-2);
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
  }

  .mobile-step-number {
    font-size: clamp(32px, 8vw, 48px);
    font-weight: bold;
    color: var(--color-dark);
    line-height: 1;
  }

  .mobile-step-text {
    font-size: clamp(14px, 4vw, 18px);
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-dark);
    white-space: nowrap;
  }

  /* Hide desktop labels on mobile */
  .kreislauf-labels-container {
    display: none;
  }

  /* Remove excessive height from Section 2 on mobile */
  #section-2 section {
    min-height: auto;
  }
  .scene-3-content {
  height: auto; /* auto height */
  
}
}

/* Scene 3: Faserkreislauf */
.scene-3-content {
  position: relative;
  width: 100%;
  height: 100vh; /* Explicit height */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible; /* Allow overflow for debugging */
}

/* Static ring layer (bottom) - accumulates dots */
.faserkreislauf-ring-static {
  position: absolute;
  width: clamp(300px, 60vh, 800px);
  height: clamp(300px, 60vh, 800px);
  z-index: 10;
  opacity: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Rotating ring layer (top) - rotates with active dot */
.faserkreislauf-ring-rotating {
  position: absolute;
  width: clamp(300px, 60vh, 800px);
  height: clamp(300px, 60vh, 800px);
  z-index: 11;
  opacity: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}



.center-icon {
  width: clamp(80px, 16vh, 160px);
  height: auto;
  opacity: 0;
  margin-bottom: clamp(8px, 1.5vh, 15px);
}

.center-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  opacity: 0;
}

.center-text-turns {
  font-family: 'Euclid Circular A', sans-serif;
  font-size: clamp(20px, 3.5vh, 35px);
  font-weight: 600;
  color: var(--color-dark);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.center-text-faserkreislauf {
  font-family: 'Euclid Circular A', sans-serif;
  font-size: clamp(14px, 2.2vh, 22px);
  font-weight: 400;
  color: var(--color-dark);
  line-height: 1.2;
  text-transform: lowercase;
  letter-spacing: 0.01em;
}

/* Icons container (ON the ring) */
.kreislauf-icons-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(300px, 60vh, 800px);
  height: clamp(300px, 60vh, 800px);
  z-index: 13;
}

.icon-item {
  position: absolute;
  width: clamp(50px, 8vh, 80px);
  height: clamp(50px, 8vh, 80px);
  opacity: 0;
  transform: translate(-50%, -50%);
}

/* Individual icon positioning */
.icon-item[data-step="1"] {
  left: 22.5%;
  top: 22%;
}

.icon-item[data-step="2"] {
  left: 70%;
  top: 15%;
}

.icon-item[data-step="3"] {
  left: 90%;
  top: 57.2%;
}

.icon-item[data-step="4"] {
  left: 55%;
  top: 91%;
}

.icon-item[data-step="5"] {
  left: 13.5%;
  top: 67%;
}

.icon-svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(40px, 6vh, 60px);
  height: clamp(40px, 6vh, 60px);
  opacity: 0;
}

/* Labels container (OUTSIDE the ring) */
.kreislauf-labels-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(450px, 90vh, 1200px);
  height: clamp(450px, 90vh, 1200px);
  z-index: 14;
}

.label-item {
  position: absolute;
  display: flex;
  align-items: flex-end;
  gap: clamp(8px, 1.5vh, 15px);
  opacity: 0;
  transform: translate(-50%, -50%);
}

/* Individual label positioning */
.label-item[data-step="1"] {
  left: 21.8%;
  top: 18.8%;
}

.label-item[data-step="2"] {
  left: 72%;
  top: 13.5%;
}

.label-item[data-step="3"] {
  left: 96%;
  top: 58.7%;
}

.label-item[data-step="4"] {
  left: 55%;
  top: 88%;
}

.label-item[data-step="5"] {
  left: 9.6%;
  top: 67.2%;
}

.step-number {
  font-size: clamp(48px, 8vh, 80px);
  font-weight: bold;
  color: var(--color-dark);
  line-height: 1;
  opacity: 0;
}

.step-label {
  font-size: clamp(16px, 2.5vh, 24px);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-dark);
  white-space: nowrap;
  line-height: 1;
  opacity: 0;
}

/* Tablet responsive (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .circle-svg {
    width: clamp(250px, 50vh, 600px);
    height: clamp(250px, 50vh, 600px);
  }

  .yarn-icon {
    width: clamp(100px, 16vh, 200px);
    height: clamp(100px, 16vh, 200px);
  }

  .circle-text-content {
    max-width: 70%;
  }

  .faserkreislauf-ring-static,
  .faserkreislauf-ring-rotating {
    width: clamp(250px, 50vh, 600px);
    height: clamp(250px, 50vh, 600px);
  }

  .kreislauf-icons-container {
    width: clamp(250px, 50vh, 600px);
    height: clamp(250px, 50vh, 600px);
  }

  .kreislauf-labels-container {
    width: clamp(375px, 75vh, 900px);
    height: clamp(375px, 75vh, 900px);
  }

  .center-circle {
    width: clamp(180px, 30vh, 300px);
    height: clamp(180px, 30vh, 300px);
  }
}

/* Mobile responsive (< 768px) */
@media (max-width: 768px) {
  .circle-svg {
    width: clamp(200px, 40vh, 400px);
    height: clamp(200px, 40vh, 400px);
  }

  .yarn-icon {
    width: clamp(80px, 12vh, 160px);
    height: clamp(80px, 12vh, 160px);
  }

  .circle-text-content {
    max-width: 85%;
  }

  .faserkreislauf-ring-static,
  .faserkreislauf-ring-rotating {
    width: clamp(200px, 40vh, 400px);
    height: clamp(200px, 40vh, 400px);
  }

  .kreislauf-icons-container {
    width: clamp(200px, 40vh, 400px);
    height: clamp(200px, 40vh, 400px);
  }

  .kreislauf-labels-container {
    width: clamp(300px, 60vh, 600px);
    height: clamp(300px, 60vh, 600px);
  }

  .center-circle {
    width: clamp(150px, 25vh, 250px);
    height: clamp(150px, 25vh, 250px);
  }

  .step-number {
    font-size: clamp(32px, 6vh, 60px);
  }

  .step-label {
    font-size: clamp(12px, 2vh, 18px);
  }

  .icon-svg {
    width: clamp(30px, 5vh, 50px);
    height: clamp(30px, 5vh, 50px);
  }

  .center-icon {
    width: clamp(60px, 12vh, 120px);
  }
}

/* ===========================
   6. Tablet Showcase Section (Section 5)
   =========================== */

.tablet-showcase-section {
  position: relative;
  overflow: hidden;
}

.tablet-text-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Demo Button */
.demo-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background-color: var(--color-dark);
  color: #ffffff;
  border: 1px solid var(--color-dark);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
  width: fit-content;
}

.demo-button:hover {
  background-color: transparent;
  color: var(--color-dark);
}

.demo-button svg {
  transition: transform 0.3s ease;
}

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

/* Screenshots Container */
.tablet-screenshots-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: var(--space-8);
}

.tablet-screenshot {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.15));
  border-radius: 12px;
}

/* Front screenshot (vorderes Bild) */
.screenshot-front {
  position: relative;
  z-index: 2;
  width: 600px;
}

/* Back screenshot (versetztes Hintergrundbild) */
.screenshot-back {
  position: absolute;
  right: 0;
  top: 40%;
  transform: translateY(-50%) translateX(15%);
  z-index: 1;
  width: 600px;
  opacity: 0.85;
}

.screenshot-back img {
  filter: drop-shadow(0 15px 50px rgba(0, 0, 0, 0.12));
}


/* Mobile responsive for tablet showcase */
@media (max-width: 768px) {
  .tablet-screenshots-container {
    margin-top: var(--space-8);
    padding-left: 0;
    flex-direction: column;
    align-items: center;
  }

  .screenshot-front {
    max-width: 85vw;
  }

  .screenshot-back {
    display: none;
  }

  .tablet-screenshot {
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
  }

  .tablet-text-content {
    padding-top: var(--space-8);
  }

  .demo-button {
    width: 100%;
    justify-content: center;
  }
}

/* ===========================
   6.1 Split Content Section (Section 6)
   =========================== */

.split-content-image {
  width: auto;
  max-height: 70vh;
  object-fit: cover;
  object-position: center;
}

/* Mobile responsive for split content */
@media (max-width: 768px) {
  .split-content-image {
    max-height: 70vh;
  }
}

/* ===========================
   6.2 CTA Section (Section 7)
   =========================== */

.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-text-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cta-gif-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
}

.cta-gif {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
}

/* Mobile responsive for CTA section */
@media (max-width: 768px) {
  .cta-gif-container {
    margin-top: var(--space-8);
    justify-content: center;
  }

  .cta-gif {
    max-width: 90vw;
  }


  .demo-button {
    width: 100%;
    justify-content: center;
  }
}

/* ===========================
   7. Header and Navigation
   =========================== */

/* Header visibility */
#header {
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#header.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Burger Menu */
.burger {
  width: 24px;
  height: 18px;
  position: relative;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  transition: transform 0.3s ease;
}

.burger:hover {
  animation: tilt-shake 0.6s ease;
}

.burger span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: #111214;
  border-radius: 2px;
  opacity: 1;
  left: 0;
  transition: 0.3s ease;
  pointer-events: none;
}

.burger span:nth-child(1) {
  top: 0px;
}

.burger span:nth-child(2) {
  top: 8px;
}

.burger span:nth-child(3) {
  top: 16px;
}

.burger.active span:nth-child(1) {
  top: 8px;
  transform: rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  top: 8px;
  transform: rotate(-45deg);
}

/* Close Button (X) - same size and position as burger */
.close-button {
  width: 24px;
  height: 18px;
  position: relative;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  transition: transform 0.3s ease;
}

.close-button:hover {
  animation: tilt-shake 0.6s ease;
}

.close-button span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: #111214;
  border-radius: 2px;
  left: 0;
  top: 8px;
  transition: 0.3s ease;
  pointer-events: none;
}

.close-button span:nth-child(1) {
  transform: rotate(45deg);
}

.close-button span:nth-child(2) {
  transform: rotate(-45deg);
}

/* Tilt-shake animation */
@keyframes tilt-shake {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(8deg);
  }
  50% {
    transform: rotate(-6deg);
  }
  75% {
    transform: rotate(4deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

/* Menu Overlay Styles */
#menuOverlay a.menu-link {
  text-decoration: none !important;
  transition: all 0.3s ease;
  display: block;
  position: relative;
}

#menuOverlay a.menu-link:hover {
  text-decoration: none !important;
}

/* Make the line thicker on hover with smooth animation */
#menuOverlay .menu-link .menu-line {
  height: 1px;
  transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #111214;
}

#menuOverlay .menu-link:hover .menu-line {
  height: 3px;
}

/* Footer links (Impressum, Datenschutz, Cookie-Einstellungen) - Underline hover */
#menuOverlay .footer-link {
  position: relative;
  text-decoration: none;
  transition: all 0.3s ease;
}

#menuOverlay .footer-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background-color: currentColor;
  transition: width 0.3s ease;
}

#menuOverlay .footer-link:hover::after {
  width: 100%;
}

/* Mobile responsive layout for menu overlay */
@media (max-width: 768px) {
  /* Convert to flex layout on mobile - fill entire screen */
  #menuOverlay {
    display: flex;
    flex-direction: column;
    padding: 80px 24px 24px;
    justify-content: space-between;
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for mobile browsers */
    overflow-y: auto;
  }

  /* Remove absolute positioning on mobile */
  #menuOverlay > div:not(#closeMenuOverlay),
  #menuOverlay > nav {
    position: relative !important;
    transform: none !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
  }

  /* Top section container for nav + online hub */
  #menuOverlay > nav,
  #menuOverlay > div:nth-of-type(1) {
    flex-shrink: 0;
  }

  /* Navigation (Right column) - Display first */
  #menuOverlay > nav {
    order: 1;
    margin-bottom: var(--space-8);
  }

  /* Online Hub (Left column) - Display second */
  #menuOverlay > div:nth-of-type(1) {
    order: 2;
    margin-bottom: var(--space-8);
    max-width: 100%;
  }

  /* Company info (Bottom left) - Display third, pushed to bottom */
  #menuOverlay > div:nth-of-type(2) {
    order: 3;
    margin-top: auto;
    padding-top: var(--space-8);
    flex-shrink: 0;
  }

  /* Menu links already use h1 class which has responsive sizes */

  /* Close button stays fixed */
  #closeMenuOverlay {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
  }

  /* Adjust navigation gaps on mobile */
  #menuOverlay nav .flex {
    gap: 1.5rem;
  }
}

/* ===========================
   7. Utility Classes
   =========================== */

/* Button Utilities */
.btn-yellow {
  background-color: var(--color-yellow);
  color: var(--color-dark);
}

.btn-dark {
  background-color: var(--color-dark);
  color: var(--color-white);
}

/* Background Utilities */
.bg-section-yellow {
  background-color: var(--color-yellow);
}

.bg-section-white {
  background-color: var(--color-white);
}

.bg-section-gray {
  background-color: var(--color-gray);
}

/* Text Color Utilities */
.text-section-dark {
  color: var(--color-dark);
}

.text-section-white {
  color: var(--color-white);
}

/* Layout Utilities */
.section-min-h-screen {
  min-height: 100vh;
}

.section-min-h-80 {
  min-height: 80vh;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-start {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.flex-end {
  display: flex;
  align-items: flex-end;
}

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

/* Positioning Utilities */
.absolute-top-right {
  position: absolute;
  top: 28px;
  right: 28px;
}

.absolute-bottom {
  position: absolute;
  bottom: 60px;
}

/* Spacing Utilities - Using CSS Variables */
.section-padding-y {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

.section-padding-x {
  padding-left: var(--content-alignment);
  padding-right: var(--content-alignment);
}

.mb-space-1 {
  margin-bottom: var(--space-1);
}

.mb-space-2 {
  margin-bottom: var(--space-2);
}

.mb-space-3 {
  margin-bottom: var(--space-3);
}

.mb-space-4 {
  margin-bottom: var(--space-4);
}

.mb-space-6 {
  margin-bottom: var(--space-6);
}

.mt-space-2 {
  margin-top: var(--space-2);
}

/* ===========================
   Mobile Section Spacing Overrides
   =========================== */

@media (max-width: 768px) {
  /* TextSection - reduce padding on mobile */
  .text-section-content {
    padding-top: var(--space-8) !important;
    padding-bottom: var(--space-8) !important;
  }

  /* Reduce all sections with --space-12 to --space-8 on mobile */
  section[style*="padding-top: var(--space-12)"],
  section[style*="padding-bottom: var(--space-12)"] {
    padding-top: var(--space-8) !important;
    padding-bottom: var(--space-8) !important;
  }

  /* TabletShowcaseSection - reduce from 128px to 64px */
  .tablet-text-content {
    padding-top: var(--space-8) !important;
  }

  .tablet-screenshots-container {
    margin-top: var(--space-8) !important;
  }

  /* CTASection - consistent mobile spacing */
  .cta-section {
    padding-top: var(--space-8) !important;
    padding-bottom: var(--space-8) !important;
  }

  .cta-gif-container {
    margin-top: var(--space-8) !important;
  }

  /* CircleSection - add vertical padding on mobile */
  .scene-3-content {
    padding-top: var(--space-8) !important;
    padding-bottom: var(--space-8) !important;
  }

  /* SplitContent - reduce padding on mobile */
  .section[style*="padding-top: var(--space-16)"] {
    padding-top: var(--space-8) !important;
    padding-bottom: var(--space-8) !important;
  }
}

/* Mobile Spacing Utility Classes */
@media (max-width: 768px) {
  .section-mobile-spacing {
    padding-top: var(--space-8) !important;
    padding-bottom: var(--space-8) !important;
  }

  .section-mobile-compact {
    padding-top: var(--space-6) !important;
    padding-bottom: var(--space-6) !important;
  }

  .section-mobile-generous {
    padding-top: var(--space-12) !important;
    padding-bottom: var(--space-12) !important;
  }
}

/* Z-Index Utilities */
.z-1 {
  z-index: 1;
}

.z-2 {
  z-index: 2;
}

.z-10 {
  z-index: 10;
}

.z-20 {
  z-index: 20;
}

/* Divider Line */
.divider-line {
  width: 100%;
  height: 1px;
  background-color: var(--color-dark);
}

/* Opacity Utilities */
.opacity-0 {
  opacity: 0;
}

.opacity-70 {
  opacity: 0.7;
}

.opacity-85 {
  opacity: 0.85;
}

/* Cursor for Interactive Elements */
a,
button,
[role="button"],
.burger,
.menu-link,
.clickable {
  cursor: pointer;
}

/* Ensure all links and buttons show pointer cursor */
a:not([disabled]),
button:not([disabled]) {
  cursor: pointer;
}

/* Container */
.container {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* Hide scrollbar but keep functionality */
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* ===========================
   8. Mobile Responsive
   =========================== */

@media (max-width: 768px) {
  .title-split {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.5rem;
    white-space: normal;
  }

  .hero-text {
    text-align: left;
    white-space: normal;
    max-width: 100%;
    word-wrap: break-word;
  }

  .scene-1-white-circle {
    width: clamp(200px, 40vh, 400px);
    height: clamp(200px, 40vh, 400px);
  }

  .scene-1-yellow-dot {
    width: clamp(50px, 10vh, 100px);
    height: clamp(50px, 10vh, 100px);
  }
}

/* ===========================
   9. Tablet Responsive
   =========================== */

@media (min-width: 769px) and (max-width: 1024px) {
  .scene-1-white-circle {
    width: clamp(250px, 50vh, 600px);
    height: clamp(250px, 50vh, 600px);
  }

  .scene-1-yellow-dot {
    width: clamp(60px, 12vh, 150px);
    height: clamp(60px, 12vh, 150px);
  }

  .title-split {
    gap: clamp(1.5rem, 3vw, 3rem);
  }
}

/* ===========================
   10. Cookie Banner & Settings
   =========================== */

/* Cookie Banner (Bottom Fixed) */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #ffffff;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding: var(--space-4) 0;
  animation: slideUpBanner 0.4s ease-out;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}

@keyframes slideUpBanner {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-banner-content {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--content-alignment);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

.cookie-banner-text {
  flex: 1;
  color: var(--color-black);
}

.cookie-banner-text p {
  margin: 0;
  font-size: var(--text-body-sm);
  line-height: 1.5;
  opacity: 0.8;
}

.cookie-banner-buttons {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Cookie Buttons */
.cookie-btn {
  font-family: var(--font-body);
  font-size: var(--text-body-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-6);
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}

.cookie-btn-primary {
  background: var(--color-yellow);
  color: var(--color-black);
}

.cookie-btn-primary:hover {
  background: var(--color-orange);
  transform: translateY(-2px);
}

.cookie-btn-secondary {
  background: transparent;
  color: var(--color-black);
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.cookie-btn-secondary:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.3);
}

.cookie-btn-tertiary {
  background: transparent;
  color: var(--color-black);
  opacity: 0.7;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cookie-btn-tertiary:hover {
  opacity: 1;
}

/* Cookie Settings Modal */
.cookie-settings-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.cookie-settings-content {
  background: var(--color-white);
  border-radius: var(--space-3);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  position: relative;
  animation: slideUpModal 0.4s ease-out;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
}

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

/* Close Button */
.cookie-settings-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1;
  transition: transform 0.2s ease;
}

.cookie-settings-close:hover {
  animation: tilt-shake 0.6s ease;
}

.cookie-settings-close span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-black);
  transform-origin: center;
  transition: all 0.3s ease;
}

.cookie-settings-close span:first-child {
  transform: translateY(8px) rotate(45deg);
}

.cookie-settings-close span:last-child {
  transform: translateY(-8px) rotate(-45deg);
}

/* Modal Header */
.cookie-settings-content h2 {
  padding: var(--space-6);
  padding-bottom: 0;
  color: var(--color-black);
}

/* Modal Scrollable Content */
.cookie-settings-scroll {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-6);
  padding-top: var(--space-4);
}

/* Cookie Category */
.cookie-category {
  padding: var(--space-4);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--space-2);
  margin-bottom: var(--space-4);
  background: rgba(0, 0, 0, 0.02);
}

.cookie-category:last-child {
  margin-bottom: 0;
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-2);
}

.cookie-category-header h3 {
  color: var(--color-black);
  margin: 0;
}

/* Cookie Toggle Switch */
.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 4px;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle label {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.15);
  border-radius: 24px;
  transition: 0.3s;
}

.cookie-toggle label:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.3s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-toggle input:checked + label {
  background-color: var(--color-yellow);
}

.cookie-toggle input:checked + label:before {
  transform: translateX(24px);
}

.cookie-toggle input:focus + label {
  box-shadow: 0 0 0 3px rgba(255, 199, 0, 0.3);
}

/* Disabled toggle (for necessary cookies) */
.cookie-toggle-disabled {
  opacity: 0.6;
  pointer-events: none;
}

.cookie-toggle-disabled label {
  background-color: rgba(0, 0, 0, 0.2);
  cursor: not-allowed;
}

/* Modal Footer */
.cookie-settings-footer {
  padding: var(--space-6);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(0, 0, 0, 0.02);
}

.cookie-settings-footer .cookie-btn {
  width: 100%;
  justify-content: center;
}

/* ===========================
   11. Cookie Banner Mobile
   =========================== */

@media (max-width: 768px) {
  .cookie-banner-content {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-4);
    padding: 0 var(--space-4);
  }

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

  .cookie-banner-buttons {
    flex-direction: column;
    gap: var(--space-2);
  }

  .cookie-btn {
    width: 100%;
    text-align: center;
    padding: var(--space-4) var(--space-6);
  }

  .cookie-settings-modal {
    padding: var(--space-2);
  }

  .cookie-settings-content {
    max-height: 95vh;
  }

  .cookie-settings-content h2 {
    padding: var(--space-4);
    font-size: var(--text-heading-h3);
  }

  .cookie-settings-scroll {
    padding: var(--space-4);
  }

  .cookie-settings-footer {
    padding: var(--space-4);
  }

  .cookie-category {
    padding: var(--space-3);
  }

  .cookie-category-header {
    gap: var(--space-2);
  }
}

/* ===========================
   12. Stats Section
   =========================== */

.stat-counter {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  font-size: clamp(48px, 8vw, 96px);
}

/* ===========================
   13. Press & Projects Gallery (Full-Width Infinite Carousel)
   =========================== */

.press-projects-section {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
}

.press-projects-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  cursor: grab;
}

.press-projects-wrapper:active {
  cursor: grabbing;
}

/* Hide default scrollbar for Chrome/Safari */
.press-projects-wrapper::-webkit-scrollbar {
  display: none;
}

.press-projects-gallery {
  display: flex;
  gap: var(--space-4);
  width: max-content;
  padding: var(--space-3) 0;
}

/* Custom Scrollbar Track */
.press-projects-scrollbar {
  width: 100%;
  max-width: 800px;
  margin: var(--space-4) auto 0;
  padding: 0 var(--space-4);
}

.press-projects-scrollbar-track {
  width: 100%;
  height: 4px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}

.press-projects-scrollbar-thumb {
  position: absolute;
  height: 4px;
  background: var(--color-dark);
  border-radius: 2px;
  transition: background 0.2s ease;
  cursor: grab;
}

.press-projects-scrollbar-thumb:hover {
  background: var(--color-yellow);
}

.press-projects-scrollbar-thumb:active {
  cursor: grabbing;
  background: var(--color-yellow);
}

.press-project-card {
  flex: 0 0 auto;
  width: 340px;
  background: #ffffff;
  padding: var(--space-4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  border: 2px solid transparent;
}

.press-project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border: solid black 1px;
}

.press-project-card-tag {
  display: inline-block;
  padding: var(--space-1) var(--space-2);
  background: var(--color-yellow);
  color: var(--color-dark);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
  width: fit-content;
}

.press-project-card h3 {
  margin: 0;
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.3;
}

.press-project-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #525252;
  flex-grow: 1;
}

.press-project-card-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: auto;
}

.press-project-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  background-color: var(--color-dark);
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  border: 1px solid var(--color-dark);
}

.press-project-link:hover {
  background-color: transparent;
  color: var(--color-dark);
}

.press-project-link svg {
  transition: transform 0.3s ease;
  width: 16px;
  height: 16px;
}

.press-project-link:hover svg {
  transform: translateX(4px);
}

/* Mobile responsive for press projects */
@media (max-width: 768px) {
  .press-project-card {
    width: 280px;
  }

  .press-projects-gallery {
    gap: var(--space-3);
  }
}

/* Mobile styles for Stats Section */
@media (max-width: 768px) {
  /* Add bottom border instead for mobile */
  .col-6.relative:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background-color: rgba(17, 18, 20, 0.15);
  }

  .stat-counter {
    font-size: clamp(40px, 12vw, 64px);
  }
}