/* Buchung - Akzent und Sonderbausteine fuer den Bildschirm. Das gemeinsame Bild kommt aus firmen.css,
   der Ausdruck aus styles.css. Farben nur ueber die Variablen aus firmen.css. */
:root {
  --g: linear-gradient(135deg, #fdba74 0%, #ea580c 60%, #431407 120%);
  --accent: #ea580c;
}

nav.tabs { flex-wrap: wrap; }
@media (max-width: 560px) {
  nav.tabs button { font-size: 13px; padding: 10px 2px; }
}
.muster { border-color: color-mix(in srgb, var(--warn) 55%, transparent); color: var(--warn); font-weight: 600; font-size: 14px; }
#gError { margin-bottom: 10px; }
.buttons { display: grid; margin-bottom: 12px; }
.wahl.spalte { flex-direction: column; flex-wrap: nowrap; gap: 10px; }
.wahl label { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--text); cursor: pointer; }
.wahl label span { min-width: 0; overflow-wrap: anywhere; }
.kopf { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.kopf h3 { min-width: 0; overflow-wrap: anywhere; }
.kopf > .muted { white-space: nowrap; flex: none; }
.summe { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; flex: none; }
.liste { list-style: none; padding: 0; display: grid; gap: 0; margin-top: 8px; }
.liste li { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 9px 0; border-top: 1px solid var(--border); font-size: 14px; }
.liste li > span:first-child { min-width: 0; overflow-wrap: anywhere; line-height: 1.5; flex: 1; }
.liste li.weg > span:first-child { opacity: .55; }
.liste li.weg > span:first-child b { text-decoration: line-through; }
.knoepfe { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; flex: none; max-width: 48%; }
.badge.aus { color: var(--muted); }
.badge.angefragt { color: var(--warn); }
.badge.bestaetigt { color: var(--ok); }

/* Tagesleiste des Kalenders */
.tagwahl { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.tagwahl input[type="date"] { flex: 1; min-width: 0; }
.tagwahl button { flex: none; }

/* Terminkalender (Termine nach Uhrzeit): Zeitachse, eine Minute ist ein Pixel. Schmale Bildschirme rollen quer. */
.kalwahl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 4px; }
.kalwahl select { width: auto; flex: 1; min-width: 120px; padding: 8px 10px; }
.kalwahl .knoepfe { max-width: none; margin-left: auto; }
.umschalter { display: flex; background: var(--surface); border: 1px solid var(--border-stark); border-radius: var(--radius-s); padding: 2px; flex: none; }
.umschalter button { background: none; border: 0; border-radius: 6px; padding: 7px 14px; font-size: 13px; font-weight: 600; color: var(--text-soft); }
.umschalter button.on { background: var(--akzent-flaeche); color: var(--auf-akzent); text-shadow: var(--akzent-schatten); }
.kalkarte { padding: 10px; }
.kal-rahmen { overflow-x: auto; }
.kal { display: grid; column-gap: 1px; min-width: 100%; }
.kal .ecke, .kal .achse { position: sticky; left: 0; z-index: 4; background: var(--surface); }
.kal .kopfz { font-size: 13px; font-weight: 600; text-align: center; padding: 4px 4px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: none; border: 0; color: var(--text); }
.kal button.kopfz:hover { color: var(--akzent-stark); text-decoration: underline; }
.kal .kopfz.heute { color: var(--akzent-stark); }
.kal .achse { position: sticky; }
.kal .achse span { position: absolute; right: 6px; transform: translateY(-50%); font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.kal .achse span:first-child { transform: none; }
.kal .spalte { position: relative; background: var(--surface-2); border-left: 1px solid var(--border); overflow: hidden; }
.kal .spalte::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: repeating-linear-gradient(to bottom, var(--border) 0 1px, transparent 1px 60px); }
.kal .offen { position: absolute; left: 0; right: 0; background: var(--surface); }
.kal .kopfz small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.kal .dienst { position: absolute; left: 0; width: 3px; background: color-mix(in srgb, var(--accent) 55%, var(--surface)); z-index: 1; }
.dienstzeile { font-size: 13px; color: var(--text-soft); margin: 0 0 8px; }
.kal .jetzt { position: absolute; left: 0; right: 0; height: 2px; background: var(--off); z-index: 3; pointer-events: none; }
.block { border: 0; border-left: 3px solid var(--accent); border-radius: 5px; background: color-mix(in srgb, var(--accent) 16%, var(--surface));
  color: var(--text); font-size: 12px; line-height: 1.25; text-align: left; padding: 1px 5px; overflow: hidden; }
.kal .block { position: absolute; z-index: 2; box-shadow: 0 0 0 1px var(--surface); display: grid; align-content: start; }
.block i { font-style: normal; }
.block span { display: block; color: var(--text-soft); }
.block.angefragt { border-left-color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, var(--surface)); outline: 1px dashed var(--warn); outline-offset: -1px; }
.block.eigen { border-left-color: var(--muted); background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--muted) 22%, var(--surface)) 0 6px, color-mix(in srgb, var(--muted) 10%, var(--surface)) 6px 12px); }
.block.gewaehlt { box-shadow: 0 0 0 2px var(--akzent-stark); z-index: 3; }
.legende { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; font-size: 12px; color: var(--muted); }
.legende .block { padding: 2px 8px; }

/* Belegung ueber mehrere Tage (Naechte) */
.raster-rahmen { overflow-x: auto; margin-top: 10px; }
table.belegung { border-collapse: collapse; font-size: 13px; min-width: 100%; }
table.belegung th, table.belegung td { border: 1px solid var(--border); padding: 6px 6px; text-align: center; white-space: nowrap; }
table.belegung th:first-child, table.belegung td:first-child { text-align: left; position: sticky; left: 0; background: var(--surface); max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
table.belegung td.belegt { background: color-mix(in srgb, var(--accent) 38%, transparent); font-weight: 600; }
table.belegung td.angefragt { background: color-mix(in srgb, var(--warn) 30%, transparent); }
table.belegung th.wochenende { color: var(--muted); }

/* Auslastung eines Termins mit Plaetzen */
.balken { height: 8px; border-radius: 4px; background: var(--border); margin-top: 8px; overflow: hidden; }
.balken > span { display: block; height: 100%; background: var(--accent); }

/* Einstellung */
.gespeichert { color: var(--ok); font-weight: 600; font-size: 14px; text-align: right; margin-top: 8px; }
.zeiten { display: grid; gap: 8px; margin-top: 8px; }
.zeiten .tag { display: grid; grid-template-columns: 96px 1fr; gap: 8px; align-items: start; font-size: 14px; }
.zeiten .felder { display: grid; gap: 6px; }
.zeiten .paar { display: flex; gap: 6px; align-items: center; }
.zeiten .paar input { min-width: 0; flex: 1; }
textarea.code { font-family: ui-monospace, Consolas, monospace; font-size: 12px; min-height: 86px; width: 100%; }
.einbetten { display: grid; gap: 10px; margin-top: 10px; }
.einbetten a { overflow-wrap: anywhere; color: var(--accent); }
/* QR-Code zur Buchungsseite: immer dunkel auf hell, auch im dunklen Bild - sonst liest ihn die Kamera nicht */
.qrtitel { margin-top: 18px; font-size: 15px; }
.qrzeile { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; margin-top: 10px; }
.qr { flex: none; width: 180px; background: #fff; border-radius: 8px; line-height: 0; overflow: hidden; }
.qr svg { width: 100%; height: auto; display: block; }
.qrgrenzen { flex: 1; min-width: 200px; margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.5; display: grid; gap: 6px; }
#aufsteller { display: none; }
