/* Lumiso Share 1.0 – Clean Design V2
   System fonts only. No external font requests. */

:root{
  --bg:#f6f5f2;
  --panel:#ffffff;
  --text:#111111;
  --muted:#6b6b6b;
  --line:#dedbd4;
  --line-dark:#c9c5bd;
  --orange:#fe4101;
  --orange-dark:#d93600;
  --black:#111111;
  --success:#edf7ef;
  --danger:#fff0ea;
  --radius:6px;
  --shadow:0 18px 44px rgba(0,0,0,.07);
}

*{box-sizing:border-box}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  min-height:100vh;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at 100% 0%, rgba(254,65,1,.07), transparent 28rem),
    linear-gradient(180deg,#fbfaf7 0%,var(--bg) 100%);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

a{color:inherit}
img{max-width:100%}

.ls-top{
  background:transparent;
  padding:34px 28px 16px;
}

.ls-top-inner{
  width:min(1180px, calc(100vw - 40px));
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

.ls-logo-link{
  display:inline-flex;
  align-items:center;
  text-decoration:none;
}

.ls-logo{
  width:min(420px, 62vw);
  height:auto;
  display:block;
}

.ls-top p{
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.5;
  text-align:right;
}

.ls-page{
  width:min(1040px, calc(100vw - 40px));
  margin:0 auto;
  padding:34px 0 54px;
}

.ls-page-wide{
  width:min(1320px, calc(100vw - 40px));
}

.ls-hero{
  margin:12px 0 34px;
}

.ls-hero h1{
  margin:0;
  font-size:clamp(42px, 6vw, 84px);
  line-height:.95;
  letter-spacing:-3px;
  font-weight:850;
}

.ls-hero p{
  margin:18px 0 0;
  max-width:720px;
  color:#3f3f3f;
  font-size:18px;
  line-height:1.6;
}

.ls-card,
.ls-form-card,
.ls-panel,
.ls-home-tile{
  background:rgba(255,255,255,.92);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:none;
}

.ls-card,
.ls-form-card,
.ls-panel{
  padding:28px;
}

.ls-panel{
  margin-bottom:20px;
}

.ls-panel h2,
.ls-card h2,
.ls-block-head h2{
  margin:0 0 10px;
  font-size:clamp(26px, 2.6vw, 42px);
  letter-spacing:-1.4px;
  line-height:1.05;
  font-weight:820;
}

.ls-panel > p,
.ls-block-head p,
.ls-card > p{
  color:var(--muted);
  line-height:1.6;
}

.ls-home-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}

.ls-home-tile{
  min-height:240px;
  padding:28px;
  text-decoration:none;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  transition:border-color .2s ease, transform .2s ease, background-color .2s ease;
}

.ls-home-tile:hover{
  transform:translateY(-2px);
  border-color:var(--black);
  background:#fff;
}

.ls-home-icon,
.ls-drop-icon{
  width:44px;
  height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#111;
  color:#fff;
  border-radius:0;
  font-weight:800;
}

.ls-home-tile h2{
  font-size:34px;
  margin:26px 0 8px;
  letter-spacing:-1px;
}

.ls-home-tile p{
  color:var(--muted);
  margin:0;
  line-height:1.55;
}

.ls-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}

.ls-full{
  grid-column:1 / -1;
}

.ls-field label{
  display:block;
  margin:0 0 7px;
  font-size:13px;
  font-weight:760;
  color:#222;
}

.ls-field input,
.ls-field textarea,
.ls-field select,
.ls-search,
.ls-copy-input{
  width:100%;
  border:1px solid var(--line-dark);
  background:#fff;
  color:var(--text);
  border-radius:0;
  padding:14px 13px;
  font:inherit;
  font-size:15px;
  outline:none;
  transition:border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.ls-field textarea{
  min-height:112px;
  resize:vertical;
}

.ls-field input:focus,
.ls-field textarea:focus,
.ls-field select:focus,
.ls-search:focus,
.ls-copy-input:focus{
  border-color:#111;
  box-shadow:0 0 0 3px rgba(0,0,0,.06);
}

.ls-block{
  border-bottom:1px solid var(--line);
  padding:0 0 28px;
  margin:0 0 28px;
}

.ls-block:last-of-type{
  border-bottom:0;
}

.ls-dropzone,
.ls-admin-upload{
  border:1px dashed #999;
  background:#fff;
  min-height:260px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:32px 24px;
  text-align:center;
  transition:border-color .2s ease, background-color .2s ease;
  cursor:pointer;
}

.ls-dropzone:hover,
.ls-admin-upload:hover,
.js-upload-zone.is-dragover{
  border-color:var(--orange);
  background:#fff9f5;
}

.ls-dropzone h3,
.ls-admin-upload h3{
  margin:20px 0 8px;
  font-size:30px;
  letter-spacing:-1px;
  line-height:1.1;
}

.ls-dropzone p,
.ls-admin-upload p{
  margin:0;
  color:var(--muted);
}

.ls-file-input{
  display:none !important;
}

.ls-file-list{
  width:100%;
  max-width:760px;
  margin:22px auto 0;
  padding:0;
  list-style:none;
  display:grid;
  gap:8px;
  text-align:left;
}

.ls-file-list li,
.ls-file-row{
  border:1px solid var(--line);
  background:#fff;
  padding:11px 12px;
}

.ls-file-list-head{
  display:flex !important;
  justify-content:space-between;
  gap:14px;
  background:#111 !important;
  color:#fff;
  border-color:#111 !important;
}

.ls-file-list-head span{
  color:rgba(255,255,255,.72);
}

.ls-file-row{
  display:flex !important;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.ls-file-info strong{
  display:block;
  font-size:14px;
  overflow-wrap:anywhere;
}

.ls-file-info small{
  display:block;
  color:var(--muted);
  margin-top:3px;
  font-size:12px;
}

.ls-file-remove{
  border:1px solid #111;
  background:#111;
  color:#fff;
  width:30px;
  height:30px;
  border-radius:0;
  cursor:pointer;
  font-size:20px;
  line-height:1;
  transition:background-color .2s ease, border-color .2s ease;
}

.ls-file-remove:hover{
  background:var(--orange);
  border-color:var(--orange);
}

.ls-limits{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
  margin-top:14px;
}

.ls-limits div{
  background:#fff;
  border:1px solid var(--line);
  padding:14px;
}

.ls-limit-icon{
  display:block;
  margin-bottom:8px;
  color:var(--orange);
}

.ls-limits strong{
  display:block;
}

.ls-limits small{
  color:var(--muted);
}

.ls-consent{
  display:flex;
  gap:12px;
  align-items:flex-start;
  border:1px solid var(--line);
  padding:16px;
  background:#fff;
  color:#333;
  line-height:1.5;
  font-size:14px;
}

.ls-consent input{
  margin-top:3px;
}

.ls-btn,
.ls-download-btn,
.ls-submit,
.ls-tabs a,
button{
  font:inherit;
}

.ls-btn,
.ls-download-btn,
.ls-submit{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:42px;
  padding:11px 16px;
  border:1px solid #111;
  border-radius:0;
  background:#111;
  color:#fff;
  text-decoration:none;
  font-weight:780;
  cursor:pointer;
  transition:background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.ls-submit{
  margin-top:20px;
  min-width:210px;
}

.ls-btn:hover,
.ls-download-btn:hover,
.ls-submit:hover{
  background:var(--orange);
  border-color:var(--orange);
  transform:translateY(-1px);
}

.ls-btn.secondary{
  background:#fff;
  color:#111;
  border-color:#111;
}

.ls-btn.secondary:hover{
  background:#111;
  color:#fff;
}

.ls-btn.danger{
  background:#fff;
  color:#111;
  border-color:#111;
}

.ls-btn.danger:hover{
  background:var(--orange);
  color:#fff;
  border-color:var(--orange);
}

.ls-btn.green{
  background:#111;
  color:#fff;
}

.ls-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 22px;
}

.ls-tabs a{
  display:inline-flex;
  padding:9px 13px;
  border:1px solid #111;
  color:#111;
  text-decoration:none;
  background:transparent;
  transition:background-color .18s ease, color .18s ease;
}

.ls-tabs a:hover,
.ls-tabs a.active{
  background:#111;
  color:#fff;
}

.ls-dashboard-cards{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  margin-bottom:24px;
}

.ls-stat{
  padding:18px 16px;
  border-right:1px solid var(--line);
  background:transparent;
}

.ls-stat:last-child{
  border-right:0;
}

.ls-stat strong{
  display:block;
  font-size:30px;
  letter-spacing:-1px;
}

.ls-stat span{
  color:var(--muted);
  font-size:13px;
}

.ls-admin-layout{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:20px;
  align-items:start;
}

.ls-search-row{
  margin:0 0 22px;
}

.ls-entry{
  border-top:1px solid var(--line);
  padding:18px 0;
  background:transparent;
}

.ls-entry:last-child{
  border-bottom:1px solid var(--line);
}

.ls-entry h3{
  margin:9px 0 4px;
  font-size:24px;
  letter-spacing:-.6px;
  line-height:1.15;
}

.ls-entry p{
  margin:0 0 10px;
  color:var(--muted);
}

.ls-entry-meta{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px 18px;
  margin:12px 0;
}

.ls-entry-meta div{
  border-top:1px solid var(--line);
  padding-top:9px;
}

.ls-entry-meta strong{
  display:block;
  font-size:12px;
  color:var(--muted);
  margin-bottom:2px;
}

.ls-entry-meta span{
  font-size:14px;
}

.ls-entry-actions,
.ls-detail-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
  margin-top:13px;
}

.ls-entry-actions form,
.ls-detail-actions form{
  display:inline-flex;
  margin:0;
}

.ls-code-pill,
.ls-badge,
.ls-status{
  display:inline-flex;
  align-items:center;
  gap:5px;
  font-size:12px;
  font-weight:780;
  padding:4px 8px;
  border:1px solid var(--line-dark);
  background:#fff;
  color:#111;
}

.ls-badge,
.ls-code-pill{
  border-color:rgba(254,65,1,.35);
  color:var(--orange);
}

.ls-status.done{
  background:var(--success);
}

.ls-status.open{
  background:#fff6f1;
  border-color:rgba(254,65,1,.35);
}

.ls-status.expired,
.ls-status.trash{
  background:#efefef;
}

.ls-alert,
.ls-success{
  border:1px solid var(--line);
  background:#fff;
  padding:16px;
  margin:0 0 18px;
}

.ls-alert-error{
  background:var(--danger);
  border-color:rgba(254,65,1,.35);
}

.ls-success{
  background:var(--success);
}

.ls-success strong,
.ls-alert strong{
  display:block;
  margin-bottom:4px;
}

.ls-files{
  list-style:none;
  margin:14px 0 0;
  padding:0;
  border-top:1px solid var(--line);
}

.ls-files li{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:13px 0;
  border-bottom:1px solid var(--line);
}

.ls-file-name{
  font-weight:760;
  overflow-wrap:anywhere;
}

.ls-file-size{
  color:var(--muted);
  font-size:13px;
  margin-top:3px;
}

.ls-download-meta{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:10px;
  margin:18px 0;
}

.ls-download-meta div{
  border-top:1px solid var(--line);
  padding-top:10px;
}

.ls-download-meta strong{
  color:var(--muted);
  font-size:12px;
}

.ls-download-batches{
  display:grid;
  gap:22px;
  margin-top:18px;
}

.ls-download-batch{
  border-top:1px solid var(--line);
  padding-top:22px;
}

.ls-download-batch-head h3{
  margin:10px 0 6px;
  font-size:32px;
  letter-spacing:-1px;
}

.ls-download-batch-head p{
  color:var(--muted);
  line-height:1.55;
}

.ls-note,
.ls-retention-customer,
.ls-retention-box,
.ls-history,
.ls-notes,
.ls-messages{
  border-top:1px solid var(--line);
  padding-top:22px;
  margin-top:24px;
}

.ls-retention-customer{
  background:transparent;
}

.ls-history h3,
.ls-notes h3,
.ls-messages h3,
.ls-retention-box h3{
  margin:0 0 14px;
  font-size:24px;
  letter-spacing:-.6px;
}

.ls-history-item,
.ls-note-item,
.ls-message{
  border-top:1px solid var(--line);
  padding:13px 0;
}

.ls-history-item:first-of-type,
.ls-note-item:first-of-type,
.ls-message:first-of-type{
  border-top:0;
}

.ls-history-item{
  display:grid;
  grid-template-columns:170px 1fr;
  gap:12px;
}

.ls-history-item strong,
.ls-message-meta span{
  color:var(--muted);
  font-size:13px;
}

.ls-history-item span,
.ls-message-meta strong{
  font-weight:760;
}

.ls-history-item small{
  grid-column:2;
  color:var(--muted);
}

.ls-message-meta{
  display:flex;
  justify-content:space-between;
  gap:14px;
  margin-bottom:6px;
}

.ls-message p{
  margin:0;
  line-height:1.58;
  color:#333;
}

.ls-message.is-lumiso{
  padding-left:14px;
  border-left:2px solid #111;
}

.ls-message.is-customer{
  padding-left:14px;
  border-left:2px solid var(--orange);
}

.ls-message-form,
.ls-note-form{
  margin-top:16px;
}

.ls-empty,
.ls-note-empty{
  color:var(--muted);
  padding:12px 0;
}

.ls-retention-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}

.ls-retention-actions select{
  border:1px solid var(--line-dark);
  border-radius:0;
  background:#fff;
  min-height:42px;
  padding:0 12px;
  font:inherit;
}

.ls-mini-danger{
  border:1px solid #111;
  background:#fff;
  color:#111;
  padding:5px 8px;
  border-radius:0;
  cursor:pointer;
}

.ls-mini-danger:hover{
  background:#111;
  color:#fff;
}

.ls-footer{
  width:min(1180px, calc(100vw - 40px));
  margin:0 auto;
  padding:24px 0 34px;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  gap:18px;
  color:var(--muted);
  font-size:13px;
}

.ls-footer nav{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}

.ls-footer a{
  color:#111;
  text-decoration:none;
}

.ls-footer a:hover{
  color:var(--orange);
}

.ls-login-wrap{
  width:min(520px,100%);
  margin:0 auto;
}

@media(max-width:1050px){
  .ls-admin-layout{
    grid-template-columns:1fr;
  }

  .ls-dashboard-cards{
    grid-template-columns:1fr 1fr;
    border-bottom:0;
  }

  .ls-stat{
    border-bottom:1px solid var(--line);
  }
}

@media(max-width:720px){
  .ls-top-inner{
    display:block;
  }

  .ls-top p{
    text-align:left;
    margin-top:10px;
  }

  .ls-page,
  .ls-page-wide,
  .ls-top-inner,
  .ls-footer{
    width:min(100% - 28px, 100%);
  }

  .ls-grid,
  .ls-home-grid,
  .ls-limits,
  .ls-download-meta,
  .ls-entry-meta{
    grid-template-columns:1fr;
  }

  .ls-dashboard-cards{
    grid-template-columns:1fr;
  }

  .ls-stat{
    border-right:0;
  }

  .ls-card,
  .ls-form-card,
  .ls-panel{
    padding:20px;
  }

  .ls-hero h1{
    font-size:42px;
    letter-spacing:-1.5px;
  }

  .ls-files li{
    display:block;
  }

  .ls-download-btn{
    margin-top:10px;
    width:100%;
  }

  .ls-history-item{
    grid-template-columns:1fr;
  }

  .ls-history-item small{
    grid-column:1;
  }

  .ls-footer{
    display:block;
  }

  .ls-footer nav{
    margin-top:10px;
  }
}


/* Lumiso Share 1.0 Phase 3 – Benachrichtigungseinstellungen */
.ls-notification-settings,
.ls-customer-notifications{
  border-top:1px solid var(--line);
  padding-top:22px;
  margin-top:24px;
}

.ls-notification-settings h3,
.ls-customer-notifications h3{
  margin:0 0 14px;
  font-size:24px;
  letter-spacing:-.6px;
}

.ls-notification-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
}

.ls-checkline{
  display:flex;
  gap:10px;
  align-items:flex-start;
  color:#333;
  line-height:1.45;
  font-size:14px;
}

.ls-checkline input{
  margin-top:3px;
}

.ls-hint{
  color:var(--muted);
  font-size:12.5px;
  margin-top:6px;
  line-height:1.45;
}


/* Lumiso Share 1.0 Phase 4 – Feinschliff Übersicht, Details, Header */
.ls-top{
  padding-top:30px;
  padding-bottom:20px;
}

.ls-top-inner{
  display:flex !important;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
}

.ls-top p{
  text-align:center !important;
  margin-top:12px;
}

.ls-logo{
  width:min(460px,76vw);
}

.ls-history-overview{
  grid-column:1 / -1;
}

.ls-entry-mini{
  position:relative;
}

.ls-entry-mini-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:6px;
}

.ls-type-tag{
  margin-left:auto;
  border:1px solid rgba(254,65,1,.38);
  color:var(--orange);
  background:#fff;
  padding:4px 8px;
  font-size:12px;
  font-weight:820;
}

.ls-mini-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin:14px 0 8px;
}

.ls-mini-grid div{
  border-top:1px solid var(--line);
  padding-top:9px;
}

.ls-mini-grid strong{
  display:block;
  color:var(--muted);
  font-size:12px;
  margin-bottom:2px;
}

.ls-mini-grid span{
  display:block;
  font-size:14px;
}

.ls-text-link{
  display:inline-flex;
  margin-top:8px;
  color:#111;
  font-weight:820;
  text-decoration:none;
  border-bottom:1px solid #111;
}

.ls-text-link:hover{
  color:var(--orange);
  border-color:var(--orange);
}

.ls-toggle-block{
  border-top:1px solid var(--line);
  padding-top:0;
  margin-top:22px;
}

.ls-toggle-block > summary{
  list-style:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:18px 0;
  font-size:22px;
  line-height:1.1;
  letter-spacing:-.5px;
  font-weight:820;
}

.ls-toggle-block > summary::-webkit-details-marker{
  display:none;
}

.ls-toggle-block > summary:after{
  content:"+";
  font-weight:600;
  color:var(--muted);
}

.ls-toggle-block[open] > summary:after{
  content:"–";
}

.ls-count{
  margin-left:8px;
  min-width:22px;
  height:22px;
  padding:0 7px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:var(--orange);
  color:#fff;
  font-size:12px;
  line-height:1;
  border-radius:50%;
  vertical-align:middle;
}

.ls-toggle-block .ls-messages,
.ls-toggle-block .ls-retention-box,
.ls-toggle-block .ls-notification-settings,
.ls-toggle-block .ls-customer-notifications{
  border-top:0;
  margin-top:0;
  padding-top:0;
}

.ls-inline-delete{
  margin-top:8px;
}

.ls-mini-danger{
  font-size:11px;
  padding:3px 7px;
  line-height:1.2;
}

.ls-note-head{
  gap:12px;
}

.ls-note-head form{
  margin-left:auto;
}

.ls-retention-box p{
  margin-top:0;
}

.ls-download-batch-head h3{
  font-size:clamp(27px,3vw,38px);
}

.ls-retention-customer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}

.ls-retention-customer form{
  margin:0;
}

@media(max-width:900px){
  .ls-mini-grid{
    grid-template-columns:1fr 1fr;
  }
}

@media(max-width:620px){
  .ls-mini-grid{
    grid-template-columns:1fr;
  }
}


/* Lumiso Share 1.0 Phase 5 – finaler Feinschliff */
.ls-history-overview{
  grid-column:auto !important;
}

@media(min-width:1051px){
  .ls-admin-layout{
    grid-template-columns:minmax(520px, 1.05fr) minmax(420px, .95fr);
    align-items:start;
  }
}

.ls-btn:hover,
.ls-download-btn:hover,
.ls-submit:hover,
.ls-home-tile:hover{
  transform:none !important;
}

.ls-btn,
.ls-download-btn,
.ls-submit,
.ls-home-tile,
.ls-entry,
.ls-panel,
.ls-card{
  transition:background-color .18s ease, border-color .18s ease, color .18s ease, opacity .18s ease;
}

.ls-search-row{
  margin-bottom:18px;
}

.ls-entry[data-search][style*="display: none"]{
  opacity:0;
}

.ls-detail-actions .ls-btn.secondary:first-child{
  border-color:#111;
  background:#fff;
  color:#111;
}

.ls-detail-actions .ls-btn.secondary:first-child:hover{
  background:#111;
  color:#fff;
}

.ls-message .ls-inline-delete{
  display:flex;
  justify-content:flex-end;
}

.ls-note-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
}

.ls-note-head .ls-mini-danger,
.ls-inline-delete .ls-mini-danger{
  font-size:10.5px;
  padding:3px 7px;
  opacity:.78;
}

.ls-note-head .ls-mini-danger:hover,
.ls-inline-delete .ls-mini-danger:hover{
  opacity:1;
}

.ls-download-meta-small{
  grid-template-columns:repeat(2,minmax(0,1fr));
}

.ls-download-batch-head .ls-badge{
  color:var(--orange);
}

.ls-count{
  margin-left:auto;
  margin-right:38px;
}

.ls-toggle-block > summary{
  position:relative;
}

.ls-toggle-block > summary .ls-count{
  position:absolute;
  right:34px;
  top:50%;
  transform:translateY(-50%);
}

@media(max-width:720px){
  .ls-download-meta-small{
    grid-template-columns:1fr;
  }
  .ls-count{
    margin-right:28px;
  }
}


/* Phase 6 fixes */
.ls-detail-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:14px;
}
.ls-detail-head h2{
  margin:0;
}
.ls-close-link{
  margin-top:12px;
  white-space:nowrap;
}

@media(min-width:1051px){
  .ls-admin-layout{
    grid-template-columns:minmax(520px, 1.05fr) minmax(430px, .95fr) !important;
  }
  .ls-history-overview{
    grid-column:auto !important;
  }
}

.ls-notes-toggle .ls-notes{
  border-top:0;
  margin-top:0;
  padding-top:0;
}

.ls-note-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.ls-note-head form{
  margin-left:auto;
}

.ls-mini-danger{
  font-size:10.5px !important;
  padding:3px 7px !important;
  line-height:1.2 !important;
}

.ls-entry-actions .ls-text-link{
  margin-right:12px;
}


/* Phase 7 – Formular- und Kundenseiten-Bereinigung */
.ls-download-meta div strong,
.ls-download-meta-small div strong{
  font-size:12px !important;
  line-height:1.35;
  font-weight:760;
  color:var(--muted) !important;
}

.ls-download-meta div span,
.ls-download-meta-small div span{
  font-size:16px;
  line-height:1.45;
  font-weight:400;
  color:var(--text);
}

.ls-download-meta{
  margin-top:18px;
}

.ls-retention-customer{
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding:18px 0;
  margin:22px 0;
}

.ls-retention-customer strong{
  margin:0;
}

.ls-download-batch{
  padding-top:26px;
}

.ls-download-batch-head .ls-badge{
  margin-bottom:14px;
}

.ls-download-batch-head p{
  margin-top:14px;
}


/* Phase 9 - Lumiso Toggle Design */
.ls-toggle-block summary{
    position:relative;
    cursor:pointer;
    list-style:none;
}

.ls-toggle-block summary::-webkit-details-marker{
    display:none;
}

.ls-toggle-block summary::after{
    content:"+";
    position:absolute;
    right:0;
    top:50%;
    transform:translateY(-50%);
    color:#ff5a00;
    font-size:28px;
    font-weight:800;
    line-height:1;
}

.ls-toggle-block[open] summary::after{
    content:"−";
    color:#ff5a00;
}


/* Phase 10 – einheitliche Admin-Bedienlogik */
.ls-detail-head{
  display:block;
  margin-bottom:18px;
}
.ls-detail-head h2{
  margin:0;
}
.ls-entry-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
  margin-top:16px;
}
.ls-entry-actions form{
  margin:0;
}
.ls-entry-actions .ls-btn{
  min-height:40px;
}
.ls-text-link.ls-close-link{
  display:none !important;
}
.ls-panel[id="details"] .ls-entry{
  border-bottom:1px solid var(--line);
  padding-bottom:22px;
  margin-bottom:22px;
}


/* Phase 11 – finale Korrekturen */
.ls-messages-toggle .ls-messages{
  border-top:0;
  margin-top:0;
  padding-top:0;
}
.ls-toggle-block > summary::after,
.ls-toggle-block[open] > summary::after{
  color:var(--orange) !important;
}
.ls-message .ls-note-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
}
.ls-message .ls-note-head form{
  margin-left:auto;
}
.ls-message .ls-mini-danger{
  font-size:10.5px !important;
  padding:3px 7px !important;
}


/* Phase 12 – Nachrichten-Meta, Admin-Badges und Historie */
.ls-message-submeta{
  margin-top:4px;
  color:var(--muted);
  font-size:13px;
  line-height:1.45;
  font-weight:600;
}

.ls-message .ls-note-head strong{
  display:block;
}

.ls-count{
  background:var(--orange);
  color:#fff;
}

.ls-history h3{
  display:flex;
  align-items:center;
  gap:8px;
}


/* Phase 13 – Kommentare & Datei-Vorschau */
.ls-file-actions{
  display:flex;
  gap:8px;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
}

.ls-file-actions .ls-btn.secondary{
  background:#111;
  border-color:#111;
  color:#fff;
}

.ls-file-actions .ls-btn.secondary:hover{
  background:#333;
  border-color:#333;
  color:#fff;
}

.ls-file-actions .ls-download-btn{
  background:var(--orange);
  border-color:var(--orange);
  color:#fff;
}

.ls-file-actions .ls-download-btn:hover{
  background:var(--orange-dark);
  border-color:var(--orange-dark);
  color:#fff;
}

@media(max-width:720px){
  .ls-file-actions{
    justify-content:stretch;
    margin-top:10px;
  }
  .ls-file-actions .ls-btn,
  .ls-file-actions .ls-download-btn{
    width:100%;
  }
}


/* Phase 14 – Admin-Kommentare */
.ls-comments-toggle .ls-messages{
  border-top:0;
  margin-top:0;
  padding-top:0;
}

.ls-message-submeta{
  margin-top:4px;
  color:var(--muted);
  font-size:13px;
  line-height:1.45;
  font-weight:600;
}

.ls-message .ls-note-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
}

.ls-message .ls-note-head form{
  margin-left:auto;
}

.ls-message .ls-mini-danger{
  font-size:10.5px !important;
  padding:3px 7px !important;
}


/* Phase 15 – Kommentar-Layout & Fixes */
.ls-comment-head{
  display:grid;
  grid-template-columns:1fr auto;
  gap:18px;
  align-items:start;
}

.ls-comment-author strong{
  display:block;
  font-size:16px;
  line-height:1.35;
}

.ls-comment-meta{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:4px;
  color:var(--muted);
  font-size:13px;
  line-height:1.35;
  font-weight:600;
  text-align:right;
}

.ls-comment-meta form{
  margin-top:8px;
}

.ls-message p{
  margin-top:10px;
  overflow-wrap:anywhere;
}

@media(max-width:720px){
  .ls-comment-head{
    grid-template-columns:1fr;
  }
  .ls-comment-meta{
    align-items:flex-start;
    text-align:left;
  }
}


/* Phase 16 – kompakte Kommentare und interne Notizen */
.ls-comment-head-compact{
  display:grid;
  grid-template-columns:1fr auto;
  gap:16px;
  align-items:start;
}

.ls-comment-head-compact .ls-comment-author strong{
  font-size:15px;
  line-height:1.35;
}

.ls-comment-head-compact .ls-comment-meta{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:6px;
  font-size:12.5px;
  color:var(--muted);
  line-height:1.35;
  font-weight:600;
  text-align:right;
}

.ls-message,
.ls-note-item{
  padding:14px 0;
}

.ls-message p,
.ls-note-item p{
  margin:8px 0 0;
  line-height:1.55;
  overflow-wrap:anywhere;
}

.ls-message .ls-mini-danger,
.ls-note-item .ls-mini-danger{
  font-size:10px !important;
  padding:3px 7px !important;
  opacity:.82;
}

.ls-message .ls-mini-danger:hover,
.ls-note-item .ls-mini-danger:hover{
  opacity:1;
}

@media(max-width:720px){
  .ls-comment-head-compact{
    grid-template-columns:1fr;
  }
  .ls-comment-head-compact .ls-comment-meta{
    align-items:flex-start;
    text-align:left;
  }
}


/* Phase 17 – kompakte Kommentare & interne Notizen */
.ls-messages,
.ls-notes{
  border-left:0 !important;
}

.ls-message,
.ls-note-item{
  position:relative;
  border-left:2px solid #111 !important;
  border-top:1px solid var(--line);
  padding:12px 0 12px 16px !important;
  margin:0;
}

.ls-message:nth-of-type(even),
.ls-note-item:nth-of-type(even){
  border-left-color:var(--orange) !important;
}

.ls-message.is-customer{
  border-left-color:var(--orange) !important;
}

.ls-message.is-lumiso{
  border-left-color:#111 !important;
}

.ls-comment-head-compact{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:start;
}

.ls-comment-head-compact .ls-comment-author strong{
  font-size:14.5px !important;
  line-height:1.25;
  display:block;
}

.ls-comment-head-compact .ls-comment-meta{
  display:block !important;
  text-align:right;
  font-size:12px !important;
  color:var(--muted);
  line-height:1.2;
  font-weight:600;
  white-space:nowrap;
}

.ls-comment-meta-row{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
}

.ls-comment-meta-row form{
  margin:0 !important;
  display:inline-flex;
}

.ls-message p,
.ls-note-item p{
  margin:6px 0 0 !important;
  line-height:1.45;
  overflow-wrap:anywhere;
}

.ls-message .ls-mini-danger,
.ls-note-item .ls-mini-danger{
  font-size:10px !important;
  line-height:1 !important;
  padding:3px 7px !important;
  min-height:22px;
  opacity:.82;
  background:#fff;
}

.ls-message .ls-mini-danger:hover,
.ls-note-item .ls-mini-danger:hover{
  opacity:1;
  background:#111;
  color:#fff;
}

.ls-message-form,
.ls-note-form{
  margin-top:16px !important;
}

.ls-message-form .ls-field textarea,
.ls-note-form .ls-field textarea{
  min-height:96px;
}

@media(max-width:720px){
  .ls-message,
  .ls-note-item{
    padding:10px 0 10px 12px !important;
  }

  .ls-comment-head-compact{
    grid-template-columns:1fr !important;
    gap:4px;
  }

  .ls-comment-head-compact .ls-comment-meta{
    text-align:left;
    white-space:normal;
  }

  .ls-comment-meta-row{
    justify-content:flex-start;
    flex-wrap:wrap;
    gap:6px;
  }

  .ls-message p,
  .ls-note-item p{
    margin-top:8px !important;
    font-size:15px;
  }

  .ls-message-form .ls-field textarea,
  .ls-note-form .ls-field textarea{
    min-height:110px;
  }
}


/* Lumiso Share Final – Header & Cleanup */
.ls-top{
  padding-top:32px !important;
  padding-bottom:34px !important;
}

.ls-top-inner{
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
  align-items:center !important;
  text-align:center !important;
  gap:0 !important;
}

.ls-logo-link{
  display:inline-flex !important;
  justify-content:center !important;
  align-items:center !important;
  line-height:0 !important;
  text-decoration:none !important;
}

.ls-logo{
  width:min(560px,86vw) !important;
  max-height:none !important;
  margin:0 auto !important;
  display:block !important;
}

.ls-top p{
  margin:8px 0 0 !important;
  text-align:center !important;
  font-size:16px !important;
  line-height:1.45 !important;
  color:#5f6268 !important;
}

@media(max-width:720px){
  .ls-top{
    padding-top:24px !important;
    padding-bottom:26px !important;
  }
  .ls-logo{
    width:min(430px,88vw) !important;
  }
  .ls-top p{
    margin-top:6px !important;
    font-size:14px !important;
  }
}


/* Lumiso Share – Design-Feinschliff */
.ls-login-wrap .ls-badge{
  margin-bottom:16px;
}

.ls-login-help{
  display:block;
  text-align:center;
  margin-top:18px;
  color:var(--muted);
  line-height:1.45;
}

.ls-hero-home p{
  max-width:clamp(720px, 51vw, 920px);
}

/* Pflichtfeld-Hinweise */
.ls-field-error{
  color:var(--orange);
  font-size:12px;
  font-weight:800;
  margin-top:7px;
}

input.ls-invalid,
textarea.ls-invalid,
select.ls-invalid{
  border-color:var(--orange) !important;
  box-shadow:0 0 0 2px rgba(254,65,1,.10);
}

.ls-upload-zone.ls-invalid,
.js-upload-zone.ls-invalid,
#dropZone.ls-invalid{
  border-color:var(--orange) !important;
  box-shadow:0 0 0 2px rgba(254,65,1,.10);
}

@media(max-width:720px){
  .ls-login-help{
    text-align:left;
  }
}


/* Lumiso Share – Designupdate Download & Teamlogin */
.ls-success-orange{
  background:#fff6f1 !important;
  border-color:rgba(254,65,1,.35) !important;
}

.ls-download-meta-top{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}

.ls-download-meta-top > div:first-child:nth-last-child(3){
  grid-column:1 / -1;
}

.ls-all-downloads{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  margin:18px 0 10px;
}

.ls-btn-orange,
.ls-all-downloads .ls-btn-orange{
  background:var(--orange) !important;
  border-color:var(--orange) !important;
  color:#fff !important;
}

.ls-btn-orange:hover{
  background:var(--orange-dark) !important;
  border-color:var(--orange-dark) !important;
}

.ls-toggle-intro{
  color:var(--muted);
  font-size:14px;
  line-height:1.55;
  margin:0 0 16px;
}

body:has(.ls-login-wrap) .ls-hero{
  text-align:center;
}

body:has(.ls-login-wrap) .ls-hero p{
  margin-left:auto;
  margin-right:auto;
}

.ls-login-wrap{
  text-align:center;
}

.ls-login-wrap .ls-card{
  text-align:left;
}

.ls-login-wrap .ls-badge{
  margin-bottom:18px;
}

.ls-login-wrap .ls-submit{
  display:flex;
  margin:24px auto 0;
  justify-content:center;
  min-width:230px;
}

.ls-login-help{
  text-align:center !important;
  margin-top:22px !important;
  color:var(--muted);
}

@media(max-width:720px){
  .ls-download-meta-top{
    grid-template-columns:1fr;
  }
  .ls-download-meta-top > div:first-child:nth-last-child(3){
    grid-column:auto;
  }
  .ls-all-downloads .ls-btn,
  .ls-all-downloads .ls-btn-orange{
    width:100%;
    justify-content:center;
  }
}


/* Lumiso Share – Downloadportal Feinschliff */
.ls-all-downloads{
  justify-content:center;
  margin:24px 0 18px !important;
}

.ls-retention-customer + .ls-download-meta-top,
.ls-download-meta-top{
  display:none !important;
}

.ls-retention-customer{
  margin-bottom:10px !important;
}

.ls-customer-notifications .ls-checkline input[type="radio"]{
  width:auto;
  min-height:auto;
  accent-color:var(--orange);
}

.ls-customer-notifications .ls-checkline{
  align-items:flex-start;
}


/* Lumiso Share – größere Benachrichtigungs-Auswahl */
.ls-customer-notifications .ls-checkline{
  gap:12px;
  font-size:16px;
  line-height:1.45;
}

.ls-customer-notifications .ls-checkline input[type="radio"]{
  width:20px;
  height:20px;
  min-width:20px;
  margin-top:2px;
  accent-color:var(--orange);
}

.ls-all-downloads .ls-btn[disabled]{
  opacity:.68;
  cursor:wait;
}


/* Lumiso Share – Upload-Seite Feinschliff */
.ls-page .ls-hero p{
  max-width:min(980px, 100%);
}

.ls-limits .ls-limit-icon,
.ls-limits svg,
.ls-limits i{
  font-size:22px !important;
  width:22px !important;
  height:22px !important;
}

.ls-limits{
  gap:12px;
}

.ls-limit,
.ls-limits > div{
  min-height:112px;
}

.ls-consent,
.ls-legal-box,
.ls-checkline{
  font-size:16px;
  line-height:1.55;
}

.ls-consent input[type="checkbox"],
.ls-legal-box input[type="checkbox"],
.ls-checkline input[type="checkbox"]{
  width:20px;
  height:20px;
  min-width:20px;
  margin-top:2px;
  accent-color:var(--orange);
}

.ls-field-error{
  color:var(--orange);
  font-size:12px;
  font-weight:800;
  margin-top:7px;
}

input.ls-invalid,
textarea.ls-invalid,
select.ls-invalid{
  border-color:var(--orange) !important;
  box-shadow:0 0 0 2px rgba(254,65,1,.10);
}

input[type="checkbox"].ls-invalid{
  outline:2px solid var(--orange);
  outline-offset:3px;
}

.ls-upload-zone.ls-invalid,
.js-upload-zone.ls-invalid,
#dropZone.ls-invalid{
  border-color:var(--orange) !important;
  box-shadow:0 0 0 2px rgba(254,65,1,.10);
}

@media(max-width:720px){
  .ls-page .ls-hero p{
    max-width:100%;
  }

  .ls-consent,
  .ls-legal-box,
  .ls-checkline{
    font-size:15px;
  }
}


/* Lumiso Share – Pflichtfeld-Validierung & Datenschutzcheckbox */
.ls-field-error{
  color:var(--orange);
  font-size:12px;
  font-weight:850;
  margin-top:7px;
}

input.ls-invalid,
textarea.ls-invalid,
select.ls-invalid{
  border-color:var(--orange) !important;
  box-shadow:0 0 0 2px rgba(254,65,1,.12) !important;
}

input[type="checkbox"].ls-invalid,
input[type="radio"].ls-invalid{
  outline:2px solid var(--orange);
  outline-offset:3px;
}

.ls-upload-zone.ls-invalid,
.js-upload-zone.ls-invalid,
#dropZone.ls-invalid{
  border-color:var(--orange) !important;
  box-shadow:0 0 0 2px rgba(254,65,1,.12) !important;
}

.ls-checkline .ls-field-error{
  grid-column:1 / -1;
  margin-left:32px;
}

.ls-consent-line a{
  color:#111;
  font-weight:800;
  text-decoration:underline;
  text-decoration-color:var(--orange);
}

.ls-consent-line a:hover{
  color:var(--orange);
}


/* Lumiso Share – Checkbox-Bereich sauber */
.ls-consent-line{
  margin-top:18px;
  padding-top:18px;
  border-top:1px solid var(--line);
}

.ls-consent-line a{
  color:#111 !important;
  text-decoration:none !important;
  font-weight:800;
}

.ls-consent-line a:hover{
  color:var(--orange) !important;
  text-decoration:none !important;
}

.ls-checkline{
  display:grid;
  grid-template-columns:20px 1fr;
  gap:14px;
  align-items:start;
}

.ls-checkline input[type="checkbox"]{
  margin-top:3px;
}


/* Lumiso Share – finale Checkbox-Optik */
.ls-legal-box,
.ls-privacy-box{
  width:100%;
  box-sizing:border-box;
  border:1px solid var(--line);
  background:#fff;
  padding:22px;
  margin:24px 0;
}

.ls-privacy-box{
  margin-top:18px;
  margin-bottom:24px;
}

.ls-legal-box .ls-checkline,
.ls-privacy-box .ls-checkline{
  display:grid;
  grid-template-columns:22px minmax(0,1fr);
  gap:16px;
  align-items:start;
  font-size:16px;
  line-height:1.55;
  width:100%;
}

.ls-legal-box input[type="checkbox"],
.ls-privacy-box input[type="checkbox"]{
  width:22px;
  height:22px;
  min-width:22px;
  margin:2px 0 0;
  accent-color:var(--orange);
}

.ls-privacy-box a,
.ls-consent-line a{
  color:var(--orange) !important;
  text-decoration:none !important;
  font-weight:800;
}

.ls-privacy-box a:hover,
.ls-consent-line a:hover{
  color:#111 !important;
  text-decoration:none !important;
}

.ls-consent-line{
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
}

@media(max-width:720px){
  .ls-legal-box,
  .ls-privacy-box{
    padding:18px;
  }

  .ls-legal-box .ls-checkline,
  .ls-privacy-box .ls-checkline{
    font-size:15px;
    gap:12px;
  }
}


/* Lumiso Share – Download-Code & Fehlerseite */
.ls-download-code-badge{
  margin-bottom:22px;
}

.ls-download-code-badge + h2{
  margin-top:12px;
}

.ls-download-error-box{
  background:#fff5ef !important;
  border:1px solid rgba(254,65,1,.55) !important;
  color:#111 !important;
  display:flex;
  flex-direction:column;
  gap:14px;
  align-items:flex-start;
}

.ls-download-error-box strong{
  font-size:20px;
  line-height:1.25;
}

.ls-download-error-box span{
  font-size:16px;
  line-height:1.55;
  color:#333;
}

.ls-download-error-box .ls-btn{
  margin-top:4px;
}


/* Lumiso Share – Admin System-E-Mail Checkbox */
.ls-system-mail-toggle{
  margin:10px 0 14px;
  padding:14px 16px;
  border:1px solid var(--line);
  background:#fff;
}

.ls-system-mail-toggle small{
  display:block;
  margin-top:4px;
  color:var(--muted);
  font-size:13px;
  line-height:1.45;
}

.ls-system-mail-toggle input[type="checkbox"]{
  width:18px;
  height:18px;
  min-width:18px;
  accent-color:var(--orange);
}


/* Lumiso Share – dezente Standard-Mail-Checkbox */
.ls-system-mail-toggle{
    display:none !important;
}

.ls-mail-option{
    display:flex;
    align-items:flex-start;
    gap:10px;
    margin:12px 0 20px;
    cursor:pointer;
}

.ls-mail-option input[type="checkbox"]{
    width:18px;
    height:18px;
    min-width:18px;
    margin-top:2px;
    accent-color:var(--orange);
    flex-shrink:0;
}

.ls-mail-option span{
    display:flex;
    flex-direction:column;
    line-height:1.4;
    font-weight:700;
    color:#111;
}

.ls-mail-option small{
    margin-top:2px;
    font-size:13px;
    font-weight:400;
    color:var(--muted);
}
