:root{
  --bg:#07110c;
  --panel:#0d1712;
  --panel-2:#101c16;
  --text:#eef5ec;
  --muted:rgba(238,245,236,.72);
  --line:rgba(255,255,255,.10);
  --brand:#97c45a;
  --brand-dark:#29422a;
  --brand-soft:#eef5e6;
  --brand-strong:#dfeecb;
  --sheet:#f7faf5;
  --sheet-text:#122018;
  --sheet-line:rgba(20,35,20,.18);
  --input:#ffffff;
  --input-line:rgba(16,32,20,.22);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:Arial,Helvetica,sans-serif;
  background:linear-gradient(180deg,#07110c 0%,#0b1510 100%);
  color:var(--text);
  line-height:1.45;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
button,input,textarea,select{font:inherit}

.container{
  width:min(1400px,calc(100% - 32px));
  margin:0 auto;
}
.section{padding:32px 0}

.site-header,.site-footer{
  background:rgba(8,14,11,.92);
  border-bottom:1px solid var(--line);
}
.site-footer{border-top:1px solid var(--line);border-bottom:0}
.site-header .container,
.site-footer .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 0;
}

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


.card{
  background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.02));
  border:1px solid var(--line);
  border-radius:22px;
  box-shadow:0 16px 40px rgba(0,0,0,.22);
}
.panel-card,.form-card,.dashboard-box{padding:22px}
.eyebrow{
  font-size:12px;
  font-weight:700;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--brand);
  margin-bottom:8px;
}
h1,h2,h3{margin:0 0 12px}
p{margin:0 0 10px;color:var(--muted)}

.cta-row{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:16px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:.82rem 1.2rem;
  border-radius:14px;
  border:1px solid transparent;
  cursor:pointer;
  transition:.18s ease;
}
.btn:hover{transform:translateY(-1px)}
.btn-primary{
  background:var(--brand);
  color:#102014;
  font-weight:700;
}
.btn-secondary{
  background:rgba(255,255,255,.05);
  color:var(--text);
  border-color:var(--line);
}
.btn-small{
  min-height:38px;
  padding:.62rem .9rem;
  font-size:.92rem;
}

.contact-form,.lv-inline-form{
  display:grid;
  gap:16px;
}
.form-group{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.form-group label{
  font-size:.88rem;
  font-weight:600;
  color:rgba(255,255,255,.74);
  letter-spacing:.02em;
}
input,textarea,select{
  width:100%;
  min-height:46px;
  padding:.8rem .95rem;
  border-radius:14px;
  border:1px solid var(--line);
  background:#111a15;
  color:var(--text);
}
textarea{min-height:110px;resize:vertical}
.helper-text{
  font-size:.82rem;
  color:rgba(255,255,255,.62);
}
.form-status{
  display:none;
  padding:14px 16px;
  border-radius:16px;
  border:1px solid var(--line);
}
.form-status.show{display:block}
.form-status.success{background:rgba(151,196,90,.12);color:#d8efba}
.form-status.error{background:rgba(255,90,90,.10);color:#ffd0d0}



.autocomplete-wrap{position:relative}
.autocomplete-results{
  position:absolute;
  top:100%;
  left:0;
  right:0;
  margin-top:8px;
  display:none;
  z-index:20;
  border:1px solid var(--line);
  border-radius:18px;
  background:rgba(10,15,20,.98);
  box-shadow:0 18px 40px rgba(0,0,0,.35);
  overflow:hidden;
}
.autocomplete-item{
  width:100%;
  text-align:left;
  padding:14px 16px;
  border:0;
  border-bottom:1px solid rgba(255,255,255,.06);
  background:transparent;
  color:#fff;
  cursor:pointer;
}
.autocomplete-item:last-child{border-bottom:0}
.autocomplete-item:hover{background:rgba(255,255,255,.06)}





/* separate create pages */
.partner-page .panel-card p { max-width: 760px; }


/* Desktop menu fix */
@media (min-width: 1001px){
  .menu-toggle{
    display:none !important;
  }
  .nav-links{
    position:static !important;
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    gap:16px !important;
    padding:0 !important;
    margin-left:auto !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    left:auto !important;
    right:auto !important;
    top:auto !important;
  }
  .nav-actions{
    display:block !important;
  }
}

@media (max-width: 1000px){
  .menu-toggle{
    display:inline-flex !important;
  }
  .nav-links{
    display:none;
  }
  .nav-links.open{
    display:flex !important;
  }
}




/* Create-page form labels always visible */
.form-group label{
  display:block;
  margin-bottom:6px;
}

.dashboard-box table td form{
  margin:0;
}


/* Project detail wage evaluation */
.metric-green{
  color:#97c45a !important;
  font-weight:700;
}
.metric-orange{
  color:#f0b35a !important;
  font-weight:700;
}
.metric-red{
  color:#ff7b7b !important;
  font-weight:700;
}


/* Project detail weekly overview like project list */
.dashboard-table-full{
  width:100%;
  overflow-x:auto;
}
.dashboard-project-table{
  width:100%;
  border-collapse:collapse;
  background:#0d1712;
}
.dashboard-project-table th{
  background:#111c16;
  color:#97c45a;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
  padding:12px 10px;
  border-bottom:1px solid rgba(255,255,255,.15);
  white-space:nowrap;
}
.dashboard-project-table td{
  padding:12px 10px;
  border-bottom:1px solid rgba(255,255,255,.08);
  color:#edf5ee;
  font-size:13px;
}
.dashboard-project-table tbody tr:hover{
  background:rgba(151,196,90,.06);
}
.dashboard-project-table td:nth-child(3),
.dashboard-project-table td:nth-child(4),
.dashboard-project-table td:nth-child(5){
  text-align:right;
  font-variant-numeric:tabular-nums;
}


/* Unified style for all listing tables */
.dashboard-box .table-wrap,
.panel-card .table-wrap,
.sheet-list-table{
  width:100%;
  overflow-x:auto;
}

.dashboard-box table,
.panel-card .table-wrap table,
.sheet-list-table{
  width:100%;
  border-collapse:collapse;
  background:#0d1712;
}

.dashboard-box table th,
.panel-card .table-wrap table th,
.sheet-list-table th{
  background:#111c16;
  color:#97c45a;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
  padding:12px 10px;
  border-bottom:1px solid rgba(255,255,255,.15);
  white-space:nowrap;
}

.dashboard-box table td,
.panel-card .table-wrap table td,
.sheet-list-table td{
  padding:12px 10px;
  border-bottom:1px solid rgba(255,255,255,.08);
  color:#edf5ee;
  font-size:13px;
  vertical-align:middle;
}

.dashboard-box table tbody tr:hover,
.panel-card .table-wrap table tbody tr:hover,
.sheet-list-table tbody tr:hover{
  background:rgba(151,196,90,.06);
}

.dashboard-box table td .btn,
.panel-card .table-wrap table td .btn,
.sheet-list-table td .btn{
  min-height:34px;
}

.dashboard-box table td form,
.panel-card .table-wrap table td form,
.sheet-list-table td form{
  margin:0;
}

.dashboard-box table td a,
.panel-card .table-wrap table td a,
.sheet-list-table td a{
  color:#edf5ee;
}

.dashboard-box table td a:hover,
.panel-card .table-wrap table td a:hover,
.sheet-list-table td a:hover{
  color:#97c45a;
}

/* Numeric columns helpers */
.dashboard-box .table-numeric,
.panel-card .table-numeric,
.sheet-list-table .table-numeric{
  text-align:right;
  font-variant-numeric:tabular-nums;
}

/* Better spacing for action columns */
.dashboard-box .table-actions,
.panel-card .table-actions,
.sheet-list-table .table-actions{
  white-space:nowrap;
  text-align:center;
}


/* Unified project module pages (LV / Aufmaß) */
.project-module-page .section{
  padding:32px 0;
}
.project-module-page .menu-ribbon{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  padding:18px 22px;
  border:1px solid var(--line);
  border-radius:22px;
  background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.02));
  box-shadow:0 16px 40px rgba(0,0,0,.22);
}
.project-module-page .menu-ribbon-left,
.project-module-page .menu-ribbon-right{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:center;
}
.project-module-page .ribbon-shell{
  padding:22px;
  border-radius:22px !important;
  border:1px solid var(--line) !important;
  background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.02)) !important;
  box-shadow:0 16px 40px rgba(0,0,0,.22) !important;
}
.project-module-page .sheet-header{
  display:grid;
  grid-template-columns:1fr auto;
  gap:12px;
  align-items:start;
  margin-bottom:0;
}
.project-module-page .sheet-kicker{
  font-size:12px;
  font-weight:700;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--brand);
  margin-bottom:8px;
}
.project-module-page .sheet-title{
  font-size:1.5rem;
  line-height:1.05;
  font-weight:700;
  color:var(--text);
  white-space:normal;
  overflow:visible;
  text-overflow:clip;
  margin-bottom:10px;
}
.project-module-page .sheet-meta{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
.project-module-page .sheet-meta .label{
  font-size:.78rem;
  color:rgba(255,255,255,.64);
  text-transform:uppercase;
  letter-spacing:.06em;
}
.project-module-page .sheet-meta .value{
  font-size:.94rem;
  color:var(--text);
  font-weight:700;
}
.project-module-page .sheet-divider{
  height:1px;
  background:var(--line);
  margin:0 0 14px 0;
}
.project-module-page .sheet-logo{
  max-width:120px;
  max-height:48px;
}
.project-module-page .sheet-form-card{
  border-radius:22px !important;
  background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.02)) !important;
  border:1px solid var(--line) !important;
  box-shadow:0 16px 40px rgba(0,0,0,.22) !important;
  padding:22px !important;
}
.project-module-page .matrix-sheet-table{
  background:#0d1712 !important;
  border-collapse:collapse !important;
  border-spacing:0 !important;
}
.project-module-page .matrix-sheet-table th,
.project-module-page .matrix-sheet-table td{
  background:#111c16 !important;
  color:#edf5ee !important;
  border:1px solid rgba(255,255,255,.08) !important;
  padding:6px 6px !important;
}
.project-module-page .matrix-sheet-table input,
.project-module-page .matrix-sheet-table textarea,
.project-module-page .matrix-sheet-table select{
  background:transparent !important;
  color:#edf5ee !important;
}
.project-module-page .matrix-sheet-table input:focus,
.project-module-page .matrix-sheet-table textarea:focus,
.project-module-page .matrix-sheet-table select:focus{
  background:#15231b !important;
}
.project-module-page .matrix-vertical-head .matrix-head-text{
  color:#cfe7b0 !important;
}
.project-module-page .matrix-vertical-head .matrix-head-pos{
  color:#97c45a !important;
}
.project-module-page .sheet-lv-search{
  background:#0f1914 !important;
  color:#edf5ee !important;
  border:1px solid rgba(151,196,90,.22) !important;
}
.project-module-page .lv-inline-table td:nth-child(2),
.project-module-page .lv-inline-table td:nth-child(5),
.project-module-page .lv-inline-table th:nth-child(2),
.project-module-page .lv-inline-table th:nth-child(5){
  text-align:center;
  font-variant-numeric:tabular-nums;
}

/* Center values in all listing tables instead of right */
.dashboard-project-table td:nth-child(3),
.dashboard-project-table td:nth-child(4),
.dashboard-project-table td:nth-child(5){
  text-align:center !important;
}
.dashboard-box td:nth-child(6),
.dashboard-box td:nth-child(7),
.dashboard-box td:nth-child(8){
  text-align:center !important;
}
.dashboard-box .table-numeric,
.panel-card .table-numeric,
.sheet-list-table .table-numeric{
  text-align:center !important;
}
.sheet-list-table td,
.sheet-list-table th{
  text-align:center;
}
.sheet-list-table td:first-child,
.sheet-list-table th:first-child{
  text-align:center;
}

@media (max-width:1000px){
  .project-module-page .sheet-header,
  .project-module-page .sheet-meta{
    grid-template-columns:1fr;
  }
  .project-module-page .menu-ribbon{
    padding:16px;
  }
}


/* Header brand baseline alignment */
.brand{
  display:flex !important;
  align-items:flex-end !important;
  gap:10px !important;
}

.brand img{
  width:auto !important;
  height:48px !important;
  object-fit:contain;
  opacity:.96;
  flex:0 0 auto;
}

.brand-text{
  display:flex !important;
  flex-direction:column !important;
  justify-content:flex-end !important;
  align-self:flex-end !important;
  gap:0 !important;
  line-height:1 !important;
  padding-bottom:12px;
}

.brand-sub{
  font-size:.72rem !important;
  line-height:1 !important;
  color:rgba(237,245,238,.64) !important;
  white-space:nowrap !important;
  margin:0 !important;
}

@media (max-width: 1000px){
  .brand{
    gap:8px !important;
  }
  .brand img{
    width:auto !important;
    height:48px !important;
  }
  .brand-text{
    padding-bottom:12px !important;
  }
  .brand-sub{
    font-size:.68rem !important;
  }
}
@media (max-width: 750px){.brand-sub{display:none;}}

/* Mobile dropdown menu fix */
.site-header{
  position:sticky;
  top:0;
  z-index:100;
}

.site-header .nav{
  position:relative;
}

.nav-links a{
  display:inline-flex;
  align-items:center;
}

@media (max-width: 1000px){
  .menu-toggle{
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    width:42px;
    height:42px;
    border:1px solid var(--line);
    border-radius:12px;
    background:rgba(255,255,255,.04);
    color:var(--text);
    cursor:pointer;
    margin-left:auto;
    flex:0 0 auto;
  }

  .nav-actions{
    display:none !important;
  }

  .nav-links{
    position:absolute !important;
    top:calc(100% + 10px) !important;
    left:0 !important;
    right:0 !important;
    z-index:120 !important;
    display:none !important;
    flex-direction:column !important;
    align-items:flex-start !important;
    gap:0 !important;
    padding:10px !important;
    margin-left:0 !important;
    border:1px solid rgba(255,255,255,.10) !important;
    border-radius:18px !important;
    background:rgba(8,14,11,.98) !important;
    box-shadow:0 18px 40px rgba(0,0,0,.35) !important;
    backdrop-filter:blur(14px);
  }

  .nav-links.open{
    display:flex !important;
  }

  .nav-links a{
    width:100%;
    min-height:44px;
    padding:10px 12px;
    border-radius:12px;
  }

  .nav-links a:hover{
    background:rgba(255,255,255,.05);
  }
}

@media (min-width: 1001px){
  .nav-links{
    display:flex !important;
  }
  .nav-links.open{
    display:flex !important;
  }
}




/* Header brand alignment */
.brand{
  display:flex !important;
  align-items:flex-end !important;
  gap:10px !important;
}
.brand img{
  width:auto !important;
  height:48px !important;
  object-fit:contain;
  opacity:.96;
  flex:0 0 auto;
}
.brand-text{
  display:flex !important;
  flex-direction:column !important;
  justify-content:flex-end !important;
  align-self:flex-end !important;
  gap:0 !important;
  line-height:1 !important;
  padding-bottom:12px;
}
.brand-sub{
  font-size:.72rem !important;
  line-height:1 !important;
  color:rgba(237,245,238,.64) !important;
  white-space:nowrap !important;
  margin:0 !important;
}
@media (max-width: 1000px){
  .brand{ gap:8px !important; }
  .brand img{ width:auto !important; height:48px !important; }
  .brand-text{ padding-bottom:12px !important; }
  .brand-sub{ font-size:.68rem !important; }
}
@media (max-width: 750px){
  .brand-sub{ display:none; }
}

/* Mobile dropdown menu */
.site-header{
  position:sticky;
  top:0;
  z-index:100;
}
.site-header .nav{
  position:relative;
}
.nav-links a{
  display:inline-flex;
  align-items:center;
}
@media (max-width: 1000px){
  .menu-toggle{
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    width:42px;
    height:42px;
    border:1px solid var(--line);
    border-radius:12px;
    background:rgba(255,255,255,.04);
    color:var(--text);
    cursor:pointer;
    margin-left:auto;
    flex:0 0 auto;
  }
  .nav-actions{
    display:none !important;
  }
  .nav-links{
    position:absolute !important;
    top:calc(100% + 10px) !important;
    left:0 !important;
    right:0 !important;
    z-index:120 !important;
    display:none !important;
    flex-direction:column !important;
    align-items:flex-start !important;
    gap:0 !important;
    padding:10px !important;
    margin-left:0 !important;
    border:1px solid rgba(255,255,255,.10) !important;
    border-radius:18px !important;
    background:rgba(8,14,11,.98) !important;
    box-shadow:0 18px 40px rgba(0,0,0,.35) !important;
    backdrop-filter:blur(14px);
  }
  .nav-links.open{
    display:flex !important;
  }
  .nav-links a{
    width:100%;
    min-height:44px;
    padding:10px 12px;
    border-radius:12px;
  }
  .nav-links a:hover{
    background:rgba(255,255,255,.05);
  }
}
@media (min-width: 1001px){
  .nav-links,
  .nav-links.open{
    display:flex !important;
  }
}

/* Final Aufmaß layout */
.project-module-page .matrix-wrap{
  width:100%;
  overflow-x:auto;
  overflow-y:visible;
  -webkit-overflow-scrolling:touch;
}
.project-module-page .matrix-sheet-table{
  width:max-content !important;
  min-width:100% !important;
  table-layout:fixed !important;
}
.project-module-page .matrix-sheet-table,
.project-module-page .matrix-sheet-table th,
.project-module-page .matrix-sheet-table td,
.project-module-page .matrix-sheet-table input,
.project-module-page .matrix-sheet-table select,
.project-module-page .matrix-sheet-table textarea,
.project-module-page .matrix-sheet-table .matrix-head-text,
.project-module-page .matrix-sheet-table .matrix-head-pos{
  font-size:calc(1em - 2px) !important;
}
.project-module-page .matrix-sheet-table .room-col,
.project-module-page .matrix-sheet-table .matrix-room-cell{
  width:300px !important;
  min-width:300px !important;
  max-width:300px !important;
  vertical-align:top !important;
}
.project-module-page .matrix-sheet-table .lv-col{
  width:90px !important;
  min-width:90px !important;
  max-width:90px !important;
}
.project-module-page .matrix-sheet-table input,
.project-module-page .matrix-sheet-table textarea,
.project-module-page .matrix-sheet-table select{
  border-radius:0 !important;
}
.project-module-page .matrix-sheet-table .matrix-room-cell input,
.project-module-page .matrix-sheet-table .room-col input{
  width:100% !important;
  min-width:100% !important;
  white-space:normal !important;
  overflow-wrap:anywhere !important;
  word-break:break-word !important;
  line-height:1.2 !important;
}
.project-module-page .matrix-sheet-table .lv-col input,
.project-module-page .matrix-sheet-table .lv-col select,
.project-module-page .matrix-sheet-table .lv-col .sheet-lv-search{
  width:100% !important;
  min-width:100% !important;
}
.project-module-page .matrix-sheet-table input,
.project-module-page .matrix-sheet-table select,
.project-module-page .matrix-sheet-table textarea{
  padding:4px 5px !important;
}
.project-module-page .matrix-vertical-head{
  min-width:100%;
  width:100%;
}
