/* Cafe Central Baden – Stylesheet
   Farben: Papier (creme), Espresso (dunkel), Holz, Messing, Bankblau */
@import url("fonts/fonts.css");

:root {
  --paper: #f6f0e6;
  --paper-2: #ede4d4;
  --ink: #2b211a;
  --ink-soft: #5b4c40;
  --espresso: #1e1611;
  --wood: #8a5a34;
  --brass: #b48a4c;
  --brass-light: #d9bd8c;
  --navy: #22303f;
  --line: rgba(43, 33, 26, .16);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Lato", "Helvetica Neue", Arial, sans-serif;
  --script: "Pinyon Script", "Playfair Display", cursive;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 300 18px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--wood); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
strong, b { font-weight: 700; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.2; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.script { font-family: var(--script); font-weight: 400; color: var(--brass); font-size: 2rem; line-height: 1; display: block; margin-bottom: .2em; }
.eyebrow { font: 700 .78rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--brass); margin-bottom: 1rem; display: block; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; }

/* Ornament-Trenner */
.ornament { display: flex; align-items: center; gap: 14px; justify-content: center; color: var(--brass); margin: 0 auto 1.4rem; max-width: 220px; }
.ornament::before, .ornament::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .6; }
.ornament span { width: 7px; height: 7px; border: 1px solid currentColor; transform: rotate(45deg); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: .85em 1.6em; border: 1px solid var(--brass);
  font: 700 .8rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; color: var(--ink); background: transparent;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--brass); color: #fff; }
.btn.solid { background: var(--brass); color: #fff; }
.btn.solid:hover { background: var(--wood); border-color: var(--wood); }
.btn.light { color: #fff; border-color: rgba(255,255,255,.7); }
.btn.light:hover { background: #fff; color: var(--ink); }
.btn svg { width: 1.1em; height: 1.1em; }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, box-shadow .3s;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.site-header.solid, body.subpage .site-header { background: var(--espresso); box-shadow: 0 2px 20px rgba(0,0,0,.25); }
.logo { display: block; width: 132px; flex-shrink: 0; }
.logo img { width: 100%; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  color: #fff; text-decoration: none;
  font: 400 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  padding: 6px 0; border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-color: var(--brass-light); color: #fff; }
.nav .lang { border: 1px solid rgba(255,255,255,.45); padding: 6px 9px; }
.nav .call { color: var(--brass-light); }
.menu-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.menu-toggle svg { width: 28px; height: 28px; display: block; }

@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 76px 0 auto; background: var(--espresso);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 24px;
    display: none; max-height: calc(100vh - 76px); overflow: auto;
  }
  .nav.open { display: flex; }
  .nav a { padding: 16px 4px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: .9rem; }
  .nav .lang { align-self: flex-start; margin-top: 14px; }
  .site-header.menu-open { background: var(--espresso); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center;
  color: #fff; text-align: center; overflow: hidden; isolation: isolate;
  padding: 120px 0 80px;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20,14,10,.55) 0%, rgba(20,14,10,.45) 45%, rgba(20,14,10,.8) 100%);
}
.hero-logo { width: min(440px, 78vw); margin: 0 auto 1.8rem; }
.hero .since { font: 700 .8rem/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--brass-light); margin-bottom: 1.4rem; display: block; }
.hero h1 { color: #fff; font-style: italic; font-size: clamp(1.6rem, 3.6vw, 2.5rem); margin-bottom: 2rem; }
.hero .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.status {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 2.2rem;
  font-size: .95rem; color: rgba(255,255,255,.9);
}
.status .dot { width: 9px; height: 9px; border-radius: 50%; background: #b9a58b; }
.status.open .dot { background: #7fcf8a; box-shadow: 0 0 0 4px rgba(127,207,138,.25); }
.scroll-hint { position: absolute; bottom: 24px; left: 50%; translate: -50% 0; color: rgba(255,255,255,.7); }
.scroll-hint svg { width: 26px; height: 26px; animation: bob 2.4s infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .scroll-hint svg { animation: none; } html { scroll-behavior: auto; } }

/* Unterseiten-Kopf */
.page-head {
  position: relative; color: #fff; text-align: center; isolation: isolate;
  padding: 170px 0 90px; overflow: hidden;
}
.page-head img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-head::after { content: ""; position: absolute; inset: 0; background: rgba(20,14,10,.62); z-index: -1; }
.page-head h1 { color: #fff; margin: 0; }
.page-head .script { color: var(--brass-light); }

/* ---------- Abschnitte ---------- */
section { padding: clamp(64px, 9vw, 120px) 0; }
.dark { background: var(--espresso); color: #e9dfd1; }
.dark h2, .dark h3 { color: #fff; }
.dark a { color: var(--brass-light); }
.tint { background: var(--paper-2); }

.intro p.lead { font-family: var(--serif); font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.55; color: var(--ink); }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 34px; margin-top: 2rem; padding: 0; list-style: none; font-size: .95rem; color: var(--ink-soft); }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts svg { width: 18px; height: 18px; color: var(--brass); flex-shrink: 0; }

/* Drei Säulen: Kaffee, Getränke, Klassiker */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 3rem; }
.pillar { background: #fff; display: flex; flex-direction: column; text-decoration: none; color: inherit; box-shadow: 0 1px 0 var(--line); transition: transform .25s, box-shadow .25s; }
.pillar:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(43,33,26,.12); color: inherit; }
.pillar img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.pillar div { padding: 26px 26px 30px; flex: 1; display: flex; flex-direction: column; }
.pillar p { font-size: 1rem; color: var(--ink-soft); flex: 1; }
.pillar .more { font: 700 .75rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--wood); }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

/* Bild + Text */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split .photo { position: relative; }
.split .photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.split .photo.wide img { aspect-ratio: 4/3; }
.split .photo::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--brass); z-index: -1; }
.split .photo { isolation: isolate; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .split .photo::before { inset: 12px -10px -12px 10px; }
}
.year-badge { font-family: var(--serif); font-size: clamp(3.5rem, 8vw, 5.5rem); color: var(--brass); line-height: 1; margin-bottom: .2em; }

/* Zitat */
.quote { position: relative; color: #fff; text-align: center; isolation: isolate; }
.quote img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.quote::after { content: ""; position: absolute; inset: 0; background: rgba(20,14,10,.72); z-index: -1; }
.quote blockquote { margin: 0 auto; max-width: 820px; font: italic 400 clamp(1.3rem, 2.6vw, 1.85rem)/1.55 var(--serif); }
.quote cite { display: block; margin-top: 1.4rem; font: 700 .78rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--brass-light); font-style: normal; }

/* Galerie-Streifen (Startseite) */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.strip a { display: block; overflow: hidden; }
.strip img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .5s; }
.strip a:hover img { transform: scale(1.05); }
@media (max-width: 700px) { .strip { grid-template-columns: repeat(2, 1fr); } }

/* Besuch: Zeiten + Kontakt */
.visit { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 72px); }
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; } }
.hours { width: 100%; border-collapse: collapse; font-size: 1.02rem; }
.hours td { padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.today td { color: var(--brass-light); font-weight: 700; }
.contact-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.contact-list li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.contact-list svg { width: 20px; height: 20px; color: var(--brass-light); flex-shrink: 0; margin-top: 4px; }
.contact-list small { display: block; color: #b8a994; font-size: .85rem; }
.dark .btn { color: #fff; }
.social { display: flex; gap: 12px; margin-top: 1.4rem; }
.social a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.3); color: #fff; }
.social a:hover { background: var(--brass); border-color: var(--brass); }
.social svg { width: 20px; height: 20px; }

/* Karte & Video erst nach Klick (Datenschutz) */
.embed {
  position: relative; aspect-ratio: 16/9; background: #2c2119 center/cover no-repeat;
  display: grid; place-items: center; text-align: center; color: #fff; isolation: isolate;
}
.embed::after { content: ""; position: absolute; inset: 0; background: rgba(20,14,10,.6); z-index: -1; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed .consent { padding: 24px; max-width: 460px; }
.embed .consent p { font-size: .88rem; color: #e2d6c4; }
.embed button { cursor: pointer; }
.embed.loaded::after { display: none; }
.map-box { aspect-ratio: 4/3; }

/* Baden */
.baden-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .baden-grid { grid-template-columns: 1fr; } }
.credits { font-size: .82rem; color: var(--ink-soft); margin-top: 1rem; line-height: 1.6; }

/* Auszeichnungen */
.badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px 40px; color: var(--ink-soft); font-size: .92rem; }
.badges span { display: inline-flex; align-items: center; gap: 8px; }
.badges svg { width: 18px; height: 18px; color: var(--brass); }

/* ---------- Speisekarte ---------- */
.menu-nav {
  position: sticky; top: 76px; z-index: 20; background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.menu-nav .wrap { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.menu-nav a {
  white-space: nowrap; text-decoration: none; color: var(--ink-soft);
  font: 700 .74rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  padding: 10px 14px; border: 1px solid transparent;
}
.menu-nav a:hover, .menu-nav a.active { border-color: var(--brass); color: var(--ink); }
.menu-section { padding: 70px 0 30px; scroll-margin-top: 140px; }
.menu-section > .wrap > header { text-align: center; margin-bottom: 2.4rem; }
.menu-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; }
@media (max-width: 860px) { .menu-cols { grid-template-columns: 1fr; } }
.menu-group { break-inside: avoid; margin-bottom: 2.2rem; }
.menu-group h3 { font-size: 1.3rem; border-bottom: 1px solid var(--brass); padding-bottom: .4rem; margin-bottom: .6rem; }
.item { padding: 10px 0; border-bottom: 1px dotted var(--line); }
.item:last-child { border-bottom: 0; }
.item .name { font-family: var(--serif); font-size: 1.08rem; display: flex; justify-content: space-between; gap: 16px; }
.item .size { font: 400 .85rem/1.8 var(--sans); color: var(--ink-soft); white-space: nowrap; }
.item .desc { font-size: .93rem; color: var(--ink-soft); line-height: 1.5; }
.item ul { margin: 4px 0 0; padding-left: 1.1em; font-size: .93rem; color: var(--ink-soft); line-height: 1.5; }
.al { font: 400 .72rem/1 var(--sans); color: var(--wood); letter-spacing: .04em; margin-left: 4px; vertical-align: 2px; }
.note { font-size: .9rem; font-style: italic; color: var(--ink-soft); }
.menu-banner { height: clamp(180px, 28vw, 340px); overflow: hidden; }
.menu-banner img { width: 100%; height: 100%; object-fit: cover; }
.allergens { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 24px; list-style: none; padding: 0; font-size: .92rem; }
.allergens b { display: inline-block; width: 1.6em; color: var(--wood); }

/* ---------- Geschichte ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 150px; top: 8px; bottom: 8px; width: 1px; background: var(--brass); opacity: .5; }
.timeline li { display: grid; grid-template-columns: 150px 1fr; gap: 0 36px; padding: 0 0 2.2rem; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 146px; top: 12px; width: 9px; height: 9px; background: var(--paper); border: 1px solid var(--brass); transform: rotate(45deg); }
.timeline .yr { font-family: var(--serif); font-size: 1.35rem; color: var(--brass); text-align: right; padding-right: 18px; line-height: 1.3; }
.timeline p { margin: 0; }
@media (max-width: 600px) {
  .timeline::before { left: 6px; }
  .timeline li { grid-template-columns: 1fr; padding-left: 32px; }
  .timeline li::before { left: 2px; }
  .timeline .yr { text-align: left; }
}
.archive { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.archive figure { margin: 0; }
.archive img { width: 100%; aspect-ratio: 4/3; object-fit: cover; filter: sepia(.15); }
.archive figcaption { font-size: .85rem; color: var(--ink-soft); margin-top: 6px; }
@media (max-width: 600px) { .archive { grid-template-columns: 1fr; } .timeline .yr { padding-right: 0; } }

/* ---------- Galerie ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 2rem; }
.filters button {
  background: none; border: 1px solid var(--line); padding: 10px 16px; cursor: pointer;
  font: 700 .74rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft);
}
.filters button[aria-pressed="true"] { border-color: var(--brass); background: var(--brass); color: #fff; }
.gallery { columns: 3 280px; column-gap: 12px; }
.gallery a { display: block; margin-bottom: 12px; break-inside: avoid; overflow: hidden; }
.gallery img { width: 100%; transition: transform .5s; }
.gallery a:hover img { transform: scale(1.03); }
.gallery a[hidden] { display: none; }

.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(15,10,7,.94);
  display: none; align-items: center; justify-content: center; padding: 60px 16px;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 100%; max-width: min(1200px, 100%); object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; padding: 14px; }
.lightbox button svg { width: 30px; height: 30px; display: block; }
.lightbox .close { top: 8px; right: 8px; }
.lightbox .prev { left: 4px; top: 50%; translate: 0 -50%; }
.lightbox .next { right: 4px; top: 50%; translate: 0 -50%; }
.lightbox .cap { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #d8ccbb; font-size: .9rem; }

/* ---------- Rechtstexte ---------- */
.legal h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.legal { font-size: 1rem; }

/* ---------- Fußzeile ---------- */
.site-footer { background: #140e0a; color: #b8a994; padding: 56px 0 32px; font-size: .92rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.site-footer img { width: 140px; margin-bottom: 1rem; }
.site-footer a { color: #e2d6c4; text-decoration: none; }
.site-footer a:hover { color: var(--brass-light); }
.site-footer h4 { font: 700 .74rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--brass-light); margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; line-height: 2; }
.site-footer .bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .82rem; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* Startseite: Kopf-Logo erst zeigen, wenn das große Hero-Logo weggescrollt ist */
.has-hero .site-header:not(.solid):not(.menu-open) .logo { opacity: 0; pointer-events: none; }
.site-header .logo { transition: opacity .3s; }
@media (max-width: 600px) { .hero .since { letter-spacing: .16em; line-height: 1.7; } }

/* Kaffeehausklassiker: Foto-Mosaik (Startseite) */
.classics { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 250px; gap: 10px; margin-top: 2.6rem; }
.classics figure { position: relative; margin: 0; overflow: hidden; }
.classics figure:first-child { grid-column: span 2; grid-row: span 2; }
.classics img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.classics figure:hover img { transform: scale(1.04); }
.classics figcaption {
  position: absolute; inset: auto 0 0; padding: 48px 20px 18px;
  background: linear-gradient(transparent, rgba(15,10,7,.6) 35%, rgba(15,10,7,.92)); color: #e9dfd1; font-size: .9rem; line-height: 1.45;
}
.classics figcaption strong { display: block; font: 400 1.25rem/1.25 var(--serif); color: #fff; margin-bottom: 2px; }
.classics figure:first-child figcaption { padding: 80px 28px 26px; font-size: 1rem; }
.classics figure:first-child figcaption strong { font-size: 1.9rem; }
@media (max-width: 860px) {
  .classics { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
  .classics figure:first-child { grid-column: span 2; grid-row: span 2; }
}
@media (max-width: 520px) {
  .classics { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .classics figure:first-child { grid-column: auto; grid-row: span 2; }
  .classics figure:first-child figcaption strong { font-size: 1.5rem; }
}

/* Aktuelles / What's On */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 3rem; }
.news-card { background: #fff; display: flex; gap: 20px; padding: 26px; box-shadow: 0 1px 0 var(--line); }
.news-date { flex-shrink: 0; width: 60px; text-align: center; }
.news-date .day { display: block; font-family: var(--serif); font-size: 2.2rem; line-height: 1; color: var(--brass); }
.news-date .month { display: block; font: 700 .74rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-top: 4px; }
.news-card h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.news-card p { font-size: .94rem; color: var(--ink-soft); margin: 0; }
.news-card .thumb { width: 72px; height: 72px; object-fit: cover; flex-shrink: 0; border: 1px solid var(--brass); }
@media (max-width: 860px) { .news-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

/* Speisekarte: Foto-Highlights über den Speisen */
.menu-highlights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 3rem; }
.menu-highlights figure { margin: 0; }
.menu-highlights img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.menu-highlights figcaption { font: 400 1rem/1.3 var(--serif); margin-top: 8px; }
.menu-highlights figcaption small { display: block; font: 300 .82rem/1.4 var(--sans); color: var(--ink-soft); }
@media (max-width: 760px) { .menu-highlights { grid-template-columns: 1fr 1fr; } }
