/* Ristorante La Fonte – Stylesheet */

@font-face { font-family: "Young Serif"; src: url("fonts/young-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("fonts/work-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("fonts/work-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("fonts/work-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  color-scheme: light;
  --pine: #332E24;      /* Dunkelbraun (wie Originalseite) */
  --pine-deep: #241F18;
  --moss: #8A6A2C;      /* dunkles Gold für Unterzeilen */
  --paper: #FFFFFF;
  --water: #F2F0EB;     /* helles Warmgrau */
  --ink: #1C1A16;
  --muted: #625C52;
  --gold: #C49C48;      /* Gold der Originalseite */
  --gold-soft: #F3E7CC;
  --line: #E2DDD3;

  --serif: "Young Serif", Georgia, serif;
  --sans: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--pine); text-underline-offset: .18em; }
a:hover { color: var(--moss); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0 0 .6em; color: var(--pine); }
h2 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
.section h2::after, .info-grid h2::after { content: ""; display: block; width: 4.5rem; height: 2px; background: var(--gold); margin-top: .45em; }
.rollo h2::after { display: none; }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; max-width: 64ch; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--ink); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: 4.25rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--pine); margin-right: auto; }
.brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--pine); }
.brand span { font-family: var(--serif); font-size: 1.3rem; line-height: 1; }
.nav { display: flex; gap: 1.4rem; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .98rem; padding: .3rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-color: var(--gold); color: var(--pine); }

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font: 600 1rem/1 var(--sans);
  padding: .85rem 1.25rem; border-radius: 999px;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-call { background: var(--gold); color: #fff; }
.btn-call:hover { background: var(--moss); color: #fff; }
.btn-light { background: #fff; color: var(--pine); }
.btn-light:hover { background: var(--gold-soft); color: var(--pine); }
.btn-outline { border-color: currentColor; color: #fff; background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; }

@media (max-width: 720px) {
  .nav { display: none; }
  .site-header .btn-call { padding: .7rem 1rem; }
  .site-header .btn-call .label-long { display: none; }
}

/* Mobile Navigation unten */
.mobile-nav { display: none; }
@media (max-width: 720px) {
  .mobile-nav {
    display: grid; grid-template-columns: repeat(3, 1fr);
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
    background: var(--pine); padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-nav a { color: #fff; text-decoration: none; text-align: center; font-size: .82rem; font-weight: 500; padding: .7rem .25rem; }
  .mobile-nav a[aria-current="page"] { color: var(--gold-soft); box-shadow: inset 0 3px 0 var(--gold); }
  body { padding-bottom: 3.4rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff;
  min-height: min(88vh, 46rem);
  display: flex; align-items: flex-end;
  background: var(--pine) url("img/haus.jpg") center 42% / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30,26,20,.15) 0%, rgba(30,26,20,.35) 45%, rgba(30,26,20,.88) 100%);
}
@media (min-width: 860px) {
  .hero::before {
    background:
      linear-gradient(90deg, rgba(30,26,20,.7) 0%, rgba(30,26,20,.25) 55%, rgba(30,26,20,0) 80%),
      linear-gradient(180deg, rgba(30,26,20,0) 40%, rgba(30,26,20,.75) 100%);
  }
}
.hero .wrap { position: relative; width: 100%; padding-top: 6rem; padding-bottom: clamp(2rem, 6vw, 4rem); }
.hero h1 {
  color: #fff;
  font-size: clamp(3.4rem, 12vw, 8.5rem);
  letter-spacing: -.01em; line-height: .95; margin: 0 0 .25em;
}
.hero .lead { font-size: clamp(1.1rem, 2.2vw, 1.35rem); max-width: 34ch; margin-bottom: 1.6rem; color: #F5F0E6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Live-Status: heute geöffnet? */
.status {
  display: inline-flex; align-items: center; gap: .6rem;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35);
  padding: .45rem .9rem; border-radius: 999px; font-weight: 500; margin-bottom: 1.2rem;
}
.status .dot { width: .65rem; height: .65rem; border-radius: 50%; background: #9FB8A3; flex: none; }
.status[data-state="open"] .dot { background: #7CD992; box-shadow: 0 0 0 4px rgba(124,217,146,.25); }
.status[data-state="later"] .dot { background: var(--gold); }
.status[data-state="closed"] .dot { background: #D9A0A0; }

/* ---------- Abschnitte ---------- */
.section { padding: clamp(3.5rem, 9vw, 6.5rem) 0; }
.section-alt { background: var(--water); }
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } .split.reverse > :first-child { order: 2; } }
.photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--line); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.facts { display: flex; flex-wrap: wrap; gap: 2.5rem; margin: 1.8rem 0 0; padding: 0; list-style: none; }
.facts li { display: flex; flex-direction: column; }
.facts strong { font-family: var(--serif); font-weight: 400; font-size: 2.4rem; color: var(--pine); line-height: 1; }
.facts span { color: var(--muted); font-size: .95rem; margin-top: .3rem; }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin-top: clamp(2.5rem, 6vw, 4rem); }
@media (min-width: 860px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--line); }

/* Rollo-Feature: das eine laute Element */
.rollo { background: var(--pine); color: #F2ECE0; overflow: hidden; }
.rollo .wrap { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 860px) { .rollo .wrap { grid-template-columns: 1.3fr 1fr; } }
.rollo .rollo-word {
  font-family: var(--serif); color: var(--gold); max-width: none;
  font-size: clamp(5rem, 22vw, 15rem); line-height: .85; margin: 0;
  white-space: nowrap;
}
.rollo h2 { color: #fff; }
.rollo p { color: #E4DCCB; }
.rollo-list { list-style: none; padding: 0; margin: 1.4rem 0 1.8rem; display: grid; gap: .6rem; }
.rollo-list li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid rgba(255,255,255,.18); padding-bottom: .55rem; }
.rollo-list b { font-weight: 500; color: #fff; white-space: nowrap; }

/* Öffnungszeiten & Kontakt */
.info-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 860px) { .info-grid { grid-template-columns: 1fr 1fr; } }
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { text-align: left; padding: .7rem .2rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.hours th { font-weight: 500; width: 9.5rem; }
.hours tr.today th, .hours tr.today td { color: var(--pine); font-weight: 600; }
.hours tr.today th::after { content: "heute"; margin-left: .5rem; font-size: .75rem; font-weight: 600; background: var(--gold-soft); color: #6B4C10; padding: .1rem .45rem; border-radius: 999px; vertical-align: .1em; }
.hours .closed { color: var(--muted); }
.contact-block address { font-style: normal; font-size: 1.15rem; margin-bottom: 1.4rem; }
.contact-block .phone { font-family: var(--serif); font-size: clamp(1.7rem, 4vw, 2.3rem); color: var(--pine); text-decoration: none; display: inline-block; margin-bottom: 1.2rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn-ghost { border-color: var(--pine); color: var(--pine); background: transparent; }
.btn-ghost:hover { background: var(--pine); color: #fff; }
.note { color: var(--muted); font-size: .95rem; }

/* ---------- Fußzeile ---------- */
.site-footer { background: var(--pine); color: #D8CFBE; padding: 3rem 0 2.5rem; font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; justify-content: space-between; }
.site-footer a { color: #fff; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.site-footer .name { font-family: var(--serif); color: #fff; font-size: 1.3rem; display: block; margin-bottom: .3rem; }

/* ---------- Speisekarte ---------- */
.page-head { padding-top: clamp(2.5rem, 7vw, 4.5rem); padding-bottom: 1.5rem; }
.page-head h1 { font-size: clamp(2.6rem, 8vw, 4.6rem); margin-bottom: .2em; }
.menu-tools {
  position: sticky; top: 4.25rem; z-index: 10;
  background: var(--paper); border-bottom: 1px solid var(--line);
  padding: .75rem 0;
}
.menu-tools .wrap { display: flex; flex-direction: column; gap: .7rem; }
.search { position: relative; max-width: 26rem; }
.search input {
  width: 100%; font: inherit; padding: .7rem 1rem .7rem 2.6rem;
  border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink);
}
.search input:focus { outline: none; border-color: var(--pine); box-shadow: 0 0 0 3px rgba(51,46,36,.15); }
.search svg { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); width: 1.05rem; height: 1.05rem; color: var(--muted); }
.cats { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
.cats::-webkit-scrollbar { display: none; }
.cats a {
  flex: none; text-decoration: none; color: var(--pine); font-weight: 500; font-size: .95rem;
  padding: .4rem .9rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff;
}
.cats a.active { background: var(--pine); color: #fff; border-color: var(--pine); }

.menu-cat { padding: 3rem 0 1rem; scroll-margin-top: 9.5rem; }
.menu-cat header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem; border-bottom: 2px solid var(--gold); padding-bottom: .6rem; margin-bottom: .4rem; }
.menu-cat h2 { margin: 0; }
.menu-cat .sub { color: var(--moss); font-family: var(--serif); font-size: 1.1rem; }
.menu-cat .cat-note { color: var(--muted); font-size: .95rem; margin: .8rem 0 0; }
.menu-group h3 { font-size: 1.25rem; margin: 2rem 0 .2rem; color: var(--moss); }
.price-head { display: flex; justify-content: flex-end; gap: 0; font-size: .8rem; color: var(--muted); font-weight: 500; padding: .6rem 0 0; }
.price-head span, .dish .p { width: 4.6rem; text-align: right; }

.dish { display: grid; grid-template-columns: 3rem 1fr auto; gap: .2rem .8rem; padding: .95rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.dish .nr { font-variant-numeric: tabular-nums; color: var(--moss); font-weight: 600; font-size: .95rem; }
.dish .nm { font-weight: 600; color: var(--ink); }
.dish .zs { font-size: .78rem; color: var(--muted); font-weight: 400; margin-left: .35rem; white-space: nowrap; }
.dish .ds { grid-column: 2; color: var(--muted); font-size: .95rem; line-height: 1.45; }
.dish .prices { grid-row: 1; grid-column: 3; display: flex; font-variant-numeric: tabular-nums; font-weight: 500; }
.dish .p.single { width: auto; min-width: 4.6rem; }
.dish mark { background: var(--gold-soft); color: inherit; border-radius: 3px; }
@media (max-width: 480px) {
  .dish { grid-template-columns: 2.4rem 1fr auto; }
  .price-head span, .dish .p { width: 3.9rem; }
}
.empty { padding: 3rem 0; color: var(--muted); }
.legend { margin: 3rem 0 4rem; padding: 1.4rem 1.6rem; background: var(--water); border-radius: var(--radius); font-size: .95rem; color: var(--muted); }

/* ---------- Rechtstexte ---------- */
.legal { padding-top: 3rem; padding-bottom: 5rem; }
.legal h1 { font-size: clamp(2.3rem, 6vw, 3.4rem); }
.legal h2 { font-size: 1.45rem; margin-top: 2.2rem; }
.legal p, .legal li { max-width: 70ch; }
