/* ============================================================
   bohnenfinder.de — Landingpage Styles
   Direkt aus bohnenfinder-brand-guideline.md (warme Kaffee-Direction)
   ============================================================ */

:root {
  /* Surfaces */
  --surface-oat: #F7F1E6;
  --surface-paper: #FBF7EE;
  --surface-linen: #EFE6D4;
  --surface-parchment: #E7DAC2;
  --surface-sand: #D9C6A6;

  /* Röstbraun */
  --roast-espresso: #2A1810;
  --roast-dark: #3E2418;
  --roast-medium: #5A3624;
  --roast-walnut: #7A4E36;
  --roast-cocoa: #9A6B4E;

  /* Akzente */
  --accent-copper: #B96A3C;
  --accent-copper-soft: #CC8358;
  --accent-caramel: #C68A4E;
  --accent-honey: #D9A86A;
  --accent-crema: #E8D5B7;

  /* Text */
  --text-primary: #2A1810;
  --text-secondary: #5A3624;
  --text-muted: #7A4E36;
  --text-on-copper: #FBF7EE;
  --text-on-roast: #F7F1E6;

  /* Signale */
  --signal-success: #6F8B5A;
  --signal-warning: #C89968;
  --signal-error: #B5573E;
  --signal-info: #8A7B5E;

  /* Bewegung */
  --ease-organic: cubic-bezier(0.32, 0.72, 0.24, 1);
  --dur-micro: 220ms;
  --dur-layout: 500ms;

  /* Radius */
  --radius-button: 10px;
  --radius-card: 16px;
  --radius-hero: 24px;

  /* Material-Schatten */
  --shadow-paper-1: 0 1px 2px rgba(42,24,16,0.04), 0 4px 12px -6px rgba(42,24,16,0.08);
  --shadow-paper-2: 0 2px 4px rgba(42,24,16,0.06), 0 12px 24px -10px rgba(42,24,16,0.12);
  --shadow-ceramic-3:
    0 4px 8px rgba(42,24,16,0.08),
    0 24px 48px -16px rgba(42,24,16,0.18),
    0 0 64px -20px rgba(232,213,183,0.6);

  /* Borders */
  --border-paper: 1px solid rgba(122,78,54,0.08);
  --border-paper-strong: 1px solid rgba(122,78,54,0.12);
  --border-ceramic: 1px solid rgba(185,106,60,0.20);

  /* Fonts */
  --f-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --f-sans:  'Inter Tight', system-ui, -apple-system, Segoe UI, sans-serif;
  --f-mono:  'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur-micro: 80ms; --dur-layout: 80ms; }
  * { animation-duration: 80ms !important; transition-duration: 80ms !important; }
}

/* ---------- Reset + Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--surface-oat);
  color: var(--text-primary);
  scroll-behavior: smooth;
}

body {
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--surface-oat);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Papier-Noise als SVG-Background-Utility */
.texture-paper,
body {
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='4'/><feColorMatrix values='0 0 0 0 0.165   0 0 0 0 0.094   0 0 0 0 0.063   0 0 0 0.045 0'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, .btn { font-family: inherit; cursor: pointer; border: 0; background: none; }

/* ---------- Typografie ---------- */
.display,
.h1 {
  font-family: var(--f-serif);
  font-weight: 300;
  letter-spacing: -0.015em;
  line-height: 1.05;
  font-variation-settings: "opsz" 144;
  color: var(--text-primary);
}
.display { font-size: clamp(40px, 6.8vw, 80px); }
.h1      { font-size: clamp(32px, 4.6vw, 56px); font-weight: 400; line-height: 1.1; }

h2.h1 em, .display em, h2 em, h3 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-copper);
}

.eyebrow {
  display: inline-block;
  font-family: var(--f-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--roast-walnut);
  line-height: 1.3;
}
.eyebrow.walnut { color: var(--roast-walnut); }
.eyebrow.on-dark { color: var(--accent-crema); }

.lede {
  font-family: var(--f-sans);
  font-size: clamp(17px, 1.25vw, 19px);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 56ch;
}

.caption {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-muted);
}

.label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--roast-walnut);
  margin-bottom: 12px;
}

.mono {
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  letter-spacing: 0;
}

.on-dark { color: var(--text-on-roast); }
.on-dark.lede { color: rgba(247,241,230,0.85); }

em.bean { font-style: italic; }
.dim { opacity: 0.55; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 0 24px;
  height: 48px;
  border-radius: var(--radius-button);
  transition:
    background var(--dur-micro) var(--ease-organic),
    border-color var(--dur-micro) var(--ease-organic),
    box-shadow var(--dur-micro) var(--ease-organic),
    transform var(--dur-micro) var(--ease-organic);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent-copper);
  color: var(--text-on-copper);
  box-shadow: 0 1px 2px rgba(42,24,16,0.10);
}
.btn-primary:hover {
  background: var(--accent-copper-soft);
  box-shadow: 0 4px 12px -2px rgba(185,106,60,0.35);
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--surface-paper);
  color: var(--roast-espresso);
  border: 1px solid rgba(185,106,60,0.30);
}
.btn-secondary:hover {
  background: var(--surface-parchment);
  border-color: rgba(185,106,60,0.50);
}
.btn-ghost {
  background: transparent;
  color: var(--accent-copper);
  padding: 0 16px;
}
.btn-ghost:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 54px; padding: 0 32px; font-size: 16px; }
.btn-xl { height: 60px; padding: 0 40px; font-size: 17px; border-radius: 12px; }

/* ---------- Material-Layer ---------- */
.paper-1 {
  background: var(--surface-paper);
  border: var(--border-paper);
  box-shadow: var(--shadow-paper-1);
}
.paper-2 {
  background: var(--surface-parchment);
  border: var(--border-paper-strong);
  box-shadow: var(--shadow-paper-2);
}
.ceramic-3 {
  position: relative;
  background: var(--surface-paper);
  border: var(--border-ceramic);
  box-shadow: var(--shadow-ceramic-3);
}
.ceramic-3::before {
  content: "";
  position: absolute;
  inset: -40px;
  z-index: -1;
  background: radial-gradient(closest-side,
              rgba(232,213,183,0.55),
              rgba(232,213,183,0) 70%);
  pointer-events: none;
  animation: crema-aura 10s ease-in-out infinite;
}
@keyframes crema-aura {
  0%, 100% { opacity: 0.85; }
  50%      { opacity: 1; }
}
.leinen {
  background-image:
    repeating-linear-gradient(45deg,
      rgba(122,78,54,0.04) 0 1px, transparent 1px 6px),
    repeating-linear-gradient(-45deg,
      rgba(122,78,54,0.03) 0 1px, transparent 1px 6px);
  background-color: var(--surface-paper);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 48px);
  background: rgba(247,241,230,0.78);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(122,78,54,0.08);
}
.wordmark {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  font-variation-settings: "opsz" 144;
}
.wordmark .beta {
  margin-left: 8px;
  font-family: var(--f-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--roast-walnut);
  vertical-align: middle;
}
.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--dur-micro) var(--ease-organic);
}
.nav-links a:hover { color: var(--accent-copper); }

@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ============================================================
   SCRUB-SECTION (sticky stage for canvas frame sequence)
   ============================================================ */
.scrub-section {
  position: relative;
  height: 420vh; /* tall stage */
  background: var(--surface-oat);
}
.scrub-section .sticky-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
.scrub-section canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* ============================================================
   SECTION 1 — HERO
   ============================================================ */
#hero { background: var(--surface-oat); }

.hero-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(247,241,230,0.40) 0%,
      rgba(247,241,230,0.05) 28%,
      rgba(247,241,230,0.10) 55%,
      rgba(247,241,230,0.85) 100%),
    radial-gradient(60% 60% at 80% 25%,
      rgba(247,241,230,0.0),
      rgba(247,241,230,0.0) 60%,
      rgba(42,24,16,0.18) 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(96px, 12vh, 140px) clamp(24px, 7vw, 96px) clamp(96px, 14vh, 140px);
  gap: 22px;
  z-index: 2;
}
.hero-overlay .eyebrow {
  color: var(--accent-copper);
  letter-spacing: 0.18em;
}
.hero-overlay .display {
  max-width: 18ch;
}
.hero-overlay .display em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 300;
  color: var(--accent-copper);
}
.hero-overlay .lede {
  color: var(--text-primary);
  max-width: 52ch;
}
.hero-cta {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

.scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--roast-walnut);
  font-size: 11px;
  letter-spacing: 0.18em;
  transition: opacity var(--dur-micro) var(--ease-organic);
  z-index: 3;
}
.scroll-hint .hint-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, var(--roast-walnut), transparent);
  animation: hint-pulse 2.4s ease-in-out infinite;
}
@keyframes hint-pulse {
  0%   { transform: translateY(-6px); opacity: 0.3; }
  50%  { transform: translateY(0);    opacity: 1; }
  100% { transform: translateY(6px);  opacity: 0.3; }
}

/* ============================================================
   SECTION 2 — FINDER
   ============================================================ */
.finder-section {
  position: relative;
  height: 360vh;
  background: var(--surface-oat);
}
.finder-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
.finder-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(0.95);
}
.finder-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(95deg,
      rgba(247,241,230,0.96) 0%,
      rgba(247,241,230,0.82) 32%,
      rgba(247,241,230,0.40) 56%,
      rgba(247,241,230,0.10) 100%),
    radial-gradient(80% 60% at 0% 50%,
      rgba(247,241,230,0.55),
      rgba(247,241,230,0) 70%);
}

.finder-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: clamp(96px, 14vh, 140px) clamp(24px, 6vw, 96px);
  align-items: center;
  z-index: 2;
}

.finder-text { max-width: 480px; }
.finder-text .eyebrow { margin-bottom: 18px; }
.finder-text h2.h1 { margin-bottom: 36px; }

.finder-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.finder-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: flex-start;
  padding-top: 18px;
  border-top: 1px solid rgba(122,78,54,0.18);
}
.finder-steps li .mono {
  color: var(--accent-copper);
  font-size: 14px;
  font-weight: 400;
  padding-top: 2px;
}
.finder-steps li strong {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: 18px;
  color: var(--text-primary);
}
.finder-steps li div {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* Karten-Container rechts */
.finder-cards {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-slot {
  position: absolute;
  width: min(360px, 100%);
  top: 50%;
  left: 50%;
}
.card-slot-1 { transform: translate(-62%, -72%) rotate(-3.5deg); z-index: 1; }
.card-slot-2 { transform: translate(-42%, -38%) rotate(2deg);    z-index: 2; }
.card-slot-3 { transform: translate(-22%, -4%)  rotate(-1.5deg); z-index: 3; }
.card-slot .beancard {
  will-change: transform, opacity;
  width: 100%;
}

/* ---------- BeanCard ---------- */
.beancard {
  padding: 26px 26px 22px;
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: var(--f-sans);
}
.bean-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.bean-score {
  color: var(--roast-walnut);
}
.bean-name {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-top: 4px;
  font-variation-settings: "opsz" 36;
}
.bean-name em {
  font-style: italic;
  color: var(--text-primary);
}
.bean-roastery {
  font-size: 14px;
  color: var(--roast-walnut);
}
.divider {
  height: 1px;
  background: var(--surface-sand);
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pill {
  display: inline-block;
  padding: 5px 11px;
  background: var(--accent-crema);
  color: var(--roast-dark);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.bean-quote {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--text-secondary);
  font-variation-settings: "opsz" 24;
}
.bean-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}
.bean-price {
  font-size: 15px;
  color: var(--text-primary);
}
.affiliate-note {
  display: block;
  margin-top: 8px;
  font-family: var(--f-sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--roast-walnut);
  text-align: right;
  opacity: 0.85;
}

/* ============================================================
   SECTION 3 — TASTE
   ============================================================ */
.taste-section {
  position: relative;
  padding: clamp(96px, 14vh, 160px) clamp(24px, 6vw, 96px);
  background: var(--surface-linen);
  border-top: 1px solid rgba(122,78,54,0.06);
  border-bottom: 1px solid rgba(122,78,54,0.06);
}
.taste-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}
.taste-text .eyebrow { margin-bottom: 18px; }
.taste-text h2.h1 { margin-bottom: 28px; }
.taste-text .lede { margin-bottom: 40px; }

.taste-notes {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 28px;
}
.taste-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: flex-start;
  padding-top: 16px;
  border-top: 1px solid rgba(122,78,54,0.18);
}
.taste-note .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  margin-top: 9px;
  background: var(--accent-copper);
  box-shadow: 0 0 0 4px rgba(185,106,60,0.10);
}
.taste-note strong {
  display: block;
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.2;
  color: var(--text-primary);
}
.taste-note .caption {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
}

.taste-image {
  position: relative;
}
.taste-frame {
  border-radius: var(--radius-hero);
  overflow: hidden;
  background: var(--surface-paper);
  box-shadow:
    0 4px 8px rgba(42,24,16,0.08),
    0 32px 64px -20px rgba(42,24,16,0.25);
  border: 1px solid rgba(122,78,54,0.10);
}
.taste-frame img {
  width: 100%;
  height: auto;
  display: block;
}
.taste-image figcaption {
  margin-top: 14px;
  text-align: right;
  font-style: italic;
}

/* ============================================================
   SECTION 4 — LIFESTYLE
   ============================================================ */
.lifestyle-section { height: 420vh; background: var(--roast-espresso); }
.lifestyle-stage { background: var(--roast-espresso); }
.lifestyle-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(95deg,
      rgba(42,24,16,0.85) 0%,
      rgba(42,24,16,0.50) 45%,
      rgba(42,24,16,0.05) 100%),
    radial-gradient(75% 75% at 25% 50%,
      rgba(42,24,16,0.55),
      rgba(42,24,16,0) 70%);
}

.lifestyle-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  padding: clamp(96px, 14vh, 140px) clamp(24px, 6vw, 96px);
  align-items: center;
  z-index: 2;
}

.lifestyle-text { max-width: 540px; }
.lifestyle-text .eyebrow { margin-bottom: 18px; }
.lifestyle-text h2.h1 { margin-bottom: 28px; }
.lifestyle-text h2.h1 em { color: var(--accent-honey); }
.lifestyle-text .lede { margin-bottom: 40px; }

.lifestyle-stats {
  list-style: none;
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.lifestyle-stats li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lifestyle-stats .stat-num {
  font-family: var(--f-serif);
  font-size: 40px;
  font-weight: 300;
  color: var(--accent-crema);
  line-height: 1;
  font-variation-settings: "opsz" 144;
}
.lifestyle-stats .stat-label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(232,213,183,0.65);
}

.lifestyle-press {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.press-frame {
  width: min(380px, 100%);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--surface-paper);
  box-shadow:
    0 6px 12px rgba(0,0,0,0.30),
    0 36px 72px -20px rgba(0,0,0,0.55),
    0 0 96px -20px rgba(232,213,183,0.25);
}
.press-frame img { display: block; width: 100%; height: auto; }
.lifestyle-press figcaption {
  max-width: 320px;
  font-style: italic;
  font-family: var(--f-serif);
  color: rgba(247,241,230,0.75);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta-section {
  position: relative;
  padding: clamp(120px, 18vh, 200px) clamp(24px, 6vw, 96px);
  background:
    radial-gradient(80% 60% at 50% 40%,
      rgba(232,213,183,0.55),
      rgba(232,213,183,0) 70%),
    var(--surface-paper);
  overflow: hidden;
  text-align: center;
}
.cta-aura {
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 80%;
  background: radial-gradient(closest-side,
              rgba(185,106,60,0.12),
              transparent 70%);
  pointer-events: none;
  animation: crema-aura 10s ease-in-out infinite;
}
.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.cta-inner .display {
  margin-top: 4px;
}
.cta-inner .lede {
  margin: 0 auto;
  text-align: center;
}
.cta-inner .btn-xl { margin-top: 14px; }
.cta-inner .caption {
  max-width: 50ch;
  margin: 0 auto;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--surface-oat);
  padding: 0 clamp(24px, 6vw, 96px) 48px;
}
.footer-divider {
  height: 1px;
  background: var(--surface-sand);
  max-width: 1240px;
  margin: 0 auto 64px;
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 64px;
  padding-bottom: 48px;
}
.footer-brand { display: flex; flex-direction: column; gap: 6px; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.footer-cols div { display: flex; flex-direction: column; gap: 6px; }
.footer-cols a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--dur-micro) var(--ease-organic);
}
.footer-cols a:hover { color: var(--accent-copper); cursor: pointer; }

.footer-base {
  max-width: 1240px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(122,78,54,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-base .mono { color: var(--text-muted); }

/* ============================================================
   COOKIE BANNER (DSGVO/TTDSG)
   ============================================================ */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 100;
  max-width: 940px;
  margin: 0 auto;
  padding: 22px 24px;
  background: var(--surface-paper);
  border: var(--border-paper-strong);
  border-radius: var(--radius-card);
  box-shadow:
    0 2px 4px rgba(42,24,16,0.08),
    0 18px 36px -12px rgba(42,24,16,0.22);
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 500ms var(--ease-organic),
    transform 500ms var(--ease-organic);
  font-family: var(--f-sans);
}
.cookie-banner--enter { opacity: 1; transform: translateY(0); }
.cookie-banner--leaving { opacity: 0; transform: translateY(12px); }

.cookie-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}
.cookie-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--roast-walnut);
  margin-bottom: 8px;
}
.cookie-text p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 64ch;
}
.cookie-text a {
  color: var(--accent-copper);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  white-space: nowrap;
}
.cookie-text a:hover { color: var(--accent-copper-soft); }

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-btn {
  height: 46px;
  min-width: 168px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 500;
}

@media (max-width: 760px) {
  .cookie-banner {
    left: 12px; right: 12px; bottom: 12px;
    padding: 18px 18px;
  }
  .cookie-inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .cookie-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .cookie-btn {
    width: 100%;
    min-width: 0;
    padding: 0 12px;
  }
}

/* ============================================================
   LEGAL PAGES (Impressum, Datenschutz)
   ============================================================ */
.legal-page {
  background: var(--surface-paper);
  min-height: 100vh;
  padding: clamp(110px, 14vh, 160px) clamp(20px, 6vw, 64px) 96px;
}
.legal-wrap {
  max-width: 720px;
  margin: 0 auto;
}
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--accent-copper);
  margin-bottom: 40px;
  transition: color var(--dur-micro) var(--ease-organic);
}
.legal-back:hover { color: var(--accent-copper-soft); text-decoration: underline; text-underline-offset: 4px; }

.legal-wrap h1 {
  font-family: var(--f-serif);
  font-weight: 300;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 144;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.legal-wrap .legal-eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--roast-walnut);
  margin-bottom: 14px;
}
.legal-wrap h2 {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 56px 0 14px;
  font-variation-settings: "opsz" 36;
}
.legal-wrap h2:first-of-type { margin-top: 48px; }
.legal-wrap h3 {
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  margin: 24px 0 8px;
}
.legal-wrap p,
.legal-wrap address {
  font-family: var(--f-sans);
  font-style: normal;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 16px;
}
.legal-wrap a {
  color: var(--accent-copper);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.legal-wrap a:hover { color: var(--accent-copper-soft); }
.legal-wrap .legal-divider {
  height: 1px;
  background: var(--surface-sand);
  margin: 48px 0 32px;
}
.legal-wrap .legal-stand {
  margin-top: 56px;
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}
.legal-wrap .mono { font-size: 14px; color: var(--text-secondary); }

/* ============================================================
   REVEAL animations (IO-driven, used outside scrub sections)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 700ms var(--ease-organic),
    transform 700ms var(--ease-organic);
  transition-delay: calc(var(--i, 0) * 110ms);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Scrub overlay lines start hidden — engine controls opacity/transform */
.reveal-line {
  opacity: 0;
  will-change: opacity, transform;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .finder-grid,
  .lifestyle-grid,
  .taste-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .finder-cards { height: 60vh; }
  .lifestyle-press { margin-top: 12px; }
  .taste-notes { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .scrub-section { height: 380vh; }
  .finder-section { height: 380vh; }
  .lifestyle-section { height: 380vh; }
  .hero-overlay { padding: 100px 20px 100px; gap: 18px; }
  .finder-grid { padding: 110px 20px 60px; }
  .lifestyle-grid { padding: 110px 20px 60px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 28px; }
  .nav { padding: 12px 16px; }
  .wordmark { font-size: 18px; }
  .lifestyle-stats { gap: 24px; }
  .lifestyle-stats .stat-num { font-size: 32px; }
  .finder-cards .beancard {
    width: min(320px, 92%);
  }
  .finder-cards .beancard:nth-child(1) { transform: translate(-50%, -75%) rotate(-3deg); }
  .finder-cards .beancard:nth-child(2) { transform: translate(-50%, -45%) rotate(2deg); }
  .finder-cards .beancard:nth-child(3) { transform: translate(-50%, -15%) rotate(-1.5deg); }
}
