/* =========================================================
   Gaststätte & Pension Zur Alten Post – Stylesheet
   Stil: gemütlich-rustikal (dunkles Holz, Bernstein, Papier)
   ========================================================= */

@font-face { font-family: "Lora"; src: url("../fonts/lora-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/lora-600.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/lora-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/lora-italic-400.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --holz: #1c130e;
  --holz-2: #2a1c14;
  --holz-3: #3a281c;
  --bernstein: #d4a24c;
  --bernstein-hell: #e8c27a;
  --messing: #a97b32;
  --papier: #f4ead7;
  --papier-2: #ebdcc1;
  --tinte: #2b1f17;
  --tinte-hell: #6b5643;
  --gruen: #3f5a3a;
  --radius: 6px;
  --schatten: 0 10px 30px rgba(0,0,0,.35);
  --max: 1160px;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.075rem;
  line-height: 1.65;
  color: var(--tinte);
  background: var(--papier);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--messing); }
a:hover { color: var(--holz-3); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 700; letter-spacing: .5px; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--bernstein); color: var(--holz); padding: 8px 14px; z-index: 100; }

/* ---------- Schnörkel-Trenner ---------- */
.ornament { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--bernstein); margin: .2em 0 1em; }
.ornament::before, .ornament::after { content: ""; height: 1px; width: 70px; background: linear-gradient(90deg, transparent, currentColor); }
.ornament::after { transform: scaleX(-1); }
.ornament span { font-size: 1.1rem; letter-spacing: 4px; }
.eyebrow { font-family: var(--sans); text-transform: uppercase; letter-spacing: .22em; font-size: .78rem; color: var(--messing); font-weight: 600; margin-bottom: .6em; display: block; }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(28,19,14,.96);
  border-bottom: 1px solid rgba(212,162,76,.25);
  backdrop-filter: blur(6px);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--papier); }
.brand img { width: 64px; }
.brand-text { font-size: 1.25rem; font-weight: 700; line-height: 1.05; }
.brand-text small { display: block; font-family: var(--sans); font-size: .62rem; letter-spacing: .25em; text-transform: uppercase; color: var(--bernstein); font-weight: 600; margin-top: 3px; }
.menu { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menu a {
  display: block; padding: 10px 14px; color: var(--papier); text-decoration: none;
  font-family: var(--sans); font-size: .93rem; letter-spacing: .03em; border-radius: var(--radius);
}
.menu a:hover, .menu a[aria-current="page"] { color: var(--bernstein); }
.menu a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--bernstein); border-radius: 0; }
.nav-toggle { display: none; background: none; border: 1px solid rgba(212,162,76,.5); color: var(--papier); border-radius: var(--radius); padding: 8px 12px; font: 600 .9rem var(--sans); cursor: pointer; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .menu {
    position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; gap: 0;
    background: var(--holz); border-bottom: 1px solid rgba(212,162,76,.25);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .menu.offen { max-height: 480px; }
  .menu a { padding: 14px 20px; border-top: 1px solid rgba(255,255,255,.06); }
  .menu a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--bernstein); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px;
  border-radius: 999px; text-decoration: none; font: 600 .95rem var(--sans); letter-spacing: .02em;
  border: 2px solid var(--bernstein); transition: all .2s ease; cursor: pointer;
}
.btn-voll { background: var(--bernstein); color: var(--holz); }
.btn-voll:hover { background: var(--bernstein-hell); border-color: var(--bernstein-hell); color: var(--holz); }
.btn-rand { background: transparent; color: var(--papier); }
.btn-rand:hover { background: rgba(212,162,76,.15); color: var(--papier); }
.btn-dunkel { background: var(--holz-2); color: var(--papier); border-color: var(--holz-2); }
.btn-dunkel:hover { background: var(--holz-3); color: var(--papier); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 88vh; display: grid; place-items: center; text-align: center;
  color: var(--papier); overflow: hidden; background: var(--holz);
}
.hero-bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(28,19,14,.15) 0%, rgba(28,19,14,.75) 70%, rgba(28,19,14,.95) 100%);
}
.hero-inhalt { position: relative; z-index: 2; padding: 60px 20px; max-width: 820px; }
.hero-inhalt .kutsche { width: 170px; margin: 0 auto 18px; opacity: .95; }
.hero h1 { text-shadow: 0 3px 18px rgba(0,0,0,.6); margin-bottom: .15em; }
.hero .untertitel { font-style: italic; font-size: clamp(1.15rem, 2.4vw, 1.5rem); color: var(--bernstein-hell); margin-bottom: 1.6em; }
.hero .knoepfe { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-klein { min-height: 46vh; }
.hero-klein h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }

.status {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 26px;
  font: 600 .88rem var(--sans); color: var(--papier); background: rgba(0,0,0,.35);
  padding: 7px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12);
}
.status .punkt { width: 9px; height: 9px; border-radius: 50%; background: #999; }
.status.offen .punkt { background: #6fcf6a; box-shadow: 0 0 10px #6fcf6a; }
.status.zu .punkt { background: #d9734e; }

/* ---------- Sektionen ---------- */
.sektion { padding: 90px 0; }
.sektion-dunkel { background: var(--holz-2); color: var(--papier); }
.sektion-dunkel .eyebrow { color: var(--bernstein); }
.sektion-dunkel a { color: var(--bernstein); }
.sektion-papier { background: var(--papier); }
.sektion-papier-2 { background: var(--papier-2); }
.zentriert { text-align: center; }
.einleitung { max-width: 720px; margin: 0 auto 50px; text-align: center; font-size: 1.12rem; }

.holzbalken { height: 14px; background: linear-gradient(180deg, #4a3222, #2a1c14); box-shadow: inset 0 2px 0 rgba(255,255,255,.06), inset 0 -2px 0 rgba(0,0,0,.4); }

/* Zwei-Spalten Text/Bild */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.split.umgekehrt > :first-child { order: 2; }
.bildrahmen { position: relative; }
.bildrahmen img { border-radius: var(--radius); box-shadow: var(--schatten); }
.bildrahmen::before {
  content: ""; position: absolute; inset: -14px 14px 14px -14px; border: 2px solid var(--bernstein);
  border-radius: var(--radius); z-index: -1;
}
.sektion-dunkel .bildrahmen::before { border-color: var(--messing); }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.umgekehrt > :first-child { order: 0; }
  .sektion { padding: 64px 0; }
}

/* Karten */
.karten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.karte {
  background: var(--papier); color: var(--tinte); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 6px 22px rgba(0,0,0,.18); display: flex; flex-direction: column;
}
.karte img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.karte-text { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.karte-text p { color: var(--tinte-hell); }
.karte-text .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 900px) { .karten { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }

/* Fakten-Leiste */
.fakten { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.fakt { padding: 10px; }
.fakt .zahl { font-size: 2rem; font-weight: 700; color: var(--bernstein); display: block; }
.fakt .text { font-family: var(--sans); font-size: .9rem; letter-spacing: .03em; opacity: .9; }
@media (max-width: 760px) { .fakten { grid-template-columns: repeat(2, 1fr); } }

/* Öffnungszeiten-Tafel */
.tafel {
  background: #23302a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
  color: #f1ede2; border: 12px solid #5a3d27; border-radius: 4px; padding: 34px 36px;
  box-shadow: var(--schatten), inset 0 0 40px rgba(0,0,0,.4);
}
.tafel h3 { color: var(--bernstein-hell); font-style: italic; font-weight: 400; font-size: 1.6rem; text-align: center; }
.zeiten { width: 100%; border-collapse: collapse; font-size: 1.05rem; }
.zeiten td { padding: 9px 0; border-bottom: 1px dashed rgba(255,255,255,.18); }
.zeiten td:last-child { text-align: right; }
.zeiten tr.heute td { color: var(--bernstein-hell); font-weight: 600; }
.zeiten .ruhetag { font-style: italic; opacity: .8; }
.tafel .hinweis { text-align: center; margin: 18px 0 0; font-style: italic; opacity: .85; font-size: .95rem; }

/* Galerie */
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.galerie a { display: block; overflow: hidden; border-radius: var(--radius); position: relative; }
.galerie img { aspect-ratio: 4/3; object-fit: cover; width: 100%; transition: transform .4s ease; }
.galerie a:hover img { transform: scale(1.05); }
.galerie figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 9px; font: .85rem var(--sans); color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.7)); }

.lightbox { position: fixed; inset: 0; background: rgba(10,7,5,.94); display: none; align-items: center; justify-content: center; z-index: 200; padding: 30px; }
.lightbox.offen { display: flex; }
.lightbox img { max-height: 86vh; max-width: 92vw; border-radius: 4px; box-shadow: var(--schatten); }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; font-size: 2rem; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; }
.lightbox button:hover { background: rgba(212,162,76,.5); }
.lb-zu { top: 18px; right: 18px; }
.lb-zurueck { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-vor { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-text { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #ddd; font: .95rem var(--sans); }

/* ---------- Speisekarte ---------- */
.karten-nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 40px; }
.karten-nav a { font: 600 .85rem var(--sans); text-decoration: none; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--messing); color: var(--holz-3); background: var(--papier); }
.karten-nav a:hover { background: var(--bernstein); color: var(--holz); border-color: var(--bernstein); }
.speisekarte {
  max-width: 860px; margin: 0 auto; background: #fbf5e8; padding: 56px clamp(22px, 5vw, 64px);
  border-radius: 4px; box-shadow: 0 10px 40px rgba(60,40,20,.18); border: 1px solid #e3d3b3; position: relative;
}
.speisekarte::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(169,123,50,.35); pointer-events: none; border-radius: 2px; }
.kategorie { margin-bottom: 46px; scroll-margin-top: 100px; }
.kategorie:last-child { margin-bottom: 0; }
.kategorie h2 { text-align: center; font-size: 1.9rem; margin-bottom: .15em; }
.kategorie .ornament { margin-bottom: 1.4em; }
.kategorie .unterzeile { text-align: center; font-style: italic; color: var(--tinte-hell); margin-top: -.6em; margin-bottom: 1.4em; }
.gericht { display: grid; grid-template-columns: 1fr auto; gap: 4px 18px; padding: 10px 0; border-bottom: 1px dotted #cdb894; }
.gericht:last-of-type { border-bottom: 0; }
.gericht .name { font-weight: 600; }
.gericht .preis { font-weight: 700; color: var(--holz-3); white-space: nowrap; }
.gericht .beschreibung { grid-column: 1 / -1; color: var(--tinte-hell); font-size: .95rem; font-style: italic; margin-top: -2px; }
.gericht .menge { font: .85rem var(--sans); color: var(--tinte-hell); margin-left: 8px; font-weight: 400; }
.gericht sup, .zs { font: 600 .65rem var(--sans); color: var(--messing); margin-left: 2px; }
.beilage-hinweis { text-align: center; font-style: italic; color: var(--tinte-hell); font-size: .95rem; margin-top: 14px; }
.zusatzstoffe { font-family: var(--sans); font-size: .85rem; color: var(--tinte-hell); columns: 2; column-gap: 30px; padding-left: 20px; }
@media (max-width: 600px) { .zusatzstoffe { columns: 1; } }

/* ---------- Zimmer ---------- */
.preisliste { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.preis-box {
  text-align: center; padding: 34px 20px; border-radius: var(--radius); background: var(--holz-3);
  border: 1px solid rgba(212,162,76,.3);
}
.preis-box.hervor { background: var(--bernstein); color: var(--holz); }
.preis-box .betrag { font-size: 2.8rem; font-weight: 700; display: block; line-height: 1.1; }
.preis-box .dauer { font: 600 .82rem var(--sans); text-transform: uppercase; letter-spacing: .15em; opacity: .9; }
.preis-box .einheit { font-style: italic; font-size: .95rem; opacity: .85; }
@media (max-width: 760px) { .preisliste { grid-template-columns: 1fr; } }
.ausstattung { list-style: none; padding: 0; margin: 0 0 1.5em; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.ausstattung li { padding-left: 28px; position: relative; }
.ausstattung li::before { content: "✦"; position: absolute; left: 0; color: var(--bernstein); }
@media (max-width: 520px) { .ausstattung { grid-template-columns: 1fr; } }

/* ---------- Kontakt / Karte ---------- */
.kontakt-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 50px; align-items: start; }
@media (max-width: 860px) { .kontakt-grid { grid-template-columns: 1fr; } }
.kontakt-liste { list-style: none; padding: 0; margin: 0 0 24px; }
.kontakt-liste li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.kontakt-liste .icon { width: 22px; flex: 0 0 22px; color: var(--bernstein); margin-top: 3px; }
.kontakt-liste strong { display: block; font: 600 .78rem var(--sans); letter-spacing: .15em; text-transform: uppercase; color: var(--bernstein); }
.karte-platzhalter {
  aspect-ratio: 4/3; border-radius: var(--radius); background: var(--holz-3) url("../img/aussen-klein.jpg") center/cover;
  position: relative; display: grid; place-items: center; overflow: hidden; box-shadow: var(--schatten);
}
.karte-platzhalter::before { content: ""; position: absolute; inset: 0; background: rgba(28,19,14,.82); }
.karte-platzhalter .info { position: relative; text-align: center; padding: 30px; max-width: 440px; color: var(--papier); }
.karte-platzhalter .info p { font-size: .92rem; opacity: .9; font-family: var(--sans); }
.karte-platzhalter iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }

/* ---------- Textseiten (Impressum/Datenschutz) ---------- */
.textseite { max-width: 820px; margin: 0 auto; }
.textseite h2 { font-size: 1.5rem; margin-top: 1.8em; }
.textseite h3 { font-size: 1.15rem; margin-top: 1.4em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--holz); color: rgba(244,234,215,.85); padding: 64px 0 24px; font-size: .97rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.site-footer h3 { color: var(--bernstein); font-size: 1.1rem; }
.site-footer a { color: rgba(244,234,215,.85); }
.site-footer a:hover { color: var(--bernstein); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-unten { border-top: 1px solid rgba(255,255,255,.08); margin-top: 44px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font: .85rem var(--sans); opacity: .75; }
.footer-unten a { margin-left: 16px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Kleine Helfer */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.knoepfe { display: flex; gap: 12px; flex-wrap: wrap; }
.zitat { font-style: italic; font-size: 1.35rem; color: var(--bernstein-hell); border-left: 3px solid var(--bernstein); padding-left: 20px; margin: 1.4em 0; }
.sektion-papier .zitat, .sektion-papier-2 .zitat { color: var(--messing); }

.einblenden { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.einblenden.sichtbar { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .einblenden { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Buttons auf dunklen Flächen nicht von Link-Farbe überschreiben lassen */
.sektion-dunkel .btn-voll, .hero .btn-voll, .karte-platzhalter .btn-voll { color: var(--holz); }
.sektion-dunkel .btn-rand, .hero .btn-rand { color: var(--papier); }
.sektion-dunkel .btn-voll:hover { color: var(--holz); }
