/* VINS vegan — Layout und Komponenten. Handgeschrieben, kein Framework. */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 128px;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--creme);
  color: var(--salbei-tinte);
  font-family: var(--font-sans);
  font-size: var(--type-body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-weight: 400;
}

p {
  margin: 0 0 var(--space-2);
}

a {
  color: inherit;
}

/* Telefonnummern nie mitten in der Nummer umbrechen. */
a[href^="tel:"] {
  white-space: nowrap;
}

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

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

.ueberspringen {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 100;
  padding: var(--space-1) var(--space-2);
  background: var(--salbei-tinte);
  color: var(--creme);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transform: translateY(-200%);
}

.ueberspringen:focus {
  transform: none;
}

/* ------------------------------------------------------------- Grundgerüst */

.huelle {
  width: min(100% - 2 * var(--space-3), var(--breite));
  margin-inline: auto;
}

@media (max-width: 560px) {
  .huelle {
    width: calc(100% - 2 * var(--space-2));
  }
}

.band {
  padding-block: clamp(var(--space-3), 6vw, var(--space-4));
}

.band--creme {
  background: var(--creme);
  color: var(--salbei-tinte);
}

.band--salbei-tief {
  background: var(--salbei-tief);
  color: var(--creme);
}

.band--tinte {
  background: var(--salbei-tinte);
  color: var(--creme);
}

/* ------------------------------------------------------------------ Schrift */

.script {
  font-family: var(--font-script);
  font-weight: 400;
  line-height: 1;
}

.display {
  font-family: var(--font-script);
  font-size: var(--type-display);
  line-height: 1;
}

.oberzeile {
  font-size: var(--type-badge);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 var(--space-2);
}

/* ---------------------------------------------------------------- Abschnitt */

.abschnitt-titel {
  font-family: var(--font-script);
  font-size: var(--type-section);
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

/* „VINS" ist die Wortmarke und in der Script-Schrift kaum zu entziffern;
   deshalb im Sans gesetzt, Rest des Titels bleibt Script. */
.wortmarke {
  font-family: var(--font-sans);
  font-size: 0.56em;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.abschnitt-titel::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--linie);
}

/* Grundfarbe gilt für den hellen Grund; auf salbei-tief wird umgestellt,
   damit nur Paare aus SPEC 5.5 entstehen. */
.abschnitt-vorspann {
  max-width: 64ch;
  margin-top: calc(-1 * var(--space-2));
  margin-bottom: var(--space-3);
  font-size: var(--type-description);
  line-height: 26px;
  color: var(--salbei-tief);
}

.abschnitt-vorspann a {
  color: var(--salbei-tinte);
  font-weight: 600;
}

.band--salbei-tief .abschnitt-vorspann {
  color: var(--salbei-hauch);
}

.band--salbei-tief .abschnitt-vorspann a {
  color: var(--creme);
}

/* ------------------------------------------------------------------ Buttons */

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  min-height: 44px;
  padding: 10px var(--space-3);
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: var(--type-flavor);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}

.knopf--voll {
  background: var(--salbei-tief);
  color: var(--creme);
}

.knopf--voll:hover {
  background: var(--salbei-tinte);
}

.knopf--rand {
  background: transparent;
  color: var(--salbei-tinte);
  border-color: var(--linie);
}

.knopf--rand:hover {
  background: var(--sand);
  color: var(--salbei-tinte);
}

.knopf--hell {
  background: var(--creme);
  color: var(--salbei-tinte);
}

.knopf--hell:hover {
  background: var(--salbei-hauch);
}

/* -------------------------------------------------------------------- Kopf */

.kopf {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--creme);
  border-bottom: 1px solid var(--linie);
}

.kopf__innen {
  display: flex;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  padding-block: var(--space-1);
}

/* Schiebt Navigation und Anrufen-Knopf nach rechts. */
.kopf__logo {
  margin-right: auto;
  line-height: 0;
}

.kopf__logo img {
  width: auto;
  height: clamp(64px, 7vw, 92px);
}

.kopf__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1) var(--space-3);
}

.kopf__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--salbei-tief);
  font-size: var(--type-flavor);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.kopf__nav a:hover {
  color: var(--salbei-tinte);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Ruhiger als ein gefüllter Knopf, damit er dem großen Logo nicht
   die Schau stiehlt. Die Nummer steht da, nicht nur „Anrufen". */
.kopf__anruf {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-height: 44px;
  padding: 6px var(--space-2);
  border: 1px solid var(--linie);
  border-radius: var(--radius-full);
  color: var(--salbei-tinte);
  font-size: var(--type-flavor);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  transition: background-color 150ms ease;
}

.kopf__anruf:hover {
  background: var(--sand);
}

/* Handy: Logo und Anrufen in einer Zeile, Navigation darunter. */
@media (max-width: 720px) {
  .kopf__innen {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0 var(--space-2);
  }
  .kopf__logo {
    margin-right: 0;
  }
  .kopf__logo img {
    height: 60px;
  }
  .kopf__nav {
    order: 3;
    flex-basis: 100%;
    justify-content: center;
    gap: 0 var(--space-2);
    margin-top: -4px;
  }
  .kopf__anruf {
    padding-inline: var(--space-1);
  }
}

/* -------------------------------------------------------------------- Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(var(--space-4), 9vw, 120px)
    clamp(var(--space-4), 10vw, 140px);
}

/* Logo als blasses Wasserzeichen hinter dem Text. Rein dekorativ, es muss
   den Text nie überdecken, deshalb sehr geringe Deckkraft. */
.hero__wasserzeichen {
  position: absolute;
  top: 50%;
  right: clamp(-80px, -4vw, 0px);
  translate: 0 -50%;
  width: min(62vw, 620px);
  height: auto;
  opacity: 0.1;
  pointer-events: none;
  user-select: none;
}

.hero__innen {
  position: relative;
  z-index: 1;
}

.hero__titel {
  margin: 0 0 var(--space-2);
  font-family: var(--font-script);
  font-size: var(--type-display);
  font-weight: 400;
  line-height: 1;
  color: var(--salbei-tief);
}

.hero__text {
  max-width: 46ch;
  font-size: var(--type-body);
}

.hero__knoepfe {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.welle {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: -1px;
  color: var(--salbei-tief);
}

@media (max-width: 860px) {
  .hero {
    padding-block: clamp(var(--space-3), 8vw, var(--space-4))
      clamp(var(--space-4), 10vw, 100px);
  }
  .hero__wasserzeichen {
    width: min(115vw, 520px);
    right: -32%;
    opacity: 0.07;
  }
}

/* ---------------------------------------------------------------- Tageskarte */

.heute__kopf {
  margin-bottom: var(--space-3);
}

.heute__datum {
  font-size: var(--type-flavor);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--salbei-hauch);
}

.heute__innen {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: var(--space-4);
  align-items: start;
}

.heute__foto {
  margin: 0;
}

.heute__foto img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--linie);
}

/* Beispielbild, solange zur Tageskarte kein echtes Foto vorliegt. Sieht aus
   wie das spätere Foto, ist aber als Platzhalter ausgewiesen. */
.heute__foto--beispiel figcaption {
  margin-top: var(--space-1);
  font-size: var(--type-flavor);
  line-height: 22px;
  font-weight: 500;
  color: var(--salbei-hauch);
}

.heute__foto--beispiel .platzhalter {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 6px;
  border: 1px dashed var(--linie);
  border-radius: var(--radius-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--creme);
}

.gerichte {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gericht {
  padding-block: var(--space-2);
  border-bottom: 1px solid var(--linie);
}

.gericht:first-child {
  padding-top: 0;
}

.gericht__zeile {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
}

.gericht__name {
  font-size: var(--type-dish);
  line-height: 28px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--creme);
}

.gericht__preis {
  flex-shrink: 0;
  font-size: var(--type-dish);
  line-height: 28px;
  font-weight: 600;
  color: var(--salbei-hauch);
  font-variant-numeric: tabular-nums;
}

.gericht__beschreibung {
  margin: var(--space-1) 0 0;
  font-size: var(--type-description);
  line-height: 26px;
  font-weight: 300;
  font-style: italic;
  color: var(--salbei-hauch);
}

.heute__fuss {
  margin-top: var(--space-3);
  font-size: var(--type-description);
  color: var(--salbei-hauch);
}

.heute__fuss a {
  color: var(--creme);
  font-weight: 600;
}

.heute__vorrat {
  margin-top: var(--space-1);
  font-size: var(--type-flavor);
  line-height: 22px;
  font-weight: 300;
  font-style: italic;
  color: var(--salbei-hauch);
}

.heute__zu {
  font-size: var(--type-dish);
  line-height: 28px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--creme);
}

.heute__hinweis {
  margin-bottom: var(--space-2);
  padding: var(--space-2);
  border-left: 3px solid var(--linie);
  font-size: var(--type-description);
  color: var(--salbei-hauch);
}

/* Fallback (6.3) — ohne JS versteckt, per JS eingeblendet. */
.heute__fallback[hidden] {
  display: none;
}

.heute__fallback {
  max-width: 60ch;
}

.heute__fallback p {
  font-size: var(--type-body);
  color: var(--creme);
}

.heute__fallback .knopf {
  margin-top: var(--space-2);
}

@media (max-width: 860px) {
  .heute__innen {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
}

/* --------------------------------------------------------------- Speisekarte */

.karte {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  align-items: start;
}

.karte__spalte {
  display: grid;
  gap: var(--space-4);
}

.karte__titel {
  margin-bottom: var(--space-2);
  padding-bottom: var(--space-1);
  border-bottom: 1px solid var(--linie);
  font-family: var(--font-script);
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.1;
  color: var(--creme);
}

.speise {
  padding-block: var(--space-2);
}

.speise + .speise {
  border-top: 1px solid var(--linie);
}

.speise__name {
  font-size: var(--type-dish);
  line-height: 28px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--creme);
}

.speise__hinweis {
  display: block;
  margin-top: 2px;
  font-size: var(--type-flavor);
  line-height: 22px;
  font-weight: 500;
  color: var(--salbei-hauch);
}

.speise__beschreibung {
  margin: var(--space-1) 0 0;
  font-size: var(--type-description);
  line-height: 26px;
  font-weight: 300;
  font-style: italic;
  color: var(--salbei-hauch);
}

.karte__liste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.karte__liste li {
  padding: 6px var(--space-2);
  border: 1px solid var(--linie);
  border-radius: var(--radius-full);
  font-size: var(--type-flavor);
  line-height: 22px;
  font-weight: 500;
  color: var(--creme);
}

.karte__text p {
  color: var(--salbei-hauch);
  font-size: var(--type-description);
  line-height: 26px;
}

.karte__text .script {
  display: block;
  margin-bottom: var(--space-1);
  font-size: clamp(28px, 3.5vw, 36px);
  color: var(--creme);
}

@media (max-width: 860px) {
  .karte {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
  .karte__spalte {
    gap: var(--space-3);
  }
}

/* ------------------------------------------------------------- Impressionen

   Karussell ohne JavaScript und ohne Bibliothek: eine horizontale
   Scroll-Spur mit Snap-Punkten. Wischen am Handy, Scrollrad oder Pfeiltasten
   am Rechner. */

.karussell {
  display: flex;
  gap: var(--space-2);
  margin: 0;
  padding: 0 max(var(--space-3), calc((100% - var(--breite)) / 2));
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-left: max(var(--space-3), calc((100% - var(--breite)) / 2));
  scrollbar-width: thin;
  scrollbar-color: var(--linie) transparent;
}

.karussell:focus-visible {
  outline: 2px solid var(--salbei-tinte);
  outline-offset: 4px;
}

.karussell__bild {
  flex: 0 0 auto;
  width: min(32%, 380px);
  scroll-snap-align: start;
}

.karussell__bild img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

/* Platzhalterkacheln sind flächig gesetzt, ein Rahmen trennt sie vom Grund. */
.karussell__bild--platzhalter img {
  border: 1px solid var(--linie);
}

.karussell__hinweis {
  margin-top: var(--space-2);
  font-size: var(--type-flavor);
  line-height: 22px;
  font-weight: 500;
  color: var(--salbei-tief);
}

.karussell__hinweis .platzhalter {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 6px;
  border: 1px dashed var(--linie);
  border-radius: var(--radius-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--salbei-tinte);
}

@media (max-width: 980px) {
  .karussell__bild {
    width: 46%;
  }
}

@media (max-width: 560px) {
  .karussell {
    gap: var(--space-1);
    padding-inline: var(--space-2);
    scroll-padding-left: var(--space-2);
  }
  .karussell__bild {
    width: 86%;
  }
}

/* ------------------------------------------------------------------ Kontakt */

.kontakt {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.kontakt__titel {
  margin-bottom: var(--space-2);
  font-size: var(--type-flavor);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--salbei-tief);
}

.kontakt address {
  font-style: normal;
}

.zeiten {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-1) var(--space-2);
}

.zeiten dt {
  font-weight: 500;
}

.zeiten dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.zeiten dd[data-geschlossen] {
  color: var(--salbei-tief);
}

.ausnahmen {
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid var(--linie);
  list-style: none;
  padding-left: 0;
}

.ausnahmen li {
  font-size: var(--type-flavor);
  line-height: 22px;
  font-weight: 500;
}

.ausnahmen__titel {
  margin-bottom: var(--space-1);
  font-size: var(--type-badge);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--salbei-tief);
}

.kontakt__liste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-1);
}

.kontakt__liste a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--salbei-tief);
  font-weight: 500;
}

.bewertungen {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--linie);
  list-style: none;
  padding-left: 0;
}

.bewertungen li {
  padding: var(--space-1) var(--space-2);
  background: var(--sand);
  border-radius: var(--radius-full);
  color: var(--salbei-tinte);
  font-size: var(--type-flavor);
  font-weight: 600;
}

.gruss {
  margin-top: var(--space-4);
  text-align: center;
  font-family: var(--font-script);
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  color: var(--salbei-tief);
}

@media (max-width: 860px) {
  .kontakt {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
}

/* ----------------------------------------------------------------- Fußzeile */

.fuss__innen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.fuss img {
  width: auto;
  height: 72px;
}

.fuss__nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.fuss__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--creme);
  font-size: var(--type-flavor);
  font-weight: 500;
}

.fuss__zeile {
  margin-top: var(--space-2);
  font-size: var(--type-flavor);
  color: var(--creme);
}

/* --------------------------------------------------------------- Textseiten */

.text-seite {
  max-width: 68ch;
}

.text-seite h1 {
  margin-bottom: var(--space-3);
  font-family: var(--font-script);
  font-size: var(--type-section);
  line-height: 1.1;
  color: var(--salbei-tief);
}

.text-seite h2 {
  margin-top: var(--space-3);
  margin-bottom: var(--space-1);
  font-size: var(--type-dish);
  line-height: 28px;
  font-weight: 600;
  text-transform: uppercase;
}

.text-seite .platzhalter {
  padding: 2px 6px;
  border: 1px dashed var(--linie);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

/* --------------------------------------------------------- Sichtbarkeit

   Ganz am Ende, damit diese Regeln die Komponentenregeln überschreiben
   (gleiche Spezifität, spätere Regel gewinnt). */

.nur-schmal {
  display: none;
}

@media (max-width: 720px) {
  .nur-breit {
    display: none;
  }
  .nur-schmal {
    display: inline-flex;
  }
}

/* ------------------------------------------------ Vorschau-Leiste (nur Dev)

   Wird ausschließlich vom Dev-Server eingebunden und ist im Build nicht
   enthalten. */

.dev-vorschau {
  position: fixed;
  left: var(--space-2);
  bottom: var(--space-2);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: var(--radius-full);
  background: var(--salbei-tinte);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  font-family: var(--font-sans);
}

.dev-vorschau__titel {
  padding-inline: 6px;
  color: var(--creme);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}

.dev-vorschau button {
  min-height: 32px;
  padding: 4px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--creme);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.dev-vorschau button[aria-pressed="true"] {
  background: var(--creme);
  color: var(--salbei-tinte);
}
