@charset "UTF-8";

/* ============================================================
   cook.css - Koch-Modus (Vollbild, eigenstaendig)
   ============================================================
   cook.tpl ist eine komplett eigenstaendige Seite (kein nav/
   footer, kein html_header.tpl) mit eigenem, dunklem Farbschema
   (--bg/--card/--terra/... != die globalen --terracotta/--sage/
   --gold-Variablen aus variables.css). Daher KEINE Ueberschneidung
   mit app.css/base.css/nav.css - sicher komplett isoliert.
   ============================================================ */

        :root {
            --bg:        #16120e;
            --card:      #1f1b17;
            --border:    #2e2925;
            --terra:     #c1622f;
            --gold:      #c9a84c;
            --cream:     #f7f3ee;
            --muted:     #a89f96;
            --subtle:    #6e6560;
        }

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

        body {
            font-family: 'DM Sans', sans-serif;
            background: var(--bg);
            color: var(--cream);
            min-height: 100vh;
            min-height: 100dvh;
            overflow: hidden;
            user-select: none;
        }

        /* -- Kopfzeile ------------------------------- */
        .cook-header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 10;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1rem 1.5rem;
            background: linear-gradient(to bottom, rgba(22,18,14,.95) 0%, transparent 100%);
        }

        .cook-back {
            display: flex;
            align-items: center;
            gap: .4rem;
            color: var(--muted);
            text-decoration: none;
            font-size: .85rem;
            transition: color .2s;
        }
        .cook-back:hover { color: var(--cream); }

        .cook-title {
            font-family: 'Playfair Display', serif;
            font-size: 1rem;
            color: var(--cream);
            opacity: .75;
            text-align: center;
            flex: 1;
            padding: 0 1rem;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
        }

        .cook-actions { display: flex; gap: .75rem; align-items: center; }

        .cook-icon-btn {
            background: rgba(255,255,255,.08);
            border: 1px solid var(--border);
            color: var(--muted);
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 1rem;
            transition: all .2s;
        }
        .cook-icon-btn:hover, .cook-icon-btn.active {
            background: rgba(255,255,255,.15);
            color: var(--cream);
        }

        /* -- Fortschritts-Balken --------------------- */
        .cook-progress {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: var(--border);
            z-index: 20;
        }
        .cook-progress__fill {
            height: 100%;
            background: var(--terra);
            transition: width .4s ease;
        }

        /* -- Schritt-Anzeige ------------------------- */
        .cook-main {
            min-height: 100vh;
            min-height: 100dvh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 6rem 2rem 8rem;
            text-align: center;
            max-width: 720px;
            margin: 0 auto;
        }

        .cook-step-counter {
            font-size: .78rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: .12em;
            color: var(--terra);
            margin-bottom: 1.5rem;
        }

        .cook-step-num {
            width: 64px;
            height: 64px;
            border-radius: 50%;
            background: var(--terra);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 1.5rem;
            margin: 0 auto 2rem;
            flex-shrink: 0;
        }

        .cook-step-text {
            font-size: clamp(1.1rem, 3.5vw, 1.6rem);
            line-height: 1.65;
            color: var(--cream);
            font-weight: 300;
            max-width: 600px;
            margin: 0 auto;
            transition: opacity .25s, transform .25s;
            overflow-y: auto;
            max-height: 45vh;
            padding-right: .25rem;
            scrollbar-width: thin;
            scrollbar-color: var(--terra) transparent;
        }

        .cook-step-text.fade-out {
            opacity: 0;
            transform: translateY(-10px);
        }

        /* -- Timer ----------------------------------- */
        .cook-timer-wrap {
            margin-top: 2rem;
        }

        .cook-timer-btn {
            display: inline-flex;
            align-items: center;
            gap: .5rem;
            padding: .65rem 1.4rem;
            background: rgba(201,168,76,.15);
            border: 1.5px solid rgba(201,168,76,.4);
            color: var(--gold);
            border-radius: 50px;
            font-family: 'DM Sans', sans-serif;
            font-size: .9rem;
            font-weight: 600;
            cursor: pointer;
            transition: all .2s;
        }
        .cook-timer-btn:hover { background: rgba(201,168,76,.25); }
        .cook-timer-btn.running {
            background: var(--terra);
            border-color: var(--terra);
            color: white;
            animation: pulse 2s infinite;
        }
        .cook-timer-btn.done {
            background: rgba(122,140,110,.2);
            border-color: var(--sage, #7a8c6e);
            color: var(--sage, #7a8c6e);
            animation: none;
        }

        @keyframes pulse {
            0%, 100% { box-shadow: 0 0 0 0 rgba(193,98,47,.4); }
            50%       { box-shadow: 0 0 0 8px rgba(193,98,47,0); }
        }

        /* -- Navigation ------------------------------ */
        .cook-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1.5rem 2rem;
            background: linear-gradient(to top, rgba(22,18,14,.95) 0%, transparent 100%);
        }

        .cook-nav-btn {
            display: flex;
            align-items: center;
            gap: .5rem;
            padding: .75rem 1.5rem;
            border-radius: 50px;
            font-family: 'DM Sans', sans-serif;
            font-size: .9rem;
            font-weight: 600;
            cursor: pointer;
            transition: all .2s;
            border: none;
        }

        .cook-nav-btn--prev {
            background: rgba(255,255,255,.08);
            color: var(--muted);
        }
        .cook-nav-btn--prev:hover { background: rgba(255,255,255,.14); color: var(--cream); }
        .cook-nav-btn--prev:disabled { opacity: .25; cursor: not-allowed; }

        .cook-nav-btn--next {
            background: var(--terra);
            color: white;
            min-width: 130px;
            justify-content: center;
        }
        .cook-nav-btn--next:hover { background: #a85226; }
        .cook-nav-btn--next.last { background: var(--gold); color: #1e1a16; }

        .cook-step-dots {
            display: flex;
            gap: .4rem;
            align-items: center;
        }
        .cook-dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--subtle);
            transition: all .2s;
            cursor: pointer;
        }
        .cook-dot.active { background: var(--terra); width: 18px; border-radius: 3px; }
        .cook-dot.done   { background: var(--muted); }

        /* -- Zutaten-Panel --------------------------- */
        .ing-panel {
            position: fixed;
            inset: 0;
            z-index: 50;
            display: flex;
            align-items: flex-end;
            background: rgba(0,0,0,.6);
            backdrop-filter: blur(4px);
            opacity: 0;
            pointer-events: none;
            transition: opacity .3s;
        }
        .ing-panel.open {
            opacity: 1;
            pointer-events: all;
        }
        .ing-panel__inner {
            background: var(--card);
            border-radius: 20px 20px 0 0;
            width: 100%;
            max-height: 75vh;
            overflow-y: auto;
            padding: 1.5rem 1.75rem 2rem;
            transform: translateY(100%);
            transition: transform .35s cubic-bezier(.4,0,.2,1);
        }
        .ing-panel.open .ing-panel__inner { transform: none; }

        .ing-panel__handle {
            width: 40px;
            height: 4px;
            background: var(--border);
            border-radius: 2px;
            margin: 0 auto 1.25rem;
        }

        .ing-panel__title {
            font-family: 'Playfair Display', serif;
            font-size: 1.3rem;
            margin-bottom: 1.25rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        /* Portionssteuerung */
        .ing-servings {
            display: flex;
            align-items: center;
            gap: .5rem;
            background: var(--bg);
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: .3rem .5rem;
        }
        .ing-serv-btn {
            background: none;
            border: none;
            color: var(--terra);
            font-size: 1.1rem;
            cursor: pointer;
            font-weight: 700;
            line-height: 1;
        }
        .ing-serv-num { font-weight: 600; font-size: .9rem; min-width: 18px; text-align: center; }

        .ing-group-name {
            font-size: .72rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: .08em;
            color: var(--subtle);
            margin: 1rem 0 .4rem;
        }

        .ing-row {
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            padding: .45rem 0;
            border-bottom: 1px solid var(--border);
            font-size: .9rem;
            gap: .75rem;
        }
        .ing-row:last-child { border-bottom: none; }
        .ing-row--active { background: rgba(201,95,60,.12); border-radius: 6px; padding-left: .5rem; padding-right: .5rem; margin: 0 -.5rem; }
        .ing-row--active .ing-name { color: var(--cream); font-weight: 600; }
        .ing-amt { color: var(--terra); font-weight: 600; white-space: nowrap; font-size: .85rem; }

        /* Fertig-Overlay */
        .done-overlay {
            position: fixed;
            inset: 0;
            z-index: 100;
            background: rgba(22,18,14,.95);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 2rem;
            opacity: 0;
            pointer-events: none;
            transition: opacity .4s;
        }
        .done-overlay.show { opacity: 1; pointer-events: all; }
        .done-overlay__icon { font-size: 5rem; margin-bottom: 1rem; }
        .done-overlay__title {
            font-family: 'Playfair Display', serif;
            font-size: 2.25rem;
            color: var(--cream);
            margin-bottom: .75rem;
        }
        .done-overlay__sub { color: var(--muted); font-size: 1rem; margin-bottom: 2.5rem; line-height: 1.6; }
        .done-overlay__btns { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
        .done-btn {
            padding: .75rem 1.75rem;
            border-radius: 50px;
            font-family: 'DM Sans', sans-serif;
            font-size: .95rem;
            font-weight: 600;
            cursor: pointer;
            border: none;
            transition: all .2s;
            text-decoration: none;
        }
        .done-btn--gold { background: var(--gold); color: #1e1a16; }
        .done-btn--gold:hover { background: #b8973e; }
        .done-btn--ghost { background: rgba(255,255,255,.1); color: var(--cream); }
        .done-btn--ghost:hover { background: rgba(255,255,255,.18); }
