/* ---------- Rezeptseite wie ein Kochbuch: großes Foto, Zutaten breit, Schritte als Ablauf ---------- */
.rz { max-width: 920px; margin: 0 auto; padding-top: 6px; }

/* Großes Foto oben, mit Klebestreifen */
.rz-hero { position: relative; margin: 6px 0 22px; }
.rz-hero img { width: 100%; aspect-ratio: 16 / 9; max-height: 440px; object-fit: cover; border-radius: 14px; box-shadow: var(--shadow); background: var(--tint); }
.rz-hero::before, .rz-hero::after {
  content: ''; position: absolute; z-index: 2; width: 110px; height: 28px;
  background: color-mix(in srgb, var(--accent) 75%, transparent);
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.35) 0 6px, transparent 6px 12px);
}
.rz-hero::before { top: -11px; left: 26px; transform: rotate(-7deg); }
.rz-hero::after { bottom: -11px; right: 26px; transform: rotate(-5deg); }

/* Titel & Infozeile */
.rz-head { text-align: center; margin-bottom: 22px; }
.rz-head .r-title { font-size: 32px; }
@media (min-width: 700px) { .rz-head .r-title { font-size: 40px; } }
.rz-head .r-desc { max-width: 640px; margin: 10px auto 0; }
.rz-facts {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0; margin: 18px auto 0;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; width: fit-content; max-width: 100%;
}
.rz-fact { display: flex; align-items: center; gap: 10px; padding: 10px 18px; text-align: left; }
.rz-fact + .rz-fact { border-left: 1px solid var(--line); }
.rz-fact svg { width: 20px; height: 20px; color: var(--accent-ink); }
.rz-fact small { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rz-fact b { display: block; font-weight: 500; font-size: 15px; }
@media (max-width: 520px) {
  .rz-facts { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .rz-fact { padding: 10px 14px; }
  .rz-fact + .rz-fact { border-left: 0; }
  .rz-fact:nth-child(even) { border-left: 1px solid var(--line); }
  .rz-fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}
.rz-hint {
  display: flex; align-items: flex-start; gap: 8px; max-width: 560px; margin: 12px auto 0; padding: 9px 14px;
  border-radius: 12px; font-size: 13.5px; line-height: 1.5; text-align: left;
  background: color-mix(in srgb, var(--marker) 60%, #fff);
}
.rz-hint svg { flex: none; width: 17px; height: 17px; margin-top: 2px; color: var(--accent-ink); }
.rz-meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 14px; }
.rz-tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px 3px 3px; border-radius: 999px; background: var(--tint); font-size: 13px; text-decoration: none; color: var(--accent-ink); }
.rz-meta .sharebadge { margin-top: 0; }
/* Favorit / Bearbeiten unter dem Titel */
.rz-act {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card, #fff); color: var(--accent-ink); font: inherit; font-size: 13.5px;
  text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s;
}
.rz-act svg { width: 16px; height: 16px; }
.rz-act:hover { border-color: var(--accent-ink); }
.rz-act.on { background: var(--tint); border-color: var(--accent-ink); font-weight: 500; }
.rz-act.on svg { fill: currentColor; }

/* Knopfleiste unter dem Rezept: so breit wie der Inhalt, Kochmodus vorne, Rest im Blatt „Mehr“ */
.actions.rz-actions { max-width: 900px; margin-left: auto; margin-right: auto; }
@media (max-width: 599px) {
  .actions.rz-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .actions.rz-actions #cookmode { grid-column: 1 / -1; justify-content: center; min-height: 52px; }
  .actions.rz-actions .btn { justify-content: center; }
}
.rz-b .var-chips { justify-content: center; }
.more-sheet button.more-row { width: 100%; border: 0; background: none; font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.more-sheet .more-row.danger, .more-sheet .more-row.danger svg { color: var(--danger, #b3261e); }

/* Kochliste: gleiches Rezept-Aussehen, das Foto nur als flache Karte (oben steht schon das Kopfbild der Seite) */
.rz-incook .rz-hero img { aspect-ratio: auto; height: 240px; max-height: none; }
.cook-tabs { max-width: 900px; margin-left: auto; margin-right: auto; }
/* Einkaufsliste: runde Häkchen wie bei den Zutaten */
.shop-group .lined .tick { border-radius: 50%; }

/* ---------- Unterer Teil: Kochmodus oben; unten nur eine schlichte Zeile Sterne · Gekocht! · Notiz ---------- */
.rz-head .rz-start { margin: 20px auto 0; min-height: 52px; padding: 0 28px; font-size: 16px; }
.rz-done {
  max-width: 900px; margin: 36px auto 0; padding: 22px 0 0; border-top: 1px dashed var(--line);
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 14px;
}
.rz-done .stars { margin: 0; }
.rz-done .stars button { font-size: 30px; }
.rz-done .btn { min-height: 42px; }
.rz-done .btn[hidden] { display: none; }
/* Notiz und alte Fotos in einer eigenen Zeile darunter */
.rz-done-more { flex: 0 0 100%; display: grid; justify-items: center; gap: 12px; }
.rz-done-more:not(:has(textarea:not([hidden]), .rz-done-pics)) { display: none; }
.rz-done textarea { width: 100%; max-width: 560px; min-height: 0; font: 500 21px/1.4 var(--hand); background: var(--card, #fff); }
.rz-done textarea[hidden] { display: none; }
/* früher hochgeladene Nachgekocht-Fotos, nur noch klein */
.rz-done-pics { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.rz-done-pics figure { position: relative; margin: 0; }
.rz-done-pics img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; }
.rz-done-pics .del { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--card, #fff); color: #b3261e; display: grid; place-items: center; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.rz-done-pics .del svg { width: 13px; height: 13px; }
.rz-small { max-width: 900px; margin: 18px auto 10px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.rz-small .btn { min-height: 38px; font-size: 13.5px; color: var(--muted); }
.rz-small .btn svg { width: 16px; height: 16px; }
@media print { .rz-done, .rz-small, .rz-head .rz-start { display: none !important; } }

/* Zum Aufklappen: Meine Bewertung, Nachgekocht (zusammen in einer Karte) und Nährwerte */
.rz-folds { margin: 26px 0 0; border: 1px solid var(--line); border-radius: 18px; background: var(--card, #fff); overflow: hidden; }
details.rz-fold { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; }
.rz-folds details.rz-fold + details.rz-fold { border-top: 1px solid var(--line); }
.rz-fold > summary { display: flex; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; list-style: none; }
.rz-fold > summary::-webkit-details-marker { display: none; }
.rz-fold > summary > svg { flex: none; width: 20px; height: 20px; color: var(--accent-ink); }
.rz-fold > summary .label { flex: 1; margin: 0; }
.rz-fold > summary small { color: var(--muted); font-size: 13px; text-align: right; }
.rz-fold > summary::after {
  content: ''; flex: none; width: 8px; height: 8px; margin: -4px 4px 0 2px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s;
}
.rz-fold[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.rz-fold > summary:hover { background: color-mix(in srgb, var(--tint) 50%, transparent); }
.rz-fold-in { padding: 0 18px 18px; }
.rz-fold-in > p.muted { margin: 0 0 12px; font-size: 13.5px; }
.rz-fold-in textarea { min-height: 0; font: 500 21px/1.4 var(--hand); background: transparent; }
.rz-ing details.rz-fold.naehr { margin-top: 14px; border-top: 1px dashed var(--line); }
.rz-ing details.rz-fold.naehr > summary { padding: 14px 2px 2px; }
.rz-ing details.rz-fold.naehr .rz-fold-in { padding: 12px 2px 0; }

/* ---------- Rezeptkarten in den Listen: Titel in Schreibschrift wie auf der Rezeptseite, Herz zum Antippen ---------- */
.card { background: var(--card, #fff); border-radius: 18px; }
.card .body { position: relative; padding: 12px 14px 14px; }
.card .body.has-kat { padding-top: 22px; }
.card .body .card-kat { position: absolute; left: 12px; right: auto; top: -17px; }
.card .body .card-kat .sticker-ic { box-shadow: 0 0 0 3px var(--card, #fff); }
.card h3 { font: 700 21px/1.12 var(--hand); color: var(--accent-ink); }
.card .meta { flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.card .meta > span { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; background: var(--tint); color: var(--accent-ink); font-size: 12px; }
.card .meta .m-stars { color: #d49a1a; letter-spacing: 1px; }
.card .fav-btn {
  position: absolute; top: 8px; right: 8px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .92); color: var(--accent-ink); cursor: pointer; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); transition: transform .15s;
}
.card .fav-btn svg { width: 18px; height: 18px; }
.card .fav-btn.on svg { fill: currentColor; }
.card .fav-btn:hover { transform: scale(1.1); }

/* Timer-Knopf in der Schritt-Karte */
.rz-timers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
button.rz-timer {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--tint); color: var(--accent-ink);
  font: inherit; font-size: 13.5px; font-weight: 500; white-space: nowrap; cursor: pointer;
}
button.rz-timer svg { width: 16px; height: 16px; margin: 0; vertical-align: 0; }
button.rz-timer:hover { border-color: var(--accent-ink); }
.rz-step.done button.rz-timer { opacity: .5; }
/* im Text selbst nur noch unterstrichen – der Knopf darunter startet den Timer */
.rz-stepbody p .timer-link svg, .cm-text .timer-link svg { display: none; }

/* Umschalter nur auf dem Handy */
.r-switch {
  position: sticky; top: calc(62px + env(safe-area-inset-top)); z-index: 15;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 0 0 18px;
  border-radius: 999px; background: color-mix(in srgb, var(--tint) 92%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 16px -12px rgba(60, 45, 30, .5);
}
.r-switch button { min-height: 42px; border: 0; border-radius: 999px; background: none; cursor: pointer; font-size: 14.5px; color: var(--muted); }
.r-switch button.on { background: var(--paper); color: var(--accent-ink); font-weight: 500; box-shadow: 0 1px 3px rgba(60, 45, 30, .14); }
.r-cols[data-show="ing"] .pane-steps, .r-cols[data-show="steps"] .pane-ing { display: none; }
@media (min-width: 760px) {
  .r-switch { display: none; }
  .r-cols[data-show] .pane-steps, .r-cols[data-show] .pane-ing { display: block; }
}

/* Zutaten: volle Breite, ab Tablet zwei Spalten */
.rz-ing { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px 20px; margin-bottom: 30px; }
.rz-sec-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.rz-sec-head .label { margin: 0; }
.rz-sec-head .servings { margin: 0; background: var(--tint); border-radius: 999px; padding: 3px; }
.rz-sec-head .servings .icon-btn { width: 34px; height: 34px; background: #fff; }
.rz-sec-head .servings strong { min-width: 100px; font-size: 14px; }
.rz-inglist { list-style: none; margin: 4px 0 16px; padding: 0; }
@media (min-width: 760px) { .rz-inglist { columns: 2; column-gap: 34px; } }
.rz-inglist li {
  display: flex; align-items: flex-start; gap: 12px; padding: 9px 2px; border-bottom: 1px dashed var(--line);
  break-inside: avoid; cursor: pointer; line-height: 1.45;
}
.rz-inglist li.sec { border: 0; font: 700 22px/1 var(--hand); color: var(--accent-ink); padding-top: 14px; cursor: default; column-span: all; }
.rz-inglist .tick { width: 20px; height: 20px; border-radius: 50%; margin-top: 1px; }
.rz-inglist .amt { font-weight: 600; color: var(--ink); white-space: nowrap; border-radius: 4px; cursor: pointer; }
.rz-inglist .amt:hover { background: var(--tint); }
.rz-inglist li.done .rz-ingtxt { color: var(--muted); text-decoration: line-through; }
.rz-ing #shop2 { width: 100%; }

/* Zubereitung: nummerierter Ablauf mit Verbindungslinie, Foto unter dem Text */
.rz-steps { margin-bottom: 10px; }
.rz-steplist { list-style: none; margin: 12px 0 0; padding: 0; }
.rz-step { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding-bottom: 26px; }
.rz-step::before { content: ''; position: absolute; left: 21px; top: 46px; bottom: 6px; width: 2px; background: var(--line); }
.rz-step:last-child::before { display: none; }
.rz-step .no {
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--accent); background: var(--paper);
  display: grid; place-items: center; cursor: pointer; padding: 0; color: var(--accent-ink);
  font: 700 22px/1 var(--hand); transform: none;
}
.rz-step .no svg { display: none; width: 20px; height: 20px; stroke-width: 3; }
.rz-step.done .no { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.rz-step.done .no .n { display: none; }
.rz-step.done .no svg { display: block; }
.rz-stepbody { padding-top: 9px; min-width: 0; }
.rz-stepbody p { margin: 0; line-height: 1.65; font-size: 15.5px; }
.rz-step.done .rz-stepbody p { color: var(--muted); }
.rz-stepbody .tip { margin-top: 10px; padding: 9px 14px; border-radius: 12px; font-size: 14px; background: color-mix(in srgb, var(--marker) 60%, #fff); }
.rz-stepbody .tip b { font: 700 18px/1 var(--hand); color: var(--accent-ink); margin-right: 4px; }
/* nie größer als das Original zeigen (manche Seiten liefern nur 225 px kleine Schrittfotos) */
.rz-stepimg {
  display: block; width: auto; height: auto; max-width: min(100%, 480px); margin-top: 12px;
  border-radius: 12px; box-shadow: 0 1px 2px rgba(60,45,30,.06), 0 10px 24px -14px rgba(60,45,30,.35); background: var(--tint);
}
.rz-step.done .rz-stepimg { opacity: .6; }
.rz-steplist li.sec { font: 700 24px/1 var(--hand); color: var(--accent-ink); margin: 6px 0 14px; }

/* ---------- Oben ruhig: Foto als Karte, Titel in Schreibschrift, Zeiten als Chips ---------- */
.rz-b .rz-hero::before, .rz-b .rz-hero::after { display: none; }
.rz-b .rz-hero img { border-radius: 20px; box-shadow: 0 1px 2px rgba(60, 45, 30, .08), 0 14px 30px -18px rgba(60, 45, 30, .55); }
.rz-b .rz-head .r-title { font: 700 44px/1.05 var(--hand); color: var(--accent-ink); }
@media (min-width: 700px) { .rz-b .rz-head .r-title { font-size: 56px; } }
.rz-b .rz-facts { background: none; border: 0; gap: 8px; }
.rz-b .rz-fact { background: var(--tint); border-radius: 999px; padding: 7px 16px 7px 12px; border: 0 !important; }
.rz-b .rz-fact svg { width: 18px; height: 18px; }
@media (max-width: 520px) { .rz-b .rz-facts { display: flex; } }
.rz-stepzut { display: none; }

/* Jeder Schritt eine Karte mit seinen Zutaten, oben die ganze Liste zum Einkaufen */
.rz-l3 .r-switch { display: none !important; }
.rz-l3 .r-cols[data-show] { display: block; max-width: 900px; margin: 0 auto; }
.rz-l3 .r-cols .pane-ing, .rz-l3 .r-cols .pane-steps { display: block !important; }
.rz-l3 .rz-ing { position: static; max-height: none; margin-bottom: 64px; }
/* „Zubereitung“ deutlich vom Zutaten-Kasten absetzen, etwas Luft bis zur ersten Karte */
.rz-l3 .rz-steps > .label { margin: 0 0 18px; }
@media (min-width: 760px) { .rz-l3 .rz-inglist { columns: 3; } }
.rz-l3 .rz-step { background: var(--card, #fff); border: 1px solid var(--line); border-radius: 18px; padding: 16px; margin-bottom: 14px; }
.rz-l3 .rz-step::before { display: none; }
.rz-l3 .rz-stepbody { padding-top: 2px; }
.rz-l3 .rz-stepzut { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.rz-stepzut span { padding: 3px 11px; border-radius: 999px; background: var(--tint); color: var(--accent-ink); font-size: 13px; }

/* Foto bis an den Rand, Pfeil darauf, Titel darunter (layout.css kommt später, deshalb die längeren Selektoren) */
.cover.has-photo.rz-plaincover { min-height: 300px; padding-bottom: 0; }
@media (min-width: 900px) { .cover.has-photo.rz-plaincover { min-height: 440px; } }
.cover.has-photo.rz-plaincover::after { background: linear-gradient(to bottom, rgba(28, 20, 14, .28), transparent 35%); }
.cover.rz-cover.rz-plaincover .photo-btn { bottom: 14px; }

/* ---------- Bearbeiten: sieht aus wie die Rezeptseite ---------- */
.cover.rz-cover.ed-cover:not(.has-photo) { min-height: 200px; }
.cover.rz-cover.ed-cover .ed-imgx { right: auto; left: 14px; padding: 9px; }
.cover.rz-cover.ed-cover .ed-imgx[hidden] { display: none; }
.ed-neu { max-width: 900px; }
.ed-head { text-align: center; margin: 4px 0 30px; }
.ed-kicker { margin: 0 0 2px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ed-neu .ed-title {
  width: 100%; padding: 4px 0 8px; border: 0; border-bottom: 2px dashed var(--line); border-radius: 0; background: none; box-shadow: none;
  text-align: center; font: 700 36px/1.15 var(--hand); color: var(--accent-ink); min-height: 0; resize: none; overflow: hidden;
}
.ed-neu .ed-title:focus { outline: none; border-bottom-color: var(--accent-ink); }
@media (min-width: 700px) { .ed-neu .ed-title { font-size: 52px; } }
.ed-neu .ed-desc {
  display: block; width: 100%; max-width: 640px; min-height: 0; margin: 14px auto 0; resize: none; overflow: hidden;
  border: 1px dashed var(--line); background: none; text-align: center; font-size: 15px; line-height: 1.5;
}
.ed-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.ed-fact { display: flex; align-items: center; gap: 10px; padding: 7px 16px 7px 12px; border-radius: 999px; background: var(--tint); cursor: text; text-align: left; }
.ed-fact svg { width: 18px; height: 18px; flex: none; color: var(--accent-ink); }
.ed-fact small { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ed-fact input {
  width: 58px; height: auto; min-height: 0; padding: 0; border: 0; background: none; box-shadow: none;
  font: 500 16px/1.3 var(--sans); color: var(--ink); -moz-appearance: textfield; appearance: textfield;
}
.ed-fact input::-webkit-inner-spin-button, .ed-fact input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.ed-fact input:focus { outline: none; }
.ed-fact:focus-within { box-shadow: 0 0 0 2px var(--accent-ink); }
.ed-fact em { font-style: normal; font-size: 13px; color: var(--muted); }
.ed-oven { max-width: 640px; margin: 18px auto 0; text-align: left; align-items: end; }
.ed-oven .field { margin-bottom: 0; }
/* Schritte ohne grauen Rahmen drumherum, jeder Schritt eine weiße Karte wie auf der Rezeptseite */
.ed-neu .ed-steps { background: none; border: 0; padding: 0; margin-top: 40px; }
.ed-neu .stepedit li { background: var(--card, #fff); border-radius: 18px; padding: 14px; }
/* „Nächster Schritt“: gestrichelte Karte mit der nächsten Nummer, darunter zwei leise Links */
.se-add {
  display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 10px; padding: 12px 14px;
  border: 2px dashed var(--line); border-radius: 18px; background: none; color: var(--accent-ink);
  font: inherit; font-size: 15px; text-align: left; cursor: pointer; transition: background .15s, border-color .15s;
}
.se-add:hover { border-color: var(--accent-ink); background: var(--tint); }
.se-add[hidden] { display: none; }
.se-addno { width: 34px; height: 34px; flex: none; border-radius: 50%; border: 2px dashed var(--accent); display: grid; place-items: center; font: 700 19px/1 var(--hand); }
.se-links { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 4px 18px; margin-top: 8px; font-size: 13px; }
.se-links .linkbtn { color: var(--muted); text-decoration: none; }
.se-links .linkbtn:hover { color: var(--accent-ink); text-decoration: underline; }
.se-links .linkbtn[hidden] { display: none; }
/* Kategorien: gewählte als Chips (antippen = entfernen), dahinter „+ Kategorie“ */
.ed-kats { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 18px; }
.ed-kats .chip svg:last-child { width: 13px; height: 13px; margin-left: 2px; opacity: .6; }
.ed-addkat { border-style: dashed; color: var(--accent-ink); }
.ed-addkat svg { width: 15px; height: 15px; }
.ed-guess { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
/* Blatt „Kategorien“: Raster aus kleinen Kacheln, gewählte mit Farbe und Häkchen */
.menu .katsheet { max-width: 680px; padding: 22px 20px 20px; }
.katsheet h3 { margin: 0; }
.katsub { margin: 4px 0 14px; text-align: center; font-size: 13.5px; color: var(--muted); }
.katgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-height: 52vh; overflow-y: auto; padding: 2px; }
@media (min-width: 600px) { .katgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.kg {
  display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 10px 8px 8px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--card, #fff); color: var(--ink); font: inherit; font-size: 14px; text-align: left; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.kg:hover { border-color: color-mix(in srgb, var(--accent-ink) 40%, var(--line)); }
.kg .sticker-ic { flex: none; width: 32px; height: 32px; }
.kg > span { flex: 1; min-width: 0; line-height: 1.2; overflow-wrap: anywhere; hyphens: auto; }
.kg .ck { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; }
.kg .ck svg { width: 13px; height: 13px; opacity: 0; stroke-width: 3; }
.kg.on { background: var(--tint); border-color: var(--accent-ink); color: var(--accent-ink); font-weight: 500; }
.kg.on .ck { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.kg.on .ck svg { opacity: 1; }
.katnew { display: flex; gap: 8px; margin-top: 14px; }
.katnew input { flex: 1; min-width: 0; }
.katnew .icon-btn { flex: none; width: 46px; height: auto; border: 1px solid var(--line); border-radius: 12px; }
.menu .katsheet .btn.katdone { width: 100%; justify-content: center; margin-top: 12px; min-height: 50px; }
/* Notiz, Quelle, Freigabe ganz unten nur als kleine Knöpfe */
.ed-extras { margin: 34px 0 30px; }
.ed-minis { display: flex; flex-wrap: wrap; gap: 8px; }
.ed-mini {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 999px;
  border: 1px dashed var(--line); background: none; color: var(--accent-ink); font: inherit; font-size: 14px; cursor: pointer;
}
.ed-mini svg { width: 16px; height: 16px; }
.ed-mini[hidden] { display: none; }
/* am PC steht „Speichern“ schon oben auf dem Foto */
@media (min-width: 900px) { .ed-neu .ed-save { display: none; } }
/* Handy: Speichern bleibt beim Scrollen unten sichtbar */
@media (max-width: 899px) {
  .ed-neu .ed-save {
    position: sticky; bottom: calc(var(--nav-h, 66px) + 10px + env(safe-area-inset-bottom)); z-index: 12; justify-content: center;
    padding: 8px; border-radius: 999px; background: color-mix(in srgb, var(--paper) 92%, transparent);
    box-shadow: 0 8px 24px -12px rgba(60, 45, 30, .5);
  }
}

@media print {
  .r-switch, #shop2, .rz-folds, .rz-timers { display: none !important; }
  .r-cols[data-show] .pane-steps, .r-cols[data-show] .pane-ing { display: block !important; }
  .rz-hero img { max-height: 70mm; box-shadow: none; }
  .rz-hero::before, .rz-hero::after { display: none; }
  .rz-ing { border: 0; padding: 0; }
  .rz-step { break-inside: avoid; }
  .rz-stepimg { max-width: 60mm; }
}
