:root{--bg:#f3f6f3;--surface:#fff;--surface2:#edf3ee;--ink:#18221c;--muted:#69756d;--line:#dce5de;--brand:#183c2b;--brand2:#255c41;--accent:#b88038;--danger:#a64141;--warn:#fff4dd;--shadow:0 12px 30px rgba(20,54,37,.07);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg)}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg)}button,input,select,textarea{font:inherit}button{cursor:pointer}.app-shell{min-height:100vh;display:grid;grid-template-columns:264px 1fr}.sidebar{position:sticky;top:0;height:100vh;background:linear-gradient(180deg,#173c2a,#112e20);color:#fff;padding:22px 17px;display:flex;flex-direction:column;z-index:20}.brand{display:flex;align-items:center;gap:12px;padding:4px 8px 18px}.brand-mark{width:44px;height:44px;border-radius:13px;background:#fff;color:var(--brand);display:grid;place-items:center;font-weight:950;font-size:22px;box-shadow:0 8px 25px rgba(0,0,0,.12)}.brand strong{display:block;letter-spacing:.08em}.brand small{display:block;opacity:.68;margin-top:2px}.trial-card{margin:0 6px 17px;padding:13px 14px;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.08);border-radius:13px}.trial-card .trial-kicker{display:block;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.08em;opacity:.7}.trial-card strong,.trial-card small{display:block}.trial-card strong{margin:5px 0 2px}.trial-card small{opacity:.72}.nav{display:flex;flex-direction:column;gap:5px}.nav-link{border:0;background:transparent;color:rgba(255,255,255,.73);padding:11px 13px;border-radius:11px;text-align:left;font-weight:750;display:flex;gap:10px;align-items:center}.nav-link:hover,.nav-link.active{background:rgba(255,255,255,.11);color:#fff}.nav-link span{width:22px;text-align:center}.sidebar-footer{margin-top:auto;padding:12px 8px;color:rgba(255,255,255,.68)}.sidebar-footer small{display:block;margin-top:6px}.status-dot-row{display:flex;align-items:center;gap:8px;font-size:13px}.status-dot{width:8px;height:8px;border-radius:50%;background:#7cdf9b;box-shadow:0 0 0 5px rgba(124,223,155,.12)}
.main{min-width:0}.topbar{min-height:98px;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:25px 34px 17px}.topbar h1{margin:0;font-size:29px}.topbar p{margin:4px 0 0;color:var(--muted)}.top-actions,.button-row{display:flex;gap:10px;flex-wrap:wrap}.primary-btn,.secondary-btn,.icon-btn,.text-btn{border-radius:10px;padding:10px 14px;font-weight:800;border:1px solid transparent}.primary-btn{background:var(--brand);color:#fff}.primary-btn:hover{background:var(--brand2)}.secondary-btn{background:#fff;color:var(--ink);border-color:var(--line)}.secondary-btn:hover{background:var(--surface2)}.secondary-btn.danger{color:var(--danger)}.icon-btn{background:#fff;border-color:var(--line);padding:8px 11px}.text-btn{background:transparent;color:var(--brand);padding:8px}.wide{width:100%}.block{display:block;margin-top:10px}.view{display:none;padding:0 34px 38px}.view.active{display:block}
.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.metric-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.metric-card,.panel{background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow)}.metric-card{padding:20px}.metric-card.warning{background:var(--warn)}.metric-card>span{display:block;color:var(--muted);font-weight:750;font-size:13px}.metric-card strong{display:block;font-size:31px;margin:9px 0 5px}.metric-card small{color:var(--muted)}.two-col{display:grid;grid-template-columns:1.16fr 1fr;gap:15px;margin-top:15px}.panel{padding:20px;margin-top:15px}.panel.compact{margin-top:0;padding:13px}.panel h2{margin:0 0 4px;font-size:19px}.panel p{margin:0;color:var(--muted)}.panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}.list-stack{display:flex;flex-direction:column;gap:9px}.list-item{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 0;border-bottom:1px solid var(--line)}.list-item:last-child{border-bottom:0}.list-main{min-width:0}.list-main strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.list-main small{display:block;color:var(--muted);margin-top:3px}.list-side{text-align:right}.list-side strong{display:block}.list-side small{display:block;color:var(--muted);margin-top:3px}.empty{padding:27px;text-align:center;color:var(--muted);border:1px dashed var(--line);border-radius:12px}.chip-wrap{display:flex;flex-wrap:wrap;gap:9px}.chip{padding:9px 12px;border-radius:999px;background:var(--surface2);font-weight:750}.chip.short{background:#fff0dc;color:#8d5e21}
.toolbar{display:flex;align-items:center;gap:10px}.toolbar .field{flex:1}.toolbar .field.slim{flex:0 1 210px}.toolbar-copy{display:flex;flex-direction:column;gap:3px;flex:1}.toolbar-copy span{font-size:13px;color:var(--muted)}.field{width:100%;min-height:42px;border:1px solid var(--line);border-radius:10px;padding:10px 12px;background:#fff;color:var(--ink);outline:none}.field:focus{border-color:#88a997;box-shadow:0 0 0 3px rgba(36,92,59,.08)}textarea.field{min-height:88px;resize:vertical}.table-panel{padding:0;overflow:hidden}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;min-width:940px}th,td{padding:14px 15px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle}th{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);background:#fafcfb}tbody tr:hover{background:#fafcfb}.badge{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:850;background:var(--surface2)}.badge.open{background:#edf1ff;color:#394c9a}.badge.planned{background:#eef7ff;color:#255f8e}.badge.done{background:#eaf7ef;color:#267047}.badge.cancelled{background:#f8ecec;color:#963f3f}.badge.warn{background:#fff0d4;color:#956115}.row-actions{display:flex;gap:5px}.mini-btn{border:1px solid var(--line);background:#fff;border-radius:8px;padding:6px 8px}.mini-btn:hover{background:var(--surface2)}
.card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.customer-card{background:#fff;border:1px solid var(--line);border-radius:15px;padding:18px;box-shadow:var(--shadow)}.customer-card h3{margin:0 0 5px}.customer-card .customer-no{color:var(--brand);font-size:12px;font-weight:850}.customer-card p{margin:4px 0;color:var(--muted);font-size:14px}.customer-card .meta{display:flex;justify-content:space-between;margin-top:15px;padding-top:12px;border-top:1px solid var(--line);font-size:13px}.customer-card .actions{display:flex;gap:8px;margin-top:12px}.planning-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.planning-head strong,.planning-head span{display:block}.planning-head span{color:var(--muted);font-size:13px;margin-top:3px}.segmented{display:flex;border:1px solid var(--line);border-radius:10px;overflow:hidden}.segmented button{border:0;background:#fff;padding:9px 12px;border-right:1px solid var(--line)}.segmented button:last-child{border-right:0}.calendar{display:grid;grid-template-columns:repeat(7,1fr);gap:1px;background:var(--line);border:1px solid var(--line);border-radius:16px;overflow:hidden;margin-top:15px;box-shadow:var(--shadow)}.cal-head{background:#f8faf8;padding:10px;text-align:center;font-size:12px;font-weight:850;color:var(--muted)}.cal-day{min-height:126px;background:#fff;padding:9px;position:relative}.cal-day.muted{background:#fbfcfb;color:#aab1ac}.cal-day.today{box-shadow:inset 0 0 0 2px var(--brand)}.cal-date{font-weight:850;font-size:13px}.cal-events{margin-top:8px;display:flex;flex-direction:column;gap:5px}.cal-event{font-size:11px;padding:5px 6px;border-radius:7px;background:#edf4ef;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cal-event.pickup{background:#f8f0e4}
.bars{display:flex;flex-direction:column;gap:13px}.bar-row{display:grid;grid-template-columns:minmax(115px,1fr) 2fr auto;align-items:center;gap:10px}.bar-track{height:10px;background:var(--surface2);border-radius:999px;overflow:hidden}.bar-fill{height:100%;background:var(--brand);border-radius:999px}.muted{color:var(--muted);line-height:1.55}.settings-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:15px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0}.form-grid label,.modal-body label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:750}.plan-panel{background:linear-gradient(145deg,#183c2b,#245b40);color:#fff}.plan-panel p,.plan-panel .muted{color:rgba(255,255,255,.75)}.plan-panel h2{font-size:34px;margin-top:5px}.plan-panel h2 small{font-size:14px;font-weight:700}.eyebrow{font-size:11px;font-weight:900;letter-spacing:.09em;opacity:.75}.feature-list{padding-left:19px;line-height:1.8;color:rgba(255,255,255,.9)}.plan-panel .primary-btn{background:#fff;color:var(--brand)}.danger-zone{border-color:#ead1d1}
.modal-backdrop{position:fixed;inset:0;background:rgba(7,20,12,.48);display:grid;place-items:center;padding:20px;z-index:100}.modal-backdrop[hidden]{display:none}.modal{width:min(780px,100%);max-height:92vh;overflow:auto;background:#fff;border-radius:18px;box-shadow:0 24px 80px rgba(0,0,0,.25)}.modal-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;padding:20px;border-bottom:1px solid var(--line)}.modal-head h2{margin:0}.modal-head p{margin:4px 0 0;color:var(--muted)}.modal-body{padding:20px;display:grid;grid-template-columns:1fr 1fr;gap:13px}.modal-body .full{grid-column:1/-1}.modal-actions{padding:16px 20px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:10px}.order-items{grid-column:1/-1;border:1px solid var(--line);border-radius:12px;padding:12px;background:#fafcfb}.order-items-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px}.order-item-row{display:grid;grid-template-columns:2fr .65fr .8fr auto;gap:8px;align-items:end;margin-top:8px}.order-item-row label{font-size:11px}.service-item-row{display:grid;grid-template-columns:1.45fr .65fr .75fr .8fr auto;gap:8px;align-items:end;margin-top:8px}.service-item-row label{font-size:11px}.order-total-box{grid-column:1/-1;background:var(--surface2);border-radius:12px;padding:12px;display:flex;justify-content:space-between;gap:10px;font-weight:850}.toast{position:fixed;right:24px;bottom:24px;background:#15251c;color:#fff;padding:12px 16px;border-radius:10px;opacity:0;transform:translateY(10px);pointer-events:none;transition:.22s;z-index:200}.toast.show{opacity:1;transform:translateY(0)}.mobile-only{display:none}
@media(max-width:1150px){.metric-grid{grid-template-columns:repeat(2,1fr)}.card-grid{grid-template-columns:repeat(2,1fr)}.two-col,.settings-grid{grid-template-columns:1fr}}
@media(max-width:760px){.app-shell{display:block}.sidebar{position:fixed;left:0;top:0;width:min(84vw,292px);transform:translateX(-105%);transition:.2s}.sidebar.open{transform:translateX(0)}.mobile-only{display:inline-flex}.topbar{padding:17px 15px;min-height:auto;align-items:flex-start}.topbar h1{font-size:23px}.topbar p{font-size:12px}.top-actions .secondary-btn{display:none}.view{padding:0 15px 25px}.metric-grid,.metric-grid.three,.card-grid,.form-grid{grid-template-columns:1fr}.toolbar{align-items:stretch;flex-direction:column}.toolbar .field.slim{flex:1}.toolbar .primary-btn,.toolbar .secondary-btn{width:100%}.calendar{overflow-x:auto;grid-template-columns:repeat(7,minmax(114px,1fr))}.modal-body{grid-template-columns:1fr}.modal-body .full,.order-items,.order-total-box{grid-column:auto}.order-item-row,.service-item-row{grid-template-columns:1fr}.two-col{grid-template-columns:1fr}.top-actions{margin-left:auto}.top-actions .primary-btn{padding:9px 11px}.panel{padding:16px}.planning-head{align-items:flex-start;flex-direction:column}.toast{left:15px;right:15px;bottom:15px}}

/* V3 cloud/auth */
.auth-overlay{position:fixed;inset:0;z-index:500;background:linear-gradient(145deg,#102d20,#1e4b35);display:grid;place-items:center;padding:22px}.auth-overlay[hidden]{display:none}.auth-card{width:min(460px,100%);background:#fff;border-radius:20px;box-shadow:0 30px 100px rgba(0,0,0,.34);padding:24px}.auth-brand{display:flex;align-items:center;gap:12px;margin-bottom:21px}.auth-brand .brand-mark{background:var(--brand);color:#fff}.auth-brand strong,.auth-brand small{display:block}.auth-brand strong{letter-spacing:.08em}.auth-brand small{color:var(--muted);margin-top:2px}.auth-tabs{display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--line);border-radius:11px;overflow:hidden;margin-bottom:18px}.auth-tabs button{border:0;background:#fff;padding:11px;font-weight:850;color:var(--muted)}.auth-tabs button.active{background:var(--surface2);color:var(--brand)}.auth-form{display:flex;flex-direction:column;gap:13px}.auth-form label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:750}.auth-form .check-row{display:flex;flex-direction:row;align-items:flex-start;gap:8px;font-weight:500;color:var(--muted);line-height:1.4}.auth-form .check-row input{margin-top:3px}.auth-reset{align-self:center}.auth-message{padding:10px 12px;border-radius:10px;background:#eef3ef;margin-bottom:14px;font-size:13px}.auth-message.error{background:#f9eaea;color:#8d3030}.auth-message.success{background:#e9f6ee;color:#246740}.cloud-user{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--line);border-radius:11px;padding:4px 5px 4px 10px}.cloud-user span{font-size:12px;font-weight:750;max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cloud-user .icon-btn{border:0;background:var(--surface2)}.plan-actions{display:flex;flex-direction:column;gap:9px;margin-top:15px}.plan-panel .secondary-btn{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.24);color:#fff}.plan-panel .text-btn{color:#fff}.read-only-mode #quickOrderBtn,.read-only-mode #addOrderBtn,.read-only-mode #addCustomerBtn,.read-only-mode #inventoryBookingBtn,.read-only-mode #addProductBtn,.read-only-mode #saveSettingsBtn{opacity:.55}.sidebar-footer [data-kind="error"]{color:#ffd6d6}.sidebar-footer [data-kind="warn"]{color:#ffe4ad}
@media(max-width:760px){.cloud-user span{display:none}.cloud-user{padding:3px}.auth-card{padding:19px}}

/* V4 CSV-Wechselassistent */
.import-panel{grid-column:1/-1;border-color:#cfded5;background:linear-gradient(180deg,#fff,#fbfdfb)}
.import-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.import-title-row h2{margin:5px 0 4px}.import-eyebrow{color:var(--brand);opacity:1}.import-badge{display:grid;place-items:center;min-width:52px;height:52px;border-radius:14px;background:var(--surface2);color:var(--brand);font-weight:900;letter-spacing:.05em}
.import-file-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:17px 0 12px}.import-file-card{border:1px solid var(--line);border-radius:13px;padding:14px;background:#fff;display:grid;grid-template-columns:1fr auto;gap:7px 12px;align-items:center}.import-file-card strong{grid-column:1}.import-file-card span{grid-column:1;color:var(--muted);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.import-file-card button{grid-column:2;grid-row:1/3}
.import-actions{margin:5px 0 13px}.import-preview{border:1px solid var(--line);border-radius:13px;padding:14px;background:#fff;margin-bottom:11px}.import-summary-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.import-summary-grid>div{background:var(--surface2);border-radius:11px;padding:12px}.import-summary-grid span,.import-summary-grid small{display:block;color:var(--muted);font-size:11px}.import-summary-grid strong{display:block;font-size:24px;margin:3px 0}.import-warnings,.import-error,.import-note,.import-ok{margin-top:11px;border-radius:10px;padding:11px 12px;font-size:12px;line-height:1.5}.import-warnings{background:#fff5e3;color:#76511e;display:flex;flex-direction:column;gap:3px}.import-error{background:#f9eaea;color:#8d3030;display:flex;flex-direction:column;gap:4px}.import-note{background:#eef4f0;color:#355344}.import-ok{background:#e9f6ee;color:#246740;font-weight:750}
@media(max-width:760px){.import-title-row{align-items:center}.import-file-grid,.import-summary-grid{grid-template-columns:1fr}.import-file-card{grid-template-columns:1fr}.import-file-card button{grid-column:1;grid-row:auto;width:100%}.import-actions{display:flex;flex-direction:column}.import-actions button{width:100%}}

/* V5 – Holz/Kettensäge Hero-Hintergrund für Login & Registrierung */
.auth-overlay{
  background:
    linear-gradient(90deg,rgba(10,28,18,.74) 0%,rgba(10,28,18,.50) 34%,rgba(10,28,18,.12) 66%,rgba(10,28,18,.10) 100%),
    url('./holz-kettensaege-hero.png') center center / cover no-repeat;
  place-items:center start;
  padding:clamp(24px,5vw,72px);
}
.auth-card{
  width:min(470px,100%);
  background:rgba(255,255,255,.96);
  border:1px solid rgba(255,255,255,.55);
  box-shadow:0 30px 90px rgba(0,0,0,.38);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}
.auth-brand .brand-mark{box-shadow:0 8px 24px rgba(24,60,43,.20)}

@media(max-width:760px){
  .auth-overlay{
    place-items:center;
    padding:18px;
    background:
      linear-gradient(rgba(10,28,18,.55),rgba(10,28,18,.68)),
      url('./holz-kettensaege-hero.png') 68% center / cover no-repeat;
  }
  .auth-card{background:rgba(255,255,255,.965)}
}

/* V6 – Holz/Kettensäge auch im eingeloggten Arbeitsbereich */
.main{
  position:relative;
  min-height:100vh;
  background:
    linear-gradient(180deg,rgba(243,246,243,.84) 0%,rgba(243,246,243,.90) 42%,rgba(243,246,243,.95) 100%),
    url('./holz-kettensaege-hero.png') 72% center / cover fixed no-repeat;
}
.main::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(90deg,rgba(243,246,243,.12),rgba(243,246,243,.03) 58%,rgba(255,244,221,.08));
  z-index:0;
}
.main > *{position:relative;z-index:1}
.topbar{
  background:linear-gradient(180deg,rgba(243,246,243,.72),rgba(243,246,243,.38));
  backdrop-filter:blur(3px);
  -webkit-backdrop-filter:blur(3px);
}
.metric-card,.panel{
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  border-color:rgba(220,229,222,.88);
  box-shadow:0 14px 34px rgba(20,54,37,.10);
}
.metric-card.warning{background:rgba(255,244,221,.93)}
.cal-day,.cal-head,.import-file-card,.import-preview{background:rgba(255,255,255,.94)}

@media(max-width:760px){
  .main{
    background:
      linear-gradient(rgba(243,246,243,.89),rgba(243,246,243,.95)),
      url('./holz-kettensaege-hero.png') 70% center / cover fixed no-repeat;
  }
  .topbar{background:rgba(243,246,243,.72)}
}


/* V7 – kontrastreicherer Hintergrund + transparentere Karten + Dashboard-Hero */
.main{
  background:
    linear-gradient(180deg,rgba(243,246,243,.70) 0%,rgba(243,246,243,.79) 38%,rgba(243,246,243,.87) 100%),
    url('./holz-kettensaege-hero.png') 74% center / cover fixed no-repeat;
}
.main::before{
  background:
    linear-gradient(90deg,rgba(244,247,244,.15) 0%,rgba(244,247,244,.04) 42%,rgba(255,247,230,.02) 60%,rgba(255,232,194,.14) 100%),
    linear-gradient(0deg,rgba(0,0,0,.03),rgba(0,0,0,.03));
}
.topbar{
  background:linear-gradient(180deg,rgba(243,246,243,.60),rgba(243,246,243,.26));
  backdrop-filter:blur(2px);
  -webkit-backdrop-filter:blur(2px);
}
.metric-card,.panel,.customer-card{
  background:rgba(255,255,255,.84);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  border-color:rgba(218,227,220,.92);
  box-shadow:0 16px 36px rgba(20,54,37,.12);
}
.metric-card.warning{background:rgba(255,244,221,.86)}
.cal-day,.cal-head,.import-file-card,.import-preview{background:rgba(255,255,255,.88)}
.dashboard-hero{
  margin:2px 0 15px;
  border:1px solid rgba(255,255,255,.34);
  border-radius:20px;
  padding:22px 24px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  background:
    linear-gradient(110deg,rgba(17,46,32,.84) 0%,rgba(24,60,43,.72) 45%,rgba(24,60,43,.28) 75%,rgba(24,60,43,.12) 100%);
  color:#fff;
  box-shadow:0 22px 48px rgba(20,54,37,.18);
  overflow:hidden;
}
.dashboard-hero-copy{max-width:720px}
.dashboard-hero h2{margin:6px 0 8px;font-size:28px;color:#fff}
.dashboard-hero p{margin:0;color:rgba(255,255,255,.86);max-width:58ch}
.dashboard-eyebrow{display:inline-block;font-size:11px;font-weight:900;letter-spacing:.11em;text-transform:uppercase;color:rgba(255,240,213,.95)}
.dashboard-hero-badges{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;align-self:flex-start}
.hero-pill{display:inline-flex;align-items:center;padding:10px 13px;border-radius:999px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.22);font-size:12px;font-weight:800;color:#fff;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}

@media(max-width:760px){
  .main{
    background:
      linear-gradient(rgba(243,246,243,.84),rgba(243,246,243,.92)),
      url('./holz-kettensaege-hero.png') 72% center / cover fixed no-repeat;
  }
  .dashboard-hero{padding:18px;flex-direction:column;align-items:flex-start}
  .dashboard-hero h2{font-size:24px}
  .dashboard-hero-badges{justify-content:flex-start}
  .metric-card,.panel,.customer-card{background:rgba(255,255,255,.88)}
}


/* V8 – Premium Branding, Buttons, Navigation & Auth Experience */
:root{
  --brand:#123d2a;
  --brand2:#1d5c3e;
  --brand3:#0d2d1f;
  --gold:#c99a56;
  --gold-soft:#f1dfbf;
  --ink:#132019;
  --muted:#6f7a73;
  --shadow:0 18px 55px rgba(11,48,31,.10);
}
body{letter-spacing:-.005em}
.sidebar{
  background:linear-gradient(180deg,#103b28 0%,#0d3122 55%,#09251a 100%);
  border-right:1px solid rgba(255,255,255,.05);
  box-shadow:16px 0 45px rgba(6,33,22,.10);
}
.brand{padding:5px 8px 20px}.brand-copy strong{font-size:15px;letter-spacing:.12em}.brand-copy small{font-size:11px;letter-spacing:.02em}
.brand-mark{position:relative;overflow:hidden;border-radius:14px;background:linear-gradient(145deg,#fff,#eef2ed);box-shadow:0 12px 32px rgba(0,0,0,.16);isolation:isolate}
.brand-mark::before{content:"";position:absolute;inset:6px;border:1px solid rgba(201,154,86,.55);border-radius:10px;z-index:-1}
.brand-mark::after{content:"";position:absolute;width:36px;height:1px;background:linear-gradient(90deg,transparent,rgba(201,154,86,.85),transparent);transform:rotate(-32deg)}
.brand-mark span{font-family:Georgia,serif;font-weight:900;position:relative;z-index:2}
.trial-card{background:linear-gradient(145deg,rgba(255,255,255,.10),rgba(255,255,255,.055));border-color:rgba(241,223,191,.18);box-shadow:inset 0 1px rgba(255,255,255,.05)}
.trial-kicker{color:var(--gold-soft)}
.nav{gap:4px}.nav-link{position:relative;padding:12px 13px;border-radius:12px;transition:background .18s ease,color .18s ease,transform .18s ease}.nav-link:hover{transform:translateX(2px)}
.nav-link.active{background:linear-gradient(90deg,rgba(255,255,255,.13),rgba(255,255,255,.07));box-shadow:inset 0 0 0 1px rgba(255,255,255,.04)}
.nav-link.active::before{content:"";position:absolute;left:-7px;top:11px;bottom:11px;width:3px;border-radius:999px;background:linear-gradient(180deg,#f5ddb3,#c99a56);box-shadow:0 0 12px rgba(201,154,86,.55)}
.sidebar-footer{font-size:12px}.status-dot{background:#6fe29a}
.topbar h1{font-weight:850;letter-spacing:-.035em}.topbar p{font-size:14px}
.primary-btn,.secondary-btn,.icon-btn,.text-btn{transition:transform .16s ease,box-shadow .16s ease,background .16s ease,border-color .16s ease}
.primary-btn{background:linear-gradient(135deg,#123d2a,#1c5a3d);border-color:rgba(255,255,255,.05);box-shadow:0 10px 24px rgba(18,61,42,.18)}
.primary-btn:hover{background:linear-gradient(135deg,#174b34,#236c49);transform:translateY(-1px);box-shadow:0 14px 30px rgba(18,61,42,.23)}
.primary-btn:active,.secondary-btn:active{transform:translateY(0)}
.secondary-btn{background:rgba(255,255,255,.88);border-color:rgba(18,61,42,.12);box-shadow:0 7px 20px rgba(18,61,42,.06)}
.secondary-btn:hover{background:#fff;border-color:rgba(18,61,42,.22);transform:translateY(-1px)}
.text-btn:hover{background:rgba(18,61,42,.07)}
.field{border-color:rgba(18,61,42,.14);background:rgba(255,255,255,.94);transition:border-color .16s ease,box-shadow .16s ease,background .16s ease}
.field:focus{border-color:rgba(29,92,62,.55);background:#fff;box-shadow:0 0 0 4px rgba(29,92,62,.09)}
.metric-card,.panel,.customer-card{border-radius:18px}.metric-card{position:relative;overflow:hidden}.metric-card::after{content:"";position:absolute;left:20px;right:20px;bottom:0;height:2px;background:linear-gradient(90deg,rgba(201,154,86,.5),transparent);opacity:.45}.metric-card strong{letter-spacing:-.035em}
.dashboard-hero{position:relative;padding:25px 27px;background:linear-gradient(108deg,rgba(10,46,30,.93) 0%,rgba(18,61,42,.84) 44%,rgba(18,61,42,.34) 76%,rgba(18,61,42,.16) 100%)}
.dashboard-hero::after{content:"";position:absolute;right:-35px;bottom:-90px;width:290px;height:290px;border-radius:50%;border:1px solid rgba(241,223,191,.18);box-shadow:0 0 0 30px rgba(241,223,191,.035),0 0 0 60px rgba(241,223,191,.025);pointer-events:none}
.dashboard-hero h2{font-size:31px;letter-spacing:-.035em}.dashboard-hero p{font-size:14px;line-height:1.65}.dashboard-eyebrow{color:#f0d9ae}
.hero-pill{background:rgba(255,255,255,.09);border-color:rgba(255,255,255,.17)}.hero-pill b{color:#efd29f;margin-right:5px}

/* Login / Registrierung */
.auth-overlay{
  padding:0;
  place-items:stretch;
  background:
    linear-gradient(90deg,rgba(7,28,19,.32),rgba(7,28,19,.09)),
    url('./holz-kettensaege-hero.png') center center / cover no-repeat;
}
.auth-stage{min-height:100vh;width:100%;display:grid;grid-template-columns:minmax(0,1.35fr) minmax(420px,.65fr);gap:0}
.auth-promo{position:relative;padding:clamp(38px,5vw,76px);display:flex;flex-direction:column;justify-content:space-between;color:#fff;overflow:hidden}
.auth-promo::before{content:"";position:absolute;inset:0;background:linear-gradient(100deg,rgba(6,32,21,.82) 0%,rgba(8,38,25,.60) 48%,rgba(8,38,25,.24) 100%);z-index:0}
.auth-promo::after{content:"";position:absolute;width:520px;height:520px;border-radius:50%;left:-170px;bottom:-310px;border:1px solid rgba(239,210,159,.20);box-shadow:0 0 0 70px rgba(239,210,159,.035),0 0 0 140px rgba(239,210,159,.022);z-index:0}
.auth-promo>*{position:relative;z-index:1}
.auth-promo-top{display:flex;align-items:center;justify-content:space-between;gap:24px}.auth-promo-brand{display:flex;align-items:center;gap:13px}.auth-promo-brand .brand-mark{width:52px;height:52px;color:var(--brand);display:grid;place-items:center;font-size:24px}.auth-promo-brand strong{display:block;letter-spacing:.13em;font-size:16px}.auth-promo-brand small{display:block;color:rgba(255,255,255,.67);margin-top:3px;font-size:11px}.auth-promo-badge{padding:9px 12px;border:1px solid rgba(255,255,255,.20);border-radius:999px;background:rgba(255,255,255,.08);backdrop-filter:blur(8px);font-size:11px;font-weight:800;letter-spacing:.05em;text-transform:uppercase}
.auth-promo-copy{max-width:760px;margin:60px 0}.auth-kicker{font-size:12px;font-weight:900;letter-spacing:.13em;text-transform:uppercase;color:#efd6a8}.auth-promo h1{font-size:clamp(46px,5vw,76px);line-height:.98;letter-spacing:-.055em;margin:17px 0 22px;max-width:850px}.auth-promo h1 em{font-style:normal;color:#efd6a8}.auth-promo-copy>p{font-size:clamp(16px,1.5vw,20px);line-height:1.65;color:rgba(255,255,255,.82);max-width:680px}.auth-benefits{display:grid;grid-template-columns:1fr 1fr;gap:12px 24px;margin-top:28px;max-width:680px}.auth-benefits span{display:flex;align-items:center;gap:9px;color:rgba(255,255,255,.88);font-size:13px;font-weight:700}.auth-benefits b{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:rgba(239,214,168,.14);border:1px solid rgba(239,214,168,.30);color:#efd6a8}.auth-price-strip{display:flex;align-items:baseline;gap:8px;padding-top:22px;border-top:1px solid rgba(255,255,255,.16);max-width:560px}.auth-price-strip strong{font-size:30px;letter-spacing:-.04em}.auth-price-strip span{color:rgba(255,255,255,.72)}.auth-price-strip i{font-style:normal;margin-left:10px;color:#efd6a8;font-weight:750}
.auth-card{width:auto;max-width:none;min-height:100vh;border-radius:0;padding:clamp(34px,4vw,68px);background:rgba(250,251,249,.975);border:0;box-shadow:-28px 0 70px rgba(4,31,20,.18);backdrop-filter:blur(16px);display:flex;flex-direction:column;justify-content:center}
.auth-card-head{margin-bottom:22px}.auth-mobile-brand{display:none}.auth-card-kicker{font-size:11px;font-weight:900;letter-spacing:.13em;text-transform:uppercase;color:var(--brand2)}.auth-card-head h2{font-size:34px;letter-spacing:-.04em;margin:8px 0 7px;color:var(--ink)}.auth-card-head p{margin:0;color:var(--muted);font-size:14px;line-height:1.55}.auth-tabs{padding:4px;border:1px solid rgba(18,61,42,.10);background:#edf2ee;border-radius:13px;gap:4px;overflow:visible;margin-bottom:22px}.auth-tabs button{border-radius:9px;background:transparent;padding:11px 9px}.auth-tabs button.active{background:#fff;color:var(--brand);box-shadow:0 6px 17px rgba(18,61,42,.08)}
.auth-form{gap:15px}.auth-form label>span:first-child{font-size:12px;font-weight:800;color:#435047}.auth-field-wrap{position:relative}.auth-field-wrap>i{position:absolute;left:13px;top:50%;transform:translateY(-50%);font-style:normal;color:#94a096;font-size:12px;z-index:2}.auth-field-wrap .field{padding-left:38px;min-height:48px;border-radius:12px}.auth-submit{min-height:49px;margin-top:3px;border-radius:12px;display:flex;align-items:center;justify-content:space-between;padding:11px 16px}.auth-submit b{display:grid;place-items:center;width:27px;height:27px;border-radius:8px;background:rgba(255,255,255,.12)}.auth-reset{font-size:12px;margin-top:-3px}.auth-trial-note{padding:12px 13px;border-radius:12px;background:#edf4ef;border:1px solid rgba(18,61,42,.08);display:flex;flex-direction:column;gap:3px}.auth-trial-note strong{font-size:12px;color:var(--brand)}.auth-trial-note span{font-size:11px;line-height:1.45;color:var(--muted)}.auth-trust{display:flex;flex-wrap:wrap;gap:8px 13px;padding-top:18px;margin-top:20px;border-top:1px solid rgba(18,61,42,.09);color:#7f8a82;font-size:10px;font-weight:750}.auth-message{border-radius:12px;border:1px solid rgba(18,61,42,.08)}
.check-row{padding:11px 12px;border-radius:12px;background:#f4f6f4;border:1px solid rgba(18,61,42,.08)}

@media(max-width:1050px){.auth-stage{grid-template-columns:1fr 440px}.auth-promo{padding:42px}.auth-benefits{grid-template-columns:1fr}.auth-promo h1{font-size:54px}}
@media(max-width:820px){
  .auth-overlay{background:linear-gradient(rgba(7,30,20,.58),rgba(7,30,20,.68)),url('./holz-kettensaege-hero.png') 68% center / cover no-repeat;padding:18px;place-items:center}
  .auth-stage{min-height:auto;display:block;width:min(500px,100%)}
  .auth-promo{display:none}
  .auth-card{min-height:auto;border-radius:22px;padding:24px;background:rgba(252,253,251,.97);box-shadow:0 28px 90px rgba(0,0,0,.34)}
  .auth-mobile-brand{display:flex;align-items:center;gap:10px;margin-bottom:24px}.auth-mobile-brand .brand-mark{width:43px;height:43px;display:grid;place-items:center;color:var(--brand);font-size:20px}.auth-mobile-brand strong,.auth-mobile-brand small{display:block}.auth-mobile-brand strong{letter-spacing:.10em;font-size:14px}.auth-mobile-brand small{font-size:10px;color:var(--muted);margin-top:2px}
  .auth-card-head h2{font-size:29px}
}
@media(max-width:760px){
  .dashboard-hero-badges{display:none}.dashboard-hero{padding:20px}.dashboard-hero h2{font-size:26px}
  .primary-btn,.secondary-btn{min-height:42px}
}


/* V9 – zusätzliche Funktionen, HOLZPLANER-Design bleibt eigenständig */
.cal-day-top{display:flex;align-items:center;justify-content:space-between;gap:6px}.cal-add{width:25px;height:25px;border:0;border-radius:8px;background:rgba(24,60,43,.08);color:var(--brand);font-weight:900}.cal-add:hover{background:var(--brand);color:#fff}.detail-card{border:1px solid var(--line);border-radius:14px;padding:15px;background:rgba(255,255,255,.72)}.detail-card h3{margin:4px 0 6px;font-size:21px}.detail-card p{margin:4px 0;color:var(--muted)}.detail-label{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:900;margin-bottom:7px}.detail-contact-actions,.detail-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:13px}.detail-line{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:9px 0;border-bottom:1px solid var(--line)}.detail-line:last-child{border-bottom:0}.detail-total{font-size:18px;color:var(--brand);font-weight:900}.detail-history{display:flex;flex-direction:column;gap:7px}.detail-history-row{width:100%;border:1px solid var(--line);background:#fff;border-radius:10px;padding:10px 12px;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;color:var(--ink)}.detail-history-row span{min-width:0}.detail-history-row strong,.detail-history-row small{display:block}.detail-history-row small{color:var(--muted);margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:440px}.app-version-chip{display:inline-flex;align-items:center;padding:8px 11px;border-radius:999px;background:var(--surface2);font-size:12px;font-weight:800;color:var(--muted)}.demand-summary-panels{margin-top:15px}.detail-actions button:disabled{opacity:.55;cursor:default}
.dark-mode{--bg:#121713;--surface:#1b221d;--surface2:#252f28;--ink:#edf3ee;--muted:#aab6ad;--line:#344039;--warn:#4a381c}.dark-mode .main{background:linear-gradient(180deg,rgba(15,22,17,.80),rgba(15,22,17,.88)),url('./holz-kettensaege-hero.png') 74% center / cover fixed no-repeat}.dark-mode .topbar{background:rgba(18,23,19,.58)}.dark-mode .metric-card,.dark-mode .panel,.dark-mode .customer-card,.dark-mode .detail-card{background:rgba(27,34,29,.90);border-color:#344039}.dark-mode .field,.dark-mode .secondary-btn,.dark-mode .icon-btn,.dark-mode .mini-btn,.dark-mode .cal-day,.dark-mode .cal-head,.dark-mode th,.dark-mode .segmented button,.dark-mode .detail-history-row{background:#1d251f;color:var(--ink);border-color:#344039}.dark-mode tbody tr:hover{background:#222b24}.dark-mode .metric-card.warning{background:rgba(73,55,28,.9)}.dark-mode .modal{background:#182019;color:var(--ink)}.dark-mode .order-items{background:#202922}.dark-mode .auth-card{color:#18221c}
@media(max-width:760px){.detail-contact-actions,.detail-actions{display:grid;grid-template-columns:1fr 1fr}.detail-actions .primary-btn{grid-column:1/-1}.detail-history-row small{max-width:220px}.demand-summary-panels{margin-top:12px}}

/* V12 – Händlerprofil & öffentliche Anfragen */
.nav-count{margin-left:auto;min-width:21px;height:21px;padding:0 6px;border-radius:999px;background:#d29a4a;color:#fff;display:inline-grid;place-items:center;font-size:10px}.lead-head{display:flex;align-items:center;gap:15px}.lead-list{display:flex;flex-direction:column;gap:12px;margin-top:15px}.lead-card{background:rgba(255,255,255,.87);border:1px solid var(--line);border-radius:16px;padding:18px;box-shadow:0 14px 34px rgba(20,54,37,.08)}.lead-card.new{border-left:4px solid #c58b39}.lead-card.accepted{border-left:4px solid #43835a}.lead-card.declined{opacity:.72}.lead-card-head{display:flex;justify-content:space-between;gap:15px;align-items:flex-start}.lead-card h3{margin:0 0 4px}.lead-card-head p{margin:0;color:var(--muted);font-size:12px}.lead-card-body{display:grid;grid-template-columns:1.1fr 1fr;gap:16px;margin-top:14px}.lead-data{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.lead-data div{padding:9px 10px;border-radius:10px;background:var(--surface2)}.lead-data span,.lead-data strong{display:block}.lead-data span{font-size:10px;color:var(--muted);margin-bottom:3px}.lead-data strong{font-size:12px}.lead-message{border:1px solid var(--line);border-radius:10px;padding:11px;color:#4c5b51;font-size:12px;line-height:1.55;background:rgba(255,255,255,.58)}.lead-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:13px}.lead-status{font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.06em;padding:6px 8px;border-radius:999px;background:var(--surface2)}.lead-status.new{background:#fff2dc;color:#8a5c1f}.lead-status.accepted{background:#e9f5ed;color:#2a7046}.lead-status.declined{background:#f1f1f1;color:#6b716d}.public-profile-panel{grid-column:1/-1;background:rgba(255,255,255,.88)}.public-profile-title{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.public-profile-title .eyebrow{color:var(--brand);opacity:.75}.dealer-profile-grid .full{grid-column:1/-1}.dealer-checks{min-height:42px;display:flex;align-items:center;gap:15px;border:1px solid var(--line);border-radius:10px;background:#fff;padding:8px 11px}.dealer-checks label{display:flex;flex-direction:row;align-items:center;gap:6px;font-weight:600}.switch-toggle{display:flex;align-items:center;gap:9px;white-space:nowrap;font-size:12px}.switch-toggle input{display:none}.switch-toggle span{position:relative;width:44px;height:24px;background:#ccd5cf;border-radius:999px;transition:.2s}.switch-toggle span:after{content:"";position:absolute;width:18px;height:18px;top:3px;left:3px;border-radius:50%;background:#fff;box-shadow:0 2px 7px rgba(0,0,0,.18);transition:.2s}.switch-toggle input:checked+span{background:var(--brand2)}.switch-toggle input:checked+span:after{transform:translateX(20px)}.dealer-public-link{text-decoration:none;display:inline-flex;align-items:center}.lead-empty{padding:35px;text-align:center;color:var(--muted);border:1px dashed var(--line);border-radius:14px;background:rgba(255,255,255,.7)}
@media(max-width:760px){.lead-head,.public-profile-title{flex-direction:column}.lead-card-body{grid-template-columns:1fr}.lead-data{grid-template-columns:1fr}.dealer-profile-grid .full{grid-column:auto}.switch-toggle{white-space:normal}}


/* V13 – vollständiger Betriebs-/Data-Act-Export */
.data-export-panel{border-color:#cddfd2;background:rgba(255,255,255,.89)}
.data-export-panel>.eyebrow{color:var(--brand);opacity:1}
.data-export-highlight{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:17px 0 13px;padding:15px 16px;border-radius:13px;background:linear-gradient(135deg,#edf5ef,#f8fbf8);border:1px solid #d6e5d9}
.data-export-highlight strong,.data-export-highlight span{display:block}.data-export-highlight span{font-size:11px;color:var(--muted);margin-top:3px}
@media(max-width:760px){.data-export-highlight{align-items:stretch;flex-direction:column}.data-export-highlight .primary-btn{width:100%}}

/* V14 – leerer Erststart, Beta-Feedback und SZ Digital Lab Admin */
.empty-onboarding{display:flex;align-items:center;justify-content:space-between;gap:22px;border-color:rgba(184,128,56,.28);background:linear-gradient(115deg,rgba(255,255,255,.91),rgba(250,245,234,.88))}
.empty-onboarding[hidden]{display:none}.empty-onboarding-copy{max-width:720px}.empty-onboarding h2{margin-top:5px}.empty-onboarding-actions{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end}
.feedback-layout{display:grid;grid-template-columns:1.05fr .95fr;gap:15px}.feedback-compose{margin-top:0}.feedback-form{margin-top:18px}.feedback-message-label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:750}.feedback-message-label textarea{min-height:170px}.feedback-meta-row{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:12px}.feedback-meta-row small{color:var(--muted);line-height:1.45}.feedback-list{display:flex;flex-direction:column;gap:10px}.feedback-item{position:relative;border:1px solid var(--line);background:rgba(255,255,255,.78);border-radius:13px;padding:13px 105px 13px 14px}.feedback-item strong,.feedback-item small{display:block}.feedback-item small{color:var(--muted);margin-top:3px}.feedback-item p{color:var(--ink);margin:10px 0 0;white-space:pre-wrap}.feedback-status{display:inline-flex;border-radius:999px;padding:5px 9px;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.05em;background:#eef3ef;color:#496055}.feedback-item>.feedback-status{position:absolute;right:12px;top:12px}.feedback-status.reviewing{background:#fff3d9;color:#8a611f}.feedback-status.resolved{background:#e9f6ee;color:#267047}.feedback-status.open{background:#edf1ff;color:#394c9a}
.admin-access-note{display:flex;flex-direction:column;gap:4px}.admin-access-note span{color:var(--muted)}.admin-metrics{margin-bottom:15px}.admin-toolbar{display:flex;gap:10px;align-items:center;margin-top:0}.admin-toolbar .field{flex:1}.admin-panel-head{padding:18px 20px 0;margin-bottom:6px}.admin-table{min-width:1020px}.admin-actions{display:flex;gap:6px;flex-wrap:wrap}.danger-mini{color:var(--danger);border-color:#ead1d1}.admin-tester-label{display:inline-flex;margin-top:5px;border-radius:999px;padding:3px 7px;background:#e9f1ff;color:#335a99;font-size:9px;font-weight:950;letter-spacing:.08em}.admin-feedback-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.admin-feedback-card{border:1px solid var(--line);border-radius:14px;padding:15px;background:rgba(255,255,255,.8)}.admin-feedback-card.resolved{opacity:.72}.admin-feedback-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.admin-feedback-head strong,.admin-feedback-head small{display:block}.admin-feedback-head small{margin-top:3px;color:var(--muted)}.admin-feedback-type{display:inline-flex;margin-top:11px;border-radius:999px;padding:5px 9px;background:var(--surface2);font-size:10px;font-weight:900;text-transform:uppercase}.admin-feedback-card p{white-space:pre-wrap;color:var(--ink);margin:12px 0}.admin-feedback-tech{display:block;color:var(--muted);margin-bottom:12px}.admin-nav-link{border:1px solid rgba(255,255,255,.08)}
.dark-mode .empty-onboarding{background:linear-gradient(115deg,rgba(28,38,31,.93),rgba(56,47,31,.85))}.dark-mode .feedback-item,.dark-mode .admin-feedback-card{background:rgba(28,38,31,.88)}
@media(max-width:1050px){.feedback-layout{grid-template-columns:1fr}.admin-feedback-list{grid-template-columns:1fr}.empty-onboarding{align-items:flex-start;flex-direction:column}.empty-onboarding-actions{justify-content:flex-start}}
@media(max-width:760px){.feedback-meta-row{align-items:stretch;flex-direction:column}.feedback-meta-row .primary-btn{width:100%}.feedback-item{padding-right:14px;padding-top:50px}.feedback-item>.feedback-status{left:14px;right:auto}.admin-toolbar{align-items:stretch;flex-direction:column}.admin-toolbar .secondary-btn{width:100%}.empty-onboarding-actions{width:100%;flex-direction:column}.empty-onboarding-actions button{width:100%}}


/* V16 – Beta-Einladungen */
.beta-invite-panel{border-color:rgba(184,128,56,.25);background:linear-gradient(145deg,rgba(255,255,255,.92),rgba(250,246,238,.88))}
.beta-invite-icon{width:48px;height:48px;border-radius:15px;display:grid;place-items:center;background:rgba(184,128,56,.14);font-size:22px;color:#84581f}
.beta-invite-form{display:grid;grid-template-columns:1fr 1fr auto;gap:12px;align-items:end;margin-top:17px}
.beta-invite-form label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:750}
.beta-invite-result{margin-top:12px;padding:11px 13px;border-radius:11px;font-size:13px;font-weight:700}
.beta-invite-result.success{background:#e9f6ee;color:#246740}.beta-invite-result.error{background:#f9eaea;color:#8d3030}
.pending-invites-wrap{margin-top:18px;padding-top:15px;border-top:1px solid var(--line)}
.pending-invites-wrap>strong{font-size:13px}.pending-invites-list{margin-top:9px;display:flex;flex-direction:column;gap:8px}
.pending-invite-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid var(--line);border-radius:11px;background:rgba(255,255,255,.72)}
.pending-invite-item strong,.pending-invite-item small{display:block}.pending-invite-item small{color:var(--muted);margin-top:3px}
.invite-password-modal{width:min(520px,100%)}
@media(max-width:900px){.beta-invite-form{grid-template-columns:1fr 1fr}.beta-invite-form button{grid-column:1/-1}}
@media(max-width:760px){.beta-invite-form{grid-template-columns:1fr}.beta-invite-form button{grid-column:auto}.pending-invite-item{align-items:flex-start;flex-direction:column}}

/* V20 – Auth/Desktop-Ansicht korrigiert */
.auth-overlay{overflow:hidden}
.auth-stage{height:100dvh;min-height:0;grid-template-columns:minmax(0,1.45fr) minmax(500px,.72fr)}
.auth-promo{height:100dvh;min-height:0;padding:clamp(34px,4vw,68px)}
.auth-promo-copy{margin:clamp(28px,5vh,56px) 0}
.auth-promo h1{font-size:clamp(44px,4.7vw,72px);margin:14px 0 18px}
.auth-promo-copy>p{font-size:clamp(15px,1.25vw,19px);line-height:1.58}
.auth-benefits{margin-top:22px;gap:10px 22px}
.auth-price-strip{padding-top:18px}

.auth-card{
  height:100dvh;
  min-height:0;
  overflow-y:auto;
  padding:clamp(24px,3.1vw,48px) clamp(30px,3.4vw,58px);
  justify-content:center;
  scrollbar-width:thin;
  scrollbar-color:rgba(18,61,42,.22) transparent;
}
.auth-card::-webkit-scrollbar{width:7px}.auth-card::-webkit-scrollbar-thumb{background:rgba(18,61,42,.22);border-radius:99px}
.auth-card-head{margin-bottom:16px}
.auth-card-head h2{font-size:30px;margin:6px 0 5px}
.auth-card-head p{font-size:13px}
.auth-tabs{margin-bottom:16px}
.auth-tabs button{padding:9px}
.auth-form{gap:11px}
.auth-form[hidden]{display:none!important}
.auth-form label>span:first-child{font-size:11px}
.auth-field-wrap .field{min-height:44px;padding-top:9px;padding-bottom:9px}
.auth-submit{min-height:45px;margin-top:1px}
.check-row{padding:9px 10px;font-size:12px!important;line-height:1.35!important}
.auth-trial-note{padding:9px 11px}
.auth-trust{padding-top:13px;margin-top:14px}

@media(max-width:1180px){
  .auth-stage{grid-template-columns:minmax(0,1fr) 500px}
  .auth-promo{padding:38px}
  .auth-promo h1{font-size:52px}
}
@media(max-height:760px) and (min-width:821px){
  .auth-promo-copy{margin:20px 0}
  .auth-promo h1{font-size:48px}
  .auth-benefits{margin-top:15px}
  .auth-card{justify-content:flex-start;padding-top:24px;padding-bottom:24px}
  .auth-card-head{margin-bottom:12px}
  .auth-tabs{margin-bottom:12px}
  .auth-form{gap:9px}
}
@media(max-width:820px){
  .auth-overlay{overflow:auto}
  .auth-stage{height:auto;min-height:100dvh;display:block;width:min(500px,100%)}
  .auth-card{height:auto;min-height:auto;overflow:visible;padding:22px}
}

/* V21 – neues HOLZPLANER Markenlogo */
.brand{display:flex;align-items:center;padding:4px 5px 18px}
.app-brand-logo{display:block;width:220px;max-width:100%;height:auto;object-fit:contain;background:rgba(255,255,255,.96);border:1px solid rgba(214,183,125,.36);border-radius:14px;padding:7px 9px;box-shadow:0 10px 28px rgba(0,0,0,.13)}
.auth-promo-brand{display:flex;align-items:center;background:rgba(255,255,255,.92);border:1px solid rgba(255,255,255,.32);border-radius:14px;padding:7px 10px;box-shadow:0 10px 28px rgba(0,0,0,.16)}
.auth-brand-logo{display:block;width:225px;max-width:100%;height:auto;object-fit:contain}
.auth-mobile-brand{background:rgba(247,248,246,.96);border:1px solid rgba(18,61,42,.10);border-radius:13px;padding:7px 9px}
.auth-mobile-brand .auth-brand-logo{width:190px}
@media(max-width:760px){.app-brand-logo{width:206px}.auth-brand-logo{width:190px}}


/* V22 – Security / Turnstile */
.auth-captcha{min-height:66px;display:flex;align-items:center;justify-content:center;margin:2px 0 4px}
.auth-captcha:empty{min-height:0;margin:0}
.captcha-hint{font-size:11px;color:var(--muted);text-align:center;margin-top:-2px}
.security-status-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:16px}
.security-status-grid>div{padding:13px;border:1px solid var(--line);border-radius:12px;background:rgba(255,255,255,.72)}
.security-status-grid strong,.security-status-grid span{display:block}.security-status-grid strong{font-size:16px;color:var(--brand)}.security-status-grid span{font-size:12px;color:var(--muted);margin-top:3px}
@media(max-width:760px){.security-status-grid{grid-template-columns:1fr}.auth-captcha{overflow:hidden}}

.admin-compliance-panel{border-color:rgba(24,60,43,.22)}
.compliance-check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.compliance-check-grid>div{display:flex;gap:10px;align-items:flex-start;padding:12px;border:1px solid var(--line);border-radius:12px;background:rgba(255,255,255,.72)}
.compliance-check-grid b{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;flex:0 0 26px}.compliance-check-grid .done b{background:#e9f6ee;color:#246740}.compliance-check-grid .pending b{background:#fff4dd;color:#956115}
.compliance-check-grid strong,.compliance-check-grid small{display:block}.compliance-check-grid small{color:var(--muted);margin-top:3px;line-height:1.35}
@media(max-width:760px){.compliance-check-grid{grid-template-columns:1fr}}

/* V26 – linke Navigation bleibt auch bei kleiner Fensterhöhe vollständig erreichbar */
.sidebar{
  overflow:hidden;
}
.sidebar .nav{
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  padding-right:3px;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  scrollbar-color:rgba(241,223,191,.38) transparent;
}
.sidebar .nav::-webkit-scrollbar{width:5px}
.sidebar .nav::-webkit-scrollbar-track{background:transparent}
.sidebar .nav::-webkit-scrollbar-thumb{background:rgba(241,223,191,.32);border-radius:999px}
.sidebar-footer{flex:0 0 auto}

/* Auf typischen Notebook-/Browserhöhen das Menü zusätzlich kompakter halten. */
@media (min-width:761px) and (max-height:900px){
  .sidebar{padding:14px 14px 10px}
  .brand{padding:2px 6px 10px}
  .app-brand-logo{width:206px;padding:6px 8px}
  .trial-card{margin:0 5px 9px;padding:9px 11px}
  .trial-card strong{margin:3px 0 1px}
  .nav{gap:2px}
  .nav-link{padding:8px 11px;border-radius:10px}
  .nav-link.active::before{top:8px;bottom:8px}
  .sidebar-footer{padding:7px 7px 3px}
  .sidebar-footer small{margin-top:3px}
}

@media(max-width:760px){
  .sidebar{overflow:hidden}
  .sidebar .nav{padding-bottom:8px}
}

/* V27 – Desktop-Sidebar fest am Viewport: kein weißer Bereich mehr beim Scrollen */
@media (min-width:761px){
  .app-shell{
    display:block;
    min-height:100vh;
    padding-left:264px;
  }
  .sidebar{
    position:fixed;
    left:0;
    top:0;
    bottom:0;
    width:264px;
    height:100vh;
    max-height:100vh;
    z-index:40;
  }
  .main{
    width:100%;
    min-height:100vh;
  }
}
@supports (height:100dvh){
  @media (min-width:761px){
    .sidebar{height:100dvh;max-height:100dvh}
  }
}


/* V30 Admin Update-Center */
.admin-update-panel{border-color:rgba(24,60,43,.24);background:linear-gradient(135deg,rgba(255,255,255,.96),rgba(248,245,235,.95))}
.admin-update-panel .panel-head{align-items:flex-start}
.admin-update-state{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;padding:8px 11px;border-radius:999px;background:var(--surface2);border:1px solid var(--line);font-size:11px;font-weight:900;color:var(--muted)}
.admin-update-state.ready{background:#e8f5ee;color:#165a3e;border-color:#cbe7d7}.admin-update-state.error{background:#fff0f0;color:#9b3636;border-color:#edcece}
.admin-update-drop{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;padding:16px;border:1px dashed rgba(24,60,43,.28);border-radius:14px;background:rgba(255,255,255,.64)}
.admin-update-fileinfo{min-width:0}.admin-update-fileinfo strong,.admin-update-fileinfo small{display:block}.admin-update-fileinfo strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.admin-update-fileinfo small{margin-top:3px;color:var(--muted)}
.admin-update-progress{margin-top:14px}.admin-update-progressbar{height:9px;overflow:hidden;border-radius:999px;background:var(--surface2);border:1px solid var(--line)}.admin-update-progressbar span{display:block;width:18%;height:100%;border-radius:inherit;background:var(--green);transition:width .35s ease}.admin-update-progress small{display:block;margin-top:7px;color:var(--muted)}
.admin-update-result{margin-top:14px;padding:12px 14px;border-radius:12px;font-size:13px;font-weight:800}.admin-update-result.success{background:#e8f5ee;color:#165a3e;border:1px solid #cbe7d7}.admin-update-result.error{background:#fff0f0;color:#9b3636;border:1px solid #edcece}
.dark-mode .admin-update-panel{background:linear-gradient(135deg,rgba(28,38,31,.96),rgba(43,39,29,.94))}.dark-mode .admin-update-drop{background:rgba(20,30,24,.65)}
@media(max-width:760px){.admin-update-drop{grid-template-columns:1fr}.admin-update-drop button{width:100%}.admin-update-state{align-self:flex-start}}

/* V31 – Sidebar-Fix: Navigation bleibt auch bei niedriger Browserhöhe vollständig nutzbar */
@media (min-width:761px){
  .sidebar{
    display:flex;
    flex-direction:column;
    overflow:hidden;
    min-height:0;
  }
  .sidebar .brand,
  .sidebar .trial-card,
  .sidebar .sidebar-footer{flex:0 0 auto}
  .sidebar .nav{
    flex:1 1 auto;
    min-height:0;
    overflow-y:auto;
    overflow-x:hidden;
    scroll-padding-block:8px;
    scrollbar-gutter:stable;
  }
}

/* Normale Notebook-Höhen: mehr Platz für alle Menüpunkte */
@media (min-width:761px) and (max-height:820px){
  .sidebar{padding:10px 11px 8px}
  .brand{padding:0 4px 7px}
  .app-brand-logo{width:184px;padding:5px 7px;border-radius:11px}
  .trial-card{margin:0 4px 7px;padding:7px 9px;border-radius:10px}
  .trial-card .trial-kicker{font-size:9px}
  .trial-card strong{font-size:14px;margin:2px 0 0}
  .trial-card small{font-size:11px}
  .nav{gap:1px}
  .nav-link{padding:6px 9px;border-radius:9px;font-size:14px;line-height:1.15;min-height:31px}
  .nav-link span{width:18px}
  .nav-link.active::before{top:6px;bottom:6px;left:-5px}
  .sidebar-footer{padding:5px 6px 1px;font-size:11px}
  .sidebar-footer small{font-size:9px;margin-top:2px}
  .status-dot-row{font-size:11px;gap:6px}
  .status-dot{width:7px;height:7px;box-shadow:0 0 0 3px rgba(124,223,155,.12)}
}

/* Sehr niedrige Fenster: Branding/Status kompakt, Navigation hat Priorität */
@media (min-width:761px) and (max-height:700px){
  .sidebar{padding:7px 9px 6px}
  .brand{padding:0 3px 5px}
  .app-brand-logo{width:166px;padding:4px 6px}
  .trial-card{display:grid;grid-template-columns:auto 1fr;column-gap:7px;align-items:center;margin:0 3px 5px;padding:5px 8px}
  .trial-card .trial-kicker{display:none}
  .trial-card strong{font-size:12px;margin:0}
  .trial-card small{font-size:10px;text-align:right}
  .nav-link{padding:5px 8px;font-size:13px;min-height:28px}
  .sidebar-footer small{display:none}
  .sidebar-footer{padding:4px 5px 0}
}

/* V33 – Sidebar nutzt die vorhandene Höhe sinnvoll aus.
   Nicht schmaler: Menüpunkte verteilen sich bei genügend Höhe nach unten. */
@media (min-width:761px) and (min-height:821px){
  .sidebar .nav{
    justify-content:space-between;
    gap:4px;
    padding-top:4px;
    padding-bottom:6px;
  }
  .nav-link{
    min-height:42px;
    padding:10px 13px;
  }
}

/* Mittlere Notebook-Höhen: ebenfalls mehr Luft, aber ohne Abschneiden. */
@media (min-width:761px) and (min-height:701px) and (max-height:820px){
  .sidebar .nav{
    justify-content:space-between;
    gap:2px;
    padding-top:2px;
    padding-bottom:4px;
  }
  .nav-link{
    min-height:34px;
    padding:7px 10px;
  }
}

/* Bei sehr niedriger Höhe bleibt Scrollen wichtiger als Verteilung. */
@media (min-width:761px) and (max-height:700px){
  .sidebar .nav{justify-content:flex-start}
}


/* V34 – Holzige Premium-Buttons und eigene Funktionsicons */
.nav-link{
  overflow:visible;
  gap:11px;
}
.nav-link .nav-icon{
  width:32px;
  height:32px;
  flex:0 0 32px;
  display:grid;
  place-items:center;
  border-radius:10px;
  color:rgba(255,255,255,.86);
  background:linear-gradient(145deg,rgba(255,255,255,.10),rgba(255,255,255,.035));
  border:1px solid rgba(255,255,255,.10);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 5px 14px rgba(0,0,0,.10);
  transition:transform .18s ease,background .18s ease,color .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.nav-link .nav-icon svg{
  width:19px;
  height:19px;
  display:block;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.nav-link .nav-label{min-width:0;flex:0 1 auto}
.nav-link:hover .nav-icon{
  transform:translateY(-1px) rotate(-2deg);
  color:#ffe4b0;
  background:linear-gradient(145deg,rgba(219,170,91,.22),rgba(255,255,255,.06));
  border-color:rgba(239,196,128,.28);
  box-shadow:0 8px 18px rgba(0,0,0,.16),inset 0 1px 0 rgba(255,255,255,.10);
}
.nav-link.active .nav-icon{
  color:#173c2a;
  background:linear-gradient(145deg,#f7dfb5,#c9954d);
  border-color:rgba(255,234,194,.82);
  box-shadow:0 7px 18px rgba(201,149,77,.28),inset 0 1px 0 rgba(255,255,255,.55);
}
.nav-link.active .nav-icon-chainsaw{
  transform:rotate(-3deg);
}
.nav-link .chainsaw-svg{stroke-width:1.65}

/* Aktionsbuttons bekommen kompakte Holzplaner-Icons statt nackter Plus-Zeichen. */
.icon-action{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  min-height:44px;
}
.icon-action .button-icon{
  width:27px;
  height:27px;
  display:grid;
  place-items:center;
  border-radius:8px;
  flex:0 0 27px;
  background:rgba(255,255,255,.13);
  border:1px solid rgba(255,255,255,.13);
}
.icon-action .button-icon svg{
  width:17px;
  height:17px;
  display:block;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.secondary-btn.icon-action .button-icon{
  color:var(--brand);
  background:linear-gradient(145deg,#f4ead7,#fbf7ee);
  border-color:rgba(190,139,69,.22);
}
.primary-btn.icon-action:hover .button-icon{transform:rotate(-3deg) scale(1.04)}
.icon-action .button-icon{transition:transform .16s ease}
.order-action .button-icon{background:linear-gradient(145deg,rgba(249,218,163,.26),rgba(255,255,255,.10));color:#ffe2aa}
.order-action:hover .button-icon{box-shadow:0 4px 12px rgba(0,0,0,.12)}

@media (min-width:761px) and (max-height:820px){
  .nav-link .nav-icon{width:28px;height:28px;flex-basis:28px;border-radius:9px}
  .nav-link .nav-icon svg{width:17px;height:17px}
  .nav-link{gap:8px}
}
@media (min-width:761px) and (max-height:700px){
  .nav-link .nav-icon{width:25px;height:25px;flex-basis:25px;border-radius:8px}
  .nav-link .nav-icon svg{width:15px;height:15px}
}
@media(max-width:760px){
  .nav-link .nav-icon{width:31px;height:31px;flex-basis:31px}
  .icon-action{width:100%}
}
.nav-link .nav-label{width:auto!important;text-align:left!important}

/* V35 – größere, vollwertige Sidebar-Buttons auf Desktop */
@media (min-width:761px){
  .app-shell{padding-left:286px}
  .sidebar{width:286px;padding-left:15px;padding-right:15px}
  .sidebar .nav{gap:6px;padding-inline:0}
  .nav-link{
    width:100%;
    min-height:52px;
    padding:7px 13px;
    border:1px solid rgba(255,255,255,.075);
    border-radius:14px;
    background:linear-gradient(90deg,rgba(255,255,255,.055),rgba(255,255,255,.025));
    font-size:17px;
    line-height:1.15;
    font-weight:800;
    gap:13px;
  }
  .nav-link:hover{
    background:linear-gradient(90deg,rgba(255,255,255,.12),rgba(255,255,255,.055));
    border-color:rgba(232,203,151,.18);
  }
  .nav-link.active{
    background:linear-gradient(90deg,rgba(255,255,255,.16),rgba(255,255,255,.075));
    border-color:rgba(232,203,151,.18);
  }
  .nav-link .nav-icon{
    width:38px;
    height:38px;
    flex:0 0 38px;
    border-radius:12px;
  }
  .nav-link .nav-icon svg{width:22px;height:22px}
  .nav-link.active::before{left:-7px;top:9px;bottom:9px;width:4px}
  .nav-count{min-width:28px;height:28px;padding:0 8px;font-size:12px}
}

/* Bei großen Bildschirmhöhen dürfen die Buttons noch etwas großzügiger werden. */
@media (min-width:761px) and (min-height:920px){
  .sidebar .nav{gap:7px}
  .nav-link{min-height:56px;padding:8px 14px;font-size:18px}
  .nav-link .nav-icon{width:40px;height:40px;flex-basis:40px}
  .nav-link .nav-icon svg{width:23px;height:23px}
}

/* Notebook-Höhen: weiterhin größer als V34, aber sicher vollständig erreichbar. */
@media (min-width:761px) and (min-height:701px) and (max-height:919px){
  .sidebar .nav{justify-content:space-between;gap:4px;padding-top:3px;padding-bottom:5px}
  .nav-link{min-height:48px;padding:6px 12px;font-size:16.5px;border-radius:13px}
  .nav-link .nav-icon{width:35px;height:35px;flex-basis:35px;border-radius:11px}
  .nav-link .nav-icon svg{width:20px;height:20px}
}

/* Sehr niedrige Fenster bleiben kompakt und scrollbar. */
@media (min-width:761px) and (max-height:700px){
  .sidebar .nav{justify-content:flex-start;gap:3px}
  .nav-link{min-height:37px;padding:5px 9px;font-size:14px;border-radius:10px}
  .nav-link .nav-icon{width:28px;height:28px;flex-basis:28px;border-radius:9px}
  .nav-link .nav-icon svg{width:16px;height:16px}
}


/* V36 – Sidebar nutzt die verfügbare Höhe wirklich aus.
   Auf Desktop werden die Menüpunkte gleichmäßig über den freien Platz verteilt. */
@media (min-width:761px) and (min-height:701px){
  .sidebar{display:flex;flex-direction:column}
  .sidebar .nav{
    flex:1 1 auto;
    min-height:0;
    display:grid;
    grid-template-rows:repeat(11,minmax(48px,1fr));
    gap:7px;
    justify-content:stretch;
    align-content:stretch;
    padding-top:4px;
    padding-bottom:6px;
  }
  .nav-link{
    min-height:0!important;
    height:100%;
    padding:8px 14px!important;
    font-size:17.5px!important;
    border-radius:14px!important;
    align-self:stretch;
  }
  .nav-link .nav-icon{
    width:40px!important;
    height:40px!important;
    flex-basis:40px!important;
    border-radius:12px!important;
  }
  .nav-link .nav-icon svg{width:23px!important;height:23px!important}
  .sidebar-footer{margin-top:4px}
}

/* Wenn das Fenster außergewöhnlich hoch ist, darf das Menü noch großzügiger wirken. */
@media (min-width:761px) and (min-height:980px){
  .sidebar .nav{grid-template-rows:repeat(11,minmax(54px,1fr));gap:8px}
  .nav-link{font-size:18px!important;padding:9px 15px!important}
  .nav-link .nav-icon{width:42px!important;height:42px!important;flex-basis:42px!important}
  .nav-link .nav-icon svg{width:24px!important;height:24px!important}
}


/* V38 – Rechnungen & vorbereitende Buchhaltung */
.accounting-hero{display:flex;justify-content:space-between;gap:28px;align-items:center;padding:26px 28px;border-radius:22px;background:linear-gradient(135deg,#153d2b,#214f38);color:#fff;margin-bottom:18px;box-shadow:0 16px 40px rgba(19,58,41,.14)}
.accounting-hero h2{margin:5px 0 8px;font-size:28px}.accounting-hero p{margin:0;max-width:800px;color:rgba(255,255,255,.78);line-height:1.6}.accounting-hero .eyebrow{color:#e8c98f}
.accounting-flow{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end;min-width:340px}.accounting-flow span{padding:9px 11px;border-radius:11px;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.12);font-size:12px;font-weight:800}.accounting-flow b{color:#e8c98f}
.invoice-toolbar-panel{margin-top:16px}.invoice-list{display:grid;gap:9px}.invoice-row{width:100%;display:grid;grid-template-columns:46px minmax(0,1fr) auto;gap:13px;align-items:center;text-align:left;border:1px solid var(--line);background:var(--panel);border-radius:15px;padding:13px 15px;cursor:pointer;color:inherit;transition:.16s ease}.invoice-row:hover{transform:translateY(-1px);border-color:rgba(174,126,61,.38);box-shadow:0 9px 24px rgba(34,48,40,.08)}
.invoice-doc-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(145deg,#f3e7d2,#fff8ec);border:1px solid #ead9bb;color:#76552b;font-size:19px;font-weight:900}.invoice-row-main{display:grid;gap:4px;min-width:0}.invoice-row-main strong{font-size:15px}.invoice-row-main small{color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.invoice-row-value{display:grid;justify-items:end;gap:5px}.invoice-row-value>strong{font-size:16px}
.invoice-setup-warning{display:flex;align-items:center;gap:11px;flex-wrap:wrap;padding:12px 14px;border-radius:13px;background:#fff6df;border:1px solid #efd394;margin:0 0 13px;color:#715321}.invoice-setup-warning span{flex:1 1 340px}.invoice-setup-warning strong{font-size:13px}
.invoice-empty{display:grid!important;justify-items:start;gap:8px!important;padding:22px!important}.invoice-empty span{color:var(--muted)}
.accounting-bottom-grid{margin-top:16px}.accounting-rule-list{display:grid;gap:11px;margin-top:18px}.accounting-rule-list>div{display:grid;grid-template-columns:34px 1fr;gap:11px;align-items:start}.accounting-rule-list>div>b{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;background:#173f2d;color:#f3d8a4}.accounting-rule-list span{display:grid;gap:3px}.accounting-rule-list small{color:var(--muted);line-height:1.45}
.legal-chip-row{display:flex;flex-wrap:wrap;gap:8px;margin:17px 0}.legal-chip-row span{padding:7px 10px;border-radius:999px;background:#f2eadc;border:1px solid #e4d4b9;color:#6c522e;font-weight:800;font-size:12px}.legal-smallprint{font-size:12px;line-height:1.55;color:var(--muted)}
.invoice-lock-card{border-left:4px solid #d4a55e}.invoice-lock-card.locked{border-left-color:#1e6b48;background:rgba(32,111,75,.05)}.invoice-from-order-btn{background:linear-gradient(135deg,#9d6c28,#c18e47)!important}.invoice-small-business{padding:10px 12px;background:rgba(23,79,55,.05);border:1px solid rgba(23,79,55,.12);border-radius:12px}
.dark-mode .invoice-doc-icon{background:rgba(223,185,119,.12);border-color:rgba(223,185,119,.2);color:#f0d7a7}.dark-mode .invoice-setup-warning{background:rgba(143,102,38,.22);border-color:rgba(222,180,110,.28);color:#f2d5a1}.dark-mode .legal-chip-row span{background:rgba(220,179,105,.12);border-color:rgba(220,179,105,.18);color:#edd2a0}.dark-mode .invoice-lock-card.locked{background:rgba(49,142,95,.08)}
@media(max-width:900px){.accounting-hero{align-items:flex-start;flex-direction:column}.accounting-flow{min-width:0;justify-content:flex-start}.invoice-row{grid-template-columns:42px 1fr}.invoice-row-value{grid-column:2;justify-items:start;grid-template-columns:auto auto;align-items:center}.invoice-row-main small{white-space:normal}.invoice-metrics{grid-template-columns:repeat(2,1fr)!important}}
@media(max-width:560px){.invoice-metrics{grid-template-columns:1fr!important}.accounting-hero{padding:20px}.accounting-flow{gap:5px}.accounting-flow span{font-size:11px;padding:7px 8px}}

/* HOLZPLANER V41 – sichtbarer Abmelde-Button */
.sidebar-logout-btn{width:100%;display:flex;align-items:center;justify-content:center;gap:10px;margin:0 0 10px;padding:11px 14px;border:1px solid rgba(255,255,255,.18);border-radius:12px;background:rgba(255,255,255,.08);color:#fff;font-weight:850;transition:background .18s ease,border-color .18s ease,transform .18s ease}
.sidebar-logout-btn[hidden]{display:none!important}
.sidebar-logout-btn:hover{background:rgba(255,255,255,.14);border-color:rgba(229,200,147,.55);transform:translateY(-1px)}
.sidebar-logout-icon{width:28px;height:28px;border-radius:9px;display:grid;place-items:center;background:rgba(229,200,147,.16);color:#f1d49d}
.sidebar-logout-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
@media(max-height:760px) and (min-width:761px){.sidebar-logout-btn{padding:8px 10px;margin-bottom:6px}.sidebar-logout-icon{width:24px;height:24px}.sidebar-logout-icon svg{width:16px;height:16px}}

/* V42 Rechnungsbranding */
.invoice-branding-box{grid-column:1/-1;margin:4px 0 16px;padding:16px;border:1px solid rgba(23,79,55,.14);border-radius:14px;background:linear-gradient(135deg,rgba(23,79,55,.045),rgba(201,154,86,.055));display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:16px;align-items:center}
.invoice-branding-copy h3{margin:4px 0 6px;font-size:17px}.invoice-branding-copy p{font-size:13px;line-height:1.55}.invoice-logo-preview{height:92px;border:1px dashed rgba(23,79,55,.24);border-radius:12px;background:#fff;display:grid;place-items:center;padding:10px;overflow:hidden}.invoice-logo-preview img{max-width:100%;max-height:72px;object-fit:contain}.invoice-logo-preview span{font-size:12px;color:var(--muted);text-align:center}.invoice-logo-actions{grid-column:1/-1;margin-top:-4px}.invoice-logo-actions .text-btn{padding:8px 10px}.dark-mode .invoice-branding-box{background:linear-gradient(135deg,rgba(65,124,91,.09),rgba(201,154,86,.08));border-color:#344039}.dark-mode .invoice-logo-preview{background:#1d251f;border-color:#465249}
@media(max-width:700px){.invoice-branding-box{grid-template-columns:1fr}.invoice-logo-preview{width:100%}}

/* V44 – Umsatzentwicklung */
.analytics-trend-panel{margin-top:15px;overflow:hidden}
.analytics-trend-head{align-items:flex-end}
.analytics-filters{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap}
.analytics-filters label{display:flex;flex-direction:column;gap:5px;font-size:11px;font-weight:900;letter-spacing:.03em;color:var(--muted)}
.analytics-filters .field{min-width:175px;background:var(--surface)}
.analytics-trend-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:4px 0 14px}
.analytics-trend-kpis>div{padding:12px 14px;border:1px solid var(--line);background:var(--surface2);border-radius:12px}
.analytics-trend-kpis span{display:block;font-size:11px;color:var(--muted);font-weight:800;margin-bottom:4px}
.analytics-trend-kpis strong{display:block;font-size:17px;color:var(--ink)}
.revenue-trend-chart{position:relative;min-height:310px;border:1px solid var(--line);border-radius:14px;background:linear-gradient(180deg,rgba(255,255,255,.82),rgba(248,250,248,.72));padding:8px 8px 2px;overflow:hidden}
.revenue-trend-chart svg{display:block;width:100%;height:300px;overflow:visible}
.trend-grid{stroke:rgba(21,78,54,.11);stroke-width:1}
.trend-axis-label{fill:var(--muted);font-size:11px;font-weight:700}
.trend-line{fill:none;stroke:var(--brand);stroke-width:4;stroke-linecap:round;stroke-linejoin:round}
.trend-area{fill:url(#trendAreaFill)}
.trend-point{fill:var(--surface);stroke:var(--brand);stroke-width:3}
.trend-point:hover{r:6}
.trend-empty{height:290px;display:flex;align-items:center;justify-content:center;text-align:center;color:var(--muted);font-weight:700}
.trend-tooltip{font-size:11px;fill:var(--ink);font-weight:800}

.trend-zero-note{position:absolute;left:50%;top:48%;transform:translate(-50%,-50%);display:grid;gap:5px;text-align:center;padding:14px 18px;border-radius:12px;background:rgba(255,255,255,.90);border:1px solid var(--line);box-shadow:0 8px 28px rgba(19,53,39,.08);max-width:430px}
.trend-zero-note strong{font-size:15px;color:var(--ink)}
.trend-zero-note span{font-size:12px;line-height:1.45;color:var(--muted)}
.dark-mode .trend-zero-note{background:rgba(29,37,31,.94)}
@media(max-width:760px){.analytics-trend-head{align-items:stretch;flex-direction:column}.analytics-filters{display:grid;grid-template-columns:1fr 1fr}.analytics-filters .field{min-width:0;width:100%}.analytics-trend-kpis{grid-template-columns:1fr}.revenue-trend-chart{min-height:270px;overflow-x:auto}.revenue-trend-chart svg{min-width:680px;height:260px}}

/* V46: von Anmeldung/Registrierung jederzeit zurück zur öffentlichen Hauptseite */
.auth-home-logo{color:inherit;text-decoration:none}
.auth-home-logo:hover{filter:brightness(1.03);transform:translateY(-1px)}
.auth-promo-brand.auth-home-logo,.auth-mobile-brand.auth-home-logo{transition:transform .16s ease,filter .16s ease}
.auth-card{position:relative}
/* V51: Zur-Hauptseite-Link im normalen Layout statt über dem WILLKOMMEN-Text */
.auth-back-home{position:static;align-self:flex-start;flex:0 0 auto;display:inline-flex;align-items:center;gap:7px;width:max-content;max-width:100%;margin:0 0 18px;color:var(--brand);text-decoration:none;font-size:13px;font-weight:850;line-height:1.2;letter-spacing:.01em;padding:8px 11px;border:1px solid rgba(18,61,42,.12);background:rgba(255,255,255,.72);border-radius:10px}
.auth-back-home:hover{background:rgba(18,61,42,.07)}
.auth-back-home:focus-visible{outline:3px solid rgba(201,157,79,.35);outline-offset:2px}
@media(max-height:760px) and (min-width:821px){.auth-back-home{margin-bottom:10px;padding-top:6px;padding-bottom:6px}}
@media(max-width:760px){.auth-back-home{align-self:flex-start;margin:0 0 14px;padding:7px 9px}.auth-mobile-brand.auth-home-logo{display:flex}}
