/* Bounded glass, legible surfaces and transform-only interaction feedback. */
.customer-portal-shell{--sba-ease:cubic-bezier(.22,.8,.25,1);--sba-fast:160ms;--sba-slow:320ms;--sba-glass:linear-gradient(135deg,rgb(255 255 255 / 89%),rgb(245 248 253 / 75%));--sba-glass-shadow:0 12px 32px #182b4714,inset 0 1px 0 #fffffff2}
.customer-portal-shell :is(button,a,input,select){-webkit-tap-highlight-color:transparent}
.customer-portal-shell :is(button,.secondary-button,.primary-button){transition:transform var(--sba-fast) var(--sba-ease),background-color var(--sba-fast),box-shadow var(--sba-fast);touch-action:manipulation}
.customer-portal-shell :is(button,.secondary-button,.primary-button):active:not(:disabled){transform:scale(.98)}
.customer-portal-shell :is(button,a,input,select):focus-visible{outline:3px solid #2771c3;outline-offset:4px}
.customer-portal-shell :is(.panel,.sba-ref-project-card,.project-widget-card,.sba-chart-card){box-shadow:var(--sba-glass-shadow);border:1px solid #ffffffb8;background:var(--sba-glass)}
@media(hover:hover){.customer-portal-shell :is(.sba-ref-project-card,.document-card):hover{box-shadow:0 16px 36px #162e4821}.customer-portal-shell button:hover:not(:disabled){filter:brightness(1.025)}}
.customer-portal-shell .sba-ref-dock .sba-ref-icon{border-radius:18px;background:linear-gradient(145deg,#fffffff2,#e8edf5e8);color:#304760;box-shadow:inset 0 1px 0 white,0 3px 7px #152c4514}
.customer-portal-shell .sba-ref-dock button:active .sba-ref-icon{box-shadow:inset 0 2px 4px #152c451c}
.customer-portal-shell :is(.sba-ref-topbar,.sba-ref-dock){-webkit-backdrop-filter:blur(18px) saturate(1.2);backdrop-filter:blur(18px) saturate(1.2)}
body.sba-redesign .sba-planning-action{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:11px 17px;border-radius:15px;border:1px solid #ffffffb8;background:linear-gradient(135deg,#fafffff2,#dce8f6db);color:#203b60;font-weight:650;box-shadow:inset 0 1px 0 #fff,0 4px 12px #233c6212;white-space:normal;line-height:1.3;text-align:center}
.sba-planning-action svg{width:20px;height:20px;flex-shrink:0}
body.sba-redesign .customer-portal-shell .project-calendar-event strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;word-break:normal;overflow-wrap:normal;line-height:1.3}
body.sba-redesign .customer-portal-shell .project-calendar-event :is(small,em){display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;max-width:100%}
body.sba-redesign .sba-ref-next.sba-planning-action{display:grid;grid-template-columns:34px minmax(0,1fr) 18px;text-align:left;white-space:normal}
body.sba-redesign .portal-shell .sba-access-card.is-ultimate h3{color:#f5f8ff}
.customer-portal-shell .sba-reference-chrome{flex-wrap:wrap}
body.sba-redesign .sba-ref-hero.has-no-photo{background:linear-gradient(140deg,#eef4fbe8,#cdddeee8)}
body.sba-redesign .sba-ref-hero.has-no-photo::before{background:transparent}
body.sba-redesign .sba-ref-hero.has-no-photo :is(.sba-ref-hero-heading h2,.sba-ref-hero-heading p,.sba-ref-hero-progress .sba-ref-progress){color:#243e5e;text-shadow:none}
body.sba-redesign .sba-ref-hero.has-no-photo>.sba-ref-photo{display:none}
body.sba-redesign .sba-ref-hero.has-no-photo .sba-ref-hero-heading p::after{content:' · Projektfoto noch nicht hinterlegt';font-size:11px;color:#536d88}
body.sba-redesign .customer-portal-shell>.mobile-portal-topbar .sba-access-mobile{grid-column:1/-1;justify-content:center;width:100%;margin-bottom:7px;min-height:36px;padding:7px 12px;border-radius:11px;font-size:12px}
body.sba-redesign .customer-portal-shell>.mobile-portal-topbar:has(.sba-access-mobile){height:auto;min-height:108px;row-gap:3px}
body.sba-redesign .file-preview-modal{border-radius:26px;border:1px solid #ffffffc2;box-shadow:0 28px 90px #08162955;background:#f5f8fc;overflow:hidden;max-width:min(1160px,calc(100vw - 32px));animation:sba-preview-arrive .24s var(--sba-ease,ease-out)}
.file-preview-modal .flow-header{background:linear-gradient(125deg,#fff,#eff4fa);border-bottom:1px solid #dce3ed;padding:20px 24px}
.file-preview-modal .flow-header h2{font-size:clamp(17px,2vw,23px);letter-spacing:-.025em;overflow-wrap:anywhere}
.file-preview-modal .flow-header p{color:#5a6a7d;max-width:70ch}
.file-preview-modal .file-preview-body{background:radial-gradient(ellipse at top,#e7edf6,#d2dce9);padding:20px;overflow:auto}
.file-preview-modal .preview-image{border-radius:8px;box-shadow:0 8px 28px #182e4930}
.file-preview-modal .preview-pdf{border:0;border-radius:9px;background:white}
.file-preview-modal .flow-footer{background:#f8faff;border-top:1px solid #d7e0eb;gap:10px;padding:15px 24px}
.sba-preview-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-left:auto}
.sba-preview-tools button{min-width:44px;min-height:44px;border-radius:12px;border:1px solid #d9e1ec;background:white;color:#254365}
.sba-preview-tools output{font-size:12px;min-width:45px;text-align:center;font-variant-numeric:tabular-nums}
.sba-preview-details{padding:15px 24px;background:#f8faff;color:#435a70;font-size:13px;overflow-wrap:anywhere}
@keyframes sba-preview-arrive{from{opacity:.2;transform:translateY(7px) scale(.994)}to{opacity:1;transform:none}}
.sba-access-settings{scroll-margin-top:90px;min-width:0}
.sba-access-settings>.sba-appearance-reset{width:auto;min-height:36px;margin:0 0 18px;padding:7px 11px;background:#ffffff80;font-size:12px}
.sba-settings-page>[hidden]{display:none!important}.sba-settings-tabs{display:flex;gap:5px;padding:6px;border:1px solid #ffffffbf;border-radius:17px;background:#f6f9ffd9;flex-wrap:wrap}.sba-settings-tabs button{flex:1;min-height:44px;padding:10px 13px;border:0;border-radius:12px;background:transparent;color:#4e627b;font-size:13px;font-weight:600}.sba-settings-tabs button[aria-pressed=true]{background:white;color:#153956;box-shadow:0 3px 9px #112c4814}
.sba-access-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:25px}
.sba-access-heading h2{font-size:clamp(25px,3vw,36px);line-height:1.1;letter-spacing:-.045em;margin:9px 0}
.sba-access-heading p{color:#52667d}
.sba-access-current,.sba-access-badge{display:inline-flex;align-items:center;gap:9px;border:1px solid #dbcda9;color:#624e2f;border-radius:14px;background:linear-gradient(125deg,#fffcf1,#eadfc9);padding:10px 13px;white-space:nowrap}
.sba-access-badge{cursor:pointer;min-height:44px;box-shadow:inset 0 1px 0 #ffffffd9,0 3px 10px #5747210b}
.sba-access-badge span{display:grid;text-align:left;gap:2px}.sba-access-badge strong{font-size:12px}.sba-access-badge small{font-size:9px}.sba-access-badge>svg{width:18px;height:18px}
.sba-access-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.sba-access-card{display:flex;flex-direction:column;min-width:0;position:relative;padding:27px 24px;border-radius:24px;border:1px solid #fffffff0;background:linear-gradient(135deg,#ffffffed,#f2f6fcda);box-shadow:0 8px 24px #1f37500c;overflow:hidden}
.sba-access-card h3{font-size:35px;letter-spacing:-.05em;margin:15px 0 8px;color:#152e4a}.sba-access-card>p{font-size:14px;line-height:1.6;color:#50637a}.sba-access-kicker{font-size:10px;text-transform:uppercase;letter-spacing:.12em;font-weight:650;color:#64758b}
.sba-access-card ul{display:grid;gap:13px;list-style:none;padding:20px 0 10px;margin:0}.sba-access-card li{position:relative;padding-left:20px;font-size:13px;line-height:1.5;color:#344c66}.sba-access-card li:before{content:'✓';position:absolute;left:0;color:#498574}.sba-access-card li span{display:block;font-size:12px;font-weight:400;opacity:.8;margin-top:3px}
.sba-access-card .sba-access-note{font-size:11px;line-height:1.65;margin:15px 0;color:#596b7c}.sba-access-foot{margin-top:auto;padding-top:22px;font-size:12px;font-weight:650;color:#436b59}.sba-access-card>.secondary-button{margin-top:14px;width:100%;min-height:46px;white-space:normal}
.sba-access-card.is-premium{background:linear-gradient(140deg,#fffdf6f5,#f2e9d4e8);border-color:#d9c6a4}.is-premium .sba-access-kicker{color:#8c7042}
.sba-access-card.is-ultimate{background:linear-gradient(145deg,#253e55f5,#12273ced);border-color:#a2b7ca;color:#fff;box-shadow:0 16px 40px #152d4924}
.is-ultimate :is(h3,li,.sba-access-kicker){color:#f5f8ff}.is-ultimate .sba-access-note{color:#c4d1de}.is-ultimate .sba-ultimate-tagline{font-size:22px;color:white;letter-spacing:-.035em;line-height:1.25;margin-bottom:18px}.sba-ai-label{font-size:10px;color:#d4d6f9;letter-spacing:.04em;padding:8px 10px;border-radius:9px;background:#ffffff0d;align-self:flex-start;border:1px solid #ffffff24}
.sba-access-card .sba-access-availability{color:#d6e2ec;font-size:11px;margin-top:auto;padding-top:20px}.sba-ultimate-light{position:absolute;top:-80px;right:-80px;width:180px;height:180px;background:radial-gradient(ellipse,#8ea5d83b,transparent 70%);pointer-events:none}
.sba-access-receipt{display:flex;align-items:center;gap:9px;padding:13px;border-radius:12px;background:#ffffff12;border:1px solid #829d9138;font-size:12px!important}.sba-access-card.is-ultimate .sba-access-receipt{color:#d5efdf}
.sba-access-lifecycle{display:flex;gap:16px;margin-top:20px;padding:23px;border-radius:19px;background:#ffffffbd;border:1px solid #ffffffc2;color:#354e67}.sba-access-lifecycle>svg{flex-shrink:0;width:25px;height:25px}.sba-access-lifecycle p{font-size:13px;line-height:1.6}.sba-access-lifecycle small{font-size:11px;color:#5a6e82}
.sba-access-feedback{color:#3b5873;font-size:13px;min-height:20px}.sba-access-admin-form{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:18px 0;border-bottom:1px solid #dbe2eb}.sba-access-admin-form>div{min-width:180px}.sba-access-admin-form small{display:block;margin-top:4px}.sba-access-admin-form label{display:flex;gap:9px;align-items:center;max-width:360px;font-size:13px}.sba-access-admin-form select{min-height:44px;padding:8px;border-radius:10px;border:1px solid #c6d3df}.sba-access-admin-form button{min-height:44px}
body[data-motion='paused'] :is(.customer-portal-shell *,.file-preview-modal){animation:none!important;transition:none!important}
@media(min-width:701px) and (max-width:1100px){.sba-access-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sba-access-card.is-ultimate{grid-column:1/-1}.is-ultimate ul{grid-template-columns:1fr 1fr;gap:24px}.sba-access-badge{padding:8px}.sba-access-badge small{display:none}}
@media(max-width:700px){.sba-access-grid{grid-template-columns:1fr}.sba-access-heading{align-items:flex-start;flex-direction:column;gap:12px}.sba-access-card{padding:25px 22px}.sba-access-badge{padding:8px 10px;gap:6px}.sba-access-badge small{display:none}.sba-access-badge>svg:last-child{display:none}.sba-access-lifecycle{padding:18px;gap:11px}.sba-access-admin-form{align-items:stretch;flex-direction:column}.sba-access-admin-form label{max-width:none;flex-wrap:wrap}.sba-access-admin-form select{width:100%}body.sba-redesign .file-preview-modal{max-width:100%;width:100%;height:100dvh;max-height:100dvh;border-radius:0}.file-preview-modal .flow-header{padding:16px}.file-preview-modal .file-preview-body{padding:10px}.file-preview-modal .flow-footer{padding:12px 12px max(12px,env(safe-area-inset-bottom));display:flex;flex-wrap:wrap}.file-preview-modal .flow-footer>a{flex:1 1 135px;font-size:12px;padding:11px 8px}.file-preview-modal .flow-footer>button{min-height:44px}.sba-preview-tools{margin:0;justify-content:center;flex:1 0 100%}}
@media(max-width:360px){.sba-access-card{padding:22px 17px}.sba-access-heading h2{font-size:25px}.sba-access-current{font-size:12px}.sba-ob-footer{gap:6px!important;padding-inline:12px!important}.sba-ob-footer button{white-space:nowrap;min-width:0;font-size:12px!important;padding-inline:9px!important}}
@media(prefers-reduced-motion:reduce){.customer-portal-shell *,body.sba-redesign .file-preview-modal{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(max-width:700px){.sba-settings-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.sba-settings-tabs button{white-space:nowrap;font-size:12px;padding:10px 5px;overflow-wrap:normal;word-break:normal}.sba-access-heading h2{line-height:1.2}}
