/* Derwisch Pizza & Döner – fürs Handy gebaut, am PC großzügig.
   Wiedererkennung zu Flyer und Plakat: dunkler Stein, rote Bänder, Logo, bunte Schilder. */

@font-face {
  font-family: "Pacifico";
  src: url("/schrift/pacifico.ttf") format("truetype");
  font-display: swap;
}

:root {
  --stein: #161514;
  --flaeche: rgba(22, 21, 20, 0.82);
  --linie: rgba(255, 255, 255, 0.12);
  --text: #f4f1ea;
  --leise: #c9c3b8;
  --gold: #ffd28f;
  --rot: #d0121c;
  --rot-dunkel: #a30d15;
  --orange: #f07a1a;
  --gruen: #2fa043;
  --breite: 1180px;
  --rund: 16px;
  --schrift: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --kopfhoehe: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--kopfhoehe) + 64px); }
body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--stein);
  -webkit-text-size-adjust: 100%;
}
/* Hintergrund: ein Bild, fest hinter der Seite – keine Kachelkanten, funktioniert auch auf dem iPhone */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(208, 18, 28, 0.10), transparent 60%),
    linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.35)),
    url("/bilder/hintergrund.webp") center / cover no-repeat;
}
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.2; }

.sprung { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 0.5rem 1rem; z-index: 50; }
.sprung:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.titel {
  font-family: "Pacifico", cursive;
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 3.1rem);
  margin: 0 0 0.5em;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}
.einleitung { color: var(--leise); max-width: 62ch; margin: -0.3rem 0 1.4rem; }
.mitte { text-align: center; }
.leise { color: var(--leise); }
.frage { font-size: clamp(1.1rem, 2.6vw, 1.4rem); font-weight: 600; margin: -0.2rem 0 0.6rem; }
.frage strong { color: var(--gold); }
.gross { font-size: 1.22rem; font-weight: 600; }

main > section { padding: clamp(2.2rem, 6vw, 4.5rem) max(16px, calc((100% - var(--breite)) / 2)); }

/* ---------- Kopfleiste ---------- */
.kopf {
  position: sticky; top: 0; z-index: 20; height: var(--kopfhoehe);
  display: flex; align-items: center; gap: 1.2rem;
  padding: 0 max(16px, calc((100% - var(--breite)) / 2));
  background: rgba(14, 13, 12, 0.9);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linie);
}
.kopf-logo img { width: 104px; }
.kopf-nav { display: flex; gap: 1.5rem; margin-left: auto; }
.kopf-nav a, .unten-nav a { color: var(--text); text-decoration: none; font-weight: 600; }
.kopf-nav a:hover, .kopf-nav a[aria-current] { color: var(--gold); }

/* Untere Leiste nur am Handy – mit dem Daumen erreichbar */
.unten-nav { display: none; }
@media (max-width: 760px) {
  .kopf-nav { display: none; }
  .kopf .knopf-klein { margin-left: auto; }
  .unten-nav {
    display: grid; grid-template-columns: repeat(4, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    background: rgba(14, 13, 12, 0.95); border-top: 1px solid var(--linie);
    padding-bottom: env(safe-area-inset-bottom);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  }
  .unten-nav a { text-align: center; padding: 0.85rem 0.2rem; font-size: 0.86rem; }
  .unten-nav a[aria-current] { color: var(--gold); box-shadow: inset 0 3px 0 var(--rot); }
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
}

/* ---------- Knöpfe ---------- */
.knoepfe { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.4rem 0; }
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 48px; padding: 0.7rem 1.35rem; border-radius: 999px;
  background: var(--rot); color: #fff; font-weight: 700; text-decoration: none;
  box-shadow: 0 6px 18px rgba(208, 18, 28, 0.35);
  transition: transform 0.15s ease, background 0.15s ease;
}
.knopf:hover { background: var(--rot-dunkel); color: #fff; transform: translateY(-2px); }
.knopf-gruen { background: var(--gruen); box-shadow: 0 6px 18px rgba(47, 160, 67, 0.3); }
.knopf-gruen:hover { background: #24823a; }
.knopf-hell { background: transparent; border: 2px solid rgba(255, 255, 255, 0.6); box-shadow: none; }
.knopf-hell:hover { background: rgba(255, 255, 255, 0.1); }
.knopf-klein { min-height: 40px; padding: 0.45rem 1.05rem; font-size: 0.95rem; }

/* ---------- Startbereich ---------- */
.held {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding-bottom: 0 !important; overflow-x: clip;
}
.held > * { position: relative; z-index: 1; }
.held h1 { margin: 0; }
.held h1 img { margin: 0 auto; }
.held h1 img { width: min(520px, 100%); filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.7)); }
.held-ort { color: var(--leise); margin: 0.8rem 0 0; max-width: 46ch; }
.held-text { max-width: 760px; }
.held .knoepfe, .held .schilder { justify-content: center; }
.held-ort { margin-inline: auto; }
.held-bild { width: 100vw; margin: -1rem calc(50% - 50vw) 0; z-index: 0; pointer-events: none; }   /* exakt bildschirmbreit und mittig */
/* Bühne: das Canva-Plakat in Einzelteilen – Zutaten fliegen ein, Pizza schwebt, Schriftzüge wippen */
.buehne { position: relative; width: min(1300px, 112vw); margin: 0 auto; }
/* Hände mit Eis: rechte Bildkante (dort enden die Arme) sitzt immer am rechten Bildschirmrand */
.teil.am-rand { left: auto !important; right: calc((100% - 100vw) / 2 - 5%); }   /* ragt über den Rand, Arme kommen von außerhalb */
.teil { position: absolute; }
.teil img { width: 100%; height: 100%; display: block; }
/* Auftritt startet erst, wenn die Bühne ins Bild kommt (app.js setzt .los) */
.js .buehne:not(.los) .teil img { animation-play-state: paused; }
.von-links img { animation: von-links 1.4s cubic-bezier(.16, .84, .3, 1) var(--v) both; }
.von-rechts img { animation: von-rechts 1.4s cubic-bezier(.16, .84, .3, 1) var(--v) both; }
.einschieben img { animation: einschieben 1.9s cubic-bezier(.2, .8, .2, 1) var(--v) both; }
.pizza img { animation: pizza-rein 1.3s cubic-bezier(.2, .8, .2, 1) var(--v) both, pizza-schweben 7s ease-in-out calc(var(--v) + 1.3s) infinite; }
.schrift img { animation: schrift-rein 0.9s cubic-bezier(.2, 1.4, .4, 1) var(--v) both, schweben var(--d, 5s) ease-in-out calc(var(--v) + 0.9s) infinite; }
.schrift.s2 img { --d: 6.2s; animation-direction: normal, alternate; }
.schrift.s3 img { --d: 5.6s; }
@keyframes von-links { from { opacity: 0; transform: translateX(-75vw) rotate(-30deg); } }
@keyframes von-rechts { from { opacity: 0; transform: translateX(75vw) rotate(30deg); } }
@keyframes einschieben { from { opacity: 0; transform: translateX(55%); } }
@keyframes pizza-rein { from { opacity: 0; transform: translateY(40px) scale(0.92); } }
@keyframes pizza-schweben { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-9px) rotate(1.2deg); } }
@keyframes schrift-rein { from { opacity: 0; transform: scale(0.6) rotate(-6deg); } }
@keyframes schweben { 0%, 100% { transform: translate(0, 0) rotate(0); } 35% { transform: translate(3px, -9px) rotate(-1.5deg); } 70% { transform: translate(-2px, -4px) rotate(1deg); } }

/* Derwisch: das Original-Logo entsteht aus einer Drehung (app.js) – mittig über dem Schriftzug */
.tanz { position: relative; height: 290px; margin: 0 auto -1.6rem; z-index: 2; pointer-events: none; }
.t-logo { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.6)); }
.figur path { fill: #fff; stroke: #fff; stroke-width: 1.2; stroke-dasharray: 1; vector-effect: non-scaling-stroke; }
.bogen { fill: #fff; }
.kappe { fill: var(--rot); }
.js .tanz:not(.laeuft):not(.fertig) .t-logo { opacity: 0; }
.tanz:not(.laeuft) .rad, .tanz:not(.laeuft) .kappe { display: none; }
.tanz.fertig .figur { mask: none; }
.tanz.fertig .figur path { stroke-dashoffset: 0 !important; fill-opacity: 1 !important; }
html:not(.js) .figur { mask: none; }

/* Einstieg: Logo, Schilder, Bild */
.held h1 img { animation: einblenden 0.9s ease both; }
.schilder span { animation: schild 0.55s cubic-bezier(.2, 1.6, .4, 1) both; }
.schilder .s1 { animation-delay: 0.5s; }
.schilder .s2 { animation-delay: 0.68s; }
.schilder .s3 { animation-delay: 0.86s; }
@keyframes einblenden { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
@keyframes schild { from { opacity: 0; transform: scale(0.4) rotate(-12deg); } }
@keyframes schweben-rein { from { opacity: 0; transform: translateX(40px) scale(0.96); } }


/* Schilder wie auf dem Flyer */
.schilder { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.3rem 0 0.8rem; }
.schilder span {
  display: inline-block; padding: 0.28rem 0.95rem; border-radius: 8px;
  font-weight: 800; color: #fff; rotate: -2deg; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
.schilder .s1 { background: var(--orange); }
.schilder .s2 { background: var(--gruen); rotate: 1.5deg; }
.schilder .s3 { background: #e2401a; }

.status {
  display: inline-flex; align-items: center; gap: 0.55rem;
  margin: 0.4rem 0 0; padding: 0.32rem 0.95rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.09); font-weight: 600;
}
.status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #888; }
.status.offen::before { background: #3fd15c; animation: puls 2s ease-in-out infinite; }
.status.zu::before { background: #e5484d; }
@keyframes puls { 50% { box-shadow: 0 0 0 6px rgba(63, 209, 92, 0.18); } }

/* ---------- Infokarten ---------- */
.infos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding-top: 0 !important; }
.info, .kasten {
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rund); padding: 1.3rem 1.4rem;
}
.info h2, .kasten h2 { margin: 0 0 0.4rem; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--gold); }
.kasten h2 + p { margin-top: 0; }
.kasten h2:not(:first-child) { margin-top: 1.2rem; }
.info p { margin: 0; }
@media (max-width: 860px) { .infos { grid-template-columns: 1fr; } }

/* ---------- Startseite: Angebote (Flyer aus angebote.csv) ---------- */
.angebote { padding-bottom: 0 !important; }
.slider { position: relative; }
.slider-spur {
  display: flex; gap: 1rem; align-items: center; list-style: none; margin: 0; padding: 0.4rem 0 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
}
.slider-spur::-webkit-scrollbar { display: none; }
.folie { flex: 0 0 min(78%, 340px); scroll-snap-align: center; }
.folie:first-child { margin-left: auto; }
.folie:last-child { margin-right: auto; }
.folie figure { margin: 0; }
.folie img { width: 100%; height: auto; border-radius: var(--rund); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55); }
.folie figcaption { margin-top: 0.6rem; text-align: center; font-weight: 600; color: var(--leise); font-size: 0.95rem; }
.slider-steuerung { display: flex; justify-content: center; align-items: center; gap: 0.8rem; }
.slider-steuerung[hidden] { display: none; }
.slider-pfeil {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--linie);
  background: rgba(255, 255, 255, 0.08); color: var(--text); font: 700 1.6rem/1 var(--schrift); cursor: pointer;
}
.slider-pfeil:hover { background: var(--rot); border-color: var(--rot); }
.slider-pfeil:disabled { opacity: 0.3; cursor: default; background: rgba(255, 255, 255, 0.08); border-color: var(--linie); }
.slider-punkte { display: flex; gap: 0.2rem; }
.slider-punkte button {
  width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center;
}
.slider-punkte button::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.3); transition: background 0.2s, transform 0.2s; }
.slider-punkte button[aria-current="true"]::before { background: var(--rot); transform: scale(1.3); }

/* ---------- Startseite: Küche ---------- */
.tipps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.tipp {
  display: block; text-decoration: none; color: var(--text);
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rund);
  padding: 0.8rem 1.1rem 1.1rem; transition: transform 0.2s ease, border-color 0.2s ease;
}
.tipp:hover { transform: translateY(-4px); border-color: rgba(208, 18, 28, 0.7); color: var(--text); }
.tipp img { margin: 0 auto 0.4rem; transform-origin: 20% 50%; }
.tipp:hover img { animation: wehen 1.2s ease-in-out; }
.tipp p { margin: 0 0 0.5rem; }
.tipp-fuss { color: var(--gold); font-weight: 700; font-size: 0.92rem; }
@media (max-width: 1000px) { .tipps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tipps { grid-template-columns: 1fr; } }
@keyframes wehen { 30% { transform: rotate(-2deg) translateY(-2px); } 65% { transform: rotate(1.5deg); } }

.kurz-ueber { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 2.5rem; align-items: center; }
.kurz-ueber img { border-radius: var(--rund); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); max-height: 520px; object-fit: cover; }
@media (max-width: 760px) { .kurz-ueber { grid-template-columns: 1fr; } .kurz-ueber img { max-height: 340px; width: 100%; } }

/* ---------- Speisekarte ---------- */
.suche { max-width: 640px; margin: 0 0 0.5rem; }
.suche label { display: block; font-weight: 700; margin-bottom: 0.35rem; }
.suche input {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--text);
  padding: 0.85rem 1rem 0.85rem 2.8rem; border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.45) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23ffd28f' stroke-width='2.4' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") 1rem 50% no-repeat;
}
.suche input:focus { border-color: var(--rot); outline: none; }
.suche-info { min-height: 1.4em; margin: 0.4rem 0 0; color: var(--gold); font-weight: 600; }
mark { background: rgba(255, 210, 143, 0.28); color: #fff; border-radius: 3px; padding: 0 1px; }

.chips {
  position: sticky; top: var(--kopfhoehe); z-index: 10;
  display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.7rem 0; margin: 0.6rem 0 1.4rem;
  background: linear-gradient(var(--stein) 72%, transparent); scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chips a {
  flex: none; padding: 0.45rem 1rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid var(--linie);
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.chips a:hover, .chips a.aktiv { background: var(--rot); border-color: var(--rot); }
.chips a.leer { opacity: 0.35; }

.rubriken { columns: 2 480px; column-gap: 2.2rem; }
.rubrik {
  break-inside: avoid; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rund);
  padding: 0.6rem 1.2rem 1.1rem; margin: 0 0 1.6rem;
}
.rubrik[hidden] { display: none; }
.rubrik h2 { margin: 0 -0.6rem 0.2rem; }
.rubrik h2 img { width: min(380px, 100%); margin: 0 auto; transform-origin: 15% 50%; }
.rubrik.sichtbar h2 img { animation: wehen 1.4s ease-in-out 0.2s; }
.rubrik-kopf { text-align: right; font-weight: 700; margin: 0 0 0.2rem; color: var(--gold); }
.rubrik ul { list-style: none; margin: 0; padding: 0; }
.rubrik li {
  display: grid; grid-template-columns: 3rem 1fr auto auto; gap: 0 0.6rem; align-items: baseline;
  padding: 0.5rem 0; border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}
.rubrik li:last-child { border-bottom: 0; }
.rubrik li[hidden] { display: none; }
.nr { font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.name small { color: var(--leise); font-size: 0.88em; }
.menge { color: var(--leise); font-variant-numeric: tabular-nums; }
.preis { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; grid-column: 4; }
.hinweis { color: var(--leise); font-size: 0.9rem; margin: 0.7rem 0 0; }
.nichts { font-size: 1.1rem; color: var(--gold); }
.legende { max-width: 820px; margin-top: 1rem; color: var(--leise); font-size: 0.92rem; border-top: 1px solid var(--linie); padding-top: 1.2rem; }
.legende h2 { color: var(--text); font-size: 1rem; margin: 0 0 0.4rem; }
.legende ul { margin: 0 0 1rem; padding-left: 1.1rem; }

/* ---------- Über uns ---------- */
.ueber { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.5rem; align-items: start; }
.ueber-text h2 { font-size: 1.3rem; color: var(--gold); margin: 1.6rem 0 0.4rem; }
.presse { color: var(--leise); }
.galerie { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.galerie img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--rund); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.galerie img:nth-child(2) { margin-top: 2rem; }
.galerie img:nth-child(3) { margin-top: -2rem; }
@media (max-width: 860px) { .ueber { grid-template-columns: 1fr; } }
.raum { padding-top: 0 !important; }
.raum-bilder { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.raum-bilder figure { margin: 0; }
.raum-bilder img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--rund); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.raum-bilder figcaption { margin-top: 0.5rem; color: var(--leise); font-size: 0.95rem; }
@media (max-width: 760px) { .raum-bilder { grid-template-columns: 1fr; } }

/* ---------- Kontakt ---------- */
.kontakt-raster { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; align-items: start; }
.zeiten { border-collapse: collapse; }
.zeiten th { text-align: left; font-weight: 400; color: var(--leise); padding: 0.2rem 1.2rem 0.2rem 0; }
.zeiten td { font-weight: 700; }
@media (max-width: 860px) { .kontakt-raster { grid-template-columns: 1fr; } }

/* ---------- Rechtstexte ---------- */
main > section.recht {
  max-width: 860px; margin: 2rem auto 3rem; padding: 2rem clamp(16px, 4vw, 2.5rem);
  background: var(--flaeche); border-radius: var(--rund); border: 1px solid var(--linie);
}
.recht h2 { font-size: 1.25rem; margin: 1.8rem 0 0.5rem; }
.recht h3 { font-size: 1.05rem; margin: 1.3rem 0 0.4rem; color: var(--gold); }
.recht p { overflow-wrap: anywhere; }

/* ---------- Fuß ---------- */
.fuss { text-align: center; padding: 2.5rem 16px 3rem; color: var(--leise); font-size: 0.95rem; border-top: 1px solid var(--linie); background: rgba(10, 10, 10, 0.6); }
.fuss p { margin: 0.35rem 0; }
.fuss-slogan { font-family: "Pacifico", cursive; font-size: 1.45rem; color: #fff; }

/* ---------- Einblenden beim Scrollen ---------- */
.js .zeigen { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .zeigen.sichtbar { opacity: 1; transform: none; }

/* Wer am Gerät „Bewegung reduzieren“ eingestellt hat, bekommt alles ruhig */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .zeigen { opacity: 1; transform: none; }
  .js .tanz .t-logo { opacity: 1; }
}
