/* ============================================================================
   MyDinner GastroApp - Downloadseite
   Gestaltung: Kuechenbon auf warmem Papier. Schrift Figtree (Markenschrift der
   App), lokal ausgeliefert - es wird nichts von fremden Servern geladen.
   ========================================================================= */

/* --- Schrift ------------------------------------------------------------- */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('assets/fonts/figtree-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('assets/fonts/figtree-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Grundwerte ---------------------------------------------------------- */
:root {
  --papier:      #f5eee2;
  --papier-tief: #ebe1cf;
  --karte:       #fffbf4;
  --tinte:       #17140f;
  --tinte-leise: #5c5346;
  --glut:        #bf451c;
  --oliv:        #3f4a33;
  --linie:       rgba(23, 20, 15, 0.16);
  --linie-fest:  rgba(23, 20, 15, 0.55);
  --schrift: 'Figtree', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', 'Cascadia Mono', 'Consolas', 'Courier New', monospace;
  --breite: 72rem;
  --schatten: 8px 8px 0 var(--tinte);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--schrift);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  font-weight: 400;
  line-height: 1.62;
  color: var(--tinte);
  background-color: var(--papier);
  /* Papierstruktur: feine Faserlinien plus ein warmer Lichtschein oben. */
  background-image:
    radial-gradient(120% 60% at 78% -8%, rgba(191, 69, 28, 0.10), transparent 60%),
    repeating-linear-gradient(0deg, rgba(23, 20, 15, 0.016) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(23, 20, 15, 0.012) 0 1px, transparent 1px 4px);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }

a { color: inherit; text-decoration-color: var(--glut); text-underline-offset: 3px; }
a:hover { color: var(--glut); }

:focus-visible {
  outline: 3px solid var(--glut);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--tinte); color: var(--papier); padding: 0.7rem 1.1rem; z-index: 20;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* --- Kopfleiste ---------------------------------------------------------- */
.leiste {
  position: sticky; top: 0; z-index: 10;
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem;
  align-items: center; justify-content: space-between;
  padding: 0.75rem clamp(1rem, 4vw, 3rem);
  background: rgba(245, 238, 226, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px dashed var(--linie-fest);
}
.leiste__marke { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 1.06rem; letter-spacing: -0.01em; }
.leiste__meta {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--tinte-leise);
}

main { max-width: var(--breite); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 3rem); }

/* --- Bausteine ----------------------------------------------------------- */
.augenbraue {
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--glut); margin: 0 0 0.9rem;
}

h1, h2, h3 { font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; margin: 0 0 0.6rem; }
h1 { font-size: clamp(2.3rem, 1.4rem + 4.4vw, 4.3rem); line-height: 0.98; }
h2 { font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.7rem); }
h3 { font-size: 1.16rem; letter-spacing: -0.015em; }

h1 em {
  font-style: normal;
  text-decoration: underline;
  text-decoration-color: var(--glut);
  text-decoration-thickness: 0.14em;
  text-underline-offset: 0.14em;
}

.vor { font-size: 1.1rem; color: var(--tinte-leise); max-width: 34em; }
.fein { font-size: 0.86rem; color: var(--tinte-leise); margin: 0.9rem 0 0; }

.abschnitt__kopf { max-width: 40rem; margin-bottom: clamp(1.6rem, 4vw, 2.8rem); }
section { padding: clamp(3rem, 8vw, 6rem) 0; }

/* --- Knoepfe ------------------------------------------------------------- */
.knopf {
  display: inline-block; padding: 0.85rem 1.5rem;
  font-weight: 700; font-size: 0.98rem; letter-spacing: -0.005em;
  border: 2px solid var(--tinte); background: transparent; color: var(--tinte);
  text-decoration: none; cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}
.knopf--voll { background: var(--tinte); color: var(--papier); }
.knopf--rand:hover { background: var(--tinte); color: var(--papier); }
.knopf--voll:hover { background: var(--glut); border-color: var(--glut); color: #fff; }
.knopf:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--glut); }
.knopf--breit { display: block; text-align: center; }

/* --- Kopfbereich --------------------------------------------------------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  padding-top: clamp(2.5rem, 7vw, 5rem);
}
.hero__knoepfe { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 1.8rem 0 0; }

/* Kuechenbon */
.bon {
  position: relative; background: var(--karte);
  border: 2px solid var(--tinte); box-shadow: var(--schatten);
  padding: 1.8rem 1.6rem 1.6rem;
}
/* gezackte Ober- und Unterkante wie ein abgerissener Bon */
.bon::before, .bon::after {
  content: ''; position: absolute; left: 0; right: 0; height: 12px;
  background: radial-gradient(circle at 8px 0, transparent 7px, var(--karte) 7.5px) repeat-x;
  background-size: 16px 12px;
}
.bon::before { top: -12px; }
.bon::after {
  bottom: -12px; transform: scaleY(-1);
}
.bon__kopf {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.16em;
  text-transform: uppercase; padding-bottom: 0.8rem;
  border-bottom: 2px dashed var(--linie-fest);
}
.bon__nummer { color: var(--glut); font-weight: 700; }
.bon__zeilen { list-style: none; margin: 0; padding: 0.5rem 0; }
.bon__zeilen li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.5rem 0; border-bottom: 1px dotted var(--linie);
  font-size: 0.95rem;
}
.bon__zeilen span:first-child {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--tinte-leise); align-self: center;
}
.bon__zeilen span:last-child { font-weight: 600; text-align: right; }
.bon__fuss { padding-top: 1.1rem; }
.bon__hinweis { font-size: 0.78rem; color: var(--tinte-leise); margin: 0.8rem 0 0; text-align: center; }

/* --- Zwischenband -------------------------------------------------------- */
.band {
  margin: clamp(3rem, 7vw, 5rem) calc(-1 * clamp(1rem, 4vw, 3rem));
  padding: 1.4rem clamp(1rem, 4vw, 3rem);
  background: var(--tinte); color: var(--papier);
  transform: rotate(-1.1deg);
  box-shadow: 0 0 0 100vmax var(--tinte); clip-path: inset(0 -100vmax);
}
.band p {
  margin: 0; font-weight: 700; font-size: clamp(1.05rem, 0.9rem + 1.1vw, 1.6rem);
  letter-spacing: -0.02em; text-align: center;
}

/* --- Leistungen ---------------------------------------------------------- */
.liste {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  gap: 0;
  border-top: 1px dashed var(--linie-fest);
}
.liste li {
  padding: 1.6rem 1.5rem 1.6rem 0;
  border-bottom: 1px dashed var(--linie-fest);
  border-right: 1px dashed var(--linie);
  padding-right: 1.5rem;
}
.liste li:nth-child(3n) { border-right: none; }
.liste .nr {
  display: block; font-family: var(--mono); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.14em; color: var(--glut); margin-bottom: 0.5rem;
}
.liste h3 { margin-bottom: 0.35rem; }
.liste p { margin: 0; font-size: 0.95rem; color: var(--tinte-leise); }

/* --- Herunterladen ------------------------------------------------------- */
.dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.4rem; align-items: start; }
.dl__karte {
  background: var(--karte); border: 2px solid var(--linie-fest);
  padding: 1.7rem 1.5rem; display: flex; flex-direction: column; gap: 0.7rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.dl__karte p { margin: 0; font-size: 0.94rem; color: var(--tinte-leise); }
.dl__karte .knopf { margin-top: 0.6rem; }
.dl__karte--bereit { border-color: var(--tinte); box-shadow: var(--schatten); }
.dl__karte--bereit::before {
  content: 'verfügbar'; align-self: flex-start;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--papier); background: var(--oliv);
  padding: 0.2rem 0.6rem; margin-bottom: 0.2rem;
}
.dl__karte:hover { transform: translate(-3px, -3px); box-shadow: var(--schatten); }

/* --- Konto --------------------------------------------------------------- */
.konto__karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.4rem; }
.konto__karten article {
  background: var(--papier-tief); border-left: 6px solid var(--glut);
  padding: 1.6rem 1.5rem;
}
.konto__karten p { font-size: 0.95rem; color: var(--tinte-leise); }
.konto__karten .knopf { margin-top: 0.8rem; }

/* --- Einrichtung --------------------------------------------------------- */
.schritte {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.6rem;
  counter-reset: schritt;
}
.schritte li {
  position: relative; padding: 1.6rem 1.4rem 1.6rem 1.4rem;
  background: var(--karte); border: 1px solid var(--linie); overflow: hidden;
}
.schritte li::before {
  content: counter(schritt, decimal-leading-zero); counter-increment: schritt;
  position: absolute; right: 0.6rem; top: -1.4rem;
  font-size: 6.5rem; font-weight: 800; line-height: 1;
  color: rgba(23, 20, 15, 0.07); pointer-events: none;
}
.schritte .nr {
  display: inline-block; margin-bottom: 0.7rem;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--glut);
}
.schritte h3 { position: relative; }
.schritte p { position: relative; margin: 0; font-size: 0.94rem; color: var(--tinte-leise); }

/* --- Fragen -------------------------------------------------------------- */
.fragen__liste { margin: 0; border-top: 1px dashed var(--linie-fest); }
.fragen__liste dt {
  font-weight: 700; padding: 1.2rem 0 0.3rem; font-size: 1.03rem;
}
.fragen__liste dd {
  margin: 0; padding: 0 0 1.2rem; color: var(--tinte-leise);
  border-bottom: 1px dashed var(--linie);
  max-width: 45rem;
}

/* --- Fuss ---------------------------------------------------------------- */
.fuss {
  margin-top: clamp(2rem, 6vw, 4rem);
  background: var(--tinte); color: var(--papier);
  padding: 2.2rem clamp(1rem, 4vw, 3rem);
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  align-items: center; justify-content: space-between;
}
.fuss__marke { display: inline-flex; align-items: center; gap: 0.6rem; margin: 0; font-weight: 700; }
.fuss__marke img { filter: invert(1) brightness(1.6); }
.fuss__links { display: flex; flex-wrap: wrap; gap: 1.2rem; margin: 0; font-size: 0.9rem; }
.fuss a { text-decoration-color: var(--glut); }

/* --- Bewegung ------------------------------------------------------------ */
@keyframes aufsteigen {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.hero__text > *, .bon { animation: aufsteigen 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
.hero__text > *:nth-child(1) { animation-delay: 0.05s; }
.hero__text > *:nth-child(2) { animation-delay: 0.13s; }
.hero__text > *:nth-child(3) { animation-delay: 0.21s; }
.hero__text > *:nth-child(4) { animation-delay: 0.29s; }
.bon { animation-delay: 0.35s; }

.versteckt { opacity: 0; transform: translateY(16px); }
.sichtbar { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .versteckt { opacity: 1; transform: none; }
}

/* --- Schmale Bildschirme ------------------------------------------------- */
@media (max-width: 62rem) {
  .hero { grid-template-columns: 1fr; }
  .bon { max-width: 30rem; }
  .liste li:nth-child(3n) { border-right: 1px dashed var(--linie); }
  .liste li:nth-child(2n) { border-right: none; }
}
@media (max-width: 40rem) {
  .leiste__meta { display: none; }
  .band { transform: none; }
  .liste li { border-right: none; padding-right: 0; }
  .hero__knoepfe .knopf { flex: 1 1 100%; text-align: center; }
}

/* --- Druck (Bon auf Papier) --------------------------------------------- */
@media print {
  body { background: #fff; }
  .leiste, .hero__knoepfe, .skip { display: none; }
  .bon { box-shadow: none; }
}
