/* ------------------------------------------------------------------
   Wirtshaus Holzwinkel — Demo-Website Gastro 1
   Ruhig-modern: Creme trägt die Seite, Espresso nur für zwei Bänder,
   Rostrot als einziger Akzent. Überschrift steht vor dem Bild.
   Nach jeder Änderung hier CSS_STAND in build.py hochzählen.
   ------------------------------------------------------------------ */

@font-face {
  font-family: "Bitter";
  src: url("assets/fonts/bitter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bitter";
  src: url("assets/fonts/bitter-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --creme: #F7F3EC;
  --creme-tief: #EFE9DE;
  --espresso: #221A15;
  --rost: #A4553A;
  --rost-dunkel: #8A4530;
  --rost-hell: #D99873;
  --text: #2A231D;
  --text-leise: #6B6055;
  --linie: #DDD5C7;

  --serif: "Bitter", Georgia, "Iowan Old Style", "Times New Roman", serif;
  --grotesk: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --innen: 1120px;
  --schmal: 720px;
  --luft: 7rem;
  --rund: 10px;
}

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

html { scroll-behavior: smooth; }

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

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

a { color: var(--rost-dunkel); }
a:hover { color: var(--rost); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
  color: var(--text);
}
h1 { font-size: clamp(2.25rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.35rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

.innen { width: min(100% - 2.5rem, var(--innen)); margin-inline: auto; }
.innen.schmal { width: min(100% - 2.5rem, var(--schmal)); }

.springen {
  position: absolute; left: -9999px; top: 0;
  background: var(--espresso); color: var(--creme);
  padding: .75rem 1.25rem; z-index: 200;
}
.springen:focus { left: 0; }

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

/* --------------------------------------------------------- Demo-Band */

.demo-band {
  background: var(--rost);
  color: #FFF6EF;
  font-size: .875rem;
  text-align: center;
  padding: .55rem 1.25rem;
}
.demo-band p { margin: 0; }
.demo-band a { color: #FFF6EF; text-decoration: underline; }

/* ---------------------------------------------------------- Kopfzeile */

.kopf { background: var(--creme); border-bottom: 1px solid var(--linie); }
.kopf-innen {
  width: min(100% - 2.5rem, var(--innen));
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: 1.15rem 0;
}
.logo { display: block; width: 178px; flex: 0 0 auto; }
.logo svg { width: 100%; height: auto; display: block; }

.menue-schalter { position: absolute; opacity: 0; pointer-events: none; }
.menue-knopf {
  display: none;
  font-family: var(--grotesk); font-size: .8rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid var(--linie); border-radius: 4px;
  padding: .5rem .85rem; cursor: pointer; color: var(--text);
}

.kopf nav ul {
  list-style: none; display: flex; gap: 1.75rem;
  margin: 0; padding: 0;
}
.kopf nav a {
  font-size: .8rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; text-decoration: none; color: var(--text);
  padding-bottom: 3px; border-bottom: 2px solid transparent;
}
.kopf nav a:hover { color: var(--rost); }
.kopf nav a[aria-current="page"] { border-bottom-color: var(--rost); color: var(--rost-dunkel); }

/* ------------------------------------------------- Öffnungszeiten-Band */

.zeiten-band {
  background: var(--espresso);
  color: #F3EBE1;
  padding: 2.25rem 0;
}
.zeiten-innen {
  width: min(100% - 2.5rem, var(--innen));
  margin-inline: auto;
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 2rem 3rem; align-items: center;
}
.zeiten-band .kicker { color: var(--rost-hell); margin-bottom: .35rem; }
.zeiten-tabelle { display: grid; grid-template-columns: auto auto; gap: .2rem 1.5rem; }
.zeiten-tabelle span { font-size: 1rem; }
.zeiten-tabelle .tag { color: #C9BDB0; }
.zeiten-band .ruhetag { color: var(--rost-hell); }
.zeiten-band p { margin: 0; }

.zeiten-streifen {
  background: var(--espresso);
  color: #E9DFD3;
  font-size: .9rem;
}
.zeiten-streifen-innen {
  width: min(100% - 2.5rem, var(--innen));
  margin-inline: auto;
  display: flex; flex-wrap: wrap; gap: .4rem 2rem;
  padding: .7rem 0; align-items: baseline;
}
.zeiten-streifen p { margin: 0; }
.zeiten-streifen a { color: #FFF6EF; }
.zeiten-streifen .ruhetag { color: var(--rost-hell); }

/* -------------------------------------------------------------- Kicker */

.kicker {
  font-family: var(--grotesk);
  font-size: .75rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--rost-dunkel);
  margin: 0 0 1rem;
}

/* -------------------------------------------------------------- Knöpfe */

.knopfreihe { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }

.knopf {
  display: inline-block;
  font-family: var(--grotesk);
  font-size: .875rem; font-weight: 600; letter-spacing: .06em;
  text-decoration: none; border-radius: 4px;
  padding: .85rem 1.5rem; border: 1px solid transparent;
  cursor: pointer;
}
.knopf-rost { background: var(--rost); color: #FFF6EF; }
.knopf-rost:hover { background: var(--rost-dunkel); color: #FFF6EF; }
.knopf-linie { border-color: var(--rost); color: var(--rost-dunkel); background: transparent; }
.knopf-linie:hover { background: rgba(164, 85, 58, .08); color: var(--rost-dunkel); }
.knopf-hell { background: #F3EBE1; color: var(--espresso); }
.knopf-hell:hover { background: #FFF; color: var(--espresso); }

/* ----------------------------------------------------- Titel und Bänder */

.titel { padding: var(--luft) 0 2.5rem; }
.titel .innen { max-width: 900px; }
.titel p.gross { font-size: clamp(1.1rem, 2.1vw, 1.35rem); color: var(--text-leise); max-width: 62ch; }

.bildband { width: min(100% - 2.5rem, 1360px); margin: 0 auto; }
.bildband img { border-radius: var(--rund); width: 100%; }

.band { padding: var(--luft) 0; }
.band-eng { padding: 4rem 0; }
.band-flaeche { background: var(--creme-tief); }
.band + .band { border-top: 1px solid var(--linie); }
.band-flaeche + .band, .band + .band-flaeche { border-top: 0; }

.gross { font-size: clamp(1.1rem, 2.1vw, 1.3rem); }
.leise { color: var(--text-leise); }
.klein { font-size: .875rem; color: var(--text-leise); }

/* ------------------------------------------------------- Bild-Text-Paare */

.paar {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3.5rem; align-items: center;
}
.paar + .paar { margin-top: 5.5rem; }
.paar img { border-radius: var(--rund); }
.paar-gedreht .paar-bild { order: 2; }

/* ------------------------------------------------------------ Gerichte */

.gerichtreihe {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem; margin-top: 2.5rem;
}
.gerichtreihe figure { margin: 0; }
.gerichtreihe img { border-radius: var(--rund); }
.gerichtreihe figcaption {
  font-family: var(--serif); font-size: 1rem;
  margin-top: .8rem; color: var(--text);
}

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

.karte-abschnitt { max-width: var(--schmal); margin: 0 auto; }
.karte-abschnitt + .karte-abschnitt { margin-top: 4.5rem; padding-top: 4.5rem; border-top: 1px solid var(--linie); }

.karte-kopf {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap; margin-bottom: .5rem;
}
.karte-kopf h2 { margin: 0; }
.karte-kopf .spanne {
  font-family: var(--grotesk); font-size: .8rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--rost-dunkel); margin: 0; white-space: nowrap;
}
.karte-notiz { color: var(--text-leise); margin-bottom: 2rem; }

.gerichte { list-style: none; margin: 2rem 0 0; padding: 0; }
.gerichte li + li { margin-top: 1.9rem; }
.gerichte h3 { font-size: 1.15rem; margin: 0 0 .25rem; }
.gerichte p { margin: 0; color: var(--text-leise); }

/* Die Bilder in der Karte bleiben bewusst klein: die Karte soll lesbar
   sein, nicht bebildert. Groß stehen die Gerichte auf der Startseite. */
.karte-bild { margin: 2.5rem 0 0; max-width: 380px; }
.karte-bild img { border-radius: var(--rund); }

.sprungmarken { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.sprungmarken a {
  display: inline-block; text-decoration: none;
  font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid var(--linie); border-radius: 4px;
  padding: .5rem .9rem; color: var(--text);
  background: var(--creme);
}
.sprungmarken a:hover { border-color: var(--rost); color: var(--rost-dunkel); }

.pdf-kasten {
  border: 1px solid var(--linie); border-radius: var(--rund);
  padding: 2rem; background: var(--creme);
  display: flex; flex-wrap: wrap; gap: 1.25rem 2rem;
  align-items: center; justify-content: space-between;
}
.pdf-kasten p { margin: 0; max-width: 46ch; }

/* --------------------------------------------------------------- Listen */

.liste { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.liste li { padding-left: 1.5rem; position: relative; margin-bottom: .65rem; }
.liste li::before {
  content: ""; position: absolute; left: 0; top: .72em;
  width: 8px; height: 1px; background: var(--rost);
}

.spalten2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem 3.5rem; }
.spalten3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }

.schritt { }
.schritt .nummer {
  font-family: var(--serif); font-size: 2rem; color: var(--rost);
  display: block; line-height: 1; margin-bottom: .6rem;
}

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

.kontaktschluss { background: var(--espresso); color: #F3EBE1; padding: var(--luft) 0; }
.kontaktschluss h2 { color: #FFF6EF; }
.kontaktschluss p { color: #D9CEC1; }
.kontaktschluss .tel {
  font-family: var(--serif); font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: #FFF6EF; text-decoration: none; display: inline-block; margin-top: .5rem;
}
.kontaktschluss .tel:hover { color: var(--rost-hell); }
.kontaktschluss img { border-radius: var(--rund); }
.kontaktschluss .paar { align-items: center; }

/* ------------------------------------------------------------ Formular */

.formular { margin-top: 2rem; max-width: 620px; }
.feld { margin-bottom: 1.35rem; }
.feld label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .35rem; }
.feld input, .feld textarea {
  width: 100%; font: inherit; font-size: 1rem;
  padding: .8rem .9rem; border: 1px solid var(--linie);
  border-radius: 4px; background: #FFF; color: var(--text);
}
.feld input:focus, .feld textarea:focus { border-color: var(--rost); outline: none; box-shadow: 0 0 0 3px rgba(164,85,58,.15); }
.freiwillig { font-weight: 400; color: var(--text-leise); }
.honigtopf { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------- Demo-Einblendung */

.hinweis-schalter { position: absolute; opacity: 0; pointer-events: none; }
.demo-schicht {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(34, 26, 21, .93);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem; overflow-y: auto;
}
.hinweis-schalter:checked ~ .demo-schicht { display: none; }
.demo-kasten {
  background: var(--creme); border-radius: var(--rund);
  padding: clamp(1.75rem, 4vw, 3rem); max-width: 620px;
}
.demo-marke {
  font-size: .75rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--rost-dunkel); margin-bottom: .8rem;
}
.demo-kasten h2 { margin-bottom: 1rem; }
.demo-knoepfe { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.75rem; }

.demo-kasten-text {
  border: 1px solid var(--linie); border-left: 3px solid var(--rost);
  border-radius: 4px; padding: 1.5rem; margin-bottom: 2.5rem;
  background: var(--creme-tief); font-size: .95rem;
}

.platzhalter {
  border: 2px dashed var(--rost); border-radius: 4px;
  padding: 1.5rem; background: #FFF;
}

/* ----------------------------------------------------------- Rechtstext */

.rechtstext { font-size: .97rem; }
.rechtstext h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.rechtstext h2 { font-size: 1.35rem; margin-top: 2.5rem; }
.rechtstext h3 { font-size: 1.1rem; margin-top: 1.75rem; }
.rechtstext h4 { font-size: 1rem; margin-top: 1.5rem; }
.rechtstext ul { padding-left: 1.25rem; }
.quellenhinweis { font-size: .85rem; color: var(--text-leise); margin-top: 2.5rem; }

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

.fuss { background: var(--espresso); color: #C9BDB0; padding: 4.5rem 0 0; font-size: .95rem; }
.fuss a { color: #F3EBE1; }
.fuss a:hover { color: var(--rost-hell); }
.fuss-innen {
  width: min(100% - 2.5rem, var(--innen)); margin-inline: auto;
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 3rem;
}
.fuss-logo { width: 178px; margin-bottom: 1.25rem; }
.fuss-titel {
  font-size: .75rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: #FFF6EF; margin-bottom: .9rem;
}
.fuss-liste { list-style: none; margin: 0; padding: 0; }
.fuss-liste li { margin-bottom: .4rem; }
.fuss-zeiten { display: grid; grid-template-columns: auto auto; gap: .2rem 1.25rem; }
.fuss-zeiten .tag { color: #9C8F82; }

.fuss-hinweis {
  width: min(100% - 2.5rem, var(--innen)); margin: 3.5rem auto 0;
  border-top: 1px solid rgba(243, 235, 225, .16);
  padding: 2rem 0 3rem; font-size: .875rem; color: #A2958A;
}
.fuss-links { margin-top: .9rem; }
.fuss-sichtvoll { margin-top: .9rem; }

/* -------------------------------------------------------------- Schmal */

@media (max-width: 980px) {
  :root { --luft: 4.5rem; }
  .paar, .spalten2, .spalten3 { grid-template-columns: 1fr; gap: 2rem; }
  .paar + .paar { margin-top: 3.5rem; }
  .paar-gedreht .paar-bild { order: 0; }
  .gerichtreihe { grid-template-columns: 1fr 1fr; }
  .zeiten-innen { grid-template-columns: 1fr; gap: 1.5rem; }
  .fuss-innen { grid-template-columns: 1fr; gap: 2.5rem; }

  .menue-knopf { display: inline-block; }
  .kopf-innen { flex-wrap: wrap; }
  .kopf nav { display: none; width: 100%; }
  .menue-schalter:checked ~ nav { display: block; }
  .kopf nav ul { flex-direction: column; gap: 0; padding: .5rem 0 1rem; }
  .kopf nav a { display: block; padding: .7rem 0; border-bottom: 1px solid var(--linie); }
  .kopf nav a[aria-current="page"] { border-bottom-color: var(--linie); }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .gerichtreihe { grid-template-columns: 1fr; }
  .pdf-kasten { padding: 1.5rem; }
  .karte-kopf { gap: .25rem; }
}

@media print {
  .demo-schicht, .kopf, .fuss, .zeiten-streifen { display: none; }
}
