/* Layout "Restaurant klassisch" (restaurant-klassisch und -hierarchisch):
   Seitenleiste rechts, zentrierte Textspalte links, Libre Baskerville
   (SIL OFL, lokal unter fonts/), Verlauf-Hintergrund. Ergaenzt die Basis-
   Styles aus cms/css/site.css.

   Das Hintergrundbild kommt NICHT aus diesem Stylesheet, sondern aus dem
   "Eigenen CSS" des Designs: Eigenschaft background-image an body.rk-seite,
   die Adresse relativ zur CSS-Datei. Vorausgesetzt: die "Eigenes CSS"-Datei
   liegt unter MEDIA_URL/<ordner>/ und das Bild im selben Ordner (oder relativ
   dazu, z. B. hintergrund.jpg); dann greift auch ein URL-Praefix. (Eine Adresse in einer CSS-Variable wuerde relativ zu
   DIESEM Stylesheet aufgeloest.) Hier im Kommentar bewusst keine CSS-Adressfunktion: collectstatic wertet es auch dort aus
   und scheitert an der nicht vorhandenen Datei. Ohne Eintrag: kein Bild. */

@font-face {
  font-family: "Libre Baskerville";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/libre-baskerville-latin-regular.43e7d3f1dec7.woff2") format("woff2"),
       url("fonts/libre-baskerville-latin-regular.f3ca77d9fcde.woff") format("woff");
}
@font-face {
  font-family: "Libre Baskerville";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/libre-baskerville-latin-italic.459f6ec5f7a3.woff2") format("woff2"),
       url("fonts/libre-baskerville-latin-italic.98b691dd516c.woff") format("woff");
}
@font-face {
  font-family: "Libre Baskerville";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/libre-baskerville-latin-700.22907ce04043.woff2") format("woff2"),
       url("fonts/libre-baskerville-latin-700.72fd37c9aa3d.woff") format("woff");
}

:root {
  --rk-link: var(--theme-primary-color, #803200);
  --rk-akzent: var(--theme-secondary-color, #c34f07);
  --rk-rand: #d67c4c;
  --rk-text: #2a2a2a;
  --rk-flaeche: rgb(255 255 255 / 37%);
}

html {
  scroll-behavior: smooth;
  background: rgb(210, 205, 189);
  background: linear-gradient(180deg, rgb(210, 205, 189) 0%, rgb(200, 193, 168) 31%, rgb(255, 243, 215) 100%);
}

body.rk-seite {
  margin: 0 auto;
  /* Platz fuer den fixierten Vorschau-Banner (siehe site.css) bleibt oben. */
  padding: var(--vorschau-banner-height, 0px) 8px 0 12px;
  max-width: 820px;
  font-family: "Libre Baskerville", "Trebuchet MS", Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: -0.05em;
  color: var(--rk-text);
  background-repeat: no-repeat;
  background-position: 0 0;
  /* <body> ist das Raster: Kopf + Seitenleiste (site_header) und <main>. */
  display: grid;
  grid-template-columns: 581px 200px;
  column-gap: 19px;
  grid-template-areas: "kopf leiste" "inhalt leiste";
  grid-template-rows: auto 1fr;
  align-content: start;
  animation: rk-einblenden 3s ease 1 forwards;
}
@keyframes rk-einblenden {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  body.rk-seite { animation: none; }
  html { scroll-behavior: auto; }
}

body.rk-seite > .rk-kopf { grid-area: kopf; }
body.rk-seite > .rk-leiste { grid-area: leiste; }
body.rk-seite > main { grid-area: inhalt; }
body.rk-seite > footer#footer { grid-column: 1 / -1; }

body.rk-seite main {
  max-width: none;
  margin: 0;
  padding: 0;
}

.rk-seite h1, .rk-seite h2, .rk-seite h3, .rk-seite h4, .rk-seite h5, .rk-seite h6 {
  margin: 0 0 0.5rem;
  line-height: 1.2;
  font-weight: 700;
}
.rk-seite p { margin: 0 0 1rem; }
/* Lange Woerter/URLs umbrechen; anywhere senkt die Mindestbreite der Rasterspalte. */
body.rk-seite > main, body.rk-seite > footer#footer, body.rk-seite .hus-wartung-recht, .rk-infobar { overflow-wrap: anywhere; }
/* Tabellenzellen behalten ihre Mindestbreite (sonst Umbruch mitten im Wort statt Scroll). */
.rk-seite td, .rk-seite th { overflow-wrap: break-word; }
.rk-seite h1, .rk-seite h2, .rk-seite h3, .rk-seite h4, .rk-seite h5, .rk-seite h6 { hyphens: auto; }
.rk-seite img { max-width: 100%; height: auto; }

.rk-seite a {
  color: var(--rk-link);
  text-decoration: none;
  display: inline-block;
  vertical-align: top;
}
.rk-seite a:hover { color: var(--rk-text); text-decoration: underline; }
.rk-seite a:focus-visible, .rk-seite button:focus-visible {
  outline: 3px solid var(--rk-akzent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  padding: 8px 12px;
  z-index: 3000;
}
.skip-link:focus { left: 12px; top: 12px; }

/* Kopf */
.rk-kopf { padding-top: 75px; }
.rk-kopf h1 {
  font-size: 36.7px;
  letter-spacing: -0.07em;
  white-space: nowrap;
  margin-bottom: -1px;
}
.rk-kopf h1 a { color: var(--rk-link); }
.rk-untertitel {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

/* Seitenleiste: laeuft beim Scrollen mit */
.rk-leiste {
  align-self: start;
  grid-row: 1 / 3;
  position: sticky;
  top: 0;
  margin-top: 0;
  padding-top: 14px;
  overflow-x: hidden;
}
.rk-leistenbild { text-align: center; }
.rk-leistenbild img { max-width: 100%; height: auto; }
.rk-nav ul {
  border: 4px solid var(--rk-rand);
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  padding: 10px 10px 10px 14px;
  margin: 0;
  width: 200px;
  list-style: none;
  overflow-wrap: break-word;
  hyphens: auto;
}
.rk-nav li::before {
  content: "\2022";
  color: var(--rk-rand);
  font-weight: bold;
  display: inline-block;
  width: 15px;
  margin-left: -1em;
}
.rk-infobar { font-size: 16px; padding-top: 20px; text-align: center; }
.rk-infobar p { margin: 0 0 12px; }
.rk-infobar .rk-klein { font-size: 14px; }

/* Bereiche */
.rk-abschnitte {
  position: relative;
  z-index: 1;
  padding-top: 80px;
}
.rk-sektion { padding-top: 20px; text-align: center; }
.rk-sektion h3 { font-size: 29px; }
.rk-sektion h3 + p:has(> img:only-child) { margin: 0; }
/* Schnoerkel unter der Bereichsueberschrift (Ueberschrift ist die erste in der Spalte) */
.rk-sektion h3:first-child::after {
  content: "";
  display: block;
  height: 22px;
  margin: 4px auto 0;
  background: url("img/schnoerkel.3c7827902b67.png") center / contain no-repeat;
}
.rk-sektion h4 { font-size: 150%; }
.rk-sektion ul, .rk-sektion ol { list-style: none; padding: 0; }
.rk-sektion ul:not(.preisliste, .preis-leistungen) li::before {
  content: "\2022";
  color: var(--rk-rand);
  font-weight: bold;
  display: inline-block;
  width: 15px;
  margin-left: -1em;
}
.rk-sektion img { display: inline-block; }
.rk-zurueck {
  display: block;
  padding-bottom: 80px;
  text-align: center;
}
/* "zurueck zum Anfang" nur am Ende einer zusammenhaengenden Gruppe */
.rk-sektion:has(+ .rk-sektion--karte) > .rk-zurueck { display: none; }
.rk-sektion .table-scroll { text-align: left; }

/* Rahmenkasten: Speisekarten-Bloecke (Preisliste) und .menu_box im Text */
.rk-karte, .menu_box {
  display: block;
  max-width: 100%;
  margin: 0 auto 1rem;
  padding: 10px;
  border: 14px solid transparent;
  border-image: url("img/rahmen.d664cfe3979e.png") 14 / 14px / 0 round;
  background-color: var(--rk-flaeche);
  box-sizing: border-box;
}
.rk-karte { padding-top: 10px; }
.rk-sektion .rk-karten-titel { text-decoration: underline; font-size: 14px; margin-bottom: 0.75rem; }
.rk-karte .preisliste {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}
.rk-karte .preis-karte {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: none;
  transform: none;
  margin: 0 0 1rem;
  text-align: center;
}
.rk-karte .preis-karte:hover { transform: none; filter: none; box-shadow: none; }
.rk-karte .preis-kopf {
  display: contents;
  background: none;
  border: 0;
  mask: none;
  -webkit-mask: none;
}
.rk-karte .preis-name {
  order: 1;
  padding: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}
.rk-karte .preis-leistungen {
  order: 2;
  display: block;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  mask: none;
  -webkit-mask: none;
  border-radius: 0;
  text-align: center;
}
.rk-karte .preis-leistungen li { display: block; font-size: 14px; font-weight: 400; }
.rk-karte .preis-haken { display: none; }
.rk-karte .preis-betrag {
  order: 3;
  display: block;
  padding: 0;
  border: 0;
  text-align: center;
  align-self: auto;
}
.rk-karte .preis-wert { font-size: 14px; font-weight: 700; }
.rk-karte .preis-zusatz { display: block; font-size: 14px; opacity: 1; margin: 0; }
.rk-karte .preisliste-hinweise { font-size: 14px; margin-top: 0; }
.rk-sektion--karte { padding-top: 0; }
.rk-sektion--karte > .rk-zurueck { padding-top: 0.5rem; }
.rk-sektion--karte + .rk-sektion--karte > .rk-karte { margin-top: 0; }

/* Aufklappbare Bereiche */
.rk-seite .bereich-aufklappbar > summary { cursor: pointer; list-style: none; }
.rk-seite .bereich-aufklappbar > summary h2 { display: block; font-size: 29px; }

/* Fusszeile mit Rechtstexten */
.rk-fuss { text-align: center; padding-bottom: 20px; }
.rk-fuss ul { list-style: none; padding: 0; margin: 0; }
.rk-fuss li { display: inline-block; margin: 0 10px; }
.rk-fuss li::before { display: none; }

/* Formulare (formulare-App, [[form:<slug>]]) */
.rk-seite .formulare-form { padding: 0 20px; text-align: left; font-weight: 400; }
.rk-seite .formulare-form p { margin: 0 0 1rem; }
.rk-seite .formulare-form label {
  display: block;
  font-size: 12px;
  margin-bottom: 0.5rem;
}
.rk-seite .formulare-form p.is-required label::after { content: " *"; color: var(--rk-akzent); }
.rk-seite .formulare-form input[type="text"],
.rk-seite .formulare-form input[type="email"],
.rk-seite .formulare-form input[type="tel"],
.rk-seite .formulare-form input[type="number"],
.rk-seite .formulare-form input[type="date"],
.rk-seite .formulare-form textarea,
.rk-seite .formulare-form select {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font: inherit;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.5;
  color: #212529;
  background-color: var(--rk-flaeche);
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
}
.rk-seite .formulare-form textarea { min-height: 96px; resize: vertical; }
.rk-seite .formulare-form input:focus,
.rk-seite .formulare-form textarea:focus,
.rk-seite .formulare-form select:focus {
  color: #212529;
  background-color: #fff;
  border-color: var(--rk-akzent);
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgb(128 49 0 / 20%);
}
.rk-seite .formulare-form p:has(img.captcha) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
}
.rk-seite .formulare-form p:has(img.captcha) label { width: 100%; text-align: center; }
.rk-seite .formulare-form img.captcha { width: 150px; }
.rk-seite .formulare-form input[name="captcha_1"] { width: 50%; text-align: center; }
.rk-seite .formulare-form .submit-row button {
  width: 100%;
  height: 37px;
  padding: 0.375rem 0.75rem;
  font: inherit;
  font-size: 14px;
  letter-spacing: normal;
  color: #fff;
  background-color: var(--rk-link);
  border: 1px solid var(--rk-link);
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all 0.5s;
}
.rk-seite .formulare-form .submit-row button:hover {
  background-color: var(--rk-akzent);
  border-color: var(--rk-akzent);
}
.rk-seite .formulare-form .errorlist,
.rk-seite .formulare-form .formulare-field-error { list-style: none; padding: 0; margin: 0; color: #b3261e; font-size: 12px; }
.rk-seite .formulare-form p.has-error input,
.rk-seite .formulare-form p.has-error textarea { border-color: #b3261e; }
.rk-seite .formulare-antwort { margin-top: 1rem; text-align: center; font-size: 14px; }
.rk-seite .formulare-antwort.is-success { color: #1b5e20; }
.rk-seite .formulare-antwort.is-error { color: #b3261e; }

/* Rechtstexte und lange Fliesstexte: nicht zu schmal zentriert */
.rk-sektion table { margin: 0 auto; }

/* Tablet/Handy: Seitenleiste unter dem Kopf, einspaltig */
@media (max-width: 1000px) {
  body.rk-seite {
    display: block;
    max-width: 960px;
    padding-right: 12px;
  }
  .rk-leiste {
    position: static;
    width: 200px;
    margin: 0 auto;
    padding-top: 90px;
  }
  .rk-leistenbild { display: none; }
  .rk-abschnitte { padding-top: 20px; }
  .rk-seite img { max-width: 100%; height: auto; }
  .rk-seite .formulare-form { padding: 0; }
}
@media (max-width: 991px) { body.rk-seite { max-width: 720px; } }
@media (max-width: 767px) { body.rk-seite { max-width: 540px; } }
@media (max-width: 575px) { body.rk-seite { max-width: none; } }
@media (max-width: 530px) {
  .rk-kopf h1 {
    font-size: 6.5vw;
    word-break: break-all;
    white-space: normal;
  }
  .rk-untertitel { font-size: 4.15vw; }
}
/* Kleine Bildschirmhoehe: Seitenleiste laeuft weiter mit (Abstand oben bleibt), dafuer wird das Hausbild kleiner.
   svh: sichtbare Hoehe auf Tablets mit Adressleiste */
@media (min-width: 1001px) and (min-height: 594px) and (max-height: 699px) {
  .rk-leistenbild img { max-height: calc(100vh - 514px); max-height: calc(100svh - 514px); width: auto; }
}
/* Zu niedrig fuer die kompakte Leiste: scrollt mit statt mitzulaufen */
@media (min-width: 1001px) and (max-height: 593px) {
  .rk-leiste { position: static; }
}

/* Google-Bewertung (Grundform in site.css): weisse Schrift trotz .rk-seite a. */
.rk-seite .gb-knopf-zeile a.gb-knopf, .rk-seite .gb-knopf-zeile a.gb-knopf:hover { color: #fff; text-decoration: none; }
