/* Würzwerk – Stylesheet (mobile-first) */
:root {
  --accent: #C8553D;
  --accent-hover: #B04630;
  --accent-soft: #F6E0D9;
  --accent-contrast: #FFFFFF;
  --bg: #FAF7F2;
  --surface: #FFFFFF;
  --surface-2: #F3EEE6;
  --text: #2A2420;
  --muted: #6F665E;
  --border: #E6DED3;
  --success: #2F7D4F;
  --success-soft: #E3F2E8;
  --warning: #8A6100;
  --warning-soft: #FFF3CC;
  --error: #B3261E;
  --error-soft: #FBE4E2;
  --info-soft: #E8EEF6;
  --shadow: 0 1px 2px rgba(60, 40, 20, .06), 0 4px 14px rgba(60, 40, 20, .06);
  --radius: 14px;
  --radius-sm: 10px;
  --touch: 44px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --sidebar-w: 232px;
  --bottom-nav-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent: #E07A5F; --accent-hover: #EA8E75; --accent-soft: #3A2620; --accent-contrast: #1B1512;
    --bg: #171412; --surface: #221E1B; --surface-2: #2B2622; --text: #F1EBE4; --muted: #ABA197; --border: #3A332E;
    --success: #7BC79A; --success-soft: #1F3328; --warning: #F0C860; --warning-soft: #3A3018; --error: #F2948D; --error-soft: #3E2020; --info-soft: #222C38;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 14px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --accent: #E07A5F; --accent-hover: #EA8E75; --accent-soft: #3A2620; --accent-contrast: #1B1512;
  --bg: #171412; --surface: #221E1B; --surface-2: #2B2622; --text: #F1EBE4; --muted: #ABA197; --border: #3A332E;
  --success: #7BC79A; --success-soft: #1F3328; --warning: #F0C860; --warning-soft: #3A3018; --error: #F2948D; --error-soft: #3E2020; --info-soft: #222C38;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 14px rgba(0,0,0,.25);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.5; background: var(--bg); color: var(--text); }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 2px; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5rem; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 .75rem; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
code { background: var(--surface-2); padding: .1em .35em; border-radius: 6px; word-break: break-all; }
.pre { white-space: pre-wrap; word-break: break-word; }
.small { font-size: .875rem; }
.muted { color: var(--muted); }
.ok { color: var(--success); }
.warn, .error-text { color: var(--error); }
.danger { color: var(--error) !important; }
.grow { flex: 1; min-width: 0; }
.print-only, .print-footer { display: none; }
[hidden] { display: none !important; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: .5rem 1rem; z-index: 100; border-radius: 8px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Layout */
.app { min-height: 100vh; }
.sidebar { display: none; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .5rem 1rem; padding-top: max(.5rem, env(safe-area-inset-top)); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.main { max-width: 1100px; margin: 0 auto; padding: 1rem 1rem calc(var(--bottom-nav-h) + 1.5rem + env(safe-area-inset-bottom)); }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--text); min-height: var(--touch); }
.brand-name, .wordmark { font-weight: 800; letter-spacing: -.02em; font-size: 1.25rem; }
.wordmark { font-size: 2rem; margin: .5rem 0 0; }
.logo-mark { width: 34px; height: 34px; flex: none; }

.nav-bottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface); border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -2px 12px rgba(0,0,0,.05); }
.nav-bottom .nav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: var(--bottom-nav-h); font-size: .7rem; color: var(--muted); text-decoration: none; padding: 4px 2px; }
.nav-bottom .nav-item.active { color: var(--accent); font-weight: 600; }
.nav-icon { width: 24px; height: 24px; }

@media (min-width: 900px) {
  .app { display: grid; grid-template-columns: var(--sidebar-w) 1fr; }
  .topbar, .nav-bottom { display: none; }
  .sidebar { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 0; height: 100vh; padding: 1.25rem 1rem; background: var(--surface); border-right: 1px solid var(--border); }
  .nav-side { display: flex; flex-direction: column; gap: .25rem; }
  .nav-side .nav-item { display: flex; align-items: center; gap: .75rem; min-height: var(--touch); padding: .5rem .75rem; border-radius: var(--radius-sm); color: var(--text); text-decoration: none; }
  .nav-side .nav-item:hover { background: var(--surface-2); }
  .nav-side .nav-item.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
  .sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: .25rem; }
  .main { padding: 2rem 2rem 3rem; width: 100%; }
  .hide-mobile { display: inline-flex; }
  h1 { font-size: 2rem; }
}
@media (max-width: 899px) { .hide-mobile { display: none !important; } }

/* Komponenten */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem; margin-bottom: 1rem; }
@media (min-width: 600px) { .card { padding: 1.25rem 1.5rem; } }
.stack > * + * { margin-top: .75rem; }
.stack > * { margin-bottom: 0; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.row-center { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.row-between { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.grid-2, .grid-3 { display: grid; gap: .75rem; grid-template-columns: 1fr; }
@media (min-width: 600px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-3 { grid-template-columns: 1fr 1fr; }
@media (min-width: 600px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.narrow { max-width: 420px; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.page-head h1 { margin: 0; }
.page-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: var(--touch); padding: .55rem 1.1rem; border-radius: 999px; border: 1px solid transparent; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .15s, transform .05s; color: var(--text); background: transparent; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: var(--accent-contrast); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--surface); border-color: var(--border); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-ghost { background: transparent; border: none; color: var(--text); min-height: var(--touch); padding: .5rem .75rem; border-radius: var(--radius-sm); font: inherit; cursor: pointer; text-align: left; }
.btn-ghost:hover { background: var(--surface-2); }
.btn-small { min-height: 36px; padding: .35rem .8rem; font-size: .9rem; }
.btn-large { min-height: 56px; font-size: 1.1rem; padding: .75rem 1.5rem; }
.btn-block { width: 100%; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: var(--touch); height: var(--touch); border-radius: 50%; border: none; background: transparent; color: var(--text); font-size: 1.3rem; cursor: pointer; text-decoration: none; flex: none; }
.icon-btn:hover { background: var(--surface-2); }

.field { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; font-size: .9rem; }
.field > span, .field > label { color: var(--muted); }
input, select, textarea { font: inherit; font-size: 16px; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .6rem .75rem; min-height: var(--touch); width: 100%; font-weight: 400; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: 2px solid color-mix(in srgb, var(--accent) 30%, transparent); outline-offset: 0; }
input[type="checkbox"], input[type="radio"] { width: 22px; height: 22px; min-height: 0; accent-color: var(--accent); margin: 0; flex: none; }
input[type="file"] { padding: .5rem; }
.check { display: inline-flex; align-items: center; gap: .6rem; min-height: var(--touch); cursor: pointer; font-weight: 400; }
.field-check { align-self: end; }

.alert { border-radius: var(--radius-sm); padding: .75rem 1rem; margin-bottom: 1rem; border: 1px solid transparent; }
.alert-success { background: var(--success-soft); color: var(--text); border-color: color-mix(in srgb, var(--success) 35%, transparent); }
.alert-error { background: var(--error-soft); border-color: color-mix(in srgb, var(--error) 35%, transparent); }
.alert-warning { background: var(--warning-soft); border-color: color-mix(in srgb, var(--warning) 40%, transparent); }
.alert-info { background: var(--info-soft); }
.notice { display: flex; flex-wrap: wrap; gap: .5rem; align-items: baseline; }

.badge { display: inline-block; font-size: .75rem; font-weight: 600; padding: .15rem .55rem; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.badge-needs_input, .badge-review { background: var(--warning-soft); color: var(--warning); }
.badge-failed { background: var(--error-soft); color: var(--error); }
.badge-done { background: var(--success-soft); color: var(--success); }
.badge-fetching, .badge-analyzing, .badge-queued { background: var(--accent-soft); color: var(--accent); }

.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0; }
.chip { display: inline-flex; align-items: center; gap: .35rem; min-height: 36px; padding: .3rem .8rem; border-radius: 999px; background: var(--surface-2); color: var(--text); text-decoration: none; font-size: .9rem; border: 1px solid var(--border); cursor: pointer; font-weight: 400; }
.chip-active, .chip:has(input:checked) { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip-suggest { border-style: dashed; background: transparent; }
.chip-suggest::before { content: "+"; font-weight: 700; color: var(--accent); }
.tag { font-size: .75rem; color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: .1rem .5rem; }
.inline-list { display: flex; flex-wrap: wrap; gap: .75rem; list-style: none; margin: 0; padding: 0; }

.empty-state { text-align: center; padding: 3rem 1rem; max-width: 520px; margin: 0 auto; }
.empty-emoji { font-size: 3.5rem; margin-bottom: .5rem; }

/* Filter & Raster */
.filters { margin-bottom: 1rem; }
.search-row { display: flex; gap: .5rem; }
.filter-more summary { cursor: pointer; padding: .6rem 0; color: var(--muted); min-height: var(--touch); display: flex; align-items: center; }
.filter-grid { display: grid; gap: .75rem; grid-template-columns: 1fr 1fr; }
@media (min-width: 700px) { .filter-grid { grid-template-columns: repeat(4, 1fr); } }
.recipe-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .recipe-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }
@media (min-width: 1200px) { .recipe-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.recipe-card { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.recipe-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(60,40,20,.12); }
.recipe-card-img { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); }
.recipe-card-img img { width: 100%; height: 100%; object-fit: cover; }
.img-placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent-soft), var(--surface-2)); }
.img-placeholder .logo-mark { width: 48px; height: 48px; opacity: .55; }
.fav-badge { position: absolute; top: .4rem; right: .4rem; background: var(--surface); color: var(--accent); border-radius: 50%; width: 30px; height: 30px; display: grid; place-items: center; box-shadow: var(--shadow); }
.recipe-card-body { padding: .7rem .8rem .8rem; display: flex; flex-direction: column; gap: .3rem; }
.recipe-card-title { font-size: 1rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.recipe-card-meta { display: flex; gap: .6rem; font-size: .8rem; color: var(--muted); margin: 0; }
.stars-small { color: var(--accent); }
.recipe-card-tags { display: flex; gap: .3rem; flex-wrap: wrap; margin: 0; }

/* Rezept-Detail */
.recipe-hero { margin: -1rem -1rem 1rem; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.recipe-hero img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .recipe-hero { margin: 0 0 1.5rem; border-radius: var(--radius); max-height: 460px; aspect-ratio: auto; } }
.recipe-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.lead { font-size: 1.05rem; color: var(--muted); }
.meta-list { list-style: none; padding: 0; margin: .75rem 0; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
.meta-list li { display: flex; flex-direction: column; font-weight: 600; }
.meta-list .muted { font-size: .75rem; font-weight: 400; }
.fav-btn { color: var(--muted); font-size: 1.6rem; }
.fav-btn.is-fav { color: var(--accent); }
.rating { display: flex; gap: 0; }
.star { background: none; border: none; font-size: 1.7rem; color: var(--border); cursor: pointer; width: var(--touch); height: var(--touch); padding: 0; }
.star.on { color: var(--accent); }
.action-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; align-items: center; }
.menu { position: relative; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 4px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow); min-width: 180px; z-index: 10; padding: .25rem; }
.menu-item { display: block; width: 100%; text-align: left; min-height: var(--touch); padding: .5rem .75rem; border: none; background: none; font: inherit; color: var(--text); border-radius: 8px; cursor: pointer; }
.menu-item:hover { background: var(--surface-2); }
.recipe-body { display: grid; gap: 1rem; }
@media (min-width: 900px) { .recipe-body { grid-template-columns: minmax(280px, 1fr) 2fr; align-items: start; } .recipe-body .ingredients { position: sticky; top: 1rem; } }
.section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.servings { display: flex; align-items: center; gap: .25rem; background: var(--surface-2); border-radius: 999px; padding: 0 .25rem; }
.servings label { display: flex; align-items: center; gap: .3rem; font-size: .9rem; }
.servings input { width: 3.2rem; text-align: center; padding: .3rem; min-height: 36px; background: var(--surface); }
.group-name { margin: 1rem 0 .25rem; color: var(--accent); font-size: .95rem; }
.ingredient-list { list-style: none; margin: 0; padding: 0; }
.ingredient-list li + li { border-top: 1px solid var(--border); }
.ingredient { display: flex; align-items: center; gap: .75rem; min-height: var(--touch); padding: .35rem 0; cursor: pointer; }
.ing-amount { min-width: 4.8rem; font-weight: 700; white-space: nowrap; }
.ingredient:has(input:checked) .ing-name, .ingredient:has(input:checked) .ing-amount { text-decoration: line-through; color: var(--muted); }
.step-list { padding-left: 0; list-style: none; counter-reset: step; margin: 0; }
.step-list li { counter-increment: step; position: relative; padding: 0 0 1.1rem 2.75rem; }
.step-list li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; display: grid; place-items: center; }
.source { color: var(--muted); }

/* Formular */
.recipe-form h2 { margin-bottom: .25rem; }
.sortable { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.row-item { display: grid; gap: .4rem; align-items: center; background: var(--surface); border-radius: var(--radius-sm); }
.ing-rows .row-item { grid-template-columns: 28px 5.5rem 1fr 44px; grid-template-areas: "h a n x" "h u o x"; padding-bottom: .5rem; border-bottom: 1px solid var(--border); border-radius: 0; }
.ing-rows .row-item .drag-handle { grid-area: h; }
.ing-rows .in-amount { grid-area: a; }
.ing-rows .in-unit { grid-area: u; }
.ing-rows .in-name { grid-area: n; }
.ing-rows .in-note { grid-area: o; }
.ing-rows .in-unit { min-width: 0; }
.ing-rows [data-remove] { grid-area: x; }
@media (min-width: 700px) { .ing-rows .row-item { grid-template-columns: 28px 5rem 6.5rem 2fr 1.3fr 44px; grid-template-areas: "h a u n o x"; padding-bottom: 0; border-bottom: none; } }
.ing-rows .row-group { grid-template-columns: 28px 1fr 44px; grid-template-areas: "h n x"; background: var(--accent-soft); padding: .25rem; }
.ing-rows .row-group .in-group { grid-area: n; font-weight: 700; }
.step-rows .row-item { grid-template-columns: 28px 1fr 44px; grid-template-areas: "h t x" "h d x"; }
.step-rows textarea { grid-area: t; }
.step-rows .in-duration { grid-area: d; display: flex; align-items: center; gap: .4rem; }
.step-rows .in-duration input { width: 6rem; min-height: 36px; }
.step-rows [data-remove] { grid-area: x; }
.drag-handle { cursor: grab; color: var(--muted); font-size: 1.2rem; display: grid; place-items: center; height: var(--touch); touch-action: none; user-select: none; }
.row-item.dragging { opacity: .85; box-shadow: 0 8px 24px rgba(0,0,0,.18); position: relative; z-index: 5; }
.row-placeholder { border: 2px dashed var(--accent); border-radius: var(--radius-sm); background: var(--accent-soft); }
.quick-entry summary { cursor: pointer; color: var(--accent); font-weight: 600; min-height: var(--touch); display: flex; align-items: center; }
.quick-entry > * + * { margin-top: .5rem; }
.form-actions { position: sticky; bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom) + .5rem); display: flex; justify-content: flex-end; gap: .5rem; z-index: 5; }
@media (min-width: 900px) { .form-actions { bottom: 1rem; } }
.form-actions .btn { box-shadow: var(--shadow); }
.image-current { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.image-current img, .image-preview { border-radius: var(--radius-sm); max-width: 220px; }
.image-choice { display: flex; flex-direction: column; gap: .5rem; }
.image-choice img { max-width: 320px; max-height: 260px; object-fit: cover; border-radius: var(--radius-sm); }

/* Import */
.dropzone { position: relative; border: 2px dashed var(--border); border-radius: var(--radius); padding: 1rem; text-align: center; background: var(--surface-2); transition: border-color .15s, background .15s; }
.dropzone.dragover { border-color: var(--accent); background: var(--accent-soft); }
.dropzone input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone-label { display: flex; flex-direction: column; align-items: center; gap: .25rem; cursor: pointer; min-height: 100px; justify-content: center; font-weight: 400; }
.dropzone-icon { font-size: 2rem; }
.thumbs { list-style: none; margin: .5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.thumbs li { position: relative; }
.thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.thumbs button { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%; border: none; background: var(--text); color: var(--bg); cursor: pointer; }
.detect-hint { min-height: 1.25rem; color: var(--accent); font-weight: 600; margin: 0; }
.job-list { list-style: none; padding: 0; margin: 0; }
.job-list li { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding: .5rem 0; border-top: 1px solid var(--border); }
.progress-steps { list-style: none; padding: 0; margin: .5rem 0; display: flex; gap: .25rem; counter-reset: ps; }
.progress-steps li { flex: 1; text-align: center; font-size: .75rem; color: var(--muted); padding-top: .6rem; position: relative; }
.progress-steps li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; border-radius: 3px; background: var(--border); }
.progress-steps li.done::before { background: var(--accent); }
.progress-steps li.current::before { background: linear-gradient(90deg, var(--accent) 0 50%, var(--border) 50%); background-size: 200% 100%; animation: progress 1.2s linear infinite; }
.progress-steps li.current { color: var(--accent); font-weight: 700; }
@keyframes progress { from { background-position: 100% 0; } to { background-position: 0 0; } }
.spinner-row { display: flex; align-items: center; gap: .6rem; font-weight: 600; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--accent-soft); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.grid-2.equal { align-items: stretch; }

/* Einkaufsliste */
.add-item-form { display: flex; gap: .5rem; }
.shopping-group h2 { font-size: 1rem; color: var(--accent); }
.shopping-list { list-style: none; margin: 0; padding: 0; }
.shopping-item { display: flex; align-items: center; gap: .25rem; border-top: 1px solid var(--border); }
.shopping-item:first-child { border-top: none; }
.check-btn { display: flex; align-items: center; gap: .75rem; width: 100%; min-height: var(--touch); background: none; border: none; font: inherit; color: var(--text); text-align: left; cursor: pointer; padding: .35rem 0; }
.check-btn .box { width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--border); flex: none; display: grid; place-items: center; }
.shopping-item.checked .box { background: var(--accent); border-color: var(--accent); }
.shopping-item.checked .box::after { content: "✓"; color: var(--accent-contrast); font-weight: 700; font-size: .9rem; }
.shopping-item.checked .item-text { text-decoration: line-through; color: var(--muted); }
.pick-list { list-style: none; margin: 0; padding: 0; max-height: 50vh; overflow: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.pick-list li { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: 0 .75rem; border-top: 1px solid var(--border); }
.pick-list li:first-child { border-top: none; }
.servings-pick { display: flex; align-items: center; gap: .3rem; }
.servings-pick input { width: 4rem; min-height: 36px; padding: .3rem; text-align: center; }

/* Vorschläge */
.suggest-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.suggest-item { display: flex; gap: 1rem; align-items: flex-start; }
.suggest-item img { border-radius: 8px; object-fit: cover; width: 96px; height: 72px; flex: none; }
.suggest-item h2 { font-size: 1.05rem; }

/* Einstellungen */
.toc a { white-space: nowrap; }
.guide { padding-left: 1.25rem; }
.guide li { margin-bottom: .4rem; }
.code { background: var(--surface-2); padding: .75rem; border-radius: var(--radius-sm); overflow: auto; white-space: pre-wrap; word-break: break-all; }
.copy-row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.token { font-size: .85rem; padding: .5rem; display: block; flex: 1; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: .5rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.table td.wrap { max-width: 320px; word-break: break-word; }
details > summary { cursor: pointer; }

/* Login */
.login-page { min-height: 100vh; background: radial-gradient(circle at 20% 0%, var(--accent-soft), transparent 55%), var(--bg); }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; }
.login-card { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow); padding: 2rem 1.5rem; }
.login-brand { text-align: center; margin-bottom: 1.5rem; }
.login-brand .logo-mark { width: 72px; height: 72px; margin: 0 auto; }

/* Theme-Umschalter */
.theme-icon { display: inline-block; width: 20px; height: 20px; border-radius: 50%; border: 2px solid currentColor; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.theme-toggle { display: inline-flex; align-items: center; gap: .5rem; }

/* Kochmodus */
.cook-page { background: var(--bg); }
.cook { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.cook-head { display: flex; align-items: center; gap: .5rem; padding: .5rem; padding-top: max(.5rem, env(safe-area-inset-top)); border-bottom: 1px solid var(--border); }
.cook-title { flex: 1; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cook-ingredients { padding: 1rem 1.25rem; background: var(--surface); border-bottom: 1px solid var(--border); max-height: 45vh; overflow: auto; font-size: 1.1rem; }
.cook-ingredients ul { list-style: none; padding: 0; margin: 0; }
.cook-steps { flex: 1; display: flex; align-items: center; justify-content: center; padding: 1.5rem; user-select: none; }
.cook-step { max-width: 760px; width: 100%; }
.cook-step-num { color: var(--accent); font-weight: 700; font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; }
.cook-step-text { font-size: clamp(1.4rem, 4.5vw, 2.2rem); line-height: 1.4; font-weight: 500; }
.cook-done { text-align: center; }
.timer { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 1.5rem; }
.timer-display { font-size: 2.5rem; font-variant-numeric: tabular-nums; font-weight: 700; min-width: 7ch; }
.timer.running .timer-display { color: var(--accent); }
.timer.finished .timer-display { color: var(--error); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .3; } }
.cook-nav { display: flex; align-items: center; gap: .75rem; padding: .75rem; padding-bottom: max(.75rem, env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: var(--surface); }
.cook-progress { flex: 1; height: 6px; border-radius: 3px; background: var(--border); overflow: hidden; }
.cook-progress-bar { height: 100%; background: var(--accent); width: 0; transition: width .2s; }
.wake-hint { text-align: center; margin: 0 0 .5rem; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.section-title { margin: 2rem 0 1rem; color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.user-list { list-style: none; margin: 0; padding: 0; }
.user-list > li { border-top: 1px solid var(--border); padding: .6rem 0; }
.user-list > li:first-child { border-top: none; }
.user-row { display: flex; align-items: center; gap: .5rem; }
.badge-admin { background: var(--accent-soft); color: var(--accent); margin-left: .35rem; }
.user-actions summary { list-style: none; }
.user-actions summary::-webkit-details-marker { display: none; }
.user-actions .stack { margin-top: .5rem; }
.invite-new .token { word-break: break-all; }
.field small { font-weight: 400; }
