/* ==========================================================
   Pizzeria Da Marco (Demo)
   Farben und Schriften stehen oben bei :root. Dort ändern.
   ========================================================== */

/* Schriften liegen auf dem eigenen Server (nur der lateinische Teil, eine variable Datei je Schrift) */
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-variable.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito-variable.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  /* Farben (Palette «Basilikum») */
  --hell: #FBF8F2;          /* Haupthintergrund */
  --sand: #DCC09A;          /* Start-Bereich, zweite Fläche */
  --sand-dunkel: #CDAE80;   /* Bildplätze auf Sand (abgeleitet) */
  --braun: #231B15;         /* Text */
  --braun-weich: #4F433A;   /* Zweittext (abgeleitet) */
  --gruen: #2F5D3A;         /* Hauptfarbe */
  --tomate: #C8321F;        /* Akzent: nur Anrufen-Button */
  --tomate-dunkel: #A92715; /* Button beim Darüberfahren (abgeleitet) */
  --linie: rgba(35, 27, 21, .18); /* feine Trennlinien (abgeleitet) */

  /* Schriften */
  --schrift-titel: "Fraunces", Georgia, "Times New Roman", serif;
  --schrift-text: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Abstände */
  --rand: clamp(1.25rem, 5vw, 3rem);
  --abstand: clamp(3rem, 6.5vw, 5rem);
  --breite: 72rem;
  --radius-gross: clamp(1.75rem, 4vw, 3rem);
}

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

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  padding-bottom: 4.75rem;
  background: var(--hell);
  color: var(--braun);
  font-family: var(--schrift-text);
  font-size: 1.0625rem;   /* 17 px */
  line-height: 1.6;
}
@media (min-width: 900px) {
  body { padding-bottom: 0; font-size: 1.125rem; } /* 18 px */
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--schrift-titel);
  font-weight: 600;
  line-height: 1.1;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 7vw, 4.25rem); letter-spacing: -0.01em; }  /* 40 bis 68 px */
h2 { font-size: clamp(1.875rem, 4.5vw, 2.75rem); }                      /* 30 bis 44 px */
h3 { font-size: 1.5rem; line-height: 1.2; }
main h2 { margin-bottom: 1.25rem; }

p { margin: 0 0 1em; max-width: 65ch; }
img { display: block; max-width: 100%; }
code { font-family: inherit; font-weight: 700; }

a { color: inherit; }
:focus-visible {
  outline: 3px solid var(--gruen);
  outline-offset: 3px;
  border-radius: 4px;
}
.panel--gruen :focus-visible { outline-color: var(--sand); }

.wrap {
  width: min(100% - 2 * var(--rand), var(--breite));
  margin-inline: auto;
}

.sprung {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: .6rem 1rem;
  background: var(--braun);
  color: var(--hell);
  border-radius: 999px;
  z-index: 50;
}
.sprung:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 3.25rem;
  padding: .75rem 1.75rem;
  border-radius: 999px;
  background: var(--tomate);
  color: #fff;
  font-weight: 800;
  font-size: 1.125rem;
  text-decoration: none;
  transition: background-color .2s;
}
.knopf:hover { background: var(--tomate-dunkel); }
.knopf .icon { width: 1.25em; height: 1.25em; flex: none; }
.knopf--klein { min-height: 3rem; padding: .5rem 1.25rem; font-size: 1rem; }
.knopf[aria-disabled="true"],
.knopf[aria-disabled="true"]:hover { background: var(--braun-weich); cursor: default; }
.knopf--gross { min-height: 3.75rem; padding: .9rem 2.25rem; font-size: 1.25rem; }
.knopf--voll { width: 100%; }

.textlink {
  font-weight: 700;
  color: var(--gruen);
  text-underline-offset: .25em;
}
.textlink:hover { text-decoration-thickness: 2px; }

/* ---------- Start-Bereich ---------- */
.hero {
  background: var(--sand);
  border-radius: 0 0 var(--radius-gross) var(--radius-gross);
}

.kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.1rem;
}
.logo-link {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
}
.marke { width: 2.75rem; height: 2.75rem; }
.logo-name {
  font-family: var(--schrift-titel);
  font-weight: 700;
  font-size: 1.5rem;
}

.nav-gross { display: none; }
.nav-gross a:not(.knopf) {
  font-weight: 700;
  text-decoration: none;
  padding: .25rem 0;
}
.nav-gross a:not(.knopf):hover { text-decoration: underline; text-underline-offset: .3em; }

.menue { position: relative; }
.menue summary {
  list-style: none;
  cursor: pointer;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  padding: .4rem 1.25rem;
  border: 2px solid var(--braun);
  border-radius: 999px;
  font-weight: 800;
}
.menue summary::-webkit-details-marker { display: none; }
.menue-liste {
  position: absolute;
  right: 0;
  top: calc(100% + .5rem);
  z-index: 30;
  min-width: 14rem;
  padding: .5rem;
  background: var(--hell);
  border-radius: 1.5rem;
  box-shadow: 0 8px 24px rgba(35, 27, 21, .18);
}
.menue-liste a {
  display: block;
  padding: .8rem 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 1rem;
}
.menue-liste a:hover { background: var(--sand); }

@media (min-width: 900px) {
  .menue { display: none; }
  .nav-gross { display: flex; align-items: center; gap: 2rem; }
}

.hero-raster {
  display: grid;
  gap: 1.75rem;
  grid-template-areas: "text" "scheibe" "aktion";
  padding-block: 1.25rem 3.5rem;
}
.hero-text { grid-area: text; }
.hero-text h1 { max-width: 15ch; }
.hero-unter {
  margin: 1.25rem 0 0;
  font-size: 1.1875rem;
  color: var(--braun-weich);
}

.hero-aktion {
  grid-area: aktion;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .9rem;
}
.hero-aktion p { margin: 0; }
.hero-tel { color: var(--braun-weich); font-weight: 700; }

@media (min-width: 900px) {
  .hero-raster {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    grid-template-areas: "text scheibe" "aktion scheibe";
    align-content: center;
    column-gap: 4rem;
    row-gap: 2rem;
    padding-block: 2rem 5rem;
  }
  .hero-text { align-self: end; }
  .hero-aktion { align-self: start; }
}

/* Status «Jetzt geöffnet» */
.status {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 1.25rem;
  padding: .4rem 1rem;
  background: var(--hell);
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
}
.abschnitt .status { background: transparent; border: 2px solid var(--gruen); }
.punkt {
  width: .7rem;
  height: .7rem;
  border-radius: 50%;
  background: var(--braun-weich);
  flex: none;
}
.status.offen .punkt { background: var(--gruen); }

/* Die runde Bildscheibe: das eine Element, das auffallen soll */
.scheibe {
  grid-area: scheibe;
  position: relative;
  align-self: center;
  justify-self: center;
  width: min(86%, 31rem);
  aspect-ratio: 1;
}
.scheibe-bild {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  background: var(--sand-dunkel);
}
.folie {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.folie.aktiv { opacity: 1; }
.folie img,
.teig-bild img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (prefers-reduced-motion: no-preference) {
  .folie.aktiv img { animation: ruhig 7s ease-out forwards; }
}
@keyframes ruhig {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}
.platz {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  margin: 0;
  padding: 3rem;
  max-width: none;
  text-align: center;
  font-size: .9375rem;
  line-height: 1.5;
  color: var(--braun-weich);
}

/* Hero-Pizza dreht sich beim Scrollen leicht, das Siegel langsam von selbst (script.js setzt --p von 0 bis 1) */
@media (prefers-reduced-motion: no-preference) {
  .scheibe { transform: translateY(calc(var(--p, 0) * 2.5rem)); }
  .scheibe-bild { transform: rotate(calc(var(--p, 0) * 18deg)); }
  .stempel { animation: stempel-dreh 40s linear infinite; }
  @keyframes stempel-dreh { to { transform: rotate(352deg); } }
}
.gericht { transition: opacity .25s ease, transform .25s ease; }
.gericht.aus { opacity: 0; transform: translateY(.5rem); }
@media (prefers-reduced-motion: reduce) {
  .gericht { transition: none; }
}

.stempel {
  position: absolute;
  left: -.5rem;
  bottom: 4%;
  z-index: 2;
  width: 6.75rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 50%;
  background: var(--gruen);
  color: var(--hell);
  font-family: var(--schrift-titel);
  font-size: 1rem;
  line-height: 1.2;
  transform: rotate(-8deg);
}
@media (min-width: 900px) {
  .stempel { left: -1.5rem; width: 8.25rem; font-size: 1.125rem; }
}

/* ---------- Abschnitte ---------- */
.abschnitt { padding-block: var(--abstand); }
/* Öffnungszeiten und Speisekarte stehen direkt hintereinander: weniger Luft dazwischen */
#zeiten { padding-bottom: calc(var(--abstand) * .4); }

.panel {
  margin-inline: clamp(.5rem, 2vw, 1.5rem);
  border-radius: var(--radius-gross);
}
.panel + .panel { margin-top: .75rem; }
.panel--gruen { background: var(--gruen); color: var(--hell); }
.panel--sand  { background: var(--sand); }

.zwei-spalten {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 900px) {
  .zwei-spalten { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .zwei-spalten--teig { align-items: center; }
}

/* Öffnungszeiten */
.zeiten-liste { margin: 0; max-width: 34rem; }
.zeile {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 0;
  border-bottom: 1px solid var(--linie);
}
.zeile dt { font-weight: 700; }
.zeile dd { margin: 0; text-align: right; white-space: nowrap; }
.zeile.heute dt::after {
  content: "heute";
  margin-left: .6rem;
  padding: .1rem .6rem;
  border-radius: 999px;
  background: var(--gruen);
  color: var(--hell);
  font-size: .8125rem;
  vertical-align: .1em;
}
.adresse { font-size: 1.25rem; }

/* Öffnungszeiten und Speisekarte: links die Überschrift, rechts die Liste */
.zeiten-raster,
.karte-raster { display: grid; gap: 2rem; }
.karte-kopf p { color: var(--braun-weich); }
.karte-hinweis { margin-top: 1.5rem; margin-bottom: .75rem; }
/* Am Handy übernimmt die feste Anruf-Leiste unten */
@media (max-width: 899px) {
  .karte-anruf { display: none; }
}
@media (min-width: 900px) {
  .zeiten-raster,
  .karte-raster { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 4rem; }
  .karte-kopf { align-self: start; position: sticky; top: 2rem; }
}

.filter {
  display: inline-flex;
  gap: .25rem;
  padding: .25rem;
  border: 2px solid var(--gruen);
  border-radius: 999px;
}
.filter button {
  min-height: 2.75rem;
  padding: .4rem 1.2rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--gruen);
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
}
.filter button[aria-pressed="true"] { background: var(--gruen); color: var(--hell); }

.karte-liste { margin: 0; padding: 0; list-style: none; }
.gericht { padding: 1.15rem 0; border-bottom: 1px solid var(--linie); }
.gericht-kopf { display: flex; align-items: baseline; gap: .6rem; }
.gericht-name {
  font-family: var(--schrift-titel);
  font-weight: 600;
  font-size: 1.375rem;
}
.punkte {
  flex: 1;
  min-width: 1rem;
  border-bottom: 2px dotted rgba(35, 27, 21, .4);
  transform: translateY(-.3rem);
}
.gericht-preis { font-weight: 800; white-space: nowrap; }
.gericht-zutaten { margin: .15rem 0 0; color: var(--braun-weich); }

/* Platzhalter sichtbar markieren */
.platzhalter {
  padding: 0 .4rem;
  border: 1px dashed var(--braun-weich);
  border-radius: .4rem;
  background: rgba(220, 192, 154, .55);
  font-weight: 700;
}

/* Bildband: drei Fotos gleich zugeschnitten und gleich getönt, mittleres Foto etwas tiefer */
.bildband { padding-block: 0 var(--abstand); }
.bildband-liste {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  width: min(100% - 2 * var(--rand), var(--breite));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.5rem, 2vw, 1.5rem);
}
.bildband-liste li { position: relative; overflow: hidden; border-radius: clamp(1rem, 3vw, 2rem); aspect-ratio: 4 / 5; background: var(--sand-dunkel); }
.bildband-liste li::after {            /* dünne warme Tönung, damit alle Fotos zusammenpassen */
  content: "";
  position: absolute;
  inset: 0;
  background: var(--sand);
  mix-blend-mode: soft-light;
  opacity: .35;
  pointer-events: none;
}
.bildband-liste img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.bildband-liste li:hover img { transform: scale(1.04); }
@media (min-width: 700px) {
  .bildband-liste li:nth-child(2) { margin-top: 2.5rem; }
}

/* Einblenden (nur wenn das Skript läuft, siehe script.js) */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(1.25rem);
    transition: opacity .6s cubic-bezier(.22, 1, .36, 1), transform .6s cubic-bezier(.22, 1, .36, 1);
    transition-delay: calc(var(--i, 0) * 90ms);
  }
  .js [data-reveal].ist-da,
  .js.alles-da [data-reveal] { opacity: 1; transform: none; }
}

/* Teig */
.teig-bild {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 2rem;
  overflow: hidden;
  background: rgba(251, 248, 242, .14);
}
.teig-bild .platz { color: var(--hell); }
@media (min-width: 900px) {
  .teig-bild { aspect-ratio: 4 / 5; }
}

/* Abholen oder essen */
.zwei-wege { display: grid; gap: 2rem; margin-top: 2rem; }
.zwei-wege h3 { margin-bottom: .6rem; }
.zwei-wege p { margin: 0; }
.klein { margin: 2rem 0 0; font-weight: 700; }
@media (min-width: 900px) {
  .zwei-wege { grid-template-columns: 1fr 1fr; gap: 0; }
  .zwei-wege > div { padding-right: 3rem; }
  .zwei-wege > div + div { padding-left: 3rem; padding-right: 0; border-left: 2px solid rgba(35, 27, 21, .25); }
}

/* Kontakt */
.kontakt-anruf { align-self: center; }
.kontakt-satz { font-size: 1.25rem; }
.kontakt-nummer { margin: 1rem 0 0; font-size: 1.5rem; font-weight: 800; }

/* Footer */
.fuss { margin-bottom: .5rem; padding-block: 3rem; }
.fuss p { margin: 0 0 .4rem; }
.fuss-inhalt { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.fuss-logo { width: 11rem; height: 11rem; flex: none; }
@media (min-width: 900px) {
  .fuss-inhalt { flex-direction: row; align-items: center; gap: 2.5rem; }
}

/* Anruf-Leiste am Handy */
.fix-anruf {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 20;
  padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom));
  background: var(--hell);
  border-top: 1px solid rgba(35, 27, 21, .15);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform .3s ease, visibility .3s;
}
.fix-anruf.sichtbar { transform: none; visibility: visible; }
@media (min-width: 900px) {
  .fix-anruf { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .fix-anruf { transition: none; }
}

/* Hinweis auf Impressum und Datenschutz von Nebenan Web (Beispielseite) */
.fuss .demo-recht { margin: 1.5rem auto 0; font-size: .875rem; opacity: .85; }
.fuss .demo-recht a { color: inherit; text-underline-offset: .2em; }
