/* Kochmodus: ein Schritt pro Bildschirm (site/plugins/aromakueche-kochmodus, assets/js/kochmodus.js) */
:root {
  --paper: #F7F6F0;
  --white: #FFFFFF;
  --ink: #2A2722;
  --accent: #B5531F;
  --display: 'Cormorant Garamond', Georgia, serif;
  --serif: 'Source Serif 4', Georgia, serif;
  --sans: 'Jost', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.km { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif); font-size: 17px; line-height: 1.5; }
.km a { color: var(--ink); }
.km a:hover { color: var(--accent); }
.km :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.km [hidden] { display: none !important; }

/* Kopfzeile */
.km-bar { display: flex; align-items: center; gap: 16px; padding: 12px max(20px, env(safe-area-inset-left)); padding-top: max(12px, env(safe-area-inset-top)); border-bottom: 1px solid rgba(42, 39, 34, .14); background: var(--paper); font-family: var(--sans); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.km-bar__close { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; font-weight: 600; }
.km-bar__title { flex: 1; min-width: 0; margin: 0; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 300; }
.km-bar__actions { display: flex; gap: 18px; }
.km-bar__btn { min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 600; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.km-bar__btn:hover, .km-bar__btn[aria-expanded="true"] { color: var(--accent); }
@media (max-width: 560px) { .km-bar__title { display: none; } .km-bar__close span { display: none; } .km-bar { justify-content: space-between; } }

.km-progress { height: 3px; background: rgba(42, 39, 34, .08); }
.km-progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s ease; }

/* Bühne: ohne JavaScript stehen alle Schritte untereinander */
.km-stage { max-width: 980px; margin: 0 auto; padding: 32px 24px 48px; }
.km-screen { padding: 24px 0 48px; }
.km-screen + .km-screen { border-top: 1px solid rgba(42, 39, 34, .14); }
.km-kicker { margin: 0 0 18px; font-family: var(--sans); font-weight: 600; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.km-heading { margin: 0 0 20px; font-family: var(--display); font-weight: 300; font-size: clamp(44px, 7vw, 76px); line-height: 1; }
.km-heading:focus, .km-step:focus { outline: none; }
.km-intro { margin: 0 0 32px; max-width: 34em; font-family: var(--sans); font-weight: 300; font-size: 17px; }

.km-step { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(32px, 4.4vw + 12px, 64px); line-height: 1.12; overflow-wrap: break-word; }
@media (max-width: 560px) { .km-step { hyphens: auto; } }
.km-next { margin-top: 48px; padding-top: 18px; border-top: 1px solid rgba(42, 39, 34, .25); max-width: 40em; opacity: .62; }
.km-next__label { margin: 0 0 6px; font-family: var(--sans); font-weight: 600; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.km-next__text { margin: 0; font-family: var(--sans); font-weight: 300; font-size: clamp(17px, 1vw + 12px, 22px); line-height: 1.45; }

/* Zutaten zum Abhaken */
.km-ingredients { list-style: none; margin: 0; padding: 0; max-width: 520px; font-family: var(--sans); font-weight: 300; font-size: 18px; }
.km-ingredients li { border-bottom: 1px solid rgba(42, 39, 34, .25); }
.km-ingredients li:last-child { border-bottom: 0; }
.km-ingredients label { display: flex; gap: 14px; align-items: center; min-height: 52px; padding: 6px 0; cursor: pointer; }
.km-ingredients input { flex: 0 0 auto; width: 24px; height: 24px; margin: 0; accent-color: var(--accent); }
.km-ingredients strong { font-weight: 600; }
.km-ingredients input:checked + span { opacity: .45; text-decoration: line-through; text-decoration-thickness: 1px; }
.km-ingredients__group { padding: 24px 0 8px; font-weight: 600; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; border-bottom-width: 2px !important; }
.km-ingredients__group:first-child { padding-top: 0; }

/* Ende */
.km-tip { margin: 8px 0 32px; max-width: 40em; padding: 32px 36px; background: var(--accent); color: var(--white); }
.km-tip p { margin: 0; }
.km-tip a, .km-tip a:hover { color: var(--white); }
.km-tip__title { margin: 0 0 12px !important; font-family: var(--display); font-weight: 300; font-size: 32px; line-height: 1.1; }
.km-link { display: inline-block; padding: 12px 0; border-bottom: 1px solid var(--accent); color: var(--accent) !important; text-decoration: none; font-family: var(--sans); font-weight: 600; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }

/* Knöpfe unten */
.km-nav { display: flex; gap: 12px; padding: 12px max(20px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)); border-top: 1px solid rgba(42, 39, 34, .14); background: var(--paper); }
.km-btn { flex: 2; min-height: 60px; padding: 0 20px; border: 0; background: var(--accent); color: var(--white); font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; touch-action: manipulation; }
.km-btn:hover { background: #9a4518; }
.km-btn--ghost { flex: 1; background: none; color: var(--ink); border: 1px solid var(--ink); }
.km-btn--ghost:hover { background: none; color: var(--accent); border-color: var(--accent); }
.km-btn:disabled { opacity: .3; cursor: default; }
.km-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Zutaten-Leiste während der Schritte */
.km-drawer { position: fixed; inset: 0; z-index: 20; display: flex; justify-content: flex-end; background: rgba(42, 39, 34, .35); }
.km-drawer__inner { width: min(440px, 100%); height: 100%; overflow-y: auto; padding: 28px 24px max(28px, env(safe-area-inset-bottom)); background: var(--paper); box-shadow: -8px 0 32px rgba(42, 39, 34, .18); }
.km-drawer .km-btn { width: 100%; margin-top: 24px; }

/* Mit JavaScript: Vollbild-Layout, immer nur ein Bildschirm */
.km-js body.km { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.km-js .km-stage { flex: 1; width: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; padding-top: 24px; padding-bottom: 24px; }
.km-js .km-screen { display: none; padding: 0; border: 0; }
.km-js .km-screen.is-active { display: block; animation: km-in .25s ease; }
.km-js .km-screen--step.is-active { margin: auto 0; }
.km-js .km-screen--start.is-active, .km-js .km-screen--end.is-active { margin: 0 0 auto; }
@keyframes km-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .km-js .km-screen.is-active { animation: none; } .km-progress span { transition: none; } }
@media (min-width: 900px) and (min-height: 600px) {
  .km-nav { justify-content: center; }
  .km-btn { flex: 0 1 320px; }
  .km-btn--ghost { flex: 0 1 200px; }
}
