/* Händefrei kochen – gesundefakten.com */
:root {
  --bg: #faf9f6;
  --card: #ffffff;
  --text: #262626;
  --muted: #6b6b6b;
  --line: #e7e4dd;
  --brand: #37b8eb;
  --brand-ink: #13658f;
  --ok: #2f7d4f;
  --ok-soft: #e7f3ec;
  --ok-btn: #2f7d4f;
  --warn: #9a5b00;
  --akzent: #8e1b4b;
  --akzent-soft: #f6e9ef;
  --shadow: 0 4px 20px rgba(0, 0, 0, .08);
  --radius: 12px;
  --tap: 64px;
  --font: "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161514;
    --card: #211f1d;
    --text: #f1eee8;
    --muted: #aaa49b;
    --line: #36322e;
    --brand-ink: #7fd2f3;
    --ok: #6cc28f;
    --ok-soft: #1f3327;
    --ok-btn: #2d7a4c;
    --akzent-soft: #3a1d29;
    --shadow: 0 4px 20px rgba(0, 0, 0, .45);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.5 var(--font);
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--brand-ink); }
button { font: inherit; color: inherit; }
.versteckt { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* Kopf */
.kopf {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; background: var(--card);
  border-bottom: 3px solid var(--brand);
}
.kopf a.marke { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); min-width: 0; }
.kopf img { height: 30px; width: auto; }
.kopf .titel { font-weight: 600; font-size: 16px; white-space: nowrap; }
.kopf .titel span { color: var(--brand-ink); }
.kopf .rechts { margin-left: auto; display: flex; gap: 4px; }
.knopf-klein {
  min-width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 10px; cursor: pointer;
  color: var(--muted);
}
.knopf-klein[aria-pressed="false"] { opacity: .55; }
.knopf-klein:focus-visible, .knopf:focus-visible, .mic:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

main { max-width: 1120px; margin: 0 auto; padding: 16px 16px 8px; }

/* Startseite */
.start-held { padding: 18px 0 8px; }
.start-held h1 { font-size: clamp(30px, 8vw, 46px); line-height: 1.1; margin: 0 0 10px; font-weight: 700; letter-spacing: -.01em; }
.start-held p { color: var(--muted); margin: 0; max-width: 40ch; font-size: 18px; }
.suche { display: flex; gap: 8px; margin: 22px 0 10px; }
.suche input {
  flex: 1; min-width: 0; height: var(--tap); border-radius: var(--radius); border: 2px solid var(--line);
  background: var(--card); color: var(--text); font: inherit; font-size: 18px; padding: 0 16px;
}
.suche input:focus { outline: none; border-color: var(--brand); }
.suche .mic-klein { width: var(--tap); height: var(--tap); border-radius: var(--radius); border: 0; background: var(--brand); color: #fff; cursor: pointer; display: grid; place-items: center; }
.suche .mic-klein .icon { width: 28px; height: 28px; }
.hinweis { color: var(--muted); font-size: 14px; min-height: 1.5em; }
.so-gehts { display: grid; gap: 12px; margin: 26px 0; padding: 0; list-style: none; counter-reset: s; }
.so-gehts li { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px 14px 56px; position: relative; }
.so-gehts li::before {
  counter-increment: s; content: counter(s); position: absolute; left: 16px; top: 14px;
  width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 15px;
}
.so-gehts b { display: block; }
.rezepte { display: grid; gap: 14px; }
.rezept-karte {
  display: block; text-decoration: none; color: inherit; background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; border-left: 6px solid var(--akzent);
}
.rezept-karte .innen { padding: 16px 18px; }
.rezept-karte h3 { margin: 0 0 4px; font-size: 20px; line-height: 1.25; }
.rezept-karte p { margin: 0 0 10px; color: var(--muted); font-size: 15px; }
.rezept-karte .meta { display: flex; gap: 16px; font-size: 14px; color: var(--muted); }
.rezept-karte .meta span { display: inline-flex; align-items: center; gap: 6px; }
.leer { color: var(--muted); padding: 12px 0; }

/* Rezeptansicht */
.rezept-kopf { margin: 4px 0 14px; }
.rezept-kopf h1 { font-size: clamp(22px, 5.5vw, 30px); line-height: 1.2; margin: 0 0 8px; }
.fortschritt { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.balken { flex: 1; height: 8px; background: var(--line); border-radius: 8px; overflow: hidden; }
.balken > i { display: block; height: 100%; width: 0; background: var(--akzent); border-radius: 8px; transition: width .4s ease; }

.raster { display: grid; gap: 16px; }
@media (min-width: 900px) {
  .raster { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: start; }
  .spalte-rechts { position: sticky; top: 76px; }
}

.karte { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }

.jetzt { padding: 18px 18px 18px; border-top: 6px solid var(--akzent); }
.jetzt .etikett { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--akzent); }
.dark-etikett { color: var(--akzent); }
@media (prefers-color-scheme: dark) { .jetzt .etikett { color: #e58bb2; } }
.jetzt h2 { font-size: clamp(24px, 6.4vw, 32px); line-height: 1.3; margin: 6px 0 12px; font-weight: 600; }
.jetzt h2 + .warum { margin: -4px 0 14px; color: var(--muted); font-size: 17px; }
.jetzt ol.schichten { margin: 0 0 14px; padding-left: 1.3em; font-size: 18px; }
.jetzt .warte { font-size: 18px; color: var(--muted); margin: 0 0 14px; }
.aktionen { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.knopf {
  min-height: var(--tap); border: 0; border-radius: var(--radius); cursor: pointer; font-weight: 700; font-size: 19px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 18px;
}
.knopf .icon { width: 26px; height: 26px; }
.knopf.haupt { background: var(--ok-btn, #2f7d4f); color: #fff; }
.knopf.haupt.timer { background: var(--brand-ink); }
.knopf.neben { background: var(--bg); color: var(--text); border: 2px solid var(--line); font-weight: 600; font-size: 16px; }
.knopf:active { transform: scale(.98); }
.nebenbei { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.nebenbei h3 { font-size: 14px; color: var(--muted); font-weight: 600; margin: 0 0 8px; }
.nebenbei ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.nebenbei button {
  width: 100%; text-align: left; min-height: 52px; border-radius: 10px; border: 2px solid var(--line); background: transparent;
  padding: 8px 12px; cursor: pointer; display: flex; align-items: center; gap: 10px; font-size: 16px;
}
.nebenbei button .icon { color: var(--ok); }

.timerleiste { display: grid; gap: 10px; margin-bottom: 16px; }
.timerleiste { gap: 8px; margin-bottom: 12px; }
.timer {
  display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 12px; min-height: 52px;
  border-left: 5px solid var(--brand);
}
.timer > .icon { color: var(--brand-ink); }
.timer .zeit { font-variant-numeric: tabular-nums; font-size: 22px; font-weight: 700; min-width: 3.4em; }
.timer .was { font-size: 15px; color: var(--muted); line-height: 1.25; flex: 1; min-width: 0; }
.timer .knopf-klein { font-weight: 700; color: var(--brand-ink); }
.timer.fertig { border-left-color: var(--warn); animation: puls 1.2s ease-in-out infinite; }
.timer.fertig .zeit { color: var(--warn); }
@keyframes puls { 50% { box-shadow: 0 0 0 6px rgba(154, 91, 0, .18); } }

.reiter { display: flex; border-bottom: 2px solid var(--line); }
.reiter button {
  flex: 1; min-height: 52px; border: 0; background: transparent; cursor: pointer; font-weight: 600; color: var(--muted);
  border-bottom: 3px solid transparent; margin-bottom: -2px; font-size: 16px;
}
.reiter button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--akzent); }
.reiter-inhalt { padding: 6px 6px 10px; }
.liste { list-style: none; margin: 0; padding: 0; }
.liste li + li { border-top: 1px solid var(--line); }
.liste button {
  width: 100%; display: flex; align-items: flex-start; gap: 12px; text-align: left; background: transparent; border: 0;
  padding: 12px 10px; min-height: 56px; cursor: pointer; font-size: 16px; line-height: 1.35;
}
.haken {
  width: 26px; height: 26px; flex: none; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; margin-top: 1px;
}
.haken .icon { width: 16px; height: 16px; opacity: 0; }
li.erledigt .haken { background: var(--ok); border-color: var(--ok); color: #fff; }
li.erledigt .haken .icon { opacity: 1; }
li.erledigt .txt { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(128,128,128,.5); }
li.laeuft .haken { border-color: var(--brand); color: var(--brand-ink); }
li.laeuft .haken .icon { opacity: 1; }
li.gesperrt .txt { color: var(--muted); }
.txt small { display: block; color: var(--muted); font-size: 13px; text-decoration: none; }
.zutaten h4 { margin: 12px 10px 4px; font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.quelle { font-size: 14px; color: var(--muted); padding: 10px; }
.zuruecksetzen { margin: 4px 10px 10px; font-size: 14px; color: var(--muted); background: none; border: 0; text-decoration: underline; cursor: pointer; padding: 8px 0; }

/* Sprechleiste unten */
.sprechleiste {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--bg); border-top: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none;
}
.sprechleiste > * { pointer-events: auto; }
.sprechleiste[hidden] { display: none; }
.blase {
  max-width: 560px; width: 100%; background: var(--card); box-shadow: var(--shadow); border-radius: var(--radius);
  padding: 10px 14px; font-size: 16px; display: none;
}
.blase.an { display: block; }
.blase .gehoert { color: var(--muted); font-style: italic; }
.blase .zeile { display: flex; align-items: center; gap: 10px; }
.blase .antwort { flex: 1; min-width: 0; }
.blase .gehoert + .zeile { margin-top: 2px; }
.blase .wahl { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.blase .wahl button, .blase .rueck { border: 2px solid var(--line); background: transparent; border-radius: 10px; min-height: 44px; padding: 0 12px; cursor: pointer; font-weight: 600; }
.blase .rueck { flex: none; font-weight: 600; color: var(--brand-ink); }
.mic {
  width: 72px; height: 72px; border-radius: 50%; border: 0; cursor: pointer; background: var(--brand); color: #fff;
  box-shadow: 0 6px 22px rgba(55, 184, 235, .45); display: grid; place-items: center; position: relative;
}
.mic .icon { width: 34px; height: 34px; }
.mic.hoert { background: var(--akzent); box-shadow: 0 6px 22px rgba(142, 27, 75, .45); }
.mic.hoert::after {
  content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 3px solid var(--akzent); animation: welle 1.4s ease-out infinite;
}
@keyframes welle { from { transform: scale(.9); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }
.mic-text { font-size: 13px; color: var(--muted); }
.datenschutz { font-size: 12px; color: var(--muted); text-align: center; max-width: 520px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.fuss { max-width: 1120px; margin: 24px auto 0; padding: 0 16px 160px; display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; }
.fuss a { color: var(--muted); }
