/* italia.css — Pizzeria Napoli
   Gestaltungselemente mit italienischem Bezug und die
   Linien-Icons im Stil dünner Outline-Zeichnungen.
   Wird auf allen Seiten nach components.css geladen. */

/* ── LOGO ── */
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--color-ink);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav__logo-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  color: var(--color-accent);
  stroke-width: 0.9;
}

.nav__logo-text small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-top: 3px;
}

/* iOS Safari faerbt Buttons ohne gesetzte Textfarbe in Systemblau.
   Da die Icons currentColor nutzen, werden sie dort blau. */
button {
  color: inherit;
}

.cart-btn {
  color: var(--color-ink);
}

.cart-btn:hover {
  color: var(--color-accent);
}

.mode-card {
  color: var(--color-ink);
}

.mode-card--active {
  color: var(--color-on-accent, #fff);
}

.cat-link {
  color: var(--color-ink);
}

/* Unter 900px wird das Logo kompakter, damit Burger, Konto,
   Reservieren und Warenkorb in eine Zeile passen. */
@media (max-width: 900px) {
  .nav__logo { font-size: 1.05rem; gap: 0.4rem; }
  .nav__logo-mark { width: 30px; height: 30px; }
  .nav__logo-text small { display: none; }

  /* Kompaktere Bedienelemente, damit alles in eine Zeile passt */
  .nav .nav__aktionen { gap: 0.25rem; }
  .nav .nav__aktionen .btn { padding-inline: 0.45rem; }
  .nav .nav__konto { padding: 0.4rem; }
  .nav .nav__burger { width: 38px; }
  .nav .cart-btn { min-width: 38px; }
  .nav .ic { width: 1.15em; height: 1.15em; }

  /* Nur auf Seiten mit Warenkorb hat dieser Vorrang, dort steht
     Reservieren im aufgeklappten Menue. Auf der Startseite bleiben
     alle Buttons sichtbar. */
  .nav__inner:has(.cart-btn) .nav__aktionen .btn--outline { display: none; }
}

@media (max-width: 420px) {
  .nav__logo { font-size: 0.92rem; }
  .nav__logo-mark { width: 26px; height: 26px; }
}

/* ── LINIEN-ICONS ──
   Dünne Outline-Zeichnungen, Farbe immer über currentColor. */
.ic {
  width: 1.3em;
  height: 1.3em;
  flex-shrink: 0;
  vertical-align: -0.2em;
  stroke: currentColor;
  fill: none;
  stroke-width: 0.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  /* Strichstaerke bleibt beim Skalieren gleich fein */
  vector-effect: non-scaling-stroke;
}

.ic--lg { width: 2.6em; height: 2.6em; }
.ic--xl { width: 3.6em; height: 3.6em; }

/* Icon im Kreis, für Wegweiser und Kategorien */
.ic-badge {
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--color-line);
  background: var(--color-bg-soft);
  color: var(--color-accent);
  transition: border-color var(--transition), color var(--transition);
}

.ic-badge .ic { width: 38px; height: 38px; }

a:hover .ic-badge,
button:hover .ic-badge,
.ic-badge:hover {
  border-color: var(--color-accent);
}

.ic-badge--basil { color: var(--color-basil); }
.ic-badge--dark  { background: var(--color-dark); border-color: var(--color-dark); color: var(--color-bg); }

/* Icons in gefüllten Buttons folgen der Textfarbe */
.btn--primary .ic { color: currentColor; }

/* ── TRICOLORE ──
   Schmaler Zierstreifen, sparsam einsetzen. */
.tricolore {
  height: 4px;
  width: 100%;
  background: linear-gradient(
    to right,
    var(--it-green) 0 33.33%,
    var(--it-white) 33.33% 66.66%,
    var(--it-red) 66.66% 100%
  );
}

.tricolore--kurz {
  width: 72px;
  height: 3px;
  margin-inline: auto;
  margin-bottom: var(--space-4);
}

/* ── HANDSCHRIFTLICHE AKZENTE ── */
.script {
  font-family: var(--font-script);
  font-size: 1.6em;
  line-height: 1;
  color: var(--color-accent);
}

.script--basil { color: var(--color-basil); }

/* Kleine Auszeichnung über einer Überschrift, z. B. "Dal 1962" */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-3);
  display: block;
}

/* ── PAPIER- UND HOLZOFEN-TEXTUR ──
   Sehr dezent, damit der Hintergrund nicht unruhig wird. */
.paper {
  background-color: var(--color-bg);
  background-image:
    radial-gradient(circle at 20% 30%, rgba(193,39,45,0.035) 0, transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(75,107,60,0.035) 0, transparent 45%);
}

/* Karierte Tischdecke, nur für schmale Trennbänder */
.tovaglia {
  height: 22px;
  background-image:
    repeating-linear-gradient(0deg, rgba(193,39,45,0.16) 0 11px, transparent 11px 22px),
    repeating-linear-gradient(90deg, rgba(193,39,45,0.16) 0 11px, transparent 11px 22px);
  background-color: var(--color-bg-soft);
  border-block: 1px solid var(--color-line);
}

/* ── ABSCHNITTSTITEL MIT ZIERLINIE ── */
.titel-mitte {
  text-align: center;
  margin-bottom: var(--space-6);
}

.titel-mitte h2 {
  font-family: var(--font-head);
  font-weight: 900;
}

.titel-mitte__sub {
  color: var(--color-muted);
  font-size: var(--text-base);
  max-width: 56ch;
  margin-inline: auto;
  margin-top: var(--space-2);
}

/* Unterstrich, der wie auf einer Schreibmaschine gezogen wird
   und danach wieder verschwindet. Endlosschleife. */
.unterstrich {
  position: relative;
  display: inline-block;
}

.unterstrich::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.12em;
  height: 3px;
  width: 0;
  background: var(--color-accent);
  animation: strich-tippen 5s linear infinite;
}

@keyframes strich-tippen {
  0%   { width: 0; }
  25%  { width: 100%; }
  65%  { width: 100%; }
  90%  { width: 0; }
  100% { width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .unterstrich::after { animation: none; width: 100%; }
}

/* Handschriftlicher Gruss im Hero, etwas groesser als sonst */
.hero__content .script {
  display: block;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  line-height: 1.1;
  margin-bottom: var(--space-3);
}

/* Icons auf der Reservierungsseite in der Akzentfarbe */
.res-info-card h3 .ic,
.res-info-item .ic,
.res-hero .ic,
.res-success__icon .ic {
  color: var(--color-accent);
}

.res-info-item .ic {
  width: 20px;
  height: 20px;
}

/* Icons im Kontaktbereich in der Akzentfarbe */
.contact-card__icon {
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
}

.contact-card__icon .ic {
  width: 22px;
  height: 22px;
}

/* Statushinweis im Mittagstisch-Banner */
.pranzo-status {
  font-weight: 600;
  opacity: 0.7;
}

.pranzo-status--aktiv {
  opacity: 1;
  color: var(--color-on-accent, #fff);
  background: rgba(255,255,255,0.18);
  border-radius: 999px;
  padding: 0.1rem 0.6rem;
  margin-left: 0.2rem;
}

/* Angebotskacheln ohne Icon und Button: Text traegt die Kachel
   allein und darf deshalb groesser stehen. */
.offer-card__title {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  line-height: 1.1;
  margin-bottom: var(--space-3);
}

.offer-card__text {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.5;
  max-width: 28ch;
}

/* ── SPLIT-SEKTIONEN ──
   Halbe Breite Bild, halbe Breite Text, Bild randlos bis zur
   Bildschirmkante. Auf Mobile steht das Bild immer oben. */
.split {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
}

.split__media {
  min-height: 260px;
  background-size: cover;
  background-position: center;
}

/* Auf Mobile steht immer erst der Text, dann das Bild.
   Auf Desktop regelt die Reihenfolge das Raster weiter unten. */
@media (max-width: 899px) {
  .split__text  { order: 1; }
  .split__media { order: 2; }
}

.split__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-7) var(--space-5);
  background: var(--color-bg-soft);
}

.split__text--paper { background: var(--color-bg); }

.split__inner {
  max-width: 46ch;
  margin-inline: auto;
  width: 100%;
}

.split__text h2 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.1;
  margin-bottom: var(--space-4);
}

.split__text p {
  color: var(--color-muted);
  line-height: 1.8;
  margin-bottom: var(--space-4);
}

.split__text p:last-of-type { margin-bottom: var(--space-5); }

/* Das handschriftliche Zitat behaelt seine Akzentfarbe.
   Ohne diese Regel gewinnt .split__text p mit dem Grauton. */
.split__text p.script {
  color: var(--color-accent);
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  line-height: 1.2;
}
.split__text p.script--basil { color: var(--color-basil); }

.split__aktionen {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    /* Feste Mindesthoehe, damit beide Split-Sektionen gleich hoch
       sind, unabhaengig davon wie viel Text darin steht. */
    min-height: 600px;
  }
  .split__media { min-height: 100%; }
  .split__text { padding: var(--space-7); }

  /* Bild links, Text rechts */
  .split--links .split__media { order: 1; }
  .split--links .split__text  { order: 2; }

  /* Bild rechts, Text links */
  .split--rechts .split__media { order: 2; }
  .split--rechts .split__text  { order: 1; }
}

/* ── BOGEN, wie ein Ofeneingang ── */
.bogen {
  border-radius: 999px 999px var(--radius-md) var(--radius-md);
  overflow: hidden;
}
