:root {
  --bg: #131110;
  --surface: #1D1A17;
  --surface-2: #262220;
  --border: #34302C;
  --divider: #2C2926;
  --text: #F5EFE6;
  --text-soft: #C9C0B6;
  --muted: #B3AAA0;
  --accent: #FF6B3D;
  --accent-soft: #FF8A63;
  --accent-bg: #2A1A13;
  --on-accent: #1B0D06;
  --tip-bg: #232A1F;
  --tip-text: #D7E6CF;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

a { color: var(--accent-soft); }
a:hover { color: #FFB194; }

button, input { font: inherit; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 800; margin: 0; }

.container { max-width: 1120px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.accent { color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tabular { font-variant-numeric: tabular-nums; }

/* Top bar */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; }
.logo { font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
.topbar-link { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; padding: 10px 0; }
.topbar-link:hover { color: var(--text); }

/* Hero */
.hero { display: flex; flex-wrap: wrap-reverse; align-items: center; gap: 32px; padding-top: 32px; padding-bottom: 24px; }
.hero-text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hero-image { flex: 1 1 320px; min-width: 0; display: flex; justify-content: center; }
.hero-image img { width: 100%; max-width: 580px; height: auto; display: block; }

.eyebrow {
  align-self: flex-start;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-soft); background: var(--accent-bg);
  border-radius: 999px; padding: 6px 14px;
}
h1 { font-size: clamp(44px, 7vw, 84px); line-height: 0.95; letter-spacing: -0.03em; }
.lead { margin: 0; font-size: 18px; color: var(--text-soft); max-width: 46ch; }

.facts { display: flex; flex-wrap: wrap; gap: 10px; }
.fact {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 14px; font-size: 14px; font-weight: 500;
}
.fact strong { color: var(--accent-soft); }

.btn-primary {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 14px;
  background: var(--accent); color: var(--on-accent);
  font-weight: 700; font-size: 16px; text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}
.btn-primary:hover { color: var(--on-accent); background: #FF7F57; transform: translateY(-1px); }

.btn-outline {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 18px; border-radius: var(--radius-sm);
  border: 1px solid #4A433D; color: var(--text);
  text-decoration: none; font-weight: 600; font-size: 15px;
}
.btn-outline svg { color: var(--accent); }
.btn-outline:hover { color: var(--text); border-color: var(--accent); }

/* Sections */
.section { display: flex; flex-direction: column; gap: 20px; padding-top: 24px; padding-bottom: 48px; }
.section h2 { font-size: clamp(32px, 5vw, 48px); letter-spacing: -0.02em; line-height: 1; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 16px; }
.summary { font-size: 15px; color: var(--muted); }
.summary strong { color: var(--text); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }

/* Controls */
.controls { display: flex; flex-wrap: wrap; gap: 24px; margin: 0; }
.control { flex: 1 1 300px; display: flex; flex-direction: column; gap: 10px; }
.control-count { flex-basis: 200px; }
.control-label { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

.stepper {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 6px;
}
.stepper-btn {
  width: 48px; height: 48px; flex: none; border: 0; border-radius: var(--radius-sm);
  background: #2A2623; color: var(--text); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.stepper-btn:hover { background: #35302C; }
.stepper-btn--plus { background: var(--accent); color: var(--on-accent); }
.stepper-btn--plus:hover { background: #FF7F57; }
.stepper input {
  flex: 1; min-width: 0; width: 100%; height: 48px; border: 0; background: transparent;
  color: var(--text); text-align: center;
  font-family: var(--font-display); font-size: 28px; font-weight: 800;
  -moz-appearance: textfield; appearance: textfield;
}
.stepper input::-webkit-inner-spin-button,
.stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.segmented {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 6px;
}
.segmented button {
  min-height: 56px; border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--text); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 6px 4px; transition: background .15s ease, color .15s ease;
}
.segmented button:hover { background: var(--surface-2); }
.segmented button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.seg-main { font-size: 16px; font-weight: 700; line-height: 1.2; }
.seg-sub { font-size: 12px; font-weight: 500; line-height: 1.3; color: var(--muted); }
.segmented button[aria-pressed="true"] .seg-sub { color: var(--on-accent); font-weight: 600; }

/* Ingredients */
.ingredients { display: flex; flex-wrap: wrap; gap: 20px; }
.ing-card { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; }
.ing-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; }
.ing-title { display: flex; align-items: center; gap: 12px; }
.ing-title h3 { font-size: 24px; line-height: 1.1; }
.ing-title .small { font-size: 13px; }
.ing-num {
  width: 36px; height: 36px; border-radius: 10px; flex: none;
  background: var(--accent-bg); color: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px;
}
.ing-list { list-style: none; margin: 0; padding: 0; }
.ing-list li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-top: 1px solid var(--divider);
}
.ing-name { font-size: 17px; font-weight: 500; }
.ing-amount {
  font-family: var(--font-display); font-size: 26px; font-weight: 800;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.ing-amount .unit { font-family: var(--font-body); font-size: 15px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.note { margin: 8px 0 0; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: 14px; color: var(--text-soft); }

/* Steps */
.step { display: flex; flex-wrap: wrap; gap: 24px; padding: 28px; }
.step-meta { flex: 0 1 220px; display: flex; flex-direction: column; gap: 8px; }
.step-meta h3 { font-size: 28px; line-height: 1.1; }
.badge {
  align-self: flex-start; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--accent); color: var(--on-accent); border-radius: 8px; padding: 4px 10px;
}
.step-body { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.step-body p { margin: 0; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 14px; background: var(--surface-2); border-radius: 999px; padding: 6px 14px; }
.steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.steps li::marker { color: var(--accent-soft); font-weight: 700; }
.time { white-space: nowrap; font-weight: 700; color: var(--accent-soft); }
.tip {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--tip-bg); color: var(--tip-text); border-radius: 14px; padding: 14px 16px; font-size: 15px;
}
.tip svg { flex: none; margin-top: 2px; }

/* Footer */
.footer {
  border-top: 1px solid var(--divider); padding: 48px 20px 64px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.footer p { margin: 0; }
.footer-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(36px, 6vw, 64px); letter-spacing: -0.02em; line-height: 1; }

/* Mobile: Fokus auf das Rezept, Illustration ausblenden */
@media (max-width: 640px) {
  .hero-image { display: none; }
  .hero { padding-top: 24px; }
  .card { padding: 20px; }
  .step { padding: 22px; gap: 16px; }
  .step-meta { flex-basis: 100%; }
  .ing-amount { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
