/* ============ Pizzeria La Rustica ============ */
:root {
  --bg: #100c0a;
  --bg-soft: #191310;
  --card: #201814;
  --line: #322721;
  --cream: #f4ecdf;
  --muted: #b9a894;
  --red: #e6392c;
  --red-neon: #ff4b3a;
  --gold: #d9a441;
  --green: #3f9e58;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, .serif { font-family: "Playfair Display", Georgia, serif; }

.container { width: min(1140px, 92%); margin-inline: auto; }
section { padding: 90px 0; }

/* tricolor divider */
.tricolore {
  display: inline-flex; gap: 0; height: 4px; width: 84px; border-radius: 2px; overflow: hidden; margin-bottom: 18px;
}
.tricolore span { flex: 1; }
.tricolore span:nth-child(1) { background: #2e8b4f; }
.tricolore span:nth-child(2) { background: #f4ecdf; }
.tricolore span:nth-child(3) { background: var(--red); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head .kicker {
  color: var(--gold); text-transform: uppercase; letter-spacing: .22em; font-size: .78rem; font-weight: 600;
  display: block; margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 700; }
.section-head p { color: var(--muted); margin-top: 12px; }

/* ============ nav ============ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(16, 12, 10, .72); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.nav.scrolled { border-color: var(--line); background: rgba(16, 12, 10, .92); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: "Playfair Display", serif; }
.brand-badge {
  width: 42px; height: 42px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff6a52, var(--red) 70%);
  display: grid; place-items: center; font-size: 1.15rem; box-shadow: 0 0 18px rgba(230, 57, 44, .55);
}
.brand-text { line-height: 1.1; }
.brand-text b { font-size: 1.12rem; letter-spacing: .02em; display: block; }
.brand-text small { color: var(--gold); font-size: .68rem; letter-spacing: .28em; text-transform: uppercase; font-family: "Inter", sans-serif; }
.nav-links { display: flex; gap: 26px; list-style: none; align-items: center; }
.nav-links a { font-size: .92rem; color: var(--muted); font-weight: 500; transition: color .2s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--cream); }
.nav-cta {
  background: var(--red); color: #fff !important; padding: 10px 20px; border-radius: 999px; font-weight: 600;
  box-shadow: 0 6px 22px rgba(230, 57, 44, .35); transition: transform .15s, box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(230, 57, 44, .5); }
.burger { display: none; background: none; border: 0; color: var(--cream); font-size: 1.6rem; cursor: pointer; }

/* ============ hero ============ */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 140px 0 90px;
  isolation: isolate; overflow: hidden;
}
/* full-screen photo on every device; anchored to the left part (neon sign) */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: url("images/hero.jpg") 20% 40% / cover no-repeat;
  transform: scale(1.06);
  filter: blur(3px) brightness(.75);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(12, 8, 6, .62) 0%, rgba(12, 8, 6, .38) 45%, var(--bg) 98%);
}
.hero .status-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: 999px;
  background: rgba(0, 0, 0, .45); border: 1px solid var(--line); font-size: .85rem; margin-bottom: 26px;
}
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.status-dot.closed { background: var(--red); box-shadow: 0 0 10px var(--red); }
.hero h1 {
  font-size: clamp(2.6rem, 7.5vw, 5.2rem); line-height: 1.04; font-weight: 800; letter-spacing: .01em;
  text-shadow: 0 4px 40px rgba(0, 0, 0, .6);
}
.hero h1 .neon {
  color: #ffc857;
  text-shadow: 0 0 16px rgba(255, 200, 87, .55), 0 0 55px rgba(255, 166, 0, .35), 0 4px 30px rgba(0, 0, 0, .65);
}
.hero .sub { color: #e8ddcc; max-width: 560px; margin: 22px auto 0; font-size: 1.08rem; }
.hero-ctas { display: flex; gap: 16px; justify-content: center; margin-top: 38px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 30px; border-radius: 999px; font-weight: 600;
  font-size: 1rem; border: 0; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s;
}
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 10px 30px rgba(230, 57, 44, .4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(230, 57, 44, .55); }
.btn-ghost { background: rgba(255, 255, 255, .08); color: var(--cream); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .15); }
.hero-facts {
  margin-top: 64px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}
.fact {
  background: rgba(20, 14, 11, .72); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 22px; font-size: .9rem; display: flex; align-items: center; gap: 10px; backdrop-filter: blur(8px);
}
.fact b { color: var(--gold); }

/* ============ about ============ */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.about-grid h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-bottom: 18px; }
.about-grid p { color: var(--muted); margin-bottom: 14px; }
.about-img { position: relative; }
.about-img img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3.4; object-fit: cover; }
.about-img .since {
  position: absolute; bottom: -22px; left: -22px; background: var(--red); color: #fff; border-radius: var(--radius);
  padding: 18px 24px; text-align: center; box-shadow: 0 14px 34px rgba(230, 57, 44, .45);
}
.about-img .since b { display: block; font-size: 1.7rem; font-family: "Playfair Display", serif; }
.about-img .since small { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 30px; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
  display: flex; gap: 14px; align-items: flex-start;
}
.feature .ico { font-size: 1.4rem; }
.feature b { display: block; margin-bottom: 2px; font-size: .95rem; }
.feature span { color: var(--muted); font-size: .84rem; }

/* ============ menu ============ */
#speisekarte { background: var(--bg-soft); border-block: 1px solid var(--line); }
.menu-tools { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-bottom: 30px; }
.menu-search {
  flex: 1 1 320px; max-width: 420px; background: var(--card); border: 1px solid var(--line); color: var(--cream);
  border-radius: 999px; padding: 13px 22px; font-size: .95rem; outline: none; transition: border-color .2s;
}
.menu-search:focus { border-color: var(--gold); }
.menu-search::placeholder { color: var(--muted); }
.cat-pills { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 14px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.cat-pills::-webkit-scrollbar { height: 6px; }
.cat-pills::-webkit-scrollbar-track { background: transparent; }
.cat-pills::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.cat-pill {
  white-space: nowrap; background: var(--card); color: var(--muted); border: 1px solid var(--line);
  padding: 10px 18px; border-radius: 999px; font-size: .88rem; font-weight: 500; cursor: pointer; transition: all .18s;
}
.cat-pill:hover { color: var(--cream); border-color: var(--gold); }
.cat-pill.active { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(230, 57, 44, .35); }
.menu-note { text-align: center; color: var(--gold); font-size: .9rem; font-style: italic; margin-bottom: 26px; min-height: 1.4em; }
.menu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; }
.menu-item {
  display: flex; gap: 14px; padding: 16px 18px; border-radius: var(--radius); background: var(--card);
  border: 1px solid var(--line); transition: transform .15s, border-color .2s;
}
.menu-item:hover { transform: translateY(-2px); border-color: #4a3a2e; }
.menu-item .code {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 10px; background: rgba(230, 57, 44, .12);
  color: var(--red-neon); font-weight: 700; display: grid; place-items: center; font-size: .82rem;
}
.menu-item .mi-body { flex: 1; min-width: 0; }
.menu-item .mi-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.menu-item h4 { font-family: "Inter", sans-serif; font-size: .98rem; font-weight: 600; }
.menu-item .price { color: var(--gold); font-weight: 700; white-space: nowrap; }
.menu-item p { color: var(--muted); font-size: .84rem; margin-top: 2px; }
.menu-empty { text-align: center; color: var(--muted); padding: 40px 0; grid-column: 1/-1; }

/* ============ gallery ============ */
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 240px; gap: 14px;
}
.gallery-grid a { border-radius: var(--radius); overflow: hidden; position: relative; cursor: zoom-in; }
.gallery-grid a:first-child { grid-column: span 2; grid-row: span 2; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-grid a:hover img { transform: scale(1.05); }
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(8, 5, 4, .92); display: none; place-items: center; padding: 4vh 4vw;
}
.lightbox.open { display: grid; }
.lightbox img { max-height: 90vh; max-width: 92vw; width: auto; border-radius: 10px; box-shadow: var(--shadow); }
.lightbox button {
  position: absolute; top: 20px; right: 26px; background: none; border: 0; color: #fff; font-size: 2.2rem; cursor: pointer;
}

/* ============ hours ============ */
.hours-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.hours-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.hours-card table { width: 100%; border-collapse: collapse; }
.hours-card td { padding: 15px 24px; border-bottom: 1px solid var(--line); font-size: .95rem; }
.hours-card tr:last-child td { border-bottom: 0; }
.hours-card td:last-child { text-align: right; color: var(--muted); }
.hours-card tr.today { background: rgba(217, 164, 65, .07); }
.hours-card tr.today td:first-child { color: var(--gold); font-weight: 600; }
.holiday-note { margin-top: 16px; color: var(--muted); font-size: .85rem; }

/* ============ reservation ============ */
#reservierung { background: var(--bg-soft); border-block: 1px solid var(--line); }
.resv-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; }
.resv-info h3 { font-size: 1.5rem; margin-bottom: 14px; }
.resv-info p { color: var(--muted); margin-bottom: 18px; font-size: .95rem; }
.resv-info .phone-big {
  display: inline-flex; align-items: center; gap: 12px; font-size: 1.25rem; font-weight: 700; color: var(--cream);
  background: var(--card); border: 1px solid var(--line); padding: 14px 22px; border-radius: var(--radius); margin-top: 6px;
}
.resv-steps { list-style: none; margin-top: 26px; display: grid; gap: 14px; }
.resv-steps li { display: flex; gap: 14px; align-items: flex-start; color: var(--muted); font-size: .9rem; }
.resv-steps .n {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: rgba(217, 164, 65, .15); color: var(--gold);
  display: grid; place-items: center; font-weight: 700; font-size: .8rem;
}
.resv-form {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); margin-bottom: 7px; text-transform: uppercase; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; color: var(--cream);
  padding: 13px 15px; font-size: .95rem; font-family: inherit; outline: none; transition: border-color .2s;
  color-scheme: dark;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); }
/* iOS Safari: Datumswert linksbündig und volle Feldhöhe wie die anderen Felder */
.field input[type="date"] { min-height: 47px; }
.field input::-webkit-date-and-time-value { text-align: left; }
@supports (-webkit-touch-callout: none) {
  /* nur iOS: natives Zentrier-Styling des Datumsfelds abschalten */
  .field input[type="date"] {
    -webkit-appearance: none;
    appearance: none;
    text-align: left;
  }
}
.field textarea { resize: vertical; min-height: 84px; }
.resv-form .btn { width: 100%; justify-content: center; margin-top: 6px; }
.form-msg { margin-top: 16px; font-size: .9rem; border-radius: 10px; padding: 14px 16px; display: none; }
.form-msg.err { display: block; background: rgba(230, 57, 44, .12); border: 1px solid rgba(230, 57, 44, .4); color: #ffb0a8; }
.form-msg.ok { display: block; background: rgba(63, 158, 88, .12); border: 1px solid rgba(63, 158, 88, .45); color: #9fd8ae; }
.resv-success { text-align: center; padding: 30px 10px; display: none; }
.resv-success.show { display: block; }
.resv-success .check {
  width: 74px; height: 74px; border-radius: 50%; background: rgba(63, 158, 88, .15); border: 2px solid var(--green);
  display: grid; place-items: center; font-size: 2rem; margin: 0 auto 20px; color: var(--green);
}
.resv-success h3 { margin-bottom: 10px; }
.resv-success p { color: var(--muted); font-size: .95rem; }
.resv-success .summary {
  margin: 22px auto; max-width: 340px; text-align: left; background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px; padding: 18px 22px; font-size: .92rem; display: grid; gap: 8px;
}
.resv-success .summary span { color: var(--muted); }

/* ============ contact ============ */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; }
.contact-cards { display: grid; gap: 16px; align-content: start; }
.contact-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px;
  display: flex; gap: 16px; align-items: flex-start;
}
.contact-card .ico {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px; background: rgba(230, 57, 44, .12); color: var(--red-neon);
  display: grid; place-items: center; font-size: 1.2rem;
}
.contact-card b { display: block; margin-bottom: 3px; }
.contact-card span, .contact-card a { color: var(--muted); font-size: .92rem; }
.contact-card a:hover { color: var(--gold); }
.map-frame {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-height: 380px; box-shadow: var(--shadow);
}
.map-frame iframe { width: 100%; height: 100%; min-height: 380px; border: 0; filter: grayscale(.25) contrast(1.05); }
.map-btn { margin-top: 16px; width: 100%; justify-content: center; }

/* ============ footer ============ */
footer { background: #0b0806; border-top: 1px solid var(--line); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-grid h4 { font-family: "Inter", sans-serif; font-size: .85rem; text-transform: uppercase; letter-spacing: .16em; color: var(--gold); margin-bottom: 16px; }
.footer-grid p, .footer-grid li, .footer-grid a { color: var(--muted); font-size: .9rem; }
.footer-grid ul { list-style: none; display: grid; gap: 8px; }
.footer-grid a:hover { color: var(--cream); }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 24px; display: flex; justify-content: space-between; gap: 14px;
  flex-wrap: wrap; color: var(--muted); font-size: .82rem;
}
.footer-bottom a { color: var(--muted); margin-left: 18px; }
.footer-bottom a:hover { color: var(--cream); }

/* legal modal */
.modal { position: fixed; inset: 0; z-index: 300; background: rgba(8, 5, 4, .85); display: none; place-items: center; padding: 5vh 4vw; }
.modal.open { display: grid; }
.modal-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); max-width: 640px; width: 100%;
  max-height: 84vh; overflow-y: auto; padding: 36px; position: relative;
}
.modal-card h3 { margin-bottom: 16px; }
.modal-card p { color: var(--muted); font-size: .9rem; margin-bottom: 12px; }
.modal-card .x { position: absolute; top: 14px; right: 18px; background: none; border: 0; color: var(--muted); font-size: 1.6rem; cursor: pointer; }

/* back to top */
.to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 90; width: 48px; height: 48px; border-radius: 50%;
  background: var(--red); color: #fff; border: 0; font-size: 1.2rem; cursor: pointer; opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .2s; box-shadow: 0 10px 26px rgba(230, 57, 44, .4);
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ============ responsive ============ */
@media (max-width: 1080px) {
  .nav-links { gap: 16px; }
  .nav-links a { font-size: .85rem; }
  .nav-cta { padding: 9px 16px; }
}
@media (max-width: 960px) {
  .about-grid, .hours-wrap, .resv-wrap, .contact-grid { grid-template-columns: 1fr; }
  .menu-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-img .since { left: 12px; bottom: 12px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .gallery-grid a:first-child { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 900px) {
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; background: rgba(14, 10, 8, .98); flex-direction: column; gap: 0;
    padding: 10px 0 20px; border-bottom: 1px solid var(--line); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a { display: block; padding: 13px 0; font-size: 1rem; }
  .nav-links .nav-cta { margin: 12px auto 0; display: inline-block; }
  .burger { display: block; }
  section { padding: 64px 0; }
  .form-row { grid-template-columns: 1fr; }
  .resv-form { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* phones (iPhone, Android, small iPad split view) */
@media (max-width: 640px) {
  .container { width: 94%; }
  section { padding: 54px 0; }
  .hero { padding: 120px 0 70px; }
  .hero .sub { font-size: 1rem; }
  .hero-ctas .btn { width: 100%; max-width: 340px; justify-content: center; }
  .hero-facts { flex-direction: column; align-items: center; margin-top: 44px; }
  .fact { width: 100%; max-width: 380px; justify-content: center; text-align: center; }
  .features { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 210px; }
  .gallery-grid a:first-child { grid-column: span 1; }
  .menu-item { padding: 14px; gap: 11px; }
  .menu-item .mi-top { flex-wrap: wrap; }
  .hours-card td { padding: 13px 16px; font-size: .88rem; }
  .resv-form { padding: 20px 16px; }
  .resv-info .phone-big { width: 100%; justify-content: center; }
  .contact-card { padding: 18px; }
  .map-frame, .map-frame iframe { min-height: 300px; }
  .modal-card { padding: 26px 20px; }
  .to-top { right: 16px; bottom: 16px; }
}
