/* Gemeinsames Aussehen für dirk-middeldorf.de */
:root {
  --text: #1c1c1a;
  --muted: #6b6b66;
  --line: #dcdcd6;
  --bg: #f6f5f1;
  --card: #ffffff;
  --accent: #0b5d4e;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 2rem 1rem 4rem;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

main { max-width: 34rem; margin: 0 auto; }

h1 { font-size: 1.75rem; line-height: 1.2; margin: 0 0 0.25rem; }
h2 { font-size: 1.1rem; margin: 0 0 0.75rem; }
p, ul, ol { margin: 0 0 0.75rem; }
a { color: var(--accent); }

.lead { margin: 0 0 1.5rem; color: var(--muted); }
.back { display: inline-block; margin-bottom: 1rem; font-size: 0.875rem; }

/* Weißer Kasten */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.card > :last-child { margin-bottom: 0; }

/* Linkliste auf Startseite und Rezeptübersicht */
.liste { list-style: none; padding: 0; margin: 0; }
.liste li { margin-bottom: 0.75rem; }
.liste a {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}
.liste a:hover, .liste a:focus-visible { border-color: var(--accent); }
.liste a span { display: block; font-weight: 400; font-size: 0.875rem; color: var(--muted); }

/* Rezept: Mengenrechner */
.rechner { border-color: var(--accent); border-width: 2px; }
.rechner label { display: block; font-weight: 600; margin-bottom: 0.5rem; }
.rechner-zeile { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.rechner input {
  width: 7rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  font-size: 1.25rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.rechner input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.rechner button {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.rechner button:hover, .rechner button:focus-visible { border-color: var(--accent); }
.rechner .hint { margin: 0.5rem 0 0; font-size: 0.875rem; color: var(--muted); }

/* Rezept: Schritte */
.schritt-nr {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.schritte { padding-left: 1.25rem; }
.schritte li { margin-bottom: 0.6rem; padding-left: 0.25rem; }
.schritte li:last-child { margin-bottom: 0; }
.menge { font-weight: 700; white-space: nowrap; }

details summary { cursor: pointer; font-weight: 600; }
details ul { margin-top: 0.75rem; padding-left: 1.1rem; }

.note { font-size: 0.875rem; color: var(--muted); }
.note ul { padding-left: 1.1rem; }

footer { max-width: 34rem; margin: 1.5rem auto 0; text-align: center; font-size: 0.875rem; color: var(--muted); }
footer a { color: var(--muted); }
