/* Backstube am Markt: Mehlweiß und Bäckerrot. Alles Wichtige steht auf Zetteln und Blättern, wie an der Theke. */

@font-face { font-family: 'Young Serif'; src: url('../fonts/young-serif-latin-400-normal.woff2') format('woff2'); font-display: swap; }

:root {
  --rot: #a8231b; --mehl: #f5f3ec; --schritt: #e8e4d8; --tinte: #1b1714; --papier: #fffdf7;
  --rand: clamp(1rem, 3vw, 2.5rem);
  --menue-grund: #fffdf7; --menue-tinte: #1b1714;
}
body { background: var(--mehl); color: var(--tinte); font: 400 clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem)/1.5 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }

h1, h2, .fuss-name, .marke, .summe output { font-family: 'Young Serif', Georgia, serif; font-weight: 400; letter-spacing: -0.02em; }
h1 { font-size: clamp(3.4rem, 8vw, 8.5rem); line-height: 0.95; }
h2 { font-size: clamp(2.1rem, 4.2vw, 4.5rem); line-height: 1.02; text-wrap: balance; }
.gross { font-size: clamp(1.2rem, 1.05rem + 0.65vw, 1.6rem); line-height: 1.35; }

.kopf { background: var(--rot); color: #fff; }
.marke { font-size: 1.4rem; }
.knopf-rot { background: var(--rot); color: #fff; }
.knopf-weiss, .kopf-knopf { background: var(--papier); color: var(--tinte); }
@media (hover: hover) {
  .knopf-rot:hover { background: #7f1912; }
  .knopf-weiss:hover, .kopf-knopf:hover { background: var(--schritt); }
}

/* Held: der Zettel auf rotem Grund neben dem Regal voller Brot */
.held { display: grid; background: var(--rot); }
.held-bild img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.zettel { display: grid; gap: 1.1rem; justify-items: start; margin: 0 var(--rand) var(--rand); margin-top: -2rem; position: relative; padding: clamp(1.5rem, 3vw, 2.75rem); background: var(--papier); }
.zettel-daten { display: grid; gap: 0.6rem; margin: 0; }
.zettel-daten dt { font-weight: 700; }
.zettel-daten dd { margin: 0; }
[data-offen].ist-offen { color: #17663a; }
@media (min-width: 60rem) {
  .held { grid-template-columns: 7fr 5fr; align-items: center; padding: var(--rand) var(--rand) var(--rand) 0; }
  .held-bild img { aspect-ratio: auto; min-height: 72svh; }
  .zettel { margin: 0 0 0 -5rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .zettel { animation: legen 640ms cubic-bezier(0.23, 1, 0.32, 1) 120ms both; }
  @keyframes legen { from { opacity: 0; transform: translateY(1.5rem) rotate(1.5deg); } to { opacity: 1; transform: none; } }
}

/* Backplan: ein gedrucktes Blatt */
.backplan { display: grid; gap: 2rem var(--rand); padding: clamp(4rem, 9vw, 9rem) var(--rand); align-items: start; }
.backplan-text { display: grid; gap: 1.25rem; }
.backplan-text img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.blatt { padding: clamp(1.25rem, 3vw, 2.75rem); background: var(--papier); }
.blatt h2 { margin-bottom: 1rem; }
caption { position: absolute; left: -999px; }
tbody th { font-weight: 700; }
tbody th, tbody td { padding: 0.85rem 0.6rem; vertical-align: top; font-variant-numeric: lining-nums; }
tbody tr:nth-child(odd) { background: var(--mehl); }
td { text-align: right; }
tr.heute, tbody tr.heute:nth-child(odd) { background: var(--rot); color: #fff; }
tr.heute th::after { content: ' (heute)'; font-weight: 400; }
@media (min-width: 60rem) { .backplan { grid-template-columns: 5fr 7fr; } }

/* Kacheln mit Etikettenstreifen */
.kacheln { padding: 0 var(--rand) clamp(4rem, 9vw, 9rem); }
.kachel-raster { display: grid; gap: 0.75rem; margin-top: clamp(1.5rem, 3vw, 3rem); }
.kachel { position: relative; display: block; overflow: hidden; text-decoration: none; }
.kachel img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 500ms cubic-bezier(0.23, 1, 0.32, 1); }
a.kachel span { position: absolute; left: 0; bottom: 0; padding: 0.55rem 0.9rem; background: var(--papier); font-weight: 700; }
@media (hover: hover) { a.kachel:hover img { transform: scale(1.03); } }
@media (min-width: 60rem) {
  .kachel-raster { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
  .k1 { grid-row: 1 / 3; }
  .kachel-raster.mehl { grid-template-columns: 1fr 1fr; grid-template-rows: auto; gap: var(--rand); align-items: center; }
  .kachel-raster.mehl .k1 { grid-row: auto; }
}
.mehl-text { display: grid; gap: 1rem; }

/* Der Brief der Meisterin auf rotem Feld */
.brief { display: grid; background: var(--rot); color: #fff; }
.brief img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.brief-text { display: grid; gap: 1.1rem; justify-items: start; padding: clamp(2rem, 6vw, 6rem) var(--rand); }
.brief-text p { max-width: 58ch; }
.unterschrift { font-family: 'Young Serif', Georgia, serif; font-size: 1.35rem; }
.brief .knopf-rot { background: var(--papier); color: var(--tinte); }
@media (hover: hover) { .brief .knopf-rot:hover { background: var(--schritt); } }
.tagesplan { display: grid; gap: 0.9rem; font-size: clamp(1.1rem, 1rem + 0.4vw, 1.35rem); line-height: 1.35; }
@media (min-width: 60rem) { .brief { grid-template-columns: 5fr 7fr; } }

/* Unterseiten */
.seitenkopf { display: grid; gap: 1.25rem; padding: clamp(2rem, 5vw, 5rem) var(--rand); background: var(--rot); color: #fff; }
.seitenkopf .gross { max-width: 54ch; }

.sortiment { display: grid; gap: 2rem var(--rand); padding: clamp(3rem, 6vw, 6rem) var(--rand) 0; align-items: center; }
.sortiment img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
figcaption { margin-top: 0.5rem; }
@media (min-width: 60rem) { .sortiment { grid-template-columns: 1fr 1fr; } }

.schluss { display: grid; gap: 1.5rem; justify-items: start; margin-top: clamp(4rem, 8vw, 8rem); padding: clamp(3rem, 6vw, 6rem) var(--rand); background: var(--rot); color: #fff; }

.bestellen { display: grid; gap: 3rem var(--rand); padding: clamp(3rem, 6vw, 6rem) var(--rand); align-items: start; }
.coupon { display: grid; gap: 1rem; padding: clamp(1.25rem, 3vw, 2.75rem); background: var(--papier); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 1.25rem), calc(100% - 1.25rem) 100%, 0 100%); }
.coupon .knopf { justify-self: start; }
.posten { display: grid; grid-template-columns: 1fr 5rem; gap: 1rem; align-items: center; }
.posten input { width: 100%; min-height: 3rem; padding: 0.4rem 0.5rem; border: 2px solid currentColor; border-radius: 0; background: transparent; font-variant-numeric: lining-nums; text-align: center; }
.summe { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; }
.summe output { font-size: clamp(2.1rem, 4.2vw, 4.5rem); line-height: 1; }
.anfahrt { display: grid; gap: 1.1rem; }
.skizze { width: 100%; background: var(--schritt); font: 600 15px system-ui, sans-serif; fill: var(--tinte); }
.skizze-weg { fill: var(--papier); }
.skizze-haus { fill: #c9c2b1; }
.skizze-ziel { fill: var(--rot); }
.skizze .skizze-ziel-text { fill: #fff; }
@media (min-width: 60rem) { .bestellen { grid-template-columns: 7fr 5fr; } }

/* Fuß: die Rückseite des Zettels */
.fuss { padding: clamp(3rem, 6vw, 6rem) var(--rand) 1.5rem; background: var(--tinte); color: var(--mehl); }
.fuss-spalten { display: grid; gap: 2rem var(--rand); }
.fuss-nav { display: grid; gap: 0.25rem; }
.fuss a { text-underline-offset: 3px; }
.fuss-nav a { display: inline-flex; align-items: center; min-height: 2.25rem; }
.fuss-name { margin-top: clamp(2.5rem, 5vw, 5rem); font-size: 8.8vw; line-height: 1; white-space: nowrap; }
@media (min-width: 48rem) { .fuss-spalten { grid-template-columns: repeat(4, 1fr); } }
