/* Pizza Toni – Basis: Tokens wie die Online-Bestellung, Kopf, Fuß, Handy-Leiste. Kein Beige. */

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces.99876018fb.woff2") format("woff2");
  font-weight: 500 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("/assets/fonts/worksans.b13d296857.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --weiss: #ffffff;
  --flaeche: #f4f5f4;
  --flaeche-2: #eceeec;
  --text: #1b1e1c;
  --leise: #5f6863;
  --trenner: rgb(20 30 25 / 10%);
  --tomate: #c4232c;
  --tomate-tief: #a51c24;
  --tomate-hauch: rgb(196 35 44 / 8%);
  --basilikum: #1a7d44;
  --basilikum-hauch: rgb(28 130 71 / 10%);
  --nacht: #161a18;
  --tomate-hell: #e5483f;
  --glut: #ff8a3d;
  --basilikum-tief: #0f4d2b;

  --schrift-titel: "Fraunces", Georgia, serif;
  --schrift-fliess: "Work Sans", system-ui, sans-serif;

  --r-s: 12px;
  --r-m: 18px;
  --r-l: 26px;
  --schatten: 0 1px 2px rgb(20 30 25 / 5%), 0 10px 30px -16px rgb(20 30 25 / 22%);
  --schatten-hoch: 0 30px 80px -20px rgb(20 30 25 / 35%);
  --schnell: 150ms;
  --ease: cubic-bezier(0.2, 0.9, 0.3, 1.15);
  --ease-raus: cubic-bezier(0.16, 1, 0.3, 1);
  --seitenrand: clamp(16px, 2.5vw, 40px);

  --breite: 1280px;
  --kopfzeile: 72px;
  --abstand: clamp(56px, 4rem + 4vw, 128px);
  --trattoria: url("/assets/img/muster.91b888277a.svg");

}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: calc(var(--kopfzeile) + 80px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--weiss); color: var(--text); font: 16px/1.55 var(--schrift-fliess); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; overflow-wrap: break-word; }
main { display: block; }
picture { display: contents; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--schrift-titel); font-weight: 700; letter-spacing: -0.015em; line-height: 1.06; margin: 0; }
p { margin: 0; }
a { color: inherit; }
.sym { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.symbole { display: none; }
:focus-visible { outline: 3px solid var(--basilikum); outline-offset: 3px; border-radius: 6px; }
.nur-lesen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sprung { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 16px; background: var(--text); color: var(--weiss); border-radius: var(--r-s); }
.sprung:focus { top: 12px; }
.huelle { max-width: var(--breite); margin: 0 auto; padding: 0 var(--seitenrand); }
.augenbraue { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--basilikum); }
.augenbraue::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }

/* ---------- Knöpfe ---------- */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1px solid transparent; transition: transform var(--schnell) var(--ease), background var(--schnell), box-shadow var(--schnell), border-color var(--schnell); }
.knopf { position: relative; overflow: hidden; isolation: isolate; }
.knopf:active { transform: scale(0.97); }
/* Lichtkante, die beim Überfahren über den Hauptknopf streicht */
.knopf.haupt::after, .knopf.hell::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / 30%) 50%, transparent 70%); transform: translateX(-120%); transition: transform 700ms var(--ease-raus); }
.knopf.hell::after { background: linear-gradient(110deg, transparent 30%, rgb(196 35 44 / 12%) 50%, transparent 70%); }
.knopf.haupt:hover::after, .knopf.hell:hover::after { transform: translateX(120%); }
.knopf .sym:last-child:not(:first-child) { transition: translate var(--schnell) var(--ease); }
.knopf:hover .sym:last-child:not(:first-child) { translate: 4px 0; }
.knopf.hell { background: var(--weiss); color: var(--tomate-tief); box-shadow: 0 14px 30px -14px rgb(0 0 0 / 45%); }
.knopf.hell:hover { transform: translateY(-2px); }
.knopf.rand { border-color: rgb(255 255 255 / 55%); color: var(--weiss); }
.knopf.rand:hover { background: rgb(255 255 255 / 12%); border-color: var(--weiss); }
.knopf.haupt { background: var(--tomate); color: var(--weiss); box-shadow: 0 10px 24px -12px rgb(196 35 44 / 70%); }
.knopf.haupt:hover { background: var(--tomate-tief); transform: translateY(-1px); }
.knopf.zweit { background: var(--weiss); border-color: var(--trenner); color: var(--text); }
.knopf.zweit:hover { border-color: var(--text); }
.knopf.zweit .sym { color: var(--tomate); }
.knopf.klein { min-height: 44px; padding: 0 18px; font-size: 15px; }
.plus { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--tomate); color: var(--weiss); text-decoration: none; transition: transform var(--schnell) var(--ease), background var(--schnell); }
.plus:hover { background: var(--tomate-tief); transform: rotate(90deg); }
.plus .sym { width: 20px; height: 20px; stroke-width: 2.4; }

/* Zustand: data-bestellbar am body (Server, status.js). Ohne Online-Bestellung steht das Telefon vorne. */
body[data-bestellbar="false"] .nur-bestellbar, body[data-bestellbar="true"] .nur-pause { display: none !important; }
/* Feste Seiten (cmd/export): kein Server dahinter, also weder Live-Status noch Straßenprüfer noch Pause-Hinweis. */
body[data-statisch] [data-status], body[data-statisch] [data-pruefer], body[data-statisch] p.nur-pause, body[data-statisch] section.nur-pause { display: none !important; }

/* ---------- Kopf ---------- */
.kopf { position: sticky; top: 0; z-index: 30; background: rgb(255 255 255 / 88%); backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid var(--trenner); }
/* Lesefortschritt als Trikolore-Linie unter dem Kopf (nur wo der Browser Scroll-Animationen kann) */
.fortschritt { position: absolute; inset: auto 0 -1px; height: 3px; background: linear-gradient(90deg, var(--basilikum) 33.3%, var(--flaeche-2) 33.3% 66.6%, var(--tomate) 66.6%); transform: scaleX(0); transform-origin: 0 50%; }
.kopf-innen { display: flex; align-items: center; gap: 24px; height: var(--kopfzeile); max-width: var(--breite); margin: 0 auto; padding: 0 var(--seitenrand); }
.marke { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.trikolore { display: flex; gap: 3px; }
.trikolore i { width: 7px; height: 34px; border-radius: 4px; background: var(--basilikum); }
.trikolore i:nth-child(2) { background: var(--weiss); box-shadow: inset 0 0 0 1px var(--trenner); }
.trikolore i:nth-child(3) { background: var(--tomate); }
.marke-text { display: flex; flex-direction: column; line-height: 1.05; }
.marke-text b { font: 800 24px var(--schrift-titel); letter-spacing: -0.02em; }
.marke-text small { font-size: 12px; font-weight: 400; color: var(--leise); letter-spacing: 0.02em; }
.hauptnav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.hauptnav a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--leise); text-decoration: none; font-weight: 500; white-space: nowrap; }
.hauptnav a:hover { color: var(--text); background: var(--flaeche); }
.hauptnav a[aria-current="page"] { color: var(--text); background: var(--flaeche-2); font-weight: 600; }
.kopf-rechts { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.anruf { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--trenner); text-decoration: none; font-weight: 600; background: var(--weiss); white-space: nowrap; }
.anruf:hover { border-color: var(--tomate); color: var(--tomate); }
.anruf .sym { width: 18px; height: 18px; color: var(--tomate); }

/* ---------- Status ---------- */
.status { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px; background: var(--basilikum-hauch); color: var(--basilikum); font-size: 15px; }
.status strong { font-weight: 700; }
.status span:last-child { color: var(--text); }
.status .punkt { width: 10px; height: 10px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgb(28 130 71 / 18%); animation: puls 2.4s ease-in-out infinite; }
.status[data-offen="false"] { background: var(--tomate-hauch); color: var(--tomate); }
.status[data-offen="false"] .punkt { animation: none; box-shadow: 0 0 0 4px rgb(196 35 44 / 15%); }
@keyframes puls { 50% { box-shadow: 0 0 0 8px rgb(28 130 71 / 0%); } }

/* ---------- Öffnungszeiten ---------- */
.zeiten-karte { position: relative; padding: 28px; border-radius: var(--r-l); background: var(--weiss); box-shadow: var(--schatten-hoch); }
.zeiten-karte::before { content: ""; position: absolute; inset: 0 28px auto; height: 4px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, var(--basilikum) 33%, var(--flaeche-2) 33% 66%, var(--tomate) 66%); }
.zeiten-karte h2 { font-size: 22px; margin-bottom: 14px; }
.zeiten { width: 100%; border-collapse: collapse; font-size: 15px; }
.zeiten th { text-align: left; font-weight: 600; padding: 10px 0; }
.zeiten td { text-align: right; padding: 10px 0; color: var(--leise); }
.zeiten tr + tr > * { border-top: 1px solid var(--trenner); }
.zeiten tr.heute > * { color: var(--text); }
.zeiten tr.heute th::after { content: "heute"; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--basilikum-hauch); color: var(--basilikum); font-size: 12px; font-weight: 600; }
.zeiten tr.ruhetag td { color: var(--tomate); }
.abweichungen { margin: 12px 0 0; padding-left: 1.2em; font-size: 14px; color: var(--leise); }

/* ---------- Abschnitte und Seitenkopf ---------- */
.abschnitt { padding: var(--abstand) 0; }
.abschnitt.grau { background: var(--flaeche); }
.abschnitt-kopf { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; margin-bottom: clamp(28px, 3vw, 48px); }
.abschnitt-kopf h2 { margin-top: 12px; font-size: clamp(32px, 1.4rem + 2.4vw, 56px); }
.abschnitt-kopf p { max-width: 46ch; color: var(--leise); }
.seitenkopf { position: relative; padding-block: clamp(36px, 2rem + 3vw, 80px) clamp(28px, 2vw, 40px); background: linear-gradient(180deg, var(--weiss), var(--flaeche)); overflow: hidden; }
.seitenkopf::before { content: ""; position: absolute; inset: 0 0 0 55%; background: var(--trattoria) center / 200px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 50%); mask-image: linear-gradient(90deg, transparent, #000 50%); }
.seitenkopf .huelle { position: relative; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; }
.seitenkopf h1 { margin-top: 14px; font-size: clamp(42px, 1.6rem + 4vw, 80px); font-weight: 800; letter-spacing: -0.03em; }
.seitenkopf-aktion { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.seitenkopf .augenbraue, .seitenkopf h1, .seitenkopf .einleitung, .seitenkopf-aktion { animation: steigen 800ms var(--ease-raus) both; }
.seitenkopf h1 { animation-delay: 80ms; }
.seitenkopf .einleitung { animation-delay: 160ms; }
.seitenkopf-aktion { animation-delay: 240ms; }
@keyframes steigen { from { opacity: 0; transform: translateY(24px); } }
.seitenkopf .einleitung { margin-top: 12px; color: var(--leise); font-size: 18px; max-width: 52ch; }

/* ---------- Fließtext (Impressum, Datenschutz, 404) ---------- */
.text { padding-block: var(--abstand) 0; }
.text > * { max-width: 44rem; }
.text h2 { margin-top: 2em; font-size: 1.5rem; }
.text ul { padding-left: 1.2em; }
mark.pruefen { padding: 0.05em 0.35em; border-radius: 3px; background: #ffe066; color: var(--text); font-weight: 600; }

/* ---------- Fuß ---------- */
.fuss { overflow: hidden; position: relative; padding: 72px 0 calc(40px + env(safe-area-inset-bottom)); background: var(--nacht); color: rgb(255 255 255 / 72%); }
.fuss::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(90deg, var(--basilikum) 33.3%, var(--weiss) 33.3% 66.6%, var(--tomate) 66.6%); }
.fuss-raster { display: grid; grid-template-columns: 1.4fr 1fr 0.8fr 0.8fr; gap: 40px; }
.fuss h2 { margin-bottom: 14px; font: 600 13px var(--schrift-fliess); letter-spacing: 0.08em; text-transform: uppercase; color: rgb(255 255 255 / 50%); }
.fuss h2.marke-text { text-transform: none; letter-spacing: normal; }
.fuss .marke-text b { color: var(--weiss); font-size: 30px; }
.fuss .marke-text small { color: rgb(255 255 255 / 55%); }
.fuss address { margin-top: 18px; font-style: normal; line-height: 1.7; }
.fuss a { color: var(--weiss); text-decoration: none; }
.fuss a:hover { text-decoration: underline; }
.fuss ul { margin: 0; padding: 0; list-style: none; line-height: 2; }
/* Daumenfreundlich: jeder Fußlink mindestens 44px hoch. */
.fuss ul a { display: inline-flex; align-items: center; min-height: 44px; }
.fuss .fuss-tel { display: inline-block; margin-top: 14px; font: 700 24px var(--schrift-titel); }
.fuss-unten { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / 12%); font-size: 14px; color: rgb(255 255 255 / 50%); }

/* Riesiger Schriftzug als Abschluss jeder Seite */
.fuss-marke { margin: 48px 0 -0.2em; text-align: center; white-space: nowrap; font: 800 clamp(72px, 19vw, 300px)/0.9 var(--schrift-titel); letter-spacing: -0.05em; background: linear-gradient(180deg, rgb(255 255 255 / 16%), rgb(255 255 255 / 0%) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }

/* ---------- Bewegung ---------- */
/* Seitenwechsel blenden weich über, der Kopf bleibt stehen. */
@view-transition { navigation: auto; }
.kopf { view-transition-name: kopf; }
::view-transition-old(root) { animation: 200ms ease both vt-raus; }
::view-transition-new(root) { animation: 450ms var(--ease-raus) both vt-rein; }
@keyframes vt-raus { to { opacity: 0; } }
@keyframes vt-rein { from { opacity: 0; transform: translateY(20px); } }
/* Abschnitte tauchen beim Scrollen auf. Ohne Unterstützung bleibt alles einfach sichtbar. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .fortschritt { animation: fortschritt linear both; animation-timeline: scroll(root); }
    .zeige { animation: zeigen linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
  }
}
@keyframes fortschritt { to { transform: scaleX(1); } }
@keyframes zeigen { from { opacity: 0; translate: 0 64px; } }

/* ---------- Handy-Leiste ---------- */
.handy-leiste { display: none; }

/* ---------- Breiten ---------- */
@media (max-width: 1180px) {
  .fuss-raster { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  :root { --kopfzeile: 109px; }
  .kopf-innen { flex-wrap: wrap; height: var(--kopfzeile); align-content: start; gap: 0 16px; padding-top: 10px; }
  .hauptnav { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; padding: 6px 0 8px; }
  .kopf-rechts .knopf, .anruf span { display: none; }
  .anruf { width: 44px; padding: 0; justify-content: center; }
  .handy-leiste { position: fixed; inset: auto 0 0; z-index: 40; display: flex; gap: 10px; padding: 10px var(--seitenrand) calc(10px + env(safe-area-inset-bottom)); background: rgb(255 255 255 / 94%); backdrop-filter: blur(14px); border-top: 1px solid var(--trenner); }
  .handy-leiste .knopf { flex: 1; min-height: 50px; padding: 0 14px; }
  .handy-leiste .knopf.zweit { flex: 0 0 auto; }
  body:has(.handy-leiste) { padding-bottom: 76px; }
}
@media (max-width: 620px) {
  .fuss-raster { grid-template-columns: minmax(0, 1fr); }
  .marke-text small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
