/* ============================================================
   Casca Minga — Base tokens
   ============================================================ */
:root {
  --cherry:      #B22222;
  --cherry-deep: #7E1710;
  --espresso:    #221610;
  --espresso-2:  #170E09;
  --cream:       #F6F0E6;
  --cream-2:     #EFE6D6;
  --amber:       #D89B3D;
  --amber-soft:  #E7BE7A;
  --forest:      #43512F;
  --sand:        #C9B896;

  --ink:         #221610;
  --ink-soft:    rgba(34, 22, 16, .66);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --maxw: 1200px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --slide-ms: 550ms;
}

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

html, body {
  height: 100%;
  overflow: hidden;                 /* deck controls navigation */
  overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--espresso);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }

/* Tastatur-Fokus deutlich sichtbar — auf hellen wie dunklen Slides (WCAG 2.4.7) */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(23, 14, 9, .55);
  border-radius: 4px;
}

/* Skip-Link: unsichtbar, bis er per Tab fokussiert wird (WCAG 2.4.1) */
.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 60;                        /* über der Nav (50) */
  transform: translateY(-250%);
  background: var(--espresso);
  color: var(--cream);
  border: 1px solid var(--amber);
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600; font-size: .92rem;
  text-decoration: none;
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }
/* Sprungziel <main>: programmatischer Fokus braucht keinen Ring */
.deck:focus { outline: none; }

/* ============================================================
   Deck & slides — one gesture = one slide
   ============================================================ */
.deck {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
}
/* slides are stacked and CROSSFADE — no slide-up movement between them */
.slide {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--slide-ms) var(--ease);
}
.slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed;
  top: 0; right: 0; left: 0; bottom: auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 56px);
  color: var(--cream);
  transition: color .5s var(--ease);
}
.nav.is-dark { color: var(--ink); }         /* over light slides */
/* legibility scrim behind the light nav (photo slides can have bright skies) */
.nav::before {
  content: "";
  position: absolute;
  top: 0; right: 0; left: 0; bottom: -38px;
  background: linear-gradient(to bottom, rgba(23,14,9,.55), rgba(23,14,9,.22) 60%, transparent);
  pointer-events: none;
  z-index: -1;
  opacity: 1;
  transition: opacity .5s var(--ease);
}
.nav.is-dark::before { opacity: 0; }
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.nav__mark { color: var(--amber); font-size: 1.1em; transform: translateY(-1px); }
.brandmark { width: 24px; height: 24px; display: inline-block; vertical-align: -5px; flex: 0 0 auto; }
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
}
.nav__links a {
  color: inherit;
  text-decoration: none;
  font-size: .92rem;
  font-weight: 500;
  opacity: .88;
  transition: opacity .25s var(--ease);
}
.nav__links a:hover { opacity: 1; }
.nav__cta {
  color: inherit;
  border: 1px solid currentColor;
  padding: 9px 18px;
  border-radius: 999px;
  text-decoration: none;
  opacity: 1 !important;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease) !important;
}
.nav__cta:hover { background: var(--amber); border-color: var(--amber); color: var(--espresso); }
/* logo emblem */
.nav__logo { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex: 0 0 auto; background: rgba(0,0,0,.12); }
.nav__logo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transform: scale(1.35); display: block; }

/* active section underline */
.nav__links a { position: relative; }
.nav__links a.is-current::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px;
  background: var(--amber); border-radius: 2px;
}

/* right cluster + language switch */
.nav__right { display: flex; align-items: center; gap: clamp(12px, 2vw, 22px); }
.lang { display: inline-flex; gap: 2px; border: 1px solid currentColor; border-radius: 999px; padding: 2px; }
.lang button, .lang a {
  font: inherit; font-size: .72rem; font-weight: 600; letter-spacing: .03em;
  color: inherit; background: none; border: 0; cursor: pointer; text-decoration: none;
  padding: 7px 10px; border-radius: 999px; line-height: 1; opacity: .8;   /* ≥24px Zielgröße (WCAG 2.5.8) */
  transition: opacity .2s var(--ease);
}
.lang button:hover, .lang a:hover { opacity: 1; }
.lang button.is-active, .lang a.is-active { background: var(--amber); color: var(--espresso); opacity: 1; }
.legal-page__right { display: flex; align-items: center; gap: clamp(14px, 3vw, 26px); }

/* Burger + mobiles Menü (sichtbar, sobald die Nav-Links wegfallen) */
.nav__burger { display: none; }
@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__burger {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 11px;   /* 44px Touch-Ziel */
    background: none; border: 1px solid currentColor; border-radius: 10px;
    color: inherit; cursor: pointer; flex: 0 0 auto;
  }
  .nav__burger span {
    display: block; height: 2px; width: 100%;
    background: currentColor; border-radius: 2px;
    transition: transform .25s var(--ease), opacity .25s var(--ease);
  }
  .nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 360px) { .nav__right .lang { display: none; } }   /* Sprachwahl steckt dann im Menü */

.mobile-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 49;                             /* unter der Nav (50), damit der Burger klickbar bleibt */
  background: rgba(23, 14, 9, .96);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 90px 24px 40px; text-align: center;
  overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
/* offenes Menü: Seite dahinter nicht mitscrollen (JS setzt .menu-open auf <html>) */
html.menu-open, html.menu-open body { overflow: hidden !important; }
.mobile-menu > a {
  color: var(--cream); text-decoration: none;
  font-family: var(--font-display); font-weight: 500; font-size: 1.45rem;
  padding: 10px 16px;
}
.mobile-menu > a:hover { color: var(--amber); }
.mobile-menu__langs { display: flex; gap: 8px; margin-top: 20px; }
.mobile-menu__langs a {
  color: var(--cream); text-decoration: none; font-size: .9rem; font-weight: 600;
  border: 1px solid rgba(246,240,230,.4); border-radius: 999px; padding: 9px 16px;
}
.mobile-menu__langs a:hover { border-color: var(--amber); color: var(--amber); }
.mobile-menu__langs a.is-active { background: var(--amber); border-color: var(--amber); color: var(--espresso); }
.mobile-menu__legal { display: flex; gap: 18px; margin-top: 14px; }
.mobile-menu__legal a { color: rgba(246,240,230,.65); text-decoration: none; font-size: .85rem; padding: 8px 4px; }
.mobile-menu__legal a:hover { color: var(--amber); }
@media (max-width: 560px) {
  .nav__name { display: none; }               /* keep logo + language switch + CTA */
  .nav__cta { padding: 8px 13px; font-size: .86rem; }
  .nav { padding-left: 18px; padding-right: 18px; }
}
/* narrow phones: everything must fit on one row without clipping */
@media (max-width: 430px) {
  .nav { padding-left: 14px; padding-right: 14px; }
  .nav__brand { gap: 6px; }
  .nav__logo { width: 34px; height: 34px; }
  .nav__right { gap: 8px; }
  .lang button, .lang a { padding: 6px 8px; }
  .nav__cta { padding: 7px 11px; font-size: .8rem; white-space: nowrap; }
}

/* ============================================================
   Pager dots
   ============================================================ */
.pager {
  position: fixed;
  right: clamp(14px, 2.4vw, 30px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pager__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid rgba(246,240,230,.55);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.pager__dot:hover { transform: scale(1.25); }
.pager__dot.is-active {
  background: var(--amber);
  border-color: var(--amber);
}
.pager.on-light .pager__dot { border-color: rgba(34,22,16,.4); }
.pager.on-light .pager__dot.is-active { background: var(--cherry); border-color: var(--cherry); }
@media (max-width: 720px) { .pager { display: none; } }

/* ============================================================
   Fixe Rechtliches-Links — im Deck auf jeder Slide erreichbar
   ============================================================ */
.legal-fixed {
  position: fixed;
  left: clamp(14px, 2vw, 24px);
  bottom: 14px;
  z-index: 50;
  display: flex;
  gap: 14px;
  font-size: .72rem;
  letter-spacing: .02em;
}
.legal-fixed a { color: rgba(246,240,230,.6); text-decoration: none; transition: color .25s var(--ease); }
.legal-fixed a:hover { color: var(--amber); }
.legal-fixed.on-light a { color: rgba(34,22,16,.55); }
.legal-fixed.on-light a:hover { color: var(--cherry); }
.legal-fixed[hidden] { display: none; }

/* ============================================================
   HERO slide
   ============================================================ */
.slide--hero { background: var(--espresso); }

.hero__stage { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.hero__img,
.hero__video {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: opacity, transform;
}
.hero__img--whole { opacity: 1; }
.hero__video      { opacity: 1; }   /* the resting hero IS the video paused on frame 0 */
.hero__img--burst { opacity: 0; transform: scale(1.04); }
.no-video .hero__video { display: none; }

.hero__scrim {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background:
    radial-gradient(120% 80% at 50% 8%, transparent 40%, rgba(23,14,9,.35) 100%),
    linear-gradient(to bottom, rgba(23,14,9,.42) 0%, transparent 26%, transparent 55%, rgba(23,14,9,.72) 100%);
  pointer-events: none;
}

/* --- text panels --- */
.hero__panel {
  position: absolute;
  left: 0; right: 0;
  padding: 0 clamp(22px, 6vw, 84px);
  max-width: 760px;
  will-change: opacity, transform;
  z-index: 2;
}
.hero__panel--intro  { bottom: clamp(84px, 12vh, 140px); color: var(--cream); }
.hero__panel--reveal {
  top: 50%;
  transform: translateY(calc(-50% + 22px));
  opacity: 0;
  color: var(--cream);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
/* reveal text appears only after the burst video reaches its final frame */
.slide--hero.reveal-on .hero__panel--reveal { opacity: 1; transform: translateY(-50%); }

.hero__eyebrow {
  font-size: .8rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--amber-soft); margin-bottom: 20px;
  /* badge backdrop — the label must stay legible over bright skies */
  display: inline-block;
  padding: 7px 14px;
  border-radius: 10px;
  background: rgba(23,14,9,.5);
  border: 1px solid rgba(231,190,122,.22);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 6.6vw, 5.4rem);
  line-height: .98;
  letter-spacing: -.015em;
  text-shadow: 0 2px 40px rgba(0,0,0,.35);
}
.hero__title em { font-style: italic; color: var(--amber); }
.hero__title--reveal { font-size: clamp(2.3rem, 5.4vw, 4.4rem); }

.hero__lead {
  margin-top: 22px;
  font-size: clamp(1.02rem, 1.5vw, 1.24rem);
  max-width: 46ch;
  color: rgba(246,240,230,.9);
  text-shadow: 0 1px 20px rgba(0,0,0,.4);
}
.hero__lead strong { color: var(--cream); font-weight: 600; }

.hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__actions--scroll { display: none; }   /* nur im Scroll-Modus (Handys) sichtbar */

/* --- buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: 999px;
  font-weight: 600; font-size: .98rem; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.btn--primary { background: var(--amber); color: var(--espresso); box-shadow: 0 10px 30px rgba(216,155,61,.35); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(216,155,61,.45); }
.btn--ghost { color: var(--cream); border: 1px solid rgba(246,240,230,.45); }
.btn--ghost:hover { background: rgba(246,240,230,.1); transform: translateY(-2px); }
.btn--dark { background: var(--espresso); color: var(--cream); margin-top: 34px; }
.btn--dark:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(34,22,16,.25); }

/* --- scroll hint --- */
.hero__hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: rgba(246,240,230,.75); font-size: .72rem; letter-spacing: .22em;
  text-transform: uppercase; z-index: 2; transition: opacity .4s var(--ease);
}
.hero__hint-line {
  width: 1px; height: 42px;
  background: linear-gradient(to bottom, rgba(246,240,230,.8), transparent);
  animation: hintPulse 2s var(--ease) infinite;
}
@keyframes hintPulse {
  0%   { transform: scaleY(.3); transform-origin: top; opacity: .3; }
  50%  { transform: scaleY(1);  transform-origin: top; opacity: 1; }
  100% { transform: scaleY(.3); transform-origin: bottom; opacity: .3; }
}

/* ============================================================
   Media slide (Trocknung / Ursprung)
   ============================================================ */
.slide--media { background: #0F0A07; color: var(--cream); }

.media__stage { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.media__poster,
.media__video {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;   /* keep the subject (right of center) visible when narrow windows crop */
}
.media__video {
  opacity: 0;              /* toggled instantly by JS; slide-level crossfade handles smoothness */
  will-change: opacity;
}
.no-video .media__video { display: none; }

.media__scrim {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(15,10,7,.92) 0%, rgba(15,10,7,.7) 34%, rgba(15,10,7,.3) 58%, rgba(15,10,7,.06) 80%, transparent 94%),
    linear-gradient(0deg, rgba(15,10,7,.55) 0%, transparent 42%);
}

.media__content {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  max-width: 700px;               /* incl. side padding — titles must not wrap mid-phrase */
  padding: 0 clamp(22px, 6vw, 84px);
}
.media__eyebrow {
  font-size: .8rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--amber-soft); margin-bottom: 18px;
  display: inline-block;
  padding: 7px 14px;
  border-radius: 10px;
  background: rgba(23,14,9,.5);
  border: 1px solid rgba(231,190,122,.22);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.media__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.0;
  letter-spacing: -.015em;
  text-shadow: 0 2px 40px rgba(0,0,0,.45);
}
.media__lead {
  margin-top: 22px;
  font-size: clamp(1.0rem, 1.4vw, 1.18rem);
  max-width: 46ch;
  color: rgba(246,240,230,.9);
  text-shadow: 0 1px 20px rgba(0,0,0,.5);
}
.media__points {
  list-style: none;
  margin-top: 28px;
  display: grid;
  gap: 14px;
  max-width: 48ch;
}
.media__points li {
  position: relative;
  padding-left: 28px;
  font-size: clamp(.96rem, 1.2vw, 1.06rem);
  color: rgba(246,240,230,.86);
  text-shadow: 0 1px 16px rgba(0,0,0,.5);
}
.media__points li::before {
  content: "◗";
  position: absolute;
  left: 0; top: 0;
  color: var(--amber);
}
.media__points strong { color: var(--cream); font-weight: 600; }

/* staggered entrance — starts only AFTER the slide crossfade (~550ms) has landed */
.media__content > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: 0s;
}
.slide.is-active .media__content > * { opacity: 1; transform: none; }
.slide.is-active .media__content > :nth-child(1) { transition-delay: .55s; }
.slide.is-active .media__content > :nth-child(2) { transition-delay: .66s; }
.slide.is-active .media__content > :nth-child(3) { transition-delay: .77s; }
.slide.is-active .media__content > :nth-child(4) { transition-delay: .88s; }

/* ============================================================
   Panel slides (Lieferkette, Warum, Team)
   ============================================================ */
.slide--panel {
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(216,155,61,.10), transparent 60%),
    var(--cream);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.slide--panel-dark {
  background:
    radial-gradient(90% 70% at 0% 100%, rgba(178,34,34,.16), transparent 62%),
    var(--espresso);
  color: var(--cream);
}
.panel {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 clamp(22px, 6vw, 84px);
}
.panel__kicker {
  font-size: .8rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--cherry); margin-bottom: 16px;
}
.panel__kicker--light { color: var(--amber-soft); }
.panel__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.04; letter-spacing: -.015em;
}
.panel__lead {
  margin-top: 18px; max-width: 62ch;
  font-size: clamp(1rem, 1.3vw, 1.15rem); color: var(--ink-soft);
}
.panel__lead--light { color: rgba(246,240,230,.82); }
.panel__note { margin-top: 28px; font-size: .92rem; color: var(--ink-soft); }

/* cards */
.cards { display: grid; gap: 16px; margin-top: 38px; }
.cards--4 { grid-template-columns: repeat(2, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(34,22,16,.12);
  border-radius: 16px;
  padding: 22px;
}
.card h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.18rem; margin-bottom: 8px;
}
.card p { font-size: .95rem; color: var(--ink-soft); }
.card--dark {
  background: rgba(246,240,230,.05);
  border-color: rgba(246,240,230,.14);
}
.card--dark h3 { color: var(--cream); }
.card--dark p { color: rgba(246,240,230,.72); }
.card__num {
  display: block; font-family: var(--font-display);
  font-size: 1.05rem; color: var(--amber); margin-bottom: 10px;
}

/* team */
.team {
  margin-top: 34px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
}
.member__photo {
  width: 100%;
  height: clamp(190px, 26vh, 250px);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
  background: rgba(34,22,16,.08);
}
.member__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.member__name { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; }
.member__role { color: var(--cherry); font-weight: 600; font-size: .9rem; margin: 4px 0 12px; }
.member__bio { color: var(--ink-soft); font-size: .98rem; }

/* ============================================================
   Feature panels (Lieferkette / Spezifikation / Vorsprung)
   cinematic dark bg image + frosted-glass cards
   ============================================================ */
.slide--feature { color: var(--cream); background: var(--espresso); }
.feature__bg {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.04); filter: saturate(1.05);
}
.feature__scrim {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1;
  background:
    linear-gradient(100deg, rgba(15,10,7,.92) 0%, rgba(15,10,7,.74) 48%, rgba(15,10,7,.5) 100%),
    linear-gradient(0deg, rgba(15,10,7,.55), transparent 60%);
}
.slide--feature .panel { position: relative; z-index: 2; }

.card--glass {
  background: rgba(18,12,8,.42);
  border: 1px solid rgba(246,240,230,.16);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 12px 34px rgba(0,0,0,.28);
}
.card--glass h3 { color: var(--cream); }
.card--glass p { color: rgba(246,240,230,.78); }
.card--glass .card__num { color: var(--amber); }
.card__ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 11px;
  background: rgba(216,155,61,.16); color: var(--amber); margin-bottom: 14px;
}
.card__ic svg { width: 22px; height: 22px; }

/* facts + chips on feature (dark) slides */
.slide--feature .fact {
  background: rgba(18,12,8,.42);
  border-color: rgba(246,240,230,.16);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.slide--feature .fact__value { color: var(--cream); }
.slide--feature .fact__label { color: rgba(246,240,230,.72); }
.slide--feature .chips li {
  color: var(--cream); background: rgba(216,155,61,.2); border-color: rgba(216,155,61,.55);
}

/* FAQ (native details/summary) */
.faq { margin-top: 30px; max-width: 820px; }
/* im Deck zweispaltig — 9 Fragen + offene Antwort passen sonst nicht in flache Fenster */
@media (min-width: 901px) and (min-height: 561px) {
  .faq {
    max-width: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 48px;
    align-items: start;
  }
}
.faq__item { border-bottom: 1px solid rgba(34,22,16,.14); }
.faq__item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 2px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; color: var(--cherry); font-size: 1.4rem; font-weight: 400;
  transition: transform .25s var(--ease); line-height: 1;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { color: var(--ink-soft); font-size: .98rem; padding: 0 2px 18px; max-width: 68ch; }

/* facts + chips (Spezifikation slide) */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 34px; }
.fact {
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(34,22,16,.12);
  border-radius: 14px;
  padding: 18px 20px;
}
.fact__value { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; letter-spacing: -.01em; }
.fact__label { display: block; margin-top: 4px; font-size: .85rem; color: var(--ink-soft); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chips li {
  font-size: .82rem; font-weight: 600; color: var(--espresso);
  background: rgba(216,155,61,.18); border: 1px solid rgba(216,155,61,.5);
  padding: 7px 14px; border-radius: 999px;
}
.panel__cta { margin-top: 28px; }
.panel__cta-link {
  display: inline-block;
  margin: 16px 0 0 18px;
  color: var(--amber-soft);
  font-size: .92rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.panel__cta-link:hover { color: var(--amber); }
@media (max-width: 820px) { .facts { grid-template-columns: 1fr; } }

/* contact line */
.contact-line { margin-top: 26px; font-size: .95rem; color: var(--ink-soft); }
.contact-line a { color: var(--cherry); text-decoration: none; }
.contact-line a:hover { text-decoration: underline; }

/* panel entrance (staggered) — begins after the slide crossfade has landed */
.slide--panel .panel > * {
  opacity: 0; transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: 0s;
}
.slide--panel.is-active .panel > * { opacity: 1; transform: none; transition-delay: .55s; }
.slide--panel.is-active .panel > :nth-child(2) { transition-delay: .63s; }
.slide--panel.is-active .panel > :nth-child(3) { transition-delay: .71s; }
.slide--panel.is-active .panel > :nth-child(4) { transition-delay: .79s; }
.slide--panel.is-active .panel > :nth-child(5) { transition-delay: .87s; }

@media (max-width: 820px) {
  .cards--4, .cards--3 { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr; gap: 20px; }
}

/* ============================================================
   Contact slide + form + footer + legal overlay
   ============================================================ */
.slide--contact {
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(216,155,61,.10), transparent 60%),
    var(--cream);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 clamp(22px, 6vw, 84px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}
.contact__meta { list-style: none; margin-top: 26px; display: grid; gap: 14px; }
.contact__meta li { display: flex; flex-direction: column; font-size: 1rem; }
.contact__meta span {
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 3px;
}
.contact__meta a { color: var(--cherry); text-decoration: none; }
.contact__meta a:hover { text-decoration: underline; }

.contact__form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .82rem; font-weight: 600; letter-spacing: .04em; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  font-family: inherit; font-size: 1rem; color: var(--ink);
  background: rgba(255,255,255,.6);
  border: 1px solid rgba(34,22,16,.18);
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.field select:focus { border-color: var(--amber); background: #fff; outline: none; }
.field input:focus, .field textarea:focus { border-color: var(--amber); background: #fff; }
/* Pflichtfelder markieren (Browser ohne :has zeigen schlicht kein Sternchen) */
.field:has(input:required) label::after,
.field:has(textarea:required) label::after { content: " *"; color: var(--cherry); }
/* Feldfehler nach fehlgeschlagener Prüfung */
.field input.is-error, .field textarea.is-error {
  border-color: var(--cherry);
  background: rgba(178, 34, 34, .06);
}
.field textarea { resize: vertical; min-height: 70px; }
.field-check { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; color: var(--ink-soft); line-height: 1.5; }
.field-check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--cherry); flex: 0 0 auto; }
.field-check a { color: var(--cherry); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact__form .btn { margin-top: 4px; justify-self: start; }
.contact__hint { font-size: .82rem; color: var(--ink-soft); margin-top: 2px; }
.contact__hint.is-error { color: var(--cherry); }
.contact__hint.is-ok { color: var(--forest); font-weight: 600; font-size: .95rem; }

.footer {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 14px clamp(22px, 5vw, 56px);
  background: var(--espresso); color: rgba(246,240,230,.7);
  font-size: .82rem;
}
.footer__links { display: flex; gap: 18px; }
.footer__links a { color: rgba(246,240,230,.82); text-decoration: none; cursor: pointer; }
.footer__links a:hover { color: var(--amber); }

@media (max-width: 820px) {
  .contact { grid-template-columns: 1fr; gap: 22px; }
  .footer { justify-content: center; text-align: center; }
}

/* legal overlay */
.legal {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: rgba(23,14,9,.62);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  padding: 20px;
}
.legal[hidden] { display: none; }
.legal__box {
  background: var(--cream); color: var(--ink);
  max-width: 640px; width: 100%; max-height: 82vh; overflow-y: auto;
  border-radius: 18px; padding: clamp(24px, 4vw, 40px); position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
}
.legal__close {
  position: absolute; top: 12px; right: 16px;
  background: none; border: none; font-size: 1.9rem; line-height: 1;
  color: var(--ink-soft); cursor: pointer;
}
.legal__close:hover { color: var(--ink); }
.legal__title { font-family: var(--font-display); font-weight: 600; font-size: 1.7rem; margin-bottom: 14px; }
.legal__body { font-size: .95rem; color: var(--ink-soft); line-height: 1.7; }
.legal__body h3 { color: var(--ink); font-size: 1rem; margin: 16px 0 4px; }
.legal__body a { color: var(--cherry); }

/* ============================================================
   Content slide (positioning strip + placeholder)
   ============================================================ */
.slide--content {
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(216,155,61,.12), transparent 60%),
    var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--ink);
}
.strip {
  position: absolute;
  bottom: 0; left: 0; right: 0;   /* at the bottom so it never collides with the nav */
  background: var(--espresso);
  color: var(--cream);
  padding: 18px 0;
  overflow: hidden;
}
.strip__inner {
  display: inline-flex; align-items: center; gap: 26px;
  white-space: nowrap; padding-left: 26px;
  animation: marquee 34s linear infinite;
  font-size: .95rem; letter-spacing: .02em;
}
.strip__inner span { opacity: .9; }
.strip__inner i { color: var(--amber); font-style: normal; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.next__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 0 clamp(22px, 6vw, 84px);
}
.next__kicker {
  font-size: .8rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--cherry); margin-bottom: 18px;
}
.next__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.1; letter-spacing: -.01em;
}
.next__text { margin-top: 20px; color: var(--ink-soft); font-size: 1.08rem; }

/* ============================================================
   Legal pages (impressum.html / datenschutz.html)
   ============================================================ */
.legal-page {
  height: auto;
  overflow: visible;
  background: var(--cream);
  color: var(--ink);
}
.legal-page__nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(20px, 5vw, 56px);
  background: rgba(23,14,9,.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--cream);
}
.legal-page__nav .nav__brand { color: var(--cream); }
.legal-page__back { color: rgba(246,240,230,.85); text-decoration: none; font-size: .92rem; font-weight: 500; }
.legal-page__back:hover { color: var(--amber); }
@media (max-width: 560px) {
  .legal-page__nav .nav__brand { font-size: 1rem; }
  .legal-page__nav .nav__logo { width: 30px; height: 30px; }
  .legal-page__right { gap: 10px; }
  .legal-page__back { font-size: .8rem; }
}
.legal-page__main {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 8vh, 90px) clamp(22px, 6vw, 40px) 90px;
}
.legal-page__main h1 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.015em; margin-bottom: 8px;
}
.legal-page__main h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.25rem; margin: 30px 0 8px;
}
.legal-page__main h3 {
  font-weight: 600; font-size: 1rem; margin: 20px 0 4px; color: var(--ink);
}
.legal-page__main p {
  color: var(--ink-soft); font-size: .96rem; line-height: 1.7; margin-bottom: 8px;
}
.legal-page__main a { color: var(--cherry); word-break: break-word; }
.legal-page__foot {
  margin-top: 44px; padding-top: 20px;
  border-top: 1px solid rgba(34,22,16,.14);
  font-size: .88rem;
}

/* ============================================================
   SCROLL MODE: the deck becomes a normal scrolling page
   — slides stack, content flows, nothing gets clipped.
   Applies when the viewport is too NARROW (phones/tablets) OR
   too SHORT (landscape phones, half-height desktop windows).
   Must stay in sync with deckMQ in script.js.
   ============================================================ */
@media (max-width: 900px), (max-height: 560px) {
  html, body {
    height: auto; overflow-x: hidden; overflow-y: auto;
    overscroll-behavior: auto;           /* natural scrolling; 'none' breaks some Android browsers */
  }
  /* gentle snapping — 'mandatory' fights tall sections and is jumpy on Android/Firefox */
  html { scroll-snap-type: y proximity; scroll-padding-top: 64px; }
  .deck { position: static; transform: none !important; }
  .pager { display: none; }              /* deck dots make no sense on a scrolling page */
  .legal-fixed { display: none; }        /* footer at page end covers legal links */
  .hero__actions--scroll { display: flex; margin-top: 26px; gap: 12px; }

  /* solid nav bar so it stays legible over any section while scrolling */
  .nav, .nav.is-dark {
    background: rgba(23, 14, 9, .93);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    color: var(--cream);
    padding-top: 12px; padding-bottom: 12px;
  }

  .slide {
    position: relative;
    height: auto;
    min-height: 100vh;      /* fallback for browsers without svh (old Android WebView / Safari <15.4) */
    min-height: 100svh;
    opacity: 1 !important;
    pointer-events: auto;
    overflow: visible;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 88px 0 64px;
    scroll-snap-align: start;
  }

  /* ---------- MEDIA slides: END IMAGE on top, text below on solid bg ---------- */
  .slide--media {
    background: var(--espresso); color: var(--cream);
    display: block;                       /* block flow → image block then text block, no overlap */
  }
  .slide--media .media__stage {
    position: relative; top: auto; right: auto; bottom: auto; left: auto; height: auto;
    margin: 0 clamp(16px, 5vw, 22px);
    border-radius: 18px; overflow: hidden;
  }
  .slide--media .media__video, .slide--media .media__scrim { display: none; }   /* end images only */
  .slide--media .media__poster {           /* static block image defines the block height */
    position: static; top: auto; right: auto; bottom: auto; left: auto;
    width: 100%; height: 34vh; min-height: 220px; max-height: 300px;
    object-fit: cover; display: block;
  }
  .slide--media .media__content {
    position: relative; top: auto; bottom: auto; left: auto; right: auto; transform: none;
    max-width: none; padding: 26px clamp(16px, 5vw, 22px) 0;
  }
  .media__eyebrow, .media__title, .media__lead, .media__points li { text-shadow: none; }
  .media__content > * { opacity: 1 !important; transform: none !important; transition: none; }
  .media__content { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .slide.in-view .media__content { opacity: 1; transform: none; }

  /* ---------- HERO: wie die Media-Slides — Bild als eigener Block, Text
     darunter auf festem, dunklem Grund. Kein Text mehr ÜBER dem Foto,
     damit ist die Lesbarkeit unabhängig vom Bildinhalt (WCAG 1.4.3). ---------- */
  .slide--hero { display: block; background: var(--espresso); color: var(--cream); }
  .slide--hero .hero__video,
  .slide--hero .hero__img--burst,
  .slide--hero .hero__panel--reveal,
  .slide--hero .hero__scrim { display: none; }
  /* Scroll-Hinweis entfällt: er kollidiert mit den CTAs, und die Seite scrollt ohnehin nativ */
  .hero__hint { display: none; }
  .slide--hero .hero__stage {
    position: relative; top: auto; right: auto; bottom: auto; left: auto;
    margin: 0 clamp(16px, 5vw, 22px);
    border-radius: 18px; overflow: hidden;
  }
  .slide--hero .hero__img--whole {
    position: static;
    width: 100%; height: 34vh; min-height: 220px; max-height: 300px;
    object-fit: cover; object-position: 60% 40%;   /* Kirsche im Ausschnitt halten */
  }
  .hero__panel--intro {
    position: relative; bottom: auto; left: auto; right: auto;
    max-width: none;
    padding: 26px clamp(16px, 5vw, 22px) 0;
  }
  .hero__title, .hero__lead { text-shadow: none; }

  /* Eyebrow-Badge kompakter — sonst bricht es dreizeilig und dominiert den Einstieg */
  .hero__eyebrow, .media__eyebrow {
    font-size: .68rem; letter-spacing: .12em; padding: 6px 11px; border-radius: 8px;
  }
  /* Panel-Kicker (Lieferkette bis Kontakt) bekommen mobil dieselben Badge-Chips
     wie die vorderen Sektionen — einheitliche Überschriften-Optik auf der ganzen Seite */
  .panel__kicker {
    display: inline-block;
    font-size: .68rem; letter-spacing: .12em;
    padding: 6px 11px; border-radius: 8px;
    background: rgba(178,34,34,.08);
    border: 1px solid rgba(178,34,34,.3);
  }
  .panel__kicker--light {
    background: rgba(23,14,9,.6);
    border-color: rgba(231,190,122,.22);
  }
  /* iOS-Safari rendert backdrop-filter unter animierten Eltern nur teilweise
     ("halbe Rahmen" hinter der Schrift) — mobil deshalb ohne Blur, dafür
     mit deckenderem Hintergrund. */
  .hero__eyebrow, .media__eyebrow, .card--glass, .slide--feature .fact {
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .card--glass, .slide--feature .fact { background: rgba(18,12,8,.78); }
  /* Touch-Ziel der Einwilligungs-Checkbox */
  .field-check input { width: 20px; height: 20px; margin-top: 1px; }

  /* ---------- PANEL / FEATURE slides (Lieferkette / Spez / Vorteil / Team / FAQ) ---------- */
  .slide--panel .panel, .slide--contact .contact {
    position: relative; top: auto; left: auto; right: auto; transform: none;
  }
  .slide--panel .panel > * { opacity: 1 !important; transform: none !important; transition: none; }
  .slide--panel .panel { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .slide.in-view .panel { opacity: 1; transform: none; }
  .feature__scrim {
    background: linear-gradient(180deg, rgba(15,10,7,.9) 0%, rgba(15,10,7,.72) 50%, rgba(15,10,7,.88) 100%);
  }
  .cards { gap: 12px; }
  .card { padding: 18px; }

  /* contact footer at the very bottom */
  .footer { position: relative; }
  .slide--contact { padding-bottom: 0; }
}

/* ============================================================
   COMPACT DECK: wide but short windows (e.g. laptop with docked
   taskbar, non-maximized window). Type & spacing shrink so every
   slide fits the viewport — nothing gets clipped.
   ============================================================ */
@media (min-width: 901px) and (min-height: 561px) and (max-height: 780px) {
  .hero__hint { display: none; }
  .hero__panel--intro { bottom: 48px; }
  .hero__eyebrow, .media__eyebrow { margin-bottom: 10px; }
  .hero__title { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
  .hero__title--reveal { font-size: clamp(1.9rem, 4vw, 3rem); }
  .hero__lead, .media__lead, .panel__lead { margin-top: 12px; font-size: 1rem; }
  .hero__actions { margin-top: 18px; }
  .btn { padding: 11px 22px; }
  .media__title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
  .media__points { margin-top: 16px; gap: 10px; }
  .media__points li { font-size: .94rem; }
  .panel__title { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
  .panel__kicker { margin-bottom: 10px; }
  .cards { margin-top: 20px; gap: 12px; }
  .card { padding: 14px 16px; }
  .card__ic { width: 34px; height: 34px; margin-bottom: 8px; }
  .card h3 { font-size: 1.05rem; }
  .card p { font-size: .88rem; }
  .card__num { margin-bottom: 6px; }
  .facts { margin-top: 18px; gap: 10px; }
  .fact { padding: 10px 14px; }
  .fact__value { font-size: 1.15rem; }
  .chips { margin-top: 14px; }
  .panel__cta { margin-top: 16px; }
  .team { margin-top: 18px; gap: 24px; }
  .member__photo { height: clamp(120px, 20vh, 200px); margin-bottom: 10px; }
  .member__name { font-size: 1.15rem; }
  .member__bio { font-size: .88rem; }
  .panel__note { margin-top: 14px; }
  .faq { margin-top: 16px; }
  .faq__item summary { padding: 10px 2px; font-size: 1rem; }
  .faq__item p { font-size: .9rem; padding-bottom: 12px; }
  .contact { gap: 24px; }
  .contact__form { gap: 8px; }
  .field { gap: 4px; }
  .field label { font-size: .74rem; }
  .field input, .field textarea, .field select { padding: 8px 12px; font-size: .94rem; }
  .field textarea { min-height: 40px; }
  .field-check { font-size: .78rem; }
  .contact__form .btn { padding: 10px 22px; }
  .contact__hint { font-size: .76rem; }
  .contact__meta { margin-top: 14px; gap: 8px; }
  .contact__meta li { font-size: .92rem; }
  .footer { padding-top: 10px; padding-bottom: 10px; }
}

/* very short screens (landscape phones) — scroll layout with tightened hero */
@media (max-height: 560px) {
  .hero__title { font-size: clamp(1.9rem, 5.4vw, 2.8rem); }
  .hero__hint { display: none; }
  .hero__panel--intro { bottom: 40px; }
}

/* very small phones — smaller hero type, no hint colliding with the lead */
@media (max-width: 380px) {
  .hero__title { font-size: 2.1rem; }
  .hero__lead { font-size: .95rem; }
  .hero__hint { display: none; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .deck { transition: none; }
  .strip__inner, .hero__hint-line { animation: none; }
  /* auch Crossfade + Entrance-Animationen deaktivieren */
  .slide,
  .media__content, .media__content > *,
  .slide--panel .panel, .slide--panel .panel > * {
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
}
