/* ==========================================================
   Hotelcockpit · Standard-Design (r257)
   Gilt für alle Kunden mit Standard-Hotelcockpit (ohne eigenen Ordner).
   Aufbau wie das Nesslerhof-Dashboard, Farben im Hotelcockpit-Stil.
   Die Hauptfarben (:root) überschreibt das Layout je Kunde aus den
   Design-Einstellungen – nie hier ändern, sondern dort.
   ========================================================== */

:root {
    --ink: #1f1d38;
    --muted: #77749a;
    --line: #e4e2f1;
    --green: #5d57c9;
    --nav: #1d1a36;
    --bg: #f6f5fb;
    --paper: #fff;
    --lime: #d9d6fb;
    --money: #4f4aa8;
    --serif: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --sans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --side: 222px;
}


* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
img { max-width: 100%; display: block; }
svg { flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Seitenleiste ---------- */
.hm-sidebar { width: var(--side); position: fixed; inset: 0 auto 0 0; background: var(--nav); color: #cac8e3; z-index: 40; display: flex; flex-direction: column; }
.hm-brand { display: block; color: #dcdaf0; padding: 26px 22px 22px; text-align: center; border-bottom: 1px solid #3f3d57; }
.hm-brand img { width: 135px; height: 77px; object-fit: contain; filter: brightness(0) invert(1); opacity: .96; margin: 0 auto; }
.hm-brand span { font-size: 9px; letter-spacing: 2.7px; display: block; margin-top: 17px; text-transform: uppercase; }
.hm-sidebar nav { padding: 14px 12px; overflow-y: auto; flex: 1; scrollbar-width: thin; scrollbar-color: #504d7b transparent; }
.hm-sidebar details { margin-bottom: 10px; }
.hm-sidebar summary { cursor: pointer; font-size: 10px; letter-spacing: 1.7px; text-transform: uppercase; display: flex; align-items: center; justify-content: space-between; color: #a6a4c6; list-style: none; padding: 11px 9px; }
.hm-sidebar summary::-webkit-details-marker { display: none; }
.hm-sidebar summary svg { transition: transform .15s; }
.hm-sidebar details:not([open]) summary svg { transform: rotate(-90deg); }
.hm-nav { width: 100%; display: flex; gap: 10px; align-items: center; color: #c6c4df; font-size: 13px; padding: 10px; border-radius: 6px; margin: 2px 0; min-height: 38px; transition: background .15s; }
.hm-nav:hover { background: #373552; color: #fff; }
.hm-nav.hm-active { background: var(--lime); color: #211e46; }
.hm-nav span { flex: 1; }
.hm-nav.is-soon { color: #9a97ba; }
.hm-nav.is-soon.hm-active { color: #211e46; }
.hm-nav em { width: 5px; height: 5px; border-radius: 50%; background: #54517d; }
.hm-nav.hm-active em { background: #7874b7; }
.hm-side-footer { border-top: 1px solid #3f3d5c; display: flex; align-items: center; gap: 10px; padding: 17px 14px; }
.hm-natalie { display: grid; place-items: center; width: 33px; height: 33px; background: #746ecd; color: #1a173c; font-family: var(--serif); font-size: 23px; border-radius: 50%; flex-shrink: 0; }
.hm-side-footer strong { display: block; font-size: 12px; font-weight: 500; color: #d5d4ec; }
.hm-side-footer small { display: block; font-size: 10px; margin-top: 3px; color: #a8a6c8; }
.hm-side-footer > svg { margin-left: auto; color: #cecce7; }

.hm-nav-group { margin-bottom: 18px; }
.hm-nav-label { display: block; font-size: 10px; letter-spacing: 1.7px; text-transform: uppercase; color: #a6a4c6; padding: 11px 9px 7px; }

/* ---------- Reiter ---------- */
.hm-tabs { display: flex; align-items: center; gap: 4px; overflow-x: auto; margin: -8px 0 24px; white-space: nowrap; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.hm-tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: 13px; color: #4a4775; }
.hm-tabs a:hover { color: var(--ink); background: #e3e2f6; border-radius: 5px 5px 0 0; }
.hm-tabs a.selected { border-color: #37309e; color: #211c68; background: #dfdef7; border-radius: 5px 5px 0 0; }
.hm-tabs a.is-soon { color: #8683aa; }
.hm-tabs em { font-style: normal; font-size: 9px; letter-spacing: .4px; color: #8583ac; border: 1px solid #cfcde8; border-radius: 4px; padding: 1px 5px; }

/* ---------- Arbeitsbereich ---------- */
.hm-workspace { margin-left: var(--side); min-width: 0; }
.hm-topbar { height: 68px; border-bottom: 1px solid var(--line); padding: 0 32px; display: flex; align-items: center; justify-content: space-between; background: #fff; gap: 15px; position: sticky; top: 0; z-index: 30; }
.hm-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hm-between { justify-content: space-between; }
.hm-wrap { flex-wrap: wrap; }
.hm-breadcrumb { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-breadcrumb span { margin: 0 12px; color: #9f9cc1; }
.hm-breadcrumb b { font-weight: 500; color: var(--ink); }
.hm-breadcrumb b.hm-crumb-parent { font-weight: 400; color: var(--muted); }
.hm-icon { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; }
.hm-icon:hover { background: #e5e4f6; }
.hm-user { display: flex; align-items: center; gap: 9px; padding: 4px 0 4px 8px; font-size: 13px; position: relative; }
.hm-user > span { width: 31px; height: 31px; background: #ede8de; border-radius: 50%; font-size: 11px; display: grid; place-items: center; }
.hm-user-menu { position: relative; }
.hm-user-menu summary { list-style: none; cursor: pointer; }
.hm-user-menu summary::-webkit-details-marker { display: none; }
.hm-user-menu .hm-dropdown { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 30px #1916401f; min-width: 210px; padding: 6px; z-index: 50; }
.hm-dropdown small { display: block; padding: 8px 10px; color: var(--muted); font-size: 11px; border-bottom: 1px solid #e4e3f5; margin-bottom: 4px; }
.hm-dropdown button { width: 100%; display: flex; gap: 8px; align-items: center; padding: 9px 10px; border-radius: 5px; font-size: 13px; text-align: left; }
.hm-dropdown button:hover { background: #e9e7f9; }
.hm-menu { display: none; }
.hm-main { padding: 31px 32px 0; max-width: 1920px; margin: auto; min-height: calc(100vh - 68px); }

/* ---------- Seitenkopf ---------- */
.hm-heading { display: flex; justify-content: space-between; align-items: center; gap: 22px; margin-bottom: 28px; }
.hm-eyebrow { font-size: 9px; letter-spacing: 1.85px; font-weight: 600; color: #53507e; display: block; text-transform: uppercase; }
.hm-heading h1 { font-family: var(--serif); font-size: 39px; letter-spacing: -.6px; font-weight: 400; line-height: 1.16; margin: 10px 0 9px; }
.hm-heading p { font-size: 13px; color: var(--muted); line-height: 1.5; }
.hm-heading-actions { display: flex; align-items: flex-end; flex-direction: column; gap: 13px; flex-shrink: 0; }
.hm-day { font-size: 11px; display: flex; align-items: center; gap: 7px; color: #666485; }

/* ---------- Bausteine ---------- */
.hm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: #fff; border: 1px solid #cccae4; border-radius: 5px; min-height: 37px; padding: 9px 12px; font-size: 12px; font-weight: 600; line-height: 1.2; white-space: nowrap; transition: background .15s; }
.hm-btn:hover { background: #e5e4f7; border-color: #9794c2; }
.hm-btn.hm-primary { background: #2a284b; border-color: #2a284b; color: #fff; }
.hm-btn.hm-primary:hover { background: #3a3766; }
.hm-btn.hm-small { padding: 7px 9px; min-height: 30px; font-size: 11px; }
.hm-badge { display: inline-flex; align-items: center; gap: 5px; border: 1px solid #d6d4e9; background: #ebeaf7; color: #4c487f; border-radius: 4px; font-size: 10px; line-height: 1.2; padding: 4px 7px; white-space: nowrap; font-weight: 500; }
.hm-badge.green { background: #dddbf7; border-color: #c9c7ed; color: #322e6f; }
.hm-badge.blue { background: #edf2f6; border-color: #dce6ec; color: #476674; }
.hm-badge.amber { background: #f8f0e1; border-color: #eadbbd; color: #8c6634; }
.hm-badge.red { background: #f9eee8; border-color: #ecd2c5; color: #995e44; }
.hm-badge.outline { font-size: 9px; letter-spacing: 1px; background: #f6f6fc; color: #575482; padding: 5px 9px; text-transform: uppercase; }
.hm-live-dot { width: 6px; height: 6px; border-radius: 50%; background: #564fad; box-shadow: 0 0 0 3px #564fad26; }

.hm-stats { display: grid; gap: 16px; margin-bottom: 23px; }
.hm-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hm-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hm-stat { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 17px 20px; min-width: 0; }
.hm-stat > .hm-row { justify-content: space-between; }
.hm-stat > .hm-row span, .hm-stat > span { font-size: 12px; color: #5b587e; }
.hm-stat svg { color: #6965a5; }
.hm-stat > strong { font-size: 31px; font-weight: 400; line-height: 1.15; display: block; margin: 12px 0 7px; letter-spacing: -.6px; font-variant-numeric: tabular-nums; }
.hm-stat > small { display: block; font-size: 10px; color: #686687; }

.hm-panel { border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; min-width: 0; margin-bottom: 22px; }
.hm-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 21px 22px; border-bottom: 1px solid #e5e4f3; }
.hm-panel-head h2 { font-size: 16px; font-weight: 500; line-height: 1.3; }
.hm-panel-head p { font-size: 12px; color: var(--muted); margin-top: 5px; line-height: 1.4; }
.hm-pad { padding: 21px 22px; }
.hm-pad > p, .hm-prose p { font-size: 13px; line-height: 1.75; color: #575482; }
.hm-prose p + p { margin-top: 12px; }
.hm-note { display: flex; align-items: flex-start; gap: 11px; background: #e1e0f3; border: 1px solid #d4d2ed; border-radius: 6px; padding: 13px 16px; font-size: 12px; line-height: 1.6; color: #49457d; margin: 0 0 22px; }
.hm-note svg { margin-top: 2px; }
.hm-note.amber { background: #fbf5ea; border-color: #eee1c6; color: #8c6634; }
.hm-error { border: 1px solid #eccbb6; background: #fbefe5; color: #9d5e34; border-radius: 6px; padding: 13px 16px; font-size: 12px; line-height: 1.55; margin-bottom: 22px; }
.hm-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.hm-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hm-grid-side { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 22px; align-items: start; }

.hm-table-wrap { overflow: auto; max-width: 100%; }
.hm-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
.hm-table th { font-size: 9px; text-transform: uppercase; letter-spacing: 1px; color: #6d6a98; background: #f6f6fc; padding: 13px 19px; border-bottom: 1px solid #dbd9f0; font-weight: 500; white-space: nowrap; }
.hm-table td { padding: 15px 19px; border-bottom: 1px solid #e5e4f3; vertical-align: middle; }
.hm-table tr:last-child td { border-bottom: 0; }
.hm-table tr:hover td { background: #f6f6fc; }
.hm-table td small { display: block; font-size: 10px; color: #716e97; margin-top: 4px; }
.hm-table td strong { font-weight: 500; font-size: 13px; }
.hm-num { text-align: right; white-space: nowrap; }
.hm-money { color: var(--money); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hm-muted { color: var(--muted); }
.hm-empty { padding: 43px 22px; text-align: center; color: #7e7ba6; display: flex; align-items: center; flex-direction: column; gap: 13px; font-size: 13px; }

.hm-list > a, .hm-list > div { display: flex; align-items: center; gap: 12px; width: 100%; padding: 16px 21px; border-bottom: 1px solid #e3e2f4; font-size: 13px; }
.hm-list > a:last-child, .hm-list > div:last-child { border: 0; }
.hm-list > a:hover { background: #eeedfc; }
.hm-list > * > span:not(.hm-list-icon):not(.hm-badge) { flex: 1; min-width: 0; }
.hm-list strong { display: block; font-size: 13px; font-weight: 500; }
.hm-list small { display: block; font-size: 11px; color: #76739d; margin-top: 4px; }
.hm-list-icon { width: 31px; height: 31px; border-radius: 6px; background: #e2e1f5; display: grid; place-items: center; color: #5f59ad; flex-shrink: 0; }
.hm-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.hm-chip { display: inline-flex; align-items: center; gap: 7px; background: #e9e7f9; border: 1px solid #d1cff0; border-radius: 20px; padding: 6px 12px; font-size: 11px; color: #353171; }
.hm-chip b { font-weight: 500; color: var(--money); }

.hm-facts { padding: 7px 22px; }
.hm-facts > div { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; font-size: 12px; padding: 14px 0; border-bottom: 1px solid #dbdaf2; color: #76749a; }
.hm-facts > div:last-child { border-bottom: 0; }
.hm-facts strong { font-size: 12px; color: #3a3766; font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.hm-facts a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Hero ---------- */
.hm-overview-hero { display: grid; grid-template-columns: 1.15fr 1fr; min-height: 290px; overflow: hidden; border-radius: 8px; background: #d8d6f3; border: 1px solid #ccc9ee; margin-bottom: 23px; }
.hm-overview-hero > div { padding: 34px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.hm-overview-hero h2 { font-family: var(--serif); font-size: 35px; line-height: 1.17; font-weight: 400; margin: 13px 0; }
.hm-overview-hero p { font-size: 12px; max-width: 430px; color: #595590; line-height: 1.8; margin-bottom: 19px; }
.hm-overview-hero > img { width: 100%; height: 100%; max-height: 335px; object-fit: cover; }
.hm-overview-hero > .hm-flow, .hm-flow { display: flex; flex-direction: row; align-items: center; gap: 14px; justify-self: end; align-self: center; padding: 34px; }
.hm-flow > div { width: 90px; height: 84px; background: #fff; border: 1px solid #ccc9ee; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; font-size: 10px; color: #4d4889; }
.hm-flow svg { color: #5f59ad; }

/* ---------- Naechte (Balken) ---------- */
.hm-occupancy-bars { display: flex; gap: 22px; padding: 27px 35px; justify-content: space-between; }
.hm-occupancy-bars > a { flex: 1; display: flex; align-items: center; flex-direction: column; }
.hm-occupancy-bars > a > strong { font-size: 17px; font-weight: 400; color: #423c97; margin-bottom: 9px; min-height: 24px; }
.hm-occupancy-bars > a > div { height: 95px; width: 60%; max-width: 90px; background: #e3e1f9; border-radius: 5px; position: relative; overflow: hidden; }
.hm-occupancy-bars i { position: absolute; bottom: 0; left: 0; right: 0; height: 0; background: #807adb; border-radius: 5px; transition: height .5s ease; }
.hm-occupancy-bars > a:hover i { background: #6962ce; }
.hm-occupancy-bars span { margin-top: 10px; font-size: 12px; }
.hm-occupancy-bars small { font-size: 10px; color: #7673aa; margin-top: 3px; }
.hm-occupancy-bars .is-loading > div { background: linear-gradient(90deg, #e3e1f9 0%, #efeefc 50%, #e3e1f9 100%); background-size: 200% 100%; animation: hm-shimmer 1.2s infinite; }
@keyframes hm-shimmer { to { background-position: -200% 0; } }

/* ---------- Zimmer ---------- */
.hm-room-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 22px; }
.hm-room-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.hm-room-card > img, .hm-room-card > .hm-img-empty { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #e4e3f5; }
.hm-img-empty { display: grid; place-items: center; color: #9d9ac6; }
.hm-room-card > div { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.hm-room-card h3 { font-family: var(--serif); font-size: 24px; font-weight: 400; line-height: 1.2; }
.hm-room-card p { font-size: 12px; color: #716e97; line-height: 1.6; }
.hm-room-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11px; color: #5b587e; padding: 11px 0; border-top: 1px solid #e4e3f5; border-bottom: 1px solid #e4e3f5; margin-top: auto; }
.hm-room-meta span { display: inline-flex; align-items: center; gap: 5px; }
.hm-room-meta svg { color: #6d69ab; }
.hm-room-price { display: flex; justify-content: space-between; align-items: baseline; font-size: 11px; color: #68659a; }
.hm-room-price strong { font-size: 18px; font-weight: 400; color: var(--money); }

/* ---------- Angebote ---------- */
.hm-offer { display: grid; grid-template-columns: 240px minmax(0, 1fr); border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; margin-bottom: 16px; }
.hm-offer > img, .hm-offer > .hm-img-empty { width: 100%; height: 100%; min-height: 180px; object-fit: cover; background: #e4e3f5; }
.hm-offer > div { padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.hm-offer h3 { font-family: var(--serif); font-size: 26px; font-weight: 400; line-height: 1.2; }
.hm-offer p { font-size: 12px; color: #676490; line-height: 1.7; }
.hm-offer ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; font-size: 12px; color: #353171; }
.hm-offer li { display: flex; gap: 7px; align-items: flex-start; }
.hm-offer li svg { color: #5d57b8; margin-top: 2px; }

/* ---------- Spa ---------- */
.hm-spa-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 18px; }
.hm-spa-slot { border: 1px solid #c3c0f0; border-radius: 6px; background: #eeedfc; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.hm-spa-slot > .hm-row { justify-content: space-between; align-items: flex-start; }
.hm-spa-slot strong { font-size: 13px; font-weight: 500; line-height: 1.35; }
.hm-spa-slot b { font-size: 13px; color: #332c89; font-weight: 500; white-space: nowrap; }
.hm-spa-slot p { font-size: 11px; color: #6b6893; line-height: 1.6; }
.hm-spa-slot small { font-size: 10px; color: #7774a6; }

/* ---------- Formulare ---------- */
.hm-formgrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; align-items: end; padding: 20px 22px; }
.hm-field { display: flex; flex-direction: column; gap: 7px; font-size: 12px; color: #4f4b88; min-width: 0; }
.hm-field > input, .hm-field > select { width: 100%; font-size: 13px; padding: 10px 11px; border: 1px solid #c7c4e9; border-radius: 5px; background: #fff; color: #2e2b58; min-height: 39px; }
.hm-field > input:focus, .hm-field > select:focus { outline: 2px solid #a39ee5; outline-offset: 0; border-color: #7e78cb; }
.hm-checkbox { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #4d4889; cursor: pointer; }
.hm-checkbox input { width: 15px; height: 15px; margin: 0; accent-color: #4038b3; }
.hm-errors { margin: 0 22px 18px; }

/* ---------- Geplante Bereiche ---------- */
.hm-planned { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; border: 1px solid #ccc9ee; border-radius: 8px; overflow: hidden; background: #d8d6f3; margin-bottom: 23px; }
.hm-planned > div { padding: 34px; }
.hm-planned h2 { font-family: var(--serif); font-size: 33px; line-height: 1.17; font-weight: 400; margin: 13px 0; }
.hm-planned p { font-size: 13px; color: #595590; line-height: 1.8; }
.hm-planned ul { list-style: none; margin: 0; padding: 34px; background: #e9e8fb; display: flex; flex-direction: column; gap: 14px; font-size: 13px; color: #3a3766; }
.hm-planned li { display: flex; gap: 10px; align-items: flex-start; }
.hm-planned li svg { color: #5d57b8; margin-top: 2px; }

/* ---------- KI-Wissen ---------- */
.hm-knowledge details { border-bottom: 1px solid #e5e4f3; }
.hm-knowledge details:last-child { border-bottom: 0; }
.hm-knowledge summary { cursor: pointer; list-style: none; padding: 16px 22px; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; }
.hm-knowledge summary::-webkit-details-marker { display: none; }
.hm-knowledge summary svg:last-child { margin-left: auto; color: #817db3; transition: transform .15s; }
.hm-knowledge details[open] summary svg:last-child { transform: rotate(180deg); }
.hm-knowledge details > div { padding: 0 22px 18px 51px; font-size: 13px; color: #575482; line-height: 1.75; white-space: pre-line; }

/* ---------- Login ---------- */
.hm-login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 520px); }
.hm-login-art { position: relative; background: var(--nav) center / cover no-repeat; display: flex; flex-direction: column; justify-content: space-between; padding: 44px; color: #e4e3f5; }
.hm-login-art::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #2c2b3bcc 0%, #2c2b3b55 45%, #2c2b3bdd 100%); }
.hm-login-art > * { position: relative; }
.hm-login-art img { width: 150px; filter: brightness(0) invert(1); }
.hm-login-art h2 { font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1.15; max-width: 520px; }
.hm-login-art p { font-size: 12px; letter-spacing: 1.8px; text-transform: uppercase; margin-top: 16px; color: #c6c4e3; }
.hm-login-form { display: flex; flex-direction: column; justify-content: center; padding: 48px 56px; background: #fff; }
.hm-login-form h1 { font-family: var(--serif); font-weight: 400; font-size: 36px; margin: 12px 0 6px; }
.hm-login-form > p { font-size: 13px; color: var(--muted); margin-bottom: 28px; }
.hm-login-form form { display: flex; flex-direction: column; gap: 16px; }
.hm-login-form .hm-btn { min-height: 44px; font-size: 13px; }

.hm-footer { display: flex; justify-content: space-between; gap: 15px; font-size: 10px; color: #7e7bad; padding: 26px 0 22px; margin-top: 20px; border-top: 1px solid #d0ceee; }
.hm-scrim { display: none; }

/* ---------- Responsiv ---------- */
@media (min-width: 1600px) {
    .hm-main { padding-left: 40px; padding-right: 40px; }
    .hm-heading h1 { font-size: 43px; }
    .hm-stat > strong { font-size: 35px; }
    .hm-room-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1280px) {
    :root { --side: 202px; }
    .hm-main { padding: 24px 22px 0; }
    .hm-topbar { padding: 0 22px; }
    .hm-heading h1 { font-size: 34px; }
    .hm-stat > strong { font-size: 27px; }
    .hm-nav { font-size: 12px; }
    .hm-overview-hero h2 { font-size: 30px; }
    .hm-spa-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hm-formgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hm-grid-side { grid-template-columns: 1fr; }
}
@media (max-width: 1000px) {
    .hm-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hm-grid2, .hm-grid3 { grid-template-columns: 1fr; }
    .hm-room-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hm-overview-hero, .hm-planned { grid-template-columns: 1fr; }
    .hm-overview-hero > img { max-height: 240px; }
    .hm-flow { justify-self: start; padding-top: 0; }
    .hm-offer { grid-template-columns: 1fr; }
    .hm-offer > img, .hm-offer > .hm-img-empty { min-height: 0; aspect-ratio: 16 / 7; }
    .hm-login { grid-template-columns: 1fr; }
    .hm-login-art { min-height: 260px; }
}
@media (max-width: 760px) {
    .hm-sidebar { transform: translateX(-100%); width: 240px; transition: transform .2s; }
    body.hm-nav-open .hm-sidebar { transform: none; }
    body.hm-nav-open .hm-scrim { display: block; position: fixed; inset: 0; background: #110f3057; z-index: 39; }
    .hm-workspace { margin: 0; }
    .hm-menu { display: inline-flex; }
    .hm-topbar { height: 60px; padding: 0 14px; }
    .hm-topbar .hm-badge, .hm-user b { display: none; }
    .hm-breadcrumb span { margin: 0 6px; }
    .hm-breadcrumb .hm-crumb-parent, .hm-breadcrumb .hm-crumb-parent + span { display: none; }
    .hm-main { padding: 22px 16px 0; }
    .hm-heading { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
    .hm-heading h1 { font-size: 32px; }
    .hm-heading-actions { width: 100%; flex-direction: row; justify-content: space-between; align-items: center; }
    .hm-stats { gap: 10px; }
    .hm-stat { padding: 14px; }
    .hm-stat > strong { font-size: 25px; }
    .hm-room-grid, .hm-spa-grid { grid-template-columns: 1fr; }
    .hm-formgrid { grid-template-columns: 1fr 1fr; }
    .hm-occupancy-bars { gap: 6px; padding: 20px 12px; }
    .hm-occupancy-bars > a > div { width: 80%; }
    .hm-overview-hero > div, .hm-planned > div, .hm-planned ul { padding: 24px; }
    .hm-overview-hero h2, .hm-planned h2 { font-size: 27px; }
    .hm-offer ul { grid-template-columns: 1fr; }
    .hm-footer { flex-direction: column; }
    .hm-login-form { padding: 36px 24px; }
}

/* ---------- Chatbot ---------- */
.hm-bars30 { display: flex; align-items: flex-end; gap: 4px; height: 170px; padding: 22px 22px 34px; }
.hm-bars30 > div { flex: 1; height: 100%; position: relative; display: flex; align-items: flex-end; background: #eae8fa; border-radius: 3px; }
.hm-bars30 i { display: block; width: 100%; background: #807adb; border-radius: 3px; }
.hm-bars30 > div:hover i { background: #5a53bf; }
.hm-bars30 span { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); font-size: 9px; color: #7673aa; white-space: nowrap; }
.hm-code { margin: 0 0 10px; padding: 12px 14px; background: #f0f0fa; border: 1px solid #d4d2ee; border-radius: 6px; font: 11px/1.6 ui-monospace, Menlo, Consolas, monospace; color: #3a3766; white-space: pre-wrap; word-break: break-all; }
.hm-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; border: 1px solid #0001; margin-right: 4px; }
.hm-segment { display: inline-flex; border: 1px solid #d0cfe6; border-radius: 5px; overflow: hidden; }
.hm-segment a { padding: 7px 12px; font-size: 11px; border-right: 1px solid #dcdbee; background: #fff; }
.hm-segment a:last-child { border-right: 0; }
.hm-segment a:hover { background: #e2e0f7; }
.hm-segment a.selected { background: #dbdaf3; color: #2b2769; }
.hm-table-link tbody tr { cursor: pointer; }
.hm-table td .hm-who { display: inline; margin: 0 6px 0 0; font-size: 10px; text-transform: uppercase; letter-spacing: .6px; color: #5f59ad; }
.hm-pager { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-top: 1px solid #e5e4f3; font-size: 12px; }
.hm-chat { padding: 22px; display: flex; flex-direction: column; gap: 12px; background: #f6f6fc; }
.hm-msg { max-width: 78%; padding: 11px 14px; border-radius: 12px; font-size: 13px; line-height: 1.6; }
.hm-msg small { display: block; font-size: 10px; letter-spacing: .4px; opacity: .75; margin-bottom: 3px; }
.hm-msg p { white-space: pre-line; color: inherit; }
.hm-msg-user { align-self: flex-start; background: #fff; border: 1px solid #d9d7ed; border-bottom-left-radius: 3px; }
.hm-msg-agent { align-self: flex-end; background: #d1cef5; color: #242149; border-bottom-right-radius: 3px; }
.hm-msg-human { align-self: flex-end; background: #e2eaf0; color: #33495a; border-bottom-right-radius: 3px; }
.hm-chat-event { align-self: center; font-size: 10px; color: #7e7bad; background: #e8e7f6; border-radius: 20px; padding: 4px 12px; }
.hm-preview { min-height: 420px; }
@media (max-width: 760px) {
    .hm-bars30 { gap: 2px; padding: 16px 12px 30px; }
    .hm-msg { max-width: 92%; }
}

/* ---------- Chatbot-Inhalte ---------- */
.hm-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.hm-fieldset:disabled input, .hm-fieldset:disabled textarea { background: #f2f1f9; color: #575482; }
.hm-form2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 20px 22px; }
.hm-form1 { display: grid; gap: 16px; padding: 20px 22px; }
.hm-field > textarea { width: 100%; font-size: 13px; padding: 10px 11px; border: 1px solid #c7c4e9; border-radius: 5px; background: #fff; color: #2e2b58; line-height: 1.55; resize: vertical; }
.hm-field > textarea:focus { outline: 2px solid #a39ee5; border-color: #7e78cb; }
.hm-field small { color: #8583ac; font-size: 11px; }
.hm-mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px !important; }
.hm-color { display: flex; gap: 8px; }
.hm-color input[type=color] { width: 44px; height: 39px; padding: 2px; border: 1px solid #c7c4e9; border-radius: 5px; background: #fff; }
.hm-color input:not([type=color]) { flex: 1; font-size: 13px; padding: 10px 11px; border: 1px solid #c7c4e9; border-radius: 5px; }
.hm-savebar { position: sticky; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #fffffff2; border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; margin-bottom: 22px; font-size: 12px; }
.hm-meter { height: 7px; background: #e2e0f7; border-radius: 3px; overflow: hidden; margin-bottom: 6px; }
.hm-meter i { display: block; height: 100%; background: #6d66cf; }
.hm-note.hm-ok { background: #dbd9fc; border-color: #bdb9f4; color: #28227d; }
@media (max-width: 760px) { .hm-form2 { grid-template-columns: 1fr; } }
.hm-span2 { grid-column: 1 / -1; }
.hm-field > label { display: block; }
.hm-voice { display: flex; gap: 8px; }
.hm-voice select { flex: 1; min-width: 0; font-size: 13px; padding: 10px 11px; border: 1px solid #c7c4e9; border-radius: 5px; background: #fff; color: #2e2b58; }
.hm-voice .hm-btn[disabled] { opacity: .45; cursor: default; }

/* ---------- Hotelinfos bearbeiten ---------- */
.hm-field > input[type=text], .hm-field > input[type=email], .hm-field > input[type=time], .hm-field > input[type=number], .hm-select { width: 100%; font-size: 13px; padding: 10px 11px; border: 1px solid #c7c4e9; border-radius: 5px; background: #fff; color: #2e2b58; }
.hm-en { border-top: 1px solid var(--line); }
.hm-en > summary { cursor: pointer; padding: 14px 22px; font-size: 13px; color: #37336d; }
.hm-en > summary small { color: #8583ac; margin-left: 6px; }
.hm-diff { display: grid; grid-template-columns: 180px 1fr 1fr; gap: 16px; padding: 16px 22px; border-top: 1px solid #e5e4f3; font-size: 13px; }
.hm-diff-head { border-top: 0; font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: #76749b; padding-bottom: 8px; }
.hm-diff-old, .hm-diff-new { white-space: pre-line; line-height: 1.55; padding: 10px 12px; border-radius: 6px; max-height: 320px; overflow: auto; }
.hm-diff-old { background: #f6f3ee; color: #7a6a58; }
.hm-diff-new { background: #dbd9fc; color: #1e196b; }
.hm-diff-2 { grid-template-columns: 1fr 1fr; padding: 10px 0 0; border: 0; }
.hm-change { display: grid; grid-template-columns: 220px 1fr auto; gap: 16px; align-items: start; padding: 16px 22px; border-top: 1px solid #e5e4f3; }
.hm-change:first-child { border-top: 0; }
.hm-change-meta small { display: block; color: #76749b; font-size: 11px; margin-top: 3px; }
.hm-change details > summary { cursor: pointer; font-size: 12px; color: #37336d; }
@media (max-width: 760px) { .hm-diff, .hm-change { grid-template-columns: 1fr; } }

/* ---------- Hotelinfos: Tabs wie im Portal, kompakte Felder ---------- */
.hw-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 16px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.hw-tabs button { padding: 9px 14px; font-size: 13px; color: #3d3b5b; border-radius: 7px; }
.hw-tabs button:hover { background: #eae9f6; }
.hw-tabs button.is-on { background: var(--nav); color: #fff; }
.hw-pane { display: none; }
.hw-pane.is-on { display: block; }
.hw-block { padding: 18px 22px; border-top: 1px solid #e5e4f3; }
.hw-block:first-of-type { border-top: 0; }
.hw-sub { display: block; font-size: 11px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; color: #2e2b58; margin-bottom: 4px; }
.hw-hint { font-size: 12px; color: #76749b; margin: 0 0 10px; }
.hw-row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 10px; }
.hw-row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 10px; }
.hw-pad { padding: 18px 22px; margin-top: 0; }
.hw-full { grid-column: 1 / -1; }
.hw-seg { display: inline-flex; gap: 4px; padding: 4px; background: #eeedf6; border-radius: 8px; margin-top: 2px; }
.hw-seg label { cursor: pointer; }
.hw-seg input { position: absolute; opacity: 0; pointer-events: none; }
.hw-seg span { display: block; min-width: 86px; padding: 8px 12px; font-size: 13px; color: #5c5a7b; border-radius: 6px; border: 1px solid transparent; }
.hw-seg input:checked + span { background: #fff; border-color: #d2d1e8; color: #302f3e; box-shadow: 0 1px 2px #0000000f; }
.hw-seg .is-yes input:checked + span { color: #1c1494; }
.hw-seg .is-no input:checked + span { color: #b0662a; }
.hw-seg input:focus-visible + span { outline: 2px solid #7e78cb; }
.hw-period { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px; color: #5c5a7b; }
.hw-period input { font-size: 13px; padding: 8px 10px; border: 1px solid #c7c4e9; border-radius: 5px; }
.hw-del { padding: 6px 9px; }
textarea.hw-grow { min-height: 64px; overflow: hidden; }
.hm-field > input[type=text], .hm-field > input[type=email], .hm-field > input[type=time], .hm-field > input[type=number] { padding: 9px 11px; }
@media (max-width: 760px) { .hw-row3, .hw-row2 { grid-template-columns: 1fr; } .hw-seg span { min-width: 0; } }

/* KI-Badge wie im Wellnesstrip-Portal */
.hw-lbl { display: inline-flex; align-items: center; gap: 6px; }
.ki-chip { display: inline-flex; align-items: center; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; line-height: 1; padding: 4px 8px; border-radius: 6px; background: linear-gradient(135deg, #00244a, #06305d); color: #fff; font-weight: 600; white-space: nowrap; }

/* DaySPA: kompakte Listen */
.hw-flat { padding: 14px 0 0; }
.hw-list { display: grid; gap: 6px; margin: 10px 0; }
.hw-lh, .hw-li { display: grid; gap: 6px; align-items: center; }
.hw-lh { font-size: 10px; letter-spacing: .6px; text-transform: uppercase; color: #76749b; }
.hw-li input[type=text], .hw-li input[type=date], .hw-li input[type=time], .hw-li select { width: 100%; min-width: 0; font-size: 13px; padding: 7px 9px; border: 1px solid #c7c4e9; border-radius: 5px; background: #fff; color: #2e2b58; }
.hw-g-hours { grid-template-columns: 150px 150px 100px 100px 1fr 36px; }
.hw-g-prices { grid-template-columns: 145px 145px 1fr 110px 110px 90px 36px; }
.hw-g-opts { grid-template-columns: 1fr 110px 110px 90px 60px 36px; }
.hw-cb { display: flex; justify-content: center; }
.hw-optdesc { grid-column: 1 / -1; min-height: 34px !important; font-size: 12px !important; padding: 6px 9px !important; border: 1px dashed #c7c4e9 !important; border-radius: 5px; margin-bottom: 6px; }
@media (max-width: 900px) { .hw-g-hours, .hw-g-prices, .hw-g-opts { grid-template-columns: 1fr 1fr; } .hw-lh { display: none; } }

/* ---------- Kanäle ---------- */
.kn-wrap { display: flex; flex-direction: column; gap: 18px; }
.kn-checked { margin: -4px 0 0; font-size: 12px; color: #76749b; }
.kn-sys { background: #fff; border-radius: 14px; box-shadow: 0 1px 2px rgba(29,26,54,.06), 0 8px 24px rgba(29,26,54,.05); overflow: hidden; }
.kn-sys-head { display: flex; align-items: center; gap: 14px; padding: 16px 24px; border-bottom: 1px solid #e8e7f3; }
.kn-sys-head strong { flex: 1; font-size: 16px; font-weight: 600; color: #2b2a39; }
.kn-mark { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 600; flex-shrink: 0; }
.kn-mark.kn-dark { background: var(--nav, #2c2b3b); color: #b4b0f0; }
.kn-mark.kn-green { background: #3b3683; color: #fff; }
.kn-state { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #3d3b5b; }
.kn-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #bebdd1; }
.kn-dot.ok { background: #3a2fc8; } .kn-dot.warn { background: #d7a03a; } .kn-dot.error { background: #c4553b; }
.kn-part { display: flex; align-items: center; gap: 18px; padding: 16px 24px; border-bottom: 1px solid #e8e7f3; }
.kn-part:last-of-type { border-bottom: 0; }
.kn-part.is-off { background: #f6f6fb; }
.kn-part-name { width: 150px; flex-shrink: 0; display: flex; flex-direction: column; gap: 3px; }
.kn-part-name a, .kn-part-name span { font-size: 14px; font-weight: 500; color: #2b2a39; }
.kn-part-name a:hover { color: #37336d; }
.kn-part.is-off .kn-part-name span { color: #3d3b5b; }
.kn-part-name small { font-size: 12px; color: #5c5a7b; }
.kn-part-name small.kn-sub-ok { color: #322e6f; } .kn-part-name small.kn-sub-warn { color: #8c6634; } .kn-part-name small.kn-sub-error { color: #a8432c; }
.kn-chips { flex: 1; display: flex; flex-wrap: wrap; gap: 8px; }
.kn-chip { font-size: 12px; padding: 6px 11px; border-radius: 20px; background: #e3e1f8; color: #3d3b5b; }
.kn-chip.warn { background: #f8f0e1; color: #8c6634; }
.kn-chip.off { background: transparent; border: 1px dashed #bebdd1; color: #5c5a7b; padding: 5px 10px; }
.kn-notes { padding: 10px 24px 14px; border-top: 1px solid #e8e7f3; display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: #8c6634; background: #fdfaf3; }
.kn-notes.kn-notes-error { color: #a8432c; background: #fcf4f1; }
.kn-notes div { display: flex; align-items: flex-start; gap: 6px; }
@media (max-width: 760px) { .kn-part { flex-wrap: wrap; } .kn-part-name { width: 100%; } }

/* ---------- KI-Telefonie ---------- */
.tf-head-state { margin: -6px 0 16px; }
.tf-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tf-stats .tf-warn { color: #8c6634; }
.tf-grid { display: grid; grid-template-columns: minmax(0, 430px) minmax(0, 1fr); gap: 18px; align-items: start; }
.tf-list, .tf-detail { margin: 0; overflow: hidden; }
.tf-detail { position: sticky; top: 20px; }
.tf-filter { display: flex; align-items: center; gap: 6px; padding: 14px 16px; border-bottom: 1px solid #e8e7f3; }
.tf-filter .kn-chip { text-decoration: none; }
.tf-filter .kn-chip.is-on { background: var(--nav, #2c2b3b); color: #fff; }
.tf-filter small { margin-left: auto; font-size: 11px; color: #76749b; }
.tf-row { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-bottom: 1px solid #e8e7f3; border-left: 3px solid transparent; color: inherit; text-decoration: none; }
.tf-row:hover { background: #f6f6fc; }
.tf-row.is-sel { background: #edecfb; border-left-color: #3b3683; }
.tf-row-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.tf-row-top strong { font-weight: 600; color: #2b2a39; }
.tf-row-top span { color: #5c5a7b; white-space: nowrap; }
.tf-row p { margin: 0; font-size: 13px; line-height: 1.45; color: #3d3b5b; }
.tf-muted { color: #76749b !important; }
.tf-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tf-tag { font-size: 11px; padding: 3px 8px; border-radius: 6px; background: #dddbf7; color: #322e6f; }
.tf-tag.amber { background: #f8f0e1; color: #8c6634; }
.tf-tag.grey { background: #e6e5f1; color: #4f4d6c; }
.tf-detail-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid #e8e7f3; }
.tf-detail-head strong { display: block; font-size: 16px; font-weight: 600; color: #2b2a39; }
.tf-detail-head small { font-size: 12px; color: #5c5a7b; }
.tf-detail-body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 14px; }
.tf-summary { background: #edecfb; border-radius: 10px; padding: 14px 16px; }
.tf-summary span, .tf-label { display: block; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: #5c5a7b; margin-bottom: 6px; }
.tf-label { margin: 4px 0 -6px; }
.tf-summary p { margin: 0; font-size: 14px; line-height: 1.55; color: #2b2a39; white-space: pre-line; }
.tf-topics { display: flex; flex-direction: column; gap: 8px; }
.tf-topics div { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.tf-topics small { font-size: 12px; color: #4f4d6c; }
.tf-chat { border-radius: 10px; }
.tf-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 44px 30px; }
.tf-empty-icon { width: 52px; height: 52px; border-radius: 14px; background: #e3e1f8; color: #3b3683; display: flex; align-items: center; justify-content: center; }
.tf-empty strong { font-size: 18px; font-weight: 600; color: #2b2a39; }
.tf-empty p { margin: 0; max-width: 470px; font-size: 14px; line-height: 1.5; color: #4f4d6c; }
.tf-center { justify-content: center; flex: none; }
@media (max-width: 1000px) { .tf-grid { grid-template-columns: 1fr; } .tf-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Gästekartei ---------- */
.gk-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.gk-kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; display: flex; flex-direction: column; gap: 4px; }
.gk-kpi span { font-size: 12px; color: #5c5a7b; }
.gk-kpi b { font-family: var(--serif); font-weight: 400; font-size: 30px; color: #2c2b3b; }
.gk-kpi b.amber { color: #8c6634; } .gk-kpi b.red { color: #a8432c; }
.gk-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 18px; align-items: start; }
.gk-side { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 20px; }
.gk-search { width: 100%; box-sizing: border-box; font: inherit; font-size: 13px; padding: 9px 11px; border: 1px solid #d9d8e8; border-radius: 8px; margin-bottom: 6px; background: #f6f6fc; }
.gk-side-lbl { font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: #68668c; padding: 12px 10px 4px; }
.gk-side a { display: flex; justify-content: space-between; font-size: 13px; padding: 8px 10px; border-radius: 8px; color: #3d3b5b; text-decoration: none; }
.gk-side a:hover { background: #edecf9; }
.gk-side a.on { background: var(--nav, #2c2b3b); color: #fff; }
.gk-side a.amber { color: #8c6634; } .gk-side a.amber.on { color: #fff; }
.gk-side a small { opacity: .7; font-size: 11px; }
.gk-table-wrap { margin: 0; overflow: hidden; }
.gk-searchinfo { padding: 12px 16px; font-size: 13px; border-bottom: 1px solid #e8e7f3; background: #f6f6fc; }
.gk-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.gk-table th { font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: #68668c; font-weight: 400; text-align: left; padding: 12px 14px; border-bottom: 1px solid #e8e7f3; }
.gk-table td { padding: 14px; border-bottom: 1px solid #eae9f6; vertical-align: top; }
.gk-table tbody tr { cursor: pointer; } .gk-table tbody tr:hover td { background: #f6f6fc; }
.gk-table td > b { display: block; font-weight: 500; } .gk-table td small { display: block; font-size: 12px; color: #5c5a7b; margin-top: 2px; }
.gk-table td small.green { color: #322e6f; } .gk-table td small.amber, .gk-table em.amber { color: #8c6634; font-style: normal; }
.gk-guest { display: flex; gap: 12px; color: inherit; text-decoration: none; }
.gk-guest b { display: block; font-weight: 600; } .gk-guest small { display: block; font-size: 12px; color: #5c5a7b; margin: 2px 0 6px; }
.gk-av { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 16px; flex-shrink: 0; background: #dbdaf3; color: #3d3b5b; }
.gk-av.dark { background: #2c2b3b; color: #b4b0f0; } .gk-av.green { background: #3b3683; color: #fff; }
.gk-chip { display: inline-block; font-size: 11px; padding: 4px 9px; border-radius: 20px; background: #e3e1f8; color: #3d3b5b; margin: 0 4px 4px 0; white-space: nowrap; }
.gk-chip.red { background: #fbe9e4; color: #a8432c; } .gk-chip.amber { background: #f8f0e1; color: #8c6634; } .gk-chip.dark { background: #2c2b3b; color: #b4b0f0; }
.gk-fav { font-size: 12px; color: #3d3b5b; line-height: 1.5; max-width: 260px; }
.gk-bar { display: block; height: 5px; background: #e8e7f3; border-radius: 3px; width: 70px; margin-top: 6px; }
.gk-bar.wide { width: 100%; margin: 10px 0 6px; height: 6px; }
.gk-bar i { display: block; height: 100%; border-radius: 3px; background: #3b3683; } .gk-bar i.amber { background: #d7a03a; }
b.amber, p.amber, span.amber, .amber { color: #8c6634; }
.gk-foot { font-size: 12px; color: #76749b; margin: 14px 0 0; }

.gk-profile { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 22px; align-items: start; }
.gk-pass { background: #fff; border-radius: 14px; box-shadow: 0 1px 2px rgba(29,26,54,.06), 0 8px 24px rgba(29,26,54,.05); overflow: hidden; position: sticky; top: 20px; }
.gk-pass-top { background: var(--nav, #2c2b3b); color: #e3e2f5; padding: 22px 22px 18px; display: flex; flex-direction: column; gap: 10px; }
.gk-pass-row { display: flex; justify-content: space-between; align-items: flex-start; }
.gk-pass-av { width: 62px; height: 62px; border-radius: 18px; background: #b4b0f0; color: #2c2b3b; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 25px; }
.gk-pass-level { font-size: 12px; padding: 5px 10px; border-radius: 20px; background: #2c2a4e; color: #b4b0f0; }
.gk-pass-top h1 { font-family: var(--serif); font-weight: 400; font-size: 25px; line-height: 1.15; margin: 0; color: #e3e2f5; }
.gk-pass-top small { font-size: 12px; color: #9592bb; }
.gk-pass-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; margin-top: 4px; }
.gk-pass-stats div { background: #2c2a4e; border-radius: 10px; padding: 9px 4px; }
.gk-pass-stats b { display: block; font-family: var(--serif); font-weight: 400; font-size: 22px; }
.gk-pass-stats span { font-size: 10px; color: #9592bb; }
.gk-pass-sec { padding: 16px 20px; border-top: 1px solid #e8e7f3; font-size: 13px; }
.gk-pass-sec strong { display: block; font-size: 16px; font-weight: 600; margin: 6px 0 2px; }
.gk-pass-sec p { margin: 4px 0 0; color: #4f4d6c; line-height: 1.45; }
.gk-pass-sec p.gk-muted { font-size: 12px; color: #76749b; margin-top: 8px; }
.gk-pass-sub { display: flex; justify-content: space-between; align-items: baseline; font-size: 11px; color: #76749b; }
.gk-pass-sub b { font-size: 13px; color: #2b2a39; }
.gk-lbl { display: block; font-size: 10px; letter-spacing: 1.3px; text-transform: uppercase; color: #68668c; }
.gk-lbl.green { color: #322e6f; } .gk-lbl.red { color: #a8432c; }
.gk-kv { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 7px 0; border-bottom: 1px solid #eae9f6; }
.gk-kv:last-child { border-bottom: 0; }
.gk-kv span { color: #5c5a7b; flex-shrink: 0; } .gk-kv b { font-weight: 500; text-align: right; }
.gk-kv b.red { color: #a8432c; } .gk-kv b.muted { color: #a09ebd; }
.gk-person { display: flex; gap: 10px; align-items: center; margin-top: 9px; color: #5c5a7b; }
.gk-person b { font-weight: 500; color: #2b2a39; }
.gk-who { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: #d1cef5; color: #3d3b5b; font-size: 10px; align-items: center; justify-content: center; font-weight: 600; flex-shrink: 0; }
.gk-who.kid { background: #f8f0e1; } .gk-who.pet { background: #e6e5f1; } .gk-who.ki { background: #e2eaf0; color: #33495a; }

.gk-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.gk-topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.gk-tabs { display: flex; gap: 4px; padding: 6px; background: #fff; border-radius: 12px; border: 1px solid var(--line); flex-wrap: wrap; }
.gk-tabs a { font-size: 13px; padding: 8px 12px; border-radius: 8px; color: #3d3b5b; text-decoration: none; white-space: nowrap; }
.gk-tabs a:hover { background: #edecf9; }
.gk-tabs a.on { background: var(--nav, #2c2b3b); color: #fff; }
.gk-tabs small { font-size: 10px; margin-left: 5px; opacity: .7; }
.gk-alerts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.gk-alert { border-radius: 12px; padding: 14px 16px; display: flex; gap: 12px; background: #e6e5f1; }
.gk-alert.red { background: #fbe9e4; } .gk-alert.amber { background: #f8f0e1; }
.gk-alert b { font-size: 13px; } .gk-alert.red b { color: #a8432c; } .gk-alert.amber b { color: #8c6634; }
.gk-alert p { margin: 3px 0 0; font-size: 12px; color: #4f4d6c; }
.gk-ico { width: 28px; height: 28px; border-radius: 8px; background: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 13px; font-weight: 700; color: #3b3683; }
.gk-alert.red .gk-ico { color: #a8432c; } .gk-alert.amber .gk-ico { color: #8c6634; }
.gk-ico.soft { background: #e3e1f8; font-weight: 400; }
.gk-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.gk-grid2.wide-left { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.gk-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.gk-card { margin: 0; overflow: hidden; }
.gk-h { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid #e8e7f3; }
.gk-h strong { font-size: 14px; font-weight: 600; color: #2c2b3b; }
.gk-h span, .gk-h a { font-size: 11px; color: #76749b; }
.gk-h a { color: #37336d; }
.gk-pad { padding: 14px 18px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.gk-pad.tight { padding: 4px 18px 10px; gap: 0; }
.gk-pad p { margin: 0 0 10px; line-height: 1.55; }
.gk-li { display: flex; gap: 10px; padding: 11px 18px; font-size: 13px; line-height: 1.45; border-bottom: 1px solid #ecebf8; align-items: flex-start; }
.gk-li:last-child { border-bottom: 0; }
.gk-li small { display: block; font-size: 12px; color: #5c5a7b; }
.gk-li b { font-weight: 500; }
.gk-li.done { color: #76749b; text-decoration: line-through; }
.gk-grow { flex: 1; }
.gk-day { width: 74px; flex-shrink: 0; font-weight: 600 !important; }
.gk-st { font-size: 11px; padding: 3px 8px; border-radius: 6px; white-space: nowrap; background: #e6e5f1; color: #4f4d6c; }
.gk-st.ok { background: #dddbf7; color: #322e6f; } .gk-st.open { background: #f8f0e1; color: #8c6634; }
.gk-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; background: #a09ebd; }
.gk-dot.red { background: #c4553b; } .gk-dot.amber { background: #d7a03a; }
.gk-hist { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.gk-hist > div { padding: 14px 16px; border-right: 1px solid #eae9f6; font-size: 12px; }
.gk-hist > div:last-child { border-right: 0; }
.gk-hist > div.now { background: #edecfb; }
.gk-hist small { display: block; color: #5c5a7b; margin-top: 3px; }
.gk-hist p { margin: 5px 0 0; color: #4f4d6c; font-size: 11px; line-height: 1.4; }
.gk-ptable-wrap { overflow-x: auto; border-radius: 14px; box-shadow: 0 1px 2px rgba(29,26,54,.06), 0 8px 24px rgba(29,26,54,.05); }
.gk-ptable { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; font-size: 13px; }
.gk-ptable th { background: var(--nav, #2c2b3b); color: #e3e2f5; font-weight: 400; text-align: left; padding: 14px 16px; vertical-align: top; }
.gk-ptable th.lead { background: #2c2a4e; width: 150px; font-size: 10px; letter-spacing: 1.3px; text-transform: uppercase; color: #9592bb; vertical-align: middle; }
.gk-ptable th b { display: block; font-family: var(--serif); font-weight: 400; font-size: 20px; }
.gk-ptable th small { font-size: 11px; color: #9592bb; }
.gk-ptable td { padding: 10px 16px; border-bottom: 1px solid #eae9f6; vertical-align: top; line-height: 1.45; }
.gk-ptable td.lead { color: #5c5a7b; font-size: 12px; background: #f6f6fc; }
.gk-ptable tr.grp td { background: #e3e1f8; color: #3d3b5b; font-size: 10px; letter-spacing: 1.3px; text-transform: uppercase; padding: 7px 16px; font-weight: 600; }
.gk-ptable td.red { color: #a8432c; font-weight: 600; } .gk-ptable td.amber { color: #8c6634; } .gk-ptable td.muted { color: #a09ebd; }

.gk-depts { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.gk-depts a { font-size: 13px; padding: 8px 15px; border-radius: 20px; background: #fff; border: 1px solid #d9d8e8; color: #3d3b5b; text-decoration: none; }
.gk-depts a.on { background: var(--nav, #2c2b3b); color: #fff; border-color: var(--nav, #2c2b3b); }
.gk-brief { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: start; }
.gk-brief.single { grid-template-columns: minmax(0, 720px); }
.gk-brief .gk-li a { color: #2b2a39; text-decoration: none; }
.gk-check { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid #aba9c4; flex-shrink: 0; margin-top: 2px; }
.gk-check.on { background: #3b3683; border-color: #3b3683; }
.red.strong { color: #a8432c; font-weight: 600; }
.gk-occ { margin-top: 18px; background: var(--nav, #2c2b3b); border-radius: 14px; padding: 16px 22px; color: #e3e2f5; display: flex; gap: 18px; align-items: center; }
.gk-occ span { font-family: var(--serif); font-size: 20px; white-space: nowrap; }
.gk-occ p { margin: 0; font-size: 13px; color: #b7b5d8; }
@media (max-width: 1200px) { .gk-kpis { grid-template-columns: repeat(3, 1fr); } .gk-grid3, .gk-brief { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .gk-layout, .gk-profile, .gk-grid2, .gk-grid2.wide-left { grid-template-columns: 1fr; } .gk-side, .gk-pass { position: static; } }
@media print { .hm-sidebar, .hm-topbar, .gk-depts, .hm-heading-actions { display: none !important; } .gk-brief { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Gästekartei: Pflege ---------- */
.gk-actions { display: flex; gap: 8px; }
.gk-noteform { display: grid; grid-template-columns: 1fr 150px auto; gap: 8px; padding: 12px 18px; border-top: 1px solid #e8e7f3; background: #f6f6fc; align-items: start; }
.gk-noteform textarea { font: inherit; font-size: 13px; padding: 8px 10px; border: 1px solid #d2d1e8; border-radius: 7px; resize: vertical; min-height: 36px; }
.gk-by { display: block; font-size: 11px; color: #76749b; }
button.gk-check { padding: 0; background: #fff; cursor: pointer; }
button.gk-check:hover { border-color: #3b3683; }
button.gk-check.on { background: #3b3683; }
.gk-etabs { margin-bottom: 14px; }
.gk-etabs button { font: inherit; font-size: 13px; padding: 8px 12px; border-radius: 8px; color: #3d3b5b; background: none; border: 0; cursor: pointer; }
.gk-etabs button:hover { background: #edecf9; }
.gk-etabs button.on { background: var(--nav, #2c2b3b); color: #fff; }
.gk-epanel { margin: 0; }
.gk-pane { display: none; } .gk-pane.on { display: block; }
.gk-eblock { padding: 18px 22px; border-top: 1px solid #e5e4f3; }
.gk-eblock:first-child { border-top: 0; }
.gk-egrid { display: grid; gap: 12px 14px; margin-top: 10px; }
.gk-egrid.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gk-egrid.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gk-egrid.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .gk-egrid.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.gk-f { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: #5c5a7b; }
.gk-f.wide { grid-column: span 2; }
.gk-f input, .gk-f select, .gk-f textarea, .gk-erow input, .gk-erow select { font: inherit; font-size: 13px; color: #2b2a39; padding: 8px 10px; border: 1px solid #d2d1e8; border-radius: 7px; background: #fff; width: 100%; min-width: 0; box-sizing: border-box; }
.gk-f textarea { resize: vertical; line-height: 1.5; }
.gk-fcheck { flex-direction: row; align-items: center; gap: 8px; padding-top: 22px; color: #2b2a39; font-size: 13px; }
.gk-fcheck input { width: auto; }
.gk-hint { font-size: 12px; color: #76749b; margin: 6px 0 10px; }
.gk-elist { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.gk-erows { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.gk-erow { display: grid; grid-template-columns: var(--cols); gap: 6px; align-items: center; width: 100%; }
.gk-ehead { font-size: 10px; letter-spacing: .6px; text-transform: uppercase; color: #76749b; }
.gk-del { padding: 6px 9px; }
.gk-cb { display: flex; justify-content: center; }
.gk-cb input { width: 16px !important; height: 16px; }
.gk-savebar { position: sticky; bottom: 0; display: flex; gap: 10px; align-items: center; padding: 14px 0; margin-top: 10px; background: linear-gradient(to top, #f1f0f8 75%, rgba(246,245,251,0)); z-index: 5; }
@media (max-width: 1000px) { .gk-egrid.g3, .gk-egrid.g4, .gk-egrid.g5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gk-noteform { grid-template-columns: 1fr; } }

/* ---------- Team & Rollen ---------- */
.tm-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tm-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
.tm-layout.has-side { grid-template-columns: minmax(0, 1fr) 360px; }
.tm-list { margin: 0; overflow: hidden; }
.tm-list tr.is-sel td { background: #edecfb; }
.tm-list tr.is-locked td { color: #76749b; }
.tm-who { display: flex; gap: 12px; align-items: center; }
.tm-who b { font-weight: 600; } .tm-who em { font-style: normal; color: #76749b; font-size: 12px; }
.tm-who small { display: block; font-size: 12px; color: #76749b; }
.tm-av { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; flex-shrink: 0; }
.tm-av.big { width: 46px; height: 46px; font-size: 15px; }
.r1 { background: #2c2b3b; color: #b4b0f0; } .r2 { background: #d1cef5; color: #27235f; } .r3 { background: #f8f0e1; color: #8c6634; }
.r4 { background: #e2eaf0; color: #33495a; } .r5 { background: #f3e6ee; color: #7a3e62; } .r6 { background: #e6e5f1; color: #3d3b5b; }
.tm-role { display: inline-block; font-size: 12px; padding: 4px 10px; border-radius: 20px; }
.tm-st { font-size: 12px; display: inline-flex; align-items: center; gap: 6px; color: #322e6f; }
.tm-st i { width: 7px; height: 7px; border-radius: 50%; background: #3a2fc8; }
.tm-st.amber { color: #8c6634; } .tm-st.amber i { background: #d7a03a; }
.tm-st.grey { color: #5c5a7b; } .tm-st.grey i { background: #bebdd1; }
.tm-mu { color: #76749b; font-size: 12px; }
.tm-side { margin: 0; position: sticky; top: 20px; overflow: hidden; }
.tm-side-head { display: flex; gap: 12px; align-items: center; padding: 18px 20px; border-bottom: 1px solid #e8e7f3; }
.tm-side-head b { font-size: 16px; font-weight: 600; } .tm-side-head small { display: block; font-size: 12px; color: #76749b; }
.tm-side-form { padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.tm-can { background: #edecfb; border-radius: 10px; padding: 12px 14px; font-size: 12px; line-height: 1.7; display: flex; flex-direction: column; }
.tm-can b { font-weight: 600; margin-bottom: 2px; } .tm-can .yes { color: #27235f; } .tm-can .no { color: #908ead; }
.tm-side-actions { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 20px 18px; }
.tm-danger { color: #a8432c !important; }
.tm-cred { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; background: #fff; border: 2px solid #5b52d8; border-radius: 12px; padding: 16px 20px; margin-bottom: 18px; }
.tm-cred b { display: block; color: #27235f; font-size: 14px; margin-bottom: 8px; }
.tm-cred-lbl { display: block; font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: #68668c; }
.tm-cred pre { font-family: inherit; font-size: 14px; line-height: 1.7; margin: 6px 0 8px; background: #edecfb; border-radius: 8px; padding: 10px 14px; white-space: pre-wrap; }
.tm-cred small { font-size: 12px; color: #76749b; }
.tm-cred-btns { display: flex; gap: 8px; }
.tm-new { padding: 22px 24px; max-width: 900px; display: flex; flex-direction: column; gap: 14px; }
.tm-pw { display: flex; gap: 8px; } .tm-pw input { flex: 1; }
.tm-must { padding-top: 4px; }
.tm-rlbl { margin-top: 6px; }
.tm-roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tm-roleopt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid #d9d8e8; border-radius: 10px; font-size: 13px; cursor: pointer; }
.tm-roleopt:has(input:checked) { border-color: #3b3683; background: #edecfb; }
.tm-roleopt input { margin-top: 3px; accent-color: #3b3683; }
.tm-roleopt b { font-weight: 500; } .tm-roleopt small { display: block; color: #5c5a7b; font-size: 12px; margin-top: 2px; }
.tm-new-actions { display: flex; gap: 10px; justify-content: flex-end; }
.tm-matrix-wrap { overflow-x: auto; border-radius: 14px; box-shadow: 0 1px 2px rgba(29,26,54,.06), 0 8px 24px rgba(29,26,54,.05); }
.tm-matrix { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; font-size: 13px; }
.tm-matrix th { background: var(--nav, #2c2b3b); color: #e3e2f5; font-weight: 400; padding: 14px 8px; text-align: center; }
.tm-matrix th small { display: block; font-size: 10px; color: #9592bb; margin-top: 2px; }
.tm-matrix th.lead { text-align: left; padding-left: 20px; width: 340px; font-size: 10px; letter-spacing: 1.3px; text-transform: uppercase; color: #9592bb; background: #2c2a4e; }
.tm-matrix td { padding: 9px 8px; border-bottom: 1px solid #eae9f6; text-align: center; }
.tm-matrix td.lead { text-align: left; padding-left: 20px; }
.tm-matrix td.lead small { display: block; color: #76749b; font-size: 11px; margin-top: 2px; }
.tm-matrix tr.grp td { background: #e3e1f8; font-size: 10px; letter-spacing: 1.3px; text-transform: uppercase; color: #3d3b5b; font-weight: 600; text-align: left; padding: 8px 20px; }
.tm-matrix tr.sens td.lead { color: #a8432c; font-weight: 500; }
.tm-box-l { display: inline-flex; cursor: pointer; }
.tm-box-l input { position: absolute; opacity: 0; pointer-events: none; }
.tm-box { display: inline-flex; width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid #cccade; align-items: center; justify-content: center; color: #fff; font-size: 12px; }
.tm-box-l input:checked + .tm-box { background: #3b3683; border-color: #3b3683; }
.tm-box-l input:checked + .tm-box::after { content: '✓'; }
.tm-box-l input:focus-visible + .tm-box { outline: 2px solid #7e78cb; }
.tm-box.on { background: #5f59ad; border-color: #5f59ad; }
.tm-sel { font-size: 12px !important; padding: 5px 6px !important; }
.tm-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.tm-notes div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; font-size: 13px; color: #3d3b5b; line-height: 1.55; }
.tm-notes b { font-weight: 600; }
.tm-pwform { padding: 22px 24px; max-width: 460px; display: flex; flex-direction: column; gap: 14px; }
.hm-dropdown a { display: flex; gap: 8px; align-items: center; padding: 9px 10px; border-radius: 5px; font-size: 13px; color: inherit; text-decoration: none; }
.hm-dropdown a:hover { background: #e9e7f9; }
@media (max-width: 1100px) { .tm-layout.has-side { grid-template-columns: 1fr; } .tm-side { position: static; } .tm-kpis { grid-template-columns: repeat(2, 1fr); } .tm-roles, .tm-notes { grid-template-columns: 1fr; } }
@media print { .tm-cred-btns, .tm-layout, .tm-kpis { display: none !important; } }

/* ---------- KI-Telefonie: Agent bearbeiten (Nesslerhof) ---------- */
.ag-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 22px; align-items: start; margin-bottom: 40px; }
.ag-caps { font-size: 10px; letter-spacing: 1.8px; font-weight: 600; text-transform: uppercase; color: #3b3683; }
.ag-side { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 22px; min-width: 0; }
.ag-agents { display: flex; flex-direction: column; gap: 10px; }
.ag-agent { display: flex; background: #fff; border: 1px solid transparent; color: var(--ink); transition: border-color .15s; min-width: 0; }
.ag-agent:hover { border-color: #a39ee5; }
.ag-agent.is-on { border-color: var(--green); }
.ag-agent-tag { writing-mode: vertical-rl; transform: rotate(180deg); text-align: right; background: #e3e2f5; color: var(--muted); font-size: 9px; letter-spacing: 1.8px; font-weight: 600; text-transform: uppercase; padding: 14px 8px; flex: none; }
.ag-agent.is-live .ag-agent-tag { background: var(--lime); color: #2c2b3b; }
.ag-agent-body { padding: 15px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ag-agent-body b { font-weight: 600; overflow-wrap: anywhere; }
.ag-agent-body small { font-size: 12px; color: var(--muted); }
.ag-agent-body em { font-style: normal; font-size: 10px; letter-spacing: 1.6px; font-weight: 600; text-transform: uppercase; color: #1e1594; }
.ag-info { background: #fff; padding: 16px; font-size: 12px; color: var(--muted); line-height: 1.5; display: flex; flex-direction: column; gap: 6px; }
.ag-form { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.ag-sec { background: #fff; min-width: 0; border-left: 3px solid transparent; transition: border-color .15s; }
.ag-sec.is-changed { border-left-color: var(--lime); }
.ag-sec > header { padding: 20px 24px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; }
.ag-sec > header h2 { font-family: var(--serif); font-weight: 300; font-size: 22px; letter-spacing: .04em; }
.ag-sec > header .ag-caps { color: var(--muted); }
.ag-body { padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ag-field { display: flex; flex-direction: column; gap: 7px; font-size: 12px; color: var(--muted); min-width: 0; }
.ag-field[hidden] { display: none; }
.ag-field input[type=text], .ag-field input[type=time], .ag-field input[type=date], .ag-field select, .ag-field textarea { width: 100%; border: 1px solid #c7c4e9; border-radius: 5px; background: #fff; color: var(--ink); font-family: var(--sans); font-size: 14px; padding: 10px 12px; min-height: 42px; }
.ag-field textarea { line-height: 1.55; resize: vertical; min-height: 92px; }
.ag-field .ag-prompt { font-size: 13px; line-height: 1.6; min-height: 320px; }
.ag-field input:focus, .ag-field select:focus, .ag-field textarea:focus { outline: 2px solid #a39ee5; outline-offset: 0; border-color: var(--green); }
.ag-body > .ag-field > input[type=text] { max-width: 460px; }
.ag-count { align-self: flex-end; font-size: 11px; }
.ag-hint { font-size: 12px; color: var(--muted); line-height: 1.5; }
.ag-hint code { font-family: var(--sans); background: #e3e2f5; color: #3b3683; padding: 1px 6px; font-size: 11px; white-space: nowrap; }
.ag-tabs { display: flex; gap: 4px 20px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.ag-tabs::-webkit-scrollbar { display: none; }
.ag-tabs button { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; letter-spacing: 1.6px; font-weight: 600; text-transform: uppercase; color: var(--muted); padding: 4px 0 11px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.ag-tabs button.is-on { color: var(--ink); border-bottom-color: var(--ink); }
.ag-dot { width: 6px; height: 6px; border: 1px solid #a39ee5; display: inline-block; }
.ag-dot.is-filled { background: var(--lime); border-color: var(--lime); }
.ag-form:not(.is-js) .ag-tabs { display: none; }
.ag-voice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; }
.ag-voice input[type=range] { width: 100%; accent-color: var(--green); margin: 8px 0 0; }
.ag-voice output { color: var(--ink); }
.ag-scale { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; }
.ag-link { align-self: flex-start; font-size: 10px; letter-spacing: 1.6px; font-weight: 600; text-transform: uppercase; color: #3b3683; padding: 4px 0; }
.ag-link[hidden] { display: none; }
.ag-rows { display: flex; flex-direction: column; gap: 10px; }
.ag-row { display: grid; gap: 12px; align-items: end; padding: 14px; background: #f2f1fa; min-width: 0; }
.ag-slot { grid-template-columns: auto 130px 130px minmax(0, 1fr) auto; }
.ag-vac { grid-template-columns: minmax(0, 170px) minmax(0, 170px) minmax(0, 1fr) auto; }
.ag-row .ag-msg { grid-column: 1 / -1; grid-row: 2; }
.ag-row .ag-remove { grid-column: -2; grid-row: 1; }
.ag-days { border: 0; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; align-self: end; padding-bottom: 6px; }
.ag-days label { cursor: pointer; }
.ag-days input { position: absolute; opacity: 0; pointer-events: none; }
.ag-days span { display: inline-block; min-width: 30px; text-align: center; padding: 6px 4px; font-size: 10px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; border: 1px solid #c7c4e9; background: #fff; color: var(--muted); }
.ag-days input:checked + span { background: var(--nav); border-color: var(--nav); color: #fff; }
.ag-days input:focus-visible + span { outline: 2px solid var(--lime); }
.ag-remove { font-size: 11px; color: #a8432c; padding: 12px 2px; white-space: nowrap; }
.ag-remove:hover { text-decoration: underline; }
.ag-empty { font-size: 12px; color: var(--muted); }
.ag-empty[hidden] { display: none; }
.ag-form:not(.is-js) .ag-empty, .ag-form:not(.is-js) .ag-add { display: none; }
.ag-add { align-self: flex-start; font-size: 11px; letter-spacing: 1.6px; font-weight: 600; text-transform: uppercase; color: var(--ink); border-bottom: 1px solid var(--lime); padding: 4px 0; }
.ag-switch { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; cursor: pointer; }
.ag-switch input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--green); margin: 0; }
.ag-bar { position: sticky; bottom: 0; z-index: 5; background: var(--nav); color: #fff; padding: 14px 22px; display: flex; justify-content: space-between; align-items: center; gap: 12px 16px; flex-wrap: wrap; font-size: 13px; }
.ag-form.is-dirty .ag-bar [data-ag-state] { color: #b4b0f0; font-weight: 600; }
.ag-bar-actions { display: flex; gap: 10px; margin-left: auto; }
.ag-btn { display: inline-flex; align-items: center; justify-content: center; font-size: 11px; letter-spacing: 1.6px; font-weight: 600; text-transform: uppercase; padding: 14px 18px; background: var(--lime); color: #2c2b3b; border: 1px solid var(--lime); white-space: nowrap; }
.ag-btn:hover { background: #9c97eb; }
.ag-btn.is-ghost { background: transparent; color: #fff; border-color: #504e6d; }
.ag-btn.is-ghost:hover { border-color: #b4b0f0; }
.ag-errors ul { margin: 6px 0 0; padding-left: 18px; }
@media (max-width: 1280px) {
    .ag-layout { grid-template-columns: minmax(0, 1fr); }
    .ag-side { position: static; }
    .ag-agents { flex-direction: row; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
    .ag-agent { flex: 0 0 auto; min-width: 220px; max-width: 300px; }
    .ag-info { display: none; }
}
@media (max-width: 1000px) {
    .ag-voice { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .ag-voice > .ag-field:first-child { grid-column: 1 / -1; }
    .ag-slot { grid-template-columns: minmax(0, 150px) minmax(0, 150px) minmax(0, 1fr) auto; }
    .ag-slot .ag-days { grid-column: 1 / -1; grid-row: 1; padding-bottom: 0; }
    .ag-slot .ag-time, .ag-slot .ag-remove { grid-row: 2; }
    .ag-slot .ag-msg { grid-row: 3; }
    .ag-vac { grid-template-columns: minmax(0, 170px) minmax(0, 170px) minmax(0, 1fr) auto; }
    .ag-vac .ag-label { grid-column: 1 / -1; grid-row: 2; }
    .ag-vac .ag-msg { grid-row: 3; }
    .ag-vac .ag-date, .ag-vac .ag-remove { grid-row: 1; }
}
@media (max-width: 760px) {
    .ag-layout { gap: 16px; }
    .ag-form { gap: 16px; }
    .ag-sec > header { padding: 16px; }
    .ag-sec > header h2 { font-size: 20px; }
    .ag-body { padding: 16px; }
    .ag-voice { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .ag-field .ag-prompt { min-height: 260px; }
    .ag-row, .ag-slot, .ag-vac { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 12px; gap: 10px; }
    .ag-row > * { grid-column: auto; grid-row: auto; }
    .ag-row .ag-msg, .ag-row .ag-label, .ag-slot .ag-days { grid-column: 1 / -1; grid-row: auto; }
    .ag-row .ag-remove { grid-column: 1 / -1; grid-row: auto; justify-self: start; padding: 2px 0; }
    .ag-days span { min-width: 36px; padding: 8px 4px; }
    .ag-bar { padding: 12px 16px; }
    .ag-bar [data-ag-state] { font-size: 12px; flex: 1 1 100%; }
    .ag-bar-actions { width: 100%; }
    .ag-bar-actions .ag-btn { flex: 1; padding: 13px 10px; }
}
/* Nesslerhof-eigene Form: runde Karten, Agent-Chip statt senkrechtem Label, Serifen-Titel */
.ag-sec, .ag-agent, .ag-info { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.ag-sec { border-left-width: 1px; }
.ag-sec.is-changed { border-color: #9794c2; box-shadow: inset 3px 0 0 var(--green); }
.ag-sec > header { border-bottom-color: #e5e4f3; }
.ag-sec > header h2 { font-weight: 400; font-size: 21px; letter-spacing: 0; }
.ag-agent { flex-direction: column; }
.ag-agent.is-on { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.ag-agent-tag { writing-mode: horizontal-tb; transform: none; text-align: left; align-self: flex-start; margin: 14px 16px 0; padding: 4px 9px; border-radius: 20px; letter-spacing: 1.2px; }
.ag-agent-body { padding-top: 9px; }
.ag-row { border-radius: 6px; }
.ag-days span { border-radius: 4px; }
.ag-dot { border-radius: 50%; }
.ag-btn { border-radius: 5px; letter-spacing: 1.2px; }
.ag-btn:not(.is-ghost) { color: #2c2b3b; }
.ag-bar { border-radius: 8px; }
.ag-tabs button.is-on { color: var(--green); border-bottom-color: var(--green); }
.ag-days input:checked + span { background: var(--green); border-color: var(--green); }
.ag-hint code { border-radius: 4px; }

/* ---------- Anruf: Zusammenfassung (Variante B, Nesslerhof) ---------- */
.tf-detail .tf-summary { background: var(--lime); border-radius: 8px; padding: 18px 20px; color: #2c2b3b; }
.tf-detail .tf-summary > span { color: #3a3766; margin-bottom: 8px; }
.tf-summary-title { display: block; font-family: var(--serif); font-weight: 400; font-size: 23px; line-height: 1.25; margin-bottom: 8px; overflow-wrap: anywhere; }
.tf-detail .tf-summary p { color: #2c2b3b; }
.tf-summary-extra { margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12px; }
.tf-summary-extra div { display: flex; gap: 6px; }
.tf-summary-extra dt { color: #504e6d; }
.tf-summary-extra dd { margin: 0; font-weight: 600; }
.tf-reason { align-self: flex-start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 600; background: #e3e2f5; color: #3a3766; padding: 3px 9px; border-radius: 20px; }
.tf-row.is-sel .tf-reason { background: #fff; }
.tf-row p:empty { display: none; }
@media (max-width: 760px) { .tf-summary-title { font-size: 20px; } }

/* ---------- Anrufe: Liste und Gespräch scrollen jeweils für sich ---------- */
@media (min-width: 1001px) {
    /* Block ist so hoch wie das Fenster (abzüglich Fußzeile) – ganz nach unten gescrollt sieht man alles */
    .tf-grid { align-items: stretch; height: calc(100vh - 120px); min-height: 480px; }
    .tf-list, .tf-detail { position: static; height: auto; min-height: 0; }
    .tf-list { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
    .tf-list .tf-filter { position: sticky; top: 0; z-index: 2; background: #fff; }
    .tf-list .hm-pager { position: sticky; bottom: 0; background: #fff; }
    .tf-detail { display: flex; flex-direction: column; }
    .tf-detail-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
}
@media (max-width: 1000px) {
    .tf-list { max-height: 60vh; overflow-y: auto; overscroll-behavior: contain; }
    .tf-list .tf-filter { position: sticky; top: 0; z-index: 2; background: #fff; }
    .tf-detail { position: static; }
}

/* ---------- Standard-Hotelcockpit (r257): Marke ohne Logo, Erste Schritte, Formulare ---------- */
.hs-brand { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hs-brand i { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--green); color: #fff; font-style: normal; font-size: 21px; font-weight: 600; }
.hs-brand b { font-size: 15px; font-weight: 500; color: #fff; line-height: 1.25; }
.hs-brand span { margin-top: 0 !important; opacity: .7; }
.hs-brand-login { flex-direction: row; gap: 12px; }
.hs-brand-login b { font-size: 17px; }
.hm-natalie { background: var(--green); color: #fff; font-size: 16px; font-weight: 600; }
.hs-steps > div { color: var(--muted); }
.hs-steps > div .hm-list-icon { color: #b28a3c; background: #fbf5ea; }
.hs-steps > div.is-ok .hm-list-icon { color: #2f7a3a; background: #e7f6ea; }
.hs-steps > div.is-ok strong { color: var(--ink); }
.hs-narrow { max-width: 560px; }
.hs-form { display: flex; flex-direction: column; gap: 16px; padding: 22px; }
.hs-form .hm-btn { align-self: flex-start; }
