/* Bodelschwingher Hof – shared site styles (2026)
   Self-contained: no Bootstrap / jQuery. System fonts only (no Google Fonts → DSGVO-friendly). */

:root {
  --espresso: #241a12;
  --brown: #3e3223;
  --brown-soft: #5a4632;
  --gold: #c9a24a;
  --gold-light: #f0ce78;
  --gold-text: #86641f;   /* gold for small text on light backgrounds (5:1) */
  --gold-line: #a8832f;   /* gold for underlines/borders on light backgrounds (3.2:1) */
  --cream: #f9f5ea;
  --paper: #fffdf8;
  --line: #e6dcc6;
  --text: #3a2f25;
  --muted: #7a6c5c;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(36, 26, 18, .35);
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--espresso);
  margin: 0 0 .5em;
  text-wrap: balance;
}

p { margin: 0 0 1em; }

.wrap {
  width: min(100% - 32px, var(--wrap));
  margin-inline: auto;
}

.eyebrow {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin: 0 0 .6rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .8em 1.4em;
  border-radius: 999px;
  font: 600 .95rem/1 var(--sans);
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
/* Keyboard focus: always clearly visible (dark on light, light gold on dark areas) */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--espresso);
  outline-offset: 3px;
  border-radius: 4px;
}
.hero :focus-visible, .site-footer :focus-visible, .news-dialog :focus-visible { outline-color: var(--gold-light); }

.btn-gold { background: var(--gold); color: var(--espresso); }
.btn-gold:hover { background: var(--gold-light); }

.btn-ghost { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }

.btn-dark { background: var(--brown); color: var(--cream); }
.btn-dark:hover { background: var(--espresso); }

.link-arrow {
  font-weight: 600;
  color: var(--brown-soft);
  text-decoration: none;
  border-bottom: 2px solid var(--gold-line);
  padding-bottom: 2px;
}
.link-arrow:hover { color: var(--espresso); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(249, 245, 234, .9);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand img { width: clamp(190px, 26vw, 280px); }

.main-nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: block;
  padding: .55em .9em;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--brown);
}
.main-nav a:hover { background: rgba(201, 162, 74, .16); }
.main-nav a[aria-current="page"] { color: var(--espresso); box-shadow: inset 0 -3px 0 var(--gold-line); border-radius: 0; }

.header-call { white-space: nowrap; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--brown);
  cursor: pointer;
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 900px) {
  .header-call { display: none; }
  .nav-toggle { display: inline-grid; place-items: center; }

  .main-nav {
    position: absolute;
    inset: 100% 0 auto 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 8px 16px 16px; }
  .main-nav a { padding: .85em .6em; border-radius: 8px; font-size: 1.05rem; }
  .main-nav a[aria-current="page"] { box-shadow: none; background: rgba(201, 162, 74, .18); border-radius: 8px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(78vh, 720px);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* darker behind the text column (left/bottom) so the text stays readable on bright parts of the photo */
  background:
    linear-gradient(90deg, rgba(36, 26, 18, .72) 0%, rgba(36, 26, 18, .45) 45%, rgba(36, 26, 18, 0) 75%),
    linear-gradient(180deg, rgba(36, 26, 18, .2) 0%, rgba(36, 26, 18, .35) 45%, rgba(36, 26, 18, .88) 100%);
}

.hero-content { padding-block: 120px 64px; max-width: 760px; }

.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 5.2vw, 3.8rem);
  margin-bottom: .35em;
}

.hero p {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: rgba(255, 255, 255, .88);
  max-width: 600px;
  margin-bottom: 1.8em;
}

.hero .eyebrow { color: var(--gold-light); }
.hero-content > * { text-shadow: 0 1px 12px rgba(36, 26, 18, .55); }
.hero-actions .btn { text-shadow: none; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Phones: show the whole photo, text underneath on a dark band */
@media (max-width: 700px) {
  .hero {
    display: block;
    min-height: 0;
    background: var(--espresso);
  }
  .hero-img {
    position: static;
    height: auto;
    aspect-ratio: 3 / 2;
  }
  .hero::after { display: none; }
  .hero-content {
    padding-block: 24px 64px;
    max-width: none;
  }
  .hero-content > * { text-shadow: none; }
  .hero h1 { font-size: clamp(1.75rem, 8vw, 2.3rem); }
  .hero p { font-size: 1.02rem; margin-bottom: 1.4em; }
  .hero .eyebrow { font-size: .72rem; letter-spacing: .12em; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; text-align: center; }
}

/* ---------- Aktuelles ---------- */
.news {
  position: relative;
  margin-top: -36px;
  z-index: 2;
}

.news-card {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 16px 28px 16px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.news-card img {
  width: 96px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: top;
  border-radius: 8px;
}

.news-card h2 { font-size: 1.5rem; margin-bottom: .2em; }
.news-card p { margin: 0; color: var(--muted); }
.news-card .eyebrow { margin-bottom: .3rem; }
.news-card strong { color: var(--espresso); }

/* card without picture: text + button only */
.news-card.no-image {
  grid-template-columns: 1fr auto;
  padding: 22px 28px;
  border-left: 4px solid var(--gold-line);
}

@media (max-width: 700px) {
  .news-card {
    grid-template-columns: 76px 1fr;
    padding: 14px;
    gap: 14px 16px;
  }
  .news-card img { width: 76px; }
  .news-card h2 { font-size: 1.25rem; }
  .news-card .btn { grid-column: 1 / -1; justify-content: center; }
  .news-card.no-image { grid-template-columns: 1fr; padding: 18px 18px 18px 20px; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 9vw, 104px); }

.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.section-head p { color: var(--muted); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.split + .split { margin-top: clamp(56px, 8vw, 96px); }
.split.reverse .split-media { order: 2; }

.split-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.split-text h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
.split-text p { color: var(--text); }

@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
}

/* ---------- Highlights strip ---------- */
.band { background: var(--paper); border-block: 1px solid var(--line); }

.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  background: var(--brown);
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tile:hover img { transform: scale(1.04); }
.tile span {
  position: absolute;
  inset: auto 0 0 0;
  padding: 72px 18px 16px;
  color: #fff;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .8), 0 0 14px rgba(0, 0, 0, .5);
  background: linear-gradient(180deg, rgba(36, 26, 18, 0) 0%, rgba(36, 26, 18, .7) 45%, rgba(36, 26, 18, .94) 100%);
}
.tile a { display: block; height: 100%; color: inherit; text-decoration: none; }
.tile:has(a:focus-visible) { overflow: visible; }

.tiles-footer { margin-top: 28px; }

@media (max-width: 800px) {
  .tiles {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: 78%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }
  .tile { scroll-snap-align: start; }
}

/* ---------- Visit ---------- */
.visit {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.visit-card {
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.visit-card h3 { font-size: 1.35rem; }
.visit-card p { margin-bottom: .3em; }
.visit-card .btn, .visit-card .link-arrow { margin-top: 14px; display: inline-flex; }

.hours { list-style: none; margin: 0; padding: 0; }
.hours li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 12px;
  padding: .45em 0;
  border-bottom: 1px dashed var(--line);
}
.hours li:last-child { border-bottom: 0; }
.hours span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.hours .closed { color: var(--muted); }

@media (max-width: 900px) {
  .visit { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .visit-card { padding: 22px 18px; }
}

/* Never let a long German word push the page sideways */
h1, h2, h3, p { overflow-wrap: break-word; hyphens: auto; }
.visit > *, .split > *, .news-card > * { min-width: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--espresso);
  color: #cbbfa8;
  padding-block: 48px 28px;
  font-size: .95rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.footer-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--gold-light);
  margin-bottom: .3em;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer a { color: #e9dfc9; text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); text-decoration: underline; }

.social { margin-top: 14px !important; }
.social a { display: inline-flex; align-items: center; gap: 8px; }
.social svg { width: 18px; height: 18px; fill: currentColor; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 20px;
  color: #9d917c;
}

/* ---------- Aktuelles dialog ---------- */
.news-dialog {
  width: min(560px, calc(100% - 32px));
  max-height: 90vh;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6);
  overflow: hidden;
}
.news-dialog::backdrop { background: rgba(36, 26, 18, .7); backdrop-filter: blur(3px); }
.news-dialog[open] { animation: pop .25s ease-out; }

.news-dialog-body { max-height: 90vh; overflow-y: auto; text-align: center; }
.news-dialog-body img { width: 100%; height: auto; }
.news-dialog-body > :not(img) { padding: 0 20px; }
.news-dialog-body .news-dialog-text { margin: 0; padding: 18px 22px 22px; color: var(--text); }
.news-dialog-text strong { color: var(--espresso); }

/* popup without picture: heading, text, times, sign-off */
.news-dialog.text-only .news-dialog-body { padding-bottom: 8px; }
.news-dialog-body .news-dialog-title {
  margin: 0;
  padding: 30px 60px 4px;
  font-size: clamp(1.4rem, 5vw, 1.8rem);
}
.news-dialog-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin: 14px auto 0;
  background: var(--gold-line);
}
.news-dialog.text-only .news-dialog-close { background: transparent; color: var(--brown); }
.news-dialog.text-only .news-dialog-close:hover { background: rgba(201, 162, 74, .18); }
.news-times {
  margin: 8px auto 18px;
  border-collapse: collapse;
  text-align: left;
  font-variant-numeric: tabular-nums;
}
.news-times td { padding: .5em .7em; border-bottom: 1px dashed var(--line); vertical-align: top; }
.news-times tr:last-child td { border-bottom: 0; }
.news-times td:first-child { white-space: nowrap; color: var(--muted); }
.news-times td:last-child { white-space: nowrap; color: var(--espresso); font-weight: 600; }
@media (max-width: 480px) {
  .news-times { font-size: .92rem; }
  .news-times td { padding: .45em .4em; }
  .news-times td:last-child { white-space: normal; }
}
.news-dialog-body .news-dialog-gruss { margin: 0; padding: 4px 22px 24px; font-family: var(--serif); font-style: italic; color: var(--muted); }

.news-dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(36, 26, 18, .75);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.news-dialog-close:hover { background: var(--espresso); }

@keyframes pop {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

[hidden] { display: none !important; }

/* =====================================================================
   Inner pages
   ===================================================================== */

/* ---------- Page heading band ---------- */
.page-head {
  padding-block: clamp(40px, 7vw, 80px) clamp(28px, 5vw, 48px);
  background:
    radial-gradient(ellipse at 85% 0%, rgba(201, 162, 74, .18), transparent 60%),
    var(--cream);
  border-bottom: 1px solid var(--line);
}
.page-head h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: .25em; }
.page-head p { max-width: 640px; color: var(--muted); margin: 0; }

/* ---------- Text pages (Impressum, Datenschutz) ---------- */
.prose > * { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 1.1em; }
.prose a { color: var(--brown-soft); text-decoration-color: var(--gold-line); text-underline-offset: 3px; overflow-wrap: anywhere; }
.prose strong { color: var(--espresso); }

/* ---------- Über uns facts ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.facts li {
  padding: 20px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.facts strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--espresso);
  margin-bottom: .15em;
}
.facts span { color: var(--muted); font-size: .95rem; }

/* ---------- Speisekarte ---------- */
.menu-nav {
  position: sticky;
  top: 76px;
  z-index: 10;
  background: rgba(249, 245, 234, .94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.menu-nav ul {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 12px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.menu-nav ul::-webkit-scrollbar { display: none; }
.menu-nav a {
  display: block;
  white-space: nowrap;
  padding: .45em 1em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--brown);
}
.menu-nav a:hover { border-color: var(--gold-line); }

.menu-section { scroll-margin-top: 150px; }
.menu-section + .menu-section { margin-top: clamp(48px, 7vw, 80px); }
.menu-section > h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  padding-bottom: .4em;
  margin-bottom: 1em;
  border-bottom: 2px solid var(--gold-line);
  display: inline-block;
}

.menu-items { columns: 2 340px; column-gap: 48px; }
.dish {
  break-inside: avoid;
  padding: 16px 0 18px;
  border-bottom: 1px dashed var(--line);
}
.dish h3 { font-size: 1.2rem; margin-bottom: .25em; }
.dish p { margin: 0; color: var(--muted); font-size: .98rem; }

.menu-note {
  margin-top: clamp(48px, 7vw, 80px);
  padding: 22px 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
}
.menu-note p { margin: 0; }

@media (max-width: 900px) {
  .menu-nav { top: 76px; }
}

/* ---------- Galerie ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.gallery-grid a {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--brown);
  aspect-ratio: 3 / 2;
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .3s; }
.gallery-grid a:hover img { transform: scale(1.04); }

@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gallery-grid a { border-radius: 10px; }
}

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 24px;
  align-items: start;
}
.contact-cards { display: grid; gap: 20px; }
.contact-cards .visit-card p { margin-bottom: .2em; }
.contact-cards .note { color: var(--muted); font-size: .92rem; margin-top: .6em; }

.map {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #efe6d2, #e3d6ba);
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-consent {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
}
.map-consent p { max-width: 360px; margin: 0; color: var(--brown-soft); font-size: .95rem; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.prose ul { margin: 0 0 1.1em; padding-left: 1.3em; }
.prose li { margin-bottom: .3em; }
.prose mark { background: #fde68a; color: var(--espresso); padding: 0 .25em; border-radius: 3px; }

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: .7em 1.1em;
  border-radius: 8px;
  background: var(--espresso);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; outline: 3px solid var(--gold-light); outline-offset: 2px; }
.site-footer p a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer opening hours ---------- */
.footer-heading {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--gold-light);
  margin-bottom: .4em;
}
.site-footer .footer-hours ul { display: grid; gap: 4px; }
.footer-hours li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 20px; }
.footer-hours li span:last-child { color: #e9dfc9; font-variant-numeric: tabular-nums; white-space: nowrap; }