/* ============================================================
   BASIS
   ============================================================ */
:root {
  --bg: #ffffff;
  --fg: #111827;
  --muted: #6b7280;
  --brand: #0ea5e9;
  --border: #e5e7eb;
  --radius: 16px;
  --container: 1100px;   /* HIER kleiner machen */
  --header-h: 100px;
}


* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* Grund-Body: Schrift + animierter Hintergrund + Platz für Header */
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell,
    Noto Sans, Arial, sans-serif;
  color: var(--fg);
  line-height: 1.6;

  background: linear-gradient(
    135deg,
    #7f1d1d,
    #b91c1c,
    #ffffff,
    #b91c1c,
    #7f1d1d
  );
  background-size: 400% 400%;
  background-attachment: fixed;
  animation: bodyGradient 22s ease-in-out infinite;

  padding-top: var(--header-h);
}

/* diagonale Verlauf-Animation */
@keyframes bodyGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* leichte Fade-in-States (werden von JS-Klasse page-loaded aktiviert) */
body.page-loaded .site-header,
body.page-loaded .hero,
body.page-loaded .menu-section,
body.page-loaded .hours-section,
body.page-loaded .delivery-section,
body.page-loaded .contact-section,
body.page-loaded .site-footer {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   GENERELLES LAYOUT
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}


/* große weißen Karten (Hero-Card, Speisekarte, Kontakt usw.) */
.menu-section,
.hours-section,
.contact-section,
.delivery-section {
  max-width: var(--container);
  width: 100%;
  margin: 40px auto;
  padding: 40px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

/* kleinerer Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 16px 0;
  color: var(--muted);
}

/* ============================================================
   HEADER – DA PEDRO
   ============================================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 1000;

  background: linear-gradient(120deg, #7f1d1d, #b91c1c, #7f1d1d);
  background-size: 220% 220%;
  animation: headerGradient 18s ease-in-out infinite alternate;

  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
  transition: padding 0.25s ease, box-shadow 0.25s ease,
    background 0.25s ease, backdrop-filter 0.25s ease;
}

/* Goldene Linie unten */
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, #facc15, #f97316, #fee2e2);
  opacity: 0.95;
}

/* Header-Gradient-Animation */
@keyframes headerGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* weiße Pille im Header */
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  height: 100%;
  padding: 0 32px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;

  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

/* Brand links */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.25s ease;
}
.brand:hover {
  transform: translateY(-2px);
}

.logo {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  object-fit: cover;
  background: #111827;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.5);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-main {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b91c1c;
}

.brand-sub {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #6b7280;
}

/* Desktop-Navigation rechts (jetzt auch auf Mobile sichtbar) */
.main-nav {
  display: flex;
  gap: 30px;
}

.main-nav a {
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  text-decoration: none;
  color: #b91c1c;
  position: relative;
  padding-bottom: 4px;
}

/* Unterstrich beim Hover */
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, #facc15, #f97316);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.18s ease-out;
}
.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

/* ============================================================
   HERO-BEREICH (rote Fläche + Glass-Card)
   ============================================================ */

.hero {
  padding: 120px 0 140px;
  border: none;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #7f1d1d 0%, #b91c1c 40%, #450a0a 100%);
}

/* Übergang vom Header in den Hero */
.hero::before {
  content: "";
  position: absolute;
  top: -80px;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(
    to bottom,
    rgba(127, 29, 29, 1) 0%,
    rgba(127, 29, 29, 0.7) 40%,
    rgba(127, 29, 29, 0.3) 75%,
    rgba(127, 29, 29, 0) 100%
  );
  pointer-events: none;
}

/* heller Glow nach unten (wenn du willst) */
.hero::after {
  content: "";
  position: absolute;
  top: -60px;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 0.6) 30%,
    rgba(255, 255, 255, 0.15) 70%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Glass-Card im Hero */
.hero .container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 32px 28px 36px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 5;
}

/* Layout im Hero */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 8px;
}

.hero-text h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 12px;
  color: #1a1a1a;
  font-weight: 800;
}

.hero-sub {
  margin: 0 0 20px;
  color: #333;
  font-size: 17px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: #222;
  font-size: 14px;
  font-weight: 500;
}
.hero-highlights li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  margin-right: 6px;
  background: linear-gradient(135deg, #0ea5e9, #22c55e);
}

/* rechte Hero-Seite */
.hero-media {
  display: grid;
  gap: 16px;
}

.hero-card {
  border-radius: 22px;
  border: 1px solid #d1d5db;
  padding: 16px 18px;
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.35);
}

.hero-badge {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand);
  margin: 0 0 6px;
}

.hero-card-text {
  margin: 0;
  color: var(--muted);
}

.hero-image-placeholder {
  border-radius: 22px;
  border: 2px dashed #cbd5e1;
  padding: 24px 18px;
  font-size: 14px;
  color: #374151;
  text-align: center;
  background: #f3f4f6;
  font-weight: 500;
}

/* Hero – Mobile */
@media (max-width: 768px) {
  .hero {
    padding: 70px 0 90px;
  }

  .hero .container {
    padding: 24px 18px 26px;
    border-radius: 22px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-media {
    order: -1; /* Bildbereich über dem Text auf Handy */
  }
}
.hero-media img {
  width: 100%;
  max-width: 260px;    /* Größe begrenzen */
  height: 180px;       /* gleiche Höhe */
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* Buttons allgemein */
.btn,
.btn.outline {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: inline-block;
  padding: 10px 16px;
  text-decoration: none;
  transform: translateY(0);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.25s ease,
    color 0.25s ease, border-color 0.25s ease;
}

.btn {
  background: linear-gradient(135deg, #0ea5e9, #22c55e);
  border: none;
  color: #ffffff !important;
  box-shadow: 0 10px 18px rgba(14, 165, 233, 0.35);
}

.btn.outline {
  background: transparent;
  color: #0ea5e9 !important;
  border: 2px solid #0ea5e9;
  box-shadow: 0 6px 14px rgba(148, 163, 184, 0.4);
}

.btn::before,
.btn.outline::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.85),
    rgba(255, 255, 255, 0)
  );
  transform: skewX(-20deg);
  pointer-events: none;
}

.btn:hover,
.btn.outline:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.25);
}

.btn:hover::before,
.btn.outline:hover::before {
  left: 160%;
  transition: left 0.55s ease-out;
}

/* ============================================================
   SPEISEKARTE / KARTEN
   ============================================================ */

.menu-section h3,
.hours-section h3,
.contact-section h3 {
  font-size: 28px;
  margin: 0 0 16px;
}

/* Kategorien */
.menu-group {
  margin-bottom: 56px;
}

/* Farbakzente pro Kategorie */
.cat-pizza {
  --acc: #ef4444;
}
.cat-pasta {
  --acc: #eab308;
}
.cat-getraenke {
  --acc: #0ea5e9;
}

/* Kategorie-Überschrift */
.menu-category {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 18px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--acc, var(--brand));
  border-left: 6px solid var(--acc, var(--brand));
  padding-left: 12px;
}

/* Grid der Gerichte */
.dish-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.dish-card {
  border: 1px solid color-mix(in oklab, var(--acc, #999) 20%, var(--border));
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border-top: 4px solid var(--acc, var(--brand));
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.dish-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.16);
  border-color: rgba(14, 165, 233, 0.5);
}

.dish-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.menu-group .dish-img {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.dish-body {
  padding: 16px;
  display: grid;
  gap: 8px;
}

.dish-title {
  margin: 0;
  font-size: 18px;
}

.dish-desc {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* Preis-Spalten */
.price-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 8px;
}

.price-col {
  border: 1px dashed #ddd;
  border-radius: 8px;
  text-align: center;
  padding: 6px;
  background: linear-gradient(
    0deg,
    color-mix(in oklab, var(--acc, #999) 8%, #fff) 0,
    #fff 100%
  );
}

.price-col span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.price-col strong {
  display: block;
  font-size: 15px;
  margin-top: 4px;
  color: var(--acc, inherit);
}

/* Öffnungszeiten */
.hours {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.hours li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed #eee;
  padding-bottom: 6px;
}

/* Kontakt */
address {
  font-style: normal;
}
.map-wrap {
  aspect-ratio: 16/9;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Hinweistext */
.hint {
  color: var(--muted);
  margin-top: 16px;
}

/* ============================================================
   MOBILE-ANPASSUNGEN (Speisekarte & Co.)
   ============================================================ */

@media (max-width: 640px) {
  .hero {
    min-height: 44vh;
    padding: 24px 16px;
  }

  .dish-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .dish-card {
    border-radius: 14px;
  }

  .dish-img {
    height: 180px;
  }

  .dish-body {
    padding: 14px;
    gap: 6px;
  }

  .dish-title {
    font-size: 18px;
  }
  .dish-desc {
    font-size: 13px;
    line-height: 1.45;
  }

  .price-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .price-col {
    padding: 8px;
  }
  .price-col span {
    font-size: 11px;
  }
  .price-col strong {
    font-size: 15px;
  }
  .price-row .price-col:last-child {
    grid-column: 1 / -1;
  }

  .menu-category {
    font-size: 22px;
    margin: 24px 0 12px;
    padding-left: 10px;
    border-left-width: 5px;
  }
}

/* ============================================================
   HERO-BILDER (Restaurant-Fotos)
   ============================================================ */

/* Desktop & Tablet */
.hero-images {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  justify-content: center;
}

.hero-images img {
  width: 100%;
  max-width: 380px;
  height: 240px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* Mobile */
@media (max-width: 600px) {
  .hero-images {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .hero-images img {
    max-width: 90%;
    height: 160px;
  }
}
.hero {
  padding: 60px 0;
}

.hero h1 {
  font-size: 2.2rem;   /* vorher 3rem */
  line-height: 1.2;
}

.hero .hero-card {
  transform: scale(0.9); /* Box rechts kleiner */
}

.dish-card {
  padding: 14px;
}

.dish-title {
  font-size: 1rem;
}
/* ===== Header auf Handy kleiner machen ===== */
@media (max-width: 768px) {
  :root {
    --header-h: 72px;   /* vorher 100px -> weniger Höhe */
  }

  .site-header {
    box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  }

  .header-inner {
    padding: 0 16px;    /* weniger Innenabstand */
    gap: 16px;
  }

  .logo {
    width: 36px;
    height: 36px;       /* Logo kleiner */
  }

  .brand-main {
    font-size: 18px;    /* Schrift vom Logo kleiner */
    letter-spacing: 0.06em;
  }

  .brand-sub {
    font-size: 9px;
    letter-spacing: 0.14em;
  }

  .main-nav {
    gap: 16px;          /* weniger Abstand zwischen Links */
  }

  .main-nav a {
    font-size: 11px;    /* kleinere Buttons/Links */
    letter-spacing: 0.12em;
    padding-bottom: 2px;
  }
}
/* ===========================
   MOBILE HEADER OPTIMIERUNG
   =========================== */
@media (max-width: 768px) {

  :root {
    --header-h: 58px;   /* vorher 100 → jetzt deutlich kleiner */
  }

  .site-header {
    height: var(--header-h);
    padding: 0;
    box-shadow: 0 3px 12px rgba(0,0,0,0.25);
  }

  .header-inner {
    height: var(--header-h);
    padding: 0 12px;
    gap: 10px;
    border-radius: 40px;
  }

  /* LOGO kleiner */
  .logo {
    width: 32px;
    height: 32px;
  }

  /* Brand-Text kleiner */
  .brand-main {
    font-size: 16px;
  }

  .brand-sub {
    font-size: 8px;
  }

  /* Navigation kleiner & enger */
  .main-nav {
    gap: 12px;
  }

  .main-nav a {
    font-size: 10px;
    letter-spacing: 0.1em;
    padding: 0;
  }
}
/* =====================================
   MOBILE-FEINTUNING (unter 768px)
   ===================================== */
@media (max-width: 768px) {

  /* Hero insgesamt weniger wuchtig */
  .hero {
    padding: 52px 0 70px;
  }

  .hero .container {
    padding: 18px 16px 22px;
    border-radius: 20px;
    box-shadow: 0 14px 30px rgba(0,0,0,0.35);
  }

  /* Überschrift & Text kleiner */
  .hero-text h1 {
    font-size: 1.9rem;      /* vorher größer */
    line-height: 1.22;
    margin-bottom: 10px;
  }

  .hero-sub {
    font-size: 0.95rem;
    margin-bottom: 16px;
  }

  .hero-highlights {
    font-size: 0.8rem;
    gap: 6px 12px;
  }

  /* Hero-Karte + Bild kompakter */
  .hero-card {
    padding: 10px 12px;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.30);
  }

  .hero-badge {
    font-size: 0.7rem;
  }

  .hero-card-text {
    font-size: 0.8rem;
  }

  .hero-media {
    gap: 10px;
  }

  .hero-media img {
    max-width: 100%;
    height: 180px;
    border-radius: 14px;
  }
}
/* =====================================
   SPEISEKARTE – MOBILE KOMPAKTER
   ===================================== */
@media (max-width: 640px) {

  .menu-section,
  .hours-section,
  .delivery-section,
  .contact-section {
    margin: 20px auto;
    padding: 18px 14px;
  }

  .menu-section h3,
  .hours-section h3,
  .contact-section h3 {
    font-size: 22px;
    margin-bottom: 10px;
  }

  .menu-category {
    font-size: 20px;
    margin: 18px 0 10px;
  }

  .dish-card {
    box-shadow: 0 8px 18px rgba(0,0,0,0.10);
  }

  .dish-title {
    font-size: 0.95rem;
  }

  .dish-desc {
    font-size: 0.8rem;
  }
}
