/* Gimmick 3: Omas Rezeptkasten (nur auf /rezepte/ geladen)
   Rezepte als Karteikarten in einem Holzkasten. Blättern per Wischen, Reitern oder Knöpfen.
   Ohne JavaScript funktionieren Reiter (Anker) und seitliches Scrollen weiterhin.
   Druck: jede Karte auf eine eigene Karteikarte DIN A6 quer. */
@font-face {
  font-family: "Dancing Script";
  src: url("/fonts/dancing-script-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

.rezeptkasten {
  --holz: #7b4f2c;
  margin-top: 1.5rem; border-radius: 16px; padding: 1rem 0 1.25rem;
  background:
    repeating-linear-gradient(92deg, rgb(255 255 255 / .05) 0 2px, transparent 2px 14px),
    linear-gradient(180deg, #8d5d35, #6b4224);
  box-shadow: inset 0 2px 0 rgb(255 255 255 / .15), inset 0 -6px 12px rgb(0 0 0 / .25), var(--schatten);
}
.reiter ul {
  list-style: none; margin: 0; padding: 0 1rem; display: flex; gap: .4rem;
  overflow-x: auto; scrollbar-width: thin;
}
.reiter a {
  display: block; white-space: nowrap; text-decoration: none;
  padding: .5rem .95rem .6rem; border-radius: 10px 10px 0 0;
  background: #efe4c9; color: #3a2814; font-weight: 650; font-size: .95rem;
  box-shadow: inset 0 -3px 4px rgb(0 0 0 / .08);
}
.reiter a:hover, .reiter a[aria-current] { background: #fffdf6; color: #15365a; }
.reiter a:focus-visible { outline-color: #f0c46a; }

.karten {
  display: flex; gap: 1.5rem; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: 1rem;
  padding: 1.25rem 1rem 1.25rem; margin-top: -2px;
  background: rgb(0 0 0 / .12);
}
.karten:focus-visible { outline: 3px solid #f0c46a; outline-offset: -3px; }
.rezept {
  position: relative; flex: 0 0 min(42rem, 88%); scroll-snap-align: start;
  color: #24292e; background-color: #fffdf6; border-radius: 4px;
  padding: 1.1rem clamp(1rem, 3vw, 1.75rem) 1.5rem;
  font-size: 1rem; line-height: 1.6rem;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(1.6rem - 1px), #d3e2ef calc(1.6rem - 1px), #d3e2ef 1.6rem);
  background-position: 0 .45rem;
  box-shadow: 0 2px 3px rgb(0 0 0 / .2), 0 14px 28px rgb(0 0 0 / .22);
  scroll-margin-top: 6rem;
}
.rezept:nth-child(odd) { transform: rotate(-.4deg); }
.rezept:nth-child(even) { transform: rotate(.35deg); }
.rezept__nr { margin: 0; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: #8a5f14; }
.rezept h3 {
  font-family: "Dancing Script", "Segoe Script", cursive; font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.4rem); line-height: 1.1; color: #1f4470; margin: 0 0 .35rem;
  padding: 0 0 .2rem; border-bottom: 2px solid #d9534f;
}
.rezept__von { margin: 0 0 .6rem; font-style: italic; color: #4b5864; font-size: .95rem; }
.rezept h4 {
  font-family: var(--schrift); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  color: #845c12; margin: 1rem 0 .1rem;
}
.rezept ul { padding-left: 1.1rem; margin: 0; }
.rezept p { margin: 0 0 .5rem; }
.rezept__inhalt { display: grid; gap: 0 1.75rem; margin-top: .6rem; }
@media (min-width: 40em) { .rezept__inhalt { grid-template-columns: 1fr 1.35fr; } }
.rezept__zeiten { display: grid; grid-template-columns: max-content 1fr; gap: 0 .75rem; margin: .75rem 0 0; font-size: .92rem; }
.rezept__zeiten dt { font-weight: 650; }
.rezept__zeiten dd { margin: 0; }
.rezept__tipp {
  font-family: "Dancing Script", "Segoe Script", cursive; font-size: 1.45rem; color: #1f4470;
  margin: .9rem 0 0 !important;
}
.rezept__drucken {
  position: absolute; top: .8rem; right: .8rem;
  display: inline-flex; align-items: center; gap: .35rem;
  font: 600 .85rem var(--schrift); color: #15365a; background: #fffdf6;
  border: 1px solid #c9bfa6; border-radius: 999px; padding: .3rem .7rem; cursor: pointer;
}
.rezept__drucken:hover { background: #f1eadc; }
.rezept__drucken svg { width: 1rem; height: 1rem; }
.rezeptkasten__steuerung { display: flex; justify-content: center; gap: .75rem; padding: .75rem 1rem 0; flex-wrap: wrap; }
.rezeptkasten__steuerung[hidden] { display: none; }
.rezeptkasten__steuerung .knopf--rand { color: #fffdf6; border-color: rgb(255 253 246 / .7); }
.rezeptkasten__steuerung .knopf--rand:hover { background: rgb(255 255 255 / .12); }
@media (prefers-reduced-motion: reduce) { .rezept { transform: none !important; } }

@media print {
  @page { size: A6 landscape; margin: 6mm; }
  .hero, .kasten-abschnitt > .huelle > .dachzeile, .kasten-abschnitt > .huelle > h2,
  .reiter, .rezeptkasten__steuerung, .rezept__drucken, .kopf, .fuss { display: none !important; }
  .abschnitt { padding: 0 !important; }
  .huelle { width: auto !important; }
  .rezeptkasten { background: none !important; box-shadow: none !important; padding: 0 !important; margin: 0 !important; }
  .karten { display: block !important; overflow: visible !important; padding: 0 !important; background: none !important; }
  .rezept {
    transform: none !important; box-shadow: none !important; border: 0; border-radius: 0;
    padding: 0 !important; width: auto !important; break-after: page; break-inside: avoid-page;
    font-size: 8pt; line-height: 1.3; background: none !important;
  }
  .rezept:last-child { break-after: auto; }
  .rezept h3 { font-size: 17pt; }
  .rezept h4 { font-size: 6.5pt; margin-top: 3pt; }
  .rezept__inhalt { grid-template-columns: 1fr 1.5fr; gap: 0 5mm; margin-top: 2pt; }
  .rezept p { margin-bottom: 2pt; }
  .rezept__tipp { font-size: 11pt; margin-top: 3pt !important; }
  .rezept__zeiten { font-size: 7pt; }
  .druck-einzeln .rezept:not(.wird-gedruckt) { display: none !important; }
}
