/* La Casa Mia – Farben und Schriften aus der Speisekarten-Broschüre */

@font-face { font-family: "Lobster"; src: url("../fonts/lobster.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Roboto Slab"; src: url("../fonts/roboto-slab.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }

:root {
  --green: #2f7a4b;
  --green-dark: #235c39;
  --red: #c0302b;
  --red-dark: #9e2420;
  --cream: #fbf8f2;
  --beige: #f4ecdf;
  --beige-2: #ebe0cd;
  --line: #ddd0b9;
  --ink: #2a2522;
  --muted: #6a6055;
  --dark: #2b2826;
  --serif: "Roboto Slab", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --script: "Lobster", "Brush Script MT", cursive;
  --header-h: 68px;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 64px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--beige); color: var(--ink); font: 400 17px/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.2; margin: 0; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 28px; } }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--cream); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.logo { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; line-height: 1; margin-right: auto; }
.logo-name { font-family: var(--script); font-size: 30px; letter-spacing: .3px; }
.logo-sub { font: 500 11px/1 var(--sans); letter-spacing: 2.2px; text-transform: uppercase; color: var(--muted); margin-top: 5px; padding-left: 2px; }
.nav { display: flex; gap: 26px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-color: var(--red); }
.header-tools { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; background: #fff; }
.lang button { border: 0; background: transparent; color: var(--muted); font: 600 13px/1 var(--sans); letter-spacing: .5px; padding: 7px 10px; border-radius: 999px; cursor: pointer; }
.lang button:hover { color: var(--ink); }
.lang button[aria-pressed="true"] { background: var(--green); color: #fff; }
.header-phone { display: inline-flex; align-items: center; gap: 7px; color: var(--red); font: 600 16px var(--serif); text-decoration: none; white-space: nowrap; }
.header-phone svg { width: 18px; height: 18px; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 11px 10px; cursor: pointer; }
.burger span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.flag-line { height: 4px; background: linear-gradient(90deg, var(--green) 0 33.3%, #fff 33.3% 66.6%, var(--red) 66.6%); box-shadow: 0 1px 0 var(--line); }

@media (max-width: 1000px) { .header-phone { display: none; } }
@media (max-width: 860px) {
  :root { --header-h: 62px; }
  .burger { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: 0 10px 20px rgba(0,0,0,.08); padding: 6px 16px 14px; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 13px 4px; border-bottom: 1px solid var(--beige-2); font-size: 18px; }
  .nav a:last-child { border-bottom: 0; }
  .logo-name { font-size: 27px; }
  .header-tools { gap: 6px; }
}
@media (max-width: 380px) { .logo-sub { display: none; } .lang button { padding: 7px 8px; } }

/* ---------- Divider in Flaggenfarben ---------- */
.divider { display: flex; justify-content: center; align-items: center; gap: 0; margin: 14px auto 22px; width: 190px; }
.divider span { height: 3px; border-radius: 2px; }
.divider span:nth-child(1) { flex: 1; background: var(--green); }
.divider span:nth-child(2) { width: 18px; background: #fff; margin: 0 2px; box-shadow: 0 0 0 1px var(--line) inset; }
.divider span:nth-child(3) { flex: 1; background: var(--red); }
.divider.left { margin-left: 0; }

.section-title { font-size: clamp(28px, 4vw, 38px); }
.section-title.center { text-align: center; }
section { padding: 64px 0; }
@media (max-width: 700px) { section { padding: 48px 0; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 600 16px var(--sans); text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: background .15s, color .15s; }
.btn svg { width: 19px; height: 19px; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); }
.btn-outline { border-color: var(--green); color: var(--green-dark); background: transparent; }
.btn-outline:hover { background: var(--green); color: #fff; }

/* ---------- Hinweise ---------- */
.notices:empty { display: none; }
.notice { background: #fff6e3; border-bottom: 1px solid #ecd9ad; }
.notice.closed { background: #fbe9e7; border-bottom-color: #efc4bf; }
.notice .wrap { display: flex; align-items: flex-start; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.notice svg { flex: none; width: 22px; height: 22px; color: var(--red); margin-top: 1px; }
.notice p { margin: 0; flex: 1; font-weight: 600; }
@media (max-width: 700px) { .notice p { font-size: 15px; line-height: 1.45; } .notice .wrap { padding-top: 10px; padding-bottom: 10px; } }
.notice button { flex: none; border: 0; background: transparent; font-size: 24px; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 4px; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 64px; background: var(--cream); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { margin: 0 0 6px; color: var(--green-dark); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-size: 14px; }
.hero-title { font-family: var(--script); font-weight: 400; font-size: clamp(56px, 9vw, 104px); line-height: 1.05; }
.hero-tagline { font: 400 clamp(20px, 2.6vw, 26px)/1.35 var(--serif); margin: 10px 0 0; color: var(--ink); }
.hero .divider { margin: 20px 0 22px; }
.status { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 22px; background: #fff; border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: 15px; }
.status .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(47,122,75,.18); }
.status.is-closed .dot { background: var(--red); box-shadow: 0 0 0 3px rgba(192,48,43,.16); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { color: var(--muted); font-size: 15px; margin: 14px 0 0; }
.hero-photo { position: relative; justify-self: center; width: min(100%, 470px); }
.ring { aspect-ratio: 1; border-radius: 50%; padding: 9px; background: var(--cream); border: 6px solid var(--green); box-shadow: 0 0 0 5px var(--cream), 0 0 0 9px var(--red); }
.ring img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
@media (max-width: 860px) {
  .hero { padding: 32px 0 44px; }
  .hero-inner { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .hero-photo { order: -1; width: min(72vw, 320px); }
  .hero .divider { margin: 18px auto 20px; }
  .hero-actions { justify-content: center; }
  .hero-actions .btn { flex: 1 1 220px; }
}

.placeholder-tag { position: absolute; right: 10px; bottom: 10px; background: rgba(43,40,38,.72); color: #fff; font: 600 11px/1 var(--sans); letter-spacing: 1px; text-transform: uppercase; padding: 5px 8px; border-radius: 4px; pointer-events: none; }
.hero-photo .placeholder-tag { right: 50%; transform: translateX(50%); bottom: -4px; }

/* ---------- Über uns ---------- */
.about-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: stretch; }
.about-photo { position: relative; min-height: 300px; }
.about-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.about-text p { margin: 0 0 16px; max-width: 56ch; font-size: 19px; line-height: 1.7; }
.about-text p:last-child { margin-bottom: 0; }
@media (max-width: 860px) {
  .about-inner { grid-template-columns: 1fr; gap: 28px; }
  .about-photo { min-height: 0; aspect-ratio: 4 / 3; }
  .about-text p { font-size: 18px; }
}

/* ---------- Speisekarte ---------- */
.menu { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-bottom: 40px; }
.menu-intro { text-align: center; color: var(--muted); margin: 0 auto 26px; max-width: 60ch; text-wrap: balance; }
.menu-tabs { position: sticky; top: calc(var(--header-h) + 4px); z-index: 30; background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid transparent; transition: box-shadow .2s, border-color .2s; }
.menu-tabs.is-stuck { border-top-color: transparent; border-bottom-color: var(--line); box-shadow: 0 6px 12px -10px rgba(0,0,0,.25); }
.tabs-scroll { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; scroll-behavior: smooth; }
.tabs-scroll::-webkit-scrollbar { display: none; }
@media (min-width: 1000px) { .tabs-scroll { justify-content: center; } }
.tab { flex: none; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: 600 16px/1 var(--sans); padding: 10px 18px; border-radius: 999px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.tab:hover { border-color: var(--green); color: var(--green-dark); }
.tab[aria-current="true"] { background: var(--green); border-color: var(--green); color: #fff; }

.menu-cat { padding-top: 36px; }
.cat-head { text-align: center; margin-bottom: 18px; }
.cat-head h3 { font-size: 28px; }
.cat-head p { margin: 4px 0 0; color: var(--muted); font: italic 400 17px var(--sans); }
.cat-head .divider { width: 130px; margin: 12px auto 0; }
.items { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
@media (max-width: 800px) { .items { grid-template-columns: 1fr; } }
.item { display: grid; grid-template-columns: 34px 1fr auto; column-gap: 10px; padding: 13px 0; border-bottom: 1px dashed var(--line); align-items: baseline; }
.item-nr { font: 600 14px var(--serif); color: var(--green-dark); }
.item-name { font: 600 18px/1.3 var(--serif); }
.item-price { font: 600 17px var(--serif); white-space: nowrap; }
.item-desc { grid-column: 2 / 4; color: var(--muted); font-size: 15.5px; line-height: 1.45; margin-top: 2px; }
.alg { display: inline-block; margin-left: 4px; border: 0; background: var(--beige); color: var(--muted); font: 600 12px/1 var(--sans); padding: 4px 6px; border-radius: 4px; cursor: pointer; vertical-align: 1px; }
.alg:hover, .alg[aria-expanded="true"] { background: var(--beige-2); color: var(--ink); }
.item.special { grid-column: 1 / -1; grid-template-columns: 1fr auto; background: var(--beige); border: 0; border-radius: var(--radius); padding: 14px 18px; margin-top: 14px; }
.item.special .item-name { color: var(--red-dark); }
.menu-loading { text-align: center; color: var(--muted); padding: 30px 0; }

.legend { margin-top: 40px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.legend summary { cursor: pointer; padding: 14px 18px; font: 600 18px var(--serif); }
.legend-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 4px 20px; padding: 0 18px 8px; font-size: 15.5px; }
.legend-grid b { display: inline-block; min-width: 26px; color: var(--green-dark); }
.legend-note { margin: 8px 18px 16px; color: var(--muted); font-size: 15px; }

.allergen-pop { position: absolute; z-index: 35; background: var(--dark); color: #fff; border-radius: 8px; padding: 10px 14px; font-size: 14.5px; line-height: 1.5; max-width: 260px; box-shadow: 0 8px 22px rgba(0,0,0,.2); }
.allergen-pop b { display: inline-block; min-width: 22px; color: #f3d9a4; }

/* ---------- Galerie ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 220px; gap: 12px; }
.gallery-grid figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--beige-2); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; }
.g-big { grid-column: span 2; grid-row: span 2; }
@media (max-width: 700px) { .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 8px; } .g-big { grid-column: span 2; grid-row: span 1; } }

/* ---------- Besuch / Karte ---------- */
.visit { background: var(--beige); }
.visit-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 24px; align-items: stretch; }
@media (max-width: 860px) { .visit-grid { grid-template-columns: minmax(0, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { font-size: 22px; margin-bottom: 12px; }
.card h3:not(:first-child) { margin-top: 28px; }
.hours { width: calc(100% + 24px); margin: 0 -12px; border-collapse: separate; border-spacing: 0; font-size: 16px; }
.hours th, .hours td { padding: 8px 12px; border-bottom: 1px solid var(--beige-2); vertical-align: top; }
.hours th { text-align: left; font-weight: 600; white-space: nowrap; }
.hours td { text-align: right; }
.hours tr:last-child > *, .hours tr:has(+ tr.today) > * { border-bottom-color: transparent; }
.hours tr.today > * { background: var(--beige); border-bottom-color: transparent; }
.hours tr.today th { color: var(--green-dark); border-radius: 8px 0 0 8px; }
.hours tr.today td { border-radius: 0 8px 8px 0; }
.hours tr.today th::after { content: " •"; color: var(--green); }
.hours .rest { color: var(--red); font-weight: 600; }
.hours-note, .contact-note { color: var(--muted); font-size: 15px; margin: 10px 0 0; }
.contact { font-style: normal; line-height: 1.75; }
.contact a { font-weight: 600; }
.card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.card-actions .btn { flex: 1 1 180px; }

.map { position: relative; min-height: 420px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #ece3d2; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-consent { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; }
.map-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-box { position: relative; background: rgba(255,255,255,.95); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; max-width: 380px; text-align: center; }
.map-pin { width: 34px; height: 34px; color: var(--red); }
.map-addr { font: 600 17px var(--serif); margin: 6px 0 8px; }
.map-text { font-size: 14.5px; color: var(--muted); margin: 0 0 16px; }
.map-link { display: block; margin-top: 12px; font-size: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #e9e2d6; text-align: center; padding-bottom: 28px; }
.footer-bar { background: #1f1d1b; padding: 12px 16px; border-top: 4px solid var(--red); }
.footer-bar a { color: #fff; font: 600 18px var(--serif); text-decoration: none; letter-spacing: .5px; }
.footer-inner { padding-top: 26px; }
.footer-inner p { margin: 0 0 6px; }
.footer-logo { font-family: var(--script); font-size: 34px; color: #fff; }
.footer-buon { font-family: var(--script); color: #f3d9a4; font-size: 20px; margin-bottom: 14px !important; }
.footer-links { display: flex; justify-content: center; gap: 22px; margin: 14px 0 10px; }
.footer-links a { color: #fff; }
.copy { font-size: 14px; color: #b3aa9c; }
@media (max-width: 860px) { .site-footer { padding-bottom: 96px; } }

/* ---------- Anruf-Button (nur mobil) ---------- */
.call-fab { display: none; position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 50; width: 60px; height: 60px; border-radius: 50%; background: var(--red); color: #fff; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,.25); border: 3px solid #fff; }
.call-fab svg { width: 26px; height: 26px; }
.call-fab:active { background: var(--red-dark); }
@media (max-width: 860px) { .call-fab { display: flex; } }

/* ---------- Rechtstexte ---------- */
.legal { padding: 48px 0 64px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(30px, 5vw, 40px); margin-bottom: 8px; }
.legal h2 { font-size: 22px; margin: 34px 0 10px; }
.legal h3 { font-size: 18px; margin: 22px 0 8px; }
.legal p, .legal li { max-width: 72ch; }
.legal .todo { background: #fff1b8; padding: 0 4px; border-radius: 3px; }
.legal .draft { background: #fff6e3; border: 1px solid #ecd9ad; border-radius: var(--radius); padding: 12px 16px; font-weight: 600; }
.back { display: inline-block; margin-bottom: 18px; font-weight: 600; }
