/* ==========================================================================
   Wia Z`haus in Schönau — Stylesheet
   Aufbau:  1 Tokens · 2 Basis · 3 Layout · 4 Header · 5 Hero · 6 Bänder
            7 Buttons · 8 Bilder · 9 Gastgeber · 10 Galerie · 11 Formular
            12 Footer · 13 Responsive
   ========================================================================== */

/* 1 · Tokens ------------------------------------------------------------- */
:root {
  --gelb:        #dddb00;
  --gelb-tief:   #c6c400;
  --grau:        #dfdfdf;
  --grau-hell:   #f2f2f2;
  --tinte:       #1b1a16;
  --tinte-weich: #3d3b33;
  --weiss:       #ffffff;

  --wrap: 1240px;
  --pad: 24px;
  /* Abstand vom Containerrand zum Viewportrand – für randlose Bilder */
  --edge: calc((100vw - min(100vw, var(--wrap))) / 2 + var(--pad));

  --schatten:      0 6px 16px rgba(0, 0, 0, .22);
  --schatten-soft: 0 4px 14px rgba(0, 0, 0, .10);
  --radius: 4px;

  --band-y: clamp(56px, 6.5vw, 100px);
}

/* 2 · Basis -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  overflow-x: clip;
  background: var(--weiss);
  color: var(--tinte);
  font-family: "Lato", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: clamp(1rem, .955rem + .22vw, 1.125rem);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3 {
  margin: 0 0 .5em;
  font-weight: 300;
  line-height: 1.24;
  letter-spacing: .035em;
  text-transform: uppercase;
  text-wrap: balance;
}

h2 { font-size: clamp(1.55rem, 1.1rem + 1.5vw, 2.375rem); }
h3 { font-size: clamp(1.25rem, 1.05rem + .7vw, 1.6rem); }

p { margin: 0 0 1.15em; max-width: 46ch; }
p:last-child { margin-bottom: 0; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 12px 18px;
  background: var(--tinte);
  color: var(--weiss);
  font-weight: 700;
}
.skip-link:focus { left: 8px; top: 8px; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden;
}

/* 3 · Layout ------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}

.split__text > *:last-child { margin-bottom: 0; }

.trenner {
  height: 1px;
  border: 0;
  margin: clamp(38px, 4vw, 58px) 0;
  background: rgba(255, 255, 255, .75);
}

/* Trenner, der nur die Textspalte breit ist – wie im Layout */
.trenner--links { max-width: calc(50% - 32px); }

.band__text-narrow p { max-width: 42ch; }

/* 4 · Header ------------------------------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--weiss);
  transition: box-shadow .25s ease;
}
.topbar.is-stuck { box-shadow: 0 2px 14px rgba(0, 0, 0, .10); }

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 108px;
  padding-block: 14px;
}

.marke img {
  width: clamp(178px, 17vw, 236px);
  height: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 46px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__list a {
  display: inline-block;
  padding: 6px 2px;
  font-size: 1rem;
  letter-spacing: .02em;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}
.nav__list a:hover { border-bottom-color: var(--gelb); }
.nav__list a[aria-current="page"] { border-bottom-color: var(--tinte); }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.nav-toggle .balken,
.nav-toggle .balken::before,
.nav-toggle .balken::after {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--tinte);
  transition: transform .25s ease, background-color .2s ease;
}
.nav-toggle .balken { margin-inline: auto; position: relative; }
.nav-toggle .balken::before,
.nav-toggle .balken::after { content: ""; position: absolute; left: 0; }
.nav-toggle .balken::before { top: -8px; }
.nav-toggle .balken::after  { top: 8px; }

.nav-toggle[aria-expanded="true"] .balken { background: transparent; }
.nav-toggle[aria-expanded="true"] .balken::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .balken::after  { transform: translateY(-8px) rotate(-45deg); }

/* 5 · Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(420px, 42vw, 620px);
  padding-block: clamp(44px, 6vw, 78px);
  overflow: clip;
  isolation: isolate;
}

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

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 253, 240, .78) 0%, rgba(120, 92, 44, .42) 34%, rgba(60, 44, 18, .12) 62%, rgba(0, 0, 0, 0) 100%),
    linear-gradient(0deg, rgba(35, 26, 10, .35) 0%, rgba(0, 0, 0, 0) 55%);
}

.hero__inhalt { color: var(--weiss); max-width: 44rem; }

.hero h1 {
  font-weight: 700;
  font-size: clamp(1.7rem, 1.05rem + 2.1vw, 2.7rem);
  letter-spacing: .015em;
  line-height: 1.2;
  margin-bottom: .45em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
}

.hero p {
  max-width: 38rem;
  margin-bottom: 1.6em;
  font-size: clamp(.95rem, .9rem + .25vw, 1.0625rem);
  text-shadow: 0 1px 10px rgba(0, 0, 0, .4);
}

.hero--klein { min-height: clamp(340px, 33vw, 470px); }
.hero--klein h1 { margin-bottom: .3em; }

/* 6 · Bänder ------------------------------------------------------------- */
.band {
  position: relative;
  padding-block: var(--band-y);
  overflow: clip;
  isolation: isolate;
}

.band__wasserzeichen {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  user-select: none;
  width: min(760px, 78vw);
  height: auto;
}

.band--gelb { background: var(--gelb); }
.band--gelb .band__wasserzeichen {
  opacity: .3;
  left: 24%;
  top: 50%;
  transform: translateY(-50%);
}

.band--grau { background: var(--grau); }
.band--grau .band__wasserzeichen {
  opacity: .55;
  left: -9%;
  top: 50%;
  transform: translateY(-50%);
  width: min(560px, 62vw);
}

.band--weiss { background: var(--weiss); }

.band--schmal { padding-block: clamp(44px, 4.5vw, 72px); }

/* 7 · Buttons ------------------------------------------------------------ */
.btn {
  display: inline-block;
  margin-top: 6px;
  padding: 14px 30px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0, 0, 0, .26); }
.btn:active { transform: translateY(0); }

.btn--hell   { background: var(--weiss); color: var(--gelb-tief); }
.btn--hell:hover { background: #fffdf0; }

.btn--gelb   { background: var(--gelb); color: var(--weiss); }
.btn--gelb:hover { background: var(--gelb-tief); }

/* 8 · Bilder ------------------------------------------------------------- */
.rahmen {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 2px;
}
.rahmen img { width: 100%; height: auto; }

.bild-stapel { position: relative; display: grid; }
.bild-stapel__oben { position: relative; z-index: 2; width: 92%; }
.bild-stapel__unten {
  position: relative;
  z-index: 1;
  margin-top: -7%;
  margin-left: 6%;
}
.bild-stapel__unten img { aspect-ratio: 16 / 10; object-fit: cover; }

.bleed-rechts { margin-right: calc(var(--edge) * -1); }

/* Karte */
.karte {
  display: block;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .95);
  border-radius: 10px;
  background: var(--weiss);
  box-shadow: var(--schatten-soft);
  overflow: hidden;
}
.karte img { width: 100%; height: auto; border-radius: 5px; }
.karte--gross img { aspect-ratio: 21 / 9; object-fit: cover; }

/* 9 · Gastgeber-Band ----------------------------------------------------- */
.gastgeber {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(430px, 40vw, 560px);
  padding-block: clamp(48px, 5vw, 76px);
  overflow: clip;
  isolation: isolate;
}
.gastgeber__bild {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% center;
}
.gastgeber::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0) 30%, rgba(28, 20, 8, .5) 52%, rgba(28, 20, 8, .58) 100%);
}
.gastgeber__inhalt {
  margin-left: auto;
  width: min(52%, 620px);
  color: var(--weiss);
}
.gastgeber__inhalt h2 { text-shadow: 0 2px 14px rgba(0, 0, 0, .4); }
.gastgeber__inhalt p {
  max-width: 44ch;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .45);
}

/* 10 · Galerie ----------------------------------------------------------- */
.galerie {
  --sichtbar: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 1.2vw, 18px);
  margin-top: clamp(28px, 3vw, 46px);
}
.galerie img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
}

.galerie-huelle { position: relative; }
.galerie-huelle:not(.ist-offen) .galerie {
  max-height: clamp(300px, 34vw, 500px);
  overflow: hidden;
}
.galerie-huelle:not(.ist-offen)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 46%;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .96) 78%, #fff 100%);
}

.galerie-mehr {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -34px auto 0;
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  background: none;
  font: inherit;
  font-size: .95rem;
  font-weight: 700;
  color: var(--tinte-weich);
  cursor: pointer;
}
.galerie-mehr svg { transition: transform .3s ease; }
.ist-offen .galerie-mehr { margin-top: 14px; }
.ist-offen .galerie-mehr svg { transform: rotate(180deg); }

/* 11 · Formular ---------------------------------------------------------- */
.kontaktkarte {
  padding: clamp(22px, 2.6vw, 36px);
  border: 1px solid rgba(255, 255, 255, .95);
  border-radius: 10px;
  background: rgba(255, 255, 255, .3);
}

.kontaktliste { margin: 0 0 26px; padding: 0; list-style: none; }
.kontaktliste li {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.kontaktliste a { text-decoration: none; }
.kontaktliste a:hover { text-decoration: underline; }

.ikon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--tinte);
  border-radius: 50%;
}
.ikon svg { width: 19px; height: 19px; }
.ikon--gelb { border: 0; background: var(--gelb); color: var(--weiss); }

.adresse { margin: 0; font-style: normal; line-height: 1.75; }

.formular {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 1.6vw, 22px);
  margin-top: clamp(26px, 3vw, 40px);
}
.formular .voll { grid-column: 1 / -1; }

.formular input,
.formular textarea {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, .95);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .12);
  font: inherit;
  font-size: 1rem;
  color: var(--tinte);
  transition: background-color .2s ease, border-color .2s ease;
}
.formular textarea { min-height: 190px; resize: vertical; }

.formular input::placeholder,
.formular textarea::placeholder { color: rgba(255, 255, 255, .95); opacity: 1; }

.formular input:focus,
.formular textarea:focus {
  background: rgba(255, 255, 255, .32);
  border-color: var(--weiss);
  outline: none;
}
.formular input:focus-visible,
.formular textarea:focus-visible { outline: 2px solid var(--tinte); outline-offset: 2px; }

.formular .fehler { border-color: #a3231b; background: rgba(255, 255, 255, .45); }

.zustimmung {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .8125rem;
  line-height: 1.5;
}
.zustimmung input { width: 16px; height: 16px; margin-top: 3px; flex: 0 0 auto; accent-color: var(--tinte); }
.zustimmung p { margin: 0; max-width: 68ch; }
.zustimmung a { color: inherit; }

.formular-status {
  grid-column: 1 / -1;
  margin: 0;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--weiss);
  font-weight: 700;
  font-size: .95rem;
}
.formular-status[hidden] { display: none; }

/* 12 · Footer ------------------------------------------------------------ */
.site-footer {
  padding-block: clamp(38px, 4vw, 62px);
  background: var(--weiss);
}
.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .6fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.site-footer img.footer-logo { width: clamp(190px, 18vw, 250px);height:auto; }
.site-footer .kontaktliste { margin-bottom: 0; font-weight: 700; font-size: .95rem; }

.footer-nav ul { margin: 0; padding: 0; list-style: none; }
.footer-nav li { margin-bottom: 14px; }
.footer-nav a { font-weight: 700; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }

/* 13 · Responsive -------------------------------------------------------- */
@media (max-width: 1000px) {
  .bleed-rechts { margin-right: 0; }
  .gastgeber__inhalt { width: min(62%, 560px); }
}

@media (max-width: 860px) {
  :root { --pad: 20px; }

  .nav-toggle { display: block; }

  .nav {
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    display: none;
    padding: 8px var(--pad) 22px;
    background: var(--weiss);
    box-shadow: 0 14px 22px rgba(0, 0, 0, .12);
  }
  .nav.ist-offen { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li + li { border-top: 1px solid #ececec; }
  .nav__list a { padding: 15px 2px; border-bottom: 0; font-size: 1.05rem; }
  .nav__list a[aria-current="page"] { color: var(--gelb-tief); }

  .topbar__inner { position: relative; min-height: 86px; }

  .split { grid-template-columns: 1fr; gap: 30px; }
  .split--umgekehrt .split__text { order: 2; }
  .trenner--links { max-width: none; }

  .bild-stapel__oben { width: 100%; }
  .bild-stapel__unten { margin-top: 14px; margin-left: 0; }

  .gastgeber { min-height: 0; align-items: stretch; }
  .gastgeber::before {
    background: linear-gradient(180deg, rgba(20, 14, 4, .18) 0%, rgba(20, 14, 4, .72) 46%, rgba(20, 14, 4, .84) 100%);
  }
  .gastgeber__bild { object-position: 38% 22%; }
  .gastgeber__inhalt { width: 100%; margin-left: 0; padding-top: clamp(140px, 34vw, 230px); }
  .gastgeber__inhalt p { max-width: none; }

  .galerie { grid-template-columns: repeat(2, 1fr); }

  .formular { grid-template-columns: 1fr; }

  .site-footer__inner {
    grid-template-columns: 1fr;
    justify-items: start;
    text-align: left;
    gap: 30px;
  }

  .band--grau .band__wasserzeichen { left: -22%; opacity: .45; }
  .band--gelb .band__wasserzeichen { left: 8%; opacity: .26; }
}

@media (max-width: 520px) {
  .galerie { grid-template-columns: 1fr 1fr; }
  .btn { width: 100%; text-align: center; }
  .kontaktkarte { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .btn:hover { transform: none; }
}

@media print {
  .topbar, .nav-toggle, .btn, .galerie-mehr { display: none !important; }
  body { color: #000; }
}

/* 14 · Speisekarte ------------------------------------------------------- */
.karte-kopf { margin-bottom: clamp(30px, 3.5vw, 52px); }

.karte-sprung {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(34px, 4vw, 58px);
}
.karte-sprung a {
  padding: 9px 20px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.karte-sprung a:hover { background: var(--weiss); color: var(--gelb-tief); }

.karte-gruppe { max-width: 760px; margin-bottom: clamp(40px, 4.5vw, 68px); scroll-margin-top: 130px; }
.karte-gruppe:last-child { margin-bottom: 0; }

.karte-gruppe__titel {
  padding-bottom: 12px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, .75);
}
.karte-gruppe__text { margin-bottom: 26px; font-weight: 700; }

.gerichte { margin: 0; padding: 0; list-style: none; }
.gericht + .gericht { margin-top: 22px; }

.gericht__kopf {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.gericht__name { font-weight: 700; font-size: 1.0625rem; }
.gericht__linie {
  flex: 1 1 auto;
  min-width: 20px;
  border-bottom: 1px dotted rgba(27, 26, 22, .4);
  transform: translateY(-4px);
}
.gericht__preis { font-weight: 700; font-size: 1.0625rem; white-space: nowrap; }

.gericht__badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--weiss);
  color: var(--gelb-tief);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  vertical-align: 2px;
}

.gericht__text {
  margin: 4px 0 0;
  max-width: 60ch;
  font-weight: 400;
  font-size: .95rem;
  line-height: 1.55;
}

.oeffnungszeiten__titel {
  margin-bottom: 10px;
  font-size: 1.15rem;
  letter-spacing: .03em;
}
.oeffnungszeiten { margin: 0; font-weight: 700; line-height: 1.9; }
.kontaktkarte .oeffnungszeiten { margin-top: 20px; }

/* Fließtext in den Bändern ist im Layout halbfett */
.band p, .kontaktkarte p, .adresse { font-weight: 700; }
.hero p, .gastgeber p, .zustimmung p, .gericht__text, .a-hinweis { font-weight: 400; }

/* Bildstapel: Varianten für die Seite „Über uns“ */
.bild-stapel__oben--voll { width: 100%; }
.bild-stapel__unten--portrait { margin-left: 8%; width: 72%; }
.bild-stapel__unten--portrait img { aspect-ratio: auto; }

@media (max-width: 860px) {
  .bild-stapel__unten--portrait { margin-left: 0; width: 100%; }
  .karte-gruppe { scroll-margin-top: 100px; }
}
