body { margin: 0; background: var(--xa-background, #f7f8fa); color: var(--xa-text-primary, #202a30); font-family: "Segoe UI", sans-serif; }
a { color:var(--xa-primary, #00574b); }
.portal-shell { min-height:100dvh; display:grid; grid-template-columns:260px minmax(0,1fr); background:#f7f6f2; }
.portal-sidebar { position:sticky; top:0; height:100dvh; display:flex; flex-direction:column; padding:32px 18px 20px; box-sizing:border-box; background:#fff; border-right:1px solid #e4e7e2; }
.portal-brand { display:block; padding:0 10px; }
.portal-brand img { display:block; width:100%; height:70px; object-fit:contain; filter:brightness(.65); }
.portal-caption { font-size:11px; font-weight:600; letter-spacing:.15em; text-transform:uppercase; margin:20px 14px 30px; color:#66766c; }
.portal-navigation { display:flex; flex-direction:column; gap:7px; }
.portal-navigation a { display:flex; align-items:center; gap:13px; padding:13px 10px 13px 16px; border-radius:9px; color:#4e5a54; text-decoration:none; font-size:14px; }
.portal-navigation a:hover { background:#f2f5f1; }
.portal-navigation a.active { color:#00574b; background:#e2eee8; font-weight:600; }
.portal-navigation .xa-icon { width:21px; height:21px; flex-shrink:0; }
.portal-navigation-label { flex:1; min-width:0; hyphens:auto; overflow-wrap:anywhere; }
/* Rechtsbündige Kreise halten unabhängig von der Stellenzahl genau den Link-Innenabstand von 10 Pixeln ein. */
.portal-navigation-count { margin-left:auto; display:inline-flex; align-items:center; justify-content:flex-end; flex:0 0 34px; }
.portal-sidebar-bottom { margin-top:auto; padding:20px 0 0; border-top:1px solid #e4e7e2; display:flex; flex-direction:column; align-items:flex-start; gap:12px; }
.portal-version { padding:0 12px; color:#637169; font-size:11px; }
.portal-sidebar-bottom>a { font-size:13px; color:#637169; text-decoration:none; }
.portal-workspace { min-width:0; container-type:inline-size; }
/* Sticky hält die Kopfzeile sichtbar und reserviert ihre variable Höhe weiterhin im Seitenfluss. */
.portal-topbar { position:sticky; top:0; z-index:1100; min-height:76px; display:grid; grid-template-columns:minmax(0,1fr) minmax(240px,44%) minmax(0,1fr); align-items:center; gap:24px; padding:14px 30px; box-sizing:border-box; background:var(--xa-bg); border-bottom:1px solid var(--xa-border); }
.portal-breadcrumb { min-width:0; overflow:hidden; white-space:nowrap; display:flex; align-items:center; gap:13px; font-size:13px; color:#7b867f; }
.portal-breadcrumb strong { font-weight:500; color:#34483e; }
/* Gleich breite Außenbereiche halten die Suche unabhängig von Seitentitel und Benutzername mittig. */
.portal-topbar-actions { display:contents; }
.portal-header-context { grid-column:1; grid-row:1; min-width:0; display:flex; flex-direction:column; align-items:flex-start; gap:7px; }
.portal-hotfolder-status { max-width:100%; font-size:12px; }
/* Die Suche reserviert auf beiden Seiten Platz für Status und Konto und bleibt mittig. */
.portal-topbar .xa-global-search { width:100%; max-width:560px; justify-self:center; grid-column:2; grid-row:1; }
.portal-account-area { grid-column:3; grid-row:1; justify-self:end; display:flex; align-items:center; gap:12px; }
.portal-user-menu { display:flex; align-items:center; }
.portal-content { padding:36px; max-width:1600px; margin:0 auto; }
.portal-content:focus, .portal-content h1:focus { outline:none; }
.portal-notice { margin:20px 36px 0; }
.portal-welcome { padding:32px; border:1px solid #dce5dd; border-radius:14px; background:linear-gradient(110deg,#edf3ec,#f8faf6); margin:30px 0 36px; }
.portal-eyebrow { color:#648071; font-size:11px; font-weight:600; letter-spacing:.12em; }
.portal-welcome h2 { font-size:26px; margin:14px 0 10px; color:#24493c; }
.portal-welcome p { margin:0; color:#64776b; }
.portal-section-title { font-size:17px; margin-bottom:18px; }
.portal-work-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.portal-work-card { display:flex; flex-direction:column; padding:26px; border-radius:12px; border:1px solid #e1e6e0; background:#fff; text-decoration:none; color:#273b31; transition:border-color .15s; }
.portal-work-card:hover { border-color:#739f89; }
.portal-work-icon { display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; background:#edf4ee; color:#32664f; border-radius:11px; }
.portal-work-icon .xa-icon { width:23px; height:23px; }
.portal-work-card h3 { font-size:17px; margin:22px 0 10px; font-weight:600; }
.portal-work-card p { font-size:14px; margin:0 0 26px; line-height:1.65; }
.portal-card-footer { display:flex; justify-content:space-between; align-items:center; font-size:12px; color:#758278; border-top:1px solid #edf0eb; padding-top:16px; margin-top:auto; }
.portal-card-footer .xa-icon { width:18px; height:18px; }
.portal-empty-note { display:flex; align-items:center; gap:12px; margin-top:26px; color:#7b867e; }
.portal-empty-note p { margin:0; font-size:13px; }
.portal-empty-note .xa-icon { flex-shrink:0; }
.portal-workspace-empty { text-align:center; background:white; border:1px solid #e1e6e0; border-radius:14px; padding:64px 28px; margin-top:28px; }
.portal-workspace-empty h2 { margin:24px 0 12px; }
.portal-workspace-empty p { max-width:520px; margin:0 auto 24px; }
.portal-skip { position:fixed; top:-100px; left:20px; z-index:2000; background:#fff; padding:12px; }
.portal-skip:focus { top:12px; }
@media(max-width:1200px) { .portal-shell { grid-template-columns:230px minmax(0,1fr); } .portal-breadcrumb>span:first-child { display:none; }  .portal-content { padding:28px; } .portal-work-grid { gap:14px; } .portal-work-card { padding:20px; } }
@media(max-width:950px) {  .portal-work-grid { grid-template-columns:1fr; } }
/* Wie in der Galerie: bei schmalen Fenstern steht die Suche in einer zweiten Zeile. */
@media(max-width:1100px) {
    .portal-topbar { grid-template-columns:minmax(0,1fr) auto; gap:12px; padding:14px 20px; }
    .portal-topbar .xa-global-search { grid-column:1 / -1; grid-row:2; }
    .portal-account-area { grid-column:2; grid-row:1; }
}
@media(min-width:1101px) and (max-width:1350px) { .portal-topbar { grid-template-columns:minmax(0,1fr) minmax(240px,36%) minmax(0,1fr); gap:16px; padding-inline:24px; } }
@media(max-width:650px) { .portal-shell { grid-template-columns:1fr; } .portal-sidebar { position:static; height:auto; padding:18px; } .portal-brand img { height:48px; } .portal-caption { text-align:center; margin:12px; } .portal-navigation { flex-direction:row; flex-wrap:wrap; } .portal-navigation a { padding:8px 10px 8px 8px; font-size:12px; } .portal-sidebar-bottom { flex-direction:row; align-items:center; padding-top:10px; margin-top:14px; } .portal-topbar { padding:16px; } .portal-breadcrumb { display:none; } .portal-content { padding:24px 16px; } }
@media(prefers-reduced-motion:reduce) { .portal-work-card { transition:none; } }
/* Die Bildspalte bleibt höchstens so breit wie das Motiv bei voller Fensterhöhe (854:1024).
   Dadurch vergrößern breite Bildschirme das Motiv nicht über die sichtbare Höhe hinaus. */
.auth-shell { min-height:100dvh; display:grid; grid-template-columns:min(55.6%, 83.3984dvh) minmax(0, 1fr); background:#faf9f6; font-family:Arial, sans-serif; }
.auth-visual { overflow:hidden; position:sticky; top:0; height:100dvh; align-self:start; background:#263725; }
.auth-scene { position:absolute; inset:0; width:179.86%; max-width:none; height:100%; object-fit:cover; object-position:left top; }
.auth-panel { --mud-palette-primary:#374d38; --mud-palette-primary-rgb:55,77,56; --mud-palette-primary-darken:#2c3e2d; --xa-primary:#374d38; display:flex; flex-direction:column; padding:13vh 6vw 4.3vh 8.3vw; color:#242629; }
.auth-panel h1:focus { outline:none; }
.auth-form { width:100%; max-width:540px; margin:0 auto auto; }
.auth-badge { background:#c8d0c2; color:#344835; border-radius:2rem; padding:7px 17px; font-size:14px; font-weight:600; letter-spacing:.09em; display:inline-block; }
.auth-panel h1 { font-size:clamp(30px,2.65vw,44px); line-height:1.15; letter-spacing:-.035em; margin:24px 0 12px; font-weight:650; }
.auth-subtitle { color:#626468; font-size:22px; line-height:1.4; margin:0 0 38px; }
.auth-form .xa-field { margin:0 0 20px; gap:8px; }
.auth-form .xa-field>label { font-size:18px; font-weight:400; }
.auth-form .mud-input-outlined { background:rgba(255,255,255,.65); border-radius:8px; }
.auth-form .mud-input-outlined .mud-input-slot { padding:14px 18px; font-size:18px; line-height:24px; }
.auth-form .mud-input-outlined-border { border-color:#c7c9cd; }
.auth-options { display:flex; align-items:center; justify-content:space-between; gap:10px; font-size:16px; margin:0 0 22px; }
.auth-options .mud-checkbox { margin-left:-11px; }
.auth-options .mud-typography { font-size:16px; color:#34383b; }
.auth-options a { color:#3d4e3c; text-decoration:underline; text-underline-offset:2px; white-space:nowrap; }
.auth-submit { width:100%; }
.auth-divider { display:flex; align-items:center; gap:16px; color:#777a7d; font-size:18px; margin:38px 0 20px; white-space:nowrap; }
.auth-divider::before,.auth-divider::after { content:""; flex:1; border-top:1px solid #cdd0cf; }
.auth-hint { color:#697078; font-size:.85rem; text-align:center; margin-top:1rem; }
.auth-panel footer { display:flex; gap:20px; justify-content:center; padding-top:64px; font-size:14px; color:#737779; }
.auth-panel footer a { color:inherit; text-decoration:none; }
.auth-panel footer a:hover { text-decoration:underline; }
.auth-error { padding:.8rem 1rem; color:#96352e; background:#fbefeb; border-radius:.5rem; font-size:.9rem; }
.auth-success { padding:.8rem 1rem; color:#006b62; background:#e9f3ef; border-radius:.5rem; }
@media (max-height:850px) and (min-width:851px) {
    .auth-panel { padding-top:48px; padding-bottom:28px; }
    .auth-panel h1 { margin-top:20px; }
    .auth-subtitle { margin-bottom:26px; }
    .auth-form .xa-field { margin-bottom:20px; }
    .auth-options { margin-bottom:22px; }
    .auth-divider { margin-top:26px; }
    .auth-panel footer { padding-top:40px; }
}
@media (max-width:1150px) { .auth-panel { padding-left:4vw; padding-right:4vw; } .auth-options { flex-wrap:wrap; } }
@media (max-width:850px) { .auth-shell { grid-template-columns:1fr; } .auth-visual { display:none; } .auth-panel { min-height:100dvh; box-sizing:border-box; padding:40px 24px 28px; } .auth-form { max-width:460px; } .auth-panel h1 { font-size:32px; } .auth-subtitle { font-size:18px; } }

.account-actions { display:flex; flex-wrap:wrap; gap:.75rem; margin:1.5rem 0; }

.auth-shell .mud-typography, .auth-shell .mud-button, .auth-shell .mud-input { font-family:inherit; }

.portal-sidebar-bottom .portal-navigation{width:100%}

/* Auch lange Anzeigenamen dürfen den verfügbaren Kontobereich nicht verbreitern. */
