/* ==========================================================
   D-Team by Darius Niesporek
   Leitmotiv: der schwarze Van mit rotem Streifen, Ausrüstungs-
   kisten in Oliv, Akten in Manila, Wüstensand mit Kartenraster.
   Schriften lokal gehostet (keine Verbindung zu Google).
   ========================================================== */

@font-face {
  font-family: "Stardos Stencil";
  src: url("fonts/stardos-stencil-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Stardos Stencil";
  src: url("fonts/stardos-stencil-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --van: #000;
  --stripe: #c8102e;
  --stripe-dark: #a00c25;
  --sand: #d3b984;
  --olive: #4b5320;
  --olive-deep: #363c16;
  --manila: #e9d8a8;
  --bone: #f2ecdc;
  --brown: #5e4a1f;

  --display: "Stardos Stencil", "Stencil", Impact, sans-serif;
  --text: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --bar: 64px;

  interpolate-size: allow-keywords;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--bar);
  -webkit-text-size-adjust: 100%;
}

main { overflow-x: clip; }

body {
  margin: 0;
  background: var(--sand);
  color: #000;
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

:focus-visible { outline: 3px solid #000; outline-offset: 3px; }
.van :focus-visible,
.olive :focus-visible,
.topbar :focus-visible,
.footer :focus-visible { outline-color: var(--bone); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 1rem; top: -5rem;
  z-index: 100;
  padding: .6rem 1rem;
  background: var(--bone);
  color: #000;
  font-weight: 700;
}
.skip:focus { top: 1rem; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Kopfleiste ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--van);
  color: var(--bone);
}

.topbar-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--bar);
}

.brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1;
  text-decoration: none;
}

.nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem clamp(1rem, 2.4vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  display: inline-block;
  padding: .35rem 0;
  border-bottom: 3px solid transparent;
  font-weight: 600;
  font-stretch: 87.5%;
  text-decoration: none;
}
.nav a:hover { border-bottom-color: var(--stripe); }

.nav .nav-cta {
  padding: .45rem .95rem;
  border: 0;
  background: var(--stripe);
  color: #fff;
}
.nav .nav-cta:hover { background: var(--stripe-dark); }

.nav-toggle { display: none; }

@media (max-width: 820px) {
  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    min-height: 44px;
    padding: .4rem .9rem;
    border: 2px solid var(--bone);
    background: none;
    color: var(--bone);
    font: 600 1rem/1 var(--text);
    font-stretch: 87.5%;
    cursor: pointer;
  }
  .nav-toggle-bars,
  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
  }
  .nav-toggle-bars { position: relative; }
  .nav-toggle-bars::before,
  .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }

  .js .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: .5rem var(--gutter) 1.5rem;
    background: var(--van);
    border-bottom: 4px solid var(--stripe);
  }
  .js .nav.is-open { display: block; }
  .js .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .js .nav a { display: block; padding: .75rem 0; font-size: 1.25rem; border-bottom: 1px solid rgba(242, 236, 220, .15); }
  .js .nav .nav-cta { margin-top: 1rem; padding: .75rem 1rem; text-align: center; }
}

/* ---------- Van-Flächen (Hero, Kontakt) ---------- */

.van {
  --stripe-h: clamp(56px, 7.5vw, 110px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(180deg, #1c1c1c 0, #000 34%);
  color: var(--bone);
}

/* Körnung wie Lack unter Wüstenstaub */
.van::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.van-side { margin-top: clamp(3.5rem, 7vw, 6rem); }

.stripe {
  display: block;
  width: 100%;
  height: var(--stripe-h);
}
.stripe path { fill: var(--stripe); }

.van-side--rear .stripe { transform: scaleX(-1); }

.rocker {
  height: clamp(26px, 3.6vw, 44px);
  background: linear-gradient(180deg, #9aa0a3 0, #61676a 18%, #464b4e 70%, #2f3335 100%);
}

/* ---------- Hero ---------- */

.hero { padding-top: clamp(3rem, 8vw, 6.5rem); }

.hero-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  gap: clamp(2rem, 5vw, 5rem);
}

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
}

.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  justify-self: start;
  margin: 0;
  color: var(--bone);
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(6rem, 34vw, 19rem);
  line-height: 1;
}

.logo-row {
  display: flex;
  align-items: baseline;
  -webkit-text-stroke: .02em currentColor; /* so kräftig wie das bisherige Logo */
}

.logo-d {
  position: relative;
  line-height: .8;
}

.logo-team {
  margin-left: .03em;
  font-size: .4em;
  line-height: 1;
}

.logo-by {
  margin-top: .18em;
  font-family: var(--text);
  font-weight: 400;
  font-size: .118em;
  line-height: 1;
}

/* Einschusslöcher im D */
.hole {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: .1em;
  height: .1em;
  margin: -.05em 0 0 -.05em;
  border-radius: 50%;
  background:
    radial-gradient(circle at 46% 44%, #000 0 33%, #1e1414 39%, #4a4a48 46%, #9c9888 54%, #d9d3c2 60%, rgba(217, 211, 194, 0) 68%);
}
.hole::before,
.hole::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  height: 2px;
  transform-origin: 0 50%;
  background: linear-gradient(90deg, transparent 0 34%, rgba(0, 0, 0, .55) 34%, transparent);
}
.hole::before { width: 190%; transform: rotate(var(--r)); }
.hole::after  { width: 120%; transform: rotate(calc(var(--r) + 150deg)); }

.hero-copy {
  max-width: 34rem;
  padding-bottom: .5rem;
}

.hero-lead {
  margin: 0 0 1rem;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 700;
  font-stretch: 90%;
  line-height: 1.22;
  text-wrap: balance;
}

.hero-meta {
  max-width: 52ch;
  margin: 0 0 1.75rem;
  color: rgba(242, 236, 220, .8);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .75rem 1.4rem;
  border: 2px solid currentColor;
  font-weight: 700;
  font-stretch: 87.5%;
  line-height: 1.1;
  text-decoration: none;
}
.btn--red { background: var(--stripe); border-color: var(--stripe); color: #fff; }
.btn--red:hover { background: var(--stripe-dark); border-color: var(--stripe-dark); }
.btn--ghost { color: var(--bone); }
.btn--ghost:hover { background: var(--bone); color: #000; }

/* ---------- Action: Van, Effekte, Laufband (gesteuert von GSAP in script.js) ---------- */

/* Vor dem Intro ausblenden; script.js nimmt die Klasse wieder weg */
.intro .logo-d,
.intro .logo-team,
.intro .logo-by,
.intro .hero-copy > *,
.intro .van-drive,
.intro .mate { visibility: hidden; }
.intro .hero .stripe { clip-path: inset(0 0 0 100%); }

.char,
.word { display: inline-block; }

.hero > .wrap,
.hero > .van-side { position: relative; z-index: 1; }
.hero .van-side { margin-top: 0; }

.hero > .road {
  position: relative;
  z-index: 2;
  margin-top: clamp(1.5rem, 4vw, 3rem);
  margin-bottom: calc(var(--stripe-h) * -.8 - 4px);
  pointer-events: none;
}
.hero > .road { --van-w: clamp(250px, 42vw, 540px); }
.van-art {
  display: block;
  width: var(--van-w);
  height: auto;
  overflow: visible;
}
.van-door { opacity: 0; }

/* Das Team neben dem Van, Füße auf dem Streifen */
.crew {
  position: absolute;
  left: calc(var(--gutter) + var(--van-w) * 1.03);
  bottom: calc(var(--van-w) * .012);
  display: flex;
  align-items: flex-end;
  gap: calc(var(--van-w) * .025);
}
.mate {
  display: block;
  width: auto;
  height: calc(var(--van-w) * .31);
  overflow: visible;
}
.mate--small { height: calc(var(--van-w) * .25); }

@media (max-width: 600px) {
  .hero > .road { --van-w: min(200px, 54vw); }
  .crew { left: calc(var(--gutter) + var(--van-w) * .98); }
}

.fx,
.flash {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.fx { z-index: 4; }
.flash {
  z-index: 5;
  background: var(--bone);
  opacity: 0;
  visibility: hidden;
}

.dust {
  position: absolute;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(211, 185, 132, .55) 0, rgba(211, 185, 132, 0) 68%);
  pointer-events: none;
}
.dust--sand { background: radial-gradient(circle, rgba(94, 74, 31, .4) 0, rgba(94, 74, 31, 0) 68%); }

/* Sprechblasen über dem Team */
.crew.is-talking { pointer-events: auto; }
.crew.is-talking .mate-exit { cursor: pointer; }
.bubble {
  position: absolute;
  z-index: 3;
  bottom: calc(100% + 18px);
  left: 0;
  width: max-content;
  max-width: min(17rem, 72vw);
  margin: 0;
  padding: .6rem .85rem;
  border: 3px solid #000;
  border-radius: 14px;
  background: var(--bone);
  color: #000;
  font-size: clamp(.875rem, 1.3vw, 1.05rem);
  font-weight: 700;
  font-stretch: 90%;
  line-height: 1.25;
  text-wrap: balance;
  visibility: hidden;
  pointer-events: none;
}
.bubble--static {
  visibility: visible;
  --tail: 1.2rem;
}
.bubble::before,
.bubble::after {
  content: "";
  position: absolute;
  left: var(--tail, 30%);
  clip-path: polygon(0 0, 100% 0, 30% 100%);
}
.bubble::before {
  bottom: -17px;
  width: 24px;
  height: 17px;
  margin-left: -10px;
  background: #000;
}
.bubble::after {
  bottom: -11px;
  width: 17px;
  height: 12px;
  margin-left: -6px;
  background: var(--bone);
}

/* Fortschrittsbalken unter der Kopfleiste */
.progress {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 3px;
  background: var(--stripe);
  transform-origin: 0 50%;
  transform: scaleX(0);
}
.motion .progress { display: block; }

/* Laufband */
.ticker-wrap {
  overflow: hidden;
  padding-block: 2rem .5rem;
}
.ticker {
  margin-inline: -4%;
  padding-block: .9rem;
  border-block: 4px solid var(--stripe);
  background: #000;
  color: var(--bone);
  transform: rotate(-1.6deg);
}
.ticker-track {
  display: flex;
  width: max-content;
}
.ticker-group {
  display: flex;
  flex: none;
}
.ticker-group span {
  display: inline-flex;
  align-items: center;
  gap: 2.2rem;
  padding-right: 2.2rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  line-height: 1.1;
  white-space: nowrap;
}
.ticker-group span::after {
  content: "";
  width: .75em;
  height: .75em;
  background: var(--stripe);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Sektionen ---------- */

.section { padding-block: clamp(4.5rem, 10vw, 8rem); }

/* Wüstensand mit Kartenraster */
.sand {
  background-color: var(--sand);
  background-image:
    linear-gradient(rgba(0, 0, 0, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, .07) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: -1px -1px;
}

.olive {
  background: var(--olive);
  color: var(--bone);
}

h2 {
  margin: 0 0 .4em;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.75rem, 7vw, 5rem);
  line-height: .92;
}

.section-intro {
  max-width: 40rem;
  margin: 0 0 clamp(2.5rem, 5vw, 3.5rem);
  font-size: clamp(1.125rem, 1.6vw, 1.3rem);
  line-height: 1.5;
}

/* ---------- Leistungen: Kisten ---------- */

.crates {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.crate {
  --plank: 60px;
  position: relative;
  padding: clamp(1.4rem, 3vw, 2.25rem);
  border: 4px solid var(--olive-deep);
  background: repeating-linear-gradient(180deg, var(--olive) 0 calc(var(--plank) - 2px), var(--olive-deep) calc(var(--plank) - 2px) var(--plank));
  color: var(--bone);
}

.crate h3 {
  margin: 0 0 .6em;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  line-height: 1.05;
}

.crate p { max-width: 38ch; margin: 0; }

.crate--wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
  gap: clamp(1.5rem, 3.5vw, 3rem);
}
.crate--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.crate--flip .crate-photo { order: 2; }

.crate-photo {
  margin: 0;
  padding: 6px;
  background: #000;
}
.crate-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.crate-photo figcaption {
  padding: .55rem .35rem .3rem;
  color: var(--bone);
  font-size: .9375rem;
  font-weight: 600;
  font-stretch: 87.5%;
}

/* Montags-Einsatz: hervorgehoben in Van-Lackierung mit Streifen und grauer Schweller */
.mission {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-bottom: 10px;
  padding: clamp(1.4rem, 3vw, 2.25rem);
  border-bottom: 10px solid var(--stripe);
  background: linear-gradient(180deg, #1c1c1c 0, #000 40%);
  box-shadow: 0 10px 0 #6b7174;
  color: var(--bone);
}
.mission h3 {
  margin: 0 0 .6em;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1;
  text-wrap: balance;
}
.mission p {
  max-width: 56ch;
  margin: 0;
  font-size: clamp(1.0625rem, 1.4vw, 1.2rem);
}
.mission-photo img {
  aspect-ratio: 4 / 5;
  object-position: 50% 60%;
}

/* Fotos vom Kochen wie Abzüge auf dem Tisch */
.mission-gallery {
  grid-column: 1 / -1;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: clamp(.6rem, 1.5vw, 1.1rem);
  margin: 0;
  padding: .5rem 0 0;
  list-style: none;
}
.mission-gallery li:nth-child(odd) { transform: rotate(-2deg); }
.mission-gallery li:nth-child(even) { transform: rotate(1.6deg); }
.mission-gallery figure {
  margin: 0;
  padding: 6px 6px 0;
  background: #fff;
  color: #000;
}
.mission-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.mission-gallery figcaption {
  padding: .45rem .2rem .55rem;
  font-size: .8125rem;
  font-weight: 600;
  font-stretch: 87.5%;
  line-height: 1.25;
}

/* Ausflüge: Text links, Reisetickets rechts */
.mission--trips { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }

.tickets {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ticket {
  --stub: 5.5rem;
  position: relative;
  display: grid;
  grid-template-columns: var(--stub) minmax(0, 1fr);
  grid-template-rows: auto auto;
  min-height: 6.5rem;
  background: var(--manila);
  color: #000;
}
.ticket:nth-child(odd) { transform: rotate(-2deg); }
.ticket:nth-child(even) { transform: rotate(1.5deg); }
.ticket::before,
.ticket::after {
  content: "";
  position: absolute;
  left: calc(var(--stub) - 11px);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #000;
}
.ticket::before { top: -11px; }
.ticket::after { bottom: -11px; }
.ticket-num {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  border-right: 3px dashed rgba(0, 0, 0, .4);
  color: var(--stripe);
  font-family: var(--display);
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 1;
}
.ticket-unit {
  align-self: end;
  padding: .9rem 1.1rem 0;
  color: var(--brown);
  font-size: .9375rem;
  font-weight: 700;
  font-stretch: 87.5%;
}
.ticket-what {
  align-self: start;
  padding: .15rem 1.1rem .9rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.1rem, 4.4vw, 1.4rem);
  line-height: 1.1;
  hyphens: auto;
  overflow-wrap: break-word;
}

/* Wochenleiste: der Montag ist rot gestempelt */
.week {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}
.week li {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 2px solid rgba(242, 236, 220, .3);
  color: rgba(242, 236, 220, .5);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
}
.week .is-on {
  border: 4px double var(--bone);
  background: var(--stripe);
  color: #fff;
  transform: rotate(-6deg) scale(1.12);
}

@media (max-width: 820px) {
  .mission,
  .mission--trips { grid-template-columns: minmax(0, 1fr); }
  .mission-photo img { aspect-ratio: 4 / 3; }
  .week { gap: .3rem; }
  .ticket { --stub: 4.6rem; }
  .ticket-num { font-size: 2.2rem; }
  .mission-gallery {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 44%;
    overflow-x: auto;
    padding: .75rem .25rem .75rem;
    scroll-snap-type: x mandatory;
  }
  .mission-gallery li { scroll-snap-align: start; }
  .week li { width: 2.15rem; height: 2.15rem; font-size: .9rem; }
}

.stars {
  display: grid;
  gap: .65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.stars > li {
  position: relative;
  padding-left: 1.75rem;
}
.stars > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .3em;
  width: 1em;
  height: 1em;
  background: var(--bone);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* Länderkennzeichen wie auf dem Heck */
.plates {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: .9rem 0 0;
  padding: 0;
  list-style: none;
}
.plate {
  display: grid;
  place-items: center;
  min-width: 3.4rem;
  height: 2.25rem;
  padding: 0 .75rem;
  border: 3px solid #000;
  border-radius: 50%;
  background: #fff;
  color: #000;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1;
}

@media (max-width: 820px) {
  .crates { grid-template-columns: minmax(0, 1fr); }
  .crate--wide,
  .crate--flip { grid-template-columns: minmax(0, 1fr); }
  .crate--flip .crate-photo { order: 0; }
}

/* ---------- Werdegang: Personalakte ---------- */

.folder { margin-top: clamp(1.5rem, 3vw, 2.5rem); }

.folder-tab {
  display: inline-block;
  margin: 0;
  padding: .7rem 1.5rem .5rem;
  border-radius: 12px 12px 0 0;
  background: var(--manila);
  color: #000;
  font-weight: 700;
  font-stretch: 87.5%;
}

.folder-sheet {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  padding: clamp(1.5rem, 4.5vw, 3.75rem);
  border-radius: 0 12px 12px 12px;
  background: var(--manila);
  color: #000;
  box-shadow: 10px 10px 0 var(--olive-deep);
}

.facts {
  display: grid;
  gap: 1rem;
  margin: 0;
}
.facts div {
  padding-top: .5rem;
  border-top: 2px solid #000;
}
.facts dt {
  color: var(--brown);
  font-size: .875rem;
  font-weight: 600;
  font-stretch: 87.5%;
}
.facts dd {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
}

.tally { margin-top: 2.5rem; }
.tally-num {
  display: block;
  color: var(--stripe);
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(5.5rem, 13vw, 9rem);
  line-height: .8;
}
.tally p {
  max-width: 30ch;
  margin: .75rem 0 0;
  font-size: 1rem;
  line-height: 1.5;
}

.stamp {
  display: inline-block;
  margin-top: 2.5rem;
  padding: .3rem .85rem .15rem;
  border: 5px double var(--stripe);
  color: var(--stripe);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: .04em;
  opacity: .85;
  mix-blend-mode: multiply;
  transform: rotate(-7deg);
}

.file-text p { max-width: 62ch; margin: 0 0 1.1em; }

.file-text h3 {
  margin: 2.25rem 0 .9rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1.1;
}

.stations {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid #000;
}
.stations li {
  padding: .7rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, .3);
}
.stations strong { display: block; line-height: 1.35; }

@media (max-width: 900px) {
  .folder-sheet { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Projekte: Akten zum Aufklappen ---------- */

.projects {
  display: grid;
  gap: clamp(3.25rem, 6vw, 4.5rem);
  padding-top: 2.4rem;
}

.project {
  position: relative;
  border-radius: 0 12px 12px 12px;
  background: var(--manila);
  box-shadow: 10px 10px 0 rgba(0, 0, 0, .78);
}

.project summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 2rem;
  align-items: end;
  padding: clamp(1.4rem, 3.5vw, 2.5rem);
  list-style: none;
  cursor: pointer;
}
.project summary::-webkit-details-marker { display: none; }

.project-tab {
  position: absolute;
  left: 0;
  bottom: 100%;
  padding: .6rem 1.4rem .45rem;
  border-radius: 12px 12px 0 0;
  background: var(--manila);
  font-weight: 700;
  font-stretch: 87.5%;
  white-space: nowrap;
}

.project h3 {
  grid-column: 1;
  margin: 0 0 .25em;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: .95;
}

.project-where {
  grid-column: 1;
  margin-bottom: .4rem;
  color: var(--brown);
  font-weight: 600;
  font-stretch: 87.5%;
}

.project-teaser {
  grid-column: 1;
  max-width: 56ch;
}

.project-toggle {
  grid-column: 2;
  grid-row: 1 / span 4;
  align-self: end;
  padding: .7rem 1.1rem;
  border: 2px solid #000;
  font-weight: 700;
  font-stretch: 87.5%;
  white-space: nowrap;
}
.project summary:hover .project-toggle { background: #000; color: var(--manila); }
.project[open] .when-closed,
.project:not([open]) .when-open { display: none; }

.project-body {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.5rem, 3.5vw, 3rem);
  margin-inline: clamp(1.4rem, 3.5vw, 2.5rem);
  padding: clamp(1.4rem, 3vw, 2rem) 0 clamp(1.4rem, 3.5vw, 2.5rem);
  border-top: 2px dashed rgba(0, 0, 0, .45);
}

.project-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: .75rem;
}
.project-photos img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 6px solid #fff;
}

.project-text p { max-width: 64ch; margin: 0 0 1em; }
.project-text .project-fund {
  margin-top: 1.5rem;
  padding-top: .9rem;
  border-top: 2px solid #000;
  color: var(--brown);
  font-size: .9375rem;
}

/* Aufklappen sanft, wo der Browser es kann */
.project::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size .35s cubic-bezier(.2, .7, .2, 1), content-visibility .35s allow-discrete;
}
.project[open]::details-content { block-size: auto; }

@media (prefers-reduced-motion: reduce) {
  .project::details-content { transition: none; }
}

@media (max-width: 820px) {
  .project summary { grid-template-columns: minmax(0, 1fr); }
  .project-toggle {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    margin-top: 1.25rem;
  }
  .project-body { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Referenzen ---------- */

.refs {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 5rem);
}

.refs h3 {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  font-stretch: 87.5%;
}

.clients {
  margin: 0;
  padding: 0;
  list-style: none;
}
.clients li {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.04;
}

.press {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 3px solid var(--bone);
}
.press li { border-bottom: 1px solid rgba(242, 236, 220, .35); }
.press a {
  display: grid;
  grid-template-columns: minmax(8.5rem, 12rem) minmax(0, 1fr);
  gap: .2rem 1.5rem;
  padding: 1rem 0;
  text-decoration: none;
}
.press-src { font-weight: 700; font-stretch: 87.5%; }
.press-title { font-weight: 500; }
.press-note {
  grid-column: 2;
  color: rgba(242, 236, 220, .75);
  font-size: .9375rem;
}
.press a:hover .press-title {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .refs { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .press a { grid-template-columns: minmax(0, 1fr); }
  .press-note { grid-column: 1; }
}

/* ---------- Häufige Fragen ---------- */

.faq {
  max-width: 56rem;
  border-top: 3px solid #000;
}
.faq-item { border-bottom: 1px solid rgba(0, 0, 0, .35); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.15rem 0;
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item h3 {
  margin: 0;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 700;
  font-stretch: 90%;
  line-height: 1.3;
}
.faq-item summary:hover h3 {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.faq-item summary::after {
  content: "";
  flex: none;
  width: 1.4rem;
  height: 1.4rem;
  background: var(--stripe);
  clip-path: polygon(40% 0, 60% 0, 60% 40%, 100% 40%, 100% 60%, 60% 60%, 60% 100%, 40% 100%, 40% 60%, 0 60%, 0 40%, 40% 40%);
  transition: transform .25s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  max-width: 62ch;
  margin: 0 0 1.4rem;
}
.faq-item::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size .3s cubic-bezier(.2, .7, .2, 1), content-visibility .3s allow-discrete;
}
.faq-item[open]::details-content { block-size: auto; }

@media (prefers-reduced-motion: reduce) {
  .faq-item summary::after,
  .faq-item::details-content { transition: none; }
}

/* ---------- Kontakt: Beschriftung auf der Van-Seite ---------- */

.contact { padding-top: clamp(4.5rem, 10vw, 8rem); }

.contact h2 {
  max-width: 17ch;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: .98;
}

.contact-lead {
  max-width: 44ch;
  margin: 0 0 2.5rem;
  color: rgba(242, 236, 220, .85);
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
}

.contact-quote {
  max-width: 24ch;
  margin: 0 0 2.25rem;
  color: var(--bone);
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  line-height: 1.05;
}
.contact-quote p { margin: 0; }
.contact-quote span { color: var(--stripe); }
.contact-quote cite {
  display: block;
  margin-top: .5rem;
  color: rgba(242, 236, 220, .7);
  font-family: var(--text);
  font-size: .9375rem;
  font-style: normal;
  font-weight: 600;
  font-stretch: 87.5%;
}

.phone {
  display: inline-block;
  color: var(--bone);
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.6rem, 9vw, 6.5rem);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.phone:hover {
  text-decoration: underline;
  text-decoration-color: var(--stripe);
  text-decoration-thickness: .06em;
  text-underline-offset: .1em;
}

.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 3.5rem;
  margin: 2rem 0 0;
}
.contact-list dt {
  color: rgba(242, 236, 220, .7);
  font-size: .875rem;
  font-weight: 600;
  font-stretch: 87.5%;
}
.contact-list dd {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.contact-list a { text-underline-offset: 3px; }
.contact-list a:hover { text-decoration-color: var(--stripe); text-decoration-thickness: 2px; }

/* ---------- Hinweis: keine Cookies ---------- */

.cookie-note {
  position: fixed;
  left: max(16px, env(safe-area-inset-left, 0px));
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1rem;
  max-width: min(31rem, calc(100vw - 32px));
  padding: .85rem 1rem;
  border-left: 6px solid var(--stripe);
  background: #000;
  color: var(--bone);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, .3);
  font-size: .9375rem;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(calc(100% + 24px));
  transition: transform .45s cubic-bezier(.2, .9, .3, 1.15), opacity .3s ease;
}
.cookie-note[hidden] { display: none; }
.cookie-note.is-visible {
  opacity: 1;
  transform: none;
}
.cookie-note-icon {
  flex: none;
  width: 30px;
  height: 30px;
}
.cookie-note p {
  flex: 1 1 13rem;
  min-width: 0;
  margin: 0;
}
.cookie-note a {
  color: var(--bone);
  text-underline-offset: 3px;
}
.cookie-note button {
  flex: none;
  min-height: 40px;
  padding: .45rem .9rem;
  border: 2px solid var(--bone);
  background: none;
  color: var(--bone);
  font: 700 .9375rem/1 var(--text);
  font-stretch: 87.5%;
  cursor: pointer;
}
.cookie-note button:hover { background: var(--bone); color: #000; }
.cookie-note :focus-visible { outline-color: var(--bone); }

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

/* ---------- Fußzeile ---------- */

.footer {
  background: var(--van);
  color: rgba(242, 236, 220, .75);
  font-size: .9375rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 2rem;
  padding-block: 1.75rem;
}
.footer p { margin: 0; }
.footer ul {
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer a { text-underline-offset: 3px; }
.credit {
  flex-basis: 100%;
  color: rgba(242, 236, 220, .55);
  font-size: .8125rem;
}
.credit a { color: rgba(242, 236, 220, .8); }
.footer a:hover { color: var(--bone); }

/* ---------- Rechtstexte (Impressum, Datenschutz) ---------- */

.legal-head { padding-block: clamp(3rem, 7vw, 5rem) 0; }
.legal-head h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.75rem, 7vw, 5rem);
  line-height: .95;
}
.legal-head .van-side { margin-top: clamp(2rem, 4vw, 3rem); }

.legal { overflow-wrap: anywhere; }
.legal > * { max-width: 72ch; }
.legal h2 {
  margin: 3rem 0 .75rem;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  line-height: 1.05;
}
.legal h2:first-child { margin-top: 0; }
.legal h3 {
  margin: 2rem 0 .5rem;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}
.legal h4 {
  margin: 1.25rem 0 .35rem;
  font-size: 1.0625rem;
  font-weight: 700;
}
.legal p { margin: 0 0 1em; }
.legal ul { margin: 0 0 1em; padding-left: 1.25rem; }
.legal .legal-note {
  padding: 1rem 1.25rem;
  border-left: 6px solid var(--stripe);
  background: var(--manila);
  font-weight: 600;
}
