:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#17233d;background:#f7f8fc;font-size:14px}*{box-sizing:border-box}body{margin:0}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}button{cursor:pointer}h1,h2,h3,p{margin-top:0}h1{font-size:30px;letter-spacing:-1.1px}h3{font-size:16px;letter-spacing:-.3px}small{font-size:11px}.muted{color:#8790a3;line-height:1.6}.eyebrow{font-size:10px;font-weight:800;letter-spacing:1.6px;color:#7d69de}.btn{border:1px solid #e4e6ee;background:#fff;color:#24324b;border-radius:9px;padding:11px 15px;display:inline-flex;align-items:center;justify-content:center;gap:6px;font-weight:700;white-space:nowrap}.btn:hover{background:#f5f3ff}.btn.primary{color:white;background:#6654d7;border-color:#6654d7;box-shadow:0 3px 8px #6654d71c}.btn.primary:hover{background:#5442bd}.btn.red{color:#b63345;border-color:#f4c7ce}.wide{width:100%}.logo{display:grid;place-items:center;background:#725de1;color:#fff;width:39px;height:39px;border-radius:11px;font-size:25px;flex-shrink:0}.sidebar{background:#fff;border-right:1px solid #e9ebf3;min-height:100vh;width:255px;position:fixed;top:0;left:0;display:flex;flex-direction:column;padding:27px 15px;z-index:10}.brand{display:flex;align-items:center;gap:12px;margin:0 10px 42px}.brand strong{display:block;font-size:14px;letter-spacing:-.4px}.brand small{display:block;color:#9ba2b1;font-size:9px;letter-spacing:1.6px;font-weight:800;margin-top:4px}.nav-title{font-weight:800;color:#b0b6c4;font-size:10px;letter-spacing:1.1px;margin:0 14px 13px}.nav{display:flex;gap:14px;align-items:center;padding:13px 14px;border-radius:9px;color:#828c9f;font-weight:600;margin-bottom:4px;font-size:16px}.nav span{font-size:13px}.nav b{margin-left:auto;font-size:11px;color:#8d80db}.nav:hover,.nav.active{background:#f0edff;color:#6852cd}.side-bottom{margin-top:auto;border-top:1px solid #eff0f5;display:flex;align-items:center;padding:20px 4px 0;gap:9px}.avatar{height:36px;width:36px;border-radius:50%;display:grid;place-items:center;background:#f0ecff;color:#6b55d6;font-weight:800}.profile{flex:1;min-width:0}.profile strong,.profile small{display:block;overflow:hidden;text-overflow:ellipsis}.profile small{color:#91a0ae;margin-top:2px}.logout,.icon-btn{border:0;background:transparent;font-size:21px;color:#8792a3}.workspace{margin-left:255px}.topbar{height:72px;border-bottom:1px solid #e9ebf3;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 40px}.breadcrumb{font-size:11px;letter-spacing:.7px;font-weight:800;color:#858da0}.breadcrumb span{margin:0 9px;color:#cdd0dc}.top-user{color:#6c7589;font-size:11px}.top-user:first-letter{color:#32b58c}.main{max-width:1500px;padding:38px 40px;margin:auto}.heading,.detail-header,.section-top{display:flex;justify-content:space-between;align-items:center;gap:20px}.heading{margin-bottom:27px}.heading h1{margin-bottom:7px}.heading .muted{margin:0}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:25px}.stat{display:flex;align-items:center;background:#fff;border:1px solid #eef0f5;border-radius:13px;padding:20px;gap:15px;box-shadow:0 3px 18px #24305705}.stat-icon{width:45px;height:45px;display:grid;place-items:center;font-size:23px;border-radius:11px}.purple{color:#745ade;background:#f0edff}.blue{color:#3884de;background:#edf5ff}.green{color:#1baa81;background:#e6f9f2}.orange{color:#da9451;background:#fff2e5}.stat small,.stat strong{display:block}.stat small{color:#929cb0;margin-bottom:6px}.stat strong{font-size:25px}.panel{background:#fff;border:1px solid #ecedf3;border-radius:13px;padding:25px;box-shadow:0 4px 21px #202b4505;margin-bottom:21px}.panel h3{margin-bottom:21px}.section-top h3{margin:0}.section-top{margin-bottom:22px}.section-top .muted{margin:5px 0 0;font-size:12px}.count{padding:3px 8px;background:#f2f0fc;color:#7769cd;border-radius:6px;font-size:11px;margin-left:7px}.filters{display:flex;gap:10px;align-items:center;margin-bottom:18px}.searchbox{flex:1;display:flex;align-items:center;gap:10px;border:1px solid #e6e9f1;border-radius:9px;padding:0 13px;color:#7e8da4}.searchbox input{border:0;outline:0;width:100%;height:42px;background:transparent}select,input:not([type=hidden]):not([type=file]),textarea{border:1px solid #e1e5ee;border-radius:9px;background:#fff;padding:11px 12px;outline-color:#7562dd;max-width:100%}.filters select{min-width:170px;height:43px}label{display:block;color:#535f74;font-size:12px;font-weight:700;margin-bottom:14px}label input,label textarea,label select{width:100%;display:block;margin-top:7px;font-weight:400}textarea{resize:vertical}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left}th{font-size:10px;letter-spacing:.9px;color:#a1aabc;padding:15px 12px;border-bottom:1px solid #edf0f5}td{padding:15px 12px;border-bottom:1px solid #f0f1f5;color:#677289;font-size:12px}tr:last-child td{border:0}tr:hover td{background:#fcfcff}.doc-link{display:flex;align-items:center;gap:13px;color:#2d3a53;min-width:220px}.doc-link strong,.doc-link small{display:block}.doc-link small{color:#a3a9b7;margin-top:5px}.file-icon{background:#f0edfc;color:#6d59cb;border-radius:9px;width:39px;height:43px;font-weight:800;font-size:10px;display:grid;place-items:center;flex-shrink:0}.folder-pill{background:#f5f6f9;color:#7c8596;border-radius:20px;font-size:11px;padding:6px 10px}.row-action{font-weight:800;color:#745bd8;white-space:nowrap}.notice{border-radius:9px;padding:14px 16px;margin-bottom:22px;background:#e9faf2;color:#1d8b61}.notice.error{background:#fff0f0;color:#b94049}.empty{text-align:center;padding:55px 20px;color:#909aab}.empty strong{display:block;color:#3d4860}.empty-symbol{font-size:43px;color:#a6a0de;margin-bottom:15px}footer{padding:17px 0;color:#b0b6c5;font-size:11px}.upload-panel{border:1px solid #cfc7f8}.dropzone{padding:33px;text-align:center;border:2px dashed #c9c2ef;background:#faf9ff;border-radius:12px;cursor:pointer;margin-bottom:16px}.dropzone.dragging{background:#ebe5ff;border-color:#6d57d7}.dropzone p{color:#939db0;margin:9px}.dropzone small{color:#9292a9}.upload-icon{font-size:33px;color:#7965dc}.upload-fields{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.chosen-files{font-size:12px;color:#5f4ec0;margin-bottom:13px;overflow-wrap:anywhere}.back{color:#7567c9;font-weight:700;margin-bottom:18px}.detail-header{margin-bottom:25px}.detail-header h1{margin:9px 0}.detail-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(280px,1fr);gap:23px}.preview{height:520px;width:100%;border:1px solid #eff0f5;border-radius:10px;background:#fafafb}.empty-preview{text-align:center;background:#f9f9fc;padding:65px 10px;color:#939aad}.file-hero{font-size:50px;color:#8070d1}.empty-preview strong{display:block;color:#37445e}.comment{display:flex;align-items:flex-start;gap:11px;padding:16px 0;border-bottom:1px solid #f1f1f5}.avatar.small{height:30px;width:30px;font-size:11px}.comment-body{flex:1}.comment-head{display:flex;gap:10px;align-items:center}.comment-head span{font-size:11px;color:#a0a9b8}.comment-body p{margin:8px 0 0;color:#667186;line-height:1.6;overflow-wrap:anywhere}.comment-form{margin-top:25px}.comment-form button{margin-top:10px}.version{display:flex;align-items:center;gap:10px;padding:11px 0;border-bottom:1px solid #f3f3f5}.version-icon{background:#f1effa;color:#7861d1;padding:10px;border-radius:8px}.version-label{flex:1}.version-label strong,.version-label small{display:block}.version-label small{color:#9aa3b3;margin-top:5px}.version-upload{margin-top:18px}.danger-zone{border-color:#f9e2e6}.danger-zone .muted{font-size:12px}.activity{padding:16px 0;border-bottom:1px solid #f0f1f5;display:flex;gap:15px}.activity:last-child{border:0}.activity-mark{border-radius:50%;background:#f1effb;color:#7e68d6;width:34px;height:34px;display:grid;place-items:center;flex-shrink:0}.activity p{margin:5px 0;color:#758096}.activity small{color:#a4abba}.folder-layout{display:grid;grid-template-columns:2fr 1fr;gap:20px}.folder-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.folder-card{padding:20px;background:#f9f9fd;border:1px solid #eeeef6;border-radius:12px}.folder-card span,.folder-card strong,.folder-card small{display:block}.folder-card span{font-size:32px;color:#7563cc}.folder-card strong{margin:10px 0}.folder-card small{color:#a1a7b5}.auth-layout{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.auth-brand{background:linear-gradient(155deg,#29295d,#6550b7);display:flex;justify-content:center;flex-direction:column;padding:12%;color:#fff}.auth-brand .large{background:#fff2;width:64px;height:64px;font-size:35px;margin-bottom:55px}.auth-brand .eyebrow{color:#c9bffc}.auth-brand h1{font-size:clamp(30px,4vw,55px);line-height:1.19}.auth-brand h1 span{color:#b9acf6}.auth-brand>p{line-height:1.9;color:#d3d0ed;max-width:460px}.auth-points{display:flex;gap:12px;flex-wrap:wrap;margin-top:40px}.auth-points span{font-size:11px;background:#ffffff1b;padding:10px;border-radius:20px}.login-pane{display:grid;place-items:center;padding:30px}.login-card{width:min(100%,400px)}.login-card h2{font-size:30px;margin:13px 0}.login-card .muted{margin-bottom:30px}.mini-icon{font-size:35px;color:#6d58d6}.login-card .btn{margin-top:7px}.footnote{font-size:11px;color:#9ba2b2;line-height:1.8;margin-top:26px}@media(max-width:1050px){.stats{grid-template-columns:repeat(2,1fr)}.folder-grid{grid-template-columns:repeat(2,1fr)}.detail-grid{grid-template-columns:1fr}.folder-layout{grid-template-columns:1fr}}@media(max-width:750px){.sidebar{position:static;min-height:auto;width:auto;padding:12px;display:block}.brand{margin:0 0 12px}.nav-title,.side-bottom,.nav b{display:none}.nav{display:inline-flex;margin:0 4px 0 0;padding:9px 10px}.workspace{margin:0}.topbar{height:auto;min-height:48px;padding:12px 16px}.top-user{display:none}.main{padding:23px 15px}.heading,.detail-header{align-items:flex-start;flex-wrap:wrap}.heading h1{font-size:26px}.stats{gap:9px}.stat{padding:12px;gap:8px}.stat-icon{width:35px;height:35px}.stat strong{font-size:20px}.stat small{font-size:10px}.panel{padding:16px}.filters{flex-wrap:wrap}.searchbox{flex-basis:100%}.filters select{flex:1}.upload-fields{grid-template-columns:1fr}.folder-grid{grid-template-columns:1fr 1fr}.auth-layout{grid-template-columns:1fr}.auth-brand{padding:35px 25px}.auth-brand .large,.auth-points{display:none}.auth-brand h1{font-size:29px}.login-pane{padding:40px 20px}.preview{height:390px}}

.preview-image{object-fit:contain;display:block;background:#f8f9fb}.preview-help{font-size:12px;color:#778399;margin:12px 0 0}.preview-help a{color:#6654d7;font-weight:700;text-decoration:underline}.chosen-files:not(:empty){background:#f5f2ff;border:1px solid #d9cffb;border-radius:10px;padding:14px 17px;margin-bottom:15px}.chosen-files ul{margin:9px 0 0;padding-left:18px;color:#3d4560;line-height:1.9}.upload-hint{font-size:12px;color:#6b7590;line-height:1.6;margin:12px 0 0}.upload-progress{margin:12px 0;background:#edf5ff;color:#245a93;border-radius:9px;padding:12px}.btn:disabled{opacity:.45;cursor:not-allowed}


/* DMS 1.2 – Kommentarfeld über volle Breite */
.comment-form{display:flex;flex-direction:column;align-items:stretch;gap:12px;width:100%;min-width:0;margin-top:25px}
.comment-form textarea{display:block;width:100%;min-width:0;min-height:150px;box-sizing:border-box;resize:vertical;padding:15px 16px;line-height:1.65;font-size:14px}
.comment-form .btn{align-self:flex-end;margin-top:0;min-height:42px}
@media(max-width:550px){.comment-form textarea{min-height:140px}.comment-form .btn{align-self:stretch;width:100%}}

/* DMS 1.2: Dateinavigation und Anhänge */
.viewer-toolbar{display:flex;align-items:center;gap:12px;margin:0 0 15px;background:#f8f7fd;border:1px solid #eae6f8;border-radius:11px;padding:10px}
.viewer-filename{min-width:0;flex:1;text-align:center;overflow-wrap:anywhere}.viewer-filename strong,.viewer-filename small{display:block}.viewer-filename small{margin-top:4px;color:#8892a6}.viewer-arrow{font-size:23px;min-width:48px}.viewer-disabled{opacity:.25;pointer-events:none}.viewer-actions{display:flex;justify-content:flex-end;align-items:center;gap:10px;flex-wrap:wrap;margin-top:14px}.viewer-actions form{margin:0}.comment-form textarea{display:block;width:100%;min-height:140px;box-sizing:border-box}.comment-form button{display:flex;margin:12px 0 0 auto}.version .btn{font-size:12px;padding:8px 11px}.detail-main{min-width:0}
@media(max-width:750px){.viewer-toolbar{gap:6px;padding:7px}.viewer-arrow{min-width:40px;padding:8px}.viewer-actions .btn{white-space:normal}}

/* DMS 1.3: Sichtbare Slideshow-Pfeile direkt auf der Vorschau */
.viewer-stage{position:relative;margin-top:15px;isolation:isolate;border-radius:11px;overflow:hidden;background:#f8f9fb}
.viewer-stage .preview{display:block;width:100%;height:520px;margin:0}
.viewer-stage .empty-preview{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px}
.viewer-overlay-arrow{position:absolute;z-index:5;top:50%;transform:translateY(-50%);display:flex;justify-content:center;align-items:center;width:52px;height:68px;border-radius:12px;background:rgba(32,31,58,.84);color:#fff;font-size:36px;font-weight:800;line-height:1;text-decoration:none;box-shadow:0 4px 18px #18153244;transition:background .2s,transform .2s}
.viewer-overlay-arrow:hover,.viewer-overlay-arrow:focus-visible{background:#6654d7;color:#fff;transform:translateY(-50%) scale(1.06);outline:3px solid #b9b1ff}
.viewer-overlay-left{left:12px}.viewer-overlay-right{right:12px}
.viewer-counter{text-align:center;color:#69758a;font-size:12px;margin-top:10px;scroll-margin-top:100px}
.viewer-filename{background:#f8f7fd;border:1px solid #ebe7f8;border-radius:10px;padding:11px 15px}
.viewer-actions .btn.red:disabled{opacity:.5;cursor:not-allowed}
@media(max-width:750px){.viewer-stage .preview{height:390px}.viewer-overlay-arrow{width:44px;height:60px;font-size:30px}.viewer-overlay-left{left:6px}.viewer-overlay-right{right:6px}.viewer-actions{align-items:stretch;flex-direction:column}.viewer-actions a,.viewer-actions form,.viewer-actions button{width:100%}}

/* DMS 1.4: deutlich sichtbare Dateinavigation */
.release-indicator{display:inline-block;margin-bottom:12px;border-radius:7px;padding:6px 10px;background:#efeaff;color:#563cbb;font-size:12px;font-weight:800}
.viewer-stage{position:relative!important;isolation:isolate!important;overflow:visible!important;min-height:350px}
.viewer-stage .viewer-overlay-arrow{position:absolute!important;display:flex!important;visibility:visible!important;opacity:1!important;top:50%!important;z-index:100!important;align-items:center!important;justify-content:center!important;width:58px!important;height:82px!important;background:#4c38ae!important;color:#fff!important;border:3px solid white!important;border-radius:13px!important;font-size:39px!important;box-shadow:0 5px 20px #2225!important;transform:translateY(-50%)!important}
.viewer-stage .viewer-overlay-left{left:8px!important}.viewer-stage .viewer-overlay-right{right:8px!important}
.viewer-stage .viewer-overlay-arrow:hover{background:#241774!important}
.viewer-filelist{margin-top:22px;border-top:1px solid #e7e9f0;padding-top:16px}.viewer-filelist h4{font-size:14px;margin:0 0 11px}
.viewer-fileitem{display:flex;align-items:center;gap:12px;padding:13px;margin-bottom:7px;border:1px solid #e3e7f0;border-radius:10px;text-decoration:none;color:#24324b;background:#fff}
.viewer-fileitem.current{border-color:#735bd7;background:#f5f2ff}
.viewer-file-number{background:#ece8fb;color:#573bbf;min-width:32px;height:32px;border-radius:9px;display:grid;place-items:center;font-weight:800}
.viewer-file-info{flex:1;min-width:0}.viewer-file-info strong,.viewer-file-info small{display:block;overflow-wrap:anywhere}.viewer-file-info small{margin-top:3px;color:#8590a5}
.viewer-file-open{color:#634bd0;font-weight:700;white-space:nowrap}
.viewer-counter{font-size:13px;margin:13px 0}.viewer-explanation{background:#fff7e9;color:#77511b;line-height:1.6;margin-top:12px}.viewer-explanation a{text-decoration:underline;font-weight:800}
.viewer-actions{margin-top:16px!important;justify-content:flex-start!important}.viewer-actions .btn.red{border:2px solid #e2a5b0;background:#fff8f8;color:#ae263c}
@media(max-width:750px){.viewer-stage .viewer-overlay-arrow{height:66px!important;width:46px!important;font-size:29px!important}.viewer-file-open{font-size:11px}}

/* DMS 1.6: Touch-Bedienung und kleine Bildschirme */
@media(max-width:950px){.detail-grid{grid-template-columns:minmax(0,1fr)}.detail-main,.detail-side{min-width:0}.viewer-stage{max-width:100%}.viewer-file-info{min-width:0}.viewer-file-info strong{overflow-wrap:anywhere}}
@media(max-width:750px){.main{padding:18px 12px}.panel{padding:16px}.detail-header{gap:12px}.detail-header .btn{max-width:100%;white-space:normal}.viewer-stage .preview{max-width:100%;width:100%}.viewer-filelist{max-width:100%;overflow:hidden}.viewer-fileitem{gap:8px}.viewer-actions{display:flex;flex-direction:column;align-items:stretch}.viewer-actions>a,.viewer-actions>form,.viewer-actions>form button{width:100%;white-space:normal}.viewer-overlay-arrow{min-width:44px;min-height:54px;display:flex;align-items:center;justify-content:center}.dropzone{padding:22px 10px}.comment-form textarea{width:100%;min-height:140px}.comment-form button{min-height:44px}}
@media(max-width:440px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.viewer-fileitem{padding:10px 7px}.viewer-file-open{font-size:11px}.topbar{padding:12px}.detail-header h1{overflow-wrap:anywhere}.folder-grid{grid-template-columns:1fr}}

/* DMS 1.7 - Ordnerverwaltung */
.folder-card-manage{display:flex;flex-direction:column;gap:14px;min-width:0}.folder-card-link{display:block;min-width:0}.folder-card-link strong{overflow-wrap:anywhere}.folder-card-link:hover strong{color:#6654d7}.folder-delete-form{margin-top:auto}.folder-delete-btn{width:100%;font-size:12px;padding:9px 10px}.folder-delete-btn:hover{background:#fff2f3}
