/* Kartenstil "Landgasthof" (app/kartenstile.py, seit 19.11.2026).

   Simon und Calvin, 19.11.2026: ein Baukasten fuer Kartendesigns, "ein
   bisschen Abhebung". Anlass ist ein Landgasthof, der eine Karte will, die
   urig aussieht und nicht wie Massenware; der Stil taugt fuer jede laendliche
   Gaststaette und traegt kein festes Logo (das Ladenlogo kommt aus dem Laden).

   EIGENES LAYOUT (Simon, 19.11.2026: "komplett anderes Layout, ruhig nicht
   starr fix an dieser Uhr ... bisschen edler"). Kopfleiste und Kopf der
   Webansicht tauscht kartenstile.layout_einsetzen gegen die Teile aus
   app/karten_templates/stile/landgasthof/<stufe>.html: ein Schild aus
   Papier mit Logo, Name, Zierlinie, "Speisekarte", einer feinen Zeile fuer
   heute und Anschrift und Telefon als Textlinks. Ihre Klassen heissen
   sp-lg-*. Alles darunter (Leiste, Gerichte, Fuss) bleibt das Markup der
   Vorlage und bekommt hier nur ein anderes Kleid: Die Leiste wird eine
   Textzeile, die Gerichte werden Zeilen einer gedruckten Gasthauskarte.

   SPIELREGELN DIESER DATEI
   * Jede Regel steht unter html.sp-stil-landgasthof. Die Klasse setzt nur
     kartenstile.einsetzen, und nur fuer Karten mit diesem Stil; alle anderen
     Karten laden die Datei gar nicht.
   * Nichts wird ausgeblendet: Allergene, Zusatzstoffe, Preise, Mengen,
     Sprachwahl, Zeiten und Bewertungskasten bleiben (tests/test_kartenstil.py
     sucht nach display: none, visibility, opacity 0 und Schriftgroesse 0).
   * Farben kommen aus dem Farbblock der Karte (menu_karte._theme_css), den
     kartenstile.farben schon auf Papier und Tinte umgestellt hat, samt
     Kontrasten und Druckfarben. Hier stehen nur Variablen und Mischungen
     davon, keine festen Farbwerte fuer Schrift. Text steht immer auf
     deckendem Papier (Seite, Schild, Leiste), nie auf dem Foto.
   * Alles lokal: Die Schrift liegt in /static/fonts (SIL Open Font License,
     OFL-CrimsonText.txt daneben), kein Bild, keine fremde Adresse. Das Papier
     ist reines CSS; das Foto oben ist das Hintergrundbild des Ladens.
   * Die Vorlagen tragen ihre Gestaltung als style-Attribut. Der Browser legt
     es normalisiert ab ("inset: 0" wird "inset: 0px", Kommazahlen bekommen
     die Null); Attributwaehler zielen deshalb nur auf Teile, die so bleiben
     (Werte mit var(), Schriftnamen, ganze Pixelzahlen).
   * Der Tresen-Bildschirm (.sp-tv) ist eine eigene Buehne und bleibt, wie er
     ist: Keine Regel greift dort (er hat kein main, kein h1, kein h2). */

@font-face {
  font-family: "Crimson Text";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/crimson-text-400-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: "Crimson Text";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/static/fonts/crimson-text-600-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: "Crimson Text";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/crimson-text-400-italic-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;
}

/* ------------------------------------------------------------ Grundwerte */

html.sp-stil-landgasthof {
  /* Zeichen ausserhalb der Latin-Datei (Tuerkisch, Polnisch, Kyrillisch,
     Arabisch, CJK) fallen Zeichen fuer Zeichen auf Georgia bzw. die
     Systemschrift zurueck; die Karte bleibt in jeder Sprache lesbar. */
  --sp-stil-serif: "Crimson Text", Georgia, "Times New Roman", serif;
  /* Zierlinien und Rauten in der Hauptfarbe des Ladens, leise; die kleine
     Raute in der Mitte der Zierlinie in der Akzentfarbe. */
  --sp-stil-linie: rgba(var(--sp-primary-rgb), .55);
  --sp-stil-raute: var(--sp-primary);
  /* Kanten der Kaesten: aus der Tinte, nicht aus dem festen Braungrau. */
  --sp-stil-kante: rgba(var(--sp-text-rgb), .2);
  --sp-stil-regel: rgba(var(--sp-text-rgb), .13);
  --sp-stil-punkte: rgba(var(--sp-text-rgb), .45);
  --sp-stil-rund: 3px;
  /* Text mit mindestens 4,5:1. Die leiseste Stufe der Karte (--sp-muted,
     3,2:1) und der Ladenname im Kopf (--sp-accent-schrift, 3:1) gehen hier
     auf die 4,5er-Stufe, die der Farbblock ohnehin rechnet. Im Druck gelten
     dadurch deren Druckfarben, also ebenfalls 4,5:1 auf Weiss. */
  --sp-muted: var(--sp-muted-2);
  --sp-accent-schrift: var(--sp-accent-schrift-stark);
}

/* Papier: deckend ueber Hintergrundbild und Schleier der Vorlage, dazu ein
   heller Hauch von oben und feine Fasern. Deckend, weil sonst
   Kategorietitel und Untertitel auf dem unscharfen Foto standen (live auf
   der Buskarte der Lilie kaum lesbar). Das Foto zeigt das Layout
   stattdessen gedaempft oben im Kopf (.sp-lg-bild). Die feste Ebene hat
   z-index 0, der Inhalt 1. Nur am Bildschirm: Der Drucker bekommt weisses
   Papier wie bisher.
   Hauch und Fasern mischen nur Papier (--sp-bg) mit Flaeche
   (--sp-surface): Der Farbblock rechnet die leisen Stufen und die
   Hauptfarbe gegen genau diese beiden auf 4,5:1, und jeder Ton dazwischen
   haelt das. Ein Schatten zum Rand in Tinte (Gegenpruefung 19.11.2026)
   drueckte die Beschreibungen unten am Bildschirm auf rund 4,1:1, Fasern
   in Tinte an den Kreuzungen auf 3,8:1. */
@media screen {
  html.sp-stil-landgasthof [aria-hidden="true"][style*="position: fixed"][style*="z-index: 0"]::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-color: var(--sp-bg);
    background-image:
      radial-gradient(130% 90% at 50% -10%, rgba(var(--sp-surface-rgb), .55), rgba(var(--sp-surface-rgb), 0) 55%),
      repeating-linear-gradient(90deg, rgba(var(--sp-surface-rgb), .16) 0 1px, rgba(var(--sp-surface-rgb), 0) 1px 3px),
      repeating-linear-gradient(0deg, rgba(var(--sp-surface-rgb), .12) 0 1px, rgba(var(--sp-surface-rgb), 0) 1px 4px);
  }
}

/* ------------------------------------------------- Foto oben, unter Papier */

/* Das Hintergrundbild des Ladens als Band oben auf der Seite, nach unten in
   das Papier verlaufend. Es liegt hinter allem (z-index -1 im Rahmen der
   Webansicht); auf ihm steht kein Text: Die Sprachwahl hat ihre eigene
   Flaeche, Name und Zeiten stehen auf dem Schild. Ohne Bild bleibt das Band
   leer, und das Schild liegt auf Papier. */
html.sp-stil-landgasthof .sp-lg-bild {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: -1;
  height: clamp(250px, 46vh, 460px);
  background-size: cover;
  background-position: center 38%;
  pointer-events: none;
  /* Nach unten laeuft das Foto selbst aus (Maske), nicht nur der Schleier:
     So geht es nahtlos in das Papier ueber, auch dort, wo das Papier oben
     heller ist als --sp-bg. */
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 50%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 50%, transparent 100%);
}
html.sp-stil-landgasthof .sp-lg-bild::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(var(--sp-bg-rgb), .30) 0%,
    rgba(var(--sp-bg-rgb), .52) 60%,
    rgba(var(--sp-bg-rgb), .8) 100%);
}

/* Die Kopfleiste: nur noch Sprachwahl (und in Basis Web/TV), ohne Kante. */
html.sp-stil-landgasthof .sp-lg-leiste {
  position: relative;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 12px clamp(14px, 3vw, 28px);
}
html.sp-stil-landgasthof .sp-lg-umschalter {
  display: flex;
  gap: 2px;
  margin-inline-end: auto;
  padding: 3px;
  border-radius: var(--sp-stil-rund);
  background: rgba(var(--sp-surface-rgb), .94);
  border: 1px solid var(--sp-stil-kante);
}
html.sp-stil-landgasthof .sp-lg-umschalter button {
  border-radius: 2px !important;
  min-height: 32px !important;
  padding: 4px 12px !important;
}
html.sp-stil-landgasthof .sp-lg-leiste .sp-sprachpille {
  border-radius: var(--sp-stil-rund);
  background: rgba(var(--sp-surface-rgb), .94);
  border-color: var(--sp-stil-kante);
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  font-family: var(--sp-stil-serif);
  font-size: 16px;
  font-weight: 600;
}

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

/* Das Schild: deckendes Papier mit doppeltem Rahmen (Kante und eine feine
   Linie innen), mittig, wie das Deckblatt einer Gasthauskarte. */
html.sp-stil-landgasthof .sp-lg-kopf {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(36px, 10vh, 120px) clamp(14px, 4vw, 32px) clamp(10px, 2vw, 18px);
  text-align: center;
}
html.sp-stil-landgasthof .sp-lg-schild {
  position: relative;
  padding: clamp(30px, 6vw, 54px) clamp(20px, 6vw, 64px) clamp(26px, 5vw, 42px);
  font-family: var(--sp-stil-serif);
  background: var(--sp-surface);
  border: 1px solid var(--sp-stil-kante);
  border-radius: 2px;
  box-shadow: 0 46px 80px -56px rgba(var(--sp-schatten-rgb), .75);
}
html.sp-stil-landgasthof .sp-lg-schild::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--sp-stil-linie);
  pointer-events: none;
}

/* Das Logo des Ladens. Auf hellem Papier verschmilzt sein weisser Grund mit
   dem Papier (multiply); auf dunklem Nussholz steht es auf einem hellen
   Schildchen. Beides rechnet kartenstile.zusatz_variablen in den
   Farbblock. */
html.sp-stil-landgasthof .sp-lg-logo {
  display: inline-block;
  max-width: 100%;
  margin: 0 auto clamp(14px, 3vw, 22px);
  padding: var(--sp-stil-logo-polster, 0);
  background: var(--sp-stil-logo-flaeche, transparent);
  border-radius: 2px;
}
html.sp-stil-landgasthof .sp-lg-logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(300px, 100%);
  max-height: clamp(84px, 20vw, 140px);
  mix-blend-mode: var(--sp-stil-logo-mischung, multiply);
}

html.sp-stil-landgasthof .sp-lg-name {
  margin: 0;
  font-family: var(--sp-stil-serif);
  font-weight: 600;
  font-size: clamp(34px, 7vw, 60px);
  line-height: 1.06;
  letter-spacing: .01em;
  color: var(--sp-primary);
  text-wrap: balance;
  -webkit-user-select: none;
  user-select: none;
}

/* Zierlinie: zwei feine Doppellinien, dazwischen eine Raute mit Hof. */
html.sp-stil-landgasthof .sp-lg-zier {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: min(280px, 72%);
  margin: clamp(14px, 3vw, 20px) auto clamp(10px, 2vw, 14px);
}
html.sp-stil-landgasthof .sp-lg-zier::before,
html.sp-stil-landgasthof .sp-lg-zier::after {
  content: "";
  flex: 1 1 0;
  height: 5px;
  border-top: 1px solid var(--sp-stil-linie);
  border-bottom: 1px solid var(--sp-stil-linie);
}
html.sp-stil-landgasthof .sp-lg-zier > span {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  background: var(--sp-accent);
  transform: rotate(45deg);
  box-shadow: 0 0 0 3px var(--sp-surface), 0 0 0 4px var(--sp-stil-linie);
}

/* "Speisekarte" in gesperrten Kapitaelchen. */
html.sp-stil-landgasthof .sp-lg-titel {
  margin: 0;
  font-family: var(--sp-stil-serif);
  font-size: clamp(16px, 2.4vw, 19px);
  font-weight: 600;
  font-variant-caps: all-small-caps;
  letter-spacing: .26em;
  padding-inline-start: .26em;
  color: var(--sp-muted-2);
}

/* Heute: eine kursive Zeile mit dem Stand (geoeffnet bis, oeffnet um),
   darunter der Tag mit seinen Zeiten. Ein Tipp darauf klappt die Woche
   auf (Plus und Premium), wie in der Vorlage. Keine grosse Uhr. */
html.sp-stil-landgasthof .sp-lg-zeit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-top: clamp(18px, 3.5vw, 26px);
}
html.sp-stil-landgasthof .sp-lg-status {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0 .3em;
  margin: 0;
  font-family: var(--sp-stil-serif);
  font-style: italic;
  font-size: clamp(18px, 2.6vw, 21px);
  line-height: 1.35;
  color: var(--sp-text);
}
html.sp-stil-landgasthof .sp-lg-statuspunkt {
  flex: 0 0 auto;
  align-self: center;
  width: 7px;
  height: 7px;
  margin-inline-end: .25em;
  border-radius: 50%;
  background: var(--sp-primary);
}
html.sp-stil-landgasthof .sp-lg-heute {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0 .45em;
  max-width: 100%;
  min-height: 40px;
  margin: 0;
  padding: 4px 10px;
  border: 0;
  border-radius: var(--sp-stil-rund);
  background: none;
  font-family: inherit;
  font-size: 17px;
  line-height: 1.4;
  color: var(--sp-muted-2);
  cursor: pointer;
}
html.sp-stil-landgasthof p.sp-lg-heute {
  cursor: auto;
}
html.sp-stil-landgasthof button.sp-lg-heute:hover {
  color: var(--sp-text);
}
html.sp-stil-landgasthof .sp-lg-heute .sp-lg-tag {
  font-weight: 600;
  color: var(--sp-text);
}
html.sp-stil-landgasthof .sp-lg-stunden {
  font-variant-numeric: tabular-nums lining-nums;
}
/* Zwei ausgewogene Zeilen statt eines einzelnen "Uhr" in der zweiten. */
html.sp-stil-landgasthof .sp-lg-heute > *,
html.sp-stil-landgasthof .sp-lg-kontakt > * {
  text-wrap: balance;
}
html.sp-stil-landgasthof .sp-lg-247 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--sp-primary);
}
html.sp-stil-landgasthof .sp-lg-pfeil {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin: -3px 2px 0;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  rotate: 45deg;
  transition: transform .25s ease;
}

/* Die Woche: Tag, Punktlinie, Zeiten, wie die Preise darunter. */
html.sp-stil-landgasthof .sp-lg-woche {
  width: min(360px, 100%);
  margin: 8px auto 2px;
  padding: 12px 6px 10px;
  border-top: 1px solid var(--sp-stil-linie);
  border-bottom: 1px solid var(--sp-stil-linie);
  text-align: start;
}
html.sp-stil-landgasthof .sp-lg-woche-titel {
  margin-bottom: 6px;
  text-align: center;
  font-family: var(--sp-stil-serif);
  font-size: 15px;
  font-weight: 600;
  font-variant-caps: all-small-caps;
  letter-spacing: .2em;
  color: var(--sp-muted-2);
}
html.sp-stil-landgasthof .sp-lg-wochentag {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 15px;
  line-height: 1.85;
  font-variant-numeric: tabular-nums lining-nums;
}
html.sp-stil-landgasthof .sp-lg-wochentag .sp-lg-punkte {
  flex: 1 1 12px;
  min-width: 12px;
  border-bottom: 1.5px dotted var(--sp-stil-punkte);
}

/* Anschrift, Anfahrt und Telefon: leise Textlinks. Die Anschrift steht in
   einer eigenen Zeile, darunter Anfahrt und Telefon, getrennt durch eine
   kleine Raute (am Element, damit sie bei einer fehlenden Angabe mit
   wegfaellt). */
html.sp-stil-landgasthof .sp-lg-kontakt {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin: clamp(14px, 3vw, 20px) 0 0;
  font-size: 17px;
  line-height: 1.4;
  color: var(--sp-muted-2);
}
html.sp-stil-landgasthof .sp-lg-kontakt > * {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}
html.sp-stil-landgasthof .sp-lg-kontakt > :first-child {
  flex: 1 0 100%;
  justify-content: center;
  min-height: 32px;
}
html.sp-stil-landgasthof .sp-lg-kontakt > * + *::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 .9em;
  background: var(--sp-stil-linie);
  transform: rotate(45deg);
}
html.sp-stil-landgasthof .sp-lg-kontakt > :first-child + *::before {
  content: none;
}
html.sp-stil-landgasthof .sp-lg-kontakt a {
  color: var(--sp-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(var(--sp-text-rgb), .3);
  text-underline-offset: 4px;
}
html.sp-stil-landgasthof .sp-lg-kontakt a:hover {
  color: var(--sp-primary);
  text-decoration-color: currentColor;
}

/* Soziale Kanaele: dieselben Zeichen, klein und in Tinte, ohne Flaeche. */
html.sp-stil-landgasthof .sp-lg-sozial {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px !important;
  margin-top: 10px !important;
}
html.sp-stil-landgasthof .sp-lg-sozial a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50%;
  text-decoration: none;
  color: var(--sp-muted-3) !important;
  background: none !important;
  border: 1px solid var(--sp-stil-kante) !important;
}
html.sp-stil-landgasthof .sp-lg-sozial a:hover {
  color: var(--sp-primary) !important;
  background: none !important;
  border-color: var(--sp-primary) !important;
  transform: none;
}
html.sp-stil-landgasthof .sp-lg-sozial a > span {
  width: 18px !important;
  height: 18px !important;
}

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

/* Was in den Vorlagen in Instrument Serif steht (Kategorien, Empfehlung,
   Offline-Kasten), steht hier in Crimson Text. */
html.sp-stil-landgasthof main [style*="Instrument Serif"],
html.sp-stil-landgasthof main ~ section [style*="Instrument Serif"] {
  font-family: var(--sp-stil-serif) !important;
}

/* Gerichtnamen in Kachel, Empfehlung und Liste: Buchschrift, Kapitaelchen,
   etwas gesperrt. Die hochgestellten Kennziffern (Zusatzstoffe, Allergene)
   bleiben in der Grundschrift und an ihrem Platz. */
html.sp-stil-landgasthof main .sp-gericht-name > span,
html.sp-stil-landgasthof main .sp-liste-name {
  font-family: var(--sp-stil-serif) !important;
  font-weight: 600 !important;
  font-variant-caps: small-caps;
  letter-spacing: .035em !important;
  /* Lange Woerter ("Schwarzwaelder", "Zwiebelrostbraten") trennt der
     Browser an der Silbe statt irgendwo (die Vorlage erlaubt das Brechen
     ueberall, damit nichts seitlich verrutscht). */
  -webkit-hyphens: auto;
  hyphens: auto;
}
/* Crimson zeichnet kleiner als DM Sans; die Namen der Kacheln und der Liste
   wachsen deshalb etwas, die grossen Namen der Empfehlung bleiben. */
html.sp-stil-landgasthof main .sp-gericht-name > span:not([style*="Instrument Serif"]),
html.sp-stil-landgasthof main .sp-liste-name {
  font-size: 20px !important;
  line-height: 1.2 !important;
}
html.sp-stil-landgasthof main .sp-liste-name sup,
html.sp-stil-landgasthof main .sp-gericht-name > sup {
  font-variant-caps: normal;
  letter-spacing: 0;
}

/* Beschreibungen der Gerichte kursiv in der Buchschrift, wie gesetzt. */
html.sp-stil-landgasthof main article p[dir="auto"],
html.sp-stil-landgasthof main .sp-liste-desc {
  font-family: var(--sp-stil-serif);
  font-style: italic;
  font-size: 16.5px !important;
  line-height: 1.4 !important;
  color: var(--sp-muted-2) !important;
}

/* Preise: Buchschrift, halbfett, in der Hauptfarbe (die Variable bleibt die
   des Ladens, auf 4,5:1 gezogen), Ziffern auf gleicher Breite. */
html.sp-stil-landgasthof main article span[style*="color: var(--sp-primary)"][style*="font-weight: 700"],
html.sp-stil-landgasthof main .sp-liste-preis,
html.sp-stil-landgasthof main article b[style*="color: var(--sp-text)"],
html.sp-stil-landgasthof main .sp-liste-groesse b {
  font-family: var(--sp-stil-serif) !important;
  font-weight: 600 !important;
  font-variant-numeric: lining-nums tabular-nums;
}
html.sp-stil-landgasthof main article span[style*="color: var(--sp-primary)"][style*="font-size: 16px"],
html.sp-stil-landgasthof main article span[style*="color: var(--sp-primary)"][style*="font-size: 17px"],
html.sp-stil-landgasthof main .sp-liste-preis {
  font-size: 20px !important;
}
/* Mengen und Groessen (klein, gross, 0,3 l): ebenfalls gesetzt. */
html.sp-stil-landgasthof main article span[style*="tabular-nums"][style*="display: flex"],
html.sp-stil-landgasthof main .sp-liste-groesse {
  font-family: var(--sp-stil-serif);
  font-size: 16px !important;
}
html.sp-stil-landgasthof main article span[style*="tabular-nums"][style*="display: flex"] b,
html.sp-stil-landgasthof main .sp-liste-groesse b {
  font-size: 17px;
}

/* Beschreibung der Kategorie: mittig, kursiv in der Buchschrift, auf dem
   Papier der Seite (seit dem eigenen Layout deckend, siehe oben). */
html.sp-stil-landgasthof main section[data-screen-label] > div:first-child + p {
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: 26px !important;
  text-align: center;
  font-family: var(--sp-stil-serif);
  font-style: italic;
  font-size: 18px !important;
  color: var(--sp-muted-2) !important;
}

/* Kursiv und Sperrung nur fuer Schriften, die das tragen. Arabisch,
   Hebraeisch und Urdu verlieren durch Sperrung die Verbindung der
   Buchstaben, Chinesisch, Japanisch, Koreanisch und Hindi haben kein
   Kursiv (der Browser kippte sie nur schraeg). */
html.sp-stil-landgasthof:is(:lang(ar), :lang(he), :lang(ur), :lang(zh), :lang(ja), :lang(ko), :lang(hi)) :is(.sp-lg-status, .sp-lg-titel, .sp-lg-woche-titel, main article p[dir="auto"], main .sp-liste-desc, main section[data-screen-label] > div:first-child + p) {
  font-style: normal;
  letter-spacing: 0;
}

/* ------------------------------------------- Kategorie zwischen Doppellinien */

/* Die Zeile der Ueberschrift wird ein Raster: links eine Doppellinie (die
   eigene ::before), in der Mitte der Titel mit zwei Rauten, rechts die
   Zierlinie der Vorlage als Doppellinie, darunter mittig die Anzahl. */
html.sp-stil-landgasthof main section[data-screen-label] {
  margin-bottom: clamp(48px, 7vw, 72px) !important;
}
html.sp-stil-landgasthof main section[data-screen-label] > div:first-child {
  display: grid !important;
  grid-template-columns: minmax(18px, 1fr) minmax(0, max-content) minmax(18px, 1fr);
  align-items: center !important;
  column-gap: clamp(10px, 2.2vw, 20px) !important;
  row-gap: 2px !important;
  margin-bottom: 10px !important;
}
html.sp-stil-landgasthof main section[data-screen-label] > div:first-child::before {
  content: "";
  grid-column: 1;
  grid-row: 1;
  height: 5px;
  border-top: 1px solid var(--sp-stil-linie);
  border-bottom: 1px solid var(--sp-stil-linie);
}
html.sp-stil-landgasthof main section[data-screen-label] > div:first-child > h2 {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  text-align: center;
  font-family: var(--sp-stil-serif) !important;
  font-weight: 600 !important;
  font-size: clamp(27px, 4.4vw, 40px) !important;
  line-height: 1.12 !important;
  letter-spacing: .06em !important;
  font-variant-caps: small-caps;
}
html.sp-stil-landgasthof main section[data-screen-label] > div:first-child > h2::before,
html.sp-stil-landgasthof main section[data-screen-label] > div:first-child > h2::after {
  content: "";
  display: inline-block;
  width: .2em;
  height: .2em;
  min-width: 5px;
  min-height: 5px;
  margin: 0 .5em;
  vertical-align: .22em;
  background: var(--sp-stil-raute);
  transform: rotate(45deg);
}
html.sp-stil-landgasthof main section[data-screen-label] > div:first-child > .sp-zierlinie {
  grid-column: 3;
  grid-row: 1;
}
html.sp-stil-landgasthof main section[data-screen-label] > div:first-child > span:last-child {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: center;
  font-family: var(--sp-stil-serif);
  font-size: 12.5px !important;
  letter-spacing: .16em !important;
  color: var(--sp-muted-2) !important;
  /* Premium zeigt die Anzahl als Pille mit Glas; hier steht sie flach. */
  background: none !important;
  border: 0 !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  padding: 0 !important;
}
/* Jede Zierlinie der Karte (auch die der Unterbloecke in Premium) wird eine
   feine Doppellinie. Sie ist spiegelgleich, die Drehung fuer Rechts nach
   links aendert an ihr nichts. */
html.sp-stil-landgasthof main .sp-zierlinie {
  height: 5px !important;
  background: none !important;
  border-top: 1px solid var(--sp-stil-linie);
  border-bottom: 1px solid var(--sp-stil-linie);
  align-self: center;
}

/* ------------------------------------------------------- Gericht und Preis */

/* Punktlinie zwischen Name und Preis in Kachel und Empfehlung: Die Zeile
   ist schon ein Flex-Band mit Name links und Preis rechts. Der Name nimmt
   nur so viel Platz, wie er braucht, die Punkte fuellen den Rest (eigene
   ::after, per order zwischen beide gestellt), der Preis steht auf der Linie
   der letzten Namenszeile. */
html.sp-stil-landgasthof main article div[style*="justify-content: space-between"],
html.sp-stil-landgasthof main article div[style*="justify-content: space-between"] > span[style*="display: flex"]:first-child {
  align-items: flex-end !important;
  align-items: last baseline !important;
}
html.sp-stil-landgasthof main article div[style*="justify-content: space-between"] {
  gap: 0 6px !important;
}
html.sp-stil-landgasthof main article div[style*="justify-content: space-between"] > :first-child {
  flex: 0 1 auto !important;
  order: 0;
}
/* Der Preis wird nie abgeschnitten (die Regel gegen seitliches Verrutschen
   in den Vorlagen kuerzt alles mit nowrap): Er schrumpft hoechstens bis zu
   seinem breitesten Teil; in Premium rutscht dann der Streichpreis darueber,
   wie bisher. Umbrechen muss der Name. */
html.sp-stil-landgasthof main article div[style*="justify-content: space-between"] > :not(:first-child) {
  order: 2;
  min-width: min-content !important;
  max-width: none !important;
  overflow: visible !important;
}
html.sp-stil-landgasthof main article div[style*="justify-content: space-between"]::after {
  content: "";
  order: 1;
  flex: 1 1 12px;
  min-width: 12px;
  align-self: flex-end;
  margin-bottom: .42em;
  border-bottom: 2px dotted var(--sp-stil-punkte);
}
/* Wo der Browser die letzte Grundlinie kennt, stehen Punkte und Preis genau
   auf der Linie der letzten Namenszeile. */
@supports (align-items: last baseline) {
  html.sp-stil-landgasthof main article div[style*="justify-content: space-between"]::after {
    align-self: last baseline;
    margin-bottom: 0;
  }
}
/* Im Listenmodus gibt es die Punktlinie schon, sie wird nur kraeftiger. */
html.sp-stil-landgasthof main .sp-liste-punkte {
  border-bottom: 2px dotted var(--sp-stil-punkte) !important;
  margin-bottom: .2em;
}

/* --------------------------------------------- Kaesten: flach, kleine Ecken */

/* Empfehlung und Unterbloecke: deckendes Papier, feine Kante, kein Glas,
   kein Schatten, kein Anheben beim Darueberfahren. */
html.sp-stil-landgasthof main article[data-reveal]:not(.sp-liste-zeile),
html.sp-stil-landgasthof main .sp-liste {
  border-radius: var(--sp-stil-rund) !important;
  background: var(--sp-surface) !important;
  border: 1px solid var(--sp-stil-kante) !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  transform: none !important;
}
/* Die Empfehlung des Hauses mit doppeltem Rahmen in der Akzentfarbe. */
html.sp-stil-landgasthof main article[data-reveal][style*="flex-wrap: wrap"] {
  border: 3px double rgba(var(--sp-accent-rgb), .7) !important;
  margin-bottom: 22px !important;
}

/* Die Gerichte selbst stehen ohne Kasten auf dem Papier, wie Zeilen einer
   gedruckten Gasthauskarte: am Bildschirm zwei Spalten mit breitem
   Bundsteg, am Handy eine, zwischen den Zeilen eine feine Regel. Gemeint
   ist nur das Raster direkt unter der Kategorie, nicht die Unterbloecke
   in Premium (die bleiben Kaesten mit Bild). */
html.sp-stil-landgasthof main section[data-screen-label] > div[style*="grid-template-columns"] {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)) !important;
  column-gap: clamp(28px, 5vw, 64px) !important;
  row-gap: 0 !important;
}
html.sp-stil-landgasthof main section[data-screen-label] > div[style*="grid-template-columns"] > article[data-reveal] {
  padding: 16px 2px 18px !important;
  background: none !important;
  border: 0 !important;
  border-bottom: 1px solid var(--sp-stil-regel) !important;
  border-radius: 0 !important;
}
/* Fotos wie ein kleiner Abzug mit Papierrand. */
html.sp-stil-landgasthof main article div[style*="border-radius: 11px"] {
  padding: 3px;
  background: var(--sp-surface) !important;
  border: 1px solid var(--sp-stil-kante);
  box-shadow: 0 8px 16px -12px rgba(var(--sp-schatten-rgb), .6);
}
/* Die Liste: ohne Kasten, die Zeilen mit feiner Regel. */
html.sp-stil-landgasthof main .sp-liste {
  background: none !important;
  border: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
html.sp-stil-landgasthof main .sp-liste-zeile {
  border-top-color: var(--sp-stil-regel) !important;
  /* Die Rundung der Kacheln traf auch die Zeilen: Ihre obere Linie bog
     sich an beiden Enden nach unten. */
  border-radius: 0 !important;
}
html.sp-stil-landgasthof main .sp-liste {
  column-rule-color: var(--sp-stil-regel);
}
/* Fotos und Marken mit kleinen Ecken. */
html.sp-stil-landgasthof main article div[style*="border-radius: 11px"],
html.sp-stil-landgasthof main .sp-liste-bild,
html.sp-stil-landgasthof main .sp-liste-marke,
html.sp-stil-landgasthof main .sp-liste-nr,
html.sp-stil-landgasthof main article span[style*="border-radius: 999px"],
html.sp-stil-landgasthof main article span[style*="border-radius: 7px"],
html.sp-stil-landgasthof main article span[style*="border-radius: 8px"] {
  border-radius: 2px !important;
}
/* Marke "Empfehlung des Hauses": flach in der Akzentfarbe, ohne Schimmer.
   Schrift bleibt --sp-on-accent (vom Farbblock auf 4,5:1 gerechnet). */
html.sp-stil-landgasthof main article span[style*="sp-shine"] {
  animation: none !important;
  background: var(--sp-accent) !important;
  font-family: var(--sp-stil-serif);
  font-weight: 600 !important;
  font-size: 12.5px !important;
  letter-spacing: .16em !important;
}

/* ---------------------------------------- Leiste als Inhaltsverzeichnis */

/* Die Kategorieleiste: eine Textzeile auf deckendem Papier zwischen einer
   feinen Linie oben und einer Doppellinie unten, die Kategorien in
   Kapitaelchen, getrennt durch kleine Rauten, statt Pillen. Bedienung,
   Suche, Pfeile und weiche Kanten bleiben, wie sie sind. */
html.sp-stil-landgasthof main {
  max-width: 1120px !important;
}
html.sp-stil-landgasthof nav.sp-noprint {
  margin-top: clamp(14px, 3vw, 26px);
  padding-top: 2px !important;
  padding-bottom: 2px !important;
  background: var(--sp-bg) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  border-top: 1px solid var(--sp-stil-linie);
  border-bottom: 3px double var(--sp-stil-linie) !important;
}
html.sp-stil-landgasthof .sp-kategorien a[href] {
  position: relative;
  padding: 11px 13px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  color: var(--sp-text) !important;
  font-family: var(--sp-stil-serif) !important;
  font-weight: 600 !important;
  font-size: 17.5px !important;
  letter-spacing: .04em;
  font-variant-caps: small-caps;
  text-decoration: none;
}
html.sp-stil-landgasthof .sp-kategorien a[href]:hover {
  color: var(--sp-primary) !important;
  background: none !important;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}
html.sp-stil-landgasthof .sp-kategorien a[href] + a[href]::before {
  content: "";
  position: absolute;
  top: 50%;
  inset-inline-start: -3px;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  background: var(--sp-stil-linie);
  transform: rotate(45deg);
}
html.sp-stil-landgasthof .sp-kategorien span[style*="text-transform: uppercase"] {
  font-family: var(--sp-stil-serif);
  font-size: 12px !important;
}
html.sp-stil-landgasthof .sp-suche-taste,
html.sp-stil-landgasthof .sp-suche-feld {
  border-color: var(--sp-stil-kante);
  border-radius: var(--sp-stil-rund);
  background: var(--sp-bg);
  color: var(--sp-text);
}

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

/* Offline-Kasten unter der Karte: flach, Papier, so breit wie die Karte. */
html.sp-stil-landgasthof main ~ section.sp-noprint {
  max-width: 1120px !important;
}
html.sp-stil-landgasthof main ~ section.sp-noprint > div {
  border-radius: var(--sp-stil-rund) !important;
  background: var(--sp-surface) !important;
  border: 1px solid var(--sp-stil-kante) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
html.sp-stil-landgasthof main ~ section.sp-noprint button {
  border-radius: 3px !important;
}
/* Ueber der Fusszeile eine Doppellinie als Abschluss. */
html.sp-stil-landgasthof footer[style*="text-align: center"]::before {
  content: "";
  display: block;
  width: min(160px, 50%);
  height: 5px;
  margin: 0 auto 22px;
  border-top: 1px solid var(--sp-stil-linie);
  border-bottom: 1px solid var(--sp-stil-linie);
}

/* ------------------------------------------------------------ Handy */

@media (max-width: 560px) {
  html.sp-stil-landgasthof .sp-lg-kopf {
    padding-top: clamp(28px, 9vh, 70px);
  }
  html.sp-stil-landgasthof .sp-lg-schild::before {
    inset: 6px;
  }
  html.sp-stil-landgasthof main .sp-gericht-name > span:not([style*="Instrument Serif"]),
  html.sp-stil-landgasthof main .sp-liste-name {
    font-size: 19px !important;
  }
  /* Der grosse Name der Empfehlung (Basis 32 px) brach in Kapitaelchen
     mitten im Wort ("Schwarzwaeld / er"). */
  html.sp-stil-landgasthof main article[data-reveal][style*="flex-wrap: wrap"] .sp-gericht-name > span {
    font-size: 25px !important;
  }
  /* Am Handy bricht ein langer Titel um, und neben ihm blieben von den
     Doppellinien nur Stummel. Hier steht der Titel allein, darunter die
     Anzahl und eine kurze Doppellinie als Abschluss. */
  html.sp-stil-landgasthof main section[data-screen-label] > div:first-child {
    grid-template-columns: minmax(0, 1fr);
  }
  html.sp-stil-landgasthof main section[data-screen-label] > div:first-child::before {
    content: none;
  }
  html.sp-stil-landgasthof main section[data-screen-label] > div:first-child > h2 {
    grid-column: 1;
    font-size: 28px !important;
  }
  html.sp-stil-landgasthof main section[data-screen-label] > div:first-child > span:last-child {
    grid-column: 1;
  }
  html.sp-stil-landgasthof main section[data-screen-label] > div:first-child > .sp-zierlinie {
    grid-column: 1;
    grid-row: 3;
    justify-self: center;
    width: 72px;
    margin-top: 8px;
  }
  /* Die Rauten neben dem Titel brachen allein in eine eigene Zeile; den
     Abschluss macht am Handy die kurze Doppellinie darunter. */
  html.sp-stil-landgasthof main section[data-screen-label] > div:first-child > h2::before,
  html.sp-stil-landgasthof main section[data-screen-label] > div:first-child > h2::after {
    content: none;
  }
  html.sp-stil-landgasthof .sp-kategorien a[href] {
    padding: 11px 11px !important;
    font-size: 17px !important;
  }
}

/* ------------------------------------------------------------ Druck */

/* Gedruckt wird das Schild ohne Schatten; Bildband, Leiste und Sprachwahl
   tragen sp-noprint und fallen ueber die Druckregel der Vorlage weg. */
@media print {
  /* Auch wer "Hintergrundgrafiken drucken" eingeschaltet hat, bekommt
     weisses Papier statt des Fotos hinter den Gerichten. */
  html.sp-stil-landgasthof [aria-hidden="true"][style*="position: fixed"][style*="z-index: 0"]::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #fff;
  }
  html.sp-stil-landgasthof .sp-lg-schild {
    box-shadow: none;
  }
  html.sp-stil-landgasthof .sp-lg-kopf {
    padding-top: 0;
  }
}
