/* ---------- Weitere Stile (Farben wie im Planer) ---------- */
[data-theme="kirsche"]  { --accent: #eab0bf; --accent-ink: #9b3553; --tint: #fcf0f3; }
[data-theme="koralle"]  { --accent: #f6bcae; --accent-ink: #a8492f; --tint: #fdf1ed; }
[data-theme="sand"]     { --accent: #e8d5b5; --accent-ink: #80612f; --tint: #faf5ec; }
[data-theme="oliv"]     { --accent: #cfd3a6; --accent-ink: #5b6527; --tint: #f6f7ec; }
[data-theme="petrol"]   { --accent: #aed6d2; --accent-ink: #2c6c67; --tint: #eef7f6; }
[data-theme="himmel"]   { --accent: #bcd7ef; --accent-ink: #366592; --tint: #eff5fb; }
[data-theme="lavendel"] { --accent: #cfc6ee; --accent-ink: #5a4b9a; --tint: #f4f1fb; }

.swatches { align-items: center; }
.swatch.eigen { display: grid; place-items: center; color: rgba(0, 0, 0, .55); }
.swatch.eigen svg { width: 16px; height: 16px; }
#farbe { width: 48px; height: 44px; padding: 3px; border: 1px solid var(--line); border-radius: 12px; background: var(--card, #fff); cursor: pointer; }

/* ---------- Startseite: Kategorie-Kacheln ---------- */
.kt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; margin-bottom: 26px; }
@media (min-width: 600px) { .kt-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 22px; } }
/* Foto füllt die ganze Kachel, Name & Anzahl liegen unten auf einem dunklen Verlauf */
.kt {
  position: relative; display: block; aspect-ratio: 5 / 5.6; text-decoration: none; color: #fff; border-radius: 18px; overflow: hidden;
  background: var(--tint); box-shadow: 0 1px 2px rgba(60, 45, 30, .08), 0 10px 22px -14px rgba(60, 45, 30, .5);
  transition: transform .15s, box-shadow .15s;
}
.kt:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.kt-ph {
  position: absolute; inset: 0; display: block; background-color: var(--tint);
  background-image: linear-gradient(90deg, color-mix(in srgb, var(--accent) 40%, transparent) 50%, transparent 50%), linear-gradient(color-mix(in srgb, var(--accent) 40%, transparent) 50%, transparent 50%);
  background-size: 22px 22px;
}
.kt-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kt-label {
  position: absolute; left: 0; right: 0; bottom: 0; display: grid; justify-items: start; gap: 1px; padding: 40px 12px 12px; text-align: left;
  background: linear-gradient(to bottom, transparent, rgba(28, 20, 14, .55) 40%, rgba(28, 20, 14, .78));
}
.kt-label b { font: 700 25px/1.02 var(--hand); color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
.kt-label small { font-size: 12px; color: rgba(255, 255, 255, .85); }
@media (min-width: 600px) { .kt-label { padding: 50px 14px 14px; } .kt-label b { font-size: 28px; } }
/* zwei gleich große Knöpfe nebeneinander über den Kacheln */
.kt-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin: 4px 0 22px; }
/* darf umbrechen, sonst schiebt der Text auf schmalen Handys (z. B. Galaxy S23) die Seite über den Rand */
.kt-actions .btn { justify-content: center; min-height: 48px; min-width: 0; white-space: normal; text-align: center; line-height: 1.2; }
@media (min-width: 700px) { .kt-actions { display: flex; } .kt-actions .btn { flex: 0 1 auto; padding: 0 22px; } }
@media (max-width: 380px) { .kt-actions .btn { font-size: 13px; padding: 0 8px; } }
/* Kacheln ziehen und bearbeiten */
.kt-tip { font-size: 12.5px; color: var(--muted); }
.kt[data-kt] { position: relative; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
.kt img { -webkit-user-drag: none; }
.kt-pen { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--accent-ink); display: grid; place-items: center; box-shadow: 0 1px 4px rgba(0, 0, 0, .18); cursor: pointer; }
.kt-pen svg { width: 16px; height: 16px; }
@media (hover: hover) { .kt-pen { opacity: 0; transition: opacity .15s; } .kt:hover .kt-pen, .kt-pen:focus { opacity: 1; } .kt[data-kt] { cursor: grab; } }
/* Handy/Tablet: kein Stift auf jeder Kachel – gedrückt halten und loslassen öffnet dasselbe Menü */
@media (hover: none) { .kt-pen { display: none; } }
.kt.dragging { z-index: 20; pointer-events: none; box-shadow: 0 18px 40px -12px rgba(60, 45, 30, .5); transition: none; cursor: grabbing; }
.kt-grid.sorting .kt:not(.dragging) { transition: transform .15s; }
.kt-grid.sorting .kt:not(.dragging):hover { transform: none; }
.kt-add { display: grid; place-items: center; align-content: center; gap: 8px; width: 100%; border: 2px dashed var(--line); background: transparent; box-shadow: none; color: var(--accent-ink); cursor: pointer; font: inherit; }
.kt-add b { font: 700 22px/1 var(--hand); }
.kt-plus { width: 46px; height: 46px; border-radius: 50%; background: var(--tint); display: grid; place-items: center; }
.kt-plus svg { width: 24px; height: 24px; }
.fotopick { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; max-height: 42vh; overflow-y: auto; padding: 2px; }
.fotopick button { padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: pointer; aspect-ratio: 16 / 10; background: var(--tint); }
.fotopick button:hover { outline: 3px solid var(--accent-ink); }
.fotopick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.backbtn { min-height: 38px; font-size: 13.5px; }
.backbtn svg { width: 18px; height: 18px; }
.kt-n { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 999px; background: rgba(255, 255, 255, .3); font-size: 12px; font-weight: 600; }

/* Titelbild bis an den Rand, Begrüßung direkt auf dem Foto */
.cover.has-photo { background: var(--tint); min-height: 290px; border-radius: 0; overflow: hidden; padding-bottom: 26px; }
.cover.has-photo::before { inset: 0; border-radius: 0; box-shadow: none; }
.cover.has-photo::after { content: ''; position: absolute; inset: 0; z-index: 0; background: linear-gradient(to bottom, rgba(28, 20, 14, .15), rgba(28, 20, 14, .2) 35%, rgba(28, 20, 14, .62)); }
@media (min-width: 900px) { .cover.has-photo { min-height: 340px; border-radius: 0 22px 0 0; } }
.cover-hi { margin: 0 0 2px !important; font: 500 15px/1.2 var(--sans) !important; color: var(--accent-ink) !important; letter-spacing: .02em; }
.cover.has-photo .cover-card { background: none; box-shadow: none; padding: 0 8px; }
.cover.has-photo h1 { color: #fff; font-size: 56px; text-shadow: 0 2px 14px rgba(0, 0, 0, .45); }
.cover.has-photo .cover-card p { color: rgba(255, 255, 255, .92); text-shadow: 0 1px 6px rgba(0, 0, 0, .4); }
.cover.has-photo .cover-hi { color: #fff !important; font-size: 16px !important; }
.cover.has-photo .searchbar { box-shadow: 0 6px 20px -8px rgba(0, 0, 0, .5); }
/* Suche im Titelbild: so breit wie möglich (am PC bis 720 px) */
.cover .searchbar { width: 100%; max-width: 720px; margin-top: 22px; }
.cover .searchbar input { font-size: 16px; padding: 12px 4px; }

/* Kopfbild der übrigen Hauptseiten (Woche, Einkauf, Einstellungen …): niedriger, Knöpfe der Seite oben auf dem Bild */
.cover.pagehead { display: flex; flex-direction: column; align-items: stretch; justify-content: space-between; gap: 14px; min-height: 170px; padding: calc(10px + env(safe-area-inset-top)) 16px 22px; }
.pagehead .topbar { position: static; margin: 0; padding: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; border-radius: 0; }
.pagehead .cover-card { align-self: center; margin-top: auto; }
.cover.has-photo.pagehead h1 { font-size: 46px; }
.pagehead.has-photo .topbar .icon-btn, .pagehead.has-photo .topbar .backbtn { background: rgba(255, 255, 255, .9); color: var(--accent-ink); border-color: transparent; }
@media (min-width: 900px) { .cover.pagehead { min-height: 210px; padding: 18px 48px 26px; } }
@media (min-width: 1300px) { .cover.pagehead { padding: 18px 56px 28px; } }
/* Kategorie-Seite: Kachelbild als Kopf, Symbol, Name und Suche darauf */
.kat-cover .sticker-ic { display: grid; margin: 0 auto 10px; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.pagehead .searchbar { align-self: center; margin-top: 6px; }
/* Rezeptseite: Foto als Kopf bis an den Rand, Titel darauf, „Foto ändern“ unten rechts */
.cover.rz-cover { min-height: 300px; }
@media (min-width: 900px) { .cover.rz-cover { min-height: 420px; } }
.cover.rz-cover .r-title { max-width: 900px; font: 700 40px/1.05 var(--hand); }
@media (min-width: 700px) { .cover.rz-cover .r-title { font-size: 54px; } }
.cover.rz-cover .photo-btn {
  position: absolute; right: 14px; bottom: 14px; z-index: 3; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; border: 0; cursor: pointer; font-size: 13px;
  background: rgba(255, 255, 255, .9); color: var(--accent-ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}
.rz-cover .photo-btn svg { width: 16px; height: 16px; }
.cover.rz-cover .cover-card { margin-bottom: 18px; }
/* Handy: nur das Symbol, damit der Knopf den Titel nicht verdeckt */
@media (max-width: 699px) {
  .cover.rz-cover .photo-btn { padding: 9px; right: 12px; bottom: 12px; }
  .rz-cover .photo-btn span { display: none; }
  .cover.rz-cover .cover-card { margin-bottom: 34px; }
}
.rz-printimg { display: none; }
/* ohne feste Kopfzeile: Umschalter Zutaten/Zubereitung oben am Rand festhalten */
.rz-cover ~ .recipe .r-switch { top: calc(8px + env(safe-area-inset-top)); }
@media print {
  .cover.rz-cover { min-height: 0; padding: 0; margin: 0 0 12px; background: none; }
  .rz-cover::before, .rz-cover::after, .rz-cover .topbar, .rz-cover .photo-btn { display: none !important; }
  .rz-printimg { display: block; width: 100%; max-height: 70mm; object-fit: cover; border-radius: 10px; margin-bottom: 10px; }
  .cover.rz-cover .r-title { color: var(--ink); text-shadow: none; font-size: 34px; }
}

/* Rezeptkarte ohne eigenes Foto: Bild der Kategorie, etwas zurückgenommen */
.card .ph.stock img { opacity: .82; filter: saturate(.8); }

/* Hinweis mit Knopf („Rückgängig“) */
.toast.act { pointer-events: auto; display: flex; align-items: center; gap: 14px; padding-right: 8px; width: max-content; white-space: nowrap; }
.toast button { border: 0; background: rgba(255, 255, 255, .14); color: #fff; font: 600 13.5px/1 var(--sans); padding: 8px 12px; border-radius: 999px; cursor: pointer; }

/* Sicherungsseite */
.syncline { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 16px; font-size: 13.5px; color: var(--muted); }
.syncline svg { width: 17px; height: 17px; flex: none; margin-top: 1px; color: var(--accent-ink); }
.notfall summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; }
.notfall summary::-webkit-details-marker { display: none; }
.notfall summary::before { content: '›'; font-size: 22px; line-height: 1; color: var(--muted); transition: transform .15s; }
.notfall[open] summary::before { transform: rotate(90deg); }
.notfall summary h3 { margin: 0; font-size: 16px; }

/* Filter-Knopf über den Rezeptlisten */
.fbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 10px; }
.fbtn { min-height: 38px; font-size: 13.5px; }
.fbtn.on { background: var(--tint); border-color: var(--accent-ink); color: var(--accent-ink); }
#fchips { margin: 0 0 14px; }
.fnote { flex-basis: 100%; font-size: 12px; margin-top: 2px; }

/* Einstellungen: Übersicht mit Unterseiten */
/* Kopfzeile: Initialen, Name, eine Zeile mit Zahlen */
.set-top { display: flex; align-items: center; gap: 16px; padding: calc(26px + env(safe-area-inset-top)) 2px 6px; }
.set-top .avatar.big { width: 58px; height: 58px; margin: 0; font-size: 20px; flex: none; box-shadow: none; }
.set-top h1 { margin: 0; font: 700 34px/1.05 var(--hand); color: var(--accent-ink); }
.set-top p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
/* Bereiche als Kacheln statt Liste mit Pfeilen */
.set-title { margin: 26px 4px 10px; font: 600 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.setgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 600px) { .setgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
.settile {
  display: grid; align-content: start; gap: 2px; min-width: 0; padding: 14px; border-radius: 18px;
  background: var(--card, #fff); border: 1px solid var(--line); text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s;
}
.settile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.settile b { font-weight: 500; font-size: 15px; hyphens: auto; overflow-wrap: break-word; }
@media (max-width: 420px) { .settile b { font-size: 14px; } }
.settile small { font-size: 12px; line-height: 1.35; color: var(--muted); }
.setic { width: 38px; height: 38px; margin-bottom: 8px; border-radius: 11px; background: var(--tint); color: var(--accent-ink); display: grid; place-items: center; }
.setic svg { width: 19px; height: 19px; }
.set-logout { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin: 26px 0 8px; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--card, #fff); color: #b3261e; font: 500 15px/1 var(--sans); cursor: pointer; }
.set-logout svg { width: 18px; height: 18px; }
.set-logout:hover { background: #fdf0ef; }
.set-h { margin: 6px 0 16px; font: 700 40px/1 var(--hand); color: var(--accent-ink); }

/* ---------- Menü: Handy unten, PC/iPad Seitenleiste links ---------- */
/* :nth-child(n) hebt die alten Register-Farben (style.css, extras.css) auf */
.tabs .ic { display: grid; place-items: center; flex: none; border-radius: 999px; transition: background .15s; }
.tabs .ic svg { width: 22px; height: 22px; fill: none; transform: none; }
.tabs a.on svg { fill: none; }

/* Handy: Leiste über die ganze Breite, 5 Bereiche + „Mehr“, aktiver Punkt farbig hinterlegt */
@media (max-width: 899px) {
  :root { --nav-h: 66px; }
  .tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); padding: 0 2px env(safe-area-inset-bottom); }
  .nav-brand, .nav-new, .nav-h, .nav-pc, .nav-me, .nav-out { display: none !important; }
  .tabs a, .tabs .nav-more {
    position: relative; min-width: 0; height: var(--nav-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    padding: 0; border: 0; background: none; text-decoration: none; color: var(--muted); font: 400 11px/1.1 var(--sans); cursor: pointer;
  }
  .tabs a span, .tabs .nav-more span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabs .ic { width: 50px; height: 30px; }
  .tabs a.on, .tabs .nav-more.on { color: var(--accent-ink); font-weight: 500; }
  .tabs a.on .ic, .tabs .nav-more.on .ic { background: color-mix(in srgb, var(--accent) 60%, var(--paper)); }
  .tabs .badge { top: 5px; left: calc(50% + 8px); }
}
@media (max-width: 380px) { .tabs a, .tabs .nav-more { font-size: 10.5px; } .tabs .ic { width: 44px; } }

/* „Mehr“ als Blatt von unten */
.menu .more-sheet { gap: 0; max-height: 88vh; overflow-y: auto; padding-top: 10px; }
.more-sheet::before { content: ''; justify-self: center; width: 40px; height: 4px; margin-bottom: 4px; border-radius: 2px; background: var(--line); }
.more-h { margin: 14px 8px 4px; font: 600 11px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.more-row { display: flex; align-items: center; gap: 14px; padding: 11px 8px; border-radius: 12px; text-decoration: none; color: inherit; font-size: 15px; }
.more-row:hover, .more-row:active { background: var(--tint); }
.more-row svg { color: var(--accent-ink); }
.more-row small { display: block; font-size: 12.5px; color: var(--muted); }
.menu .more-sheet { position: relative; }
.more-sheet h3 + .more-h { margin-top: 4px; }
/* Schließen-X nur, wo das Blatt mittig schwebt (Tablet/PC); am Handy daneben tippen oder nach unten wischen */
.sheet-x { position: absolute; top: 10px; right: 10px; display: none; }
@media (min-width: 600px) { .sheet-x { display: grid; } .more-sheet::before { display: none; } }
.more-me { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 12px 8px 0; border-top: 1px solid var(--line); }
.more-me .avatar { width: 36px; height: 36px; font-size: 12px; flex: none; }
.more-me b { flex: 1; min-width: 0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu .more-me .btn { min-height: 40px; color: #b3261e; }
.more-me .btn svg { width: 18px; height: 18px; }

/* PC/iPad: Seitenleiste links mit Namen, Gruppen, unten Konto & Abmelden */
@media (min-width: 900px) {
  /* Leiste und Seite sind ein Stück: wie ein Buch mit farbigem Rücken */
  .book { align-items: stretch; border-radius: 22px; background: color-mix(in srgb, var(--accent) 30%, var(--paper)); box-shadow: var(--shadow); }
  /* „Neues Rezept“ steht fest in der Leiste statt schwebend über den Kacheln */
  .fab { display: none; }
  .nav-new {
    display: flex; align-items: center; gap: 10px; margin: 0 0 6px; padding: 11px 14px; border: 0; border-radius: 14px;
    background: var(--accent-ink); color: var(--paper); font: 500 14.5px/1 var(--sans); cursor: pointer; box-shadow: var(--shadow);
  }
  .nav-new:hover { filter: brightness(1.08); }
  .page { border-radius: 0 22px 22px 0; box-shadow: none; }
  /* Einstellungen & Co.: Inhalt mittig, damit links und rechts gleich viel Rand bleibt */
  .set-top, .set-h, .settings { max-width: 1080px; margin-left: auto; margin-right: auto; }
  .tabs {
    order: -1; flex: none; width: 240px; position: sticky; top: 28px; height: calc(100vh - 56px); align-self: flex-start;
    display: flex; flex-direction: column; gap: 2px; padding: 16px 12px 12px; overflow-y: auto; scrollbar-width: none;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .nav-more { display: none; }
  .nav-brand { display: flex; align-items: center; gap: 10px; padding: 6px 12px 14px; font: 600 16px/1 var(--sans); }
  .nav-brand .dots { display: inline-flex; gap: 2px; background: var(--paper); padding: 7px 6px; border-radius: 9px; box-shadow: var(--shadow); }
  .nav-brand .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-ink); }
  .nav-brand .dots i:nth-child(2) { transform: translateY(-3px); }
  .nav-h { margin: 16px 12px 6px; font: 600 11px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
  .tabs a:nth-child(n) {
    writing-mode: horizontal-tb; width: auto; height: auto; flex: none; flex-direction: row; justify-content: flex-start; gap: 10px;
    padding: 5px 12px 5px 8px; border-radius: 14px; background: none; box-shadow: none; color: var(--ink); font-size: 14.5px; letter-spacing: 0;
    transition: background .15s;
  }
  .tabs a:nth-child(n):hover { width: auto; background: color-mix(in srgb, var(--accent) 25%, transparent); }
  .tabs a.on:nth-child(n) { background: var(--paper); color: var(--accent-ink); font-weight: 500; box-shadow: var(--shadow); }
  .tabs .ic { width: 34px; height: 34px; border-radius: 10px; }
  .tabs .ic svg { width: 20px; height: 20px; }
  .tabs a.on .ic { background: color-mix(in srgb, var(--accent) 55%, var(--paper)); }
  .tabs .badge { position: static; margin-left: auto; writing-mode: horizontal-tb; }
  .nav-me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 14px 4px 6px 8px; border-top: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); }
  .nav-me .avatar { width: 34px; height: 34px; font-size: 12px; flex: none; }
  .nav-me b { flex: 1; min-width: 0; font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tabs a.nav-out:nth-child(n) { color: #b3261e; margin-bottom: 4px; }
  html[data-dark] .tabs a:nth-child(n) { color: var(--ink); }
  html[data-dark] .tabs a.on:nth-child(n) { color: var(--accent-ink); }
}
/* iPad quer & kleine Bildschirme: schmale Leiste nur mit Symbolen (Namen beim Drüberfahren) */
@media (min-width: 900px) and (max-width: 1099px) {
  .tabs { width: 74px; padding: 16px 8px 12px; }
  .nav-brand span:not(.dots), .tabs a > span, .nav-new span, .nav-me b { display: none; }
  .nav-new { justify-content: center; padding: 11px 0; }
  .nav-brand { justify-content: center; padding: 6px 0 10px; }
  .nav-h { display: block; height: 1px; margin: 10px 10px; background: color-mix(in srgb, var(--ink) 10%, transparent); font-size: 0; }
  .tabs a:nth-child(n) { justify-content: center; padding: 6px; }
  .tabs .badge { position: absolute; top: 2px; right: 2px; }
  .nav-me { flex-direction: column; padding: 12px 0 4px; }
}

/* Unterseite einer Kategorie */
.kat-imgbtn { margin-left: auto; min-height: 36px; font-size: 13px; }
.kat-head { display: flex; align-items: center; gap: 16px; margin: 4px 0 14px; }
.kat-head h1 { margin: 0; font: 700 42px/1 var(--hand); color: var(--accent-ink); }
.kat-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.kat-head + .searchbar { margin: 0 0 18px; max-width: 560px; }

/* Wochenplan: Starttag und Länge */
.wk-view { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: -6px 0 14px; font-size: 13px; color: var(--muted); }
.wk-view label { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.wk-view select { font-size: 13.5px; padding: 6px 10px; min-height: 0; }
.wk-day.past { opacity: .6; }

/* Wochenplan: Monatsansicht als kompakter Kalender */
.mon-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.mon-wd { text-align: center; font-size: 11px; font-weight: 600; color: var(--muted); padding: 4px 0; text-transform: uppercase; letter-spacing: .06em; }
.mon-day { min-height: 74px; display: flex; flex-direction: column; align-items: stretch; gap: 2px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--card, #fff); text-align: left; cursor: pointer; font: inherit; color: inherit; overflow: hidden; }
.mon-day:hover { border-color: var(--accent-ink); }
.mon-day.out { opacity: .4; }
.mon-day.past:not(.out) { opacity: .65; }
.mon-day.today { border-color: var(--accent-ink); box-shadow: 0 0 0 2px var(--tint); }
.mon-no { font: 700 17px/1 var(--hand); color: var(--accent-ink); }
.mon-e { display: block; font-size: 10.5px; line-height: 1.25; padding: 2px 4px; border-radius: 5px; background: var(--tint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mon-more { font-size: 10px; color: var(--muted); }
@media (min-width: 700px) {
  .mon-grid { gap: 8px; }
  .mon-day { min-height: 110px; padding: 8px; }
  .mon-no { font-size: 21px; }
  .mon-e { font-size: 12.5px; }
}

/* Wochenplan: Name & Hinweis unter dem Gericht */
.wk-rec small { display: block; font-size: 11.5px; color: var(--muted); }

/* ---------- Kochmodus: Sprache ---------- */
.cookmode header .icon-btn.on { background: var(--accent-ink); color: var(--paper); }
.cm-voice { margin: 0; padding: 8px 16px; text-align: center; font-size: 13.5px; background: var(--tint); color: var(--accent-ink); }

/* ---------- Einkauf: Grundvorrat ---------- */
.shop-group.vorrat { opacity: .7; }
.shop-group.vorrat h4 { color: var(--muted); }
.lined li .stock { opacity: .35; width: 34px; height: 34px; }
.lined li .stock svg { width: 16px; height: 16px; }
.lined li .stock:hover, .lined li .stock.on { opacity: .9; color: var(--accent-ink); }
.vorrat-hint { margin: 22px 0 0; font-size: 13px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.vorrat-hint svg { width: 15px; height: 15px; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--accent-ink); text-decoration: underline; cursor: pointer; font-size: inherit; }

/* ---------- Papierkorb & Einlesen ---------- */
.trash-it, .ein-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.trash-it img, .ein-row img, .ein-row .wk-ph, .trash-it .wk-ph { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex: none; }
.trash-it small, .ein-row small { display: block; font-size: 12px; color: var(--muted); }
.ein-list li { padding: 6px 2px; }
.ein-row { cursor: pointer; width: 100%; }
.ein-row input { width: 20px; height: 20px; flex: none; accent-color: var(--accent-ink); }

/* ---------- Leseseite für geteilte Links ---------- */
.pub-bar .brand { display: flex; align-items: center; gap: 8px; font: 600 15px/1 var(--sans); }
.pub-bar .brand .dots { display: inline-flex; gap: 2px; background: var(--tint); padding: 6px 5px; border-radius: 8px; }
.pub-bar .brand .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-ink); }
.pub-bar .brand .dots i:nth-child(2) { transform: translateY(-3px); }
.pub-foot { text-align: center; color: var(--muted); font-size: 13px; margin: 30px 0 10px; }
#publinkurl { font-size: 13px; }

/* ---------- Zwei-Faktor-Anmeldung ---------- */
.tfa-steps { margin: 12px 0 14px; padding-left: 22px; display: grid; gap: 14px; line-height: 1.5; }
.tfa-qr { display: block; width: max-content; margin: 10px 0; padding: 4px; background: #fff; border-radius: 12px; }
.tfa-qr svg { display: block; width: 200px; height: 200px; }
.tfa-key { display: inline-block; margin-top: 4px; padding: 4px 8px; border-radius: 8px; background: var(--tint); font: 600 14px/1.4 ui-monospace, Consolas, monospace; letter-spacing: .04em; word-break: break-all; }
.tfa-list { list-style: none; padding: 0; margin: 12px 0 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.tfa-list li { padding: 9px 10px; border: 1px dashed var(--line); border-radius: 10px; font: 600 17px/1 ui-monospace, Consolas, monospace; text-align: center; }
.tfa-on svg { width: 17px; height: 17px; vertical-align: -3px; color: var(--accent-ink); }
.auth-form .sp { margin: 2px 0 16px; }

/* ---------- Große Bildschirme (PC) ---------- */
@media (min-width: 1300px) {
  .book { max-width: 1500px; }
  .page { padding: 0 56px 56px; }
  .topbar { margin: 0 -56px; padding: 18px 56px 12px; }
  .cover { margin: 0 -56px 28px; padding: 56px 56px 44px; }
  .settings { max-width: 1080px; }
  .editor { max-width: 1080px; }
  /* Wochenplan wie ein Kalender: alle 7 Tage nebeneinander */
  .wk-grid { grid-template-columns: repeat(7, 1fr); gap: 10px; }
  .wk-day { padding: 10px; min-height: 220px; }
  .wk-rec { flex-direction: column; align-items: stretch; gap: 6px; }
  .wk-rec img, .wk-rec .wk-ph { width: 100%; height: auto; aspect-ratio: 4 / 3; }
  .wk-item { align-items: flex-start; }
}
@media screen and (min-width: 1100px) {
  /* Rezeptseite: Zutaten links und beim Scrollen sichtbar, Zubereitung rechts */
  .rz { max-width: 1240px; }
  .r-cols[data-show] { display: grid; grid-template-columns: minmax(320px, 390px) 1fr; gap: 44px; align-items: start; }
  .rz-ing { position: sticky; top: 80px; max-height: calc(100vh - 100px); overflow-y: auto; margin-bottom: 0; }
  .rz-inglist { columns: 1; }
  .rz-hero img { max-height: 480px; }
}
