/* =========================================================
   EssEck – Stylesheet
   Farben aus dem Logo, Aufbau angelehnt an die Referenz
   ========================================================= */

/* ---------- Schriften (selbst gehostet, kein Google-Abruf) ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/Fraunces-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-var.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}

/* ---------- Grundwerte ---------- */
:root {
  --gruen-dunkel: #16180A;
  --gruen-oliv:   #42492A;
  --gruen-logo:   #2F3315;
  --creme:        #EDE5D8;
  --creme-warm:   #E4D9C7;
  --creme-hell:   #F5F0E7;
  --weiss:        #FFFFFF;

  --text:        var(--gruen-dunkel);
  --text-leise:  #5E634A;
  --linie:       #CFC4AE;

  --titel: "Fraunces", Georgia, "Times New Roman", serif;
  --text-schrift: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;

  --breite: 1200px;
  --schmal: 62ch;
  --kopf-hoehe: 132px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--kopf-hoehe) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--creme-hell);
  color: var(--text);
  font-family: var(--text-schrift);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  font-family: var(--titel);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.005em;
  margin: 0;
  font-variation-settings: "opsz" 120;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration-color: var(--linie); text-underline-offset: 3px; }

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

/* ---------- Bausteine ---------- */
.inhalt { width: min(100% - 2.5rem, var(--breite)); margin-inline: auto; }
.mitte  { text-align: center; }
.schmal { max-width: var(--schmal); margin-inline: auto; }

.abschnitt { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.abschnitt--warm  { background: var(--creme-warm); }
.abschnitt--creme { background: var(--creme); }
/* Dunkle Abschnitte – Aktuelles, Galerie, Abschlussblöcke.
   Grundton ist das Olivgrün des Logos, nicht das fast schwarze Dunkelgrün. */
.abschnitt--dunkel {
  background: var(--gruen-oliv);
  color: var(--creme);
}
.abschnitt--dunkel .marke { color: #C6CBA9; }

/* Kleine gesperrte Beschriftung über Überschriften */
.marke {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-leise);
  margin-bottom: 1.25rem;
}

.titel-gross { font-size: clamp(2rem, 5vw, 3.25rem); }
.titel-mittel { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }

.vorspann {
  font-size: 1.125rem;
  color: var(--text-leise);
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}
.ueber__text .vorspann { margin-bottom: 1.75rem; }

/* ---------- Schaltflächen ---------- */
.knopf {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.85em 1.7em;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid var(--gruen-oliv);
  background: var(--gruen-oliv);
  color: var(--creme-hell);
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.knopf:hover { background: var(--gruen-dunkel); border-color: var(--gruen-dunkel); }

.knopf--offen { background: transparent; color: var(--gruen-oliv); }
.knopf--offen:hover { background: var(--gruen-oliv); color: var(--creme-hell); }

.knopf--hell { background: transparent; border-color: rgba(237,229,216,.5); color: var(--creme); }
.knopf--hell:hover { background: var(--creme); color: var(--gruen-dunkel); border-color: var(--creme); }

.knopf .pfeil { font-size: 1.05em; line-height: 1; }

.knopf--telefon { display: none; }
.knopf--telefon svg { width: 18px; height: 18px; }

/* ---------- Kopfbereich ---------- */
.kopf {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245,240,231,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linie);
}
.kopf__innen {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0;
}
.kopf__logo { justify-self: center; grid-column: 2; grid-row: 1; width: 68px; }
.kopf__logo svg { width: 100%; height: auto; }

.nav { grid-column: 1; grid-row: 1; }
.nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: clamp(1rem, 2.2vw, 2rem);
}
.nav a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gruen-oliv);
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--gruen-oliv); }

.kopf__aktion { grid-column: 3; grid-row: 1; justify-self: end; display: flex; gap: .6rem; }

.menue-knopf { display: none; }

/* ---------- Einstiegsbereich ---------- */
.einstieg { position: relative; min-height: min(82vh, 760px); display: grid; }
.einstieg > picture { position: absolute; inset: 0; display: block; }
.einstieg__bild {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.einstieg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 68% 60% at 50% 46%, rgba(22,24,10,.60) 0%, rgba(22,24,10,0) 100%),
    linear-gradient(to bottom, rgba(22,24,10,.48) 0%, rgba(22,24,10,.30) 45%, rgba(22,24,10,.72) 100%);
}
.einstieg__inhalt {
  position: relative; z-index: 2;
  align-self: center;
  text-align: center;
  color: var(--creme);
  padding: clamp(3rem, 8vw, 6rem) 1.25rem;
}
.einstieg__titel { margin: 0; }
.einstieg__logo { width: min(330px, 62vw); margin: 0 auto 1.6rem; }

/* Nur für Screenreader, am Bildschirm unsichtbar */
.nur-vorlesen {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.einstieg__claim {
  font-size: clamp(.85rem, 2.2vw, 1rem);
  letter-spacing: .26em;
  text-transform: uppercase;
  margin: 0 0 2.25rem;
  opacity: .94;
}
.einstieg__knoepfe { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }


/* ---------- Speisekarte ---------- */
.sk {
  margin-top: 3.25rem;
  max-width: 940px;
  margin-inline: auto;
}
@media (min-width: 820px) {
  .sk { columns: 2; column-gap: clamp(2.5rem, 5vw, 4.5rem); }
}
.sk__gruppe { break-inside: avoid; margin-bottom: 2.75rem; }
.sk__gruppe:last-child { margin-bottom: 0; }
.sk__gruppentitel {
  font-size: 1.45rem;
  padding-bottom: .7rem;
  margin-bottom: 1.6rem;
  border-bottom: 1px solid var(--linie);
}
.sk__liste { list-style: none; margin: 0; padding: 0; }
.sk__gericht + .sk__gericht { margin-top: 1.5rem; }

.sk__zeile {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  margin: 0 0 .25rem;
}
.sk__name { font-weight: 600; font-size: 1.02rem; }
.sk__punkte {
  flex: 1 1 auto;
  min-width: 1.5rem;
  border-bottom: 1px dotted var(--linie);
  transform: translateY(-.28em);
}
.sk__preis { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }

.sk__besch {
  margin: 0;
  font-size: .95rem;
  line-height: 1.55;
  color: var(--text-leise);
  max-width: 48ch;
}

.sk__fuss {
  margin-top: 3.25rem;
  font-size: 1.02rem;
}
.sk__hinweis {
  margin-top: .9rem;
  font-size: .85rem;
  color: var(--text-leise);
}

/* ---------- Karten ---------- */
.karten {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  text-align: left;
}
.karte {
  background: var(--creme-hell);
  color: var(--gruen-dunkel);   /* eigene Textfarbe, damit Karten auch auf dunklem Grund lesbar bleiben */
  border: 1px solid var(--linie);
  border-radius: 6px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.karte__marke {
  font-size: .7rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gruen-oliv);
}
.karte h3 { font-size: 1.3rem; }
.karte p { font-size: .98rem; color: var(--text-leise); }

/* ---------- Über uns ---------- */
.ueber {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.ueber__bild img { border-radius: 6px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.ueber__bild picture { display: block; }
.ueber__text p { font-size: 1.06rem; }
.signatur {
  font-family: var(--titel);
  font-size: 1.3rem;
  margin-top: 1.5rem;
  color: var(--gruen-oliv);
}

/* ---------- Feiern ---------- */
.feiern {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.feiern__bild img { border-radius: 6px; aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.feiern__bild picture { display: block; }

/* ---------- Galerie ---------- */
.galerie__titel {
  font-size: clamp(1.6rem, 6vw, 3.6rem);
  letter-spacing: .18em;
  text-transform: uppercase;
  text-align: center;
  font-weight: 300;
  margin-bottom: 2.5rem;
}
.streifen {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 1fr);
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: .5rem;
  scroll-snap-type: x mandatory;
}
.streifen picture { display: block; scroll-snap-align: start; }

/* ---------- Galerie als Karussell ---------- */
.galerie {
  position: relative;
  --luecke: 1rem;
  --sichtbar: 3;
  --spur-teiler: 3.4;   /* 3 scharfe Bilder + je ein angeschnittenes am Rand */
}
@media (max-width: 900px) {
  .galerie { --sichtbar: 2; --spur-teiler: 2.4; }
}
@media (max-width: 600px) {
  .galerie { --sichtbar: 1; --spur-teiler: 1.35; --luecke: .75rem; }
}

.galerie__fenster { overflow: hidden; }

.galerie__spur {
  display: flex;
  gap: var(--luecke);
  list-style: none;
  margin: 0;
  padding: 0;
  transition: transform .55s cubic-bezier(.33, 1, .68, 1);
  will-change: transform;
}

.galerie__bild {
  flex: 0 0 calc((100% - (var(--spur-teiler) - 1) * var(--luecke)) / var(--spur-teiler));
}
.galerie__bild picture { display: block; }
.galerie__bild img {
  aspect-ratio: 4/5;
  object-fit: cover;
  width: 100%;
  border-radius: 4px;
  filter: blur(7px) brightness(.68);
  opacity: .6;
  transform: scale(.97);
  transition: filter .55s ease, opacity .55s ease, transform .55s ease;
}
.galerie__bild.ist-scharf img {
  filter: none;
  opacity: 1;
  transform: none;
}

/* Pfeile */
.galerie__pfeil {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 2.9rem;
  height: 2.9rem;
  border: 0;
  border-radius: 50%;
  background: var(--creme);
  color: var(--gruen-dunkel);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 2px 14px rgba(0, 0, 0, .35);
  transition: opacity .25s ease, background .25s ease;
}
.galerie__pfeil svg { width: 1.3rem; height: 1.3rem; }
.galerie__pfeil--zurueck { left: -.6rem; }
.galerie__pfeil--vor     { right: -.6rem; }
.galerie__pfeil:hover    { background: #FFFFFF; }
.galerie__pfeil:disabled { opacity: .25; cursor: default; }
.galerie__pfeil:focus-visible { outline: 2px solid var(--creme); outline-offset: 3px; }

@media (max-width: 600px) {
  .galerie__pfeil { width: 2.4rem; height: 2.4rem; }
  .galerie__pfeil--zurueck { left: -.25rem; }
  .galerie__pfeil--vor     { right: -.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .galerie__spur, .galerie__bild img { transition: none; }
}

.streifen img {
  aspect-ratio: 4/5; object-fit: cover; width: 100%;
  border-radius: 4px;
}

/* ---------- Kontakt ---------- */
.kontakt {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
  text-align: left;
}
.kontakt dl { margin: 0; }
.kontakt dt {
  font-size: .72rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--text-leise); margin-bottom: .35rem;
}
.kontakt dd { margin: 0 0 1.4rem; font-size: 1.05rem; }
.kontakt dd:last-child { margin-bottom: 0; }

/* ---------- Fußbereich ---------- */
.fuss {
  background: var(--gruen-oliv);
  color: var(--creme);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  text-align: center;
}
.fuss__logo { width: 88px; margin: 0 auto 1.75rem; }
.fuss__adresse { font-size: 1rem; letter-spacing: .04em; margin-bottom: 1.5rem; }
.fuss__nav ul {
  list-style: none; margin: 0 0 2rem; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem;
}
.fuss__nav a {
  font-size: .85rem; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; color: var(--creme); opacity: .85;
}
.fuss__nav a:hover { opacity: 1; text-decoration: underline; }
.fuss__klein { font-size: .8rem; opacity: .72; letter-spacing: .06em; }

/* ---------- Platzhalter-Hinweis (vor dem Livegang entfernen) ---------- */
.hinweis {
  background: #6B4E1E; color: #FFF6E2;
  text-align: center; padding: .55rem 1rem;
  font-size: .82rem; letter-spacing: .06em;
}

/* ---------- Handy ---------- */
@media (max-width: 860px) {
  :root { --kopf-hoehe: 108px; }

  .kopf__innen { grid-template-columns: auto 1fr auto; padding: .7rem 0; }
  .kopf__logo { grid-column: 2; grid-row: 1; justify-self: center; width: 56px; }
  .menue-knopf {
    grid-row: 1;
    display: inline-flex; align-items: center; justify-content: center;
    grid-column: 1;
    width: 44px; height: 44px;
    background: none; border: 1px solid var(--linie); border-radius: 6px;
    color: var(--gruen-oliv); cursor: pointer;
  }
  .kopf__aktion { grid-column: 3; grid-row: 1; }
  .kopf__aktion .knopf { padding: .6em 1em; font-size: .82rem; }
  .kopf__aktion .nur-gross { display: none; }
  .knopf--telefon { display: inline-flex; padding: 0; width: 44px; height: 44px; justify-content: center; }

  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    display: none;
    padding-bottom: .75rem;
  }
  .nav[data-offen="true"] { display: block; }
  .nav ul { flex-direction: column; gap: .25rem; }
  .nav a { display: block; padding: .7rem 0; border-bottom: 1px solid var(--linie); }

  .ueber, .feiern { grid-template-columns: 1fr; }

  .einstieg__claim { letter-spacing: .14em; }
  .ueber__bild { order: -1; }
}

@media (max-width: 480px) {
  .einstieg__knoepfe { flex-direction: column; align-items: stretch; }
  .einstieg__knoepfe .knopf { justify-content: center; }
}


/* ---------- Unterseiten: kurzer Einstieg ---------- */
.einstieg--kurz { min-height: min(56vh, 460px); }
.einstieg__marke {
  font-size: .75rem; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; margin: 0 0 1rem; opacity: .9;
}
.einstieg__ueberschrift {
  font-family: var(--titel); font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.12; margin: 0;
  font-variation-settings: "opsz" 130;
}

/* ---------- Anlässe ---------- */
.anlaesse {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.25rem);
  margin-top: 3rem;
}
.anlass picture { display: block; margin-bottom: 1.1rem; }
.anlass img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; }
.anlass h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.anlass p { font-size: .97rem; color: var(--text-leise); margin: 0; }

/* ---------- Fakten ---------- */
.fakten {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
  margin: 3rem 0 0;
}
.fakt {
  background: var(--creme);
  border: 1px solid var(--linie);
  border-radius: 6px;
  padding: 1.5rem;
}
.fakt dt {
  font-size: .72rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gruen-oliv); margin-bottom: .5rem;
}
.fakt dd { margin: 0; font-size: .98rem; }
.luecke {
  display: inline-block;
  background: #F3E6CB;
  border-left: 3px solid #B08A3C;
  padding: .45rem .7rem;
  font-size: .9rem;
  color: #6B4E1E;
}

/* ---------- Anfrage ---------- */
.signatur--hell { color: var(--creme); opacity: .9; }
.anfrage__wege {
  display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap;
  margin-top: 2.25rem;
}
.anfrage__hinweis {
  margin-top: 1.25rem; font-size: .88rem; opacity: .72;
}

@media (max-width: 860px) {
  .anfrage__wege { flex-direction: column; align-items: stretch; }
  .anfrage__wege .knopf { justify-content: center; }
}


/* ---------- Rechtstexte ---------- */
.rechtstext { max-width: 72ch; margin-inline: auto; }
.rechtstext h2 {
  font-size: 1.5rem;
  margin-top: 2.75rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--linie);
}
.rechtstext h2:first-of-type { margin-top: 2rem; }
.rechtstext h3 { font-size: 1.15rem; margin-top: 1.75rem; margin-bottom: .4rem; }
.rechtstext p, .rechtstext li { font-size: 1rem; }
.rechtstext ul { padding-left: 1.2rem; }
.rechtstext li { margin-bottom: .4rem; }
.rechtstext dl { margin: 0 0 1.25rem; }
.rechtstext dt {
  font-size: .72rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--text-leise); margin-top: 1rem;
}
.rechtstext dd { margin: .15rem 0 0; }
.rechtstext .luecke { margin-top: .2rem; }

.seitenkopf { padding: clamp(2.5rem, 6vw, 4.5rem) 0 0; }
.seitenkopf .marke { margin-bottom: .9rem; }

/* ---------- Druck ---------- */
@media print {
  .kopf, .einstieg__knoepfe, .hinweis { display: none; }
  body { background: #fff; color: #000; }
}
