@font-face{font-family:Inter;src:url('../fonts/inter-variable.ttf') format('truetype');font-weight:100 900;font-style:normal;font-display:swap}
body{overflow-y:auto}body:has(.map-workspace){min-height:100svh}
#app:has(.map-workspace){height:100svh;display:flex;flex-direction:column;min-height:0}
#app:has(.map-workspace)>.preview-notice{flex-shrink:0;height:20px;min-height:20px;padding:0 10px;align-items:center;font-size:8px;line-height:1}
#appShell:has(.map-workspace){flex:1;min-height:0;height:0;width:100%}
#appShell:has(.map-workspace)>.app-header{height:46px;min-height:46px;display:flex;flex-shrink:0;padding:0 16px;gap:20px}
#appShell:has(.map-workspace) .app-header nav{position:static;display:flex;height:100%;width:auto;margin:0 auto;gap:22px;align-items:stretch;justify-content:center;padding:0;transform:none}
#appShell:has(.map-workspace) .app-header nav a{font-size:11px;white-space:nowrap;padding:0 2px;height:100%}
#appShell:has(.map-workspace) .product-brand{padding:4px 7px;border-radius:5px}
#appShell:has(.map-workspace) .product-logo{width:125px}
#appShell:has(.map-workspace) .account-avatar{width:27px;height:27px;font-size:9px}
#appShell:has(.map-workspace) .account-label{display:none}
#appShell:has(.map-workspace)>.product-footer{display:none}
#page:has(.map-workspace){flex:1;min-height:0;width:100%;max-width:none;padding:0;display:flex;flex-direction:column}
.map-workspace{display:flex;flex-direction:column;flex:1;min-height:0;width:100%;background:#fff}
.map-bar{height:38px;min-height:38px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 12px 0 17px;border-bottom:1px solid #e8ede3;background:#fff;flex-shrink:0}
.map-current{display:flex;align-items:center;gap:12px;min-width:0;color:#304d39}
.map-current strong{font-size:11px;font-weight:600;white-space:nowrap}
.map-current>span{font-size:9px;color:#8c9a82;white-space:nowrap}
.map-actions{display:flex;align-items:center;gap:6px}
.map-workspace-heading{width:100%;margin:0;padding:42px max(28px,calc((100vw - 1320px)/2)) 30px;flex-shrink:0}
.map-bar-tools{display:flex;align-items:center;margin-left:auto}
.map-building{font-size:10px;min-height:28px;height:28px;max-width:155px;min-width:0;width:auto;padding:4px 24px 4px 9px;border:1px solid #e0e7d9;border-radius:5px;background:#fff;color:#687f5c}
.map-icon{min-height:28px;height:28px;min-width:28px;width:28px;border:1px solid transparent;border-radius:5px;padding:4px;background:transparent;color:#758b66;display:inline-flex;align-items:center;justify-content:center;font-size:20px;line-height:1}
.map-icon svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linejoin:round;stroke-linecap:round}
.map-icon:hover:not(:disabled){background:#edf4fa;border-color:#d8e6f2}
.map-icon.is-on{background:#e4eff8;color:#2064a1;border-color:#cddfed}
.map-icon:disabled{opacity:.3}
.map-stage{position:relative;flex:1;min-height:0;isolation:isolate;background:#fff}
.map-scroll{position:absolute;inset:0;overflow:auto;scrollbar-width:thin;scrollbar-color:#c3d1b6 #fafcf7;overscroll-behavior:contain;touch-action:pan-x pan-y;outline-offset:-3px}
.map-canvas{position:relative;min-width:100%;min-height:100%}
.map-plane-stack{position:absolute;inset:0;isolation:isolate}
.map-plane{position:absolute;inset:2px;opacity:0;z-index:1;pointer-events:none;transition:opacity 380ms ease;transform:none}
.map-plane img{display:block;width:100%;height:100%;object-fit:contain;object-position:center;min-width:0;min-height:0;max-width:none;user-select:none}
.map-plane.is-active{opacity:1;z-index:5;transform:none}
.has-xray .map-plane.is-reference{opacity:.13;transform:none}
.map-single{position:absolute;inset:2px;width:calc(100% - 4px);height:calc(100% - 4px);object-fit:contain;max-width:none;display:block;user-select:none}
.map-levels{position:absolute;left:10px;top:50%;transform:translateY(-50%);z-index:20;display:flex;flex-direction:column;gap:4px;padding:5px;background:#ffffffed;border:1px solid #dfe7d8;border-radius:9px;box-shadow:0 2px 10px #29421f0a}
.map-level{width:35px;min-width:35px;height:42px;min-height:42px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border:1px solid transparent;border-radius:5px;background:transparent;color:#8a9c7d;padding:3px;font-size:8px;line-height:1}
.map-level svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.3;stroke-linejoin:round}
.map-level.is-active{background:#e4eff8;border-color:#cddfed;color:#2064a1;font-weight:650}
.map-level:hover{background:#edf4fa}
.map-zoom{position:absolute;right:12px;bottom:12px;z-index:20;display:flex;align-items:center;gap:2px;padding:4px;background:#fffffff0;border:1px solid #dfe7d8;border-radius:7px;box-shadow:0 2px 10px #29421f08}
.map-zoom .map-icon{height:30px;min-height:30px;width:30px}
.map-zoom output{font-size:9px;color:#899a7b;min-width:45px;text-align:center}
.map-orientation{position:absolute;left:12px;bottom:12px;font-size:8px;color:#9aa88c;z-index:10;pointer-events:none;line-height:1.5;background:#ffffffc9;padding:4px 6px;border-radius:3px}
.plan-info-row{padding:12px 0;border-top:1px solid var(--line)}
.plan-info-row strong{font-size:12px;font-weight:550}.plan-info-row p{font-size:11px;color:#8a997c;margin-top:6px}.plan-info-row small{font-size:9px;color:#a2af96;display:block;margin-top:7px}
@media(max-width:700px){#appShell:has(.map-workspace)>.app-header{height:44px;min-height:44px;padding:0 9px;gap:9px}#appShell:has(.map-workspace) .app-header nav{height:100%;width:auto;flex:1;margin:0;gap:10px;grid-area:auto}#appShell:has(.map-workspace) .app-header nav a{font-size:10px;min-width:0;flex:initial}#appShell:has(.map-workspace) .product-brand{padding:3px 5px}#appShell:has(.map-workspace) .product-logo{width:88px}#appShell:has(.map-workspace) .account-avatar{width:25px;height:25px;font-size:8px}.map-bar{height:38px;min-height:38px;padding:0 7px 0 10px;gap:7px}.map-current{gap:0}.map-current strong{font-size:10px}.map-current>span{display:none}.map-actions{gap:3px}.map-building{max-width:125px;font-size:9px;padding-left:7px}.map-icon{width:28px;height:28px;min-height:28px}.map-levels{left:7px;padding:3px;gap:3px;border-radius:7px}.map-level{width:32px;min-width:32px;height:38px;min-height:38px;font-size:7px}.map-level svg{width:17px;height:17px}.map-zoom{right:7px;bottom:7px;padding:3px}.map-zoom .map-icon{width:28px;height:28px;min-height:28px}.map-orientation{font-size:7px;left:8px;bottom:49px;max-width:155px;padding:3px}.map-plane{inset:1px}.map-single{inset:1px;width:calc(100% - 2px);height:calc(100% - 2px)}}
@media(prefers-reduced-motion:reduce){.map-plane{transition:none}}
.map-levels{top:auto;bottom:48px;transform:none}@media(max-width:700px){.map-levels{top:auto;bottom:48px;transform:none}.map-orientation{bottom:9px}}

/* BKT brand palette: blue is the only non-semantic interface accent. */
.app-header,
#appShell:has(.map-workspace)>.app-header{
    background:#2064a1;
    border-bottom-color:#174f80;
    box-shadow:0 1px 0 #174f80;
    color:#fff;
    height:88px;
    min-height:88px;
    padding:0 max(28px,calc((100vw - 1320px)/2));
    gap:32px;
}
#appShell:has(.map-workspace) .app-header nav{height:100%;margin:auto;gap:30px}
#appShell:has(.map-workspace) .app-header nav a{font-size:13px;padding:0 3px}
#appShell:has(.map-workspace) .product-brand{padding:6px 9px 6px 0}
#appShell:has(.map-workspace) .product-logo{width:168px}
#appShell:has(.map-workspace) .account-avatar{width:34px;height:34px;font-size:11px}
.product-brand{background:transparent;padding-left:0}
.product-brand:hover{background:#ffffff14!important}
.app-header nav a{color:#dceaf6}
.app-header nav a:hover,
.app-header nav a.active,
.app-header nav a.active:hover{color:#fff;border-bottom-color:#fff}
.app-header .account-button,
.app-header .account-button:hover:not(:disabled){color:#fff;background:transparent}
.app-header .account-avatar{
    color:#fff;
    background:#ffffff1f;
    border-color:#ffffff4d;
}
.app-header .account-label{color:#fff}

.skip-link{background:#174f80}
.preview-notice{background:#e8f2fa;color:#285e8f;border-bottom-color:#cfe1f0}
.product-footer{color:#71879a}
.eyebrow{color:#567b9c}
.workspace-heading p,
.page-heading p,
.room-search,
.range-fields label,
.range-control>span:first-child,
.availability-legend,
.booking-search,
.result-pagination{color:#74889a}
.room-search input{color:#263746}
.room-search input:focus{box-shadow:0 1px #5d91bd}
.range-control>span:last-child{color:#6f879b}
.range-control:hover:not(:disabled),
.room-table tr:hover td{background:#f5f9fc}
.room-table th,
.data-table th{background:#eef4f9;color:#667f94}
.room-table td,
.data-table td{border-top-color:#e7edf2;color:#536c80}
.room-code{color:#2d5272}
.room-location{color:#7e91a2}
.room-action,
.action-link{border-color:#cdddea;color:#205f98}
.room-action:hover:not(:disabled),
.action-link:hover{background:#edf4fa}
.toolbar{border-color:#d7e4ee;background:#edf4f9}
.toolbar button{color:#687f93}
.toolbar button.active{color:#2064a1}
.date-label strong{color:#315f86}
.date-label small,
.appointment p{color:#7c91a3}
.appointment time{color:#4f7493}
.appointment h3{color:#315874}
.detail-text{color:#637e94}
.source-reference{color:#527a9c;border-color:#d2e1ed}
.booking-room-summary{background:#eef4f9}
.booking-room-summary p,
.booking-availability p{color:#748ca0}
.inline-notice{background:#eef4f9;color:#607d95;border-left-color:#9fbed7}
.account-name{color:#6f8799}
.account-name strong,
.room-detail-list dd{color:#2e526f}
.menu-items button{background:#f1f6fa}
.room-detail-list dt{color:#71889b}
.loading-indicator{border-color:#d7e5f0;border-top-color:#2064a1}

.map-bar{border-bottom-color:#dce7f0}
.map-current{color:#2d587c}
.map-current>span{color:#71899d}
.map-building{border-color:#d7e3ed;color:#4f7190}
.map-icon{color:#547d9f}
.map-scroll{scrollbar-color:#aebfd0 #f7fafc}
.map-levels,
.map-zoom{border-color:#d6e2ec;box-shadow:0 2px 10px #1f466b10}
.map-level{color:#6d89a0}
.map-zoom output{color:#6d879c}
.map-orientation{color:#7d92a4}
.plan-info-row p{color:#70889b}
.plan-info-row small{color:#879aaa}

.map-frame{background:#eef4f8}
.map-instructions,
.map-caption{color:#71889b}
.building-zone{background:#f8fbfd;border-color:#d7e4ed}
.building-zone small{color:#71899d}
.building-letter{color:#326a98;border-color:#cbddea}
.building-zone .hall,
.building-zone .core,
.building-zone .courtyard{color:#8297a8;background:#edf3f7}

@media(max-width:1050px){
    #appShell:has(.map-workspace)>.app-header{gap:20px}
    #appShell:has(.map-workspace) .app-header nav{gap:18px}
}
@media(max-width:700px){
    .product-brand{padding-left:0}
    #appShell:has(.map-workspace)>.app-header{
        height:auto;
        min-height:114px;
        display:grid;
        grid-template-columns:1fr auto;
        padding:17px 20px 0;
        gap:12px;
    }
    #appShell:has(.map-workspace) .app-header nav{
        grid-column:1/-1;
        grid-row:2;
        width:100%;
        height:42px;
        margin:0;
        gap:12px;
        justify-content:space-between;
    }
    #appShell:has(.map-workspace) .app-header nav a{font-size:12px;padding:0 2px}
    #appShell:has(.map-workspace) .product-brand{padding:5px 8px 5px 0}
    #appShell:has(.map-workspace) .product-logo{width:148px}
    #appShell:has(.map-workspace) .account-avatar{width:34px;height:34px;font-size:11px}
    .map-workspace-heading{padding:28px 18px 23px}
}

/* Five text roles: header, interaction, information, tool information, normal. */
:root{
    --text-header:500 28px/1.2 "Anthropic Serif",Georgia,"Times New Roman",serif;
    --text-interaction:600 12px/1.35 Inter,Arial,sans-serif;
    --text-information:400 13px/1.55 Inter,Arial,sans-serif;
    --text-tool:600 10px/1.35 Inter,Arial,sans-serif;
    --text-normal:400 13px/1.5 Inter,Arial,sans-serif;
}
body,input,select,textarea,td{font:var(--text-normal)}
h1,h2,.modal-head h2,.signin-intro h1,.signin-content h2{
    font:var(--text-header)!important;
    letter-spacing:-.02em!important;
}
h3,button,a,label,summary,.action-link,.room-code{
    font:var(--text-interaction)!important;
    letter-spacing:0!important;
}
.workspace-heading p,.page-heading p,.dialog-intro,.inline-notice,
.notice,.feedback-state p,.booking-info,.detail-text,.appointment p,
.booking-availability p,.plan-info-row p,.signin-description,.signin-help{
    font:var(--text-information)!important;
    letter-spacing:0!important;
}
small,th,.eyebrow,.preview-notice,.product-footer,.room-location,
.availability-legend,.pill,.result-pagination,.source-reference,
.map-current>span,.map-level,.map-zoom output,.map-orientation,
.plan-info-row small,.signin-topline,.signin-footer,.signin-story-footer{
    font:var(--text-tool)!important;
    letter-spacing:.04em!important;
}
.icon-button,.map-icon{font-size:20px!important;line-height:1!important}

@media(max-width:700px){
    :root{--text-header:500 25px/1.2 "Anthropic Serif",Georgia,"Times New Roman",serif}
}

/* Search, time range and filters form one calm control module. */
.room-controls{row-gap:18px}
.room-controls>.room-filters{
    grid-column:1/-1;
    width:100%;
    margin:0;
    padding:18px 0 0;
    border-top:1px solid var(--line);
    border-bottom:0;
}
@media(max-width:700px){
    .room-controls>.room-filters{padding:16px 0 0}
}

.admin-room-filters{
    display:grid;
    grid-template-columns:minmax(220px,1.4fr) repeat(3,minmax(145px,1fr));
    gap:14px;
    align-items:end;
    margin-bottom:18px;
    padding:16px;
    background:#fff;
    border:1px solid var(--line);
    border-radius:9px;
}
.admin-room-filters .admin-search{max-width:none;margin:0}
.admin-room-filters label{gap:7px;color:#60798e}
.admin-room-filters input,.admin-room-filters select{min-height:38px;padding:7px 10px}
@media(max-width:900px){.admin-room-filters{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.admin-room-filters{grid-template-columns:1fr}}

/* One right-aligned header layout on every application page. */
.app-header,
#appShell:has(.map-workspace)>.app-header{display:flex!important;justify-content:flex-start}
.product-brand,
#appShell:has(.map-workspace) .product-brand{margin-right:auto}
.app-header nav,
#appShell:has(.map-workspace) .app-header nav{
    margin:0 24px 0 auto;
    justify-content:flex-end;
}
.app-header .account-button{flex-shrink:0;max-width:230px}
.app-header .account-label,
#appShell:has(.map-workspace) .account-label{
    display:inline-block!important;
    max-width:180px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.account-avatar{overflow:hidden;flex-shrink:0}
.account-avatar img{display:block;width:100%;height:100%;object-fit:cover}
.profile-image-setting{display:grid;grid-template-columns:64px 1fr;gap:16px;align-items:center;padding:16px 0 20px;border-bottom:1px solid var(--line);margin-bottom:20px}
.profile-image-preview{width:64px!important;height:64px!important;font-size:16px!important}
.profile-image-setting strong{display:block;margin-bottom:4px}
.profile-image-setting p{color:#70869a;margin:0 0 10px;font:var(--text-tool)}
.profile-image-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.profile-image-select{display:inline-flex;align-items:center;width:max-content;min-height:34px;padding:7px 11px;border:1px solid #cdddea;border-radius:6px;background:#fff;color:#205f98;cursor:pointer}
.profile-image-select:hover{background:#edf4fa}
.profile-image-select input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
@media(max-width:700px){
    .app-header,
    #appShell:has(.map-workspace)>.app-header{display:grid!important}
    .product-brand,
    #appShell:has(.map-workspace) .product-brand{margin-right:0}
    .app-header nav,
    #appShell:has(.map-workspace) .app-header nav{margin:0;justify-content:flex-end;gap:14px}
    .product-logo,
    #appShell:has(.map-workspace) .product-logo{width:110px}
    .app-header .account-label,
    #appShell:has(.map-workspace) .account-label{max-width:120px}
}

/* Finale, flache 60/30/10-Palette; Statusindikatoren bleiben semantisch. */
:root{
    --surface:#f7f8fa;
    --surface-soft:#f1f4f6;
    --surface-strong:#e4e9ed;
    --ink:#263746;
    --brand:#2064a1;
    --green:var(--brand);
    --line:var(--surface-strong);
    --muted:var(--ink);
    --indicator-available:#398448;
    --indicator-partial:#b88721;
    --indicator-unavailable:#b7483e;
    background:var(--surface);
    color:var(--ink);
}
body,#app,#appShell,main,#page,.map-workspace,.map-stage,.map-bar,.map-frame,
.building-zone,.feedback-state,.table-wrap,.room-controls,.admin-room-filters,
.appointment,dialog,.calendar,.toolbar,.view-switch,.filter-panel,.map-levels,
.map-zoom,.booking-room-summary,.inline-notice,.menu-items button,
.profile-image-select,.campus-drawing,.plan-footnote{
    background:var(--surface);color:var(--ink);
}
body,button,input,select,textarea,dialog,.room-table td,.data-table td,.room-code,
.room-location,.workspace-heading p,.page-heading p,.eyebrow,.room-search,
.range-fields label,.range-control>span:first-child,.availability-legend,
.booking-search,.result-pagination,.detail-text,.account-name,.account-name strong,
.room-detail-list dd,.room-detail-list dt,.map-current,.map-current>span,
.map-building,.map-icon,.map-level,.map-zoom output,.map-orientation,
.plan-info-row p,.plan-info-row small,.map-instructions,.map-caption,
.building-zone small,.building-letter,.source-reference,.product-footer,
.date-label strong,.date-label small,.appointment time,.appointment h3,
.appointment p,.profile-image-setting p{color:var(--ink)}
:where(button,input,select,textarea,.table-wrap,.room-controls,.admin-room-filters,
.room-controls>.room-filters,.toolbar,.view-switch,.room-action,.action-link,
.map-frame,.building-zone,.map-building,.map-levels,.map-zoom,.map-level,
.source-reference,.profile-image-select,dialog,.plan-info-row,.product-footer,
.room-table th,.data-table th,.room-table td,.data-table td,.appointment,
.room-detail-list div,.profile-image-setting,.calendar-tools,.date-group){border-color:var(--surface-strong)}
button,input,select,textarea,.room-table th,.data-table th,.toolbar,.view-switch,
.map-level.is-active,.map-icon.is-on,.floor-switch,.building-zone .hall,
.building-zone .core,.building-zone .courtyard{background:var(--surface);color:var(--ink)}
a,.text-button,.action-link,.room-action,.toolbar button.active,.view-switch a.active,
.map-icon.is-on,.map-level.is-active,.range-control>span:last-child{color:var(--brand)}
button.primary,.primary,.app-header,.signin-story,#toast,.floor-layer.active,
.building-node.active,.availability-toggle input{background:var(--brand);border-color:var(--brand);color:var(--surface)}
.app-header,#appShell:has(.map-workspace)>.app-header{background:var(--brand);border-color:var(--brand);box-shadow:none}
.app-header :is(a,button,.account-label,.account-avatar),.app-header nav a,
.app-header nav a:hover,.app-header nav a.active,.app-header nav a.active:hover{
    color:var(--surface);border-color:var(--surface);background:transparent;
}
.app-header .account-avatar{background:transparent;border-color:var(--surface)}
.product-brand:hover,.app-header .account-button:hover:not(:disabled){background:transparent!important}
button:hover:not(:disabled),.room-action:hover:not(:disabled),.action-link:hover,
.map-icon:hover:not(:disabled),.map-level:hover,.range-control:hover:not(:disabled),
.room-table tr:hover td,.building-node:hover:not(:disabled),.toolbar button:hover:not(:disabled){
    background:var(--surface);color:var(--brand);border-color:var(--brand);
}
button.primary:hover:not(:disabled),.primary:hover:not(:disabled),.signin-submit:hover:not(:disabled){background:var(--brand);color:var(--surface)}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline-color:var(--brand)}
input:focus,select:focus,textarea:focus,.room-search input:focus{border-color:var(--brand);box-shadow:none}
.map-levels,.map-zoom,.building-node,.floor-layer,.wing-plan,.building-stage .wing-plan,
.view-switch a.active,.toolbar button.active,dialog,#toast{box-shadow:none}
.availability-legend i,.status-dot{color:var(--indicator-available)}
.availability-legend i,.status-dot{background:var(--indicator-available)}
.availability-legend i.partial,.booking-availability.partial .status-dot{color:var(--indicator-partial);background:var(--indicator-partial)}
.availability-legend i.busy,.booking-availability.busy .status-dot{color:var(--indicator-unavailable)}
.availability-legend i.busy,.booking-availability.busy .status-dot{background:var(--indicator-unavailable)}
.pill.free,.pill.partial,.pill.busy,.pill.blocked,.pill.inactive,.pill.cancelled{background:transparent}
.pill,.room-status strong,.error,.signin-error,.danger{color:var(--ink)}
.danger-button,#toast.bad{background:var(--indicator-unavailable);border-color:var(--indicator-unavailable);color:var(--surface)}
.preview-notice,.skip-link{background:var(--surface);border-color:var(--brand);color:var(--ink)}
.loading-indicator{border-color:var(--ink);border-top-color:var(--brand)}

/* Ruhige Einfassung: Flächen und Trennlinien bleiben Eis-Offwhite. */
.room-controls,.admin-room-filters,.map-frame,.building-zone,.feedback-state,
.toolbar,.view-switch,.filter-panel,.map-levels,.map-zoom,.booking-room-summary,
.inline-notice,.menu-items button,.profile-image-select,.plan-footnote,
.room-table th,.data-table th{background:var(--surface-soft)}
.table-wrap,.appointment,dialog,.room-table td,.data-table td{background:var(--surface)}
button:hover:not(:disabled),.room-action:hover:not(:disabled),.action-link:hover,
.map-icon:hover:not(:disabled),.map-level:hover,.range-control:hover:not(:disabled),
.room-table tr:hover td,.building-node:hover:not(:disabled),.toolbar button:hover:not(:disabled){
    background:var(--surface-soft);
    border-color:var(--surface-strong);
}
