/* ---------------------------------------------------------------------------
   Wirtsbuch - Landingpage
   Papier, Tinte, Wein. Die Palette stammt aus dem Favicon und ist mit der App
   identisch (app/src/ui.tsx im Tafelrunde-Repo). Wer sie hier aendert, muss
   sie dort mitaendern - sonst sehen Seite und Produkt verschieden aus.

   Zwei Regeln aus dem Entwurf der App, die hier genauso gelten:
     1. Flaechen tragen RAHMEN, keinen Schatten. Schatten nur, was schwebt.
     2. Farbe bedeutet Zustand. Wein ist der Weg zum Kontakt, sonst nichts.
--------------------------------------------------------------------------- */

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  /* Variabler Schnitt: 700 und 800 liegen in derselben Datei. */
  font-weight: 600 800;
  font-display: swap;
  src: url('/schriften/bricolage-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url('/schriften/bricolage-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;

  --papier: #faf8f4;
  --karte: #ffffff;
  --linie: #e6e1d6;
  --linie2: #dcd6c9;
  --tinte: #20272e;
  --tinte2: #5c6670;
  --wein: #8a2d52;
  --wein-flaeche: #fdf3f7;

  /* Zustandsfarben des Tischplans - dieselben Werte wie in der App. */
  --frei: #157a47;
  --frei-flaeche: #e3f3ea;
  --res: #9a5b00;
  --res-flaeche: #f9eed2;
  --besetzt: #b23a24;
  --besetzt-flaeche: #fae3dc;

  --auszeichnung: 'Bricolage Grotesque', system-ui, sans-serif;
  --lauf: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --spalte: 64rem;
  --radius: 14px;
}

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

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

body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font-family: var(--lauf);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* Sichtbarer Fokus. Die Zielgruppe bedient das teils mit einer Tastatur am
   Tresenrechner - ein unsichtbarer Fokus ist dort eine Sackgasse. */
:focus-visible {
  outline: 3px solid var(--tinte);
  outline-offset: 2px;
  border-radius: 4px;
}

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

/* --- Bausteine ---------------------------------------------------------- */

.spalte {
  width: 100%;
  max-width: var(--spalte);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Die Doppellinie der App: 2 px Tinte, 3 px Luft, 1 px Linie. Sie trennt die
   Abschnitte - deshalb braucht hier nichts eine Karte mit Schatten zu sein. */
.regel {
  height: 2px;
  background: var(--tinte);
  margin: 0;
  border: 0;
}
.regel::after {
  content: '';
  display: block;
  height: 1px;
  margin-top: 3px;
  background: var(--linie);
}

h1,
h2,
h3 {
  font-family: var(--auszeichnung);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 6.5vw, 3.4rem);
}
h2 {
  font-size: clamp(1.7rem, 4.4vw, 2.5rem);
}
h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

p {
  margin: 0 0 1rem;
  max-width: 38rem;
}

a {
  color: var(--wein);
}

.tnum {
  font-variant-numeric: tabular-nums;
}

.leise {
  color: var(--tinte2);
}

section {
  padding: 3.75rem 0;
}
@media (min-width: 48rem) {
  section {
    padding: 5.5rem 0;
  }
}

.abschnitt-kopf {
  margin-bottom: 2.25rem;
}
.abschnitt-kopf p {
  margin: 0.85rem 0 0;
  color: var(--tinte2);
  font-size: 1.05rem;
}

/* --- Knoepfe ------------------------------------------------------------ */

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 54px;
  padding: 0 1.4rem;
  border-radius: var(--radius);
  font-family: var(--auszeichnung);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.knopf--wein {
  background: var(--wein);
  color: #fff;
  /* Der einzige Schatten auf der Seite: der Kontaktweg soll ueber dem Papier
     liegen, so wie der Aktionsknopf in der App. */
  box-shadow: 0 4px 14px rgba(138, 45, 82, 0.22);
}
.knopf--wein:hover {
  background: #742544;
}

.knopf--linie {
  background: var(--karte);
  color: var(--tinte);
  border-color: var(--linie2);
}
.knopf--linie:hover {
  border-color: var(--tinte);
}

.knopf svg {
  flex: none;
}

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

.kopf {
  border-bottom: 1px solid var(--linie);
  background: var(--papier);
}
.kopf .spalte {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

/* min-height 44px auf allem, was am Handy angetippt wird. Gemessen waren
   Wortmarke und Telefonnummer vorher 37 und 27 Pixel hoch - die Nummer im Kopf
   ist am Handy der schnellste Weg zum Kontakt und darf nicht danebengehen. */
.wortmarke {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  text-decoration: none;
  color: var(--tinte);
}
.wortmarke span {
  font-family: var(--auszeichnung);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.035em;
}
.wortmarke svg {
  border-radius: 8px;
}

.kopf-tel {
  display: inline-flex;
  align-items: center;
  /* inline-flex macht aus "Anrufen: " und der Nummer zwei Flex-Elemente, und
     das Leerzeichen dazwischen faellt dabei weg - deshalb gap statt Leerzeichen. */
  gap: 0.35rem;
  min-height: 44px;
  padding: 0 0.25rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--tinte);
  white-space: nowrap;
}
.kopf-tel:hover {
  color: var(--wein);
}
@media (max-width: 30rem) {
  .kopf-tel span {
    display: none;
  }
}

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

.hero {
  padding-top: 3rem;
}
.hero-raster {
  display: grid;
  gap: 2.75rem;
}
@media (min-width: 56rem) {
  .hero-raster {
    grid-template-columns: 1fr 20.5rem;
    gap: 3.5rem;
    align-items: start;
  }
}

.hero p.lead {
  font-size: 1.2rem;
  color: var(--tinte2);
  margin-top: 1.15rem;
}

.hero-wege {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.9rem;
}

.hero-zusatz {
  margin-top: 1.15rem;
  font-size: 0.97rem;
  color: var(--tinte2);
  max-width: 30rem;
}

/* --- Tischplan im Hero (echtes HTML, kein Bild) ------------------------- */

.plan {
  border: 1px solid var(--linie);
  border-radius: 18px;
  background: var(--karte);
  padding: 1.1rem;
}

.plan-kopf {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--linie);
}
.plan-kopf strong {
  font-family: var(--auszeichnung);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.plan-kopf span {
  font-size: 0.82rem;
  color: var(--tinte2);
}

.plan-zaehler {
  display: flex;
  gap: 1.1rem;
  padding: 0.8rem 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--linie);
  margin-bottom: 0.9rem;
}
.plan-zaehler b {
  font-family: var(--auszeichnung);
  font-size: 1.05rem;
}
.plan-zaehler .z-frei b {
  color: var(--frei);
}
.plan-zaehler .z-res b {
  color: var(--res);
}
.plan-zaehler .z-besetzt b {
  color: var(--besetzt);
}

.plan-raster {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}

.tisch {
  border: 1px solid var(--linie);
  border-left-width: 5px;
  border-radius: 12px;
  padding: 0.55rem 0.6rem 0.65rem;
  min-height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--karte);
}
.tisch b {
  font-family: var(--auszeichnung);
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1;
}
.tisch .zeile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.3rem;
}
.tisch .marke {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.tisch .wer {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
}
.tisch .wann {
  font-size: 0.75rem;
  color: var(--tinte2);
}

.tisch--frei {
  border-left-color: var(--linie);
}
.tisch--frei .marke {
  color: var(--frei);
}
.tisch--res {
  border-left-color: var(--res);
  border-left-style: dashed;
}
.tisch--res .marke {
  color: var(--res);
}
.tisch--besetzt {
  border-left-color: var(--besetzt);
}
.tisch--besetzt .marke {
  color: var(--besetzt);
}

.plan-fuss {
  margin: 0.9rem 0 0;
  font-size: 0.8rem;
  color: var(--tinte2);
  max-width: none;
}

/* --- Problem ------------------------------------------------------------ */

.problem-liste {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--linie);
}
.problem-liste li {
  border-bottom: 1px solid var(--linie);
  padding: 1.35rem 0;
}
@media (min-width: 48rem) {
  .problem-liste li {
    display: grid;
    grid-template-columns: 17rem 1fr;
    gap: 2rem;
    align-items: baseline;
  }
}
.problem-liste h3 {
  margin-bottom: 0.35rem;
}
@media (min-width: 48rem) {
  .problem-liste h3 {
    margin-bottom: 0;
  }
}
.problem-liste p {
  margin: 0;
  color: var(--tinte2);
}

/* --- Wie es funktioniert ------------------------------------------------ */

.schritte {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
}
/* Zwei Spalten, nicht drei: es sind vier Schritte, und der vierte saesse in
   einem Dreierraster allein in der zweiten Reihe. */
@media (min-width: 52rem) {
  .schritte {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.25rem 3rem;
  }
}
.schritte li {
  border-top: 2px solid var(--tinte);
  padding-top: 1rem;
}
.schritte .nr {
  display: block;
  font-family: var(--auszeichnung);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--wein);
  line-height: 1;
  margin-bottom: 0.55rem;
}
.schritte h3 {
  margin-bottom: 0.5rem;
}
.schritte p {
  margin: 0;
  color: var(--tinte2);
  font-size: 0.98rem;
}

.dazu {
  margin-top: 2.75rem;
  border: 1px solid var(--linie);
  border-radius: 16px;
  padding: 1.4rem 1.5rem;
  background: var(--karte);
}
.dazu h3 {
  margin-bottom: 0.75rem;
}
.dazu ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--tinte2);
  display: grid;
  gap: 0.4rem;
}
@media (min-width: 42rem) {
  .dazu ul {
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem 2rem;
  }
}

/* --- Screenshots -------------------------------------------------------- */

.bilder {
  display: grid;
  gap: 2rem;
}

/* Auf dem Handy laufen die drei Aufnahmen seitwaerts statt untereinander.
   Untereinander waeren es ueber 2000 Pixel Scrollen durch drei aehnliche
   Bilder - und die Zielgruppe oeffnet die Seite ueberwiegend am Handy.
   Der Streifen laeuft bis an den Rand, damit sichtbar ist, dass es weitergeht. */
@media (max-width: 47.999rem) {
  .bilder {
    grid-auto-flow: column;
    grid-auto-columns: 74vw;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    margin: 0 -1.25rem;
    padding: 0 1.25rem 0.5rem;
    gap: 1rem;
  }
  .bild {
    scroll-snap-align: start;
  }
}

@media (min-width: 48rem) {
  .bilder {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}
.bild figure {
  margin: 0;
}
.bild img {
  width: 100%;
  border: 1px solid var(--linie2);
  border-radius: 20px;
  background: var(--papier);
}
.bild figcaption {
  margin-top: 0.85rem;
  font-size: 0.94rem;
  color: var(--tinte2);
}
.bild figcaption b {
  display: block;
  color: var(--tinte);
  font-family: var(--auszeichnung);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.15rem;
}

/* --- Preis -------------------------------------------------------------- */

.preis {
  border: 2px solid var(--tinte);
  border-radius: 20px;
  background: var(--karte);
  padding: 1.75rem;
  max-width: 34rem;
}
@media (min-width: 40rem) {
  .preis {
    padding: 2.25rem;
  }
}

.preis-zahl {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.preis-zahl b {
  font-family: var(--auszeichnung);
  font-weight: 800;
  font-size: 3.4rem;
  letter-spacing: -0.04em;
  line-height: 1;
}
.preis-zahl span {
  color: var(--tinte2);
  font-size: 1.05rem;
}

.preis-aktion {
  margin: 0.85rem 0 0;
  color: var(--tinte2);
  font-size: 0.97rem;
}

.preis-liste {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--linie);
  display: grid;
  gap: 0.75rem;
}
.preis-liste li {
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  gap: 0.6rem;
  align-items: start;
}
.preis-liste svg {
  margin-top: 0.28rem;
  color: var(--frei);
}
.preis-liste b {
  font-weight: 600;
}
.preis-liste span {
  color: var(--tinte2);
}

.preis .knopf {
  margin-top: 1.75rem;
  width: 100%;
}

.preis-gross {
  margin: 1.1rem 0 0;
  font-size: 0.94rem;
  color: var(--tinte2);
}

/* Offener Wert, der noch von Kevin kommen muss. Absichtlich unuebersehbar -
   und scripts/pruefen.sh laesst das Abbild damit gar nicht erst bauen. */
.offen {
  background: #ffe8a3;
  border-bottom: 2px solid #9a5b00;
  padding: 0 0.2rem;
  font-weight: 700;
}

/* --- Fragen ------------------------------------------------------------- */

.fragen {
  border-top: 1px solid var(--linie);
  max-width: 44rem;
}
.fragen details {
  border-bottom: 1px solid var(--linie);
}
.fragen summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 2.5rem 1.15rem 0;
  position: relative;
  font-family: var(--auszeichnung);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.015em;
}
.fragen summary::-webkit-details-marker {
  display: none;
}
/* Plus, das beim Aufklappen zum Minus wird. Kein Pfeil - der ist auf dieser
   Seite fuer nichts reserviert. */
.fragen summary::after,
.fragen summary::before {
  content: '';
  position: absolute;
  right: 0.35rem;
  top: 1.65rem;
  width: 14px;
  height: 2px;
  background: var(--tinte2);
}
.fragen summary::before {
  transform: rotate(90deg);
}
.fragen details[open] summary::before {
  display: none;
}
.fragen details p {
  margin: 0 0 1.15rem;
  color: var(--tinte2);
  max-width: 40rem;
}

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

.kontakt-raster {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 56rem) {
  .kontakt-raster {
    grid-template-columns: 19rem 1fr;
    gap: 3rem;
  }
}

.wege {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  align-content: start;
}
.weg {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  border: 1px solid var(--linie2);
  border-radius: var(--radius);
  background: var(--karte);
  padding: 0.9rem 1.1rem;
  text-decoration: none;
  color: var(--tinte);
  min-height: 68px;
}
.weg:hover {
  border-color: var(--tinte);
}
.weg svg {
  flex: none;
  color: var(--wein);
}
.weg b {
  display: block;
  font-family: var(--auszeichnung);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.weg span {
  font-size: 0.92rem;
  color: var(--tinte2);
}

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

form {
  border: 1px solid var(--linie);
  border-radius: 18px;
  background: var(--karte);
  padding: 1.5rem;
}
@media (min-width: 40rem) {
  form {
    padding: 1.9rem;
  }
}

.feld {
  margin-bottom: 1.1rem;
}
.feld label {
  display: block;
  font-weight: 600;
  font-size: 0.94rem;
  margin-bottom: 0.4rem;
}
.feld input,
.feld textarea {
  width: 100%;
  font: inherit;
  color: var(--tinte);
  background: var(--papier);
  border: 1px solid var(--linie2);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  min-height: 52px;
}
.feld textarea {
  min-height: 118px;
  resize: vertical;
}
.feld input:focus,
.feld textarea:focus {
  border-color: var(--tinte);
}

@media (min-width: 34rem) {
  .feld-paar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1rem;
  }
}

/* Honigtopf: fuer Menschen unsichtbar, fuer einfache Robots ausfuellbar.
   Nicht display:none - manche Robots ueberspringen das gezielt. */
.honigtopf {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.rueckruf {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
  font-size: 0.96rem;
}
.rueckruf input {
  width: 22px;
  height: 22px;
  margin: 0.15rem 0 0;
  accent-color: var(--wein);
  flex: none;
}

form .knopf {
  width: 100%;
}

.form-hinweis {
  margin: 1rem 0 0;
  font-size: 0.86rem;
  color: var(--tinte2);
}

.meldung {
  margin: 0 0 1.2rem;
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  font-size: 0.96rem;
  max-width: none;
}
.meldung--gut {
  background: var(--frei-flaeche);
  border: 1px solid var(--frei);
  color: #0f5c34;
}
.meldung--fehler {
  background: var(--besetzt-flaeche);
  border: 1px solid var(--besetzt);
  color: #8a2c1a;
}

/* --- Fuss --------------------------------------------------------------- */

.fuss {
  border-top: 1px solid var(--linie);
  padding: 2.25rem 0 3rem;
  font-size: 0.94rem;
  color: var(--tinte2);
}
.fuss .spalte {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}
.fuss nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.fuss nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.fuss a {
  color: var(--tinte2);
}
.fuss a:hover {
  color: var(--wein);
}

/* --- Rechtstexte -------------------------------------------------------- */

.recht {
  max-width: 44rem;
}
.recht h2 {
  font-size: 1.35rem;
  margin: 2.25rem 0 0.75rem;
}
.recht h1 + p {
  margin-top: 1.25rem;
}
.recht p,
.recht li {
  color: var(--tinte2);
}
.recht ul {
  padding-left: 1.2rem;
}
.recht table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
}
.recht th,
.recht td {
  text-align: left;
  padding: 0.6rem 0.75rem 0.6rem 0;
  border-bottom: 1px solid var(--linie);
  vertical-align: top;
  color: var(--tinte2);
}
.recht th {
  color: var(--tinte);
  font-weight: 600;
}
.tabelle-huelle {
  overflow-x: auto;
}

/* Cloudflare Turnstile wird vom entrypoint eingesetzt. */
.turnstile {
  margin-bottom: 1.2rem;
}

/* Hinweis, der nur am Handy zaehlt (der Bilderstreifen laeuft dort seitwaerts). */
.nur-handy {
  display: none;
}
@media (max-width: 47.999rem) {
  .nur-handy {
    display: inline;
  }
}

/* Die Seite, die api/kontakt.php ohne JavaScript ausliefert.
   Als Klasse und nicht als style-Attribut: die Inhaltsrichtlinie in
   apache/wirtsbuch.conf setzt style-src auf 'self', und das sperrt auch
   style-Attribute (style-src-attr faellt darauf zurueck). */
.danke {
  padding: 4rem 1.25rem;
  max-width: 36rem;
}
.danke h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}
