/* --- Schriften, selbst ausgeliefert -------------------------------------
   Dieselben wie auf der Studio-Seite, damit ein Interessent sieht, dass die
   Handschrift dieselbe ist. Kein Aufruf an fonts.googleapis.com.
   Variable Fonts: eine Datei je Familie und Subset.
   ---------------------------------------------------------------------- */

@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('fonts/SourceSans3-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: 'Source Sans 3';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('fonts/SourceSans3-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;
}

@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('fonts/SourceSerif4-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: 'Source Serif 4';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('fonts/SourceSerif4-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;
}

/* ==========================================================================
   Tagesliste — Muster-Demo (Paket C, Stufe 2)
   Kein Kundenprojekt. Neutrale Linie, damit sie in jeder Kundenfarbe läuft:
   alles Farbige hängt an den Tokens unter :root.
   Zwei Seiten: index.html = Gast bucht, team.html = Betrieb sieht den Tag.
   ========================================================================== */

:root {
  /* Hausfarben des Studios — dieselben Tokens wie hani-elzaim.
     Pro Kunde werden genau diese Werte ersetzt, siehe "Design pro Kunde". */
  --paper:     #F1EBE1;
  --card:      #FAF6EF;
  --ink:       #1F1A16;
  --ink-2:     #5C534A;
  --accent:    #8F3D1B;
  --accent-2:  #6F2E14;
  --accent-on: #FAF6EF;
  --wash:      #F2E2D8;

  --ok:     #2F6B4F;
  --warn:   #8A5A00;
  --bad:    #A03026;
  --muted:  #6B655F;

  --line:      #D4CBBC;
  --line-soft: rgba(31, 26, 22, 0.10);

  /* Optional: Bild der Seitenfläche (z. B. Wandstruktur samt dunkler Lasur)
     und der Rand um die Karte, wenn die Seite im iframe läuft. Ohne Thema:
     kein Bild, kein Rand — wie bisher. */
  --paper-bild: none;
  --rand-eingebettet: 0;

  /* light oder dark — Auswahllisten, Checkboxen, Datumsfelder und
     Scrollbalken des Browsers folgen damit dem Thema */
  --schema: light;

  --f-sans:  "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --f-mono:  ui-monospace, SFMono-Regular, Menlo, "Courier New", monospace;

  --t-xs: 0.75rem;  --t-sm: 0.8438rem; --t-base: 0.9375rem;
  --t-md: 1.0625rem; --t-lg: 1.375rem;  --t-xl: clamp(1.6rem, 1.1rem + 2.2vw, 2.4rem);

  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem;
  --s5: 1.5rem; --s6: 2rem;  --s7: 3rem;

  --r:   10px;
  --r-s: 7px;
  --pad: clamp(1rem, 4vw, 2.25rem);
  --wide: 68rem;
}

/* --- Design pro Kunde ----------------------------------------------------
   Es gibt bewusst KEINE Farbeinstellung in der Oberfläche. Das Design macht
   Hani je Kunde von Hand — genau das ist das Verkaufsargument gegenüber einem
   Baukasten. Diese Datei bleibt dabei unangetastet: Das Design des Kunden
   liegt in assets/themen/<betrieb>.css und wird über vars.THEMA gewählt
   (Vorbild: themen/nackenlinie.css).

   Was in die Themen-Datei gehört, und sonst nichts:
     1. die Farb-Tokens unter :root: --paper, --card, --ink, --ink-2,
        --accent, --accent-2, --accent-on, --wash, --line, --line-soft,
        --muted und die Statusfarben --ok, --warn, --bad
     2. --schema: dark, wenn die Website dunkel ist
     3. bei Bedarf --f-sans, --f-serif, --f-mono samt @font-face; Dateien in
        public/assets/fonts/ (holen mit bin/schriften-holen)
     4. bei Bedarf --r und --r-s
     5. liegen Buchung und Vorführung auf der Website auf verschiedenen
        Flächen: dieselben Tokens getrennt unter :root:has(main.gastseite)
        und :root:has(main.vorfuehrung)
     6. bei Bedarf --paper-bild (background-image der Seite, Pfad absolut,
        Datei in assets/themen/) und --rand-eingebettet (Abstand um die
        Karte im iframe, damit die Fläche dort sichtbar bleibt)
   Alles Farbige hängt an den Tokens, nichts an festen Werten. Druckregeln
   gehören nicht ins Thema — der Druck unten stellt die Tokens für jedes
   Thema auf Schwarz auf Weiß.
   Anleitung mit Beispielen: Vorlagen/Tagesliste_Einrichtung_pro_Kunde.md,
   Abschnitt 6.

   Oben stehen die Hausfarben des Studios. Solange ein Kunde nichts eigenes
   hat, sieht seine Tagesliste aus wie hani-elzaim — gewollt, das zeigt, dass
   die Handschrift dieselbe ist.
   ------------------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; color-scheme: var(--schema); }
/* Mindestens so hoch wie das Fenster: Ein --paper-bild (cover) reicht sonst nur über den
   Inhalt und wiederholt sich darunter mit sichtbarer Kante. */
html { min-height: 100%; }

body {
  background: var(--paper);
  background-image: var(--paper-bild);
  background-size: cover;
  background-position: center;
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: var(--t-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--f-serif);   /* wie auf der Studio-Seite */
  line-height: 1.2;
  font-weight: 620;
  letter-spacing: -0.014em;
}
p { margin: 0 0 var(--s3); }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--wide); margin-inline: auto; padding-inline: var(--pad); }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --- Demo-Balken -------------------------------------------------------- */

.demobar {
  background: var(--ink);
  color: var(--paper);
  font-size: var(--t-xs);
  padding: var(--s2) 0;
}
.demobar .wrap { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; justify-content: space-between; }
.demobar b { font-weight: 620; }
.demobar .db-text { max-width: 46rem; }

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

.top { border-bottom: 1px solid var(--line-soft); background: var(--card); }
.top .wrap { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); align-items: baseline; justify-content: space-between; padding-block: var(--s4); }
.brand { font-family: var(--f-serif); font-weight: 680; font-size: var(--t-md); letter-spacing: -0.02em; text-decoration: none; }
.brand small { display: block; font-weight: 450; font-size: var(--t-xs); color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.top nav { display: flex; gap: var(--s4); font-size: var(--t-sm); }
.top nav a { color: var(--ink-2); text-decoration: none; padding-bottom: 2px; border-bottom: 2px solid transparent; }
.top nav a:hover { color: var(--ink); }
.top nav a[aria-current] { color: var(--ink); border-bottom-color: var(--accent); font-weight: 560; }

main { padding-block: var(--s6) var(--s7); }

.lede { max-width: 38rem; margin-bottom: var(--s6); }
.lede h1 { font-size: var(--t-xl); margin-bottom: var(--s3); }
.lede p { color: var(--ink-2); font-size: var(--t-md); }

/* --- Karten und Formular ------------------------------------------------ */

.card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  padding: var(--s5);
}
.grid-2 { display: grid; gap: var(--s5); grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }

.step + .step { margin-top: var(--s5); padding-top: var(--s5); border-top: 1px solid var(--line-soft); }
.step-h { display: flex; gap: var(--s3); align-items: baseline; margin-bottom: var(--s3); }
.step-n {
  font-family: var(--f-mono); font-size: var(--t-xs); color: var(--accent);
  border: 1px solid var(--accent); border-radius: 50%;
  width: 1.55rem; height: 1.55rem; display: grid; place-items: center; flex: none;
}
.step-h h2 { font-size: var(--t-md); }
.step-h .hint { margin-left: auto; font-size: var(--t-xs); color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip {
  font: inherit; font-size: var(--t-sm); font-family: var(--f-mono);
  background: transparent; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-s);
  padding: .42rem .7rem; cursor: pointer; line-height: 1.3; text-align: center;
}
.chip:hover:not(:disabled) { border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-on); }
.chip:disabled { opacity: .38; cursor: not-allowed; text-decoration: line-through; }
.chip small { display: block; font-family: var(--f-sans); font-size: var(--t-xs); opacity: .72; text-decoration: none; }
.chip-day { min-width: 4.4rem; }

.fields { display: grid; gap: var(--s3); grid-template-columns: 1fr 1fr; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .fields { grid-template-columns: 1fr; } }

label { display: block; font-size: var(--t-xs); color: var(--ink-2); margin-bottom: var(--s1); font-weight: 560; letter-spacing: .01em; }
input[type="text"], input[type="tel"], input[type="email"], input[type="date"],
input[type="time"], input[type="number"], input[type="password"], select, textarea {
  width: 100%; font: inherit; font-size: var(--t-sm);
  color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r-s);
  padding: .5rem .65rem;
}
textarea { resize: vertical; min-height: 4.5rem; }
input:disabled { opacity: .6; cursor: not-allowed; }
label > input:not([type="checkbox"]), label > select { margin-top: var(--s1); }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

.check { display: flex; gap: var(--s3); align-items: flex-start; font-size: var(--t-sm); color: var(--ink-2); }
.check input { margin-top: .28rem; flex: none; }

.btn {
  font: inherit; font-weight: 600; font-size: var(--t-sm);
  background: var(--accent); color: var(--accent-on);
  border: 1px solid var(--accent); border-radius: var(--r-s);
  padding: .58rem 1.15rem; cursor: pointer;
}
.btn:hover:not(:disabled) { background: var(--accent-2); border-color: var(--accent-2); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover:not(:disabled) { background: var(--wash); border-color: var(--accent); color: var(--ink); }
.btn-sm { font-size: var(--t-xs); padding: .34rem .6rem; }

.formfoot { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; margin-top: var(--s4); }
.formfoot .err { color: var(--bad); font-size: var(--t-sm); }

/* Seitenspalte */
.aside h3 { font-size: var(--t-sm); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: var(--s3); }
.aside ul { margin: 0 0 var(--s5); padding-left: 1.1rem; color: var(--ink-2); font-size: var(--t-sm); }
.aside li { margin-bottom: var(--s2); }
.aside ul:last-child { margin-bottom: 0; }

.note {
  font-size: var(--t-sm); color: var(--ink-2);
  background: var(--wash); border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-s) var(--r-s) 0; padding: var(--s3) var(--s4);
}
.note strong { color: var(--ink); }

/* Bestätigung */
.done { text-align: left; }
.done .tick { width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--accent); color: var(--accent-on); display: grid; place-items: center; font-size: 1.3rem; margin-bottom: var(--s4); }
.done h2 { font-size: var(--t-lg); margin-bottom: var(--s3); }
.recap { display: grid; grid-template-columns: auto 1fr; gap: var(--s2) var(--s5); font-size: var(--t-sm); margin: var(--s4) 0; }
.recap dt { color: var(--muted); }
.recap dd { margin: 0; font-family: var(--f-mono); }

/* --- Buchung in Schritten ------------------------------------------------
   Eine Frage im Bild, oben die Anzeige, unten Zurück/Weiter, am Ende die
   Übersicht (gast.js). Nur Tokens, damit es in jedem Thema passt. */

.gastseite .step + .step { margin-top: 0; padding-top: 0; border-top: 0; }
.gastseite .step-n { display: none; }   /* die Nummer steht schon in der Anzeige */
.step-h h2:focus { outline: none; }   /* Fokus wandert beim Schrittwechsel auf die Frage */

/* Eine Zeile, auch am Handy: die Verbindungslinien dehnen sich und
   schrumpfen, statt dass der letzte Schritt umbricht. */
.schritte {
  list-style: none; margin: 0 0 var(--s5); padding: 0;
  display: flex; align-items: center; gap: var(--s2);
  font-size: var(--t-xs); color: var(--muted);
}
.schritte li { display: flex; align-items: center; gap: var(--s2); flex: none; }
/* Linie nur hinter einem sichtbaren Vorgänger — beim Handwerk fehlt Schritt 1 */
.schritte li:not([hidden]) ~ li { flex: 1 1 auto; }
.schritte li[hidden] { display: none; }
.schritte li:not([hidden]) ~ li::before { content: ""; flex: 1 1 1rem; min-width: .4rem; height: 1px; background: var(--line); }
.schritte .l { white-space: nowrap; }
.schritte .n {
  width: 1.45rem; height: 1.45rem; display: grid; place-items: center; flex: none;
  border: 1px solid var(--line); border-radius: 50%; font-family: var(--f-mono);
}
.schritte li.erledigt .n { border-color: var(--accent); color: var(--accent); }
.schritte li[aria-current="step"] { color: var(--ink); font-weight: 600; }
.schritte li[aria-current="step"] .n { background: var(--accent); border-color: var(--accent); color: var(--accent-on); }
/* Schmal: nur Nummern, der aktuelle Schritt mit Namen */
@media (max-width: 34rem) {
  .schritte li:not([aria-current]) .l { display: none; }
}

.meldung { margin-bottom: var(--s4); }

.schritt-nav {
  display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center;
  margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--line-soft);
}
.schritt-nav .vor { margin-left: auto; }

.uebersicht { margin: 0; font-size: var(--t-sm); }
.uebersicht .zeile {
  display: grid; grid-template-columns: minmax(5.5rem, 8rem) minmax(0, 1fr); gap: var(--s4);
  align-items: baseline; padding: var(--s3) 0; border-bottom: 1px solid var(--line-soft);
}
.uebersicht .zeile:last-child { border-bottom: 0; }
.uebersicht dt { color: var(--muted); }
.uebersicht dd {
  margin: 0; display: flex; gap: var(--s3); justify-content: space-between; align-items: baseline;
  font-weight: 560; overflow-wrap: anywhere;
}
.aendern {
  flex: none; font: inherit; font-size: var(--t-xs); font-weight: 500; color: var(--ink-2);
  background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: .2em;
}
.aendern:hover { color: var(--accent); }

/* Schmal: Bezeichnung über dem Wert, damit Mailadressen nicht mitten im Wort
   brechen; Knöpfe volle Breite, der nächste Schritt oben. */
@media (max-width: 34rem) {
  .uebersicht .zeile { grid-template-columns: minmax(0, 1fr); gap: var(--s1); }
  .schritt-nav { flex-direction: column-reverse; align-items: stretch; }
  .schritt-nav .btn { width: 100%; }
  .schritt-nav .vor { margin-left: 0; }
}

/* --- Tagesliste (Team) -------------------------------------------------- */

.daybar { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; margin-bottom: var(--s4); }
.daybar .spacer { flex: 1 1 auto; }
.daybar h2 { font-size: var(--t-lg); }
.daybar .sub { font-size: var(--t-xs); color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: var(--s3); margin-bottom: var(--s5); }
.stat { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r); padding: var(--s3) var(--s4); }
.stat b { display: block; font-family: var(--f-mono); font-size: var(--t-lg); font-weight: 600; letter-spacing: -0.02em; }
.stat span { font-size: var(--t-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

.tablewrap { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r); overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; font-size: var(--t-sm); min-width: 52rem; }
table.list th {
  text-align: left; font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .07em;
  color: var(--muted); font-weight: 600; padding: var(--s3) var(--s3);
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.list td { padding: var(--s2) var(--s3); border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.list tr:last-child td { border-bottom: 0; }
table.list tbody tr:hover { background: var(--wash); }
td.t-time { font-family: var(--f-mono); font-weight: 600; white-space: nowrap; }
td.t-time small { display: block; font-weight: 400; font-size: var(--t-xs); color: var(--muted); }
td.t-name { font-weight: 560; }
td.t-name small { display: block; font-weight: 400; color: var(--muted); }
td.t-pax { font-family: var(--f-mono); text-align: center; }
td.t-fit { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--muted); white-space: nowrap; }
td.t-note { color: var(--ink-2); max-width: 14rem; }
td.t-tel { font-family: var(--f-mono); font-size: var(--t-xs); white-space: nowrap; }
td.t-tel a { color: var(--ink-2); text-decoration: none; }
tr.is-off td { opacity: .5; }
tr.is-off td.t-name { text-decoration: line-through; }

td select { font-size: var(--t-xs); padding: .26rem .4rem; background: var(--card); min-width: 6.6rem; }
select.warn-fit { border-color: var(--warn); color: var(--warn); font-weight: 600; }

.pill { font-size: var(--t-xs); font-weight: 600; padding: .1rem .45rem; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.pill-neu { color: var(--muted); }
.pill-ok  { color: var(--ok); }
.pill-da  { color: var(--accent-on); background: var(--ok); border-color: var(--ok); }
.pill-no  { color: var(--bad); }

.printonly { display: none; }

.empty { padding: var(--s6); text-align: center; color: var(--muted); font-size: var(--t-sm); }

.tools { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }

details.tables { margin-top: var(--s5); }
details.tables summary { cursor: pointer; font-size: var(--t-sm); color: var(--ink-2); font-weight: 560; }
.tablechips { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }
.tablechip { font-family: var(--f-mono); font-size: var(--t-xs); border: 1px solid var(--line); border-radius: var(--r-s); padding: .3rem .55rem; background: var(--card); }

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

.foot { border-top: 1px solid var(--line-soft); margin-top: var(--s7); padding-block: var(--s5); font-size: var(--t-xs); color: var(--muted); }
.foot a { color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.fertig-weiter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  align-items: center;
  margin-top: var(--s4);
}

/* --- Vorführung ----------------------------------------------------------
   Der Balken macht unübersehbar, dass hier kein echter Betrieb steht, und die
   Vorschau zeigt den Wortlaut der Bestätigung ohne Mailversand.
   ------------------------------------------------------------------------ */

.demobalken {
  background: var(--accent);
  color: var(--accent-on);
  font-size: var(--t-sm);
  line-height: 1.45;
  padding: var(--s2) var(--pad);
  text-align: center;
}
.demobalken strong { letter-spacing: .02em; text-transform: uppercase; font-size: var(--t-xs); }

.mailvorschau {
  margin: var(--s4) 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  overflow: hidden;
}
.mailvorschau figcaption {
  padding: var(--s3) var(--s4);
  background: var(--wash);
  border-bottom: 1px solid var(--line-soft);
  font-size: var(--t-sm);
  font-weight: 560;
}
.mailkopf {
  padding: var(--s3) var(--s4);
  border-bottom: 1px solid var(--line-soft);
  display: grid;
  gap: var(--s1);
  font-size: var(--t-xs);
}
.mailkopf div { display: flex; gap: var(--s2); }
.mailkopf span { color: var(--muted); min-width: 4.25rem; }
.mailkopf b { font-weight: 560; overflow-wrap: anywhere; }
.mailvorschau pre {
  margin: 0;
  padding: var(--s4);
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.mailvorschau .note { padding: 0 var(--s4) var(--s3); margin: 0; }

/* --- Eingebettet ---------------------------------------------------------
   ?eingebettet=1 (einbettung.js): Die Seite läuft im iframe der Website des
   Betriebs. Kopf und Einleitung stellt dann die Website, nicht die Tagesliste.
   Der Hintergrund bleibt --paper — das Thema der Umgebung setzt ihn auf die
   Fläche der Website, damit der Rand des iframes nicht zu sehen ist.
   ------------------------------------------------------------------------ */

.gastseite { padding-block: var(--s6); }

.eingebettet .top,
.eingebettet .lede { display: none; }
.eingebettet main,
.eingebettet .gastseite { padding: var(--rand-eingebettet); max-width: none; }
.eingebettet .demobalken { border-radius: var(--r-s); margin-bottom: var(--s4); }

/* Vorführung: Teamliste nur lesen — fünf Spalten passen ohne Querscrollen. */
table.list-lesen { min-width: 0; }
table.list-lesen td { padding-block: var(--s3); }
tr.is-neu td { background: var(--wash); }
tr.is-neu td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.vorfuehrung .daybar { margin-bottom: var(--s3); }
.lesen-hinweis { margin: var(--s4) 0 0; }
.eingebettet .vorfuehrung { padding: var(--s4); }
@media (max-width: 30rem) {
  /* schmaler iframe am Handy: Zeit, Platz, Name — der Rest passt nicht */
  table.list-lesen th:nth-child(n+4), table.list-lesen td:nth-child(n+4), .vorfuehrung #stand { display: none; }
  table.list-lesen th, table.list-lesen td { padding-inline: var(--s2); }
  .vorfuehrung .daybar { flex-wrap: nowrap; }
  .vorfuehrung .daybar h2 { font-size: var(--t-md); }
}

/* --- Druck: die Tagesliste geht aufs Pass --------------------------------- */

@media print {
  /* Papier ist weiß, egal wie dunkel das Thema ist. !important, weil das
     Thema nach dieser Datei geladen wird und seitenweise Blöcke haben kann. */
  :root {
    --paper: #fff !important; --card: #fff !important; --wash: #eee !important;
    --ink: #000 !important; --ink-2: #333 !important; --muted: #555 !important;
    --accent: #000 !important; --accent-2: #000 !important; --accent-on: #fff !important;
    --ok: #2F6B4F !important; --warn: #8A5A00 !important; --bad: #A03026 !important;
    --line: #999 !important; --line-soft: #ccc !important;
    --paper-bild: none !important;
    --schema: light !important;
  }
  .demobar, .demobalken, .mailvorschau, .top nav, .tools, .daybar .btn, .daybar select, details.tables, .foot, .noprint { display: none !important; }
  body { background: #fff; color: #000; font-size: 10.5pt; }
  .card, .tablewrap, .stat { border-color: #999; }
  table.list { min-width: 0; }
  table.list td select { display: none; }
  .printonly { display: inline-block; border: 0; padding: 0; font-weight: 500; }
  main { padding-block: 0; }
}

/* --- Schutz und Hinweise --------------------------------------------------
   Falle: ein Feld, das nur Programme ausfüllen. Nicht display:none — manche
   Spam-Programme überspringen genau das.
   ------------------------------------------------------------------------ */

.falle { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.hinweis-doppelt {
  display: inline-block; font-size: var(--t-xs); font-weight: 600; line-height: 1.4;
  color: var(--warn); border: 1px solid currentColor; border-radius: 999px; padding: 0 .4rem;
  cursor: help;
}

.stoerung { margin-bottom: var(--s4); border-left-color: var(--bad); }
.betroffen { border-color: var(--warn); }
.betroffen table.list { min-width: 0; }

/* --- Feiertage in den Einstellungen ------------------------------------- */

.unterkopf { font-size: var(--t-sm); margin-top: var(--s5); }
.feiertage { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: var(--s2) var(--s4); }
.feiertage .check { margin: 0; font-weight: 450; }
.feiertage .check small { display: block; font-size: var(--t-xs); color: var(--muted); font-weight: 400; }
