[x-cloak] { display: none !important; }
body { background: var(--bs-tertiary-bg); }
.preis-tabelle th:first-child, .preis-tabelle td:first-child { min-width: 14rem; }
.preis-tabelle th { white-space: nowrap; font-weight: 600; font-size: .875rem; }
.preis-zelle { cursor: pointer; white-space: nowrap; }
.preis-zelle:hover { background: var(--bs-primary-bg-subtle); }
.gastpreis { font-weight: 600; font-size: 1.05rem; }
.ne-zeile { margin-top: .2rem; padding-top: .2rem; border-top: 1px dashed var(--bs-border-color); }
.ne-zeile:hover { text-decoration: underline; }
tr.belegt td { opacity: .55; }
.rabatt-chip { display: inline-flex; align-items: center; border: 1px solid var(--bs-border-color); border-radius: 2rem; padding: .15rem .7rem; font-size: .875rem; cursor: pointer; background: var(--bs-body-bg); }
.rabatt-chip.an { border-color: var(--bs-primary); background: var(--bs-primary-bg-subtle); }
.detail-hintergrund { position: fixed; inset: 0; background: rgba(0,0,0,.35); display: flex; align-items: flex-start; justify-content: center; padding: 4vh 1rem; z-index: 1050; overflow-y: auto; }
.detail-fenster { width: 100%; max-width: 34rem; }
.pflege-tabelle td, .pflege-tabelle th { white-space: nowrap; font-size: .78rem; }
.pflege-tabelle .btn-sm { font-size: .78rem; }
.pflege-tabelle td.gruppen-zelle { vertical-align: top; font-weight: 600; background: var(--bs-body-bg); cursor: default; border-right: 1px solid var(--bs-border-color); }
.pflege-tabelle tr.gruppen-start > td { border-top: 2px solid var(--bs-border-color); }
.preis-tabelle td:first-child, .preis-tabelle th:first-child { position: sticky; left: 0; background: var(--bs-body-bg); z-index: 1; }
@media (max-width: 576px) {
	.preis-tabelle th:first-child, .preis-tabelle td:first-child { min-width: 9.5rem; max-width: 9.5rem; white-space: normal; box-shadow: 2px 0 3px rgba(0,0,0,.06); }
	.gastpreis { font-size: .95rem; }
}
/* Oberes Menü und Leiste stehen fest */
nav.navbar { position: sticky; top: 0; z-index: 1030; }
.steuerleiste { position: sticky; top: var(--ps-nav-h, 0px); z-index: 1020; }
.steuerleiste > .card-body { max-height: calc(100vh - var(--ps-nav-h, 0px) - .5rem); overflow-y: auto; }
/* Ebenen (Rabatte, Einstellungen): Kopf zum Einklappen, Inhalt mit eigener Höhe, Griff zum Ziehen */
.ebene { border: 1px solid var(--bs-border-color); border-radius: .375rem; margin-top: .5rem; background: var(--bs-body-bg); }
.ebene-kopf { display: flex; align-items: center; gap: .4rem; padding: .25rem .6rem; background: var(--bs-tertiary-bg); border-bottom: 1px solid var(--bs-border-color);
	border-radius: .375rem .375rem 0 0; cursor: pointer; user-select: none; font-size: .9rem; }
.ebene-kopf:hover { background: var(--bs-secondary-bg); }
.ebene-zu { font-size: .8rem; color: var(--bs-link-color); }
.ebene-kopf:hover .ebene-zu { text-decoration: underline; }
.ebene-inhalt { overflow: auto; padding: .4rem .6rem; }
.ebene-inhalt.rabatt-bereich { max-height: 25vh; }
.ebene-inhalt.einstellungen-bereich { max-height: 40vh; }
.ebene-griff { height: 12px; cursor: ns-resize; display: flex; align-items: center; justify-content: center; touch-action: none;
	border-top: 1px solid var(--bs-border-color); background: var(--bs-tertiary-bg); border-radius: 0 0 .375rem .375rem; }
.ebene-griff span { width: 3rem; height: 4px; border-radius: 2px; background: var(--bs-secondary-color); opacity: .6; }
.ebene-griff:hover span, .ebene-griff.aktiv span { opacity: 1; background: var(--bs-primary); }
.ebene-knopf { font-size: .8rem; padding: .1rem .55rem; }
.haus-kopf { cursor: pointer; user-select: none; }
.haus-kopf:hover { background: var(--bs-secondary-bg); }
.klapp-pfeil { display: inline-block; transition: transform .15s; font-size: .8rem; }
.klapp-pfeil.zu { transform: rotate(-90deg); }
.pflege-tabelle .auswahl-spalte { width: 2rem; cursor: default; }
.pflege-tabelle td.gruppen-zelle { cursor: pointer; }
.kopier-leiste { position: sticky; top: var(--ps-nav-h, 0px); z-index: 1020; }
.quelle-badge { font-size: .65rem; font-weight: 500; background: var(--bs-info-bg-subtle); color: var(--bs-info-text-emphasis); vertical-align: middle; }
/* Editor in der Simulation (Tabellen-Stil) */
.ed-label { font-size: .75rem; font-weight: 600; color: var(--bs-secondary-color); }
.ed-knopf { font-size: .78rem; padding: .1rem .5rem; border-radius: 1rem; }
.ed-reiter .nav-link { font-size: .85rem; padding: .3rem .8rem; }
.ed-reiter .nav-link.active { background: var(--bs-primary-bg-subtle); font-weight: 600; }
.ed-tabelle { font-size: .78rem; }
.ed-tabelle th { font-weight: 600; white-space: normal; line-height: 1.15; background: var(--bs-tertiary-bg); color: var(--bs-secondary-color); vertical-align: bottom; }
.ed-tabelle td { padding: 0; vertical-align: middle; position: relative; }
.ed-tabelle td.text-center { padding: 0 .4rem; }
.ed-zelle { width: 100%; border: 0; background: transparent; padding: .2rem .35rem; font-size: .78rem; color: inherit; min-width: 0; }
.ed-zelle:focus { outline: 2px solid var(--bs-primary); outline-offset: -2px; background: var(--bs-body-bg); }
select.ed-zelle { cursor: pointer; }
.ed-sp-klein { width: 3.6rem; min-width: 3.6rem; }
.ed-sp-zahl { width: 4.6rem; min-width: 4.6rem; }
.ed-sp-lang { width: 5.1rem; min-width: 5.1rem; }
.ed-tabelle th { hyphens: manual; overflow-wrap: normal; }
.ed-portal td { min-width: 6rem; }
.ed-portal th.ed-zeilenkopf { white-space: nowrap; font-weight: 600; vertical-align: middle; }
.ed-tabelle td.ed-verschieden, .ed-tabelle td.ed-abweichend { background: var(--ps-verschieden-bg); }
.ed-tabelle tr.ed-inaktiv td { color: var(--bs-secondary-color); text-decoration: line-through; }
.ed-tabelle tr.ed-neu td { padding: .3rem; background: var(--bs-success-bg-subtle); }
.ed-auf > summary { padding: .2rem .35rem; cursor: pointer; white-space: normal; max-width: 12rem; list-style: none; }
.ed-auf > summary::after { content: ' ▾'; color: var(--bs-secondary-color); }
.ed-popup { min-width: 12rem; margin: 0 .25rem .25rem; background: var(--bs-body-bg); border: 1px solid var(--bs-border-color); border-radius: .375rem; padding: .5rem; }
.ed-popup-label { width: 6.5rem; flex: none; }
.ed-loeschen { font-size: 1.1rem; line-height: 1; text-decoration: none; padding: 0 .4rem !important; }
.portal-gewaehlt { background: var(--bs-primary-bg-subtle) !important; }
/* Rabatt-Tabelle nur so breit wie ihr Inhalt */
.ed-rabatte { width: auto; }
.ed-rabatte select.ed-typ { width: auto; }
.ed-zahl { width: 3.2rem; }
.ed-werte .btn { font-size: .72rem; padding: .05rem .1rem; min-width: 1.45rem; }
.ed-eigener-wert { border: 1px solid var(--bs-border-color); border-radius: .25rem; width: 3rem !important; }
.ed-eigener-wert.ed-eigener-aktiv { border-color: var(--bs-primary); background: var(--bs-primary-bg-subtle); font-weight: 600; }
/* Entwurf: geändert, aber noch nicht gespeichert. Dezent: heller Sandton mit schmalem Strich links */
:root { --ps-entwurf-bg: #fcf6ee; --ps-entwurf-strich: #e2b980; --ps-entwurf-text: #9a7444; --ps-entwurf-knopf: #f3e2c9; }
/* Die Seiten sind immer hell (kein Dunkelmodus in Bootstrap eingeschaltet), deshalb hier auch keine dunklen Farben:
   sonst bekamen geänderte Zellen bei dunkel eingestelltem System einen tiefbraunen Hintergrund auf heller Seite. */
:root { --ps-verschieden-bg: #fdf8e6; }
.ed-tabelle td.ed-entwurf { background: var(--ps-entwurf-bg); box-shadow: inset 3px 0 0 var(--ps-entwurf-strich); }
.ed-werte .btn.ed-ursprung { box-shadow: inset 0 0 0 2px var(--bs-success); font-weight: 700; }
.ed-werte .btn.ed-knopf-entwurf { background: var(--ps-entwurf-knopf); border-color: var(--ps-entwurf-strich); color: var(--bs-body-color); font-weight: 600; }
.ed-legende { display: inline-block; width: .9rem; height: .9rem; vertical-align: -2px; border: 1px solid var(--bs-border-color); }
.ed-legende.ed-entwurf { background: var(--ps-entwurf-bg); box-shadow: inset 3px 0 0 var(--ps-entwurf-strich); }
.ed-legende.ed-verschieden { background: var(--ps-verschieden-bg); }
.ed-legende-ring { display: inline-block; width: .9rem; height: .9rem; vertical-align: -2px; box-shadow: inset 0 0 0 2px var(--bs-success); border-radius: .2rem; }
.entwurf-leiste { background: var(--ps-entwurf-bg); border: 1px solid var(--bs-border-color); border-left: 3px solid var(--ps-entwurf-strich); border-radius: .375rem; padding: .3rem .6rem; }
.vorher-zeile { color: var(--ps-entwurf-text); }
.ed-regel-hinweis { max-width: 60rem; }

/* Preisplan */
.plan-tabelle { font-size: .85rem; }
.plan-tabelle th { vertical-align: bottom; font-weight: 600; }
.plan-tabelle td { vertical-align: middle; }
.plan-buchstabe { display: inline-block; font-size: .7rem; font-weight: 400; color: var(--bs-secondary-color); border: 1px solid var(--bs-border-color); border-radius: .2rem; padding: 0 .2rem; }
.plan-f { width: 6.5rem; margin-left: auto; }
.plan-zahl { width: 5rem; }
.plan-ergebnis { background: var(--bs-success-bg-subtle) !important; }
.plan-alt { color: var(--ps-entwurf-text); text-decoration: line-through; text-decoration-color: var(--ps-entwurf-strich); }
.plan-unter-min { box-shadow: inset 3px 0 0 var(--bs-danger); }
.plan-tabelle td.small, .plan-portal { white-space: nowrap; }
.plan-tabelle th:first-child, .plan-tabelle td:first-child { min-width: 9rem; }

/* Historie beim Frühbucher-Wochenpreis */
.plan-historie { display: block; margin-left: auto; padding: 0; font-size: .75rem; white-space: nowrap; text-decoration: none; }
.plan-historie:hover { text-decoration: underline; }
.plan-historie[aria-expanded="true"]::after { content: " ▴"; }
.plan-historie[aria-expanded="false"]::after { content: " ▾"; }
.plan-historie-zeile > td { background: var(--bs-tertiary-bg) !important; }
.plan-historie-inhalt { position: sticky; left: .5rem; max-width: min(48rem, calc(100vw - 3rem)); }
.plan-historie-tabelle { --bs-table-bg: transparent; }
.plan-historie-tabelle td, .plan-historie-tabelle th { white-space: nowrap; }
.plan-grenzen span { white-space: nowrap; }
.plan-historie-kurz td { color: var(--bs-secondary-color) !important; }
.plan-historie-trenner td { font-weight: 600; padding-top: .6rem !important; }
.plan-historie-grund { font-size: .75rem; }
.plan-leiste { background: var(--bs-success-bg-subtle); border: 1px solid var(--bs-border-color); border-left: 3px solid var(--bs-success); border-radius: .375rem; padding: .3rem .6rem; }
.pflege-je-haus td, .pflege-je-haus th { vertical-align: middle; font-size: .85rem; }
.pflege-je-haus tr.pflege-abweichend td { background: var(--ps-verschieden-bg); }
.buchungsdatum input[type=date] { padding-top: .15rem; padding-bottom: .15rem; }
.buchungsdatum-anders input[type=date] { border-color: var(--bs-warning); background: var(--bs-warning-bg-subtle); }
.plan-anleitung { background: var(--bs-tertiary-bg); }
.plan-schritte > li { margin-bottom: .6rem; }
.plan-schritte > li .badge { font-weight: 500; margin-right: .25rem; }
.pl-haus { padding: .35rem 0; border-top: 1px solid var(--bs-border-color-translucent); }
.pl-haus:first-of-type { border-top: 0; }
.pl-saisons td, .pl-saisons th { white-space: nowrap; }
.pl-saisons .badge { font-weight: 500; }
.pl-saisons tr.pl-gleich td { color: var(--bs-secondary-color); }
.pl-saisons tr.pl-entfaellt td { color: var(--bs-danger-text-emphasis); text-decoration: line-through; }
.pl-saisons tr.pl-entfaellt td:first-child { text-decoration: none; }
.pl-alt { color: var(--bs-secondary-color); font-size: .85em; }
.pl-bestaetigen { background: var(--bs-warning-bg-subtle); border: 1px solid var(--bs-warning-border-subtle); }
