/* ==========================================================
   Nesslerhof · Hotelzentrale
   Eigenes Design – gilt nur fuer das Nesslerhof-Dashboard.
   ========================================================== */

@font-face { font-family: Function; src: url('fonts/function.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: Selna; src: url('fonts/selna.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
    --ink: #333a33;
    --muted: #74776e;
    --line: #e2e4dc;
    --green: #657247;
    --nav: #30372f;
    --bg: #f5f6f2;
    --paper: #fff;
    --lime: #dbe3bd;
    --money: #8d7245;
    --serif: Selna, Georgia, serif;
    --sans: Function, 'Segoe UI', system-ui, 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: #d8ddce; z-index: 40; display: flex; flex-direction: column; }
.hm-brand { display: block; color: #e7ebdf; padding: 26px 22px 22px; text-align: center; border-bottom: 1px solid #475044; }
.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: #647058 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: #b5beac; 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: #d2d9ca; font-size: 13px; padding: 10px; border-radius: 6px; margin: 2px 0; min-height: 38px; transition: background .15s; }
.hm-nav:hover { background: #414b3c; color: #fff; }
.hm-nav.hm-active { background: var(--lime); color: #303d27; }
.hm-nav span { flex: 1; }
.hm-nav.is-soon { color: #a9b1a0; }
.hm-nav.is-soon.hm-active { color: #303d27; }
.hm-nav em { width: 5px; height: 5px; border-radius: 50%; background: #67725c; }
.hm-nav.hm-active em { background: #9aa883; }
.hm-side-footer { border-top: 1px solid #4b5445; display: flex; align-items: center; gap: 10px; padding: 17px 14px; }
.hm-natalie { display: grid; place-items: center; width: 33px; height: 33px; background: #aab982; color: #26341f; 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: #e2e7d9; }
.hm-side-footer small { display: block; font-size: 10px; margin-top: 3px; color: #b6c0ae; }
.hm-side-footer > svg { margin-left: auto; color: #dbe1d2; }

.hm-nav-group { margin-bottom: 18px; }
.hm-nav-label { display: block; font-size: 10px; letter-spacing: 1.7px; text-transform: uppercase; color: #b5beac; 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: #5f6a52; }
.hm-tabs a:hover { color: var(--ink); background: #eef2e6; border-radius: 5px 5px 0 0; }
.hm-tabs a.selected { border-color: #738747; color: #43582c; background: #edf2e3; border-radius: 5px 5px 0 0; }
.hm-tabs a.is-soon { color: #99a08d; }
.hm-tabs em { font-style: normal; font-size: 9px; letter-spacing: .4px; color: #9aa28d; border: 1px solid #dde2d3; 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: #b1b8a5; }
.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: #eff2e8; }
.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 #26371f1f; 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 #eef1e7; 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: #f2f5eb; }
.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: #6a735b; 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: #777c6d; }

/* ---------- Bausteine ---------- */
.hm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: #fff; border: 1px solid #d9ded0; 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: #f0f3e8; border-color: #aeb79f; }
.hm-btn.hm-primary { background: #364330; border-color: #364330; color: #fff; }
.hm-btn.hm-primary:hover { background: #4c5b42; }
.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 #e0e4d9; background: #f2f4ed; color: #647255; border-radius: 4px; font-size: 10px; line-height: 1.2; padding: 4px 7px; white-space: nowrap; font-weight: 500; }
.hm-badge.green { background: #eaf1e1; border-color: #dae5cf; color: #4a613c; }
.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: #fafbf7; color: #6f775f; padding: 5px 9px; text-transform: uppercase; }
.hm-live-dot { width: 6px; height: 6px; border-radius: 50%; background: #7f9864; box-shadow: 0 0 0 3px #7f986426; }

.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: #6c7462; }
.hm-stat svg { color: #899674; }
.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: #787e6f; }

.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 #edf0e7; }
.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: #6f775f; }
.hm-prose p + p { margin-top: 12px; }
.hm-note { display: flex; align-items: flex-start; gap: 11px; background: #ecefe4; border: 1px solid #e2e7d8; border-radius: 6px; padding: 13px 16px; font-size: 12px; line-height: 1.6; color: #657052; 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: #848c76; background: #fafbf7; padding: 13px 19px; border-bottom: 1px solid #e7ebde; font-weight: 500; white-space: nowrap; }
.hm-table td { padding: 15px 19px; border-bottom: 1px solid #edf0e7; vertical-align: middle; }
.hm-table tr:last-child td { border-bottom: 0; }
.hm-table tr:hover td { background: #fafbf7; }
.hm-table td small { display: block; font-size: 10px; color: #858c79; 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: #939b86; 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 #edf0e6; font-size: 13px; }
.hm-list > a:last-child, .hm-list > div:last-child { border: 0; }
.hm-list > a:hover { background: #f7f9f0; }
.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: #8b927e; margin-top: 4px; }
.hm-list-icon { width: 31px; height: 31px; border-radius: 6px; background: #edf1e5; display: grid; place-items: center; color: #8a9a6c; flex-shrink: 0; }
.hm-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.hm-chip { display: inline-flex; align-items: center; gap: 7px; background: #f2f5eb; border: 1px solid #e3e9d6; border-radius: 20px; padding: 6px 12px; font-size: 11px; color: #56633f; }
.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 #e9eddf; color: #8a907e; }
.hm-facts > div:last-child { border-bottom: 0; }
.hm-facts strong { font-size: 12px; color: #4f5b42; 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: #e8eddc; border: 1px solid #e0e6d1; 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: #758263; 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 #e0e6d1; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; font-size: 10px; color: #6b7a57; }
.hm-flow svg { color: #8a9a6c; }

/* ---------- 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: #6e8350; margin-bottom: 9px; min-height: 24px; }
.hm-occupancy-bars > a > div { height: 95px; width: 60%; max-width: 90px; background: #f0f4e6; border-radius: 5px; position: relative; overflow: hidden; }
.hm-occupancy-bars i { position: absolute; bottom: 0; left: 0; right: 0; height: 0; background: #b3c78e; border-radius: 5px; transition: height .5s ease; }
.hm-occupancy-bars > a:hover i { background: #9fb779; }
.hm-occupancy-bars span { margin-top: 10px; font-size: 12px; }
.hm-occupancy-bars small { font-size: 10px; color: #929d80; margin-top: 3px; }
.hm-occupancy-bars .is-loading > div { background: linear-gradient(90deg, #f0f4e6 0%, #f7f9f1 50%, #f0f4e6 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: #eef1e7; }
.hm-img-empty { display: grid; place-items: center; color: #b3bca4; }
.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: #858c79; line-height: 1.6; }
.hm-room-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11px; color: #6c7462; padding: 11px 0; border-top: 1px solid #eef1e7; border-bottom: 1px solid #eef1e7; margin-top: auto; }
.hm-room-meta span { display: inline-flex; align-items: center; gap: 5px; }
.hm-room-meta svg { color: #8e9c78; }
.hm-room-price { display: flex; justify-content: space-between; align-items: baseline; font-size: 11px; color: #828d72; }
.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: #eef1e7; }
.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: #7d856f; 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: #56633f; }
.hm-offer li { display: flex; gap: 7px; align-items: flex-start; }
.hm-offer li svg { color: #8fa36c; 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 #dce6ca; border-radius: 6px; background: #f6f9f0; 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: #607540; font-weight: 500; white-space: nowrap; }
.hm-spa-slot p { font-size: 11px; color: #7f8873; line-height: 1.6; }
.hm-spa-slot small { font-size: 10px; color: #8f9a80; }

/* ---------- 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: #6c7a59; min-width: 0; }
.hm-field > input, .hm-field > select { width: 100%; font-size: 13px; padding: 10px 11px; border: 1px solid #d9e1cc; border-radius: 5px; background: #fff; color: #414e35; min-height: 39px; }
.hm-field > input:focus, .hm-field > select:focus { outline: 2px solid #c9d6ad; outline-offset: 0; border-color: #a9b98a; }
.hm-checkbox { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #6b7a57; cursor: pointer; }
.hm-checkbox input { width: 15px; height: 15px; margin: 0; accent-color: #829952; }
.hm-errors { margin: 0 22px 18px; }

/* ---------- Geplante Bereiche ---------- */
.hm-planned { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; border: 1px solid #e0e6d1; border-radius: 8px; overflow: hidden; background: #e8eddc; 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: #758263; line-height: 1.8; }
.hm-planned ul { list-style: none; margin: 0; padding: 34px; background: #f4f7ec; display: flex; flex-direction: column; gap: 14px; font-size: 13px; color: #4f5b42; }
.hm-planned li { display: flex; gap: 10px; align-items: flex-start; }
.hm-planned li svg { color: #8fa36c; margin-top: 2px; }

/* ---------- KI-Wissen ---------- */
.hm-knowledge details { border-bottom: 1px solid #edf0e7; }
.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: #9aa68a; 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: #6f775f; 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: #eef1e7; }
.hm-login-art::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #30372fcc 0%, #30372f55 45%, #30372fdd 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: #d6dccb; }
.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: #98a187; padding: 26px 0 22px; margin-top: 20px; border-top: 1px solid #e1e7d5; }
.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: #1c291657; 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: #f3f6ec; border-radius: 3px; }
.hm-bars30 i { display: block; width: 100%; background: #b3c78e; border-radius: 3px; }
.hm-bars30 > div:hover i { background: #8fa86a; }
.hm-bars30 span { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); font-size: 9px; color: #929d80; white-space: nowrap; }
.hm-code { margin: 0 0 10px; padding: 12px 14px; background: #f6f8f2; border: 1px solid #e3e8d8; border-radius: 6px; font: 11px/1.6 ui-monospace, Menlo, Consolas, monospace; color: #4f5b42; 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 #dce1d4; border-radius: 5px; overflow: hidden; }
.hm-segment a { padding: 7px 12px; font-size: 11px; border-right: 1px solid #e7eadf; background: #fff; }
.hm-segment a:last-child { border-right: 0; }
.hm-segment a:hover { background: #eef2e5; }
.hm-segment a.selected { background: #e9eedf; color: #4b5b35; }
.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: #8a9a6c; }
.hm-pager { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-top: 1px solid #edf0e7; font-size: 12px; }
.hm-chat { padding: 22px; display: flex; flex-direction: column; gap: 12px; background: #fafbf7; }
.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 #e4e8dc; border-bottom-left-radius: 3px; }
.hm-msg-agent { align-self: flex-end; background: #e6edd6; color: #33402a; 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: #98a187; background: #f0f3ea; 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: #f6f7f3; color: #6f775f; }
.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 #d9e1cc; border-radius: 5px; background: #fff; color: #414e35; line-height: 1.55; resize: vertical; }
.hm-field > textarea:focus { outline: 2px solid #c9d6ad; border-color: #a9b98a; }
.hm-field small { color: #9aa28d; 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 #d9e1cc; border-radius: 5px; background: #fff; }
.hm-color input:not([type=color]) { flex: 1; font-size: 13px; padding: 10px 11px; border: 1px solid #d9e1cc; 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: #eef2e5; border-radius: 3px; overflow: hidden; margin-bottom: 6px; }
.hm-meter i { display: block; height: 100%; background: #a4b97c; }
.hm-note.hm-ok { background: #edf5e0; border-color: #dbe8c5; color: #4f6a35; }
@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 #d9e1cc; border-radius: 5px; background: #fff; color: #414e35; }
.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 #d9e1cc; border-radius: 5px; background: #fff; color: #414e35; }
.hm-en { border-top: 1px solid var(--line); }
.hm-en > summary { cursor: pointer; padding: 14px 22px; font-size: 13px; color: #566040; }
.hm-en > summary small { color: #9aa28d; margin-left: 6px; }
.hm-diff { display: grid; grid-template-columns: 180px 1fr 1fr; gap: 16px; padding: 16px 22px; border-top: 1px solid #edf0e7; font-size: 13px; }
.hm-diff-head { border-top: 0; font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: #8a917e; 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: #edf5e0; color: #3f5a2a; }
.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 #edf0e7; }
.hm-change:first-child { border-top: 0; }
.hm-change-meta small { display: block; color: #8a917e; font-size: 11px; margin-top: 3px; }
.hm-change details > summary { cursor: pointer; font-size: 12px; color: #566040; }
@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: #4a5343; border-radius: 7px; }
.hw-tabs button:hover { background: #f1f3ec; }
.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 #edf0e7; }
.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: #414e35; margin-bottom: 4px; }
.hw-hint { font-size: 12px; color: #8a917e; 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: #f3f4ef; 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: #6b7263; border-radius: 6px; border: 1px solid transparent; }
.hw-seg input:checked + span { background: #fff; border-color: #dfe3d6; color: #333a33; box-shadow: 0 1px 2px #0000000f; }
.hw-seg .is-yes input:checked + span { color: #4f7a2e; }
.hw-seg .is-no input:checked + span { color: #b0662a; }
.hw-seg input:focus-visible + span { outline: 2px solid #a9b98a; }
.hw-period { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px; color: #6b7263; }
.hw-period input { font-size: 13px; padding: 8px 10px; border: 1px solid #d9e1cc; 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: #8a917e; }
.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 #d9e1cc; border-radius: 5px; background: #fff; color: #414e35; }
.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 #d9e1cc !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: #8a917e; }
.kn-sys { background: #fff; border-radius: 14px; box-shadow: 0 1px 2px rgba(48,55,47,.06), 0 8px 24px rgba(48,55,47,.05); overflow: hidden; }
.kn-sys-head { display: flex; align-items: center; gap: 14px; padding: 16px 24px; border-bottom: 1px solid #eef0ea; }
.kn-sys-head strong { flex: 1; font-size: 16px; font-weight: 600; color: #2f352e; }
.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, #30372f); color: #dbe3bd; }
.kn-mark.kn-green { background: #657247; color: #fff; }
.kn-state { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #4a5343; }
.kn-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #c9ccc2; }
.kn-dot.ok { background: #7fa84f; } .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 #eef0ea; }
.kn-part:last-of-type { border-bottom: 0; }
.kn-part.is-off { background: #fafaf7; }
.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: #2f352e; }
.kn-part-name a:hover { color: #566040; }
.kn-part.is-off .kn-part-name span { color: #4a5343; }
.kn-part-name small { font-size: 12px; color: #6b7263; }
.kn-part-name small.kn-sub-ok { color: #4a613c; } .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: #f0f3e6; color: #4a5343; }
.kn-chip.warn { background: #f8f0e1; color: #8c6634; }
.kn-chip.off { background: transparent; border: 1px dashed #c9ccc2; color: #6b7263; padding: 5px 10px; }
.kn-notes { padding: 10px 24px 14px; border-top: 1px solid #eef0ea; 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 #eef0ea; }
.tf-filter .kn-chip { text-decoration: none; }
.tf-filter .kn-chip.is-on { background: var(--nav, #30372f); color: #fff; }
.tf-filter small { margin-left: auto; font-size: 11px; color: #8a917e; }
.tf-row { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-bottom: 1px solid #eef0ea; border-left: 3px solid transparent; color: inherit; text-decoration: none; }
.tf-row:hover { background: #fafbf7; }
.tf-row.is-sel { background: #f6f8ef; border-left-color: #657247; }
.tf-row-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.tf-row-top strong { font-weight: 600; color: #2f352e; }
.tf-row-top span { color: #6b7263; white-space: nowrap; }
.tf-row p { margin: 0; font-size: 13px; line-height: 1.45; color: #4a5343; }
.tf-muted { color: #8a917e !important; }
.tf-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tf-tag { font-size: 11px; padding: 3px 8px; border-radius: 6px; background: #eaf1e1; color: #4a613c; }
.tf-tag.amber { background: #f8f0e1; color: #8c6634; }
.tf-tag.grey { background: #eceee8; color: #5c6455; }
.tf-detail-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid #eef0ea; }
.tf-detail-head strong { display: block; font-size: 16px; font-weight: 600; color: #2f352e; }
.tf-detail-head small { font-size: 12px; color: #6b7263; }
.tf-detail-body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 14px; }
.tf-summary { background: #f6f8ef; border-radius: 10px; padding: 14px 16px; }
.tf-summary span, .tf-label { display: block; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: #6b7263; margin-bottom: 6px; }
.tf-label { margin: 4px 0 -6px; }
.tf-summary p { margin: 0; font-size: 14px; line-height: 1.55; color: #2f352e; 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: #5c6455; }
.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: #f0f3e6; color: #657247; display: flex; align-items: center; justify-content: center; }
.tf-empty strong { font-size: 18px; font-weight: 600; color: #2f352e; }
.tf-empty p { margin: 0; max-width: 470px; font-size: 14px; line-height: 1.5; color: #5c6455; }
.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: #6b7263; }
.gk-kpi b { font-family: Selna, Georgia, serif; font-weight: 400; font-size: 30px; color: #30372f; }
.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 #e2e4dc; border-radius: 8px; margin-bottom: 6px; background: #fafbf7; }
.gk-side-lbl { font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: #7a8270; padding: 12px 10px 4px; }
.gk-side a { display: flex; justify-content: space-between; font-size: 13px; padding: 8px 10px; border-radius: 8px; color: #4a5343; text-decoration: none; }
.gk-side a:hover { background: #f4f6ef; }
.gk-side a.on { background: var(--nav, #30372f); 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 #eef0ea; background: #fafbf7; }
.gk-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.gk-table th { font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: #7a8270; font-weight: 400; text-align: left; padding: 12px 14px; border-bottom: 1px solid #eef0ea; }
.gk-table td { padding: 14px; border-bottom: 1px solid #f1f3ec; vertical-align: top; }
.gk-table tbody tr { cursor: pointer; } .gk-table tbody tr:hover td { background: #fafbf7; }
.gk-table td > b { display: block; font-weight: 500; } .gk-table td small { display: block; font-size: 12px; color: #6b7263; margin-top: 2px; }
.gk-table td small.green { color: #4a613c; } .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: #6b7263; margin: 2px 0 6px; }
.gk-av { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-family: Selna, Georgia, serif; font-size: 16px; flex-shrink: 0; background: #e9eedf; color: #4a5343; }
.gk-av.dark { background: #30372f; color: #dbe3bd; } .gk-av.green { background: #657247; color: #fff; }
.gk-chip { display: inline-block; font-size: 11px; padding: 4px 9px; border-radius: 20px; background: #f0f3e6; color: #4a5343; 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: #30372f; color: #dbe3bd; }
.gk-fav { font-size: 12px; color: #4a5343; line-height: 1.5; max-width: 260px; }
.gk-bar { display: block; height: 5px; background: #eef0ea; 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: #657247; } .gk-bar i.amber { background: #d7a03a; }
b.amber, p.amber, span.amber, .amber { color: #8c6634; }
.gk-foot { font-size: 12px; color: #8a917e; 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(48,55,47,.06), 0 8px 24px rgba(48,55,47,.05); overflow: hidden; position: sticky; top: 20px; }
.gk-pass-top { background: var(--nav, #30372f); color: #eef1e6; 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: #dbe3bd; color: #30372f; display: flex; align-items: center; justify-content: center; font-family: Selna, Georgia, serif; font-size: 25px; }
.gk-pass-level { font-size: 12px; padding: 5px 10px; border-radius: 20px; background: #3d4632; color: #dbe3bd; }
.gk-pass-top h1 { font-family: Selna, Georgia, serif; font-weight: 400; font-size: 25px; line-height: 1.15; margin: 0; color: #eef1e6; }
.gk-pass-top small { font-size: 12px; color: #a9b19c; }
.gk-pass-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; margin-top: 4px; }
.gk-pass-stats div { background: #3d4632; border-radius: 10px; padding: 9px 4px; }
.gk-pass-stats b { display: block; font-family: Selna, Georgia, serif; font-weight: 400; font-size: 22px; }
.gk-pass-stats span { font-size: 10px; color: #a9b19c; }
.gk-pass-sec { padding: 16px 20px; border-top: 1px solid #eef0ea; 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: #5c6455; line-height: 1.45; }
.gk-pass-sec p.gk-muted { font-size: 12px; color: #8a917e; margin-top: 8px; }
.gk-pass-sub { display: flex; justify-content: space-between; align-items: baseline; font-size: 11px; color: #8a917e; }
.gk-pass-sub b { font-size: 13px; color: #2f352e; }
.gk-lbl { display: block; font-size: 10px; letter-spacing: 1.3px; text-transform: uppercase; color: #7a8270; }
.gk-lbl.green { color: #4a613c; } .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 #f1f3ec; }
.gk-kv:last-child { border-bottom: 0; }
.gk-kv span { color: #6b7263; flex-shrink: 0; } .gk-kv b { font-weight: 500; text-align: right; }
.gk-kv b.red { color: #a8432c; } .gk-kv b.muted { color: #b0b5a6; }
.gk-person { display: flex; gap: 10px; align-items: center; margin-top: 9px; color: #6b7263; }
.gk-person b { font-weight: 500; color: #2f352e; }
.gk-who { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: #e6edd6; color: #4a5343; font-size: 10px; align-items: center; justify-content: center; font-weight: 600; flex-shrink: 0; }
.gk-who.kid { background: #f8f0e1; } .gk-who.pet { background: #eceee8; } .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: #4a5343; text-decoration: none; white-space: nowrap; }
.gk-tabs a:hover { background: #f4f6ef; }
.gk-tabs a.on { background: var(--nav, #30372f); 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: #eceee8; }
.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: #5c6455; }
.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: #657247; }
.gk-alert.red .gk-ico { color: #a8432c; } .gk-alert.amber .gk-ico { color: #8c6634; }
.gk-ico.soft { background: #f0f3e6; 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 #eef0ea; }
.gk-h strong { font-size: 14px; font-weight: 600; color: #30372f; }
.gk-h span, .gk-h a { font-size: 11px; color: #8a917e; }
.gk-h a { color: #566040; }
.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 #f3f5ee; align-items: flex-start; }
.gk-li:last-child { border-bottom: 0; }
.gk-li small { display: block; font-size: 12px; color: #6b7263; }
.gk-li b { font-weight: 500; }
.gk-li.done { color: #8a917e; 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: #eceee8; color: #5c6455; }
.gk-st.ok { background: #eaf1e1; color: #4a613c; } .gk-st.open { background: #f8f0e1; color: #8c6634; }
.gk-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; background: #b0b5a6; }
.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 #f1f3ec; font-size: 12px; }
.gk-hist > div:last-child { border-right: 0; }
.gk-hist > div.now { background: #f6f8ef; }
.gk-hist small { display: block; color: #6b7263; margin-top: 3px; }
.gk-hist p { margin: 5px 0 0; color: #5c6455; font-size: 11px; line-height: 1.4; }
.gk-ptable-wrap { overflow-x: auto; border-radius: 14px; box-shadow: 0 1px 2px rgba(48,55,47,.06), 0 8px 24px rgba(48,55,47,.05); }
.gk-ptable { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; font-size: 13px; }
.gk-ptable th { background: var(--nav, #30372f); color: #eef1e6; font-weight: 400; text-align: left; padding: 14px 16px; vertical-align: top; }
.gk-ptable th.lead { background: #3d4632; width: 150px; font-size: 10px; letter-spacing: 1.3px; text-transform: uppercase; color: #a9b19c; vertical-align: middle; }
.gk-ptable th b { display: block; font-family: Selna, Georgia, serif; font-weight: 400; font-size: 20px; }
.gk-ptable th small { font-size: 11px; color: #a9b19c; }
.gk-ptable td { padding: 10px 16px; border-bottom: 1px solid #f1f3ec; vertical-align: top; line-height: 1.45; }
.gk-ptable td.lead { color: #6b7263; font-size: 12px; background: #fafbf7; }
.gk-ptable tr.grp td { background: #f0f3e6; color: #4a5343; 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: #b0b5a6; }

.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 #e2e4dc; color: #4a5343; text-decoration: none; }
.gk-depts a.on { background: var(--nav, #30372f); color: #fff; border-color: var(--nav, #30372f); }
.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: #2f352e; text-decoration: none; }
.gk-check { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid #b9bdb0; flex-shrink: 0; margin-top: 2px; }
.gk-check.on { background: #657247; border-color: #657247; }
.red.strong { color: #a8432c; font-weight: 600; }
.gk-occ { margin-top: 18px; background: var(--nav, #30372f); border-radius: 14px; padding: 16px 22px; color: #eef1e6; display: flex; gap: 18px; align-items: center; }
.gk-occ span { font-family: Selna, Georgia, serif; font-size: 20px; white-space: nowrap; }
.gk-occ p { margin: 0; font-size: 13px; color: #c9d0bd; }
@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 #eef0ea; background: #fafbf7; align-items: start; }
.gk-noteform textarea { font: inherit; font-size: 13px; padding: 8px 10px; border: 1px solid #dfe3d6; border-radius: 7px; resize: vertical; min-height: 36px; }
.gk-by { display: block; font-size: 11px; color: #8a917e; }
button.gk-check { padding: 0; background: #fff; cursor: pointer; }
button.gk-check:hover { border-color: #657247; }
button.gk-check.on { background: #657247; }
.gk-etabs { margin-bottom: 14px; }
.gk-etabs button { font: inherit; font-size: 13px; padding: 8px 12px; border-radius: 8px; color: #4a5343; background: none; border: 0; cursor: pointer; }
.gk-etabs button:hover { background: #f4f6ef; }
.gk-etabs button.on { background: var(--nav, #30372f); color: #fff; }
.gk-epanel { margin: 0; }
.gk-pane { display: none; } .gk-pane.on { display: block; }
.gk-eblock { padding: 18px 22px; border-top: 1px solid #edf0e7; }
.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: #6b7263; }
.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: #2f352e; padding: 8px 10px; border: 1px solid #dfe3d6; 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: #2f352e; font-size: 13px; }
.gk-fcheck input { width: auto; }
.gk-hint { font-size: 12px; color: #8a917e; 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: #8a917e; }
.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, #f5f6f2 75%, rgba(245,246,242,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: #f6f8ef; }
.tm-list tr.is-locked td { color: #8a917e; }
.tm-who { display: flex; gap: 12px; align-items: center; }
.tm-who b { font-weight: 600; } .tm-who em { font-style: normal; color: #8a917e; font-size: 12px; }
.tm-who small { display: block; font-size: 12px; color: #8a917e; }
.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: #30372f; color: #dbe3bd; } .r2 { background: #e6edd6; color: #3f5230; } .r3 { background: #f8f0e1; color: #8c6634; }
.r4 { background: #e2eaf0; color: #33495a; } .r5 { background: #f3e6ee; color: #7a3e62; } .r6 { background: #eceee8; color: #4a5343; }
.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: #4a613c; }
.tm-st i { width: 7px; height: 7px; border-radius: 50%; background: #7fa84f; }
.tm-st.amber { color: #8c6634; } .tm-st.amber i { background: #d7a03a; }
.tm-st.grey { color: #6b7263; } .tm-st.grey i { background: #c9ccc2; }
.tm-mu { color: #8a917e; 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 #eef0ea; }
.tm-side-head b { font-size: 16px; font-weight: 600; } .tm-side-head small { display: block; font-size: 12px; color: #8a917e; }
.tm-side-form { padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.tm-can { background: #f6f8ef; 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: #3f5230; } .tm-can .no { color: #a0a596; }
.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 #9cbc6e; border-radius: 12px; padding: 16px 20px; margin-bottom: 18px; }
.tm-cred b { display: block; color: #3f5230; font-size: 14px; margin-bottom: 8px; }
.tm-cred-lbl { display: block; font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: #7a8270; }
.tm-cred pre { font-family: inherit; font-size: 14px; line-height: 1.7; margin: 6px 0 8px; background: #f6f8ef; border-radius: 8px; padding: 10px 14px; white-space: pre-wrap; }
.tm-cred small { font-size: 12px; color: #8a917e; }
.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 #e2e4dc; border-radius: 10px; font-size: 13px; cursor: pointer; }
.tm-roleopt:has(input:checked) { border-color: #657247; background: #f6f8ef; }
.tm-roleopt input { margin-top: 3px; accent-color: #657247; }
.tm-roleopt b { font-weight: 500; } .tm-roleopt small { display: block; color: #6b7263; 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(48,55,47,.06), 0 8px 24px rgba(48,55,47,.05); }
.tm-matrix { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; font-size: 13px; }
.tm-matrix th { background: var(--nav, #30372f); color: #eef1e6; font-weight: 400; padding: 14px 8px; text-align: center; }
.tm-matrix th small { display: block; font-size: 10px; color: #a9b19c; 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: #a9b19c; background: #3d4632; }
.tm-matrix td { padding: 9px 8px; border-bottom: 1px solid #f1f3ec; text-align: center; }
.tm-matrix td.lead { text-align: left; padding-left: 20px; }
.tm-matrix td.lead small { display: block; color: #8a917e; font-size: 11px; margin-top: 2px; }
.tm-matrix tr.grp td { background: #f0f3e6; font-size: 10px; letter-spacing: 1.3px; text-transform: uppercase; color: #4a5343; 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 #d6d9cf; align-items: center; justify-content: center; color: #fff; font-size: 12px; }
.tm-box-l input:checked + .tm-box { background: #657247; border-color: #657247; }
.tm-box-l input:checked + .tm-box::after { content: '✓'; }
.tm-box-l input:focus-visible + .tm-box { outline: 2px solid #a9b98a; }
.tm-box.on { background: #8a9a6c; border-color: #8a9a6c; }
.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: #4a5343; 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: #f2f5eb; }
@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: #657247; }
.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: #c9d6ad; }
.ag-agent.is-on { border-color: var(--green); }
.ag-agent-tag { writing-mode: vertical-rl; transform: rotate(180deg); text-align: right; background: #eef1e6; 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: #30372f; }
.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: #2f7a3a; }
.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 #d9e1cc; 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 #c9d6ad; 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: #eef1e6; color: #657247; 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 #c9d6ad; 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: #657247; 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: #f7f8f3; 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 #d9e1cc; 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: #dbe3bd; 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: #30372f; border: 1px solid var(--lime); white-space: nowrap; }
.ag-btn:hover { background: #cfdaa8; }
.ag-btn.is-ghost { background: transparent; color: #fff; border-color: #5b6556; }
.ag-btn.is-ghost:hover { border-color: #dbe3bd; }
.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: #aeb79f; box-shadow: inset 3px 0 0 var(--green); }
.ag-sec > header { border-bottom-color: #edf0e7; }
.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: #30372f; }
.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: #30372f; }
.tf-detail .tf-summary > span { color: #4c5b42; 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: #30372f; }
.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: #5b6556; }
.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: #eef1e6; color: #4c5b42; 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; }
}
