/* Musterhof: gemeinsame Schlussregeln aller Fassungen. Laedt als letzte Stildatei und gewinnt.
   Startbild (Plaketten und Karten in allen Kombinationen), Verlauf hinter der Textspalte, Logo im Fuss.
   Breakpoints nur 490, 768, 1040. Farben nur aus den Variablen der Themen. */

/* ---------------------------------------------------------------- Plaketten: eine Gestalt fuer alle Arten */
.held .status-reihe > .status:not([hidden]) {
  display: block; inline-size: fit-content; max-inline-size: 100%;
  padding: 10px 18px 10px 14px; border-radius: 16px;
  background: rgb(var(--thema-tiefer-rgb, 10 31 53) / 0.88);
  border: 1px solid rgb(var(--thema-gold-rgb, 180 134 63) / 0.6);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.12), 0 2px 6px rgb(0 0 0 / 0.25), 0 22px 44px -18px rgb(0 0 0 / 0.75);
  font: 400 1rem / 1.4 var(--f-text); color: #FFFDF8;
}
.held .status-reihe > .status .status__punkt {
  display: inline-block; vertical-align: 0.02em; inline-size: 11px; block-size: 11px; margin-inline-end: 11px;
  box-shadow: 0 0 0 3px rgb(123 224 164 / 0.22);
}
.held .status-reihe > .status[data-art="zu"] .status__punkt { box-shadow: 0 0 0 3px rgb(240 167 154 / 0.22); }
.held .status-reihe > .status[data-art="pause"] .status__punkt,
.held .status-reihe > .status[data-art="frei"] .status__punkt { box-shadow: 0 0 0 3px rgb(242 196 106 / 0.24); }
.held .status-reihe > .status .status__zeile1 { font: 600 1.125rem / 1.3 var(--f-anzeige); letter-spacing: 0.005em; color: #FFFDF8; }
.held .status-reihe > .status .status__zeile2 { font-weight: 400; color: #F3E6CC; white-space: normal; }
@media (max-width: 489.98px) {
  .held .status-reihe > .status:not([hidden]) { padding: 8px 14px 8px 12px; border-radius: 14px; font-size: 0.9375rem; }
  .held .status-reihe > .status .status__zeile1 { font-size: 1.0625rem; }
}

/* ---------------------------------------------------------------- Startbild ab 768: Plaketten im Fluss, Karten als Stapel
   Die Plaketten stehen oben in der Textspalte und schieben nichts unter die Kopfleiste. Eine Reihe ist vorgehalten,
   damit Ueberschrift und Text nicht springen, wenn die Antwort des Servers kommt. Rechts steht der Kartenstapel
   (Heute frei, Heute noch frei, Platz fuer Ihre Feier) in einer Spalte, gleich breit, mit gleichem Abstand. */
@media (min-width: 768px) {
  .held .status-reihe {
    position: static; translate: none; inset: auto; margin: 0 0 var(--a-5);
    min-block-size: 46px; max-inline-size: 100%;
  }
  .held__karten {
    position: absolute; z-index: 1; inset-block-start: var(--a-8);
    inset-inline-end: max(var(--a-5), calc((100% - var(--rahmen)) / 2));
    display: flex; flex-direction: column; gap: var(--a-5); inline-size: 17rem;
  }
  .held__karten:empty { display: none; }
  :root .held .held__karten > .schluessel, :root .held .held__karten > .rs-heute, :root .held .held__karten > .platzkarte {
    position: relative; inset: auto; margin: 0; inline-size: auto;
  }
  .held:has(.held__karten > *) .held__text { padding-inline-end: calc(17rem + var(--a-6)); }
}
@media (min-width: 768px) and (max-width: 1039.98px) {
  :root .held .held__karten > .rs-heute { padding: var(--a-5); }
}
/* Landgasthof: drei Plaketten passen erst ab 1280 in eine Reihe, darunter sind zwei vorgehalten */
@media (min-width: 768px) and (max-width: 1279.98px) {
  :root[data-fassung="landgasthof"] .held .status-reihe { min-block-size: calc(2 * 46px + var(--a-2)); }
}
@media (min-width: 1040px) {
  .held__text { padding-block: var(--a-8) var(--a-9); }
  .held__karten { inline-size: 19rem; }
  /* Die Textspalte reicht nur bis zum Stapel; die Ueberschrift ist ohnehin schmaler */
  .held:has(.held__karten > *) .held__text { padding-inline-end: calc(19rem + var(--a-6)); }
}
/* Niedrige Fenster (1280 x 720 und 800): Ueberschrift nach der Hoehe, Knoepfe bleiben im ersten Blick */
@media (min-width: 1040px) and (max-height: 860px) {
  .held h1 { font-size: clamp(2.75rem, 9.6vh, 5.75rem); }
  .held__lead { margin-block: var(--a-4) var(--a-5); }
  .held__text { padding-block: var(--a-7) var(--a-8); }
  .held__karten { inset-block-start: var(--a-7); gap: var(--a-4); }
  :root .held .held__karten > .schluessel { padding-block: var(--a-4); }
  .held__karten > .schluessel .schluessel__zahl { font-size: 2.75rem; }
}

/* ---------------------------------------------------------------- Verlauf hinter der Textspalte von 768 bis 1039
   Bei 768 liegt der Text auf hellen Stellen der Fotos (Lichter im Saal, Hauswand). Dunkler, damit Kicker und Lead
   gegen die echten Pixel 7:1 erreichen. */
@media (min-width: 768px) and (max-width: 1039.98px) {
  .held .held__foto::after, .held .held__foto[data-held]::after {
    background: linear-gradient(90deg, rgb(20 14 8 / 0.8) 0%, rgb(20 14 8 / 0.66) 45%, rgb(20 14 8 / 0.22) 75%, rgb(20 14 8 / 0.05) 100%),
                linear-gradient(180deg, rgb(20 14 8 / 0.3) 0%, rgb(20 14 8 / 0.12) 30%, rgb(20 14 8 / 0.42) 58%, rgb(20 14 8 / 0.85) 100%);
  }
}

/* ---------------------------------------------------------------- Erklaerfenster: zu welcher Seite die Probe gehoert */
.erklaerfenster .erklaer__seite { color: var(--tinte); }
.erklaerfenster .erklaer__weiter:not([hidden]) {
  display: block; margin-block: var(--a-5) 0; padding: var(--a-4) var(--a-5); border-radius: 18px;
  background: var(--thema-gold-flaeche, #F1EADB); border: 1px solid var(--thema-gold-rand, #DCCBA6); color: var(--tinte); font-weight: 600;
}

/* ---------------------------------------------------------------- Logo im Fuss: dasselbe Zeichen wie im Kopf, in der Farbe der Seite */
.fuss__marke .logo { display: block; block-size: 60px; inline-size: auto; }
:root[data-thema="restaurant"] .fuss__marke .logo [fill="#112f4d"],
:root[data-thema="festsaal"] .fuss__marke .logo [fill="#112f4d"] { fill: var(--thema-tief); }

/* ---------------------------------------------------------------- Kontrast AAA nachgezogen
   Holzton der Kicker: 7,6:1 auf der Goldflaeche, 7,2:1 auf Thema-hell (vorher 6,99 und 6,68).
   Mittagstisch-Tafel ausserhalb des Restaurant-Themas: Lichtpunkt dunkler, Text 7,7:1 und Kicker 7,3:1 (vorher 6,99 und 6,66). */
:root { --holz: #654026; }
:root:not([data-thema="restaurant"]) .mittag__tafel { background: radial-gradient(90% 120% at 100% 0%, #183858 0%, var(--salbei-tief) 55%, #0B2238 100%); }

/* ---------------------------------------------------------------- Panel-Kacheln kompakt: Zeichen links, Titel und Satz rechts.
   Ziel: am Rechner (1280x800, 1440x900) Ueberschrift, alle Kacheln und Knoepfe unter der Kopfleiste auf einem Bildschirm. */
.gastgeber .abschnitt__kopf { margin-block-end: var(--a-6); }
.kacheln { gap: var(--a-3); }
.kacheln li {
  grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto 1fr;
  column-gap: var(--a-3); row-gap: var(--a-1); align-content: start;
  padding: var(--a-4) var(--a-4) var(--a-4) var(--a-3); border-radius: 20px;
}
.kacheln .kachel__zeichen { grid-row: 1 / span 2; align-self: start; inline-size: 48px; block-size: 48px; margin-block-end: 0; }
.kacheln .kachel__zeichen svg { inline-size: 26px; block-size: 26px; }
.kacheln h3 { margin: 0; font-size: 1.25rem; line-height: 1.3; align-self: end; }
.kacheln p { margin: 0; line-height: 1.5; }
.gastgeber__knoepfe { margin-block-start: var(--a-6); }
@media (min-width: 1040px) {
  .abschnitt.gastgeber { padding-block: var(--a-7); }
  .kacheln:has(> li:nth-child(7)) { grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr)); }
}
