/* =========================================================
   Pizzeria La Fattoria – Stylesheet
   Modern, warm-italienisch, responsive
   ========================================================= */

:root {
  --red:        #b1281f;   /* Tomatenrot   */
  --red-dark:   #8c1e17;
  --green:      #3d6b3a;   /* Basilikum    */
  --cream:      #faf6ef;   /* Hintergrund  */
  --cream-2:    #f3ece0;
  --charcoal:   #21201d;   /* Text dunkel  */
  --charcoal-2: #3a3733;
  --gold:       #d9a441;   /* Akzent       */
  --muted:      #7d766c;
  --white:      #ffffff;

  --font-display: "Playfair Display", Georgia, serif;
  --font-body:    "Inter", system-ui, -apple-system, sans-serif;

  --container: 1180px;
  --radius: 14px;
  --shadow: 0 18px 45px -20px rgba(33, 32, 29, 0.4);
  --shadow-sm: 0 8px 24px -14px rgba(33, 32, 29, 0.45);
  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / Base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.5rem);
}

.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 0.9rem;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--charcoal);
}

.section__head { text-align: center; max-width: 640px; margin: 0 auto clamp(2.5rem, 5vw, 3.8rem); }
.section__lead { color: var(--muted); font-size: 1.05rem; margin-top: 0.6rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--red); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--red-dark); }
.btn--ghost { border-color: rgba(255,255,255,0.7); color: var(--white); }
.btn--ghost:hover { background: rgba(255,255,255,0.12); }
.btn--ghost.btn--dark { border-color: var(--charcoal); color: var(--charcoal); }
.btn--ghost.btn--dark:hover { background: var(--charcoal); color: var(--white); }
.btn--lg { padding: 1rem 2.1rem; font-size: 1.05rem; }
.btn--sm { padding: 0.55rem 1.15rem; font-size: 0.9rem; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  padding: 0.7rem 0;
}
.nav.is-scrolled {
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 24px -18px rgba(0,0,0,0.5);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; }

.nav__logo { display: flex; align-items: center; gap: 0.6rem; }
.nav__logo-mark {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  background: var(--red); color: var(--white);
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  border-radius: 50%;
  flex-shrink: 0;
}
.nav__logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 700;
  color: var(--charcoal);
  transition: color var(--transition);
}
.nav:not(.is-scrolled) .nav__logo-text { color: var(--white); }

.nav__links { display: flex; align-items: center; gap: 1.9rem; }
.nav__links a {
  font-weight: 500; font-size: 0.98rem;
  color: var(--white);
  position: relative;
  transition: color var(--transition);
}
.nav.is-scrolled .nav__links a { color: var(--charcoal); }
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--red);
  transition: width var(--transition);
}
.nav__links a:not(.btn):hover::after { width: 100%; }
.nav__cta { color: #fff !important; }

.nav__toggle {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav__toggle span {
  width: 26px; height: 2px; background: var(--white);
  border-radius: 2px; transition: var(--transition);
}
.nav.is-scrolled .nav__toggle span { background: var(--charcoal); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  background: linear-gradient(rgba(20,15,12,0.15), rgba(20,15,12,0.15)),
              url("../assets/hero.jpg") center/cover no-repeat;
  color: var(--white);
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,15,12,0.55) 0%, rgba(20,15,12,0.35) 40%, rgba(20,15,12,0.75) 100%);
}
.hero__content { position: relative; z-index: 2; max-width: 760px; padding-top: 4rem; }
.hero__eyebrow {
  text-transform: uppercase; letter-spacing: 0.35em;
  font-size: 0.85rem; font-weight: 600; color: var(--gold);
  margin-bottom: 1rem;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.2rem, 11vw, 7rem);
  line-height: 0.98;
  margin-bottom: 1.2rem;
  text-shadow: 0 4px 30px rgba(0,0,0,0.35);
}
.hero__subtitle {
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  font-weight: 300;
  max-width: 30ch;
  margin-bottom: 2.2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__hint {
  margin-top: 1.2rem; font-size: 0.98rem; font-weight: 500;
  color: rgba(255,255,255,0.9);
}
.hero__hint a { color: #fff; text-decoration: underline; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 26px; z-index: 2;
  transform: translateX(-50%);
  width: 26px; height: 44px;
  border: 2px solid rgba(255,255,255,0.7); border-radius: 14px;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px;
  width: 4px; height: 8px; background: #fff; border-radius: 2px;
  transform: translateX(-50%);
  animation: scrolldot 1.6s infinite;
}
@keyframes scrolldot { 0%{opacity:0;top:8px} 40%{opacity:1} 80%{opacity:0;top:22px} 100%{opacity:0} }

/* ---------- Highlights ---------- */
.highlights { background: var(--white); padding: clamp(3rem, 6vw, 4.5rem) 0; }
.highlights__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.highlight { text-align: center; padding: 1rem; }
.highlight__icon {
  font-size: 2.4rem; margin-bottom: 0.8rem;
  display: inline-grid; place-items: center;
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--cream-2);
}
.highlight h3 { font-family: var(--font-display); font-size: 1.35rem; margin-bottom: 0.4rem; }
.highlight p { color: var(--muted); font-size: 0.98rem; }

/* ---------- About ---------- */
.about { background: var(--cream); }
.about__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem); align-items: center;
}
.about__media { position: relative; }
.about__media img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.about__badge {
  position: absolute; right: -18px; bottom: -18px;
  background: var(--red); color: #fff;
  width: 118px; height: 118px; border-radius: 50%;
  display: grid; place-content: center; text-align: center;
  box-shadow: var(--shadow); line-height: 1.1;
}
.about__badge-num { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; }
.about__badge-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; }
.about__text p { color: var(--charcoal-2); margin-bottom: 1.1rem; }
.about__text .btn { margin-top: 0.6rem; }

/* ---------- Menu ---------- */
.menu { background: var(--white); }
.menu__tabs {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.menu__tab {
  font-family: var(--font-body); font-weight: 600; font-size: 0.98rem;
  padding: 0.6rem 1.4rem; border-radius: 999px;
  border: 2px solid var(--cream-2); background: var(--cream);
  color: var(--charcoal-2); cursor: pointer;
  transition: var(--transition);
}
.menu__tab:hover { border-color: var(--red); color: var(--red); }
.menu__tab.is-active { background: var(--red); border-color: var(--red); color: #fff; }

.menu__panel { display: none; }
.menu__panel.is-active { display: block; animation: fadeUp 0.5s var(--transition); }
.menu__panel-note {
  text-align: center; color: var(--muted); font-size: 0.92rem;
  margin: -0.5rem auto 2rem; max-width: 640px;
}
.menu__panel-note strong { color: var(--red); }
.menu__price-fam { color: var(--muted); font-weight: 500; font-size: 0.92em; }

.menu__list {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem clamp(2rem, 5vw, 4rem);
  max-width: 940px; margin: 0 auto;
}
.menu__item { padding-bottom: 0.2rem; }
.menu__item-head { display: flex; align-items: baseline; gap: 0.5rem; }
.menu__item-head h3 {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 600;
  color: var(--charcoal); white-space: nowrap;
}
.menu__tag {
  display: inline-block; vertical-align: middle;
  font-family: var(--font-body); font-size: 0.62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  background: var(--gold); color: #4a2f00;
  padding: 0.15rem 0.5rem; border-radius: 999px; margin-left: 0.4rem;
}
.menu__dots { flex: 1; border-bottom: 2px dotted #d8cfc0; transform: translateY(-4px); }
.menu__price {
  font-family: var(--font-display); font-weight: 600;
  color: var(--red); font-size: 1.1rem; white-space: nowrap;
}
.menu__desc { color: var(--muted); font-size: 0.94rem; margin-top: 0.25rem; }
.menu__note {
  text-align: center; color: var(--muted); font-size: 0.85rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

/* ---------- Gallery ---------- */
.gallery { background: var(--cream); }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 1rem;
}
.gallery__item {
  overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--transition); }
.gallery__item:hover img { transform: scale(1.07); }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }

/* ---------- Contact ---------- */
.contact { background: var(--white); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: stretch; }
.contact__list { margin: 1.8rem 0; display: grid; gap: 1.2rem; }
.contact__list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact__ic {
  font-size: 1.1rem; flex-shrink: 0;
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--cream-2); border-radius: 50%;
}
.contact__list strong { display: block; font-weight: 600; }
.contact__list p { color: var(--muted); }
.contact__list a:hover { color: var(--red); }

.hours { background: var(--cream); border-radius: var(--radius); padding: 1.5rem 1.7rem; margin-bottom: 1.8rem; }
.hours__title { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 0.8rem; }
.hours__list li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.5rem 0; border-bottom: 1px solid #e7ddcd; font-size: 0.96rem;
}
.hours__list li:last-child { border-bottom: none; }
.hours__list span:first-child { color: var(--charcoal-2); font-weight: 500; }
.hours__list span:last-child { color: var(--muted); }
.hours__closed { color: var(--red) !important; font-weight: 600; }
.hours__hint { color: var(--muted); font-size: 0.9rem; margin-top: 0.8rem; }

.contact__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.contact__map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 420px; }
.contact__map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--charcoal); color: #d9d3c9; padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem;
  padding-bottom: 2.5rem;
}
.footer__brand .nav__logo-mark { margin-bottom: 0.8rem; }
.footer__brand h3 { font-family: var(--font-display); color: #fff; font-size: 1.4rem; margin-bottom: 0.3rem; }
.footer__brand p { color: #a49d91; font-size: 0.95rem; max-width: 32ch; }
.footer__nav, .footer__legal { display: flex; flex-direction: column; gap: 0.7rem; }
.footer__nav a, .footer__legal a { color: #c8c1b6; font-size: 0.95rem; transition: color var(--transition); }
.footer__nav a:hover, .footer__legal a:hover { color: var(--gold); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; padding-bottom: 1.5rem; }
.footer__bottom p { color: #8f887c; font-size: 0.86rem; text-align: center; }

/* ---------- Rechtstexte (Impressum/Datenschutz) ---------- */
.legal { padding: clamp(7rem, 12vw, 9rem) 0 clamp(4rem, 8vw, 6rem); background: var(--cream); min-height: 70vh; }
.legal .container { max-width: 820px; }
.legal h1 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 1.5rem; }
.legal h2 { font-family: var(--font-display); font-size: 1.4rem; margin: 2rem 0 0.6rem; }
.legal p, .legal li { color: var(--charcoal-2); margin-bottom: 0.7rem; }
.legal ul { list-style: disc; padding-left: 1.3rem; }
.legal a { color: var(--red); }
.legal a:hover { text-decoration: underline; }
.legal .back { display: inline-block; margin-bottom: 2rem; font-weight: 600; color: var(--red); }
.legal__note { background: #fff5e6; border-left: 4px solid var(--gold); padding: 0.9rem 1.1rem; border-radius: 8px; font-size: 0.9rem; margin: 1.5rem 0; }

/* ---------- Reveal-Animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22,1,0.36,1); }
[data-reveal].is-visible { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; inset: 0 0 0 auto;
    width: min(78vw, 320px);
    flex-direction: column; align-items: flex-start;
    gap: 1.4rem;
    background: var(--cream);
    padding: 6rem 2rem 2rem;
    box-shadow: -20px 0 60px -20px rgba(0,0,0,0.4);
    transform: translateX(100%);
    transition: transform var(--transition);
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__links a { color: var(--charcoal) !important; font-size: 1.15rem; }
  .nav__cta { width: 100%; margin-top: 0.5rem; }
  .nav.is-open .nav__toggle span { background: var(--charcoal); }
  .nav__toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle.is-active span:nth-child(2) { opacity: 0; }
  .nav__toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .highlights__grid { grid-template-columns: 1fr; gap: 1.5rem; max-width: 420px; margin-inline: auto; }
  .about__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 440px; margin: 0 auto; }
  .about__badge { right: 8px; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .menu__list { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery__item--wide { grid-column: span 2; }
  .gallery__item--tall { grid-row: span 1; }
  .hero__actions .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}
