/* Portrait Mode Frame */
body:has(.portrait-frame) {
  margin: 0;
  padding: 0;
  background: #000;
  overflow: hidden;
}

.portrait-frame {
  width: 56.25vh; /* 9/16 */
  height: 100vh;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.portrait-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  overflow: hidden;
}

.portrait-frame iframe {
  zoom: 0.5625; /* Alternative zu transform */
}

/* ══════════════════════════════════════════════════════════════════════
   RESET & BASE
══════════════════════════════════════════════════════════════════════ */

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

ul, ol {
  list-style: none;
  font-size: inherit; /* Löscht ul/li Font-Reduktion */
}

:root {
  /* Colors */
  --black: #262626;
  --white: #f8f8f8;
  --primary: #006c67;
  --second: #8ac9ac;
  --accent: #006c67;
  --bg: #1a1a1a;
  --bg-dark: #0a1117;
  --bg-darker: #3ecfb2;
  --bg-card: linear-gradient(135deg,
    rgba(15, 35, 35, 0.92) 0%,
    rgba(10, 25, 25, 0.95) 100%
  ); /*rgba(26, 26, 38, 0.85);*/
  --glow-p: rgba(95, 158, 255, 0.55);
  --glow-s: rgba(62, 207, 178, 0.50);

  /* Text Colors */
  --text-primary: #f8f8f8;
  --text-secondary: rgba(248, 248, 248, 0.7);

  /* Borders */
  --border-color: rgba(95, 158, 255, 0.2);
  --border-hover: rgba(62, 207, 178, 0.5);

  /* Spacing */
  --space-1: 0.5vw;
  --space-2: 1vw;
  --space-3: 1.5vw;
  --space-4: 2vw;
  --space-5: 2.5vw;
  --space-6: 3vw;
  --space-8: 4vw;

  /* Typography - BOLDER on detail pages */
  --text-xs: 1.2vw;
  --text-sm: 1.4vw;
  --text-base: 1.6vw;
  --text-lg: 1.9vw;
  --text-xl: 2.3vw;
  --text-2xl: 2.8vw;
  --text-3xl: 3.5vw;
  --text-4xl: 4.5vw;

  /* Border Radius */
  --radius-sm: 0.4vw;
  --radius-md: 0.8vw;
  --radius-lg: 1.2vw;
  --radius-xl: 1.6vw;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--black);
  font-family: 'Open Sans', system-ui, sans-serif;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  color: var(--white);
}


/* ══════════════════════════════════════════════════════════════════════
   BACKGROUND
══════════════════════════════════════════════════════════════════════ */

#bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* Option 5: Premium Gradient Overlay - Empfohlen! */
#bg img {
  position: absolute;
  width: 114%;
  height: 114%;
  top: -7%;
  left: -7%;
  object-fit: cover;
  opacity: 0.4;
  filter: blur(1px) grayscale(0.3) contrast(1.1);
  animation: bgpan 15s cubic-bezier(0.4, 0.0, 0.6, 1) infinite alternate;
  will-change: transform;
}

#bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(62, 207, 178, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(0, 108, 103, 0.4) 0%, transparent 50%),
    linear-gradient(135deg,
      rgba(0, 108, 103, 0.6) 0%,
      rgba(62, 207, 178, 0.3) 100%
    );
  mix-blend-mode: multiply;
  pointer-events: none;
}

@keyframes bgpan {
  from { transform: translateX(-4%) scale(1); }
  to { transform: translateX(4%) scale(1); }
}



/* ══════════════════════════════════════════════════════════════════════
   CANVAS
══════════════════════════════════════════════════════════════════════ */

#cv {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}


/* ══════════════════════════════════════════════════════════════════════
   SATELLITE PILLS
══════════════════════════════════════════════════════════════════════ */

.np {
  position: absolute;
  pointer-events: none;
  user-select: none;
  /* CSS macht die sanfte Animation */
  animation: var(--float-anim) var(--float-duration) ease-in-out infinite;
  animation-delay: var(--float-delay);
  z-index:20;
}

/* Definiere die Animationen */
.np:nth-child(1) {
  --float-anim: float1;
  --float-duration: 19s;
  --float-delay: -3s;
}

.np:nth-child(2) {
  --float-anim: float2;
  --float-duration: 23s;
  --float-delay: -8s;
}

.np:nth-child(3) {
  --float-anim: float3;
  --float-duration: 17s;
  --float-delay: -5s;
}

.np:nth-child(4) {
  --float-anim: float4;
  --float-duration: 21s;
  --float-delay: -11s;
}

.np:nth-child(5) {
  --float-anim: float5;
  --float-duration: 25s;
  --float-delay: -2s;
}

@keyframes float1 {
  0% { transform: translate(0px, 0px); }
  25% { transform: translate(60px, -26px); }    /* war 20px, -13px */
  50% { transform: translate(48px, 18px); }     /* war 24px, 9px */
  75% { transform: translate(14px, 44px); }     /* war 7px, 22px */
  100% { transform: translate(0px, 0px); }
}
@keyframes float2 {
  0% { transform: translate(0px, 0px); }
  30% { transform: translate(-64px, 22px); }    /* war -22px, 11px */
  60% { transform: translate(-16px, -40px); }   /* war -8px, -20px */
  100% { transform: translate(0px, 0px); }
}
@keyframes float3 {
  0% { transform: translate(0px, 0px); }
  20% { transform: translate(32px, 34px); }     /* war 16px, 17px */
  55% { transform: translate(-42px, 14px); }    /* war -16px, 7px */
  80% { transform: translate(-22px, -32px); }   /* war -11px, -16px */
  100% { transform: translate(0px, 0px); }
}
@keyframes float4 {
  0% { transform: translate(0px, 0px); }
  35% { transform: translate(-40px, -24px); }   /* war -20px, -12px */
  70% { transform: translate(36px, -44px); }    /* war 13px, -22px */
  100% { transform: translate(0px, 0px); }
}
@keyframes float5 {
  0% { transform: translate(0px, 0px); }
  40% { transform: translate(64px, -18px); }    /* war 22px, -9px */
  65% { transform: translate(18px, 40px); }     /* war 9px, 20px */
  100% { transform: translate(0px, 0px); }
}

.np .inn {
  display: inline-block;
  padding: 1.0vh 2.6vw;
  border-radius: 999px;
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--black);
  background: var(--white);
  box-shadow: 0 0 2.2vw var(--gc), 0 0.3vh 0.8vh rgba(0, 0, 0, 0.55);
  border: 1.5px solid rgba(255, 255, 255, 0.20);
  transform: translate(-50%, -50%);
  transition: box-shadow .13s, filter .13s;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  pointer-events: auto;
  cursor: pointer;
}

/* ══════════════════════════════════════════════════════════════════════
   CENTER NODE
══════════════════════════════════════════════════════════════════════ */

#cnode {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 28vw;
  height: 28vw;
  translate: -50% -50%;
  z-index: 3;
  pointer-events: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.82);
  border: 4px solid rgba(95, 158, 255, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  animation: cpulse 4s ease-in-out infinite;
  will-change: box-shadow, border-color;
}

#cnode img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.10;
  border-radius: 50%;
}

#ctxt {
  position: relative;
  z-index: 1;
  padding: 1.8vw;
  color: var(--white);
}

#ctxt strong {
  display: block;
  font-size: 3.5vw;
  line-height: 1.35;
  font-weight: 800;
}

#ctxt .csub {
  display: block;
  margin-top: 0.6vw;
  font-size: 0.85vw;
  font-weight: 400;
  opacity: 0.45;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--primary);
}

@keyframes cpulse {
  0%, 100% {
    border-color: rgba(249, 230, 200, 0.35);
    box-shadow: 0 0 3vw rgba(95, 158, 255, 0.12), inset 0 0 2vw rgba(0, 0, 0, 0.5);
  }
  50% {
    border-color: rgba(100, 207, 178, 0.80);
    box-shadow: 0 0 6vw rgba(62, 207, 178, 0.42), inset 0 0 2vw rgba(0, 0, 0, 0.5);
  }
}


/* ══════════════════════════════════════════════════════════════════════
   NAVIGATION BAR
══════════════════════════════════════════════════════════════════════ */

#navbar {
  position: fixed;
  bottom: 2.8vh;
  left: 0;
  right: 0;
  z-index: 999;
  display: flex;
  justify-content: center;
  gap: 1vw;
}

#navbar button {
  cursor: pointer;
  border: none;
  width: 5vw;
  height: 5vw;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--white);
  transition: all 1s ease;
  font-size: var(--text-base);
  -webkit-backdrop-filter: blur(10px);
  transition: background .2s, transform .15s;
}

#navbar button svg {
  width: 2vw;
  height: 2vw;
}

#navbar button:hover,
#navbar button:active {
  background: var(--second);
  transform: scale(1.06);
}


/* ══════════════════════════════════════════════════════════════════════
   ATTRACT SCREEN
══════════════════════════════════════════════════════════════════════ */

#attract {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: #0d0d0d;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.1s ease;
  overflow: hidden;
}

#attract.show {
  opacity: 1;
  pointer-events: auto;
}

/* City photo background */
#attract::before {
  content: '';
  position: absolute;
  inset: -5%;
  background: url('digital-city.png') center/cover no-repeat;
  opacity: 0;
  animation: bgpan 50s ease-in-out infinite alternate;
  transition: opacity 1.4s ease 0.3s;
  filter: saturate(0.4) brightness(0.5);
}

#attract.show::before {
  opacity: 0.28;
}

/* Color overlay */
#attract::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% 50%, rgba(95, 158, 255, 0.06) 0%, transparent 65%),
    radial-gradient(ellipse 50% 80% at 0% 50%, rgba(62, 207, 178, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 50% 80% at 100% 50%, rgba(95, 158, 255, 0.08) 0%, transparent 55%),
    linear-gradient(180deg, rgba(10, 10, 20, 0.55) 0%, rgba(10, 10, 20, 0.20) 40%, rgba(10, 10, 20, 0.70) 100%);
  pointer-events: none;
  z-index: 0;
}

/* Scan line */
#attract-scanline {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(95, 158, 255, 0.6), rgba(62, 207, 178, 0.6), transparent);
  opacity: 0;
  animation: none;
}

#attract.show #attract-scanline {
  opacity: 1;
  animation: scanline 4s ease-in-out 0.8s infinite;
}

@keyframes scanline {
  0% { top: -2px; opacity: 0; }
  5% { opacity: 1; }
  95% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

#attract-inner {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  grid-template-rows: 55% 45%;
  align-items: stretch;
}

/* Headline */
#attract-headline {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 0.88;
  padding-top: 2vh;
}

.aw {
  display: block;
  font-size: 18vw;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  opacity: 0;
  will-change: transform, opacity, text-shadow;
  transform: translateZ(0);  /* Aktiviert die 3D-Beschleunigung */
  backface-visibility: hidden;
}

.aw:nth-child(1) {
  color: var(--accent);
  transform: translateX(-8vw) skewX(-4deg);
  transition: opacity 0.65s cubic-bezier(.22, 1, .36, 1), transform 0.65s cubic-bezier(.22, 1, .36, 1);
  transition-delay: 0.1s;
  text-shadow:
    /* Neuer weißer Glow-Kern (höhere Opacity) */
    0 0 1.5vw rgba(255, 255, 255, 0.95),
    0 0 3vw rgba(255, 255, 255, 0.4),
    /* Dein originaler türkiser Glow-Effekt */
    0 0 6vw rgba(62, 207, 178, 0.55),
    0 0 1vw rgba(62, 207, 178, 0.9);
}

.aw:nth-child(2) {
  color: var(--white);
  transform: scale(0.80);
  transition: opacity 0.65s cubic-bezier(.22, 1, .36, 1), transform 0.65s cubic-bezier(.22, 1, .36, 1);
  transition-delay: 0.35s;
  text-shadow: 0 0 4vw rgba(255, 255, 255, 0.20);
}

.aw:nth-child(3) {
  color: var(--second);
  transform: translateX(8vw) skewX(4deg);
  transition: opacity 0.65s cubic-bezier(.22, 1, .36, 1), transform 0.65s cubic-bezier(.22, 1, .36, 1);
  transition-delay: 0.58s;
  text-shadow: 0 0 6vw rgba(62, 207, 178, 0.55), 0 0 1vw rgba(62, 207, 178, 0.9);
}

#attract.show .aw {
  opacity: 1;
  transform: none !important;
}

#attract.show .aw:nth-child(1) {
  animation: glow-soft-white-teal 3.5s ease-in-out 1.2s infinite;
}

#attract.show .aw:nth-child(3) {
  animation: glow-teal 3.5s ease-in-out 1.8s infinite;
}

@keyframes glow-blue {
  0%, 100% { text-shadow: 0 0 5vw rgba(95, 158, 255, 0.45), 0 0 0.8vw rgba(95, 158, 255, 0.8); }
  50% { text-shadow: 0 0 9vw rgba(95, 158, 255, 0.75), 0 0 1.5vw rgba(95, 158, 255, 1); }
}

@keyframes glow-soft-white-teal {
  0%, 100% {
    text-shadow:
      0 0 1.5vw rgba(255, 255, 255, 0.95),
      0 0 5vw rgba(62, 207, 178, 0.45),
      0 0 0.8vw rgba(62, 207, 178, 0.8);
  }
  50% {
    text-shadow:
      0 0 1.5vw rgba(255, 255, 255, 0.95),
      0 0 9vw rgba(62, 207, 178, 0.75),
      0 0 1.5vw rgba(62, 207, 178, 1);
  }
}

@keyframes glow-teal {
  0%, 100% { text-shadow: 0 0 5vw rgba(62, 207, 178, 0.45), 0 0 0.8vw rgba(62, 207, 178, 0.8); }
  50% { text-shadow: 0 0 9vw rgba(62, 207, 178, 0.75), 0 0 1.5vw rgba(62, 207, 178, 1); }
}

/* Bottom section */
#attract-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2vh 5vw 4vh;
  gap: 2.5vh;
  text-align: center;
}

#attract-divider {
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--second), transparent);
  opacity: 0;
  align-self: center;
  flex-shrink: 0;
  transition: width 0.8s ease 1.0s, opacity 0.5s ease 1.0s;
}

#attract.show #attract-divider {
  width: 40vw;
  opacity: 0.7;
}

#attract-sub {
  font-size: 4.0vw;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1.3;
  text-align: center;
  opacity: 0;
  transition: opacity 0.7s ease 1.1s;
}

#attract.show #attract-sub {
  opacity: 1;
}

#attract-cursor {
  display: inline-block;
  color: var(--primary);
  font-weight: 300;
  animation: blink 0.85s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

#attract-hint {
  font-size: 1.0vw;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(248, 248, 248, 0.25);
  text-align: center;
  opacity: 0;
  transition: opacity 0.6s ease 1.8s;
}

#attract.show #attract-hint {
  opacity: 1;
  animation: pulse-hint 2s ease-in-out 2.5s infinite;
}

@keyframes pulse-hint {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.65; }
}


/* ══════════════════════════════════════════════════════════════════════
   DETAIL VIEW
══════════════════════════════════════════════════════════════════════ */

#home-screen {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#home-screen.hidden {
  opacity: 1;
  visibility: visible;
  pointer-events: none;
}

/* Flash Effect Layer */
#detail-flash {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

#detail-flash.flash {
  opacity: 0.25;
}

#detail-view {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 17, 23, 0.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.95);  /* ← Zoom Effect! */
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  overflow-x: hidden;
}

#detail-view.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);  /* ← Zoom auf 100%! */
}

#detail-header {
  display: none !important;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: var(--space-4) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
}

#back-btn {
  display: none !important;
  width: 3.5vw;
  height: 3.5vw;
  background: transparent;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  color: var(--text-primary);
  flex-shrink: 0;
}

#back-btn:hover {
  background: rgba(62, 207, 178, 0.15);
  border-color: var(--accent);
  transform: translateX(-4px);
}

#back-btn svg {
  width: 1.8vw;
  height: 1.8vw;
}

#detail-title {
  font-size: var(--text-2xl);
  font-weight: 900;
  color: var(--black);
  letter-spacing: -0.01em;
  background: var(--primary);
  padding: var(--space-6) var(--space-4);
  border-radius: 20px;
}

#detail-content {
  padding: var(--space-6) var(--space-6) 200px var(--space-6);
  max-width: 90vw;
  max-height: 85vh;
  margin: 0 auto;
}


/* ══════════════════════════════════════════════════════════════════════
   CONTENT SECTIONS - BOLDER TYPOGRAPHY
══════════════════════════════════════════════════════════════════════ */

.topic-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  padding: 0 0 400px 0;
}

/* Hero Section */
.section-hero {
  text-align: center;
  padding: var(--space-6) var(--space-4);
  background: var(--white);
  border-radius: var(--radius-xl);
}

.section-hero h2 {
  font-size: var(--text-3xl);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: var(--space-3);
  color: var(--black);
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--black);
  line-height: 1.5;
  max-width: 70vw;
  margin: 0 auto;
}

/* Card Expansion Effekt */
.section-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30vw, 1fr));
  gap: var(--space-4);
  transition: all 0.4s ease;
}

.card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: all var(--transition-base);
  cursor: pointer;
  grid-column: span 1;  /* Normal: 1 Spalte */
}

/* Expanded Card nimmt volle Breite */
.card.expanded-full {
  grid-column: 1 / -1;  /* Alle Spalten! */
  background: var(--bg-darker);
  border-color: var(--accent);
}

/* Andere Cards ausblenden wenn eine expanded ist */
.section-cards.has-expanded .card:not(.expanded-full) {
  opacity: 0.3;
  transform: scale(0.98);
}

.card-close-btn {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 2.5vw;
  height: 2.5vw;
  background: transparent;
  border: none;
  color: var(--black);
  font-size: var(--text-lg);
  font-weight: 400;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 10;
}

.card-close-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent);
  color: var(--accent);
}

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(62, 207, 178, 0.2);
}

.card-icon {
  width: 8vw;
  height: 8vw;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(62, 207, 178, 0.12);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
}

.card-icon svg {
  width: 6vw;
  height: 6vw;
  stroke: var(--white);
}

.card h3 {
  font-size: var(--text-3xl);
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  line-height: 1.3;
}

.card > p {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-3);
}


.card-expand-btn {
  background: transparent;
  border: 2px solid var(--text-secondary);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: inherit;
  margin-top: var(--space-2);
}

.card-expand-btn:hover {
  background: rgba(62, 207, 178, 0.15);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.card-detail {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s ease;
  margin-top: 0;
}

.card-detail.expanded {
  max-height: fit-content;
  opacity: 1;
  margin-top: var(--space-3);
}

.card-detail .dark-bg {
  background: var(--black);
  color: var(--white);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-lg);
}

.card-detail p {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--black);
  line-height: 1.7;
  margin-bottom: var(--space-2);
}

.card-detail strong {
  color: var(--black);
  font-weight: 800;
}

.section-detail,
.section-detail.lang-en,
.section-detail.lang-de {
  display: flex;
  flex-wrap: wrap;
  gap: 80px;
  margin-top: 20px;
  justify-content: center;
}

.section-detail-card {
  display: flex;
  flex-flow: column;
  padding: 20px;
  background: #f8f8f8;
  border-radius: var(--radius-lg);
  width: 100%;
}


.section-cards.half-width-contents .card .section-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 20px; /* Ich habe den Gap auf 20px reduziert, damit es auf mehr Bildschirmen passt */
  margin-top: 20px;
  justify-content: center;
}

.section-cards.half-width-contents .card .section-detail .section-detail-card {
  display: flex;
  flex-flow: column;
  padding: 20px;
  background: #f8f8f8;
  border-radius: var(--radius-lg);
  flex: 0 1 calc(50% - 10px);
  width: auto;
  min-width: 280px;
}

.section-detail-card h4 {
  color: var(--black);
  font-size: var(--text-xl);
  font-weight: 700;
  margin: 12px 0;
  text-transform: uppercase;
  text-align: center;
}

.section-detail-card ul {
  margin: 0;
  padding-left: 2vw;
}

.section-detail-card ul li {
  position: relative;
  margin: 8px 0;
  color: #4a4a4a;
  font-size: var(--text-base);
  line-height: 2;
  padding-left: 1.5vw;
}

.section-detail-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
  font-size: var(--text-xl);
  margin: -0.8vw 0 0 -1.5vw;
}


/* ══════════════════════════════════════════════════════════════════════
   TABS
══════════════════════════════════════════════════════════════════════ */

.section-tabs {
  background: var(--bg-card);
  /* border: 2px solid var(--border-color); */
  border-radius: var(--radius-xl);
  padding: var(--space-5);
}

.tab-buttons {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  border-bottom: 2px solid var(--border-color);
  padding-bottom: var(--space-2);
}

.tab-btn {
  background: transparent;
  border: none;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: inherit;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  position: relative;
}

.tab-btn:hover {
  color: var(--text-primary);
  background: rgba(62, 207, 178, 0.08);
}

.tab-btn.active {
  color: var(--white);
  background: rgba(62, 207, 178, 0.15);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.tab-panel h3 {
  font-size: var(--text-2xl);
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: var(--space-5);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20vw, 1fr));
  gap: var(--space-4);
}

.tech-item {
  background: rgba(30, 30, 35, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  transition: all var(--transition-base);
}

.tech-item:hover {
  border-color: rgba(62, 207, 178, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(62, 207, 178, 0.12);
}

.text-detail {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  margin: 0; /* Wichtig! */
  padding: 0; /* Wichtig! */
}

.text-detail.active {
  max-height: 1000px;
  opacity: 1;
  margin-top: 1rem; /* Erst wenn aktiv */
  padding: 1rem; /* Erst wenn aktiv, falls gewünscht */
}

.tech-icon {
  width: 8vw;
  height: 8vw;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(62, 207, 178, 0.12);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
}

.tech-icon svg {
  width: 6vw;
  height: 6vw;
  stroke: var(--white);
}

.tech-item h4 {
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.tech-item p {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.6;
}

.tech-item strong {
  color: var(--accent);
  font-weight: 800;
}

.benefits-section {
  margin-top: 40px;
  padding: 30px;
  background: var(--white);
  border-radius: 16px;
  border-left: 4px solid var(--primary);
}

.benefits-section h3 {
  color: var(--primary);
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.benefits-list {
  list-style: none;
  padding: 0;
}

.benefits-list li {
  font-size: 1.1rem;
  line-height: 2;
  color: var(--black);
  margin-bottom: 12px;
  padding-left: 30px;
  position: relative;
}

.benefits-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
  font-size: 1.3rem;
}


/* ══════════════════════════════════════════════════════════════════════
   ACCORDION
══════════════════════════════════════════════════════════════════════ */

.section-accordion {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.section-accordion h3 {
  font-size: var(--text-2xl);
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.accordion-item {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

.accordion-item:hover {
  border-color: var(--border-hover);
}

.accordion-item.expanded {
  border-color: var(--accent);
}

.accordion-btn {
  width: 100%;
  background: transparent;
  border: none;
  padding: var(--space-4);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  font-family: inherit;
  text-align: left;
  transition: all var(--transition-fast);
}

.accordion-btn:hover {
  background: rgba(62, 207, 178, 0.08);
}

.accordion-btn svg {
  width: 1.5vw;
  height: 1.5vw;
  stroke: var(--accent);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.accordion-item.expanded .accordion-btn svg {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s ease;
  padding: 0 var(--space-4);
}

.accordion-item.expanded .accordion-content {
  max-height: 1000px;
  opacity: 1;
  padding: 0 var(--space-4) var(--space-4);
}

.accordion-content p {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-2);
}

.accordion-content strong {
  color: var(--accent);
  font-weight: 800;
}


/* ══════════════════════════════════════════════════════════════════════
   SLIDER
══════════════════════════════════════════════════════════════════════ */

.section-slider {
  position: relative;
}

.slider-container {
  position: relative;
  min-height: 400px;
}

.slide {
  display: none;
  opacity: 0;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  text-align: center;
  transition: opacity 0.5s ease;
}

.slide.active {
  display: block;
  opacity: 1;
  animation: fadeIn 0.5s ease;
}

.slide-icon {
  width: 6vw;
  height: 6vw;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(62, 207, 178, 0.12);
  border-radius: var(--radius-md);
  margin: 0 auto var(--space-4);
}

.slide-icon svg {
  width: 4vw;
  height: 4vw;
  stroke: var(--accent);
}

.slide h3 {
  font-size: var(--text-2xl);
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.slide p {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 70vw;
  margin: 0 auto;
}

.slide strong {
  color: var(--accent);
  font-weight: 800;
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.slider-btn {
  width: 3vw;
  height: 3vw;
  background: rgba(62, 207, 178, 0.12);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.slider-btn:hover {
  background: rgba(62, 207, 178, 0.25);
  border-color: var(--accent);
  transform: scale(1.1);
}

.slider-btn svg {
  width: 1.5vw;
  height: 1.5vw;
  stroke: var(--accent);
}

.slider-dots {
  display: flex;
  gap: var(--space-2);
}

.dot {
  width: 1vw;
  height: 1vw;
  border-radius: 50%;
  background: var(--border-color);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.dot.active,
.dot:hover {
  background: var(--accent);
  transform: scale(1.2);
}


/* ══════════════════════════════════════════════════════════════════════
   FLIP CARDS
══════════════════════════════════════════════════════════════════════ */

/* Standard: Grid */
.section-flip-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-4);
}

/* Full-width Variante */
.section-flip-cards.full-width {
  display: flex;
  flex-direction: column;
}

.section-flip-cards.full-width .flip-card {
  width: 100%;
}

.flip-card {
  width: 100%;
  perspective: 2000px;
  cursor: pointer;
  margin-bottom: var(--space-4);
  display: block;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;

  /* Grid sorgt für identische Höhe von Front & Back */
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;

  -webkit-font-smoothing: antialiased;
  backface-visibility: hidden;
  transform: translateZ(0); /* "Zwingt" das Element in den 3D-Modus */
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  width: 100%;
  /* Verhindert das Durchscheinen */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;

  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
  text-align: center;

  /* Stapelt beide Seiten ohne 'absolute' zu nutzen */
  grid-area: 1 / 1;
}

.flip-card-front {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  /* Standardmäßig oben */
  z-index: 2;
}

.flip-card-back {
  background: linear-gradient(135deg, #0a1117 0%, #1a1a26 100%);
  border: 2px solid var(--accent);
  transform: rotateY(180deg);
  /* Hinten liegend */
  z-index: 1;
}

/* Z-Index Tausch beim Flippen */
.flip-card.flipped .flip-card-front {
  z-index: 1;
}

.flip-card.flipped .flip-card-back {
  z-index: 2;
}

/* Bild in Flip-Card */
.flip-card-front img {
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
}

.flip-card h3 {
  font-size: var(--text-2xl);
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.flip-card h4 {
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--accent);
  margin-bottom: var(--space-3);
}

.flip-subtitle {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
}

.flip-stat {
  font-size: var(--text-3xl);
  font-weight: 900;
  color: var(--accent);
  margin-bottom: var(--space-3);
}

.flip-icon {
  width: 6vw;
  height: 6vw;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(62, 207, 178, 0.12);
  border-radius: 50%;
  margin-top: var(--space-2);
}

.flip-icon svg {
  width: 4vw;
  height: 4vw;
  stroke: var(--accent);
}

.flip-card-back p {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.6;
}

.flip-card-back strong {
  color: var(--accent);
  font-weight: 800;
}

.flip-card-front img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
  max-height: 20vh;
}


.flip-detail {
  display: flex;
  flex-direction: row;
  gap: 20px;
  height: auto;
}

.flip-detail-item {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  padding: 40px;
  border-radius: 8px;
}

.flip-detail-item h5 {
  color: var(--primary);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.flip-detail-item p {
  color: var(--text-primary);
  font-size: var(--text-base);
  line-height: 1.5;
  margin: 0;
}

.flip-detail-item li {
  font-size: var(--text-base);
  background-color: var(--accent);
  padding: 16px 32px;
  border-radius: 50px;
  margin-bottom: 20px;
}


.icon-challenge::before,
.icon-solution::before,
.icon-impact::before {
  content: '';
  display: inline-block;
  width: 6vw;
  height: 6vw;
  margin-right: 8px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  vertical-align: middle;
  margin-bottom: 1vw;
}

.icon-challenge::before {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Ccircle cx='12' cy='12' r='6'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3C/svg%3E");
}

.icon-solution::before {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 18h6'/%3E%3Cpath d='M10 22h4'/%3E%3Cpath d='M15.09 14c.18-.98.65-1.74 1.41-2.5A4.65 4.65 0 0 0 18 8 6 6 0 0 0 6 8c0 1 .23 2.23 1.5 3.5A4.61 4.61 0 0 1 8.91 14'/%3E%3C/svg%3E");
}

.icon-impact::before {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='23 6 13.5 15.5 8.5 10.5 1 18'/%3E%3Cpolyline points='17 6 23 6 23 12'/%3E%3C/svg%3E");
}






/* ══════════════════════════════════════════════════════════════════════
   STATS
══════════════════════════════════════════════════════════════════════ */

.section-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.stat-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-align: center;
  transition: all var(--transition-base);
}

.stat-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(62, 207, 178, 0.15);
}

.stat-number {
  font-size: var(--text-4xl);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}


/* ══════════════════════════════════════════════════════════════════════
   CTA SECTION
══════════════════════════════════════════════════════════════════════ */

.cta-section {
  text-align: center;
  margin-top: var(--space-6);
}

.cta-button {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border: none;
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-lg);
  font-weight: 800;
  color: white;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: all var(--transition-base);
  font-family: inherit;
  box-shadow: 0 4px 16px rgba(62, 207, 178, 0.3);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(62, 207, 178, 0.5);
}

.cta-button svg {
  width: 1.5vw;
  height: 1.5vw;
}


/* ══════════════════════════════════════════════════════════════════════
   MODAL
══════════════════════════════════════════════════════════════════════ */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 17, 23, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none !important;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: var(--space-6);
}

.modal.active {
  display: flex !important;
}

.modal.lang-en,
.modal.lang-de {
  display: none;
}


.modal-content {
  background: var(--bg-dark);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-xl);
  max-width: 90vw;
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: var(--space-5);
  border-bottom: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-darker);
}

.modal-header h2 {
  font-size: var(--text-2xl);
  font-weight: 900;
  color: var(--text-primary);
}

.modal-close {
  width: 3vw;
  height: 3vw;
  background: transparent;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  color: var(--text-primary);
  flex-shrink: 0;
}

.modal-close:hover {
  background: #ff4444;
  border-color: #ff4444;
}

.modal-close svg {
  width: 1.5vw;
  height: 1.5vw;
}

.modal-body {
  padding: var(--space-5);
  overflow-y: auto;
  flex-grow: 1;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(30vw, 1fr));
  gap: var(--space-4);
}

.module-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  transition: all var(--transition-base);
}

.module-card:hover {
  border-color: rgba(62, 207, 178, 0.3);
  box-shadow: 0 8px 32px rgba(62, 207, 178, 0.15);
  transform: translateY(-4px);
}

.module-number {
  display: inline-block;
  background: rgba(62, 207, 178, 0.15);
  color: var(--accent);
  font-size: var(--text-sm);
  font-weight: 900;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-2);
}

.module-icon {
  width: 160px;
  height: 160px;
  background: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 60px;
}

.module-icon svg {
  width: 120px;
  height: 120px;
  color: white;
}

.module-card h4 {
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.module-card p {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.6;
}



.module-card ul {
  list-style: none;
  padding-top: 40px;
}

.module-card ul li {
  font-size: var(--text-sm);
  line-height: 2;
  color: var(--white);
  padding-left: 40px;
  position: relative;
}

.module-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--white);
  font-size: 1.2rem;
}





/* Modal iframe wrapper */
.modal-body .iframe-wrapper {
  width: 100%;
  height: 70vh;
  min-height: 500px;
  border-radius: 12px;
  overflow: hidden;
}

.modal-body .iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Modal größer machen für iframe */
#modules-modal-hardware .modal-content {
  max-width: 90vw;
  max-height: 90vh;
}

#modules-modal-hardware .modal-body {
  padding: 0; /* Kein Padding für fullscreen iframe */
}


/* ══════════════════════════════════════════════════════════════════════
   Process Containers Expend Cards - MIT RUNDEN ECKEN
══════════════════════════════════════════════════════════════════════ */

.topic-container-fullheight {
  height: 93vh;
  width: 100%;
  overflow: hidden;
  padding: 20px; /* Padding damit die Ecken sichtbar sind */
}

.process-container {
  display: flex;
  flex-direction: column;
  height: 95%;
  width: 100%;
  position: relative;
  gap: 15px; /* Abstand zwischen den Steps */
  border-radius: 24px; /* Äußere Container-Rundung */
  overflow: hidden;
}

.process-step {
  flex: 1;
  position: relative;
  transition: flex 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  min-height: 0;
  border-radius: 16px; /* Runde Ecken für jeden Step */
}

.process-step.arrow::after {
  content: '';
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 2vw solid transparent;
  border-right: 2vw solid transparent;
  border-top: 2vw solid white;
  z-index: 10;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}


/* Verschiedene Grün-Nuancen für die Steps */
.process-step[data-step="1"] .process-step-header {
  background: linear-gradient(135deg, rgba(0, 108, 103, 0.85) 0%, rgba(0, 90, 86, 0.85) 100%),
              url('assets/img/SULO-Pre-Sorting.jpg');
  background-size: cover;
  background-position: center;
  border-radius: 16px; /* Wichtig: Header auch rund */
}

.process-step[data-step="2"] .process-step-header {
  background: linear-gradient(135deg, rgba(0, 90, 86, 0.85) 0%, rgba(0, 74, 71, 0.85) 100%),
              url('assets/img/SULO-Muelltonnen-60-1100-Liter-Volumen-Citybac.jpg');
  background-size: cover;
  background-position: center;
  border-radius: 16px;
}

.process-step[data-step="3"] .process-step-header {
  background: linear-gradient(135deg, rgba(0, 74, 71, 0.85) 0%, rgba(138, 201, 172, 0.85) 100%),
              url('assets/img/handy-mockup-wastewatcher.png');
  background-size: cover;
  background-position: center;
  border-radius: 16px;
}

.process-step[data-step="4"] .process-step-header {
  background: linear-gradient(135deg, rgba(138, 201, 172, 0.85) 0%, rgba(111, 179, 150, 0.85) 100%),
              url('assets/img/SULO-Dienste.jpg');
  background-size: cover;
  background-position: center;
  border-radius: 16px;
}

.process-step-header {
  height: 100%;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  position: relative;
  z-index: 2;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}


.step-number {
  width: 2em;
  height: 2em;
  background: var(--black);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-3xl);
  font-weight: 700;
  flex-shrink: 0;
}

.process-step-header h3 {
  font-size: var(--text-4xl);
  font-weight: 700;
  margin: 0;
}

.process-step-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  opacity: 0;
  visibility: hidden;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  z-index: 1;
  padding: 80px 60px 60px 60px;
  border-radius: 16px; /* Content auch rund */
}


.process-step-content .section-stats {
  margin-top: var(--space-8);
}

.process-step.expanded {
  flex: 8;
  cursor: default;
}

.process-step.expanded .process-step-header {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.process-step.expanded .process-step-content {
  opacity: 1;
  visibility: visible;
  z-index: 10;
}

.process-step.collapsed {
  flex: 0.6;
}

.process-step.collapsed .process-step-header {
  flex-direction: row;
}

.process-step.collapsed .process-step-header .step-number {
  width: 2em;
  height: 2em;
  font-size: 3rem;
}

.close-btn {
  position: fixed;
  top: 2vw;
  right: 6vw;
  width: 6vw;
  height: 6vw;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: var(--text-4xl);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.3s ease;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.close-btn:hover {
  background: #005a56;
  transform: rotate(90deg) scale(1.1);
}

.content-inner {
  max-width: 70vw;
  margin: 0 auto;
  text-align: center;
}

.content-inner h2 {
  color: var(--primary);
  font-size: var(--text-4xl);
  margin-bottom: 40px;
  font-weight: 700;
}

.content-inner ul {
  list-style: none;
  padding: 0;
}

.content-inner ul li {
  font-size: 1.5rem;
  line-height: 2;
  color: var(--black);
  margin-bottom: 20px;
  padding-left: 40px;
  position: relative;
}

.content-inner ul li::before {
  content: "■";
  position: absolute;
  left: 0;
  color: var(--black);
  font-size: 1.2rem;
}

.content-inner ul li.highlight {
  color: var(--primary);
  font-weight: 600;
}

.content-inner ul li.highlight::before {
  color: var(--primary);
}

.highlight {
  color: var(--primary);
  font-weight: 600;
}

.content-inner img {
  max-width: 100%;
  height: 450px;
  object-fit: contain;
}

.content-inner video {
  max-width: 100%;
  border-radius: 50px;
}

.content-inner iframe.video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  border: none;
}

.flex-row {
  display: flex;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

.flex-row img {
  width: 0;
  flex-grow: 1;
  max-height: 300px;
  height: auto;
  object-fit: contain;
  border-radius: 50px;
}

/* Border zwischen Steps nicht mehr nötig wegen gap */
.process-step + .process-step .process-step-header {
  border-top: none;
}


/* Responsive */
@media (max-width: 768px) {
  .topic-container-fullheight {
    padding: 10px;
  }

  .process-container {
    gap: 10px;
    border-radius: 16px;
  }

  .process-step {
    border-radius: 12px;
  }

  .process-step-header,
  .process-step-content {
    border-radius: 12px;
  }

  .step-number {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }

  .process-step-header h3 {
    font-size: 1.3rem;
  }

  .process-step-content {
    padding: 60px 30px 30px 30px;
  }

  .content-inner h2 {
    font-size: 2rem;
  }

  .content-inner ul li {
    font-size: 1.2rem;
  }

  .close-btn {
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 2rem;
  }
}



/* ══════════════════════════════════════════════════════════════════════
   SCROLLBAR STYLING
══════════════════════════════════════════════════════════════════════ */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}

::-webkit-scrollbar-thumb {
  background: rgba(62, 207, 178, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(62, 207, 178, 0.5);
}


/* ══════════════════════════════════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════════════════════════════════ */

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

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}


/* ══════════════════════════════════════════════════════════════════════
   RESPONSIVE ADJUSTMENTS
══════════════════════════════════════════════════════════════════════ */

@media (max-width: 1200px) {
  :root {
    --text-xs: 1.5vw;
    --text-sm: 1.8vw;
    --text-base: 2vw;
    --text-lg: 2.2vw;
    --text-xl: 2.6vw;
    --text-2xl: 3.2vw;
    --text-3xl: 4vw;
    --text-4xl: 5vw;
  }
}


/* ══════════════════════════════════════════════════════════════════════
   LANGUAGE VISIBILITY
══════════════════════════════════════════════════════════════════════ */

/* Default für alle */
.lang-en,
.lang-de {
  display: block;
}

/* Tabs - wichtigste Regel */
.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}
