/* Musterseite Gasthaus: Vorlage für Kundenseiten.
   Stil «Alpen-Tafel»: Tannengrün, Stein, Ocker. Bewusst anders als gastrosichtbar.ch.
   Farben zentral in :root anpassen. Schriften lokal in beispiel/fonts/ (SIL OFL 1.1). */

@font-face {
  font-family: "Zilla Slab";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/zilla-slab-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Zilla Slab";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/zilla-slab-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/nunito-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/nunito-sans-latin-700-normal.woff2") format("woff2");
}

:root {
  --stein: #f3f1ec;        /* Hintergrund */
  --karte: #ffffff;        /* Karten */
  --linie: #d9d4c8;
  --text: #1f2421;
  --grau: #4a524d;         /* Nebentext */
  --tanne: #1d3b30;        /* Kopf, Kontakt, Überschriften */
  --tanne-hell: #2c5646;
  --ocker: #b8862b;        /* Schmuck: Linien, Knöpfe */
  --ocker-dunkel: #7d5510; /* Ocker als Text */
  --hinweis: #ffe08a;

  --titel: "Zilla Slab", Rockwell, Georgia, serif;
  --text-schrift: "Nunito Sans", "Segoe UI", Helvetica, Arial, sans-serif;

  --breite: 62rem;
  --rand: clamp(1.25rem, 5vw, 2.5rem);
  --radius: 14px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--stein);
  color: var(--text);
  font-family: var(--text-schrift);
  font-size: 1.1875rem;
  line-height: 1.6;
}

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

h1, h2, h3 {
  font-family: var(--titel);
  font-weight: 700;
  line-height: 1.1;
  color: var(--tanne);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.75rem, 11vw, 5rem); letter-spacing: -0.01em; }
h2 {
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
h2::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 5px;
  margin-top: 0.4em;
  background: var(--ocker);
  border-radius: 3px;
}
h3 { font-size: 1.45rem; font-weight: 600; margin-top: 1.6em; }

p { margin: 0 0 1em; }
a { color: var(--tanne-hell); text-underline-offset: 0.18em; }
a:hover { color: var(--tanne); }
:focus-visible { outline: 3px solid var(--ocker-dunkel); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 1rem; top: -5rem; z-index: 30;
  background: var(--text); color: #fff; padding: 0.75rem 1rem;
}
.skip:focus { top: 1rem; color: #fff; }

.rahmen { max-width: var(--breite); margin: 0 auto; padding-left: var(--rand); padding-right: var(--rand); }

/* Hinweis Beispielseite */
.hinweis {
  margin: 0;
  padding: 0.55rem var(--rand);
  background: var(--hinweis);
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}
.hinweis a { color: var(--text); display: inline-block; padding: 0.35rem 0; min-height: 44px; }
.hinweis:target { outline: 4px solid var(--tanne); outline-offset: -4px; }

/* Kopf: dunkles Band, bleibt oben stehen */
.kopf { background: var(--tanne); color: #fff; }
/* Ab Tablet bleibt der Kopf oben stehen; auf dem Handy nicht, er wäre zu hoch */
@media (min-width: 44rem) {
  .kopf { position: sticky; top: 0; z-index: 10; }
  html section[id] { scroll-margin-top: 4rem; }
}
.kopf-innen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 1.5rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}
.marke {
  font-family: var(--titel);
  font-weight: 700;
  font-size: 1.35rem;
  color: #fff;
  text-decoration: none;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}
.marke:hover { color: var(--hinweis); }
.kopf ul { display: flex; flex-wrap: wrap; gap: 0 1.1rem; list-style: none; margin: 0; padding: 0; }
.kopf nav a {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-bottom: 3px solid transparent;
}
.kopf nav a:hover { border-bottom-color: var(--ocker); color: #fff; }
.kopf :focus-visible { outline-color: var(--hinweis); }

/* Knöpfe: kantig, Grossbuchstaben */
.knoepfe { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.knopf {
  flex: 1 1 11rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.7rem 1.4rem;
  border: 2px solid currentColor;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.knopf-voll { background: var(--ocker); border-color: var(--ocker); color: var(--text); }
.knopf-voll:hover { background: #d19c3c; border-color: #d19c3c; color: var(--text); }

/* Startbild: Text liegt auf dem Bild */
.start {
  display: grid;
  min-height: min(80vh, 44rem);
  background: var(--tanne);
  overflow: hidden;
}
.start picture, .start-text, .start::after { grid-area: 1 / 1; }
.start picture { display: block; }
.start-bild { width: 100%; height: 100%; object-fit: cover; }
.start::after {
  content: "";
  background: linear-gradient(180deg, rgb(10 25 20 / 0.1) 0%, rgb(10 25 20 / 0.6) 45%, rgb(10 25 20 / 0.92) 100%);
}
.start-text {
  position: relative;
  z-index: 1;
  align-self: end;
  width: 100%;
  padding-top: 6rem;
  padding-bottom: clamp(2rem, 6vw, 3.5rem);
  color: #fff;
}
.start-text h1 { color: #fff; margin-bottom: 0.3em; }
.start-satz { font-size: clamp(1.2rem, 3.5vw, 1.45rem); max-width: 36rem; }
.start-ort {
  margin: 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  color: var(--hinweis);
}
.start .knopf:not(.knopf-voll) { color: #fff; }
.start .knopf:not(.knopf-voll):hover { background: rgb(255 255 255 / 0.14); }
.start :focus-visible { outline-color: var(--hinweis); }

/* Abschnitte */
.block { padding-top: clamp(3rem, 8vw, 5rem); padding-bottom: clamp(3rem, 8vw, 5rem); }
section[id] { scroll-margin-top: 0; }
.block-farbig { background: #e4e9e2; }
.notiz { color: var(--grau); font-size: 1.05rem; margin-top: 1rem; }

/* Öffnungszeiten als Karte */
.zeiten {
  width: 100%;
  max-width: 34rem;
  border-collapse: collapse;
  background: var(--karte);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.1);
}
.zeiten th, .zeiten td { padding: 0.7rem 1.1rem; border-bottom: 1px solid var(--linie); }
.zeiten tr:last-child th, .zeiten tr:last-child td { border-bottom: 0; }
.zeiten th { text-align: left; font-weight: 700; }
.zeiten td { text-align: right; font-variant-numeric: tabular-nums; }
.zeiten .ruhetag th, .zeiten .ruhetag td { background: #f7efdd; color: var(--ocker-dunkel); font-weight: 700; }

/* Wochenmenü als Tageskarten */
.woche {
  display: inline-block;
  font-weight: 700;
  background: var(--tanne);
  color: #fff;
  padding: 0.25rem 0.85rem;
  border-radius: 4px;
  font-size: 1rem;
}
/* Handy: untereinander. Ab Tablet: 3 oben (Mo-Mi), Do und Fr zentriert darunter */
.menue {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0 0;
}
.menue div { flex: 1 1 100%; }
@media (min-width: 44rem) {
  .menue div { flex: 0 1 calc((100% - 2rem) / 3); }
}
.menue div {
  background: var(--karte);
  border-radius: var(--radius);
  border-top: 6px solid var(--ocker);
  padding: 1.1rem 1.25rem 1.25rem;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.1);
}
.menue dt {
  font-family: var(--titel);
  font-weight: 700;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ocker-dunkel);
  margin-bottom: 0.35rem;
}
.menue dd { margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.menue .preis { font-weight: 700; color: var(--tanne); font-variant-numeric: tabular-nums; }

/* Speisekarte: Punktlinie zwischen Gericht und Preis */
.karte { list-style: none; margin: 0 0 1rem; padding: 0; max-width: 44rem; }
.karte li { display: flex; align-items: baseline; gap: 0.5rem; padding: 0.45rem 0; }
.karte .gericht { flex: 0 1 auto; }
.karte li::after {
  content: "";
  order: 1;
  flex: 1 1 1.5rem;
  border-bottom: 2px dotted #b9b2a3;
  transform: translateY(-0.3em);
}
.karte .preis { order: 2; white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Über uns */
.ueber { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 44rem) {
  .ueber { grid-template-columns: 1fr 1fr; }
}
.ueber-bild {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgb(0 0 0 / 0.14);
}

/* Kontakt */
.block-dunkel { background: var(--tanne); color: #fff; }
.block-dunkel h2 { color: #fff; }
.block-dunkel a { color: #fff; }
.block-dunkel :focus-visible { outline-color: var(--hinweis); }
.block-dunkel address { font-style: normal; }
.kontakt { display: grid; gap: 1.25rem; margin: 0 0 1.5rem; }
@media (min-width: 44rem) {
  .kontakt { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
}
.kontakt div { border-left: 4px solid var(--ocker); padding-left: 1rem; }
.kontakt dt {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  color: var(--hinweis);
}
.kontakt dd { margin: 0.2rem 0 0; overflow-wrap: anywhere; }
.kontakt a { display: inline-block; padding: 0.4rem 0; min-height: 44px; }
.block-dunkel .knopf:not(.knopf-voll) { color: #fff; }
.block-dunkel .knopf:not(.knopf-voll):hover { background: rgb(255 255 255 / 0.14); }

/* Fuss */
.fuss { background: #13251d; color: #dfe6e1; padding: 2rem 0 2.5rem; font-size: 1rem; }
.fuss details { border-bottom: 1px solid rgb(255 255 255 / 0.18); }
.fuss summary { cursor: pointer; font-weight: 700; min-height: 48px; display: flex; align-items: center; }
.fuss details p { margin: 0.6rem 0; }
.fuss a { color: #fff; }
.fuss :focus-visible { outline-color: var(--hinweis); }
.fuss-zeile { margin-top: 1.5rem; color: #c9d2cc; }
.fuss-zeile a { display: inline-block; min-height: 44px; }

/* Knöpfe als <button> */
button.knopf { font-family: inherit; cursor: pointer; background: transparent; }
button.knopf-voll { background: var(--ocker); }

/* Reservation (Popup) */
.reservation {
  width: min(34rem, calc(100% - 1.5rem));
  max-height: calc(100dvh - 1.5rem);
  overflow: auto;
  margin: auto;
  padding: 1.25rem clamp(1.1rem, 4vw, 1.75rem) 1.5rem;
  border: 0;
  border-top: 6px solid var(--ocker);
  border-radius: var(--radius);
  background: var(--stein);
  color: var(--text);
  box-shadow: 0 20px 60px rgb(0 0 0 / 0.35);
}
.reservation::backdrop { background: rgb(10 25 20 / 0.6); }
.reservation-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.reservation h2 { font-size: 1.7rem; margin-bottom: 0.4em; }
.schliessen {
  flex: none;
  width: 48px;
  height: 48px;
  border: 2px solid var(--tanne);
  border-radius: 50%;
  background: transparent;
  color: var(--tanne);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.schliessen:hover { background: var(--tanne); color: #fff; }
.reservation-info { color: var(--grau); font-size: 1rem; }
.formular .feld { margin: 0 0 0.9rem; display: flex; flex-direction: column; gap: 0.25rem; flex: 1 1 10rem; min-width: 0; }
.feld-reihe { display: flex; flex-wrap: wrap; gap: 0 1rem; }
.formular label { font-weight: 700; font-size: 1rem; }
.formular input, .formular textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.6rem 0.75rem;
  border: 2px solid #9aa39d;
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 1.1rem;
}
.formular textarea { resize: vertical; }
.formular input:focus, .formular textarea:focus { border-color: var(--tanne); outline: 3px solid var(--ocker); outline-offset: 1px; }
.formular ::placeholder { color: #69706b; opacity: 1; }
/* Beispieltext verschwindet, sobald das Feld angeklickt wird */
.formular textarea:focus::placeholder { color: transparent; }
.formular .knopf { width: 100%; margin-top: 0.4rem; }
.reservation-fuss { margin: 0.8rem 0 0; font-size: 0.95rem; color: var(--grau); text-align: center; }

/* Nur Musterseite: Bestätigung nach dem Absenden */
.danke { display: none; }
.danke:target {
  display: block;
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  width: min(34rem, calc(100% - 1.5rem));
  margin: 0;
  padding: 1rem 1.25rem;
  background: var(--tanne);
  color: #fff;
  border-left: 6px solid var(--ocker);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.3);
  z-index: 40;
}

/* Bildergalerie: Raster, grosse Ansicht als popover (ohne JavaScript) */
.galerie {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 44rem) {
  .galerie { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}
.galerie-knopf {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 14px rgb(0 0 0 / 0.12);
}
.galerie-knopf img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.galerie-knopf:hover img { transform: scale(1.04); }
.galerie-knopf:focus-visible { outline: 3px solid var(--ocker); outline-offset: 3px; }
.bild-gross {
  width: min(70rem, calc(100% - 1.5rem));
  max-height: calc(100dvh - 1.5rem);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: #000;
  overflow: hidden;
  box-shadow: 0 20px 60px rgb(0 0 0 / 0.5);
}
.bild-gross::backdrop { background: rgb(10 25 20 / 0.85); }
.bild-gross img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100dvh - 1.5rem);
  object-fit: contain;
}
.bild-gross .schliessen {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 1;
  background: rgb(255 255 255 / 0.92);
  border-color: #fff;
}
.bild-gross .schliessen:hover { background: var(--tanne); color: #fff; }

/* Bildnachweis-Seite */
.nachweis { padding-left: 1.2rem; }
.nachweis li { margin: 0.6rem 0; }
