/* Mr. Pizza Dortmund – statische Übergangsseite im Stil des alten GrandRestaurant-Themes */
:root {
  --bg: #000;
  --bg-2: #0e0e0e;
  --bg-3: #111;
  --text: #bdbdbd;
  --text-strong: #fff;
  --muted: #7a7a7a;
  --accent: #9f1a17;
  --line: #222;
  --head: "Josefin Sans", "Futura", "Century Gothic", Helvetica, Arial, sans-serif;
  --body: "Open Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --script: "Nothing You Could Do", "Segoe Script", "Bradley Hand", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.7 var(--body);
}
img { max-width: 100%; display: block; }
a { color: var(--text-strong); }
h1, h2, h3, h4, h5 {
  font-family: var(--head);
  color: var(--text-strong);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 400;
  margin: 0 0 .6em;
}
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }

/* Topbar + Navigation */
.topbar {
  background: var(--accent);
  color: #fff;
  text-align: center;
  font-size: 13px;
  letter-spacing: 1px;
  padding: 6px 16px;
}
.topbar a { text-decoration: none; font-weight: 600; }
header.nav {
  background: rgba(0,0,0,.72);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
header.nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 10px; padding-bottom: 10px;
}
header.nav .logo img { height: 64px; width: auto; }
header.nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 4px 24px;
}
header.nav ul a {
  font-family: var(--head);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  text-decoration: none;
  color: var(--text-strong);
}
header.nav ul a { transition: color .2s; }
header.nav ul a:hover { color: var(--accent); }

/* Hero-Banner */
.hero {
  background: url(img/header.jpg) center / cover no-repeat, var(--bg);
  width: 100%;
  height: min(53.33vw, 85vh); /* Bildverhältnis 1920:1024, aber nie höher als 85 % des Fensters */
  min-height: 220px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 35%;
  background: linear-gradient(transparent, var(--bg-2));
}

/* Reservieren-Leiste */
.cta {
  background: var(--bg-2);
  text-align: center;
  padding: 55px 16px;
}
.cta h2 { font-size: 28px; }
.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: var(--head);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  text-decoration: none;
  padding: 12px 30px;
  border: 1px solid var(--accent);
  transition: background .2s, color .2s;
}
.button { transition: background .2s, color .2s, transform .2s, box-shadow .2s; }
.button:hover { background: transparent; color: var(--accent); transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(159,26,23,.6); }
.button.ghost { background: transparent; color: #fff; border-color: #fff; }
.button.ghost:hover { background: #fff; color: #000; }

/* Zweispaltig: Bild + Text */
.split { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); }
.split .pic { background: url(img/lecker.jpg) center / cover no-repeat; min-height: 600px; }
.split .txt { padding: 60px 50px; align-self: center; }
.title-first {
  display: block;
  font-family: var(--script);
  text-transform: none;
  letter-spacing: 0;
  color: var(--accent);
  font-size: .8em;
}
.ppb-title { font-size: 34px; }

/* Online bestellen */
.order {
  background: linear-gradient(rgba(0,0,0,.65), rgba(0,0,0,.65)), url(img/roma.jpg) center / cover no-repeat;
  text-align: center;
  padding: 90px 16px;
}
.order h2 { font-size: 30px; }

/* Speisekarte-Auszug */
.menu { background: var(--bg-3); padding: 70px 0; text-align: center; }
.menu-list { max-width: 760px; margin: 30px auto 30px; text-align: left; }
.menu-item {
  display: grid; grid-template-columns: 1fr auto; column-gap: 24px; align-items: baseline;
  border-bottom: 1px dashed #333; padding: 20px 12px; margin: 0 -12px;
  transition: background .3s;
}
.menu-item:hover { background: rgba(255,255,255,.035); }
.menu-item h4 { grid-column: 1; font-size: 18px; margin: 0 0 4px; }
.menu-item p { grid-column: 1; margin: 0; }
.menu-item .sizes { grid-column: 2; grid-row: 1; }
.menu-item .allerg { font-style: italic; color: var(--muted); }
.sizes { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.sizes span { font-family: var(--head); letter-spacing: 1px; color: #fff; white-space: nowrap; }
.sizes b { color: var(--accent); font-weight: 400; margin-left: 8px; font-size: 17px; }
.sizes b:only-child { margin-left: 0; }

/* Bewertungen */
.reviews { padding: 70px 0; text-align: center; }
.reviews blockquote {
  max-width: 760px; margin: 0 auto 40px;
  font-size: 18px; font-style: italic; color: #ddd;
}
.reviews .stars { color: var(--accent); letter-spacing: 4px; font-style: normal; }
.reviews cite { display: block; margin-top: 10px; font-style: normal; font-family: var(--head); text-transform: uppercase; letter-spacing: 2px; font-size: 13px; color: var(--muted); }

/* Team */
.team { padding: 30px 0 80px; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.team-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: grayscale(1); transition: filter .6s, transform .6s; }
.team-grid > div { overflow: hidden; }
.team-grid > div:hover img { filter: grayscale(0); transform: scale(1.03); }
.team-grid h5 { margin: 14px 0 0; font-size: 16px; }
.team-grid .role { color: var(--muted); font-size: 13px; }

/* Kontakt / Öffnungszeiten */
.info { background: var(--bg-2); padding: 70px 0; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.info h3 { font-size: 18px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.info p { margin: 0 0 8px; }
.info small { color: var(--muted); }
.social { display: flex; gap: 14px; margin-top: 10px; }

/* Google-Maps-Karte: wird erst nach Klick geladen (Datenschutz) */
.map {
  /* quadratisch; so groß wie möglich, aber max. 800px und nie höher als das Fenster */
  width: min(100%, 800px, 85vh);
  aspect-ratio: 1 / 1;
  margin: 50px auto 0;
  border: 1px solid var(--line);
  background: var(--bg-3);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-consent { max-width: 460px; padding: 24px 16px; }
.map-consent h3 { border: 0; padding: 0; }
.map-consent p { color: var(--muted); font-size: 13px; }
.map-consent .button { margin: 10px 0 14px; cursor: pointer; }

/* Kontaktseite */
.kontakt-hero { background: linear-gradient(rgba(0,0,0,.6), rgba(0,0,0,.6)), url(img/lecker.jpg) center / cover no-repeat, var(--bg); }
.kontakt-page { background: var(--bg-3); padding-top: 40px; }
.info-more { margin-top: 40px; text-align: center; }

footer {
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  padding: 24px 16px;
}
footer a { color: var(--muted); }

/* Unterseiten (Impressum, Datenschutz) */
.page { padding: 60px 0 80px; }
.page .wrap { max-width: 820px; }
.page h1 { font-size: 30px; }
.page h2 { font-size: 18px; margin-top: 2em; }


/* Speisekarte (eigene Seite) */
.menu h1.ppb-title { font-size: 34px; }
.menu-cats {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px;
  position: sticky; top: 85px; z-index: 5; /* 85px = Höhe der Navigation */
  margin: 0 -16px 20px; padding: 14px 16px;
  background: rgba(17,17,17,.82);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.menu-cats a {
  position: relative; padding-bottom: 4px;
  font-family: var(--head); text-transform: uppercase; letter-spacing: 2px; font-size: 13px;
  text-decoration: none; transition: color .2s;
}
.menu-cats a::after {
  content: ""; position: absolute; left: 0; right: 2px; bottom: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.menu-cats a:hover, .menu-cats a.active { color: var(--accent); }
.menu-cats a.active::after { transform: scaleX(1); }
.menu-cat { margin-top: 50px; font-size: 24px; color: var(--accent); scroll-margin-top: 170px; }
.menu-page .menu-cat::after {
  content: ""; display: block; width: 40px; height: 2px; margin: 12px auto 0;
  background: var(--accent); opacity: .6;
}
.menu-page { padding-top: 10px; }

/* Kopfbereich der Speisekarte */
.page-hero {
  position: relative; text-align: center;
  padding: 120px 16px 100px;
  background: linear-gradient(rgba(0,0,0,.6), rgba(0,0,0,.6)), url(img/roma.jpg) center / cover no-repeat, var(--bg);
}
.page-hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 50%;
  background: linear-gradient(transparent, var(--bg-3));
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1.ppb-title { font-size: clamp(36px, 6vw, 60px); }
.page-hero .title-first { color: #fff; } /* Rot ist auf dem Foto schlecht lesbar */
.page-hero p { max-width: 560px; margin: 0 auto; font-size: 18px; color: #ddd; }
.menu-item .neu { background: var(--accent); color: #fff; font-size: 11px; padding: 2px 6px; vertical-align: middle; letter-spacing: 1px; }
.menu-note { max-width: 760px; margin: 24px auto 30px; font-size: 13px; color: var(--muted); }

.allergene { scroll-margin-top: 170px; max-width: 760px; margin: 60px auto 0; padding-top: 30px; border-top: 1px solid var(--line); text-align: left; font-size: 13px; color: var(--muted); }
.allergene h2 { font-size: 20px; color: var(--accent); }
.allergene h3 { font-size: 14px; margin: 24px 0 8px; }
.allergene ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; }
.allergene li { break-inside: avoid; margin-bottom: 4px; }
.allergene li b { display: inline-block; min-width: 18px; color: var(--text-strong); }

/* ---------- Scroll-Effekte ---------- */
/* Statement: Text hellt sich Wort für Wort beim Scrollen auf (Apple-Style) */
.statement {
  background: var(--bg);
  padding: 22vh 16px;
  text-align: center;
}
.fade-text {
  max-width: 1000px; margin: 0 auto;
  font-family: var(--head);
  font-weight: 600;
  font-size: clamp(30px, 5.6vw, 68px);
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--text-strong);
}
.fade-text .hl,
.fade-text .hl .w {
  background: linear-gradient(90deg, #ff7a45, #e0352b);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.fade-text .hl:has(.w) { background: none; }
.fade-text .w { transition: opacity .15s linear; }
.js .fade-text .w { opacity: .15; }

/* Elemente gleiten beim Scrollen sanft ins Bild */
.js .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--d, 0s);
}
.js .reveal.in { opacity: 1; transform: none; }
/* Großes Bild (Unsere Geschichte): nur einblenden und leicht heranzoomen, nicht hochgleiten */
/* Das Foto liegt in einer inneren Ebene (::before), damit nur das Foto zoomt und nicht über den Rand ragt */
.split .pic.pic-fade { position: relative; overflow: hidden; background: none; }
.split .pic.pic-fade::before {
  content: ""; position: absolute; inset: 0;
  background: url(img/lecker.jpg) center / cover no-repeat;
}
.js .reveal.pic-fade { transform: none; transition: opacity 1.4s ease-out; }
.js .reveal.pic-fade::before { transform: scale(1.08); transition: transform 2.2s cubic-bezier(.2,.7,.2,1); }
.js .reveal.pic-fade.in::before { transform: none; }
.js .reveal.menu-item {
  transform: translateY(20px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1) var(--d, 0s), transform .8s cubic-bezier(.2,.7,.2,1) var(--d, 0s), background .3s;
}
.js .reveal.menu-item.in { transform: none; }
.js .reveal.button {
  transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform .5s cubic-bezier(.2,.7,.2,1),
              background .2s, color .2s, box-shadow .2s;
  transition-delay: 0s;
}

@media (prefers-reduced-motion: no-preference) {
  .hero { animation: hero-in 1.6s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes hero-in { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .reveal.pic-fade::before { transform: none; transition: none; }
  .js .fade-text .w { opacity: 1; }
}

@media (max-width: 860px) {
  header.nav .wrap { flex-direction: column; }
  header.nav { position: static; }
  header.nav .wrap { gap: 6px; padding-top: 8px; padding-bottom: 8px; }
  header.nav .logo img { height: 48px; }
  header.nav ul { justify-content: center; gap: 2px 18px; }
  .menu-cats {
    position: sticky; top: 0; z-index: 5;
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto;
    margin: 10px -16px 0; padding: 12px 16px;
    background: var(--bg-3); border-bottom: 1px solid var(--line);
    scrollbar-width: none;
  }
  .menu-cats a { white-space: nowrap; }
  .menu-cat { margin-top: 36px; scroll-margin-top: 60px; }
  .allergene { scroll-margin-top: 60px; }
  .page-hero { padding: 70px 16px 60px; }
  .page-hero p { font-size: 16px; }
  .menu-item { column-gap: 16px; }
  .allergene ul { columns: 1; }
  .split { grid-template-columns: 1fr; }
  .split .pic { min-height: 320px; }
  .split .txt { padding: 40px 16px; }
  .team-grid, .info-grid { grid-template-columns: 1fr; }
  .team-grid { max-width: 400px; margin: 0 auto; }
}
