/* ==========================================================================
   Gasthaus Schreyer – Designentwurf
   Statisches Stylesheet, mobile first. Keine externen Ressourcen.
   ========================================================================== */

/* ---------- Schriften (lokal, SIL Open Font License 1.1) ---------- */
@font-face {
  font-family: "Libre Baskerville";
  src: url("../fonts/libre-baskerville-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Libre Baskerville";
  src: url("../fonts/libre-baskerville-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Libre Baskerville";
  src: url("../fonts/libre-baskerville-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/source-sans-3-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-wght-italic.woff2") format("woff2-variations"),
       url("../fonts/source-sans-3-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

/* ---------- Gestaltungsvariablen ---------- */
:root {
  --cream: #F5F0E7;       /* Hintergrund */
  --olive: #344238;       /* Hauptfarbe */
  --olive-deep: #29342C;  /* Hover / dunkle Flächen (abgeleitet) */
  --brown: #302923;       /* Text */
  --terra: #A8533D;       /* sparsamer Akzent */
  --beige: #DED3C2;       /* Flächen, Linien */
  --paper: #FBF8F2;       /* helle Kartenfläche (abgeleitet) */
  --tint: #EDE5D8;        /* Zwischenton Creme/Beige (abgeleitet) */
  --muted: #5C5148;       /* Sekundärtext (abgeleitet, AA auf allen hellen Flächen) */

  --font-serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

  --radius: 8px;
  --radius-sm: 5px;
  --container: 75rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-space: clamp(3.25rem, 7vw, 5.75rem);
  --header-h: 4rem;
  --focus: var(--brown);
  --shadow: 0 1px 2px rgba(48, 41, 35, .06), 0 8px 24px -12px rgba(48, 41, 35, .18);
}
@media (min-width: 68em) {
  :root { --header-h: 4.75rem; }
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--brown);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
@media (min-width: 48em) {
  body { font-size: 1.125rem; }
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.18;
  margin: 0 0 .6em;
  color: var(--brown);
  text-wrap: balance;
  letter-spacing: -.005em;
}
h1 { font-size: clamp(2rem, 1.1rem + 3.6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 1.15rem + .6vw, 1.55rem); }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1em; }
address { font-style: normal; }
strong { font-weight: 650; }

a {
  color: var(--olive);
  text-decoration-line: underline;
  text-decoration-color: var(--terra);
  text-decoration-thickness: .09em;
  text-underline-offset: .2em;
}
a:hover { color: var(--terra); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}
main:focus { outline: none; }

.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;
}
.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--brown);
  color: var(--cream);
  border-radius: var(--radius-sm);
  font-weight: 650;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--cream); }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(46rem + 2 * var(--gutter)); }

.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon--ext { display: inline-block; width: .85em; height: .85em; margin-left: .25em; vertical-align: -.05em; }

.small { font-size: .9375rem; line-height: 1.55; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 3rem;
  padding: .7rem 1.3rem;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: .005em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn .icon { width: 1.2rem; height: 1.2rem; }
.btn--primary { background: var(--olive); color: var(--cream); }
.btn--primary:hover { background: var(--olive-deep); color: var(--cream); }
.btn--outline { border-color: var(--olive); color: var(--olive); background: transparent; }
.btn--outline:hover { background: var(--olive); color: var(--cream); }
.btn--light { background: var(--cream); color: var(--olive); }
.btn--light:hover { background: var(--beige); color: var(--olive-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.btn-row--center { justify-content: center; }
@media (max-width: 29.99em) {
  .hero .btn-row .btn, .visit .btn-row .btn { flex: 1 1 100%; }
}

/* ---------- Demo-Hinweisleiste ---------- */
.demo-bar {
  background: var(--brown);
  color: var(--cream);
  font-size: .875rem;
  line-height: 1.45;
}
.demo-bar__inner { padding-block: .5rem; }
.demo-bar p { margin: 0; }
.demo-bar a { color: var(--cream); text-decoration-color: var(--beige); font-weight: 600; white-space: nowrap; }
.demo-bar a:hover { color: var(--beige); }
.demo-bar :focus-visible { --focus: var(--cream); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 240, 231, .97);
  border-bottom: 1px solid var(--beige);
}
@supports (backdrop-filter: blur(6px)) {
  .site-header { background: rgba(245, 240, 231, .9); backdrop-filter: blur(8px); }
}
.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "brand actions" "nav nav";
  align-items: center;
  column-gap: 1rem;
  min-height: var(--header-h);
}

.wordmark {
  grid-area: brand;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .2rem;
  padding-block: .35rem;
  color: var(--olive);
  text-decoration: none;
  line-height: 1;
}
.wordmark:hover { color: var(--olive); }
.wordmark__top {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 650;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--terra);
}
.wordmark__top::after {
  content: "";
  width: 1.4rem;
  height: 1px;
  background: currentColor;
}
.wordmark__name {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  letter-spacing: -.01em;
}
@media (min-width: 68em) {
  .wordmark__name { font-size: 1.8rem; }
}
.wordmark--light, .wordmark--light:hover { color: var(--cream); }
.wordmark--light .wordmark__top { color: var(--beige); }

.site-header__actions {
  grid-area: actions;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: .5rem;
}
.btn--call { min-height: 2.75rem; padding: .55rem .95rem; font-size: 1rem; }
.btn--call__long { display: none; }
@media (max-width: 22.49em) {
  .btn--call { padding-inline: .7rem; }
  .btn--call__short { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (min-width: 40em) {
  .btn--call__long { display: inline; }
  .btn--call__short { display: none; }
}

.nav-toggle { display: none; }

/* Navigation ohne JavaScript: als Linkzeile unter der Wortmarke */
.site-nav { grid-area: nav; }
.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.1rem;
  margin: 0;
  padding: 0 0 .5rem;
  list-style: none;
}
.site-nav__list a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--brown);
  font-weight: 600;
  text-decoration: none;
}
.site-nav__list a:hover { color: var(--terra); text-decoration: underline; text-decoration-color: var(--terra); text-decoration-thickness: 2px; text-underline-offset: .45em; }
.site-nav__phone { display: none; }

/* Navigation mit JavaScript (schmale Bildschirme): ausklappbares Menü */
@media (max-width: 67.99em) {
  .js .site-header__inner { grid-template-areas: "brand actions"; }
  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-height: 2.75rem;
    min-width: 2.75rem;
    padding: .5rem .7rem;
    border: 2px solid var(--olive);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--olive);
    font: 650 1rem/1 var(--font-sans);
    cursor: pointer;
  }
  .nav-toggle__close { display: none; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }
  .js .site-nav {
    grid-area: auto;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    max-height: calc(100vh - var(--header-h) - 1rem);
    max-height: calc(100dvh - var(--header-h) - 1rem);
    overflow-y: auto;
    background: var(--cream);
    border-bottom: 1px solid var(--beige);
    box-shadow: 0 18px 30px -18px rgba(48, 41, 35, .35);
  }
  .js .nav-open .site-nav { display: block; }
  .js .site-nav__list {
    display: block;
    width: 100%;
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin-inline: auto;
    padding: .25rem var(--gutter) .5rem;
  }
  .js .site-nav__list li + li { border-top: 1px solid var(--beige); }
  .js .site-nav__list a {
    display: flex;
    width: 100%;
    min-height: 3.25rem;
    font-size: 1.125rem;
  }
  .js .site-nav__phone {
    display: flex;
    align-items: center;
    gap: .6rem;
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin: 0 auto;
    padding: .9rem var(--gutter) 1.1rem;
    background: var(--tint);
    color: var(--brown);
    font-weight: 600;
  }
  .js .site-nav__phone a { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 700; }
  .js .site-nav__phone .icon { color: var(--terra); }
}
@media (max-width: 22.49em) {
  .js .nav-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Breite Bildschirme: alles in einer Zeile */
@media (min-width: 68em) {
  .site-header__inner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "brand nav actions";
    column-gap: 2rem;
  }
  .site-nav { justify-self: end; }
  .site-nav__list { flex-wrap: nowrap; gap: 0 1.6rem; padding: 0; }
  .site-nav__list a { font-size: 1.0625rem; }
}

/* ---------- Typo-Bausteine ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 .9rem;
  font-family: var(--font-sans);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--terra);
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  background: currentColor;
  flex: none;
}
.eyebrow--leaf::before { display: none; }
.eyebrow__leaf { width: 1.5rem; height: 1.25rem; flex: none; }
.eyebrow--small { font-size: .75rem; margin-bottom: .5rem; }
.eyebrow--small::before { width: 1.1rem; }
.eyebrow--light { color: var(--beige); }
.section--tint .eyebrow { color: var(--olive); }

.section-lead { font-size: 1.125rem; max-width: 40rem; color: var(--brown); }
@media (min-width: 48em) { .section-lead { font-size: 1.1875rem; } }

/* ---------- Fotos ---------- */
.photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--beige);
}
.photo picture { height: 100%; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo__badge {
  position: absolute;
  left: .75rem;
  bottom: .75rem;
  padding: .3rem .6rem .32rem;
  border-radius: 4px;
  background: rgba(48, 41, 35, .86);
  color: var(--cream);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
  pointer-events: none;
}
figure { margin: 0; }
.credit {
  margin-top: .55rem;
  font-size: .8125rem;
  line-height: 1.45;
  color: var(--muted);
}
.credit a { color: var(--muted); }
.credit a:hover { color: var(--terra); }
.credit--light, .credit--light a { color: var(--beige); }
.credit--light a:hover { color: var(--cream); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(1.75rem, 4.5vw, 4rem) var(--section-space); }
.hero__grid { display: grid; gap: clamp(1.75rem, 4vw, 4.5rem); align-items: center; }
@media (min-width: 56em) {
  .hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
}
.hero__title {
  font-size: clamp(2.15rem, 1.2rem + 3.2vw, 3.55rem);
  line-height: 1.08;
  margin-bottom: 1.25rem;
  letter-spacing: -.015em;
}
.hero__line { display: block; }
.hero__line--accent { color: var(--olive); font-style: italic; }
.hero__lead { font-size: 1.125rem; max-width: 33rem; }
@media (min-width: 48em) { .hero__lead { font-size: 1.25rem; line-height: 1.55; } }
.hero__media .photo { aspect-ratio: 4 / 3; }
@media (min-width: 56em) {
  .hero__media .photo { aspect-ratio: 5 / 4.4; }
}
.quick-facts {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  margin: 1.75rem 0 0;
  padding: 1rem 0 0;
  list-style: none;
  border-top: 1px solid var(--beige);
  font-size: 1rem;
}
.quick-facts li { display: flex; align-items: center; gap: .5rem; min-height: 2.75rem; }
.quick-facts .icon { color: var(--terra); }
.quick-facts a { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 700; color: var(--olive); }

/* ---------- Abschnitte ---------- */
.section { position: relative; padding-block: var(--section-space); }
.section-head { margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem); }
.section-head--row { display: grid; gap: .5rem 3rem; }
@media (min-width: 56em) {
  .section-head--row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: end; }
  .section-head--row h2 { margin-bottom: 0; }
}
.section--kueche { background: var(--paper); border-block: 1px solid var(--beige); }
.section--tint { background: var(--tint); }

/* Küche */
.cuisines { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
@media (min-width: 52em) { .cuisines { grid-template-columns: 1fr 1fr; } }
.cuisine {
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border: 1px solid var(--beige);
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
}
.cuisine__media { padding: .75rem .75rem 0; }
.cuisine__media .photo { aspect-ratio: 3 / 2; border-radius: var(--radius-sm); }
.cuisine__media .credit { padding-inline: .1rem; }
.cuisine__body { padding: 1.1rem clamp(1.1rem, 3vw, 1.9rem) clamp(1.4rem, 3vw, 2rem); }
.cuisine__body h3 { margin-bottom: .4rem; }
.dishes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr));
  column-gap: 1.5rem;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
}
.dishes li {
  display: flex;
  align-items: baseline;
  gap: .7rem;
  padding: .6rem 0;
  border-top: 1px solid var(--beige);
  font-weight: 600;
  line-height: 1.35;
}
.dishes li::before {
  content: "";
  flex: none;
  width: .42rem;
  height: .42rem;
  background: var(--terra);
  transform: translateY(-.12rem) rotate(45deg);
}
.menu-foot { display: grid; gap: 1.25rem; margin-top: clamp(1.5rem, 3vw, 2.25rem); }
@media (min-width: 56em) { .menu-foot { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; } }
.menu-foot__extra { display: flex; align-items: center; gap: 1rem; margin: 0; font-size: 1.0625rem; }
.menu-foot__amp {
  flex: none;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--terra);
}
.note {
  display: flex;
  gap: .9rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--beige);
  border-left: 4px solid var(--terra);
  border-radius: var(--radius-sm);
  background: var(--cream);
}
.note__icon { color: var(--terra); margin-top: .15rem; }
.note__main { margin-bottom: .4rem; }
.note__link { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem 1rem; }
.note__meta { font-size: .875rem; color: var(--muted); }
/* inline-block + Innenabstand: ≥ 44 px Touchfläche, Extern-Symbol bleibt beim Umbruch am Text */
.link-strong { display: inline-block; padding-block: .55rem; font-weight: 700; }

/* Split-Layouts */
.split { display: grid; gap: clamp(1.75rem, 4vw, 4rem); align-items: center; }
@media (min-width: 56em) {
  .split--media-left { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); }
  .split--wide-media { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
}
.split__text > p:not(.eyebrow):not(.small) { max-width: 34rem; }
.photo--doc { aspect-ratio: auto; }
.facts { display: grid; gap: .4rem; margin: 1.5rem 0 0; padding: 1.1rem 0 0; list-style: none; border-top: 1px solid var(--beige); }
.facts li { display: flex; align-items: center; gap: .75rem; font-weight: 600; }
.facts .icon { color: var(--terra); width: 1.4rem; height: 1.4rem; }

/* Biergarten (dunkle Fläche) */
.section--olive {
  --focus: var(--cream);
  background: var(--olive);
  color: var(--cream);
  overflow: hidden;
}
.section--olive h2 { color: var(--cream); }
.section--olive a:not(.btn) { color: var(--cream); text-decoration-color: var(--beige); }
.section--olive .small { color: var(--beige); }
.section--olive .photo { background: var(--olive-deep); }
.section--olive .split__media .photo { aspect-ratio: 4 / 3; }
.section__leaf {
  position: absolute;
  right: -2.5rem;
  top: -1.5rem;
  width: clamp(10rem, 22vw, 17rem);
  height: auto;
  color: var(--beige);
  opacity: .16;
  pointer-events: none;
}
.section--olive .btn--light { margin-top: .75rem; }

/* Gemeinsam & Kegeln */
.callout {
  display: grid;
  gap: 1rem;
  justify-items: start;
  margin-top: 1.75rem;
  padding: 1.25rem 1.4rem 1.4rem;
  background: var(--paper);
  border: 1px solid var(--beige);
  border-radius: var(--radius);
}
.callout__text { margin: 0; font-size: 1.0625rem; }
@media (max-width: 29.99em) {
  .callout { padding: 1.1rem 1rem 1.15rem; }
  .callout .btn { padding-inline: 1rem; }
}
.callout--plain { display: block; margin-block: 1.25rem; }
.kegel-card {
  background: var(--paper);
  border: 1px solid var(--beige);
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
}
.kegel-card__media { padding: .75rem .75rem 0; }
.kegel-card__media .photo { aspect-ratio: 16 / 9; border-radius: var(--radius-sm); }
.kegel-card__body { padding: 1.1rem clamp(1.1rem, 3vw, 1.9rem) clamp(1.4rem, 3vw, 1.9rem); }
.kegel-card__body h3 { margin-bottom: .5rem; }

/* Galerie */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gallery__item { min-width: 0; }
.gallery__item--tall, .gallery__item--wide { grid-column: 1 / -1; }
.gallery__link {
  position: relative;
  display: block;
  height: 100%;
  border-radius: var(--radius);
  color: var(--cream);
  text-decoration: none;
}
.gallery__link .photo { aspect-ratio: 1 / 1; }
.gallery__item--tall .photo { aspect-ratio: 4 / 3; }
.gallery__item--wide .photo { aspect-ratio: 16 / 9; }
.gallery__link img { transition: transform .5s ease; }
.gallery__link:hover img { transform: scale(1.03); }
.gallery__caption {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: .25rem .75rem;
  padding: 2.25rem .8rem .7rem;
  border-radius: 0 0 var(--radius) var(--radius);
  background: linear-gradient(to top, rgba(36, 31, 26, .92), rgba(36, 31, 26, .82) 60%, rgba(36, 31, 26, 0));
  font-weight: 650;
  line-height: 1.25;
  pointer-events: none;
}
.gallery__tag {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .2rem .45rem;
  border: 1px solid rgba(245, 240, 231, .7);
  border-radius: 3px;
}
@media (max-width: 29.99em) {
  .gallery__caption { font-size: .9375rem; }
}
@media (min-width: 48em) {
  .gallery {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr);
    grid-auto-rows: clamp(11.5rem, 17.5vw, 16rem);
    gap: 1rem;
  }
  .gallery__item--tall { grid-column: 1; grid-row: span 2; }
  .gallery__item--wide { grid-column: 2 / span 2; }
  .gallery__link .photo,
  .gallery__item--tall .photo,
  .gallery__item--wide .photo { aspect-ratio: auto; height: 100%; }
}

/* Lightbox */
.lightbox {
  --focus: var(--cream);
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(26, 22, 18, .96);
  color: var(--cream);
}
.lightbox::backdrop { background: rgba(26, 22, 18, .6); }
.lightbox__stage {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 4.25rem 1rem 6rem;
}
@media (min-width: 48em) { .lightbox__stage { padding: 4.5rem 5.5rem 3rem; } }
.lightbox__figure { display: grid; justify-items: center; gap: .9rem; max-width: 100%; }
.lightbox__img {
  max-width: min(100%, 90rem);
  max-height: calc(100vh - 12rem);
  max-height: calc(100dvh - 12rem);
  width: auto;
  height: auto;
  border-radius: var(--radius-sm);
  object-fit: contain;
  background: rgba(255, 255, 255, .04);
}
@media (min-width: 48em) {
  .lightbox__img { max-height: calc(100vh - 10rem); max-height: calc(100dvh - 10rem); }
}
.lightbox__caption { max-width: 46rem; text-align: center; font-size: .9375rem; line-height: 1.5; color: var(--beige); }
.lightbox__count { white-space: nowrap; margin-left: .4rem; color: var(--cream); font-weight: 650; }
.lightbox__btn {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  padding: 0;
  border: 1px solid rgba(245, 240, 231, .45);
  border-radius: 50%;
  background: rgba(26, 22, 18, .55);
  color: var(--cream);
  cursor: pointer;
  transition: background-color .18s ease;
}
.lightbox__btn:hover { background: var(--olive); }
.lightbox__btn .icon { width: 1.5rem; height: 1.5rem; }
.lightbox__close { top: .75rem; right: .75rem; }
.lightbox__prev, .lightbox__next { bottom: 1.1rem; }
.lightbox__prev { left: calc(50% - 4rem); }
.lightbox__next { right: calc(50% - 4rem); }
@media (min-width: 48em) {
  .lightbox__prev, .lightbox__next { bottom: auto; top: 50%; transform: translateY(-50%); }
  .lightbox__prev { left: 1.25rem; }
  .lightbox__next { right: 1.25rem; }
  .lightbox__close { top: 1.25rem; right: 1.25rem; }
}
html:has(.lightbox[open]) { overflow: hidden; }

/* Besuch */
.visit { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
@media (min-width: 56em) { .visit { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.visit__card {
  padding: clamp(1.4rem, 3.5vw, 2.4rem);
  border-radius: calc(var(--radius) + 2px);
}
.visit__card--contact { background: var(--paper); border: 1px solid var(--beige); }
.visit__name { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-bottom: .6rem; }
.visit__address { font-size: 1.1875rem; line-height: 1.5; margin-bottom: 1rem; }
.visit__phone { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .75rem; font-size: 1.1875rem; }
.visit__phone a { display: inline-flex; align-items: center; min-height: 2.75rem; font-family: var(--font-serif); font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); color: var(--olive); text-decoration: none; }
.visit__phone a:hover { color: var(--terra); }
.visit__label { font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.visit__card--contact .btn-row { margin-bottom: 1.25rem; }
.visit__card--hours {
  --focus: var(--cream);
  background: var(--olive);
  color: var(--cream);
}
.visit__card--hours h3 { color: var(--cream); margin: .9rem 0 .75rem; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.visit__icon { width: 2.25rem; height: 2.25rem; color: var(--beige); }
.visit__hours { font-size: 1.1875rem; font-weight: 650; line-height: 1.45; padding-left: .9rem; border-left: 3px solid var(--terra); }
.visit__card--hours p:not(.visit__hours) { color: var(--beige); }
.visit__card--hours .btn { margin-top: .5rem; }

/* ---------- Footer ---------- */
.site-footer {
  --focus: var(--cream);
  background: var(--brown);
  color: var(--cream);
  padding-top: clamp(2.75rem, 6vw, 4rem);
  font-size: 1rem;
}
.site-footer a { color: var(--cream); text-decoration-color: var(--beige); }
.site-footer a:hover { color: var(--beige); }
.site-footer__grid { display: grid; gap: 2rem; padding-bottom: 2.25rem; }
@media (min-width: 48em) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer__brand p { margin-top: 1rem; color: var(--beige); max-width: 22rem; }
.footer-heading {
  margin: 0 0 .75rem;
  font-family: var(--font-sans);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--beige);
}
.site-footer__col p a, .footer-links a { display: inline-block; padding-block: .6rem; }
.site-footer__col p { margin-top: 0; }
.site-footer address { line-height: 1.55; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.site-footer__note {
  display: flex;
  max-width: var(--container);
  margin-inline: auto;
  align-items: flex-start;
  gap: 1rem;
  padding-block: 1.25rem 1.6rem;
  border-top: 1px solid rgba(222, 211, 194, .3);
  font-size: .9375rem;
  color: var(--beige);
}
.site-footer__note strong { color: var(--cream); }
.site-footer__leaf { width: 2.25rem; height: auto; flex: none; color: var(--beige); margin-top: .1rem; }

/* ---------- Kastanienblatt ---------- */
.leaf { overflow: visible; }
.leaf--line .leaf__blade { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; }
.leaf--line .leaf__vein, .leaf--line .leaf__stem { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.leaf--solid { color: var(--terra); }
.leaf--solid .leaf__blade { fill: currentColor; stroke: none; }
.leaf--solid .leaf__vein { fill: none; stroke: var(--cream); stroke-width: 2.4; stroke-linecap: round; }
.leaf--solid .leaf__stem { fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; }

/* ---------- Unterseiten ---------- */
.page-head { padding-block: clamp(2.25rem, 5vw, 3.75rem) clamp(1.5rem, 3vw, 2.25rem); }
.page-head h1 { hyphens: manual; }
.page-lead { font-size: 1.125rem; color: var(--brown); max-width: 40rem; }
@media (min-width: 48em) { .page-lead { font-size: 1.25rem; } }
.prose { padding-bottom: var(--section-space); hyphens: auto; -webkit-hyphens: auto; }
.prose h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); margin-top: 2.25em; scroll-margin-top: calc(var(--header-h) + 1rem); }
.prose h3 { font-family: var(--font-sans); font-size: 1.0625rem; font-weight: 700; margin: 1.6em 0 .4em; letter-spacing: 0; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: .45rem; }
.prose li::marker { color: var(--terra); }
.notice {
  display: flex;
  gap: .9rem;
  margin-bottom: 2rem;
  padding: 1.1rem 1.25rem;
  background: var(--paper);
  border: 1px solid var(--beige);
  border-left: 4px solid var(--terra);
  border-radius: var(--radius-sm);
}
.notice__icon { color: var(--terra); margin-top: .2rem; }
.address-card {
  display: block;
  margin: 0 0 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--paper);
  border: 1px solid var(--beige);
  border-radius: var(--radius-sm);
  line-height: 1.6;
  hyphens: none;
}
.toc {
  margin-bottom: 1rem;
  padding: 1.1rem 1.25rem .6rem;
  background: var(--paper);
  border: 1px solid var(--beige);
  border-radius: var(--radius-sm);
}
.toc__title { margin: 0 0 .5rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .8125rem; color: var(--muted); }
.toc ol { columns: 2 14rem; column-gap: 2rem; margin: 0; }
.toc li { break-inside: avoid; }
.toc a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.link-list { list-style: none; padding-left: 0 !important; }
.link-list li { padding: .25rem 0; }

/* Bildnachweise */
.prose--wide { max-width: calc(52rem + 2 * var(--gutter)); }
.credit-entries { list-style: none; padding: 0 !important; margin: 0; }
.credit-entry {
  display: grid;
  gap: 1rem 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--beige);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}
.credit-entry:target { background: var(--paper); box-shadow: 0 0 0 .75rem var(--paper); border-radius: 2px; }
@media (min-width: 40em) { .credit-entry { grid-template-columns: 13.75rem minmax(0, 1fr); } }
.credit-entry__thumb .photo { aspect-ratio: 4 / 3; border-radius: var(--radius-sm); }
.prose .credit-entry__title { font-size: 1.35rem; margin: 0 0 .35rem; }
.credit-entry__usage { font-size: .9375rem; color: var(--muted); margin-bottom: .75rem; }
.credit-entry__usage--real { color: var(--olive); font-weight: 650; }
.credit-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: .1rem 1rem; margin: 0; font-size: .9375rem; line-height: 1.5; hyphens: manual; }
.credit-list dt { font-weight: 700; color: var(--brown); margin-top: .4rem; }
.credit-list dd { margin: 0; }
@media (min-width: 48em) {
  .credit-list { grid-template-columns: 8.5rem minmax(0, 1fr); }
  .credit-list dt { margin-top: 0; }
}
.credit-list dd a { overflow-wrap: anywhere; }
.h-section { margin-top: 2.5rem !important; }
.font-credits li { margin-bottom: .9rem; }

/* 404 */
.notfound { text-align: center; padding-block: clamp(3rem, 8vw, 6rem); }
.notfound .eyebrow { justify-content: center; }
.notfound .eyebrow::before { display: none; }
.notfound .page-lead { margin-inline: auto; }
.notfound__leaf { width: 6.5rem; height: auto; margin: 0 auto 1.5rem; color: var(--terra); }

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0s !important;
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  .gallery__link:hover img { transform: none; }
}

/* ---------- Druck ---------- */
@media print {
  .demo-bar, .site-header__actions, .nav-toggle, .lightbox, .section__leaf { display: none !important; }
  .site-header { position: static; }
  body { background: #fff; }
}
