
:root{
  --brand-dark:#101820;
  --brand-dark-2:#1a2430;
  --brand-gold:#ffb923;
  --brand-gold-soft:#ffe3a1;
  --brand-bg:#f7f4ee;
  --card:#ffffff;
  --line:#e8dec9;
  --text:#18202a;
  --muted:#616872;
  --success:#2f8f5b;
  --shadow:0 10px 30px rgba(16,24,32,.08);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Arial,Helvetica,sans-serif;color:var(--text);background:linear-gradient(180deg,#f6f2ea 0%,#f3f0ea 100%)}
a{color:var(--brand-dark);text-decoration:none}
a:hover{text-decoration:underline}
header{min-height:74px;background:linear-gradient(135deg,var(--brand-dark) 0%,var(--brand-dark-2) 100%);color:#fff;display:flex;align-items:center;justify-content:space-between;padding:14px 28px;gap:16px;box-shadow:0 4px 20px rgba(0,0,0,.18)}
header nav{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
header a{color:#fff;text-decoration:none}
.brand-link{margin:0;display:flex;align-items:center;gap:12px;font-weight:700;font-size:18px;min-width:0;max-width:70%}
.brand-logo{display:block;height:38px!important;width:auto!important;max-width:210px!important;object-fit:contain;border-radius:0;flex:0 0 auto}
.brand-stack{display:flex;flex-direction:column;line-height:1.1}
.brand-sub{font-size:12px;color:rgba(255,255,255,.74);font-weight:400;letter-spacing:.02em}
.container{max-width:1180px;margin:30px auto;padding:0 20px}
.wide{max-width:1360px}
.btn,button{background:linear-gradient(135deg,var(--brand-gold) 0%,#f4aa00 100%);color:var(--brand-dark);border:0;border-radius:10px;padding:12px 18px;font-weight:700;cursor:pointer;box-shadow:0 4px 12px rgba(255,185,35,.22);transition:.18s ease}
.btn{display:inline-block}
.btn:hover,button:hover{transform:translateY(-1px);text-decoration:none;box-shadow:0 7px 16px rgba(255,185,35,.28)}
.secondary{background:#737373 !important;color:#fff !important;box-shadow:none}
.secondary:hover{box-shadow:0 5px 12px rgba(0,0,0,.12)}
.card{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:28px;margin-bottom:22px;box-shadow:var(--shadow)}
.card h2{margin:0 0 18px;font-size:24px;color:var(--brand-dark)}
.card h3{color:var(--brand-dark)}
.grid{display:grid;gap:14px}
.grid-3{grid-template-columns:repeat(3,1fr)}
label{display:block;font-size:13px;font-weight:700;margin-bottom:12px;color:var(--brand-dark)}
input,textarea,select{width:100%;margin-top:6px;padding:12px 13px;border:1px solid #d8d2c5;border-radius:10px;font:inherit;background:#fff;color:var(--text);transition:border-color .15s ease, box-shadow .15s ease}
input:focus,textarea:focus,select:focus{outline:none;border-color:var(--brand-gold);box-shadow:0 0 0 4px rgba(255,185,35,.18)}
textarea{resize:vertical}
.inline-choice{display:flex;gap:18px;align-items:center;margin-top:10px;flex-wrap:wrap}
.inline-choice label{display:flex;gap:6px;align-items:center;margin:0;font-weight:600;color:var(--text)}
.inline-choice input{width:auto;margin:0}
.stage-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}
.stage{min-height:92px;background:#f4f1e9;color:var(--brand-dark);border:2px solid transparent;border-radius:14px;padding:10px 12px;font-size:19px;font-weight:700}
.stage.active{border-color:#c99200;background:linear-gradient(180deg,#ffd977 0%, #ffefbf 100%);box-shadow:0 8px 18px rgba(255,185,35,.18)}
.stage small{display:block;font-weight:500;font-size:13px;margin-top:4px}
.option-group{margin-top:18px;border-top:1px solid var(--line);padding-top:16px}
.option-row{display:flex;gap:12px;align-items:flex-start;padding:11px 0;border-bottom:1px solid #eee7d6}
.option-row input[type=checkbox],.option-row input[type=radio]{width:auto;margin-top:3px}
.option-row .grow{flex:1}
.qty{width:90px}
.editor-card{border:1px solid var(--line);border-radius:14px;padding:18px;margin-bottom:14px;background:#fffdf9;box-shadow:0 2px 10px rgba(16,24,32,.03)}
.editor-card h3{margin-top:0}
.scope-edit{min-height:120px}
.price-row{display:grid;grid-template-columns:1fr 160px 160px;gap:10px}
.muted{color:var(--muted)}
.actions{display:flex;justify-content:flex-end;gap:12px;margin:28px 0 60px;position:sticky;bottom:12px}
.steps{display:flex;gap:8px;margin-bottom:18px;flex-wrap:wrap}
.steps span{background:#ddd7cb;padding:8px 12px;border-radius:20px;font-size:12px;color:#444;font-weight:700}
.steps .active{background:var(--brand-gold);color:var(--brand-dark)}
table{width:100%;border-collapse:collapse;background:#fff;border-radius:14px;overflow:hidden;box-shadow:var(--shadow)}
th,td{text-align:left;padding:14px 12px;border-bottom:1px solid #ece6da}
th{background:#fff9ed;color:var(--brand-dark)}
.table-wrap{overflow:auto}
.login-body{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at top,#263341 0%, var(--brand-dark) 60%)}
.login-card{width:min(440px,92vw);background:white;padding:36px;border-radius:22px;box-shadow:0 20px 50px rgba(0,0,0,.24)}
.login-card .brand{display:flex;justify-content:center;margin-bottom:12px}
.login-card .brand img{display:block;width:260px!important;max-width:100%!important;height:auto!important;object-fit:contain;border-radius:0;margin:0 auto}
.login-card h1{margin:6px 0 8px;color:var(--brand-dark)}
.login-card p,.login-card small{color:var(--muted)}
.login-card button{width:100%;margin:12px 0 4px}
.alert{background:#fff2f2;color:#9f2323;padding:10px 12px;border-radius:10px;margin-bottom:14px;border:1px solid #f1c0c0}
.kpi-bar{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:22px}
.kpi{background:white;border:1px solid var(--line);padding:18px;border-radius:16px;box-shadow:var(--shadow)}
.kpi b{display:block;font-size:26px;color:var(--brand-dark)}
.badge{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;background:#fff2cf;color:#7e5a00;font-weight:700;font-size:12px}
.status-cell{font-weight:700}
.status-Entwurf,.status-Offen{color:#9b6b00}
.status-Versendet,.status-Beauftragt{color:#085aa5}
.status-Angenommen,.status-Bezahlt{color:#18794e}
.status-Abgelehnt,.status-Storniert{color:#b42318}
@media(max-width:1000px){.grid-3,.stage-grid,.kpi-bar{grid-template-columns:1fr 1fr}.price-row{grid-template-columns:1fr}}
@media(max-width:700px){.grid-3,.stage-grid,.kpi-bar{grid-template-columns:1fr}header{padding:14px}.brand-link{font-size:16px}.brand-logo{height:36px}.container{padding:0 10px}.actions{position:static;flex-direction:column}.actions button{width:100%}}

/* Dashboard V1.5 */
.dashboard{max-width:1280px}
.dashboard-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:18px}
.dashboard-heading h1{margin:0 0 4px;font-size:34px}
.year-filter label{margin:0;min-width:120px}
.year-filter select{margin-top:6px;background:white}
.kpi-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:14px}
.primary-kpis .kpi{min-height:112px;display:flex;flex-direction:column;justify-content:center}
.primary-kpis .kpi span{color:var(--muted);font-size:14px}
.primary-kpis .kpi b{margin-top:6px;font-size:28px}
.status-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:0 0 28px}
.status-kpi{background:white;border-radius:15px;padding:17px 20px;border:1px solid var(--line);box-shadow:var(--shadow);display:flex;align-items:center;justify-content:space-between}
.status-kpi span{font-weight:700}
.status-kpi b{font-size:24px}
.status-entwurf{border-left:5px solid #c28a00}
.status-versendet{border-left:5px solid #2c6ebd}
.status-angenommen{border-left:5px solid #2f8f5b}
.status-verloren{border-left:5px solid #b63b32}
.offers-section{margin-top:4px}
.list-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:0 0 14px}
.list-toolbar h2{font-size:28px;margin:0 0 3px}
.search-form{display:flex;align-items:center;gap:8px;min-width:min(560px,100%)}
.search-form input[type=search]{margin:0;min-width:340px}
.search-form button{padding:12px 16px}
.clear-search{font-size:13px;font-weight:700;white-space:nowrap}
.row-actions{white-space:nowrap}
.row-actions a{margin-right:12px;font-weight:700}
.status-select{min-width:132px;margin:0;padding:8px 10px;font-weight:700}
.status-select.status-entwurf{background:#fff7dc;border-color:#e4c978}
.status-select.status-versendet{background:#edf5ff;border-color:#9dc4ee}
.status-select.status-angenommen{background:#eaf8f0;border-color:#99d2b2}
.status-select.status-verloren{background:#fff0ef;border-color:#e2a7a3}
@media(max-width:1000px){
  .kpi-grid,.status-grid{grid-template-columns:1fr 1fr}
  .list-toolbar,.dashboard-heading{align-items:stretch;flex-direction:column}
  .search-form{min-width:0;width:100%}
  .search-form input[type=search]{min-width:0;flex:1}
}
@media(max-width:650px){
  .kpi-grid,.status-grid{grid-template-columns:1fr}
  .search-form{flex-wrap:wrap}
  .search-form input[type=search]{width:100%;flex-basis:100%}
}

/* Feinabstimmung Dashboard V1.5.2 */
.dashboard-heading{
  align-items:flex-start;
}
.year-filter{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  margin-top:46px;
  margin-right:18px;
}
.year-filter label{
  margin:0;
  min-width:auto;
  font-size:14px;
  font-weight:700;
  line-height:1;
}
.year-filter select{
  margin:0;
  width:104px;
  min-width:104px;
  padding:8px 30px 8px 10px;
  height:36px;
}
@media(max-width:1000px){
  .year-filter{
    margin-top:0;
    margin-right:0;
    justify-content:flex-start;
  }
}

/* Preis & Konditionen V1.5.3 */
#standard_price,
#offer_price,
#payment_type{
  min-height:52px;
  height:52px;
}
#payment_type{
  appearance:auto;
  padding-top:0;
  padding-bottom:0;
}

/* Stufe 3 – fixer Preis, keine Menge */
.price-row.stage3-fixed{
  grid-template-columns:1fr 220px;
}
.fixed-price,
#standard_price{
  background:#f2f0eb;
  color:#50555b;
  font-weight:700;
  cursor:not-allowed;
}
@media(max-width:900px){
  .price-row.stage3-fixed{grid-template-columns:1fr}
}

/* Zahlungsübersicht V1.5.6 */
.payment-summary{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
  margin:0 0 18px;
}
.payment-summary[hidden]{display:none}
.payment-summary>div{
  background:#fff9ed;
  border:1px solid #ead7a4;
  border-radius:12px;
  padding:12px 14px;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.payment-summary span{font-size:12px;color:var(--muted);font-weight:700}
.payment-summary strong{font-size:18px;color:var(--brand-dark)}
@media(max-width:900px){.payment-summary{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.payment-summary{grid-template-columns:1fr}}


/* Stufe 4 / Modul 1 – strukturierte Produktauswahl V1.6.3 */
.module-card{
  border:1px solid var(--line);
  border-radius:16px;
  padding:0;
  overflow:hidden;
  background:#fff;
}
.module-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  padding:22px 24px 18px;
  background:linear-gradient(180deg,#fffaf0 0%,#fff 100%);
  border-bottom:1px solid var(--line);
}
.module-head h3{
  margin:4px 0 6px;
  font-size:24px;
}
.module-kicker{
  display:inline-block;
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#a06d00;
}
.module-base-price{
  white-space:nowrap;
  font-size:18px;
  font-weight:800;
  color:var(--brand-dark);
  background:#fff3d5;
  border:1px solid #efd08b;
  padding:8px 12px;
  border-radius:12px;
}
.module-base{
  padding:0 24px;
}
.module-base .option-row{
  border-bottom:0;
  padding:18px 0;
}
.module-addons{
  margin:0 24px 22px;
  border:1px solid #e6dfd1;
  border-radius:14px;
  overflow:hidden;
  background:#fbfaf7;
}
.module-addons.locked{
  opacity:.58;
}
.addon-heading{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:center;
  padding:13px 16px;
  background:#f3efe6;
  border-bottom:1px solid #e6dfd1;
}
.addon-heading span{
  font-size:12px;
  color:var(--muted);
}
.module-addons .option-row{
  padding:14px 16px;
}
.option-row.disabled{
  cursor:not-allowed;
}
.option-row.disabled b,
.option-row.disabled small{
  color:#8b8b8b;
}
.future-module{
  margin-top:24px;
}
@media(max-width:800px){
  .module-head,.addon-heading{flex-direction:column;align-items:flex-start}
  .module-base-price{white-space:normal}
}


/* Kurze Leistungsbeschreibungen in der Produktauswahl V1.6.4 */
.option-description{
  margin-top:5px;
  max-width:980px;
  font-size:13px;
  line-height:1.45;
  font-weight:400;
  color:var(--muted);
}
.option-price{
  display:block;
  margin-top:5px;
  font-size:13px;
  color:var(--text);
}
.module-base .option-description{
  max-width:900px;
}
.module-addons .option-description{
  max-width:920px;
}


/* Modul 2 – Kommunikationslinie V1.6.5 */
.module-card + .module-card{
  margin-top:26px;
}
.module-addons .qty{
  align-self:center;
  min-width:92px;
  height:48px;
}
.module-addons.locked .qty{
  cursor:not-allowed;
}


/* Modul 4 – gruppierte Leadquellen V1.6.7 */
.module-price-variable{
  text-transform:none;
}
.m4-sections{
  padding:22px 24px 26px;
  display:grid;
  grid-template-columns:1fr;
  gap:18px;
}
.m4-section{
  border:1px solid #e6dfd1;
  border-radius:14px;
  background:#fff;
  overflow:hidden;
}
.m4-section-head{
  padding:14px 16px 12px;
  background:#f7f3ea;
  border-bottom:1px solid #e6dfd1;
}
.m4-section-head h4{
  margin:0;
  font-size:18px;
}
.m4-section-head p{
  margin:5px 0 0;
  font-size:13px;
  line-height:1.45;
  color:var(--muted);
}
.m4-section-body .option-row{
  padding:14px 16px;
}
.m4-section-body .option-row:last-child{
  border-bottom:0;
}
.m4-dependent{
  margin:0 12px 12px 32px;
  border-left:3px solid #d7b767;
  background:#fcfaf5;
  border-radius:0 10px 10px 0;
}
.m4-dependent.locked{
  opacity:.55;
}
.m4-dependent .option-row{
  padding-left:14px;
}
@media(max-width:800px){
  .m4-sections{padding:16px 14px 20px}
  .m4-dependent{margin-left:14px}
}


/* Modul 5 – CRM-Ausgangssituation und Erweiterungen V1.6.9 */
.m5-choice{
  margin:22px 24px 0;
  border:1px solid #e6dfd1;
  border-radius:14px;
  overflow:hidden;
  background:#fff;
}
.m5-choice-head{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:center;
  padding:13px 16px;
  background:#f3efe6;
  border-bottom:1px solid #e6dfd1;
}
.m5-choice-head span{
  color:var(--muted);
  font-size:12px;
}
.m5-choice .option-row{
  padding:15px 16px;
}
.m5-options{
  padding:18px 24px 24px;
}
.m5-options.locked{
  opacity:.55;
}
.m5-options.locked .option-row{
  cursor:not-allowed;
}
@media(max-width:800px){
  .m5-choice{margin:16px 14px 0}
  .m5-options{padding:14px}
  .m5-choice-head{flex-direction:column;align-items:flex-start}
}


/* Modul 5 – sauberer Abstand zwischen den beiden Unterbereichen V1.6.10 */
.m5-options .m4-section + .m4-section{
  margin-top:22px;
}


/* Stufe 5 – Statusfragen */
.s5status{
  min-height:46px;
  height:46px;
  padding:0 13px;
  line-height:46px;
  font-size:14px;
  font-weight:600;
  background:#fff;
}
.s5-impact{
  margin:16px 0 10px;
  padding:14px 16px;
  border:1px solid #e6dcc5;
  border-radius:12px;
  background:#fffaf0;
}
.s5-impact-title{
  font-size:13px;
  font-weight:800;
  margin-bottom:8px;
  color:var(--brand-dark);
}
.s5-impact-list{
  display:grid;
  gap:6px;
}
.s5-impact-row{
  display:grid;
  grid-template-columns:minmax(210px, .8fr) 1.7fr;
  gap:12px;
  align-items:start;
  font-size:13px;
}
.s5-impact-row span{
  color:var(--muted);
}
.s5-impact-row b{
  color:var(--brand-dark);
}
.editor-card.s5-updated{
  animation:s5Updated .9s ease;
}
@keyframes s5Updated{
  0%{box-shadow:0 0 0 0 rgba(255,185,35,0);border-color:var(--line)}
  35%{box-shadow:0 0 0 5px rgba(255,185,35,.20);border-color:var(--brand-gold)}
  100%{box-shadow:0 2px 10px rgba(16,24,32,.03);border-color:var(--line)}
}
@media(max-width:760px){
  .s5-impact-row{grid-template-columns:1fr}
}


/* Stufe 5 – dynamisches Vertriebssystem aus Stufe-4-Bausteinen */
.s5-status-grid{display:grid;grid-template-columns:1fr;gap:2px}
.s5-price-hint{margin-top:12px;padding:12px 14px;border-radius:10px;background:#fff7df;border:1px solid #ead6a1;font-size:13px}
.s5-builder{display:grid;gap:14px;margin-top:18px}
.s5-area-card{border:1px solid var(--line);border-radius:14px;background:#fff;padding:0;overflow:hidden}
.s5-area-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;background:#faf8f3;border-bottom:1px solid var(--line)}
.s5-area-head h4{margin:0 0 3px;font-size:17px}
.s5-area-head span{font-size:12px;color:var(--muted)}
.s5-area-head strong{white-space:nowrap;font-size:15px}
.s5-area-card.optimize .s5-area-head{border-left:4px solid #e0a400}
.s5-area-card.missing .s5-area-head{border-left:4px solid #c66b33}
.s5-area-card.ok .s5-area-head{border-left:4px solid #98a88d}
.s5-area-body{padding:14px 16px}
.s5-no-work{font-size:13px;color:var(--muted);padding:5px 0}
.s5-auto-base{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:11px 12px;background:#fff8e6;border:1px solid #ead8a8;border-radius:10px;margin-bottom:12px;font-size:13px}
.s5-auto-base span{white-space:nowrap;font-weight:800}
.s5-optional>b,.s5-leads>b{display:block;margin:4px 0 8px}
.s5-area-body .option-row{padding:9px 0}
.s5-area-body .m4-section{margin-top:10px}
.s5-area-body .m4-section:first-of-type{margin-top:8px}
@media(max-width:760px){
 .s5-area-head,.s5-auto-base{align-items:flex-start;flex-direction:column}
}


/* Stufe 6 – Komplettpaket */
.stage6-package{margin-top:18px}
.stage6-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding:4px 0 16px}
.stage6-head h3{margin:0 0 5px}
.stage6-head strong{white-space:nowrap;font-size:18px}
.stage6-phases{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:18px}
.stage6-phases>div{border:1px solid var(--line);border-radius:12px;padding:14px;background:#fffdf9}
.stage6-phases b{display:block;margin-bottom:6px}
.stage6-phases span{font-size:13px;color:var(--muted);line-height:1.45}
.stage6-payment{border-top:1px solid var(--line);padding-top:15px}
.stage6-payment h3{margin:0 0 10px}
.stage6-pay-option{display:flex;align-items:center;gap:10px;padding:12px 14px;border:1px solid #ddd5c4;border-radius:11px;margin:8px 0;background:#fff;cursor:pointer}
.stage6-pay-option input{width:auto;margin:0}
.stage6-pay-option span{display:flex;justify-content:space-between;align-items:center;gap:20px;width:100%}
.stage6-pay-option small{font-weight:700;color:var(--muted)}
@media(max-width:760px){
 .stage6-phases{grid-template-columns:1fr}
 .stage6-head,.stage6-pay-option span{align-items:flex-start;flex-direction:column}
}


/* Stufe 6: gegliederter Leistungsumfang */
.stage6-editor-phase{border:1px solid var(--line);border-radius:12px;margin:14px 0;padding:0 14px 14px;background:#fff}
.stage6-editor-phase-title{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:0 -14px 12px;padding:11px 14px;background:#f7f3ea;border-bottom:1px solid var(--line);border-radius:12px 12px 0 0}
.stage6-editor-phase-title b{font-size:15px}
.stage6-editor-phase-title span{font-size:12px;color:var(--muted);font-weight:700}
.stage6-editor-phase .scope-edit{min-height:190px}
@media(max-width:760px){
 .stage6-editor-phase-title{align-items:flex-start;flex-direction:column;gap:3px}
}


/* Stufe 6: Module 01 bis 05 innerhalb Phase 1 */
.stage6-module-list{display:grid;gap:14px}
.stage6-module-editor{border:1px solid #e4dccb;border-radius:11px;padding:14px;background:#fffdf9}
.stage6-module-heading{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.stage6-module-heading span{display:inline-flex;align-items:center;justify-content:center;min-width:38px;height:30px;border-radius:8px;background:#fff1c8;border:1px solid #e4c56b;font-weight:800}
.stage6-module-heading b{font-size:17px}
.stage6-project-scope{margin-top:16px;padding:14px;border:1px solid #e4dccb;border-radius:11px;background:#faf8f3}
.stage6-project-scope>b{display:block;margin-bottom:10px}
.stage6-phase2-editor{border:0;padding:0;background:transparent}


.stage6-exclusions-editor{margin-top:16px;padding:14px;border:1px solid #e4dccb;border-radius:11px;background:#faf8f3}
.stage6-exclusions-editor>b{display:block;margin-bottom:10px}


/* Stufe 7: Sales Partner */
.stage7-selector{padding-top:4px}
.stage7-intro{margin-bottom:16px}
.stage7-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.stage7-card{display:block;border:1px solid #ded6c6;border-radius:14px;padding:16px;background:#fff;cursor:pointer;transition:.15s ease}
.stage7-card:hover,.stage7-card.selected{border-color:#d4a20b;box-shadow:0 4px 14px rgba(0,0,0,.06)}
.stage7-card>input{margin:0 0 10px;width:auto}
.stage7-card-top{display:flex;flex-direction:column;gap:6px;margin-bottom:6px}
.stage7-card-top>b{font-size:17px}
.stage7-card-top strong{font-size:19px}
.stage7-card-top small{font-size:12px;font-weight:700;color:var(--muted)}
.stage7-min{display:inline-block;padding:5px 8px;border-radius:8px;background:#fff4d2;font-size:12px;font-weight:800;margin:4px 0 10px}
.stage7-card p{font-size:13px;line-height:1.45;color:var(--muted);min-height:56px}
.stage7-card ul{padding-left:18px;margin:10px 0 0}
.stage7-card li{font-size:12.5px;line-height:1.4;margin:5px 0}
@media(max-width:900px){.stage7-cards{grid-template-columns:1fr}}


/* V1.11.0 Produktverwaltung */
.product-admin{max-width:1280px}
.product-admin-info{padding:18px 22px;border-left:4px solid var(--brand-gold)}
.product-admin-info p{margin:5px 0 0;color:var(--muted)}
.product-filter-card{padding:18px 22px}
.product-filters{display:flex;gap:14px;align-items:end;flex-wrap:wrap}
.product-filters label{min-width:230px;margin:0}
.product-filters button{height:48px}
.products-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:18px 0 40px}
.product-admin-card{border:1px solid var(--line);border-radius:16px;background:#fff;padding:20px;box-shadow:0 3px 14px rgba(16,24,32,.04)}
.product-admin-card.product-archived{opacity:.7;background:#f8f7f4}
.product-admin-top{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}
.product-admin-top h2{font-size:19px;margin:8px 0 0}
.product-meta-row{display:flex;gap:7px;flex-wrap:wrap}
.product-area,.product-kind,.product-custom{font-size:11px;font-weight:800;padding:5px 8px;border-radius:999px;background:#f2efe7;color:#4e5359}
.product-custom{background:#fff1c8;color:#7c5c00}
.product-status{display:inline-flex;align-items:center;padding:5px 8px;border-radius:999px;font-size:11px;font-weight:800;white-space:nowrap}
.product-status.active{background:#e9f3e6;color:#48643e}
.product-status.archived{background:#eee;color:#666}
.product-admin-facts{display:grid;grid-template-columns:1fr 1fr .7fr;gap:10px;margin:18px 0}
.product-admin-facts>div{padding:11px 12px;border:1px solid var(--line);border-radius:10px;background:#faf9f6}
.product-admin-facts span{display:block;font-size:11px;color:var(--muted);margin-bottom:4px}
.product-admin-facts b{font-size:14px}
.product-admin-actions{display:flex;align-items:center;gap:10px;border-top:1px solid var(--line);padding-top:14px}
.product-admin-actions form{margin:0}
.secondary-btn{background:#fff!important;color:var(--brand-dark)!important;border:1px solid var(--line)!important}
.archive-btn,.restore-btn{background:#fff;border:1px solid var(--line);color:var(--brand-dark)}
.restore-btn{border-color:#a9c29f}
.protected-hint{font-size:12px;color:var(--muted);font-weight:700}
.product-editor{max-width:1100px}
.product-editor form>.card{margin-bottom:16px}
.product-editor .span-2{grid-column:span 2}
.check-line{display:flex!important;flex-direction:row!important;align-items:center;gap:10px}
.check-line input{width:auto!important;margin:0}
.save-success{padding:13px 16px;border:1px solid #b9cfaf;background:#eef7ea;border-radius:11px;margin-bottom:16px;font-weight:700}
.product-save-actions{justify-content:flex-end}
.version-history{margin-top:22px}
.version-list{display:grid;gap:8px}
.version-row{display:flex;justify-content:space-between;gap:15px;align-items:center;padding:11px 12px;border:1px solid var(--line);border-radius:10px}
.version-row div{display:flex;gap:12px;align-items:center}
.version-row span{font-size:12px;color:var(--muted)}
@media(max-width:900px){
 .products-grid{grid-template-columns:1fr}
 .product-admin-facts{grid-template-columns:1fr}
 .product-editor .span-2{grid-column:auto}
}


/* V1.11.2 Zentrales Programmmenü */
.header-actions{display:flex;align-items:center;gap:12px}
.app-menu{position:relative}
.app-menu>summary{
  list-style:none;
  cursor:pointer;
  padding:8px 12px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:10px;
  color:#fff;
  font-weight:800;
  user-select:none;
  transition:.15s ease;
}
.app-menu>summary::-webkit-details-marker{display:none}
.app-menu>summary::after{content:"▾";margin-left:8px;font-size:11px}
.app-menu[open]>summary,
.app-menu>summary:hover{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.3)}
.app-menu[open]>summary::after{content:"▴"}
.app-menu-panel{
  position:absolute;
  right:0;
  top:calc(100% + 10px);
  z-index:1000;
  min-width:235px;
  padding:8px;
  border:1px solid #ded6c6;
  border-radius:12px;
  background:#fff;
  box-shadow:0 14px 34px rgba(15,24,34,.18);
}
.app-menu-panel a{
  display:block;
  padding:10px 12px;
  border-radius:8px;
  color:var(--brand-dark)!important;
  text-decoration:none;
  font-weight:700;
  white-space:nowrap;
}
.app-menu-panel a:hover{background:#f5f1e7}
.app-menu-divider{height:1px;background:var(--line);margin:6px 3px}
.app-menu-panel .app-menu-logout{color:#9c3d35!important}
@media(max-width:700px){
  .header-actions{gap:8px}
  .app-menu-panel{right:0;min-width:210px}
  .app-menu>summary{padding:9px 11px}
}


/* V1.11.6 Dropdown-Größe nur in Produktverwaltung und Neue Leistung */
.product-admin select,
.product-editor select{
  min-height:52px;
  height:52px;
  padding:0 40px 0 13px;
  line-height:1.2;
}


/* V1.12.0 Stufe 6 in der Produktverwaltung */
.stage6-product-admin{padding:24px}
.stage6-admin-phase-head{
  display:flex;align-items:flex-start;justify-content:space-between;gap:20px;
  margin-bottom:18px;padding-bottom:14px;border-bottom:1px solid var(--line)
}
.stage6-admin-phase-head h2{margin:4px 0 0}
.stage6-admin-phase-head>span{font-size:13px;color:var(--muted);font-weight:700;padding-top:8px}
.stage6-admin-phase-number{
  display:inline-flex;padding:5px 9px;border-radius:999px;
  background:#fff1c8;color:#7c5c00;font-size:12px;font-weight:800
}
.stage6-admin-module{
  border:1px solid var(--line);border-radius:14px;padding:18px;margin-bottom:16px;background:#fffdf9
}
.stage6-admin-module:last-child{margin-bottom:0}
.stage6-admin-module-title{display:flex;align-items:center;gap:10px;margin-bottom:14px}
.stage6-admin-module-title>span{
  display:inline-flex;align-items:center;justify-content:center;min-width:40px;height:32px;
  border-radius:8px;background:#fff1c8;border:1px solid #e4c56b;font-weight:800
}
.stage6-admin-module-title h3{margin:0;font-size:19px}
.stage6-admin-projectscope{background:#faf8f3}
@media(max-width:700px){
  .stage6-admin-phase-head{flex-direction:column;gap:4px}
  .stage6-admin-phase-head>span{padding-top:0}
}


/* V1.12.1 Stufe 7 in der Produktverwaltung */
.stage7-product-admin{padding:24px}
.stage7-admin-note{
  margin-top:12px;padding:12px 14px;border:1px solid #ead7a4;border-radius:10px;
  background:#fff9ed;color:var(--muted);font-size:13px;line-height:1.45
}
.stage7-shared-goal{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0 16px}
.stage7-shared-goal>div{
  border:1px solid var(--line);border-radius:12px;background:#faf9f6;padding:14px
}
.stage7-shared-goal b{display:block;margin-bottom:7px}
.stage7-shared-goal p{margin:0;color:var(--muted);line-height:1.5}
@media(max-width:800px){.stage7-shared-goal{grid-template-columns:1fr}}


/* V1.12.2 Modulzuordnung eigener Leistungen */
.field-hint{
  display:block;
  margin-top:7px;
  color:var(--muted);
  font-size:12px;
  line-height:1.4;
  font-weight:500;
}


/* V1.13.0 Kundenverwaltung */
.customer-search{display:flex;gap:10px;align-items:center}.customer-search input{margin:0;flex:1}.customer-search-card{padding:20px}.customer-cards{display:grid;gap:16px}.customer-select-card{padding:22px}.customer-card-main{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;padding-bottom:15px;border-bottom:1px solid var(--line)}.customer-card-main h2{margin:0 0 5px}.customer-meta{display:flex;gap:12px;flex-wrap:wrap;font-size:13px;color:var(--muted)}.contact-choice-list{display:grid;gap:8px;margin-top:12px}.contact-choice{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:10px 12px;border-radius:10px;background:#faf8f3}.contact-choice>div{display:flex;flex-direction:column;gap:3px}.contact-choice small,.contact-choice span{color:var(--muted);font-size:12px}.empty-customer-state{text-align:center;padding:36px}.selected-customer-banner{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:13px 15px;margin:0 0 16px;border:1px solid #ead7a4;border-radius:12px;background:#fff9ed}.selected-customer-banner>div{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}.selected-customer-banner span{font-size:12px;color:var(--muted);font-weight:700}.selected-customer-banner small{color:var(--muted)}.customer-detail-grid{display:grid;grid-template-columns:1fr 1.25fr;gap:18px}.customer-dl{display:grid;grid-template-columns:120px 1fr;gap:10px 12px;margin:0}.customer-dl dt{font-weight:700;color:var(--muted)}.customer-dl dd{margin:0}.card-title-row{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:16px}.card-title-row h2{margin:0}.contact-list{display:grid;gap:9px}.contact-item{display:grid;gap:4px;padding:12px;border:1px solid var(--line);border-radius:11px}.contact-item>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.contact-item>span{font-size:13px;color:var(--muted)}
@media(max-width:850px){.customer-detail-grid{grid-template-columns:1fr}.customer-card-main,.contact-choice,.selected-customer-banner{flex-direction:column;align-items:stretch}.customer-search{flex-wrap:wrap}.customer-search input{flex-basis:100%}}


/* V1.13.1 Ansprechpartner in Kundendaten bearbeiten */
.contact-section-subtitle{margin:4px 0 0}
.contact-admin-list{display:grid;gap:10px}
.contact-admin-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:13px 14px;border:1px solid var(--line);border-radius:12px;background:#faf9f6}
.contact-admin-main{display:grid;gap:5px;min-width:0}
.contact-admin-name{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.contact-admin-meta{display:flex;gap:10px;flex-wrap:wrap;color:var(--muted);font-size:13px}
@media(max-width:700px){.contact-admin-row{align-items:stretch;flex-direction:column}}

/* V1.13.2 Hauptansprechpartner-Logik */
.primary-locked{opacity:.85;cursor:not-allowed}
.primary-locked input{cursor:not-allowed}

/* V1.14.0 Auftragsverwaltung, Stunden und Abrechnung */
.order-page{max-width:1280px}
.order-summary-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}
.order-summary-grid .kpi span{display:block;color:var(--muted);font-size:13px}
.order-summary-grid .kpi b{margin-top:6px;font-size:20px}
.time-entry-grid{grid-template-columns:160px 1fr 130px 160px}
.time-entry-form{padding:14px;border:1px solid var(--line);border-radius:13px;background:#faf9f6;margin-bottom:18px}
.time-table{margin-top:16px}
.open-badge{background:#edf5ff;color:#14568e}
.link-button{border:0;background:none;box-shadow:none;padding:0;color:var(--brand-dark);font:inherit;font-weight:700;cursor:pointer}
.link-button:hover{transform:none;box-shadow:none;text-decoration:underline}
.danger-link{color:#a33c35}
.inline-order-create{display:inline;margin-left:10px}
.billing-months{display:grid;gap:12px;margin:16px 0 24px}
.billing-month-card{border:1px solid var(--line);border-radius:13px;padding:15px;background:#faf9f6}
.billing-month-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:12px}
.billing-month-head>div{display:flex;flex-direction:column;gap:3px}
.billing-month-head span{font-size:12px;color:var(--muted)}
.billing-month-head strong{font-size:20px}
@media(max-width:950px){.order-summary-grid{grid-template-columns:1fr 1fr}.time-entry-grid{grid-template-columns:1fr 1fr}.time-desc{grid-column:1/-1}}
@media(max-width:650px){.order-summary-grid,.time-entry-grid{grid-template-columns:1fr}.time-desc{grid-column:auto}.billing-month-head{align-items:flex-start;flex-direction:column}}

.manual-billing-box{margin:16px 0 20px;padding:16px;border:1px dashed #d1b565;border-radius:13px;background:#fffaf0}.manual-billing-box h3{margin:0 0 5px}


/* V1.14.2 Auftragsansicht – Felder, Stunden und Zahlungsdarstellung */
.order-page .order-select{
  min-height:52px;
  height:52px;
  padding:0 40px 0 13px;
  line-height:1.2;
}

.decimal-stepper{
  position:relative;
  margin-top:6px;
}
.decimal-stepper .hours-input{
  margin-top:0;
  height:52px;
  padding-right:46px;
}
.decimal-stepper-buttons{
  position:absolute;
  top:1px;
  right:1px;
  bottom:1px;
  width:38px;
  display:grid;
  grid-template-rows:1fr 1fr;
  border-left:1px solid #d8d2c5;
  border-radius:0 9px 9px 0;
  overflow:hidden;
  background:#fafafa;
}
.decimal-stepper-btn{
  min-height:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  color:#4f555d;
  font-size:10px;
  line-height:1;
}
.decimal-stepper-btn:first-child{border-bottom:1px solid #e6e0d5}
.decimal-stepper-btn:hover{
  transform:none;
  box-shadow:none;
  background:#f0ece4;
}

.payment-order-overview{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin:16px 0;
}
.payment-order-overview>div,
.billing-date-grid>div{
  border:1px solid var(--line);
  border-radius:11px;
  background:#faf9f6;
  padding:12px 14px;
  display:flex;
  flex-direction:column;
  gap:5px;
  min-width:0;
}
.payment-order-overview span,
.billing-date-grid span{
  display:block;
  font-size:12px;
  color:var(--muted);
  font-weight:700;
}
.payment-order-overview b,
.billing-date-grid b{
  display:block;
  font-size:16px;
  line-height:1.3;
}
.payment-terms-box,
.logic-note{
  padding:13px 15px;
  border-radius:11px;
  margin-top:12px;
  line-height:1.5;
}
.payment-terms-box{
  border:1px solid var(--line);
  background:#fff;
}
.payment-terms-box p{
  margin:7px 0 0;
  color:var(--muted);
}
.logic-note{
  border:1px solid #ead7a4;
  background:#fff9ed;
}
.billing-date-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin:12px 0;
}
@media(max-width:900px){
  .payment-order-overview{grid-template-columns:1fr 1fr}
}
@media(max-width:600px){
  .payment-order-overview,
  .billing-date-grid{grid-template-columns:1fr}
}


/* V1.14.3 Einheitliche Feldhöhen auf der Auftragsseite */
.order-page input:not([type="checkbox"]):not([type="hidden"]),
.order-page select{
  box-sizing:border-box;
  height:52px;
  min-height:52px;
}

/* Dropdowns exakt wie normale Eingabefelder */
.order-page .order-select{
  height:52px;
  min-height:52px;
  padding:0 40px 0 13px;
  line-height:50px;
  box-sizing:border-box;
}

/* Stundenfeld inkl. eigener Pfeile exakt in derselben Höhe */
.decimal-stepper{
  height:52px;
  margin-top:6px;
}
.decimal-stepper .hours-input{
  box-sizing:border-box;
  height:52px;
  min-height:52px;
  margin-top:0;
  padding:0 46px 0 13px;
  line-height:50px;
}
.decimal-stepper-buttons{
  height:50px;
  top:1px;
  bottom:auto;
  box-sizing:border-box;
}

/* Auch die Felder im Bereich Stunden & Leistungen identisch ausrichten */
.time-entry-form input:not([type="checkbox"]),
.time-entry-form select{
  box-sizing:border-box;
  height:52px;
  min-height:52px;
}




/* V1.15.0 Manuelle Aufträge und Auftragsstatus */
.order-admin-kpis{margin-bottom:18px}
.order-filter-card{padding:18px}
.order-filter-form{display:grid;grid-template-columns:minmax(320px,1fr) 210px 210px auto auto;gap:10px;align-items:center}
.order-filter-form input,.order-filter-form select{margin:0;min-height:46px}
.billing-status{display:inline-flex;padding:5px 9px;border-radius:999px;font-size:12px;font-weight:800}
.billing-status.is-open{background:#fff1c8;color:#7c5c00}.billing-status.is-billed{background:#e8f6ec;color:#27733e}
.closed-order-row{opacity:.72;background:#fafafa}.order-row-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.order-row-actions form{display:inline}
.selected-order-customer{display:flex;align-items:center;justify-content:space-between;gap:18px}.selected-order-customer>div{display:flex;flex-direction:column;gap:4px}.selected-order-customer span{font-size:12px;color:var(--muted);font-weight:700}.selected-order-customer b{font-size:18px}.selected-order-customer small{color:var(--muted)}
@media(max-width:1050px){.order-filter-form{grid-template-columns:1fr 1fr}.order-filter-form input{grid-column:1/-1}}@media(max-width:650px){.order-filter-form{grid-template-columns:1fr}.order-filter-form input{grid-column:auto}.selected-order-customer{align-items:stretch;flex-direction:column}}


/* V1.15.1 Dropdownfelder manuelle Auftragsanlage */
.manual-order-page input:not([type="checkbox"]):not([type="hidden"]),
.manual-order-page select{
  box-sizing:border-box;
  height:52px;
  min-height:52px;
}
.manual-order-page .manual-order-select{
  width:100%;
  height:52px;
  min-height:52px;
  padding:0 40px 0 13px;
  line-height:50px;
  box-sizing:border-box;
}


/* V1.15.2 Dropdownfelder Auftragsverwaltung */
.order-filter-form input,
.order-filter-form .orders-filter-select{
  box-sizing:border-box;
  height:52px;
  min-height:52px;
}

.order-filter-form .orders-filter-select{
  width:100%;
  padding:0 40px 0 13px;
  line-height:50px;
}




/* V1.15.8 Geschlossene Aufträge */
.closed-order-notice{
  border:1px solid #ead7a4;
  background:#fff9ed;
  border-radius:12px;
  padding:14px 16px;
  margin:14px 0 18px;
}
.closed-order-notice b{
  display:block;
  margin-bottom:4px;
}
.closed-order-notice p{
  margin:0;
  color:var(--muted);
  line-height:1.5;
}


/* V1.16.0 Dashboard */
.dashboard-home{max-width:1340px}
.dashboard-home-heading{margin-bottom:18px}
.dashboard-year-badge{
  border:1px solid var(--line);
  background:#fff;
  border-radius:12px;
  padding:8px 12px;
  font-size:13px;
  font-weight:800;
  color:var(--muted);
}
.dashboard-module-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin-bottom:18px;
}
.dashboard-module-card{
  min-height:180px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:12px;
  padding:18px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
  color:var(--brand-dark);
  text-decoration:none;
  box-shadow:0 12px 28px rgba(31,35,38,.06);
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease;
}
.dashboard-module-card:hover{
  transform:translateY(-2px);
  box-shadow:0 16px 34px rgba(31,35,38,.10);
  border-color:#e6bf61;
}
.dashboard-module-card h2{margin:4px 0 6px;font-size:22px}
.dashboard-module-card p{margin:0;color:var(--muted);line-height:1.45;font-size:14px}
.dashboard-module-kicker{
  display:inline-block;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:900;
  color:#a66f00;
}
.dashboard-module-stats{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.dashboard-module-stats span{
  border:1px solid var(--line);
  background:#faf9f6;
  border-radius:999px;
  padding:7px 10px;
  font-size:12px;
  color:var(--muted);
}
.dashboard-module-stats b{color:var(--brand-dark)}
.dashboard-module-action{
  font-weight:900;
  color:#9a6700;
}
.dashboard-module-card-disabled{
  cursor:default;
  background:#f7f6f2;
  opacity:.72;
}
.dashboard-module-card-disabled:hover{
  transform:none;
  box-shadow:0 12px 28px rgba(31,35,38,.06);
  border-color:var(--line);
}
.dashboard-overview-card{margin-bottom:28px}
.dashboard-overview-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}
.dashboard-overview-grid>div{
  border:1px solid var(--line);
  border-radius:12px;
  padding:14px;
  background:#faf9f6;
  display:flex;
  flex-direction:column;
  gap:5px;
}
.dashboard-overview-grid span{font-size:12px;color:var(--muted);font-weight:700}
.dashboard-overview-grid b{font-size:22px}
@media(max-width:900px){
  .dashboard-module-grid{grid-template-columns:1fr}
  .dashboard-overview-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:560px){
  .dashboard-overview-grid{grid-template-columns:1fr}
}

/* V1.17.0 MEMA Vertriebscheck intern */
.check-context-bar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;border:1px solid var(--line);border-radius:14px;padding:12px 14px;background:#fff;margin-bottom:18px}
.check-context-bar>div{display:flex;flex-direction:column;gap:4px}.check-context-bar span{font-size:11px;color:var(--muted);font-weight:800;text-transform:uppercase;letter-spacing:.05em}
.check-result-grid{display:grid;grid-template-columns:320px 1fr;gap:18px;margin-bottom:18px}
.check-index-card{background:#101820;color:#fff;border-radius:16px;padding:28px;display:flex;flex-direction:column;gap:8px}
.check-index-card>span{font-size:12px;color:#c5c5c5;text-transform:uppercase;font-weight:800;letter-spacing:.06em}.check-index-card>b{font-size:58px;line-height:1;color:#f8b61c}.check-index-card>strong{font-size:17px}
.check-result-bar{margin:12px 0}.check-result-bar>div:first-child{display:flex;justify-content:space-between;font-size:13px;margin-bottom:6px}.check-result-bar>div:last-child{height:8px;background:#eee;border-radius:99px;overflow:hidden}.check-result-bar>div:last-child span{display:block;height:100%;background:#f8b61c}
.check-strength-box{border-left:3px solid #f8b61c;background:#f8f6f0;border-radius:10px;padding:16px 18px}.check-strength-box p{margin:6px 0 0;color:var(--muted);line-height:1.5}
.check-lever-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.check-lever-card{border:1px solid var(--line);border-radius:13px;padding:17px;background:#fff}.check-lever-card small{font-weight:900;color:#9b6b00;text-transform:uppercase;letter-spacing:.05em}.check-lever-card h3{margin:6px 0 8px}.check-lever-card p{color:var(--muted);line-height:1.5}
.check-answers-details summary{cursor:pointer;font-weight:900;padding:6px 0}
@media(max-width:900px){.check-context-bar,.check-result-grid{grid-template-columns:1fr}.check-lever-grid{grid-template-columns:1fr}}


/* V1.18.0 MEMA Strategiecheck */
.strategy-kicker{
  display:inline-block;
  margin-bottom:6px;
  color:#8f6d1d;
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.strategy-list{display:grid;gap:16px}
.strategy-list-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}
.strategy-list-card h2{margin-bottom:6px}
.strategy-meta{display:flex;gap:18px;flex-wrap:wrap;margin-top:12px;color:var(--muted);font-size:13px}

.strategy-check-page{max-width:1340px}
.strategy-context{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
}
.strategy-context>div,
.strategy-order-progress>div{
  display:flex;
  flex-direction:column;
  gap:5px;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:11px;
  background:#fbfaf7;
}
.strategy-context span,
.strategy-order-progress span{font-size:12px;color:var(--muted)}
.strategy-context b,
.strategy-order-progress b{color:var(--brand-dark)}

.strategy-progress-card{margin-top:16px}
.strategy-progress-value{font-size:26px;color:var(--brand-dark)}
.strategy-progress-track{
  position:relative;
  width:100%;
  height:10px;
  overflow:hidden;
  border-radius:999px;
  background:#ece8df;
}
.strategy-progress-track span{
  display:block;
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,#f2aa13,#ffca4d);
}

.strategy-week-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
  margin:16px 0;
}
.strategy-week-card{
  position:relative;
  min-height:250px;
  display:flex;
  flex-direction:column;
}
.strategy-week-card.is-complete{border-color:#d9c27f;background:#fffdf8}
.strategy-week-number{
  color:#9d7720;
  font-weight:800;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.07em;
}
.strategy-week-card h2{margin:8px 0 8px}
.strategy-week-card p{color:var(--muted);line-height:1.55}
.strategy-week-status{margin:auto 0 16px}
.strategy-week-card>.btn{align-self:flex-start}

.strategy-final-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin-bottom:28px;
}
.strategy-done-button{
  background:#f4ecd6!important;
  border-color:#d8bd73!important;
  color:#745716!important;
  cursor:default;
}

.strategy-order-card{margin-top:16px}
.strategy-order-progress{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
  margin:16px 0 12px;
}

.strategy-editor{max-width:1240px}
.strategy-editor-note{
  margin-bottom:16px;
  padding:14px 16px;
  border:1px solid #e4d29b;
  border-radius:12px;
  background:#fffaf0;
  color:#4f4a3d;
  line-height:1.5;
}
.strategy-section{margin-bottom:18px}
.strategy-section-head{
  display:flex;
  gap:14px;
  align-items:flex-start;
  padding-bottom:14px;
  margin-bottom:18px;
  border-bottom:1px solid var(--line);
}
.strategy-section-head>span{
  display:grid;
  place-items:center;
  min-width:38px;
  height:38px;
  border-radius:10px;
  background:#fff4d5;
  color:#8b6715;
  font-size:13px;
  font-weight:800;
}
.strategy-section-head h2{margin:0 0 4px}
.strategy-section-head p{margin:0;color:var(--muted);line-height:1.45}

.strategy-two-col{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}
.repeater-wrap{
  margin:14px 0;
  padding:14px;
  border:1px solid #ece6d9;
  border-radius:12px;
  background:#fcfbf8;
}
.repeater-wrap h3{margin:0 0 10px;font-size:15px}
.strategy-repeater{
  display:grid;
  gap:10px;
  margin-bottom:10px;
}
.strategy-repeat-row{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  align-items:start;
  padding:12px;
  border:1px solid #dfd9cc;
  border-radius:12px;
  background:#fff;
}
.strategy-repeat-fields{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.strategy-repeat-fields-wide{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.strategy-repeat-fields label{margin:0}
.strategy-repeat-fields input,
.strategy-repeat-fields textarea,
.strategy-repeat-fields select{
  box-sizing:border-box;
  min-height:48px;
  margin-top:5px;
}
.strategy-repeat-fields textarea{min-height:86px}
.strategy-repeat-fields select{
  height:48px;
  padding:0 38px 0 12px;
}
.strategy-repeat-controls{
  display:flex;
  gap:5px;
  padding-top:18px;
}
.strategy-repeat-controls button{
  width:34px;
  min-width:34px;
  height:34px;
  padding:0;
  border-radius:8px;
  background:#f8f6f0;
  border:1px solid #ded7c8;
  color:#54514a;
}
.strategy-repeat-controls .row-delete{color:#9f3535}
.strategy-complex-repeater .strategy-repeat-row{
  padding:15px;
  box-shadow:0 2px 10px rgba(30,34,40,.035);
}

.strategy-editor .grid-4{grid-template-columns:repeat(4,1fr)}
.strategy-editor select{
  box-sizing:border-box;
  height:52px;
  min-height:52px;
  padding:0 40px 0 13px;
  line-height:50px;
}
.strategy-calculation{
  display:grid;
  grid-template-columns:1fr auto 1fr auto 1fr auto 1fr auto 1fr;
  align-items:center;
  gap:8px;
  margin:18px 0;
  padding:16px;
  border:1px solid #e6d6a8;
  border-radius:14px;
  background:#fffaf0;
}
.strategy-calculation>div{
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:0;
}
.strategy-calculation span{font-size:12px;color:var(--muted)}
.strategy-calculation b{font-size:20px;color:var(--brand-dark)}
.strategy-calculation>span{text-align:center;color:#a8842e;font-size:20px}

.strategy-reference-box{
  padding:14px;
  margin-bottom:14px;
  border:1px solid #e3dccd;
  border-radius:12px;
  background:#fbfaf7;
}
.strategy-reference-steps{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:10px;
}
.strategy-reference-steps span{
  padding:7px 10px;
  border-radius:999px;
  background:#f4ecd6;
  color:#6f561a;
  font-size:12px;
  font-weight:700;
}

.strategy-editor-actions{
  position:sticky;
  bottom:14px;
  z-index:10;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin:22px 0 36px;
  padding:14px 16px;
  border:1px solid #ddd4c4;
  border-radius:14px;
  background:rgba(255,255,255,.96);
  box-shadow:0 8px 28px rgba(31,37,43,.12);
  backdrop-filter:blur(10px);
}
.strategy-editor-actions>div:last-child{display:flex;gap:10px}

@media(max-width:1000px){
  .strategy-context,.strategy-order-progress{grid-template-columns:repeat(2,1fr)}
  .strategy-repeat-fields-wide{grid-template-columns:repeat(2,minmax(0,1fr))}
  .strategy-editor .grid-4{grid-template-columns:repeat(2,1fr)}
  .strategy-calculation{grid-template-columns:1fr}
  .strategy-calculation>span{transform:rotate(90deg)}
}
@media(max-width:760px){
  .strategy-list-card,.strategy-final-card{align-items:stretch;flex-direction:column}
  .strategy-week-grid,.strategy-two-col,.strategy-context,.strategy-order-progress{grid-template-columns:1fr}
  .strategy-repeat-fields,.strategy-repeat-fields-wide{grid-template-columns:1fr}
  .strategy-repeat-row{grid-template-columns:1fr}
  .strategy-repeat-controls{padding-top:0}
  .strategy-editor .grid-4{grid-template-columns:1fr}
  .strategy-editor-actions{position:static;align-items:stretch;flex-direction:column}
  .strategy-editor-actions>div:last-child{flex-direction:column}
}


/* V1.18.3 – interne Beraterhinweise im MEMA Strategiecheck */
.advisor-hint{display:block;margin-top:6px;font-size:12px;line-height:1.45;font-weight:400;color:#6b7280;}
.advisor-hint b{font-weight:700;color:#4b5563;}
.advisor-hint-section{margin:-2px 0 10px 0;max-width:920px;}
.strategy-repeat-row .advisor-hint{margin-top:5px;font-size:11px;line-height:1.35;}


/* V1.18.4 Strategiecheck Übersicht – Filterleiste veredelt */
.strategy-overview-filter-card{
  padding:24px 26px;
}
.strategy-filter-form{
  display:grid;
  grid-template-columns:minmax(220px,320px) minmax(0,1fr);
  gap:22px;
  align-items:end;
}
.strategy-filter-intro{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.strategy-filter-kicker{
  display:inline-flex;
  align-self:flex-start;
  padding:6px 10px;
  border-radius:999px;
  background:#fff5da;
  color:#8f6d1d;
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.strategy-filter-intro h2{
  margin:0;
  font-size:24px;
}
.strategy-filter-intro p{
  margin:0;
  color:var(--muted);
  line-height:1.5;
}
.strategy-filter-controls{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:16px;
  align-items:end;
}
.strategy-filter-field{
  margin:0;
}
.strategy-filter-field>span{
  display:block;
  margin-bottom:8px;
  font-size:13px;
  font-weight:800;
  color:var(--brand-dark);
}
.strategy-filter-select{
  margin-top:0!important;
  min-height:58px!important;
  height:58px!important;
  padding:0 44px 0 16px!important;
  border-color:#d9d1c2;
  border-radius:14px;
  background:#fff;
  font-size:17px;
  font-weight:700;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.75);
}
.strategy-filter-actions{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.strategy-filter-actions button{
  min-width:190px;
  min-height:58px;
  border-radius:14px;
  padding:0 24px;
  font-size:16px;
}
.strategy-reset-link{
  display:inline-flex;
  align-items:center;
  min-height:58px;
  padding:0 10px;
}
@media(max-width:980px){
  .strategy-filter-form{
    grid-template-columns:1fr;
  }
}
@media(max-width:720px){
  .strategy-filter-controls{
    grid-template-columns:1fr;
  }
  .strategy-filter-actions{
    width:100%;
    justify-content:stretch;
  }
  .strategy-filter-actions button,
  .strategy-reset-link{
    width:100%;
    justify-content:center;
  }
}


/* V1.18.6 Zielsetzung & Rückwärtsrechnung */
.strategy-goal-grid label{
  margin-bottom:14px;
}
.strategy-goal-grid input,
.strategy-goal-grid select{
  min-height:54px;
  height:54px;
  border-radius:12px;
  font-weight:700;
}
.strategy-input-unit{
  position:relative;
  margin-top:6px;
}
.strategy-input-unit input{
  margin-top:0;
  padding-right:54px;
}
.strategy-input-unit>span{
  position:absolute;
  top:1px;
  right:1px;
  bottom:1px;
  width:46px;
  display:grid;
  place-items:center;
  border-left:1px solid #e2dbcf;
  border-radius:0 11px 11px 0;
  background:#faf8f3;
  color:#6d665b;
  font-size:14px;
  font-weight:800;
  pointer-events:none;
}
.strategy-input-unit:focus-within>span{
  border-left-color:#e8ca78;
  background:#fff8e8;
  color:#876719;
}

/* V1.18.7 Woche 1 – breite Eingabefelder in den einfachen Listen */
.strategy-repeater[data-key="strengths"] .strategy-repeat-fields,
.strategy-repeater[data-key="challenges"] .strategy-repeat-fields,
.strategy-repeater[data-key="current_lead_sources"] .strategy-repeat-fields,
.strategy-repeater[data-key="preserved_structures"] .strategy-repeat-fields{
  grid-template-columns:minmax(0,1fr);
}



/* V1.18.8 Woche 1 / Bereich 03 – Zielgruppe & Zielgebiet */
.strategy-target-section .strategy-repeat-fields{
  grid-template-columns:minmax(0,1fr);
}
.strategy-target-section .strategy-repeat-fields input,
.strategy-target-section .strategy-repeat-fields textarea,
.strategy-target-section .strategy-repeat-fields select{
  width:100%;
}
.strategy-target-section .strategy-repeat-row{
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
}
.strategy-target-section .strategy-repeat-controls{
  padding-top:18px;
}
.strategy-target-section>label input,
.strategy-target-section>label textarea,
.strategy-target-section>label select,
.strategy-target-section>.grid label input,
.strategy-target-section>.grid label textarea,
.strategy-target-section>.grid label select{
  width:100%;
}
.strategy-target-section select{
  appearance:none;
  -webkit-appearance:none;
  height:46px;
  min-height:46px;
  padding:0 48px 0 15px;
  border:1px solid #d8d2c5;
  border-radius:12px;
  background-color:#fff;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235f5a52' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 16px center;
  background-size:16px;
  font-weight:700;
  line-height:1.2;
  cursor:pointer;
}
.strategy-target-section select:hover{
  border-color:#c8bda7;
  background-color:#fffdfa;
}
.strategy-target-section select:focus{
  border-color:var(--brand-gold);
  box-shadow:0 0 0 4px rgba(255,185,35,.18);
}
.strategy-target-section input:not([type="checkbox"]):not([type="radio"]),
.strategy-target-section textarea{
  border-radius:12px;
}
.strategy-target-section .strategy-two-col .repeater-wrap{
  min-width:0;
}
@media(max-width:700px){
  .strategy-target-section .strategy-repeat-row{
    grid-template-columns:1fr;
  }
  .strategy-target-section .strategy-repeat-controls{
    padding-top:0;
  }
}


/* V1.18.9 Woche 1 / Bereich 04 – Positionierung */
.strategy-positioning-section .grid.grid-2{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.strategy-positioning-section label{
  min-width:0;
}
.strategy-positioning-section input,
.strategy-positioning-section textarea,
.strategy-positioning-section select{
  width:100%;
}
.strategy-positioning-section textarea{
  border-radius:12px;
}
.strategy-positioning-section .strategy-repeat-fields{
  grid-template-columns:minmax(0,1fr);
}
.strategy-positioning-section .strategy-repeat-row{
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
}
.strategy-positioning-section .strategy-repeat-controls{
  padding-top:18px;
}
.strategy-positioning-section select{
  appearance:none;
  -webkit-appearance:none;
  height:46px;
  min-height:46px;
  padding:0 48px 0 15px;
  border:1px solid #d8d2c5;
  border-radius:12px;
  background-color:#fff;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235f5a52' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 16px center;
  background-size:16px;
  font-weight:700;
  cursor:pointer;
}
.strategy-positioning-section select:hover{
  border-color:#c8bda7;
  background-color:#fffdfa;
}
.strategy-positioning-section select:focus{
  border-color:var(--brand-gold);
  box-shadow:0 0 0 4px rgba(255,185,35,.18);
}
@media(max-width:800px){
  .strategy-positioning-section .grid.grid-2{
    grid-template-columns:1fr;
  }
}
@media(max-width:700px){
  .strategy-positioning-section .strategy-repeat-row{
    grid-template-columns:1fr;
  }
  .strategy-positioning-section .strategy-repeat-controls{
    padding-top:0;
  }
}


/* V1.18.10 Strategiecheck-Übersicht – Suche und Statusfilter */
.strategy-overview-search-card{padding:18px 20px}
.strategy-overview-search-form{
  display:grid;
  grid-template-columns:minmax(360px,1fr) 230px auto auto;
  gap:10px;
  align-items:center;
}
.strategy-overview-search-form input[type=search],
.strategy-overview-search-form .strategy-overview-status-select{
  margin:0;
  box-sizing:border-box;
  height:52px;
  min-height:52px;
}
.strategy-overview-search-form input[type=search]{
  padding:0 15px;
  font-size:15px;
}
.strategy-overview-search-form .strategy-overview-status-select{
  padding:0 40px 0 13px;
  line-height:50px;
}
.strategy-overview-search-form button{
  height:52px;
  min-width:132px;
  padding:0 20px;
}
.strategy-overview-reset{
  display:inline-flex;
  align-items:center;
  height:52px;
  padding:0 6px;
}
@media(max-width:950px){
  .strategy-overview-search-form{grid-template-columns:1fr 220px auto}
  .strategy-overview-reset{grid-column:1/-1;height:auto;padding:4px 0}
}
@media(max-width:700px){
  .strategy-overview-search-form{grid-template-columns:1fr}
  .strategy-overview-search-form button,
  .strategy-overview-reset{width:100%;justify-content:center}
  .strategy-overview-reset{height:44px}
}


/* V1.18.11 Woche 1 / Bereich 02 – Dropdowns Zielsetzung vereinheitlicht */
.strategy-goal-grid select{
  width:100%;
  appearance:none;
  -webkit-appearance:none;
  height:46px;
  min-height:46px;
  padding:0 48px 0 15px;
  border:1px solid #d8d2c5;
  border-radius:12px;
  background-color:#fff;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235f5a52' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 16px center;
  background-size:16px;
  font-weight:700;
  line-height:1.2;
  cursor:pointer;
}
.strategy-goal-grid select:hover{
  border-color:#c8bda7;
  background-color:#fffdfa;
}
.strategy-goal-grid select:focus{
  border-color:var(--brand-gold);
  box-shadow:0 0 0 4px rgba(255,185,35,.18);
}
.strategy-goal-grid input,
.strategy-goal-grid .strategy-input-unit{
  width:100%;
}


/* V1.18.12 Strategiecheck – Sortier- und Löschbuttons mittig zum Eingabefeld */
.strategy-repeat-controls{
  padding-top:27px;
}
.strategy-target-section .strategy-repeat-controls,
.strategy-positioning-section .strategy-repeat-controls{
  padding-top:31px;
}
@media(max-width:700px){
  .strategy-repeat-controls,
  .strategy-target-section .strategy-repeat-controls,
  .strategy-positioning-section .strategy-repeat-controls{
    padding-top:0;
  }
}


/* V1.18.13 Woche 2–4 – einheitlicher Eingabestandard wie Woche 1 */
.strategy-week-standard label{
  min-width:0;
}
.strategy-week-standard input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.strategy-week-standard select{
  box-sizing:border-box;
  width:100%;
  min-height:46px;
  height:46px;
  border-radius:12px;
}
.strategy-week-standard textarea{
  box-sizing:border-box;
  width:100%;
  border-radius:12px;
}
.strategy-week-standard select{
  appearance:none;
  -webkit-appearance:none;
  padding:0 48px 0 15px;
  border:1px solid #d8d2c5;
  background-color:#fff;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235f5a52' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 16px center;
  background-size:16px;
  font-weight:700;
  line-height:1.2;
  cursor:pointer;
}
.strategy-week-standard select:hover{
  border-color:#c8bda7;
  background-color:#fffdfa;
}
.strategy-week-standard select:focus{
  border-color:var(--brand-gold);
  box-shadow:0 0 0 4px rgba(255,185,35,.18);
}
.strategy-week-standard .strategy-repeat-fields-single{
  grid-template-columns:minmax(0,1fr);
}
.strategy-week-standard .strategy-repeat-fields-wide{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.strategy-week-standard .strategy-repeat-fields input,
.strategy-week-standard .strategy-repeat-fields select{
  min-height:54px;
  height:54px;
}
.strategy-week-standard .strategy-repeat-fields textarea{
  min-height:90px;
}
.strategy-week-standard .strategy-repeat-row{
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
}
.strategy-week-standard .strategy-repeat-controls{
  align-self:start;
  padding-top:31px;
}
.strategy-week-standard .strategy-repeat-controls button{
  width:40px;
  min-width:40px;
  height:40px;
  border-radius:10px;
}
.strategy-week-standard .grid-2,
.strategy-week-standard .grid-4,
.strategy-week-standard .strategy-two-col{
  min-width:0;
}
.strategy-week-standard .grid-2 > *,
.strategy-week-standard .grid-4 > *,
.strategy-week-standard .strategy-two-col > *{
  min-width:0;
}
@media(max-width:980px){
  .strategy-week-standard .grid-4{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:800px){
  .strategy-week-standard .grid-2,
  .strategy-week-standard .strategy-two-col,
  .strategy-week-standard .strategy-repeat-fields-wide{
    grid-template-columns:1fr;
  }
}
@media(max-width:700px){
  .strategy-week-standard .grid-4{
    grid-template-columns:1fr;
  }
  .strategy-week-standard .strategy-repeat-row{
    grid-template-columns:1fr;
  }
  .strategy-week-standard .strategy-repeat-controls{
    padding-top:0;
  }
}


/* V1.18.14 Woche 2 – Leistungsumfang und Nicht enthalten exakt ausgerichtet */
.strategy-service-scope-grid .repeater-wrap{
  display:grid;
  grid-template-rows:auto minmax(44px,auto) auto auto;
  align-content:start;
}
.strategy-service-scope-grid .advisor-hint-section{
  min-height:44px;
  margin-bottom:10px;
}
.strategy-service-scope-grid .strategy-repeater{
  align-self:start;
}
@media(max-width:700px){
  .strategy-service-scope-grid .repeater-wrap{
    display:block;
  }
  .strategy-service-scope-grid .advisor-hint-section{
    min-height:0;
  }
}


/* V1.18.15 Woche 2 – Vorteile, Nutzen & Beweise getrennt */
.strategy-benefits-section .strategy-section-head{margin-bottom:20px}
.strategy-benefit-block{
  padding:20px;
  margin-top:16px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fbfaf7;
}
.strategy-benefit-block:first-of-type{margin-top:0}
.strategy-benefit-block h3{margin:0 0 4px;font-size:19px}
.strategy-benefit-block .advisor-hint-section{margin-bottom:14px}
.strategy-benefit-block .strategy-repeat-row{background:#fff}
.strategy-benefit-block .add-row{margin-top:12px}

/* V1.18.17 Woche 1 – Zielgruppe definieren */
.strategy-target-type{
  max-width:520px;
  margin-bottom:22px;
}
.strategy-target-type label{margin:0}
.strategy-target-type select{
  appearance:none;
  -webkit-appearance:none;
  min-height:46px;
  height:46px;
  margin-top:8px;
  padding:0 48px 0 15px;
  border-radius:12px;
  background-color:#fff;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235f5a52' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 16px center;
  background-size:16px;
  font-weight:700;
}
.strategy-target-block{
  border:1px solid var(--line);
  border-radius:16px;
  padding:22px;
  margin-top:18px;
  background:#fcfbf8;
}
.strategy-target-block-head{
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding-bottom:14px;
  margin-bottom:18px;
  border-bottom:1px solid var(--line);
}
.strategy-target-block-head>span{
  display:grid;
  place-items:center;
  flex:0 0 34px;
  width:34px;
  height:34px;
  border-radius:10px;
  background:#fff4d5;
  color:#8b6715;
  font-weight:800;
}
.strategy-target-block-head h3{margin:0 0 4px;font-size:20px}
.strategy-target-block-head p{margin:0;color:var(--muted);line-height:1.45}
.strategy-target-subblock + .strategy-target-subblock{
  margin-top:20px;
  padding-top:20px;
  border-top:1px dashed #ddd4c3;
}
.strategy-target-subblock h4{
  margin:0 0 14px;
  font-size:16px;
  color:var(--brand-dark);
}
.strategy-target-grid label{margin-bottom:0}
.strategy-target-grid input,
.strategy-target-grid textarea{
  min-height:52px;
}
.strategy-target-grid textarea{min-height:104px}
.strategy-ideal-customer-box{
  margin-top:20px;
  padding:20px 22px;
  border:1px solid #e4d29b;
  border-radius:16px;
  background:#fffaf0;
}
.strategy-ideal-customer-box label{margin:0;font-size:15px}
.strategy-ideal-customer-box textarea{min-height:132px}
@media(max-width:900px){
  .strategy-target-grid.grid-3,
  .strategy-target-grid.grid-2{grid-template-columns:1fr}
  .strategy-target-grid .span-2{grid-column:auto}
  .strategy-target-type{max-width:none}
}


/* V1.18.19 Woche 1 / Punkt 04 – Positionierung strategisch schärfen */
.strategy-positioning-step{
  margin-top:20px;
  padding:22px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fcfbf8;
}
.strategy-positioning-step:first-of-type{margin-top:0}
.strategy-positioning-step .strategy-target-block-head{margin-bottom:18px}
.strategy-positioning-step>label{margin-bottom:0}
.strategy-positioning-step textarea{min-height:112px}
.strategy-positioning-traits{margin-top:0}
.strategy-positioning-traits .strategy-repeat-row{margin-top:0}
.strategy-positioning-traits .strategy-repeat-fields-single{grid-template-columns:minmax(0,1fr)}
.strategy-positioning-traits .strategy-repeat-controls{align-self:center;padding-top:18px}
.strategy-positioning-step .grid.grid-2{margin-bottom:18px}
.strategy-positioning-step .repeater-wrap + label{margin-top:18px}
@media(max-width:700px){
  .strategy-positioning-step{padding:18px 16px}
  .strategy-positioning-traits .strategy-repeat-controls{padding-top:0}
}


/* V1.18.20 Strategiecheck – finaler einheitlicher Feldstandard Woche 1–4 */
.strategy-editor.strategy-week-standard label{
  min-width:0;
}
.strategy-editor.strategy-week-standard .grid-2{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.strategy-editor.strategy-week-standard .grid-3{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.strategy-editor.strategy-week-standard .grid-4{
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.strategy-editor.strategy-week-standard input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.strategy-editor.strategy-week-standard select{
  box-sizing:border-box;
  width:100%;
  height:46px;
  min-height:46px;
  border-radius:12px;
}
.strategy-editor.strategy-week-standard textarea{
  box-sizing:border-box;
  width:100%;
  border-radius:12px;
}
.strategy-editor.strategy-week-standard select{
  appearance:none;
  -webkit-appearance:none;
  padding:0 48px 0 15px;
  border:1px solid #d8d2c5;
  background-color:#fff;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235f5a52' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 16px center;
  background-size:16px;
  font-weight:700;
  line-height:1.2;
  cursor:pointer;
}
.strategy-editor.strategy-week-standard select:hover{
  border-color:#c8bda7;
  background-color:#fffdfa;
}
.strategy-editor.strategy-week-standard select:focus{
  border-color:var(--brand-gold);
  box-shadow:0 0 0 4px rgba(255,185,35,.18);
}
.strategy-editor.strategy-week-standard .strategy-input-unit{
  width:100%;
}
.strategy-editor.strategy-week-standard .strategy-input-unit input{
  height:46px;
  min-height:46px;
}
.strategy-editor.strategy-week-standard .strategy-repeat-fields-single{
  grid-template-columns:minmax(0,1fr);
}
.strategy-editor.strategy-week-standard .strategy-repeat-fields-wide{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.strategy-editor.strategy-week-standard .strategy-repeat-fields input,
.strategy-editor.strategy-week-standard .strategy-repeat-fields select{
  height:54px;
  min-height:54px;
  width:100%;
}
.strategy-editor.strategy-week-standard .strategy-repeat-fields textarea{
  width:100%;
  min-height:90px;
}
.strategy-editor.strategy-week-standard .strategy-repeat-row{
  grid-template-columns:minmax(0,1fr) auto;
  align-items:start;
}
.strategy-editor.strategy-week-standard .strategy-repeat-controls{
  align-self:start;
  padding-top:31px;
}
.strategy-editor.strategy-week-standard .strategy-repeat-controls button{
  width:40px;
  min-width:40px;
  height:40px;
  padding:0;
  border-radius:10px;
}
/* Ein-Feld-Listen und die Merkmalsliste bleiben besonders breit. */
.strategy-editor.strategy-week-standard .strategy-repeat-fields-single,
.strategy-positioning-traits .strategy-repeat-fields-single{
  grid-template-columns:minmax(0,1fr);
}
/* Positionierungs-Merkmale: Aktionen mittig zum Eingabefeld. */
.strategy-positioning-traits .strategy-repeat-controls{
  align-self:start;
  padding-top:31px;
}
@media(max-width:980px){
  .strategy-editor.strategy-week-standard .grid-4{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .strategy-editor.strategy-week-standard .grid-3{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:800px){
  .strategy-editor.strategy-week-standard .grid-2,
  .strategy-editor.strategy-week-standard .strategy-two-col,
  .strategy-editor.strategy-week-standard .strategy-repeat-fields-wide{
    grid-template-columns:1fr;
  }
}
@media(max-width:700px){
  .strategy-editor.strategy-week-standard .grid-3,
  .strategy-editor.strategy-week-standard .grid-4{
    grid-template-columns:1fr;
  }
  .strategy-editor.strategy-week-standard .strategy-repeat-row{
    grid-template-columns:1fr;
  }
  .strategy-editor.strategy-week-standard .strategy-repeat-controls,
  .strategy-positioning-traits .strategy-repeat-controls{
    padding-top:0;
  }
}


/* V1.18.21 App-weiter Formularstandard */
.app-form-standard input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.app-form-standard select{
  box-sizing:border-box;
  width:100%;
  height:46px;
  min-height:46px;
  margin-top:6px;
  padding:0 15px;
  border:1px solid #d8d2c5;
  border-radius:12px;
  background:#fff;
  color:var(--text);
  font:inherit;
  line-height:1.2;
  transition:border-color .15s ease,box-shadow .15s ease,background-color .15s ease;
}
.app-form-standard textarea{
  box-sizing:border-box;
  width:100%;
  margin-top:6px;
  padding:14px 15px;
  border:1px solid #d8d2c5;
  border-radius:12px;
  background:#fff;
  color:var(--text);
  font:inherit;
  line-height:1.45;
  transition:border-color .15s ease,box-shadow .15s ease,background-color .15s ease;
}
.app-form-standard select{
  appearance:none;
  -webkit-appearance:none;
  padding-right:46px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235f5a52' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 16px center;
  background-size:16px;
  cursor:pointer;
}
.app-form-standard input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):hover,
.app-form-standard textarea:hover,
.app-form-standard select:hover{
  border-color:#c8bda7;
  background-color:#fffdfa;
}
.app-form-standard input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus,
.app-form-standard textarea:focus,
.app-form-standard select:focus{
  outline:none;
  border-color:var(--brand-gold);
  box-shadow:0 0 0 4px rgba(255,185,35,.18);
  background-color:#fff;
}

/* Such- und Filterleisten */
.app-form-standard .search-form input[type="search"],
.app-form-standard .customer-search input[type="search"],
.app-form-standard .order-filter-form input[type="search"],
.app-form-standard .product-filters select,
.app-form-standard .order-filter-form select,
.app-form-standard .year-filter select{
  margin-top:0;
}
.app-form-standard .search-form button,
.app-form-standard .customer-search button,
.app-form-standard .order-filter-form button,
.app-form-standard .product-filters button{
  height:46px;
  min-height:46px;
  border-radius:12px;
  padding:0 20px;
}
.app-form-standard .customer-search{
  align-items:center;
}
.app-form-standard .product-filters{
  align-items:end;
}

/* Auftragsmasken und manuelle Auftragsanlage */
.app-form-standard.order-page input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.app-form-standard.order-page select,
.app-form-standard .order-page input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.app-form-standard .order-page select,
.app-form-standard.manual-order-page input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.app-form-standard.manual-order-page select,
.app-form-standard .manual-order-page input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.app-form-standard .manual-order-page select{
  height:46px;
  min-height:46px;
}
.app-form-standard .decimal-stepper,
.app-form-standard .decimal-stepper .hours-input{
  height:46px;
  min-height:46px;
}
.app-form-standard .decimal-stepper-buttons{
  height:54px;
}

/* Produktverwaltung */
.app-form-standard .product-admin select,
.app-form-standard .product-editor select{
  height:46px;
  min-height:46px;
  padding-left:15px;
  padding-right:46px;
}

/* Kompakte Tabellen-Auswahl bleibt bewusst kompakt, aber im selben Stil */
.app-form-standard .status-select{
  width:auto;
  min-width:146px;
  height:44px;
  min-height:44px;
  margin:0;
  padding:0 38px 0 12px;
  border-radius:10px;
  background-position:right 12px center;
  font-size:13px;
  font-weight:700;
}

/* Login bleibt kompakt, aber optisch identisch */
.login-body.app-form-standard input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]){
  height:46px;
  min-height:46px;
  border-radius:12px;
}
.login-body.app-form-standard button{
  min-height:52px;
  border-radius:12px;
}

@media(max-width:700px){
  .app-form-standard .search-form button,
  .app-form-standard .customer-search button,
  .app-form-standard .order-filter-form button,
  .app-form-standard .product-filters button{
    min-height:54px;
  }
}


/* V1.18.22 Kompakter Feldstandard – app-weit 46 px */
.app-form-standard input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.app-form-standard select{
  height:46px;
  min-height:46px;
  padding-top:0;
  padding-bottom:0;
}
.app-form-standard .search-form button,
.app-form-standard .customer-search button,
.app-form-standard .order-filter-form button,
.app-form-standard .product-filters button{
  height:46px;
  min-height:46px;
}
.app-form-standard.order-page input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.app-form-standard.order-page select,
.app-form-standard .order-page input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.app-form-standard .order-page select,
.app-form-standard.manual-order-page input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.app-form-standard.manual-order-page select,
.app-form-standard .manual-order-page input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.app-form-standard .manual-order-page select,
.app-form-standard .product-admin select,
.app-form-standard .product-editor select,
.login-body.app-form-standard input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]){
  height:46px;
  min-height:46px;
  line-height:1.2;
}
.app-form-standard .decimal-stepper,
.app-form-standard .decimal-stepper .hours-input{
  height:46px;
  min-height:46px;
}
.app-form-standard .decimal-stepper-buttons{
  height:44px;
}
.login-body.app-form-standard button{
  min-height:46px;
}
@media(max-width:700px){
  .app-form-standard .search-form button,
  .app-form-standard .customer-search button,
  .app-form-standard .order-filter-form button,
  .app-form-standard .product-filters button{
    height:46px;
    min-height:46px;
  }
}

/* Strategiecheck verwendet einen eigenen Formularstandard. */
.strategy-editor.strategy-week-standard input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.strategy-editor.strategy-week-standard select,
.strategy-week-standard input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.strategy-week-standard select,
.strategy-target-section select,
.strategy-positioning-section select,
.strategy-goal-grid select,
.strategy-target-type select{
  height:46px;
  min-height:46px;
  line-height:1.2;
}
.strategy-editor.strategy-week-standard .strategy-input-unit input{
  height:46px;
  min-height:46px;
}
.strategy-editor.strategy-week-standard .strategy-repeat-controls{
  padding-top:26px;
}
.strategy-target-section .strategy-repeat-controls,
.strategy-positioning-section .strategy-repeat-controls,
.strategy-positioning-traits .strategy-repeat-controls{
  padding-top:13px;
}


/* V1.18.24 Woche 2 – Kommunikationslinie */
.strategy-communication-line-section .strategy-repeater[data-key="communication_line"] .strategy-repeat-fields{
  grid-template-columns:190px minmax(0,1fr);
  align-items:start;
}
.strategy-communication-line-section .strategy-repeater[data-key="communication_line"] .strategy-repeat-fields label{
  min-width:0;
}
.strategy-communication-line-section .strategy-repeater[data-key="communication_line"] .strategy-repeat-fields select,
.strategy-communication-line-section .strategy-repeater[data-key="communication_line"] .strategy-repeat-fields input{
  width:100%;
}
@media(max-width:760px){
  .strategy-communication-line-section .strategy-repeater[data-key="communication_line"] .strategy-repeat-fields{
    grid-template-columns:1fr;
  }
}


/* V1.18.26 Woche 2 – Kommunikationslinie: Reihenfolge und kompaktes Statusfeld */
.strategy-communication-line-section .strategy-repeater[data-key="communication_line"] .strategy-repeat-fields{
  grid-template-columns:minmax(0,1fr) 165px;
  align-items:start;
}
.strategy-communication-line-section .strategy-repeater[data-key="communication_line"] .strategy-repeat-fields input,
.strategy-communication-line-section .strategy-repeater[data-key="communication_line"] .strategy-repeat-fields select{
  height:46px!important;
  min-height:46px!important;
}
.strategy-communication-line-section .strategy-repeater[data-key="communication_line"] .strategy-repeat-fields select{
  width:165px;
  padding-left:12px;
  padding-right:38px;
}
.strategy-communication-line-section .strategy-repeater[data-key="communication_line"] .strategy-repeat-controls{
  padding-top:26px;
}
@media(max-width:760px){
  .strategy-communication-line-section .strategy-repeater[data-key="communication_line"] .strategy-repeat-fields{
    grid-template-columns:1fr;
  }
  .strategy-communication-line-section .strategy-repeater[data-key="communication_line"] .strategy-repeat-fields select{
    width:100%;
  }
  .strategy-communication-line-section .strategy-repeater[data-key="communication_line"] .strategy-repeat-controls{
    padding-top:0;
  }
}

/* V1.18.27 Woche 3 – vereinfachte Listen nach Kommunikationslinien-Standard */
.strategy-sales-process-section .strategy-repeater[data-key="process_steps"] .strategy-repeat-fields,
.strategy-lead-source-section .strategy-repeater[data-key="lead_sources"] .strategy-repeat-fields,
.strategy-tools-section .strategy-repeater[data-key="available_tools"] .strategy-repeat-fields{
  grid-template-columns:minmax(0,1fr) 165px;
  align-items:start;
}
.strategy-sales-process-section .strategy-repeater[data-key="process_steps"] .strategy-repeat-fields input,
.strategy-sales-process-section .strategy-repeater[data-key="process_steps"] .strategy-repeat-fields select,
.strategy-lead-source-section .strategy-repeater[data-key="lead_sources"] .strategy-repeat-fields input,
.strategy-lead-source-section .strategy-repeater[data-key="lead_sources"] .strategy-repeat-fields select,
.strategy-tools-section .strategy-repeater[data-key="available_tools"] .strategy-repeat-fields input,
.strategy-tools-section .strategy-repeater[data-key="available_tools"] .strategy-repeat-fields select{
  height:46px!important;
  min-height:46px!important;
}
.strategy-sales-process-section .strategy-repeater[data-key="process_steps"] .strategy-repeat-fields select,
.strategy-lead-source-section .strategy-repeater[data-key="lead_sources"] .strategy-repeat-fields select,
.strategy-tools-section .strategy-repeater[data-key="available_tools"] .strategy-repeat-fields select{
  width:165px;
  padding-left:12px;
  padding-right:38px;
}
.strategy-sales-process-section .strategy-repeat-controls,
.strategy-lead-source-section .strategy-repeat-controls,
.strategy-tools-section .strategy-repeat-controls{
  padding-top:26px;
}
.strategy-calculated-field{
  background:#f5f3ee!important;
  color:#5f6368;
  cursor:default;
}
@media(max-width:760px){
  .strategy-sales-process-section .strategy-repeater[data-key="process_steps"] .strategy-repeat-fields,
  .strategy-lead-source-section .strategy-repeater[data-key="lead_sources"] .strategy-repeat-fields,
  .strategy-tools-section .strategy-repeater[data-key="available_tools"] .strategy-repeat-fields{
    grid-template-columns:1fr;
  }
  .strategy-sales-process-section .strategy-repeater[data-key="process_steps"] .strategy-repeat-fields select,
  .strategy-lead-source-section .strategy-repeater[data-key="lead_sources"] .strategy-repeat-fields select,
  .strategy-tools-section .strategy-repeater[data-key="available_tools"] .strategy-repeat-fields select{
    width:100%;
  }
  .strategy-sales-process-section .strategy-repeat-controls,
  .strategy-lead-source-section .strategy-repeat-controls,
  .strategy-tools-section .strategy-repeat-controls{
    padding-top:0;
  }
}

/* V1.18.31 Woche 4 – Tools, Prozesse & Vertriebssteuerung */
.strategy-followup-status{
  max-width:280px;
  margin-bottom:14px;
}
.strategy-followup-status select{
  width:100%;
  height:46px;
  min-height:46px;
}
.strategy-week4-tools .strategy-repeater[data-key="tool_usage"] .strategy-repeat-fields,
.strategy-section .strategy-repeater[data-key="responsibilities"] .strategy-repeat-fields{
  grid-template-columns:minmax(220px,.8fr) minmax(0,1.5fr);
}
.strategy-section .strategy-repeater[data-key="data_flows"] .strategy-repeat-fields{
  grid-template-columns:minmax(180px,1fr) minmax(180px,1fr) minmax(260px,1.5fr);
}
@media(max-width:900px){
  .strategy-week4-tools .strategy-repeater[data-key="tool_usage"] .strategy-repeat-fields,
  .strategy-section .strategy-repeater[data-key="responsibilities"] .strategy-repeat-fields,
  .strategy-section .strategy-repeater[data-key="data_flows"] .strategy-repeat-fields{
    grid-template-columns:1fr;
  }
  .strategy-followup-status{max-width:none}
}


/* V1.19.0 MEMA Vertriebsfahrplan */
.strategy-final-actions,.strategy-order-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
@media(max-width:700px){.strategy-final-actions,.strategy-order-actions{width:100%;flex-direction:column;align-items:stretch}.strategy-final-actions .btn,.strategy-order-actions .btn{text-align:center}}

/* V1.19.8 – zentrale Kundenakte */
.customer-record-page{max-width:1340px}
.customer-workspace-card{margin-top:18px}
.customer-workspace-card .card-title-row p{margin:5px 0 0}
.customer-foundation-list{display:grid;gap:10px}
.customer-foundation-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:#fff}
.customer-foundation-row>div{display:grid;gap:3px}
.customer-foundation-row b{font-size:16px;color:var(--brand-dark)}
.customer-foundation-row span{font-size:13px;color:#303640}
.customer-foundation-row small{font-size:12px;color:var(--muted)}
.customer-action-placeholder{min-width:120px;text-align:center;color:var(--muted)}
.customer-row-history{opacity:.72;background:#fafafa}
.customer-status-badge{display:inline-flex;align-items:center;min-height:26px;padding:3px 9px;border-radius:999px;font-size:12px;font-weight:700;background:#f1f2f4;color:#4a5058;white-space:nowrap}
.customer-status-badge.status-entwurf,.customer-status-badge.status-versendet{background:#fff7df;color:#805f00}
.customer-status-badge.status-angenommen,.customer-status-badge.status-in-umsetzung{background:#eaf7ef;color:#24643c}
.customer-status-badge.status-vorbereitung{background:#eef4ff;color:#365c94}
.customer-status-badge.status-abgeschlossen,.customer-status-badge.status-verloren{background:#f1f2f4;color:#68707a}
@media(max-width:760px){.customer-foundation-row{align-items:stretch;flex-direction:column}.customer-foundation-row .btn{align-self:flex-start}.customer-workspace-card .card-title-row{align-items:stretch;flex-direction:column}.customer-workspace-card .card-title-row .btn{align-self:flex-start}}

/* V1.21.0 – Angebot aus Vertriebsfahrplan */
.customer-foundation-actions{display:flex;gap:10px;align-items:center;justify-content:flex-end;flex-wrap:wrap}
.roadmap-offer-prefill{border:1px solid rgba(248,182,28,.42);background:linear-gradient(180deg,#fffdf7 0%,#fff 100%)}
.roadmap-prefill-head{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;margin-bottom:18px}
.roadmap-prefill-head h2{margin:4px 0 6px}
.roadmap-prefill-head p{margin:0;max-width:920px;color:var(--muted,#667085)}
.roadmap-prefill-kicker{display:block;color:#c88a00;font-weight:800;font-size:.78rem;letter-spacing:.04em;text-transform:uppercase}
.roadmap-source{white-space:nowrap;padding:7px 11px;border-radius:999px;background:#fbf7ee;color:#6b5a2d;font-size:.82rem;font-weight:700}
.roadmap-recommendation-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.roadmap-recommendation-item{border:1px solid #e5dfd3;border-radius:12px;padding:13px 14px;background:#fff}
.roadmap-recommendation-item>div{display:flex;align-items:center;justify-content:space-between;gap:10px}
.roadmap-recommendation-item p{margin:7px 0 0;color:#5d6470;font-size:.9rem;line-height:1.35}
.roadmap-recommendation-item small{display:block;margin-top:8px;font-weight:700;color:#9a6b00}
.roadmap-priority{font-size:.76rem;font-weight:800;padding:4px 8px;border-radius:999px;background:#f4f4f5;color:#52525b;white-space:nowrap}
.priority-hoch .roadmap-priority{background:#fff1e7;color:#a84500}
.priority-mittel .roadmap-priority{background:#fff8dc;color:#8a6500}
.priority-niedrig .roadmap-priority{background:#eef6ff;color:#35618c}
@media(max-width:800px){.roadmap-recommendation-grid{grid-template-columns:1fr}.roadmap-prefill-head{flex-direction:column}.customer-foundation-actions{justify-content:flex-start}}
/* V1.21.0 Rechnungsverwaltung */
.invoice-kpis .kpi small{display:block;margin-top:5px;color:var(--muted);font-size:12px;font-weight:600}
.invoice-status{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;font-size:12px;font-weight:800;white-space:nowrap}
.invoice-status.status-offen{background:#fff1c8;color:#7c5c00}.invoice-status.status-ueberfällig,.invoice-status.status-ueberfaellig{background:#fde7e7;color:#a12828}.invoice-status.status-bezahlt{background:#e8f6ec;color:#27733e}.invoice-status.status-storniert{background:#eceff2;color:#5d6470}
.invoice-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 26px}.invoice-detail-grid>div{padding:12px 0;border-bottom:1px solid var(--line)}.invoice-detail-grid span{display:block;color:var(--muted);font-size:12px;margin-bottom:4px}.invoice-paid-form{display:flex;align-items:flex-end;gap:16px;flex-wrap:wrap;margin-bottom:14px}.invoice-paid-form label{min-width:220px;margin-bottom:0}.invoice-paid-form button{height:46px;display:inline-flex;align-items:center;justify-content:center;margin:0;align-self:flex-end}
@media(max-width:700px){.invoice-detail-grid{grid-template-columns:1fr}.invoice-paid-form{align-items:stretch;flex-direction:column;gap:10px}.invoice-paid-form button{width:100%;align-self:stretch}}

/* V1.21.1 – Rechnungsmaske und Rechnungsdetail */
.invoice-recipient-card .section-head,.card .section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:16px}.invoice-recipient-card .section-head h2,.card .section-head h2{margin-bottom:4px}.invoice-recipient-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 24px}.invoice-recipient-grid>div{padding:10px 0;border-bottom:1px solid var(--line)}.invoice-recipient-grid span,.invoice-payment-grid span{display:block;color:var(--muted);font-size:12px;margin-bottom:4px}.invoice-recipient-grid b,.invoice-payment-grid b{display:block;font-size:15px}.field-hint{display:block;margin-top:7px;color:var(--muted);font-size:12px;line-height:1.35}.invoice-total-preview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0 22px}.invoice-total-preview>div{padding:15px 16px;border:1px solid var(--line);border-radius:12px;background:#fff}.invoice-total-preview span{display:block;color:var(--muted);font-size:12px;margin-bottom:5px}.invoice-total-preview b{font-size:19px}.invoice-total-preview .gross{background:var(--cream,#fbf7ee);border-color:#e8d9ac}.invoice-note-grid{margin-top:0}.invoice-payment-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:4px 0 20px}.invoice-payment-grid>div{padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:#fff}.invoice-long-text{white-space:pre-wrap;font-weight:600;line-height:1.45}.invoice-detail-grid .span-2{grid-column:1/-1}.invoice-detail-grid .internal-note{background:#fbf7ee;border-radius:10px;padding:12px}.invoice-detail-grid .internal-note span{padding-left:0}.invoice-detail-grid .internal-note b{display:block}.invoice-detail-grid .internal-note{border-bottom:0}
@media(max-width:900px){.invoice-recipient-grid,.invoice-payment-grid{grid-template-columns:1fr 1fr}}
@media(max-width:650px){.invoice-recipient-card .section-head,.card .section-head{flex-direction:column}.invoice-recipient-grid,.invoice-total-preview,.invoice-payment-grid{grid-template-columns:1fr}}

/* V1.22.0 Einstellungen */
.settings-page{max-width:1180px}.settings-form{display:grid;gap:20px}.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 20px}.settings-grid label{display:flex;flex-direction:column;gap:7px;font-weight:700}.settings-grid input,.settings-grid textarea{font-weight:400}.settings-span-2{grid-column:1/-1}.settings-success,.settings-error{padding:14px 16px;border-radius:12px;margin-bottom:18px;font-weight:700}.settings-success{background:#eef8ef;border:1px solid #b7d8bb}.settings-error{background:#fff0f0;border:1px solid #e5b2b2}.settings-info-card p{max-width:900px;line-height:1.6}.settings-actions{justify-content:flex-end;margin-bottom:32px}@media(max-width:760px){.settings-grid{grid-template-columns:1fr}.settings-span-2{grid-column:auto}.settings-actions .btn{width:100%}}

/* V1.22.5 - Teilzahlungen & Rechnungsarchiv */
.invoice-payment-entry{display:grid;grid-template-columns:minmax(180px,220px) minmax(160px,190px) minmax(220px,1fr) auto;align-items:end;gap:14px;margin:18px 0}.invoice-payment-entry label{min-width:0}.invoice-payment-entry .payment-note{min-width:0}.invoice-payment-entry button{height:46px;margin:0}.invoice-payment-history{margin:0 0 18px}.invoice-lock-note{border-left:4px solid var(--gold,#f8b61c)}.status-teilbezahlt{background:#fff4d6;color:#805d00}@media(max-width:900px){.invoice-payment-entry{grid-template-columns:1fr 1fr}.invoice-payment-entry button{width:100%}}@media(max-width:650px){.invoice-payment-entry{grid-template-columns:1fr}}

/* V1.22.6 - Ratenzahlung auf einer Gesamtrechnung */
.installment-preview{margin:0 0 22px}.installment-preview b{display:block;margin-bottom:5px}.installment-preview div{line-height:1.45}.installment-table{margin-top:14px}.installment-table table{min-width:520px}.installment-table th:last-child,.installment-table td:last-child{text-align:right}


/* V1.22.7 Feld-Audit – Auftrags- und Stundenmasken */
.app-form-standard.order-page .time-entry-grid{
  grid-template-columns:160px minmax(280px,1fr) 160px 170px;
  align-items:end;
}
.app-form-standard.order-page .time-entry-grid label{
  min-width:0;
}
.app-form-standard.order-page .time-entry-grid input:not([type="checkbox"]),
.app-form-standard.order-page .time-entry-grid select{
  width:100%;
  height:46px;
  min-height:46px;
  box-sizing:border-box;
}
.app-form-standard.order-page .decimal-stepper{
  position:relative;
  width:100%;
  height:46px;
  min-height:46px;
  margin-top:6px;
}
.app-form-standard.order-page .decimal-stepper .hours-input{
  width:100%;
  height:46px;
  min-height:46px;
  margin:0;
  padding:0 48px 0 13px;
  line-height:44px;
}
.app-form-standard.order-page .decimal-stepper-buttons{
  position:absolute;
  top:1px;
  right:1px;
  bottom:1px;
  width:38px;
  height:auto;
  display:grid;
  grid-template-rows:1fr 1fr;
  box-sizing:border-box;
  overflow:hidden;
}
.app-form-standard.order-page .decimal-stepper-buttons .decimal-stepper-btn{
  width:100%;
  height:auto;
  min-height:0;
  margin:0;
  padding:0;
  border-radius:0;
  box-shadow:none;
  line-height:1;
}
.app-form-standard.order-page input[type="number"]{
  padding-right:34px;
}
@media(max-width:1050px){
  .app-form-standard.order-page .time-entry-grid{
    grid-template-columns:160px minmax(240px,1fr) 150px 160px;
  }
}
@media(max-width:900px){
  .app-form-standard.order-page .time-entry-grid{
    grid-template-columns:1fr 1fr;
  }
  .app-form-standard.order-page .time-entry-grid .time-desc{
    grid-column:1/-1;
  }
}
@media(max-width:650px){
  .app-form-standard.order-page .time-entry-grid{
    grid-template-columns:1fr;
  }
  .app-form-standard.order-page .time-entry-grid .time-desc{
    grid-column:auto;
  }
}

/* V1.22.7 Zusätzlicher Schutz für Zahlenfelder app-weit */
.app-form-standard input[type="number"]{
  box-sizing:border-box;
  padding-right:36px;
}


/* V1.22.8 Finaler Feld-Audit – Stunden & Leistungen */
.app-form-standard.order-page .time-entry-grid{
  grid-template-columns:160px minmax(280px,1fr) 170px 170px;
  align-items:end;
  column-gap:16px;
}
.app-form-standard.order-page .time-entry-grid label{
  min-width:0;
}
.app-form-standard.order-page .time-entry-grid input:not([type="checkbox"]),
.app-form-standard.order-page .time-entry-grid select{
  display:block;
  width:100%;
  height:46px;
  min-height:46px;
  margin-top:6px;
  padding-left:13px;
  padding-right:36px;
  box-sizing:border-box;
  line-height:normal;
}
.app-form-standard.order-page .time-entry-grid input[name="description"]{
  padding-right:13px;
}
.app-form-standard.order-page .time-entry-grid input[name="hours"],
.app-form-standard.order-page .time-entry-grid input[name="hourly_rate"]{
  font-variant-numeric:tabular-nums;
}
@media(max-width:1050px){
  .app-form-standard.order-page .time-entry-grid{grid-template-columns:160px minmax(240px,1fr) 160px 160px;}
}
@media(max-width:900px){
  .app-form-standard.order-page .time-entry-grid{grid-template-columns:1fr 1fr;}
  .app-form-standard.order-page .time-entry-grid .time-desc{grid-column:1/-1;}
}
@media(max-width:650px){
  .app-form-standard.order-page .time-entry-grid{grid-template-columns:1fr;}
  .app-form-standard.order-page .time-entry-grid .time-desc{grid-column:auto;}
}

/* V1.23.7 – Rechnungsempfänger & automatische Steuerbehandlung */
.form-static-label{display:block;font-weight:600;margin-bottom:8px}.invoice-tax-static{min-height:46px;margin:0}.invoice-recipient-grid>div{min-width:0}

/* Kundenverwaltung V1.23.14: Seitennavigation */
.customer-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:16px 0 28px}
.customer-pagination-info{font-size:14px;color:var(--muted)}
.customer-pagination-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:14px;font-weight:600}
.customer-pagination-controls .btn{margin:0}
@media(max-width:650px){.customer-pagination{align-items:flex-start;flex-direction:column}}

/* V1.24.37 – einheitliche, gruppierte Dashboard-Navigation */
.dashboard-group{margin:0 0 26px}
.dashboard-group-heading{margin:0 0 12px}
.dashboard-group-heading h2{font-size:20px;line-height:1.25;margin:0 0 5px;color:var(--brand-dark)}
.dashboard-group-heading p{margin:0;font-size:14px}
.dashboard-group .dashboard-module-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:0}
.dashboard-group .dashboard-module-card{min-height:122px;padding:15px 18px;gap:8px}
.dashboard-group .dashboard-module-card h2{font-size:19px;line-height:1.2}
.dashboard-group .dashboard-module-card p{font-size:13px}
.dashboard-group .dashboard-module-stats{gap:6px}
.dashboard-group .dashboard-module-stats span{padding:5px 8px}
@media(max-width:1050px){.dashboard-group .dashboard-module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:670px){.dashboard-group .dashboard-module-grid{grid-template-columns:1fr}.dashboard-group .dashboard-module-card{min-height:120px}}

/* V1.24.41 – mehr Abstand zwischen Dashboard-Bereichen */
.dashboard-home .dashboard-group{margin-bottom:48px}
.dashboard-home .dashboard-group:last-child{margin-bottom:0}
.dashboard-home .dashboard-group-heading{margin-bottom:20px}
.dashboard-home .dashboard-group-heading h2{margin-bottom:6px}
@media(max-width:1050px){.dashboard-home .dashboard-group{margin-bottom:36px}.dashboard-home .dashboard-group-heading{margin-bottom:18px}}
@media(max-width:670px){.dashboard-home .dashboard-group{margin-bottom:30px}.dashboard-home .dashboard-group-heading{margin-bottom:16px}}


/* V1.24.63 – Bestätigungsfeld in Rechnungsversandmaske */
.invoice-send-confirm{
  display:flex;
  align-items:flex-start;
  gap:14px;
  margin:20px 0 18px;
  padding:14px 16px;
  border:1px solid #e8dec9;
  border-radius:14px;
  background:#fffaf0;
  cursor:pointer;
}
.invoice-send-confirm input[type="checkbox"]{
  width:26px;
  height:26px;
  min-width:26px;
  margin:0;
  margin-top:1px;
  accent-color:#ffb923;
  cursor:pointer;
}
.invoice-send-confirm span{
  display:block;
  font-size:15px;
  line-height:1.4;
  font-weight:700;
  color:var(--brand-dark);
}
@media(max-width:640px){
  .invoice-send-confirm{
    align-items:flex-start;
    gap:12px;
    padding:12px 14px;
  }
  .invoice-send-confirm input[type="checkbox"]{
    width:24px;
    height:24px;
    min-width:24px;
  }
  .invoice-send-confirm span{
    font-size:14px;
  }
}

/* V1.24.66 – Optionale E-Rechnung; bis zur offiziellen Freigabe deaktiviert */
.invoice-xml-option{display:flex;align-items:flex-start;gap:14px;padding:12px 16px;margin:16px 0;border:1px solid var(--line);border-radius:12px;background:#faf9f6;cursor:pointer}
.invoice-xml-option input[type="checkbox"]{flex:0 0 24px;width:24px;height:24px;margin:0;accent-color:#ffb923}
.invoice-xml-option span{display:block;font-size:14px;line-height:1.45}
.invoice-xml-option small{display:block;margin-top:4px;font-size:12px;font-weight:400;color:var(--muted)}
.invoice-xml-option:has(input:disabled){opacity:.7;cursor:not-allowed}

/* MEMA ERP-App – Mengenfelder in Angebotsmodulen */
.module-card .option-row .grow {
  flex: 1 1 0;
  min-width: 0;
}
.module-card .option-row input.qty {
  flex: 0 0 110px;
  width: 110px;
  min-width: 0;
  max-width: 110px;
  box-sizing: border-box;
}
@media (max-width: 480px) {
  .module-card .option-row input.qty {
    flex-basis: 90px;
    width: 90px;
    max-width: 90px;
  }
}

/* MEMA ERP-App – Mengenfelder Stufe 5 */
.s5-area-body .option-row .grow {
  flex: 1 1 0;
  min-width: 0;
}
.s5-area-body .option-row input.qty {
  flex: 0 0 110px;
  width: 110px;
  min-width: 0;
  max-width: 110px;
  box-sizing: border-box;
}
@media (max-width:480px) {
  .s5-area-body .option-row input.qty {
    flex-basis: 90px;
    width: 90px;
    max-width: 90px;
  }
}
