/**
 * UNDERDOCK - Sektionen, 2500px Papier-Hintergründe & Typografie
 * Alle Container stehen auf FILL (100%, keine künstliche Maximalbreite)
 */

/* Grundlegendes Sektions-Layout */
.section {
  position: relative;
  overflow-x: clip;
  padding: 140px 50px; /* 50px Desktop-Padding */
  width: 100%;
  box-sizing: border-box;
}

/* Inhalts-Container steht komplett auf FILL */
.container {
  width: 100%;
  max-width: none; /* FILL - keine Maximalbreite! */
  position: relative;
  z-index: 5;
  box-sizing: border-box;
}

/* ====================================================
   SECTION HEADLINES & SUBLINES
   Spezifikation:
   - Jede Headline zentriert, 70px Größe, Line-Height 70, in Vina Sans
   - Subline mit 20px Abstand, Inter Bold, Größe 30, Auto Line-Height
   ==================================================== */
.section__headline {
  font-family: var(--font-heading);
  font-size: 70px;
  line-height: 70px;
  text-align: center;
  text-transform: none; /* Gemischte Schreibweise nach Vorgabe */
  margin: 0;
  color: inherit;
  letter-spacing: 0.02em;
}

.section__subline {
  font-family: var(--font-body);
  font-weight: 700; /* Inter Bold */
  font-size: 30px;
  line-height: normal; /* Auto Line-Height */
  text-align: center;
  margin-top: 20px;
  margin-bottom: 0;
  color: inherit;
}

/* ====================================================
   BENTO GRID (Sektion "Deine Vorteile")
   Spezifikation:
   - Locked aspect ratio (1 / 1, quadratisch)
   - Maximalbreite 1060px
   - Spacing zwischen den Bentos: 20px
   - Radius aller Kacheln: 20px
   - Aufteilung nach Vorlage (3x3 Grid)
   ==================================================== */
.bento-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px; /* Spezifikation: Autolayout mit 60px Abstand zwischen Bento und Button */
  width: 100%;
  max-width: 1060px;
  container-type: inline-size; /* Ermöglicht exakte proportionale cqi-Berechnungen */
}

.bento-grid {
  width: 100%;
  max-width: 1060px;
  aspect-ratio: 1 / 1;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 20px;
  box-sizing: border-box;
}

.bento-card {
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  isolation: isolate; /* Blending isoliert auf die Kachel */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* Texture Overlay: Direktes Bild mit SCREEN Blend-Mode */
.bento-card__texture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  mix-blend-mode: screen; /* Spezifikation: SCREEN auf dem Bild */
  opacity: 0.7; /* 70% Opacity nach Vorgabe */
  z-index: 1;
  display: block;
}

/* Variierte Textur-Positionen pro Kachel */
.bento-card__texture--orange { object-position: 15% 25%; }
.bento-card__texture--pink   { object-position: 85% 15%; transform: scaleX(-1); }
.bento-card__texture--violet { object-position: 10% 85%; }
.bento-card__texture--green  { object-position: 70% 65%; transform: scaleY(-1); }
.bento-card__texture--yellow { object-position: 45% 35%; }
.bento-card__texture--blue   { object-position: 90% 70%; transform: scale(-1); }

/* Bento Card Inhaltsbereich */
.bento-card__content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 28px;
  box-sizing: border-box;
  color: var(--ud-white);
}

/* Bento Typografie:
   - Große Zahl: Vina Sans 80px, Line-Height 70px (unter 1200px: 64px)
   - Subline: Inter SemiBold 24px bis 1200px, 17px bis 800px, 16px unter 800px */
.bento-card__stat-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.bento-card__stat-group--right {
  align-items: flex-end;
  text-align: right;
}

.bento-card__num {
  font-family: var(--font-heading); /* Vina Sans */
  font-size: clamp(64px, 32px + 4vw, 80px); /* Skaliert fließend von 80px (ab 1200px) auf 64px (bei 800px) */
  line-height: clamp(56px, 28px + 3.5vw, 70px);
  letter-spacing: 0.01em;
  color: var(--ud-white);
  user-select: none;
}

.bento-card__label {
  font-family: var(--font-body);
  font-weight: 600; /* Inter SemiBold */
  font-size: clamp(17px, 3px + 1.75vw, 24px); /* Skaliert fließend von 24px (ab 1200px) auf 17px (bei 800px) */
  line-height: 1.2;
  color: var(--ud-white);
}

.bento-card__stat-group--right .bento-card__label {
  text-align: right;
}

/* Kachel 1: Oben links (Orange Verlauf) - 2 Spalten x 1 Zeile */
.bento-card--orange {
  grid-column: 1 / 3;
  grid-row: 1;
  background: var(--gradient-orange);
}

.bento-card__graphic--orange {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  width: calc(100% - 40px);
  line-height: 0;
  pointer-events: none;
}

.bento-svg--ttm {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: bottom center;
}

/* Kachel 2: Oben rechts (Pink Verlauf) - 1 Spalte x 2 Zeilen */
.bento-card--pink {
  grid-column: 3;
  grid-row: 1 / 3;
  background: var(--gradient-pink);
}

.bento-card__graphic--pink {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  width: 43%;
  max-width: 146px;
  min-width: 80px;
  line-height: 0;
  pointer-events: none;
}

.bento-svg--fehlerquote {
  width: 100%;
  height: auto;
  display: block;
}

/* Kachel 3: Mitte links (Violett Verlauf) - 1 Spalte x 1 Zeile Quadrat */
.bento-card--violet {
  grid-column: 1;
  grid-row: 2;
  background: var(--gradient-violet);
}

.bento-card__content--violet {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
}

.bento-card__graphic--violet {
  position: absolute;
  left: 20px;
  bottom: 20px;
  width: 45%;
  max-width: 155px;
  min-width: 80px;
  line-height: 0;
  pointer-events: none;
}

.bento-svg--erfahrung {
  width: 100%;
  height: auto;
  display: block;
}

/* Kachel 4: Mitte Zentrum (Grün Verlauf) - 1 Spalte x 1 Zeile Quadrat */
.bento-card--green {
  grid-column: 2;
  grid-row: 2;
  background: var(--gradient-green);
}

.bento-card__content--green {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.bento-card__graphic--green {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48%;
  max-width: 165px;
  min-width: 85px;
  line-height: 0;
  pointer-events: none;
}

.bento-svg--esg {
  width: 100%;
  height: auto;
  display: block;
}

/* Kachel 5: Unten links (Gelb Verlauf) - 1 Spalte x 1 Zeile Quadrat */
.bento-card--yellow {
  grid-column: 1;
  grid-row: 3;
  background: var(--gradient-yellow);
}

.bento-card__graphic--yellow {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  width: 44%;
  max-width: 150px;
  min-width: 80px;
  line-height: 0;
  pointer-events: none;
}

.bento-svg--kosten {
  width: 100%;
  height: auto;
  display: block;
}

/* Kachel 6: Unten rechts (Blau Verlauf) - 2 Spalten x 1 Zeile */
.bento-card--blue {
  grid-column: 2 / 4;
  grid-row: 3;
  background: var(--gradient-blue);
}

.bento-card__graphic--blue {
  position: absolute;
  left: clamp(30px, 8vw, 80px);
  top: 50%;
  transform: translateY(-50%);
  width: 26%;
  max-width: 185px;
  min-width: 95px;
  line-height: 0;
  pointer-events: none;
}

.bento-svg--projects {
  width: 100%;
  height: auto;
  display: block;
}

.bento-card__stats-col {
  position: absolute;
  top: 28px;
  bottom: 28px;
  right: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
}

/* Sektion in UD-White (Deine Vorteile) */
.section--ud-white {
  background-color: var(--ud-white);
  color: var(--ud-black);
}

.section--vorteile {
  padding-top: 190px; /* Spezifikation: 50px größeres Padding nach oben (140px + 50px) */
  padding-bottom: calc(90px + 180px); /* Spezifikation: Um 50px kleiner unter dem Button "Kontakt" (90px + 180px Rip-Cut) */
}

.container--vorteile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px; /* Spezifikation: Overall Abstand in der Section 80px */
}

/* Sektion in Cardboard */
.section--cardboard {
  position: relative;
  overflow: visible; /* Spezifikation: overflow visible */
  color: var(--ud-black);
  background-color: #E2D7C3; /* Cardboard-Grundfarbe als sicherer Fallback gegen weiße Blitzer */
  padding-top: 90px; /* Spezifikation: Um 50px kleiner über Unzufrieden (140px - 50px = 90px) */
  padding-bottom: 220px; /* Spezifikation: 80px mehr Padding nach unten (140px Basis + 80px) */
}

.container--cardboard {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px; /* Spezifikation: Abstand zwischen den Elementen ist 80px */
}

/* Mittleres Element: Fill in der Breite, max-width 1200px */
.cardboard-middle {
  display: flex;
  align-items: center;
  gap: 60px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* 2x2 Bento Grid: Um 25% vergrößert (400px -> 500px, 170px/200px -> 212px/250px, kein Spacing) */
.cardboard-bento {
  width: 500px;
  height: auto; /* Spezifikation: Hug in der Höhe */
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 212px 250px; /* Spezifikation: +25% skaliert (170px * 1.25 = 212px, 200px * 1.25 = 250px) */
  gap: 0; /* Spezifikation: Generell kein Spacing */
  box-sizing: border-box;
}

.cardboard-bento__card {
  border-radius: 9999px; /* Spezifikation: Komplett abgerundet (Pille oben, Kreise unten) */
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-heading); /* Vina Sans */
  font-size: 50px; /* Spezifikation: +25% skaliert (40px -> 50px) */
  line-height: 1; /* 1 EM Line-Height */
  user-select: none;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Gefaltete Papierstruktur mit Screen Blend-Effekt */
.cardboard-bento__texture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.75;
  z-index: 1;
  display: block;
}

.cardboard-bento__texture--top {
  object-position: top center;
}

.cardboard-bento__text {
  position: relative;
  z-index: 2;
}

/* Oben: #F28482 mit Text #A23C3B */
.cardboard-bento__card--top {
  grid-column: 1 / 3;
  grid-row: 1;
  background-color: #F28482;
  color: #A23C3B;
}

/* Links unten: #AE8ECC mit Text #74499B */
.cardboard-bento__card--bottom-left {
  grid-column: 1;
  grid-row: 2;
  background-color: #AE8ECC;
  color: #74499B;
}

/* Rechts unten: #84A59D mit Text #186653 */
.cardboard-bento__card--bottom-right {
  grid-column: 2;
  grid-row: 2;
  background-color: #84A59D;
  color: #186653;
  border-radius: 45px !important;
}

/* Fließtext rechts: Inter Semibold 20px, line-height 1.1, Fill Breite, Hug Höhe */
.cardboard-text {
  flex: 1;
  height: auto;
  min-width: 0;
  font-family: var(--font-body);
  font-weight: 600; /* Inter Semibold */
  font-size: 20px;
  line-height: 1.1; /* Spezifikation: von 1.2em auf 1.1em umgestellt */
  color: var(--ud-black);
  text-align: left;
}

.cardboard-text p {
  margin: 0 0 1.1em 0;
}

.cardboard-text p:last-child {
  margin-bottom: 0;
}

/* Frame um das Hintergrundbild: Fill horizontal & vertikal, overflow: hidden */
.section__bg-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden; /* Verhindert, dass das Hintergrundbild über den Container ragt */
  pointer-events: none;
  z-index: 1;
}

/* Äußerer Frame um die Rip-Kante:
   - Ragt exakt 1px in die Cardboard-Section hinein
   - Schneidet mit overflow: hidden den Schatten an der unteren Kante sauber ab */
.section__rip-clip {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: max(2000px, 100%);
  bottom: calc(100% - 1px); /* Ragt exakt 1px in die Cardboard-Section hinein */
  height: auto;
  overflow: hidden; /* Schneidet den Schatten an der unteren Kante ab */
  pointer-events: none;
  user-select: none;
  z-index: 10;
  line-height: 0;
}

/* Innerer Frame:
   - 20px Padding oben (damit der 10px Blur Schatten nach oben Platz hat)
   - Shadow mit 10 Blur und 000000 10% Farbe */
.section__rip-inner {
  width: 100%;
  height: auto;
  padding-top: 20px;
  box-sizing: border-box;
  line-height: 0;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.1));
}

/* Rip-Kante Bild: 180 Grad rotiert, skaliert proportional */
.section__rip-img {
  width: 100%;
  height: auto;
  display: block;
  transform: rotate(180deg); /* 180 Grad rotiert nach Vorgabe */
}

/* Rip-Clip Kante nach unten (z.B. von Green Paper zu UD White) */
.section__rip-clip--bottom {
  bottom: auto;
  top: calc(100% - 1px);
}

.section__rip-clip--bottom .section__rip-inner {
  padding-top: 0;
  padding-bottom: 20px;
  filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.08));
}

.section__rip-clip--bottom .section__rip-img {
  transform: none; /* Unrotiert für sauberen Abriss nach unten */
}

/* Sektion in Green Paper */
.section--green-paper {
  position: relative;
  overflow: visible;
  color: var(--ud-white);
  background-color: #229C6C; /* Grüner Hintergrund verhindert weiße Blitzer */
  padding-top: 220px; /* Spezifikation: 80px mehr Padding über der Headline (140px Basis + 80px = 220px) */
}

/* Home Seite Kontakt Sektion: +50px mehr Padding unten */
#kontakt {
  padding-bottom: 190px; /* Spezifikation: +50px mehr Padding unten (140px Basis + 50px = 190px) */
}

/* Subpage-spezifische Sektionen (Leistungen & Company) */
.section--subpage-intro {
  padding-top: 190px; /* Platz für den überlappenden -2° KPI-Balken */
  padding-bottom: 110px; /* Nochmals um 30px reduziert (von 140px auf 110px) */
}

/* ====================================================
   EXPERTEN CHECK-UP SECTION (Leistungen Seite)
   Spezifikation:
   - Section Padding: 50px links und rechts
   - Hintergrund: UD White (#F8F7F5)
   - 3 Karten nebeneinander (max 400px breit, 40px Gap)
   - Verbindungslinie im Hintergrund hinter den Karten
   - Farben & Papierstruktur wie im Bento (Pink, Violet, Blue)
   - Klickbares Aufklappen mit mehr Informationen
   ==================================================== */
.section--subpage-checkup {
  padding-top: 240px; /* Um 50px erhöht (von 190px auf 240px) */
  padding-bottom: calc(90px + 180px); /* Platz für die Cardboard-Rip-Kante */
  padding-left: 50px;
  padding-right: 50px;
  box-sizing: border-box;
  overflow: hidden; /* Schützt vor horizontalem Scrollen durch die Verbindungslinie */
  position: relative;
}

.container--checkup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  max-width: 1380px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.checkup-wrapper {
  position: relative;
  width: 100%;
  max-width: 1280px; /* 3 * 400px + 2 * 40px */
  margin: 0 auto;
}

.checkup-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Einzelne Check-Up Karte (Festes 3:4 Seitenverhältnis, alle 3 Karten immer exakt gleich groß) */
.checkup-card {
  flex: 0 0 calc((100% - 80px) / 3);
  width: calc((100% - 80px) / 3);
  max-width: 400px;
  aspect-ratio: 3 / 4;
  container-type: inline-size;
  border-radius: clamp(28px, 9.5cqw, 38px);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  isolation: isolate;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.checkup-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.09);
}

.checkup-card:focus-visible {
  outline: 3px solid var(--ud-dark);
  outline-offset: 4px;
}

/* Karten Farbverläufe nach Bento-Vorgabe */
.checkup-card--pink {
  background: var(--gradient-pink);
}

.checkup-card--violet {
  background: var(--gradient-violet);
}

.checkup-card--blue {
  background: var(--gradient-blue);
}

/* Papierstruktur Overlay: Screen Blend-Mode 70% Opacity */
.checkup-card__texture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.7;
  z-index: 1;
  display: block;
}

.checkup-card__texture--pink   { object-position: 85% 15%; transform: scaleX(-1); }
.checkup-card__texture--violet { object-position: 10% 85%; }
.checkup-card__texture--blue   { object-position: 90% 70%; transform: scale(-1); }

/* SVG Wasserzeichen Icon (im eingeklappten Zustand zentriert unten) */
.checkup-card__watermark {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  opacity: 0.22;
  width: 240px;
  height: auto;
  left: 50%;
  bottom: 35px;
  transform: translateX(-50%) scale(1);
  transform-origin: center center;
  transition: transform 0.45s cubic-bezier(0.33, 1, 0.68, 1), bottom 0.45s cubic-bezier(0.33, 1, 0.68, 1), opacity 0.3s ease;
}

/* Im ausgeklappten Zustand: Weich nach rechts unten wandern, verkleinern und anschneiden */
.checkup-card.is-expanded .checkup-card__watermark {
  bottom: -25px;
  transform: translateX(16%) translateY(12%) scale(0.72);
}

.checkup-card__watermark--gespraech {
  width: 61cqw;
}

.checkup-card__watermark--angebot {
  width: 61cqw;
}

.checkup-card__watermark--optimierung {
  width: 57.5cqw;
}

/* Inhaltsbereich */
.checkup-card__content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 8.5cqw 7cqw 7cqw 7cqw;
  color: var(--ud-white);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

/* Header: Nummer + Titel nebeneinander (Default mittig untereinander mit Icon, moved nach oben bei Klick) */
.checkup-card__header {
  display: flex;
  align-items: flex-start;
  gap: 3.5cqw;
  transform: translateY(var(--header-shift, 21.25cqw));
  transition: transform 0.45s cubic-bezier(0.33, 1, 0.68, 1);
  will-change: transform;
}

.checkup-card.is-expanded .checkup-card__header {
  transform: translateY(0);
}

.checkup-card__number {
  font-family: var(--font-heading);
  font-size: 24cqw;
  line-height: 0.88;
  color: var(--ud-white);
  flex-shrink: 0;
  user-select: none;
}

.checkup-card__title-group {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 2px;
}

.checkup-card__title-line {
  font-family: var(--font-heading);
  font-size: 12.5cqw;
  line-height: 0.9;
  letter-spacing: 0.01em;
  color: var(--ud-white);
  white-space: nowrap;
}

.checkup-card__chevron {
  width: 24px;
  height: 24px;
  display: inline-block;
  vertical-align: 0px;
  margin-left: 8px;
  transition: transform 0.35s cubic-bezier(0.33, 1, 0.68, 1);
  transform-origin: center;
  pointer-events: none;
}

.checkup-card.is-expanded .checkup-card__chevron {
  transform: rotate(180deg);
}

/* Inhaltsbereich (erscheint im selben 3:4 Frame wenn Header nach oben rückt) */
.checkup-card__body {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.33, 1, 0.68, 1), visibility 0.3s ease;
}

.checkup-card.is-expanded .checkup-card__body {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 0.35s ease 0.08s, transform 0.35s cubic-bezier(0.33, 1, 0.68, 1) 0.08s;
}

.checkup-card__body-inner {
  display: flex;
  flex-direction: column;
}

.checkup-card__intro {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(15px, 4.5cqw, 18px);
  line-height: 1.35;
  color: var(--ud-white);
  margin: 6cqw 0 4cqw 0;
}

.checkup-card__bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 3.5cqw;
}

.checkup-card__bullet {
  position: relative;
  padding-left: 20px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(13.5px, 4cqw, 16px);
  line-height: 1.35;
  color: var(--ud-white);
}

.checkup-card__bullet::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  background-color: var(--ud-white);
  border-radius: 50%;
}

/* Responsive Anpassungen:
   1. <= 1150px: 2 Karten oben, 1 Karte zentriert unten – ALLE 3 exakt gleich breit: calc((100% - 30px) / 2)
   2. <= 720px: 1 Karte pro Zeile untereinander – ALLE 3 exakt gleich breit */
@media (max-width: 1150px) {
  .checkup-wrapper {
    max-width: 830px; /* 2 * 400px + 30px Gap */
  }
  .checkup-cards {
    gap: 30px;
  }
  .checkup-card {
    flex: 0 0 calc((100% - 30px) / 2);
    width: calc((100% - 30px) / 2);
    max-width: 400px;
  }
}

@media (max-width: 899px) {
  .section--subpage-checkup {
    padding-left: 24px;
    padding-right: 24px;
  }
  .container--checkup {
    gap: 40px;
  }
}

@media (max-width: 720px) {
  .checkup-card {
    flex: 0 0 100%;
    width: 100%;
    max-width: 400px;
  }
}

/* ====================================================
   CONTENT TRIFFT TECHNISCHES KNOW-HOW SECTION (Leistungen Seite)
   Spezifikation:
   - 4 Karten nebeneinander (je 300px x 300px)
   - Formen abwechselnd: Kreis, Squircle, Kreis, Squircle
   - Farben: Orange (#F19C57), Violett (#AE8ECC), Blau (#37A1CE), Grün (var(--ud-green))
   - Folded Paper Textur hochskaliert & variiert mit Screen-Effekt
   - Toggle-Switch unten auf jeder Karte
   - Kein Button am Ende der Sektion
   ==================================================== */
.container--know-how {
  gap: 60px;
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
}

.knowhow-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Sticker Wrapper (300px x 300px) */
.knowhow-card-wrap {
  width: 300px;
  height: 300px;
  flex: 0 0 300px;
  position: relative;
  box-sizing: border-box;
  isolation: isolate;
  user-select: none;
  cursor: pointer;
}

.knowhow-card-wrap--circle,
.knowhow-card-wrap--circle .knowhow-card__underlay {
  border-radius: 50%;
}

.knowhow-card-wrap--squircle,
.knowhow-card-wrap--squircle .knowhow-card__underlay {
  border-radius: 70px;
}

/* Detail-Ebene unter dem Sticker (wird sichtbar beim Aufrollen des Stickers) */
.knowhow-card__underlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 68px 25px 28px 25px;
  box-sizing: border-box;
  z-index: 1;
  pointer-events: none;
}

.knowhow-card__details {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.4;
  color: var(--ud-dark);
  font-weight: 600;
  margin: 0;
  max-width: 250px;
  width: 100%;
}

/* Kreis-Karten: Harmonischer Abstand zur Kreislinie (max-width 250px, 25px Padding) */
.knowhow-card-wrap--circle .knowhow-card__underlay {
  padding-left: 25px;
  padding-right: 25px;
}

.knowhow-card-wrap--circle .knowhow-card__details {
  max-width: 250px;
}

/* Squircle-Karten: Mehr Freiraum zu den Rändern (max-width 260px, 20px Padding) */
.knowhow-card-wrap--squircle .knowhow-card__underlay {
  padding-left: 20px;
  padding-right: 20px;
}

.knowhow-card-wrap--squircle .knowhow-card__details {
  max-width: 260px;
}

/* WebGL Three.js Canvas Container (480x480 mit 90px Puffer verhindert 3D-Clipping) */
.knowhow-card__canvas-wrap {
  position: absolute;
  top: -90px;
  left: -90px;
  width: 480px;
  height: 480px;
  z-index: 2;
  pointer-events: none;
}

.knowhow-card__canvas {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

/* Responsive Verhalten */
@media (max-width: 1319px) {
  .knowhow-grid {
    display: grid;
    grid-template-columns: repeat(2, 300px);
    justify-content: center;
    gap: 30px;
  }
  /* In 2 Zeilen: Grünen Sticker (4) und blauen Sticker (3) tauschen, damit Kreis & Squircle im Schachbrett wechseln */
  .knowhow-grid .knowhow-card-wrap:nth-child(3) {
    order: 4;
  }
  .knowhow-grid .knowhow-card-wrap:nth-child(4) {
    order: 3;
  }
}

@media (max-width: 680px) {
  .knowhow-grid {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin: 0 auto;
    gap: 24px;
  }
  /* Bei einspaltigem Mobile-Layout wieder die normale Reihenfolge (Kreis, Squircle, Kreis, Squircle) */
  .knowhow-grid .knowhow-card-wrap:nth-child(3) {
    order: initial;
  }
  .knowhow-grid .knowhow-card-wrap:nth-child(4) {
    order: initial;
  }
  .knowhow-card-wrap {
    width: 280px;
    height: 280px;
    flex: 0 0 280px;
  }
  .knowhow-card__canvas-wrap {
    top: -100px;
    left: -100px;
    width: 480px;
    height: 480px;
  }
  .knowhow-card-wrap--circle .knowhow-card__underlay {
    padding-left: 20px;
    padding-right: 20px;
  }
  .knowhow-card-wrap--circle .knowhow-card__details {
    max-width: 240px;
  }
  .knowhow-card-wrap--squircle .knowhow-card__underlay {
    padding-left: 15px;
    padding-right: 15px;
  }
  .knowhow-card-wrap--squircle .knowhow-card__details {
    max-width: 250px;
  }
}

.section--subpage-dna {
  padding-top: 190px; /* Platz für den überlappenden -2° KPI-Balken */
  padding-bottom: calc(90px + 180px); /* Platz für die Green-Paper-Rip-Kante */
}

.section--subpage-team {
  padding-top: 90px;
  padding-bottom: 140px;
  background-color: #229C6C;
}

.section--subpage-team .section__bg--green {
  background-repeat: repeat-y;
}

/* ====================================================
   DNA SECTION (Company Seite)
   Spezifikation:
   - Hintergrund: UD White
   - Grid: 2 Spalten, 5. Kachel über beide Spalten (Fullwidth)
   - Einzelne Karten: Hintergrund Cardboard Struktur, abgerundet
   - Bild links: Quadratisch, weißer 4px Rahmen, abgerundet
   - Headline: Vina Sans, 45px, 1em line-height, Caps
   - Copy: Inter Semibold, 18px, 1.2em line-height
   ==================================================== */
.container--dna {
  max-width: 1340px; /* Spezifikation: nicht breiter als 1340px */
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 70px;
  box-sizing: border-box;
}

.dna-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  box-sizing: border-box;
}

.dna-card {
  position: relative;
  background-color: #E2D7C3; /* Cardboard Fallback-Farbe */
  background-image: url('../assets/backgrounds/cardboard_paper_2500x2500px.webp');
  background-size: cover;
  background-position: center;
  border-radius: 50px; /* Ausgeglichene Rundung: 25px Padding + 25px Bildradius = 50px */
  padding: 25px 35px 25px 25px; /* Spezifikation: 25px links, oben und unten */
  display: flex;
  align-items: center;
  gap: 40px; /* Spezifikation: Spacing von 40 zwischen Bild und Text */
  box-sizing: border-box;
  color: var(--ud-black);
  overflow: hidden;
}

/* 5. Karte: Volle Breite über beide Spalten */
.dna-card--full {
  grid-column: 1 / -1;
}

.dna-card__image-wrap {
  width: 280px; /* Spezifikation: auf 280px vergrößert */
  height: 280px;
  flex-shrink: 0;
  border: 9px solid var(--ud-white); /* Spezifikation: 9px Outline um die Bilder */
  border-radius: 25px; /* Ausgeglichener Bildradius */
  overflow: hidden;
  box-sizing: border-box;
  background-color: var(--ud-white);
  line-height: 0;
}

.dna-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 16px; /* 25px - 9px Border = 16px für perfekten inneren Kurvenschluss */
}

.dna-card__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.dna-card__title {
  font-family: var(--font-heading);
  font-size: 45px; /* Spezifikation: 45px */
  line-height: 1em; /* Spezifikation: 1em */
  text-transform: none; /* Gemischte Schreibweise nach Vorgabe */
  color: var(--ud-black);
  margin: 0;
  padding: 0;
  letter-spacing: 0.01em;
}

.dna-card__copy {
  font-family: var(--font-body);
  font-weight: 600; /* Spezifikation: Inter Semibold */
  font-size: 18px; /* Spezifikation: 18px */
  line-height: 1.2em; /* Spezifikation: 1.2em */
  color: var(--ud-black);
  margin: 0;
  padding: 0;
}

@media (max-width: 1370px) {
  .dna-grid {
    grid-template-columns: 1fr;
    max-width: 1000px;
    margin: 0 auto;
    gap: 24px;
  }
  .dna-card {
    max-width: 1000px;
  }
  .dna-card--full {
    grid-column: 1;
  }
  .dna-card__image-wrap {
    width: 240px;
    height: 240px;
  }
}

@media (max-width: 900px) {
  .dna-card__title {
    font-size: 35px;
  }
  .dna-card__copy {
    font-size: 16px;
  }
}

@media (max-width: 650px) {
  .dna-card {
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 330px; /* 280px Bild + 2 * 25px Padding = 330px */
    margin: 0 auto;
    padding: 25px;
    gap: 24px;
  }
  .dna-card__image-wrap {
    width: 100%;
    max-width: 280px;
    height: auto;
    aspect-ratio: 1 / 1;
  }
  .dna-card__content {
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
  }
}

/* ====================================================
   TEAM SECTION (Company Seite - Green Paper)
   Spezifikation:
   - Farbige Flächen: 270x200px, Border-Radius 20px
   - Farben: Blau (#37A1CE), Gelb (#FEC143), Pink (#F3A7E5), Orange (#F19C57)
   - Struktur: struktur_crumpled_paper.webp mit mix-blend-mode: screen & opacity: 1
   - Mitarbeiter-Bilder: 270px breit, unten gleiche Rundung (20px), ragen oben 70px über die Fläche hinaus
   - Name: Inter Bold 20px
   - Jobtitel: Inter Medium 15px
   - Kategorie-Headline links: Vina Sans 50px, max-width 280px
   - Kategorie-Subline links: Inter Regular 20px
   ==================================================== */
.container--team {
  max-width: 1220px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 90px;
  box-sizing: border-box;
}

.team-categories {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 65px;
  box-sizing: border-box;
}

.team-divider {
  width: 100%;
  height: 4px;
  background-color: var(--ud-white);
  border: none;
  border-radius: 2px;
  margin: 0;
  opacity: 0.95;
}

.team-category {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  box-sizing: border-box;
}

.team-category__info {
  width: 100%;
  max-width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.team-category__title {
  font-family: var(--font-heading);
  font-size: 50px;
  line-height: 1em;
  letter-spacing: 0.01em;
  color: var(--ud-white);
  margin: 0;
  text-align: left;
  max-width: 280px;
}

.team-category__subline {
  font-family: var(--font-body);
  font-weight: 400; /* Inter Regular */
  font-size: 20px;
  line-height: 1.25;
  color: var(--ud-white);
  margin: 0;
  text-align: left;
}

.team-category__members {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 44px 20px;
  width: 100%;
  max-width: 850px; /* 3 * 270px + 2 * 20px = 850px */
}

.team-member {
  width: 270px;
  flex: 0 0 270px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.team-member__visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1; /* 270x270px bei 270px Breite (200px Farbfläche unten + 70px Überstand oben) */
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  -webkit-clip-path: inset(-30px 0 0 0 round 0 0 20px 20px);
  clip-path: inset(-30px 0 0 0 round 0 0 20px 20px);
}

.team-member__bg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  aspect-ratio: 270 / 200; /* Exakt 270x200px bei Desktop-Größe, skaliert proportional auf Mobile */
  height: auto;
  border-radius: 20px;
  overflow: hidden;
  isolation: isolate;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  z-index: 1;
}

.team-member__bg--blue {
  background-color: #37A1CE;
}

.team-member__bg--yellow {
  background-color: #FEC143;
}

.team-member__bg--pink {
  background-color: #F3A7E5;
}

.team-member__bg--orange {
  background-color: #F19C57;
}

.team-member__texture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 1; /* Spezifikation: Screen und Opacity 100% */
  z-index: 1;
  display: block;
}

/* Variierte Textur-Ausschnitte für natürlichen Look */
.team-member:nth-child(4n+1) .team-member__texture { object-position: 15% 25%; }
.team-member:nth-child(4n+2) .team-member__texture { object-position: 85% 15%; transform: scaleX(-1); }
.team-member:nth-child(4n+3) .team-member__texture { object-position: 45% 75%; transform: scaleY(-1); }
.team-member:nth-child(4n+4) .team-member__texture { object-position: 70% 35%; transform: scale(-1); }

.team-member__img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  display: block;
  pointer-events: none;
  user-select: none;
  transform-origin: bottom center;
  transform: translateY(3px) scale(1);
  transition: transform 0.9s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
}

.team-member:hover .team-member__img {
  transform: translateY(0) scale(1.01);
}

.team-member__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  width: 100%;
}

.team-member__name {
  font-family: var(--font-body);
  font-weight: 700; /* Inter Bold */
  font-size: 20px;
  line-height: 1.2;
  color: var(--ud-white);
  margin: 0;
}

.team-member__role {
  font-family: var(--font-body);
  font-weight: 500; /* Inter Medium */
  font-size: 15px;
  line-height: 1.3;
  color: var(--ud-white);
  margin: 0;
}

@media (max-width: 1260px) {
  .team-category {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }

  .team-category__info {
    max-width: 100%;
  }

  .team-category__title {
    max-width: none;
  }

  .team-category__members {
    justify-content: flex-start;
    max-width: 100%;
  }
}

@media (max-width: 680px) {
  .container--team {
    gap: 60px;
  }

  .team-categories {
    gap: 50px;
  }

  .team-category__title {
    font-size: 42px;
  }

  .team-category__members {
    gap: 28px 16px;
  }

  .team-member {
    width: calc((100% - 16px) / 2);
    flex: 0 0 calc((100% - 16px) / 2);
    gap: 10px;
  }

  .team-member__bg {
    border-radius: 14px;
  }

  .team-member__visual {
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    -webkit-clip-path: inset(-30px 0 0 0 round 0 0 14px 14px);
    clip-path: inset(-30px 0 0 0 round 0 0 14px 14px);
  }

  .team-member__img {
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
  }

  .team-member__name {
    font-size: clamp(15px, 4.2vw, 18px);
  }

  .team-member__role {
    font-size: clamp(12px, 3.4vw, 14px);
  }
}

/* ====================================================
   SERVICES ACCORDION (Leistungen Seite)
   Spezifikation:
   - Container max-width: 1340px
   - Frosted Glassmorphism Karten: rgba(255, 255, 255, 0.22) + blur
   - Abgerundete Ecken 30px, 1px Border
   - Header: Chevron links + Vina Sans Titel (45px, 1em) links, Tags (Inter 16px Bold) rechts
   - Body: Zweispaltig mit Text links und 500px Grafik rechts (am unteren Rand abschließend)
   ==================================================== */
.container--services {
  max-width: 1340px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
}

.services-accordion-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
}

.service-accordion {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.20);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 30px;
  overflow: hidden;
  box-sizing: border-box;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

@media (hover: hover) {
  .service-accordion:hover {
    background-color: rgba(255, 255, 255, 0.26);
  }
}

.service-accordion__header {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  padding: 24px 40px; /* Immer identisches symmetrisches Padding: ein- und ausgeklappt */
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  box-sizing: border-box;
  color: var(--ud-white);
  user-select: none;
  gap: 24px;
}

.service-accordion__title-group {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.service-accordion__chevron {
  width: 24px;
  height: 24px;
  display: block;
  transition: transform 0.35s cubic-bezier(0.2, 0, 0, 1);
  flex-shrink: 0;
  pointer-events: none;
}

.service-accordion.is-open .service-accordion__chevron {
  transform: rotate(180deg);
}

.service-accordion__title {
  font-family: var(--font-heading);
  font-size: 45px;
  line-height: 1;
  color: var(--ud-white);
  text-transform: none;
  letter-spacing: 0.01em;
  margin: 0;
  padding: 0;
  transform: translateY(-5px); /* Optischer Ausgleich: Vina Sans hat intern 345 Einheiten Freiraum oben und saß dadurch ~10px zu tief */
}

.service-accordion__tags {
  font-family: var(--font-body);
  font-size: 23px;
  font-weight: 600; /* Spezifikation: Inter Semibold */
  line-height: 1;
  letter-spacing: 0;
  color: var(--ud-white);
  text-transform: none;
  text-align: right;
  white-space: nowrap;
}

.service-accordion__tag:not(:last-child)::after {
  content: " · ";
}

/* Akkordeon-Aufklappanimation für die Karte */
.service-accordion__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.2, 0, 0, 1);
}

.service-accordion.is-open .service-accordion__body {
  max-height: 270px;
}

/* Inhalt sitzt vollkommen statisch und bewegt/animiert sich nicht */
.service-accordion__body-inner {
  overflow: hidden;
  height: 270px;
}

.service-accordion__content-grid {
  display: flex;
  align-items: center; /* Spezifikation: Text ist komplett zentriert vertikal in dem Bereich unten */
  justify-content: space-between;
  padding: 0 40px;
  height: 270px;
  margin-top: 0;
  gap: 40px;
  box-sizing: border-box;
}

.service-accordion__text-col {
  flex: 1;
  max-width: 650px; /* Spezifikation: maximale Breite von 650px */
  padding-left: 46px; /* 26px Chevron + 20px Gap = Bündig unter Titel */
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.service-accordion__text {
  font-family: var(--font-body);
  font-weight: 500; /* Spezifikation: Inter Medium */
  font-size: 18px; /* Spezifikation: 18px */
  line-height: 1.45;
  color: var(--ud-white);
  margin: 0;
  padding: 0;
}

.service-accordion__image-col {
  width: 350px; /* Spezifikation: Bildgröße auf 350px */
  height: 270px; /* Spezifikation: Bild unten angeschnitten */
  margin-right: 25px; /* Abstand von rechts um 25px vergrößert */
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  line-height: 0;
  overflow: hidden; /* Unten angeschnitten */
}

.service-accordion__img {
  width: 350px; /* 350px breit */
  height: 350px; /* 350px hoch -> wird bei 270px unten bündig abgeschnitten */
  max-width: none;
  object-fit: contain;
  object-position: top right;
  display: block;
}

/* Responsiv */
@media (max-width: 1250px) {
  .service-accordion__tags {
    font-size: clamp(18px, 1.75vw, 23px);
  }
}

@media (max-width: 1024px) {
  .section--subpage-intro {
    padding-left: 20px;
    padding-right: 20px;
  }
  .service-accordion__content-grid {
    padding: 0 30px;
    gap: 28px;
  }
  .service-accordion__image-col {
    width: 310px;
    height: 270px;
    margin-right: 0;
    align-self: flex-end;
  }
  .service-accordion__img {
    width: 310px;
    height: 310px;
  }
}

@media (max-width: 900px) {
  .container--services {
    padding: 0;
    gap: 40px;
  }
  .service-accordion.is-open .service-accordion__body {
    max-height: 650px;
  }
  .service-accordion__body-inner {
    height: auto;
  }
  .service-accordion__header {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 24px;
    gap: 10px;
  }
  .service-accordion__title-group {
    width: 100%;
    justify-content: space-between;
  }
  .service-accordion__title {
    order: 1;
    font-size: 36px;
    transform: translateY(-2px);
  }
  .service-accordion__chevron {
    order: 2;
  }
  .service-accordion__tags {
    text-align: left;
    padding-left: 0;
    font-size: 16px;
    line-height: 1.2em;
    white-space: normal;
  }
  .service-accordion__tag:not(:last-child)::after {
    content: ", ";
  }
  .service-accordion__content-grid {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    min-height: 0;
    padding: 4px 24px 0 24px;
    gap: 20px;
  }
  .service-accordion__text-col {
    padding-left: 0;
    max-width: 100%;
  }
  .service-accordion__text {
    font-size: 16px;
  }
  .service-accordion__image-col {
    width: 100%;
    max-width: 280px;
    height: 215px;
    align-self: center;
    justify-content: center;
    margin-right: 0;
  }
  .service-accordion__img {
    width: 280px;
    height: 280px;
    object-position: top center;
  }
}

@media (max-width: 768px) {
  .service-accordion__header {
    padding: 20px 20px;
  }
  .service-accordion__content-grid {
    padding: 4px 20px 0 20px;
  }
}

/* ----------------------------------------------------
 * 1. 2000px Hintergrund-Ebene
 * Unter 2000px 2000px breit zentriert, ab 2000px responsiv mitwachsend
 * ---------------------------------------------------- */
.section__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  user-select: none;
  
  background-repeat: no-repeat;
  background-position: center top;
  background-size: max(2000px, 100%) auto;
}

/* Konkrete Textur-Varianten */
.section__bg--paper {
  background-image: url('../assets/backgrounds/paperstructure_2500x2500px.webp');
}

.section__bg--green {
  background-image: url('../assets/backgrounds/green_paper_2500x2500px.webp');
  background-repeat: repeat-y;
}

.section__bg--cardboard {
  position: absolute;
  inset: 0;
  top: 0;
  left: 50%;
  width: max(2000px, 100%);
  height: 100%;
  min-height: 100%;
  transform: translateX(-50%) rotate(180deg);
  transform-origin: center center;
  background-image: url('../assets/backgrounds/cardboard_paper_2500x2500px.webp');
  background-repeat: repeat-y;
  background-position: center top;
  background-size: max(2000px, 100%) auto;
}

/* ----------------------------------------------------
 * 2. 2000px Abrisskanten (Papercut Dividers)
 * ---------------------------------------------------- */
.section__tear {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: max(2000px, 100%);
  line-height: 0;
  pointer-events: none;
  user-select: none;
  z-index: 2;
}

.section__tear img {
  width: 100%;
  height: auto;
  display: block;
}

.section__tear--bottom {
  bottom: -1px;
}

.section__tear--top {
  top: -1px;
}

/* ====================================================
   RESPONSIVE BREAKPOINTS (BENTO & CARDBOARD)
   ==================================================== */

/* Unter 1200px:
   - Bento Spacing von 20 auf 10px
   - Fonts und Icons skalieren fließend über clamp() und Prozentwerte weiter herunter
   - Cardboard Bento skaliert proportional mit */
@media (max-width: 1199px) {
  /* Globale Headline- & Subline-Skalierung unter 1200px */
  .section__headline {
    font-size: 56px;
    line-height: 56px;
  }

  .section__subline {
    font-size: 23px;
  }

  .bento-grid {
    gap: 10px;
  }

  .bento-card__content {
    padding: clamp(18px, 2.4vw, 24px);
  }

  .bento-card__stats-col {
    top: clamp(18px, 2.4vw, 24px);
    bottom: clamp(18px, 2.4vw, 24px);
    right: clamp(18px, 2.4vw, 24px);
  }

  /* Cardboard Sektion Skalierung */
  .cardboard-middle {
    gap: 40px;
  }

  .cardboard-bento {
    width: 430px;
    grid-template-rows: 182px 215px;
  }

  .cardboard-bento__card {
    font-size: 43px;
  }
}

/* Ab 1055px:
   - Cardboard Layout ("Unzufrieden mit deiner Agentur?") wechselt auf vertikal zentriert */
@media (max-width: 1055px) {
  .cardboard-middle {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
  }

  .cardboard-bento {
    width: 100%;
    max-width: 440px;
    grid-template-rows: 185px 220px;
  }

  .cardboard-bento__card {
    font-size: 44px;
  }

  .cardboard-text {
    text-align: center;
    max-width: 680px;
  }
}

/* Unter 800px:
   - Vorteile Bento wechselt auf das 2-Spalten Mobile-Layout (Vorlage Bild 2)
   - Orange oben über 2 Spalten
   - Violett links (1x1 quadratisch), Pink rechts (über 2 Zeilen)
   - Grün links (1x1 quadratisch)
   - Gelb über 2 Spalten (Zahl links, Euro rechts - identische Höhe wie Violett & Grün)
   - Blau über 2 Spalten (Globus links, Zahlen rechts - identische Höhe wie Violett & Grün) */
@media (max-width: 799px) {
  /* Globale Headline- & Subline-Skalierung unter 800px */
  .section__headline {
    font-size: 45px;
    line-height: 45px;
  }

  .section__subline {
    font-size: 18px;
    margin-top: 16px;
  }

  /* Container-Padding links und rechts von 50px auf 25px reduziert,
     vertikale Section-Paddings überall um exakt 30px verringert (Rip-Cut-Abstand von 180px bleibt voll erhalten) */
  .section {
    padding-top: 110px;
    padding-bottom: 110px;
    padding-left: 25px;
    padding-right: 25px;
  }

  .section--vorteile,
  .section--subpage-dna {
    padding-top: 160px;
    padding-bottom: calc(60px + 180px);
  }

  .section--subpage-checkup {
    padding-top: 210px;
    padding-bottom: calc(60px + 180px);
  }

  .section--cardboard {
    padding-top: 60px;
    padding-bottom: 240px; /* Spezifikation: +50px mehr Padding unten (190px + 50px = 240px) auf Mobile */
  }

  .section--green-paper {
    padding-top: 190px;
    padding-bottom: 110px;
  }

  /* Home Seite Kontakt Sektion: +50px mehr Padding unten auf Mobile */
  #kontakt {
    padding-bottom: 160px; /* Spezifikation: +50px mehr Padding unten (110px + 50px = 160px) auf Mobile */
  }

  .section--subpage-intro {
    padding-top: 160px;
    padding-bottom: 80px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .section--subpage-team {
    padding-top: 60px;
    padding-bottom: 160px; /* Spezifikation: +50px mehr Padding unten (110px + 50px = 160px) auf Mobile */
  }

  /* Hintergrund-Texturen & Abrisskanten auf Mobile auf 1500px herunterskalieren */
  .section__rip-clip {
    width: max(1500px, 100%);
  }

  .section__bg {
    background-size: max(1500px, 100%) auto;
  }

  .section__bg--cardboard {
    width: max(1500px, 100%);
    background-size: max(1500px, 100%) auto;
  }

  .section__tear {
    width: max(1500px, 100%);
  }

  .error-page__paper-texture {
    width: max(1500px, 100%);
    background-size: max(1500px, 100%) auto;
  }

  .bento-grid {
    aspect-ratio: auto;
    grid-template-columns: repeat(2, 1fr);
    --bento-col-w: calc((100vw - 60px) / 2);
    --bento-card-h: var(--bento-col-w); /* Quadratisch 1:1 */
    grid-template-rows: repeat(5, var(--bento-card-h));
    gap: 10px;
  }

  @supports (container-type: inline-size) {
    .bento-grid {
      --bento-col-w: calc((100cqi - 10px) / 2);
      --bento-card-h: var(--bento-col-w); /* Quadratisch 1:1 */
      grid-template-rows: repeat(5, var(--bento-card-h));
    }
  }

  .bento-card {
    height: 100%;
    min-height: 0;
  }

  .bento-card__num {
    font-size: clamp(40px, 10vw, 64px);
    line-height: clamp(36px, 9vw, 56px);
  }

  .bento-card__label {
    font-size: clamp(14px, 2.5vw, 16px);
    line-height: 1.2;
  }

  /* 1. Orange: col 1 / 3, row 1 (Identische Höhe wie Violett & Grün) */
  .bento-card--orange {
    grid-column: 1 / 3;
    grid-row: 1;
    height: 100%;
  }

  .bento-card__graphic--orange {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    width: calc(100% - 40px);
  }

  .bento-svg--ttm {
    width: 100%;
    height: auto;
    max-height: none;
    display: block;
  }

  /* 2. Violet: col 1, row 2 (Exaktes Seitenverhältnis 1:1 quadratisch) */
  .bento-card--violet {
    grid-column: 1;
    grid-row: 2;
    aspect-ratio: 1 / 1;
    width: 100%;
    height: 100%;
  }

  .bento-card__graphic--violet {
    position: absolute;
    width: 45%;
    max-width: 100px;
    left: 20px;
    bottom: 20px;
  }

  /* 3. Pink: col 2, rows 2 & 3 (spans 2 rows = 2 * Kachelhöhe + 10px Gap) */
  .bento-card--pink {
    grid-column: 2;
    grid-row: 2 / 4;
    height: 100%;
  }

  .bento-card__graphic--pink {
    position: absolute;
    width: 43%;
    max-width: 110px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: 30px;
  }

  /* 4. Green: col 1, row 3 (Exaktes Seitenverhältnis 1:1 quadratisch) */
  .bento-card--green {
    grid-column: 1;
    grid-row: 3;
    aspect-ratio: 1 / 1;
    width: 100%;
    height: 100%;
  }

  .bento-card__graphic--green {
    position: absolute;
    width: 48%;
    max-width: 110px;
    top: 20px;
    right: 20px;
  }

  /* 5. Yellow: col 1 / 3, row 4 (Identische Höhe wie Violett & Grün) */
  .bento-card--yellow {
    grid-column: 1 / 3;
    grid-row: 4;
    height: 100%;
  }

  .bento-card__graphic--yellow {
    position: absolute;
    right: 20px;
    bottom: 20px;
    left: auto;
    transform: none;
    width: clamp(65px, 16vw, 95px);
    max-width: 95px;
  }

  /* 6. Blue: col 1 / 3, row 5 (Identische Höhe wie Violett & Grün) */
  .bento-card--blue {
    grid-column: 1 / 3;
    grid-row: 5;
    height: 100%;
  }

  .bento-card__graphic--blue {
    position: absolute;
    left: clamp(16px, 4vw, 28px);
    top: 50%;
    transform: translateY(-50%);
    width: clamp(70px, 18vw, 100px);
  }

  .bento-card__stats-col {
    position: absolute;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    right: clamp(16px, 4vw, 24px);
    gap: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* Unter 480px:
   - Zusätzliche Feinabstimmung für kleine Smartphones (Vertikale Section-Paddings bleiben identisch zum Desktop!) */
@media (max-width: 480px) {
  .bento-card__content {
    padding: 14px;
  }

  .bento-card__num {
    font-size: clamp(38px, 11vw, 48px);
    line-height: clamp(34px, 10vw, 42px);
  }

  .bento-card__graphic--violet {
    width: 45%;
    max-width: 85px;
  }

  .bento-card__graphic--pink {
    width: 43%;
    max-width: 90px;
  }

  .bento-card__graphic--green {
    width: 48%;
    max-width: 90px;
  }

  .bento-card__graphic--yellow {
    width: 75px;
  }

  .bento-card__graphic--blue {
    width: 75px;
    left: 12px;
  }

  .bento-card__stats-col {
    right: 14px;
    gap: 6px;
  }

  .cardboard-bento {
    max-width: 310px;
    grid-template-rows: 130px 155px;
  }

  .cardboard-bento__card {
    font-size: 31px;
  }
}

/* ====================================================
   IMPRESSUM & DATENSCHUTZ SEITEN (.legal-page)
   Spezifikation:
   - Grüner Hintergrund (var(--ud-green))
   - Text in UD Pink (var(--ud-pink)) auf z-index 2
   - Papierstruktur (paperstructure_2500x2500px.webp) auf z-index 3,
     position: fixed beim Scrollen mit mix-blend-mode: overlay
   ==================================================== */
.legal-page {
  position: relative;
  background-color: var(--ud-green);
  min-height: calc(100vh - 140px);
  min-height: calc(100dvh - 140px);
  width: 100%;
  padding: 180px 40px 140px;
  box-sizing: border-box;
  overflow: hidden;
}

.legal-page__paper-texture {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: max(2000px, 100%);
  height: 100%;
  background: url('../assets/backgrounds/paperstructure_2500x2500px.webp') repeat-y center top;
  background-size: max(2000px, 100%) auto;
  pointer-events: none;
  user-select: none;
  z-index: 3; /* Über dem Text (z-index 2), unter Footer (z-index 5) & Header (z-index 20) */
  mix-blend-mode: overlay;
  opacity: 0.95;
}

.legal-page__content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  color: var(--ud-white);
}

.legal-page__title {
  font-family: var(--font-heading);
  font-size: clamp(50px, 6vw, 70px);
  line-height: 1;
  color: var(--ud-pink);
  margin: 0 0 48px 0;
  word-break: break-word;
}

.legal-page__section-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.3;
  color: var(--ud-white);
  margin: 48px 0 24px 0;
}

.legal-page__subtitle {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
  color: var(--ud-white);
  margin: 32px 0 10px 0;
}

.legal-page__text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.4;
  color: var(--ud-white);
  margin: 0 0 20px 0;
}

.legal-page__text strong {
  font-weight: 700;
}

.legal-page__text a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}

.legal-page__text a:hover {
  opacity: 0.8;
}

.legal-page__list {
  list-style-position: outside;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.4;
  color: var(--ud-white);
  padding-left: 24px;
  margin: 0 0 28px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.legal-page__list li {
  padding-left: 8px;
}

@media (max-width: 768px) {
  .legal-page {
    padding: 140px 24px 150px; /* Spezifikation: +50px mehr Padding unten (100px + 50px = 150px) auf Mobile */
  }

  .legal-page__paper-texture {
    width: max(1500px, 100%);
    background-size: max(1500px, 100%) auto;
  }

  .legal-page__section-title {
    font-size: 20px;
    margin: 36px 0 18px 0;
  }

  .legal-page__subtitle,
  .legal-page__text,
  .legal-page__list {
    font-size: 17px;
  }
}

/* ====================================================
   404 FEHLERSEITE (.error-page)
   Spezifikation:
   - 100vw & 100vh (100dvh) Vollbild
   - Grüner Hintergrund (var(--ud-green)) mit Papierstruktur-Overlay
   - Groß "404" in Vina Sans, Info-Text in Inter, 3D-Button zurück zur Startseite
   ==================================================== */
.error-page {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background-color: var(--ud-green);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px 60px;
  box-sizing: border-box;
  overflow: hidden;
}

.error-page__paper-texture {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: max(2000px, 100%);
  height: 100%;
  background: url('../assets/backgrounds/paperstructure_2500x2500px.webp') no-repeat center top;
  background-size: max(2000px, 100%) auto;
  pointer-events: none;
  user-select: none;
  z-index: 3;
  mix-blend-mode: overlay;
  opacity: 0.95;
}

.error-page__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.error-page__code {
  font-family: var(--font-heading);
  font-size: min(340px, calc((100vw - 40px) / 1.191));
  line-height: 0.85;
  color: var(--ud-pink);
  margin: 0;
  padding: 0;
  letter-spacing: 0;
  white-space: nowrap;
  -webkit-text-box-trim: trim-both;
  -webkit-text-box-edge: cap alphabetic;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}

.error-page__text {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.4;
  color: var(--ud-pink);
  max-width: 520px;
  margin: 0;
}

.error-page__actions {
  position: relative;
  z-index: 5;
  margin-top: 60px;
  display: flex;
  justify-content: center;
}
