/* Reservierungen – nutzt die Farben/Abstände aus /static/v4/app.css (Chef-Ansicht und Rezeptions-PC) */
.res { display: grid; gap: var(--s5); }
.res h1 { font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.res h2 { font-size: var(--fs-h2, 17px); font-weight: 600; margin-bottom: var(--s2); }
.res-sub { color: var(--text-2); margin-top: 4px; }
.res-leise { color: var(--text-3); font-size: var(--fs-small); padding: var(--s2) 0; }
.res-fehler { color: var(--err); background: var(--err-soft); border-radius: var(--r); padding: var(--s3) var(--s4); font-size: var(--fs-small); }
.res-hinweis { color: var(--text-3); font-size: var(--fs-small); }
.res-kopf { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); flex-wrap: wrap; }
.res-aktionen { display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; }
.res-seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.res-seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; font: inherit; font-size: var(--fs-small); color: var(--text-2); cursor: pointer; }
.res-seg button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); font-weight: 600; }
.res-datum { display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; }
.res-datum .input { width: auto; }
.res-wer { color: var(--text-3); font-size: var(--fs-tiny); }
.res-spalten { display: grid; grid-template-columns: minmax(320px, 1fr) minmax(360px, 1.15fr); gap: var(--s5); align-items: start; }
.res-spalten > section { min-width: 0; }

/* Liste nach Uhrzeit */
.res-liste { display: grid; gap: 8px; }
.res-zeile { display: grid; grid-template-columns: 70px 1fr auto auto; gap: var(--s3); align-items: center; text-align: left; width: 100%;
  padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; box-shadow: var(--shadow); }
.res-zeile:hover { border-color: var(--coral); }
.res-zeile:focus-visible { outline: none; box-shadow: var(--focus); }
.res-zeit { font-weight: 700; font-variant-numeric: tabular-nums; display: grid; }
.res-zeit small { font-weight: 500; color: var(--text-2); }
.res-haupt { display: grid; min-width: 0; }
.res-haupt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res-haupt span { color: var(--text-2); font-size: var(--fs-small); }
.res-tische { display: grid; justify-items: end; font-weight: 600; font-variant-numeric: tabular-nums; }
.res-tische small { font-weight: 500; color: var(--warn); font-size: var(--fs-tiny); }
.res-status { font-size: var(--fs-tiny); font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); }
.res-status.storniert { background: var(--surface-2); color: var(--text-3); }
.res-zeile.storniert { opacity: .7; box-shadow: none; }
.res-zeile.storniert b { text-decoration: line-through; }
.res-storno { margin-top: var(--s3); }
.res-storno summary { cursor: pointer; color: var(--text-2); font-size: var(--fs-small); margin-bottom: 8px; }
.res-storno .res-zeile { margin-bottom: 6px; }

/* Tischplan über den Tag */
.res-plan { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: var(--s3); display: grid; gap: 4px; box-shadow: var(--shadow); }
.res-plan-kopf, .res-plan-zeile { display: grid; grid-template-columns: 48px 1fr; gap: 8px; align-items: center; }
.res-achse { position: relative; height: 16px; }
.res-achse i { position: absolute; transform: translateX(-50%); font-style: normal; font-size: 10px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.res-plan-tisch { font-weight: 700; display: grid; line-height: 1.1; }
.res-plan-tisch small { font-weight: 500; font-size: 10px; color: var(--text-3); }
.res-plan-zeile.inaktiv { opacity: .5; }
.res-plan-bahn { position: relative; height: 30px; border-radius: 8px; background:
  repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px calc(100% / var(--n))), var(--surface-2); }
.res-block { position: absolute; top: 3px; bottom: 3px; border-radius: 6px; border: 0; padding: 0 6px; font: inherit; font-size: 11px; font-weight: 600;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis; cursor: pointer; color: #fff; background: var(--coral); text-align: left; }
.res-block.veranstaltung { background: #6B5BD2; }
.res-block:focus-visible { outline: 2px solid var(--text); outline-offset: 1px; }
.res-jetzt { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--err); border-radius: 2px; z-index: 1; }
.res-legende { font-size: var(--fs-tiny); color: var(--text-3); display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.res-legende .res-block { position: static; display: inline-block; width: 14px; height: 10px; padding: 0; cursor: default; }

/* Dialog */
.res-dialog { width: min(720px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); border: 1px solid var(--line); border-radius: var(--r-xl, 20px);
  padding: 0; background: var(--surface); color: var(--text); box-shadow: var(--shadow-pop, 0 30px 80px rgba(0,0,0,.25)); }
.res-dialog::backdrop { background: var(--backdrop); }
.res-dialog-kopf { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px 8px; position: sticky; top: 0; background: var(--surface); z-index: 1; }
.res-dialog-kopf h2 { font-size: 20px; font-weight: 700; }
.res-x { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; }
.res-dialog-inhalt { padding: 8px 22px 22px; }
.res-form { display: grid; gap: var(--s3); }
.res-form.flach { gap: var(--s2); }
.res-raster { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr .8fr .9fr; gap: var(--s3); }
.res-raster.zwei { grid-template-columns: 1.4fr 1fr 1.2fr; }
.res-feld { display: grid; gap: 4px; font-size: var(--fs-small); color: var(--text-2); min-width: 0; }
.res-feld .input { width: 100%; }
.res-dauer { display: flex; align-items: center; gap: 6px; }
.res-dauer small { color: var(--text-3); }
.res-personen { font-weight: 700; }
.res-typen { display: flex; gap: 8px; flex-wrap: wrap; }
.res-typen label { cursor: pointer; }
.res-typen input { position: absolute; opacity: 0; pointer-events: none; }
.res-typen span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); font-weight: 600; font-size: var(--fs-small); }
.res-typen input:checked + span { background: var(--coral); border-color: var(--coral); color: #fff; }
.res-typen input:focus-visible + span { box-shadow: var(--focus); }
.res-zuteilung { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); padding: var(--s3) var(--s4); display: grid; gap: 6px; }
.res-zu-kopf { display: flex; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; }
.res-zu-kopf.warn b { color: var(--err); }
.res-zu-liste { margin: 0; padding-left: 1.2em; font-weight: 600; display: grid; gap: 2px; }
.res-zusatz { color: var(--warn); }
.res-zu-knoepfe { display: flex; gap: 8px; flex-wrap: wrap; }
.res-wahl-tische { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.res-wahl-tische label { cursor: pointer; }
.res-wahl-tische input { position: absolute; opacity: 0; }
.res-wahl-tische span { display: inline-grid; justify-items: center; min-width: 54px; padding: 6px 8px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 12px; }
.res-wahl-tische span small { color: var(--text-3); }
.res-wahl-tische input:checked + span { border-color: var(--coral); box-shadow: 0 0 0 2px var(--coral-soft); background: var(--coral-soft); }
.res-wahl-tische input:focus-visible + span { box-shadow: var(--focus); }
.res-knoepfe { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.res-knoepfe .gefahr-text { margin-right: auto; color: var(--err); }
.btn.primary.gefahr { background: var(--err); border-color: var(--err); }
.res-verlauf summary { cursor: pointer; color: var(--text-2); font-size: var(--fs-small); }
.res-verlauf p { font-size: var(--fs-small); margin: 6px 0; }
.res-verlauf small { color: var(--text-3); }

/* Verwaltung */
.res-tabelle { display: grid; gap: 6px; }
.res-tz { display: grid; grid-template-columns: 56px 1.2fr 62px 62px 1.1fr .9fr 1fr 48px 44px 120px; gap: 8px; align-items: center; }
.res-tz.kopf { font-size: var(--fs-tiny); color: var(--text-3); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.res-tz .input { width: 100%; }
.res-tz.neu { padding-top: 8px; border-top: 1px dashed var(--line-strong); }
.res-tz-aktion { display: flex; gap: 6px; align-items: center; }
.res-tz-aktion small { color: var(--text-3); font-size: var(--fs-tiny); }
.res-check, .res-check-zeile { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.res-check input, .res-check-zeile input { width: 18px; height: 18px; accent-color: var(--coral); }
.res-personen-liste { display: grid; gap: 6px; }
.res-test { background: var(--warn-soft); color: var(--warn); padding: 1px 6px; border-radius: 6px; }

@media (max-width: 980px) { .res-spalten { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .res-raster, .res-raster.zwei { grid-template-columns: 1fr 1fr; }
  .res-feld.breit { grid-column: 1 / -1; }
  .res-zeile { grid-template-columns: 56px 1fr auto; } .res-zeile .res-status { display: none; }
  .res-tz { grid-template-columns: 52px 1fr 56px 56px; } .res-tz > :nth-child(n+5):not(:last-child), .res-tz.kopf > :nth-child(n+5) { display: none; }
  .res-wer { margin-left: 0; width: 100%; }
}


/* ---------- Überarbeitete Tagesansicht: Datumsleiste, Tagesliste, Tischplan (volle Breite) ---------- */
.res-leiste { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); flex-wrap: wrap;
  padding: 8px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.res-leiste .res-datum { gap: 6px; flex-wrap: nowrap; }
.res-pfeil { min-width: 36px; font-size: 18px; line-height: 1; }
.res-tag { position: relative; display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 10px; cursor: pointer;
  font-weight: 700; font-size: 16px; border: 1px solid transparent; }
.res-tag:hover { background: var(--surface-2); }
.res-tag:focus-within { box-shadow: var(--focus); }
.res-tag-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; border: 0; }
.res-tag-input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.res-heute { font-size: var(--fs-tiny); font-weight: 700; color: var(--coral); background: var(--coral-soft); padding: 2px 8px; border-radius: 999px; margin-left: 6px; }
.res-summe { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); font-weight: 600; color: var(--text-2); padding: 0 4px; }
.res-leer { border: 1px dashed var(--line-strong); border-radius: var(--r); padding: var(--s5); text-align: center; color: var(--text-2); display: grid; gap: 8px; justify-items: center; }
.res-leer.klein { padding: var(--s3); }

/* Tagesliste als Tabelle (Desktop) bzw. kompakte Einträge (schmal) */
.res-tabelle-liste { display: grid; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.res-lz { display: grid; grid-template-columns: 120px minmax(160px, 2fr) 90px minmax(140px, 1.6fr) 150px 110px; gap: 12px; align-items: center;
  padding: 12px 16px; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--text); font: inherit; text-align: left; width: 100%; }
.res-lz.kopf { border-top: 0; background: var(--surface-2); font-size: var(--fs-tiny); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); padding: 8px 16px; }
button.res-lz { cursor: pointer; }
button.res-lz:hover { background: var(--coral-soft); }
button.res-lz:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--coral); }
.res-lz.storniert { color: var(--text-3); }
.res-lz.storniert .res-n b { text-decoration: line-through; }
.res-z { font-variant-numeric: tabular-nums; color: var(--text-2); }
.res-z b { color: var(--text); font-size: 16px; }
.res-n { display: grid; min-width: 0; }
.res-n b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res-notiz-hinweis { color: var(--text-3); font-size: var(--fs-tiny); }
.res-p { font-weight: 700; font-variant-numeric: tabular-nums; }
.res-p small { display: block; font-weight: 500; font-size: 12px; color: var(--text-3); white-space: nowrap; }
.res-t { display: grid; font-weight: 600; }
.res-t small { color: var(--warn); font-weight: 500; font-size: var(--fs-tiny); }
.res-mobil { display: none; font-weight: 500; }
.res-typ { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-small); font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.res-typ.fruehstueck { background: var(--coral-soft); color: var(--coral-strong); }
.res-typ.veranstaltung { background: rgba(107, 91, 210, .14); color: #5546C2; }
:root[data-theme="dark"] .res-typ.veranstaltung { color: #B4AAFF; background: rgba(140, 125, 245, .2); }

/* Tischplan: eigener Scrollbereich, Tische links und Uhrzeiten oben bleiben sichtbar */
.res-plan-leiste { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); flex-wrap: wrap; padding: 0 4px; }
.res-schalter { display: inline-flex; gap: 8px; align-items: center; font-size: var(--fs-small); cursor: pointer; }
.res-schalter input { width: 18px; height: 18px; accent-color: var(--coral); }
.res-plan-scroll { overflow: auto; max-height: min(70vh, 760px); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.res-plan-scroll:focus-visible { outline: none; box-shadow: var(--focus); }
.res-plan2 { display: grid; grid-template-columns: 170px minmax(calc(var(--stunden) * 54px), 1fr); min-width: max-content; }
.res-p2-ecke, .res-p2-achse { position: sticky; top: 0; z-index: 3; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.res-p2-ecke { left: 0; z-index: 4; padding: 8px 12px; font-size: var(--fs-tiny); font-weight: 700; text-transform: uppercase; color: var(--text-3); }
.res-p2-achse { display: grid; grid-template-columns: repeat(var(--stunden), 1fr); }
.res-p2-achse span { padding: 8px 6px; font-size: var(--fs-tiny); font-weight: 600; color: var(--text-2); border-left: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.res-p2-tisch { position: sticky; left: 0; z-index: 2; background: var(--surface); padding: 8px 12px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); display: grid; line-height: 1.25; }
.res-p2-tisch small { color: var(--text-3); font-size: var(--fs-tiny); }
.res-p2-tisch.inaktiv { color: var(--text-3); }
.res-p2-bahn { position: relative; min-height: 48px; border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px calc(100% / var(--stunden))); }
.res-block2 { position: absolute; top: 6px; bottom: 6px; display: flex; align-items: center; gap: 4px; padding: 0 8px; border-radius: 8px; border: 0;
  font: inherit; font-size: 12px; font-weight: 600; color: #fff; background: var(--coral); cursor: pointer; overflow: hidden; white-space: nowrap; text-align: left; min-width: 22px; }
.res-block2.veranstaltung { background: #6B5BD2; }
.res-block2:hover { filter: brightness(1.06); }
.res-block2:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; z-index: 2; }
.res-b-text { overflow: hidden; text-overflow: ellipsis; }
.res-legende { flex-wrap: wrap; }

@media (max-width: 760px) {
  .res-leiste { flex-direction: column; align-items: stretch; }
  .res-leiste .res-datum { justify-content: space-between; }
  .res-tag { font-size: 15px; padding: 0 6px; flex: 1; justify-content: center; text-align: center; }
  .res-leiste .res-seg { display: grid; grid-template-columns: repeat(3, 1fr); }
  .res-tabelle-liste .res-lz.kopf { display: none; }
  .res-lz { grid-template-columns: auto 1fr; grid-template-areas: "z n" "p t" "a s"; row-gap: 4px; column-gap: 12px; padding: 12px 14px; }
  .res-z { grid-area: z; } .res-n { grid-area: n; } .res-p { grid-area: p; } .res-t { grid-area: t; } .res-a { grid-area: a; } .res-s { grid-area: s; justify-self: end; }
  .res-mobil { display: inline; }
  .res-plan2 { grid-template-columns: 112px minmax(calc(var(--stunden) * 64px), 1fr); }
  .res-plan-scroll { max-height: 64vh; }
}
.res-filter { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 10px 0; }
.res-filter input[type="search"] { flex: 1 1 220px; max-width: 360px; }
.res-filter .pchip { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 999px; padding: 4px 12px; font: inherit; font-size: 13px; cursor: pointer; color: var(--text); }
.res-filter .pchip[aria-pressed="true"] { background: var(--coral); border-color: var(--coral); color: #fff; }

.res-typ.online { background: color-mix(in srgb, #2F6FBF 12%, transparent); color: #2F6FBF; }
.res-online { grid-column: 1 / -1; }
.res-wt { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.res-wt label { display: inline-flex; gap: 5px; align-items: center; }
.res-online-zahlen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 640px) { .res-online-zahlen { grid-template-columns: 1fr; } }
.res-check.gross { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
/* Hausgäste (ibelsa), Räume (Angebote), Optionen, Frühstückskapazität */
.res-status.option { background: color-mix(in srgb, var(--warn, #c98a00) 16%, transparent); color: var(--warn, #9a6a00); }
.res-typ.hausgast { background: color-mix(in srgb, #2f7a55 14%, transparent); color: #2f7a55; }
.res-typ.raum { background: color-mix(in srgb, #2F6FBF 14%, transparent); color: #2F6FBF; }
:root[data-theme="dark"] .res-typ.hausgast { color: #7fd1a6; } :root[data-theme="dark"] .res-typ.raum { color: #8fb8f0; }
.res-kap { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; padding: 10px 14px; border-radius: 14px; margin: 0 0 12px;
  background: color-mix(in srgb, #2f7a55 10%, var(--surface, #fff)); border: 1px solid color-mix(in srgb, #2f7a55 25%, transparent); }
.res-kap.knapp { background: color-mix(in srgb, var(--warn, #c98a00) 12%, var(--surface, #fff)); border-color: color-mix(in srgb, var(--warn, #c98a00) 35%, transparent); }
.res-kap.voll { background: color-mix(in srgb, var(--err, #b3261e) 10%, var(--surface, #fff)); border-color: color-mix(in srgb, var(--err, #b3261e) 35%, transparent); }
.res-kap span { color: var(--text-2); font-size: var(--fs-small, 14px); }
.res-kap .res-kap-frei { margin-left: auto; font-weight: 700; color: var(--text); }
.res-lz.res-hg { background: color-mix(in srgb, #2f7a55 6%, transparent); }
.res-lz.res-hg-zeile { opacity: .85; }
.res-n small { display: block; }
.res-block2.hausgast { background: color-mix(in srgb, #2f7a55 22%, var(--surface, #fff)); color: #1f5a3d; border: 1px dashed color-mix(in srgb, #2f7a55 55%, transparent); }
:root[data-theme="dark"] .res-block2.hausgast { color: #b8f0d2; }
.res-kap .res-kap-warn { color: var(--err, #b3261e); font-weight: 600; }

/* Status, Hinweise, Liste & Suche, Offline, Druck */
.res-status.angefragt { background: #FCEFCB; color: #6B4E00; }
.res-status.angekommen, .res-status.platziert { background: #DCEBFA; color: #1D4F7A; }
.res-status.abgeschlossen { background: #E9E4E2; color: #4E4643; }
.res-status.no_show, .res-status.abgelehnt { background: #F9DCDA; color: #8A2320; }
.res-status.warteliste { background: #EEE6F7; color: #4F3474; }
.res-offen { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.res-offen-k { border: 1px solid #F0D59A; background: #FFF6DD; color: #5A4200; border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer; min-height: 40px; }
.res-offen-k.warn { border-color: #F2B8B5; background: #FDECEA; color: #8A2320; cursor: default; }
.res-offline { background: #FDECEA; color: #8A2320; border-radius: 12px; padding: 10px 14px; font-weight: 600; margin: 0 0 12px; }
.res-statusleiste { display: grid; gap: 10px; padding: 0 0 14px; margin: 0 0 14px; border-bottom: 1px solid var(--line, #eee); }
.res-status-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; }
.res-status-knoepfe .btn { min-height: 44px; }
.res-nummer { font-weight: 700; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.res-gastkommentar { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--surface-2, #FDF2EE); }
.res-suchform { display: grid; grid-template-columns: minmax(180px, 2fr) repeat(4, minmax(120px, 1fr)); gap: 10px; align-items: end; margin: 0 0 12px; }
.res-suchform .res-feld { margin: 0; }
.res-suche-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; grid-column: 1 / -1; }
.res-ns.fehler, .res-ns.unklar { color: #8A2320; font-weight: 700; } .res-ns.gesendet { color: #23603F; }
@media (max-width: 760px) { .res-suchform { grid-template-columns: 1fr 1fr; } .res-suchform input[type=search] { grid-column: 1 / -1; } }
@media print {
  body * { visibility: hidden !important; }
  .res, .res * { visibility: visible !important; }
  .res { position: absolute; inset: 0 auto auto 0; width: 100%; }
  .res-aktionen, .res-leiste, .res-filter, .res-wer, .res-offen, .res-offline, .res-suchform, .res-plan-leiste { display: none !important; }
  .res-lz { break-inside: avoid; border-bottom: 1px solid #ccc !important; }
}
.res-filter[hidden] { display: none !important; }
@media (max-width: 560px) { .res-seg { display: flex; flex-wrap: nowrap; } .res-seg button { flex: 1 1 0; min-width: 0; padding-inline: 6px; font-size: 14px; white-space: nowrap; } }
.res-regeln { border: 1px solid var(--line, #eee); border-radius: 12px; padding: 10px 14px; margin: 6px 0 12px; }
.res-regeln > summary { cursor: pointer; padding: 4px 0; }
.res-regeln[open] > summary { margin-bottom: 10px; }
.res-regeln .res-check { display: flex; gap: 8px; align-items: center; margin: 4px 0; font-size: 14px; }
.rp-wrap { border: 1px solid var(--line, #eee); border-radius: 14px; overflow: hidden; background: var(--surface, #fff); margin: 8px 0 10px; }
.rp-svg { display: block; width: 100%; height: auto; touch-action: none; user-select: none; }
.rp-boden { fill: var(--surface-2, #FDF2EE); }
.rp-tisch { cursor: grab; }
.rp-tisch .rp-form { fill: var(--surface, #fff); stroke: var(--line-strong, #E6D3CB); stroke-width: 2; }
.rp-tisch.gewaehlt .rp-form { stroke: var(--coral, #EC5F5E); stroke-width: 4; }
.rp-nr { font: 800 22px var(--font, sans-serif); fill: var(--text, #2B2523); pointer-events: none; }
.rp-info { font: 600 13px var(--font, sans-serif); fill: var(--text-2, #5E5351); pointer-events: none; }
.rp-svg.live .rp-tisch { cursor: default; }
.rp-svg.live .rp-tisch.klickbar { cursor: pointer; }
.rp-tisch.frei .rp-form { fill: #E3F1E8; stroke: #6FB58C; }
.rp-tisch.bald .rp-form { fill: #FCEFCB; stroke: #E2B52F; }
.rp-tisch.belegt .rp-form { fill: #FBE3E1; stroke: #EC5F5E; }
.rp-tisch.gesperrt .rp-form { fill: #E9E4E2; stroke: #9C8E89; stroke-dasharray: 6 4; }
.rp-legende { display: inline-flex; gap: 6px 12px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--text-2); }
.rp-legende i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; border: 2px solid; vertical-align: -2px; margin-right: 2px; }
.rp-legende i.frei { background: #E3F1E8; border-color: #6FB58C; } .rp-legende i.bald { background: #FCEFCB; border-color: #E2B52F; }
.rp-legende i.belegt { background: #FBE3E1; border-color: #EC5F5E; } .rp-legende i.gesperrt { background: #E9E4E2; border-color: #9C8E89; }
.res-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }
.res-chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line, #eee); border-radius: 999px; padding: 6px 8px 6px 14px; font-size: 14px; background: var(--surface, #fff); }
.res-x.klein { width: 28px; height: 28px; font-size: 13px; }
.res-knoepfe.links { justify-content: flex-start; flex-wrap: wrap; }
.res-feld.inline { display: inline-flex; align-items: center; gap: 8px; margin: 0 12px 0 0; }
.res-seg.klein button { padding: 4px 10px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rp-tisch.frei .rp-form { fill: #1F3A2B; } :root:not([data-theme="light"]) .rp-tisch.bald .rp-form { fill: #4A3D14; } :root:not([data-theme="light"]) .rp-tisch.belegt .rp-form { fill: #4A2B2A; } }
:root[data-theme="dark"] .rp-tisch.frei .rp-form { fill: #1F3A2B; } :root[data-theme="dark"] .rp-tisch.bald .rp-form { fill: #4A3D14; } :root[data-theme="dark"] .rp-tisch.belegt .rp-form { fill: #4A2B2A; } :root[data-theme="dark"] .rp-tisch.gesperrt .rp-form { fill: #3A3331; }

/* Gästekartei */
.res-k-werkzeug { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.res-kz { grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 1.2fr) minmax(0, 1fr); }
.res-k-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.res-k-zahl { font-size: .85rem; color: var(--text-3); }
.res-k-frist { margin-top: 28px; }
.res-k-fristform { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.res-k-fristform .res-feld { max-width: 240px; }
.res-k-h { font-size: .95rem; margin: 18px 0 6px; }
.res-k-res { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.res-k-res li { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; justify-content: space-between; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.res-k-kom { flex-basis: 100%; color: var(--text-3); }
.res-k-paare { display: grid; gap: 10px; }
.res-k-paar { display: grid; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.res-knoepfe.links { justify-content: flex-start; }
.res-k-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) {
  .res-kz { grid-template-columns: 1fr; grid-template-areas: none; }
  .res-kz .res-n, .res-kz .res-k-tags, .res-kz .res-k-zahl { grid-area: auto; }
  .res-k-2 { grid-template-columns: 1fr; }
}

/* Spracheingabe im Dialog „Neue Reservierung“ */
.res-mic-kopf { padding-inline: 12px; }
.res-sp-start { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.res-sp-ergebnis { font-size: var(--fs-small); color: var(--ok); margin: 0; }
.res-sp-ergebnis[data-art="warn"] { color: var(--warn); }
.res-sprache { display: grid; gap: var(--s3); padding: var(--s4); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); }
.res-sprache[hidden] { display: none; }
.res-sprache .res-seg { justify-self: start; }
.res-sprache .res-seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); font-weight: 600; }
.res-sp-mitte { display: flex; align-items: center; gap: var(--s4); }
.res-mic { flex: none; width: 64px; height: 64px; border-radius: 50%; border: 0; background: var(--coral); color: var(--on-coral); font-size: 28px; line-height: 1;
  cursor: pointer; box-shadow: var(--shadow); touch-action: manipulation; transition: background-color .15s ease, transform .1s ease; }
.res-mic:hover { background: var(--coral-strong); }
.res-mic:active { transform: scale(.96); }
.res-mic:focus-visible { outline: none; box-shadow: var(--focus); }
.res-mic.an { background: var(--err); animation: res-mic-puls 1.4s ease-out infinite; }
@keyframes res-mic-puls { from { box-shadow: 0 0 0 0 rgba(229, 84, 79, .45); } to { box-shadow: 0 0 0 16px rgba(229, 84, 79, 0); } }
@media (prefers-reduced-motion: reduce) { .res-mic, .res-mic:active { transition: none; transform: none; } .res-mic.an { animation: none; box-shadow: 0 0 0 4px var(--err-soft); } }
.res-sp-status { margin: 0; font-size: var(--fs-small); color: var(--text-2); min-width: 0; }
.res-sp-status[data-art="an"] { color: var(--coral-strong); font-weight: 600; }
.res-sp-status[data-art="ok"] { color: var(--ok); }
.res-sp-status[data-art="fehler"] { color: var(--err); }
.res-sp-text { width: 100%; min-height: 76px; resize: vertical; font-size: 16px; } /* 16 px: iPhone zoomt nicht hinein */
.res-sp-fuss { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; }
.res-sp-fuss .res-hinweis { flex: 1 1 260px; margin: 0; }
.res-feld.res-pruefen .input { border-color: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); }
.res-feld.res-pruefen::after { content: attr(data-pruefen); color: var(--warn); font-size: var(--fs-tiny, 12px); font-weight: 600; }
.res-typen.res-pruefen { outline: 2px solid var(--warn); outline-offset: 3px; border-radius: 10px; }
