:root{
  --navy:#122a46;
  --navy-2:#0c1f35;
  --blue:#0d6efd;
  --blue-2:#075bd8;
  --bg:#f4f7fb;
  --card:#ffffff;
  --text:#101828;
  --muted:#667085;
  --border:#d9e2ef;
  --green:#0f8f50;
  --green-bg:#eaf8f0;
  --red:#c83532;
  --red-bg:#fff0ef;
  --amber:#b86b00;
  --amber-bg:#fff5df;
  --shadow:0 14px 38px rgba(16,24,40,.10);
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--text);
  background:var(--bg);
}
button,input,select{font:inherit}
button{cursor:pointer}
a{color:var(--blue);text-decoration:none}
.hidden{display:none!important}

.loading-screen{
  min-height:100vh;
  display:grid;
  place-items:center;
  color:var(--muted);
}

/* Auth */
.auth-shell{
  min-height:100vh;
  display:grid;
  grid-template-columns:minmax(360px,1.15fr) minmax(420px,.85fr);
  background:#eef3f8;
}
.hero{
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:flex-end;
  padding:56px;
  color:white;
  background:
    linear-gradient(180deg,rgba(9,29,51,.22),rgba(9,29,51,.88)),
    radial-gradient(circle at 20% 15%,rgba(255,255,255,.18),transparent 30%),
    linear-gradient(135deg,#1e426b,#0b1f35 70%);
}
.hero:after{
  content:"";
  position:absolute;
  width:520px;height:220px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:50%;
  right:-120px;bottom:40px;
  transform:rotate(-8deg);
}
.hero-content{max-width:560px;position:relative;z-index:1}
.brand{
  font-family:"Playfair Display",serif;
  font-size:34px;
  letter-spacing:.16em;
  line-height:1.05;
}
.brand small{
  display:block;
  font-family:Inter,sans-serif;
  font-size:11px;
  letter-spacing:.42em;
  margin-top:10px;
  opacity:.92;
}
.hero h1{font-size:44px;margin:68px 0 10px}
.hero p{font-size:18px;line-height:1.6;opacity:.92}
.auth-panel{
  display:grid;
  place-items:center;
  padding:40px 24px;
}
.auth-card{
  width:min(460px,100%);
  background:var(--card);
  border-radius:18px;
  box-shadow:var(--shadow);
  padding:34px;
}
.tabs{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:6px;
  background:#f1f4f8;
  border-radius:10px;
  padding:4px;
  margin-bottom:26px;
}
.tab{
  border:0;
  border-radius:8px;
  padding:11px;
  background:transparent;
  color:var(--muted);
  font-weight:600;
}
.tab.active{background:#fff;color:var(--blue);box-shadow:0 2px 8px rgba(16,24,40,.08)}
.form-grid{display:grid;gap:14px}
label{font-size:13px;color:#344054;font-weight:600}
.field{display:grid;gap:7px}
input,select{
  width:100%;
  min-height:44px;
  border:1px solid var(--border);
  border-radius:9px;
  padding:10px 12px;
  color:var(--text);
  background:white;
  outline:none;
}
input:focus,select:focus{border-color:#93b8ff;box-shadow:0 0 0 3px rgba(13,110,253,.10)}
.primary{
  border:0;
  background:linear-gradient(180deg,var(--blue),var(--blue-2));
  color:white;
  font-weight:700;
  padding:12px 18px;
  border-radius:9px;
}
.secondary{
  border:1px solid var(--border);
  background:white;
  color:var(--text);
  font-weight:600;
  padding:10px 14px;
  border-radius:9px;
}
.danger{
  border:1px solid #f3b8b6;
  background:#fff;
  color:var(--red);
  font-weight:600;
  padding:10px 14px;
  border-radius:9px;
}
.notice{
  border-radius:10px;
  padding:11px 13px;
  font-size:14px;
  margin:14px 0;
}
.notice.error{background:var(--red-bg);color:var(--red)}
.notice.success{background:var(--green-bg);color:var(--green)}
.notice.info{background:#eef5ff;color:#2457a6}

/* App */
.topbar{
  height:72px;
  background:#fff;
  border-bottom:1px solid #e6ebf2;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 28px;
  position:sticky;
  top:0;
  z-index:10;
}
.topbar .brand{
  color:var(--navy);
  font-size:22px;
}
.topbar .brand small{font-size:8px}
.top-actions{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:14px}
.page{
  max-width:1280px;
  margin:0 auto;
  padding:30px 24px 56px;
}
.page-title-row{
  display:flex;
  gap:18px;
  align-items:center;
  justify-content:space-between;
  margin-bottom:22px;
}
h1,h2,h3{margin:0}
h1{font-size:28px}
.muted{color:var(--muted)}
.card{
  background:#fff;
  border:1px solid #e5eaf1;
  border-radius:14px;
  box-shadow:0 6px 18px rgba(16,24,40,.04);
}
.toolbar{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}
.month-nav{
  display:flex;
  align-items:center;
  gap:8px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:9px;
  padding:4px;
}
.month-nav button{border:0;background:transparent;padding:8px 10px;border-radius:7px}
.month-label{min-width:155px;text-align:center;font-weight:700}
.table-wrap{overflow:auto}
table{
  width:100%;
  border-collapse:collapse;
  min-width:760px;
}
th,td{
  padding:11px 12px;
  border-bottom:1px solid #edf1f5;
  text-align:left;
  white-space:nowrap;
}
th{
  background:#f8fafc;
  font-size:12px;
  color:#475467;
  text-transform:uppercase;
  letter-spacing:.03em;
}
td input{
  min-height:38px;
  padding:7px 9px;
  border-radius:7px;
}
.hours{
  background:#eefaf3;
  font-weight:700;
  color:#145c38;
}
.weekend{background:#fbfcfe}
.actions-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:18px;
}
.total-box{
  margin-left:auto;
  min-width:220px;
  background:#eff6ff;
  border:1px solid #d7e8ff;
  border-radius:10px;
  padding:13px 18px;
  text-align:right;
}
.total-box span{display:block;font-size:12px;color:#475467;margin-bottom:4px}
.total-box strong{font-size:28px;color:#15365a}
.badge{
  display:inline-flex;
  align-items:center;
  padding:5px 9px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
}
.badge.ok{background:var(--green-bg);color:var(--green)}
.badge.warn{background:var(--amber-bg);color:var(--amber)}
.badge.none{background:var(--red-bg);color:var(--red)}
.admin-layout{
  display:grid;
  grid-template-columns:220px 1fr;
  min-height:calc(100vh - 72px);
}
.sidebar{
  background:linear-gradient(180deg,var(--navy),var(--navy-2));
  color:white;
  padding:24px 16px;
}
.sidebar h3{font-size:12px;text-transform:uppercase;letter-spacing:.12em;opacity:.7;margin:12px 10px}
.sidebar button{
  width:100%;
  text-align:left;
  border:0;
  background:transparent;
  color:white;
  padding:12px 13px;
  border-radius:9px;
  margin:3px 0;
}
.sidebar button.active,.sidebar button:hover{background:rgba(255,255,255,.12)}
.admin-main{padding:30px 24px 56px}
.clickable{cursor:pointer}
.clickable:hover{background:#f8fbff}
.mobile-note{display:none}

@media(max-width:900px){
  .auth-shell{grid-template-columns:1fr}
  .hero{display:none}
  .admin-layout{grid-template-columns:1fr}
  .sidebar{
    display:flex;
    gap:8px;
    overflow:auto;
    padding:10px;
  }
  .sidebar h3{display:none}
  .sidebar button{width:auto;white-space:nowrap}
  .page-title-row{align-items:flex-start;flex-direction:column}
}
@media(max-width:640px){
  .topbar{padding:0 14px}
  .topbar .brand{font-size:17px}
  .top-actions .user-name{display:none}
  .page,.admin-main{padding:18px 12px 40px}
  .auth-panel{padding:16px}
  .auth-card{padding:24px 18px}
  .actions-row{align-items:stretch;flex-direction:column}
  .total-box{margin:0;width:100%;text-align:left}
  .mobile-note{display:block}
}


/* Mitarbeiterportal */
.employee-layout{
  display:grid;
  grid-template-columns:220px minmax(0,1fr);
  min-height:calc(100vh - 72px);
}
.employee-main{
  width:100%;
  max-width:1180px;
  padding:34px 38px 60px;
}
.employee-welcome{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  margin-bottom:28px;
}
.eyebrow{
  color:#58708c;
  font-size:11px;
  font-weight:800;
  letter-spacing:.14em;
  margin-bottom:8px;
}
.employee-welcome h1,.employee-entry-header h1{
  font-size:30px;
  margin-bottom:7px;
}
.month-section{
  max-width:920px;
}
.section-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:14px;
}
.section-heading h2{font-size:18px;margin-bottom:3px}
.month-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.month-card{
  min-height:92px;
  border:1px solid #e2e8f0;
  border-radius:13px;
  background:#fff;
  padding:16px;
  display:grid;
  grid-template-columns:34px 1fr 18px;
  gap:10px;
  align-items:center;
  text-align:left;
  color:var(--text);
  box-shadow:0 4px 14px rgba(16,24,40,.035);
  transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease;
}
.month-card:hover{
  transform:translateY(-1px);
  border-color:#b8c9dc;
  box-shadow:0 8px 20px rgba(16,24,40,.07);
}
.month-card.current{border-color:#9bb8d7;background:#fbfdff}
.month-card-icon{
  width:32px;height:32px;
  display:grid;place-items:center;
  border-radius:9px;
  background:#eef4fa;
  color:var(--navy);
  font-size:15px;
}
.month-card strong{display:block;font-size:15px}
.month-card small{display:block;color:var(--muted);font-size:12px;margin-top:5px;font-weight:500}
.month-card-arrow{font-size:24px;color:#8a9aae}
.employee-entry-header{
  max-width:980px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:20px;
}
.back-link{
  border:0;
  background:transparent;
  color:#506780;
  padding:0;
  margin:0 0 13px;
  font-size:13px;
  font-weight:700;
}
.back-link:hover{color:var(--blue)}
.compact-total{
  min-width:150px;
  background:#fff;
  border:1px solid #dce5ef;
  border-radius:12px;
  padding:10px 14px;
  text-align:right;
}
.compact-total span{display:block;font-size:11px;color:var(--muted);margin-bottom:2px}
.compact-total strong{font-size:20px;color:#15365a}
.employee-time-card{
  max-width:980px;
  overflow:hidden;
}
.employee-time-table{min-width:700px}
.employee-time-table th,.employee-time-table td{padding:7px 10px}
.employee-time-table td input{
  min-height:32px;
  height:32px;
  padding:4px 7px;
  font-size:13px;
}
.employee-time-table th{font-size:11px}
.employee-time-table td{font-size:13px}
.employee-save-row{
  display:flex;
  justify-content:flex-end;
  padding:14px 16px;
  border-top:1px solid #edf1f5;
  background:#fbfcfe;
}
.employee-save-row .primary{padding:10px 16px}
.employee-sidebar button.active{background:rgba(255,255,255,.14)}

@media(max-width:1000px){
  .month-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:900px){
  .employee-layout{grid-template-columns:1fr}
  .employee-sidebar{
    display:flex;
    gap:8px;
    overflow:auto;
    padding:10px;
  }
  .employee-sidebar h3{display:none}
  .employee-sidebar button{width:auto;white-space:nowrap}
  .employee-main{padding:24px 18px 48px}
}
@media(max-width:640px){
  .month-grid{grid-template-columns:1fr}
  .employee-entry-header{align-items:stretch;flex-direction:column}
  .compact-total{width:100%;text-align:left}
  .employee-main{padding:20px 12px 40px}
}


/* Geordnete Monatsauswahl */
.year-groups{
  display:grid;
  gap:28px;
}
.year-group{
  display:grid;
  gap:12px;
}
.year-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 2px 8px;
  border-bottom:1px solid #dde5ee;
}
.year-heading h2{
  font-size:20px;
  color:var(--navy);
}
.year-heading span{
  font-size:12px;
  color:var(--muted);
}
.month-grid-ordered{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
@media(max-width:780px){
  .month-grid-ordered{
    grid-template-columns:1fr;
  }
}


/* Nebenkosten */
textarea{
  width:100%;
  border:1px solid var(--border);
  border-radius:9px;
  padding:11px 12px;
  color:var(--text);
  background:#fff;
  outline:none;
  resize:vertical;
  font:inherit;
}
textarea:focus{
  border-color:#93b8ff;
  box-shadow:0 0 0 3px rgba(13,110,253,.10);
}
.expense-layout{
  max-width:1120px;
  display:grid;
  gap:22px;
}
.expense-form-card,.expense-history-card,.admin-expense-card{
  overflow:hidden;
}
.card-heading{
  padding:20px 22px 16px;
  border-bottom:1px solid #edf1f5;
}
.card-heading h2{
  font-size:18px;
  margin-bottom:4px;
}
.expense-form{
  padding:20px 22px 22px;
}
.expense-form-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}
.expense-wide{
  grid-column:1/-1;
}
.file-input{
  position:absolute;
  opacity:0;
  pointer-events:none;
  width:1px;
  height:1px;
}
.upload-box{
  min-height:92px;
  border:1px dashed #aebfd1;
  border-radius:11px;
  background:#f8fbfe;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  text-align:center;
  padding:16px;
  cursor:pointer;
}
.upload-box:hover{
  border-color:#6f91b4;
  background:#f3f8fd;
}
.upload-box strong{
  color:var(--navy);
  font-size:14px;
}
.upload-box span,.file-name{
  font-size:12px;
}
.expense-submit-row{
  display:flex;
  justify-content:flex-end;
  padding-top:18px;
}
.expense-table{
  min-width:900px;
}
.expense-reason-cell{
  max-width:320px;
  white-space:normal;
  line-height:1.4;
}
.empty-cell{
  padding:28px 18px;
  text-align:center;
  color:var(--muted);
}
.receipt-btn,.admin-receipt-btn{
  padding:7px 10px;
  font-size:12px;
}
.table-sub{
  display:block;
  color:var(--muted);
  font-size:11px;
  font-weight:500;
  margin-top:4px;
}
.pending-counter{
  min-width:100px;
  background:#fff7e8;
  border:1px solid #f2dfb5;
  border-radius:12px;
  padding:10px 16px;
  text-align:center;
}
.pending-counter span{
  display:block;
  color:var(--amber);
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.05em;
}
.pending-counter strong{
  display:block;
  font-size:24px;
  margin-top:2px;
  color:#7d4b00;
}
.admin-expense-card{
  margin-bottom:22px;
}
.expense-archive{
  opacity:.96;
}
.expense-actions{
  display:flex;
  align-items:center;
  gap:7px;
}
.approve-btn,.reject-btn{
  border:0;
  border-radius:8px;
  padding:8px 10px;
  font-size:12px;
  font-weight:700;
}
.approve-btn{
  background:var(--green-bg);
  color:var(--green);
}
.reject-btn{
  background:var(--red-bg);
  color:var(--red);
}
button:disabled{
  opacity:.65;
  cursor:not-allowed;
}
@media(max-width:900px){
  .expense-form-grid{
    grid-template-columns:1fr 1fr;
  }
}
@media(max-width:640px){
  .expense-form-grid{
    grid-template-columns:1fr;
  }
  .expense-wide{
    grid-column:auto;
  }
  .expense-form,.card-heading{
    padding-left:16px;
    padding-right:16px;
  }
}


/* =========================================================
   ELITECAR TRANSFER – Login exakt nach freigegebenem Entwurf
   ========================================================= */
.exact-auth{
  min-height:100vh;
  display:grid;
  grid-template-columns:59.6% 40.4%;
  background:#f8fafc;
}

.exact-auth-hero{
  min-height:100vh;
  background-image:url("login-hero.jpg");
  background-size:cover;
  background-position:center center;
  background-repeat:no-repeat;
}

.exact-auth-panel{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:42px 34px;
  background:
    radial-gradient(circle at 70% 20%,rgba(255,255,255,.98),rgba(247,249,252,.96) 55%,#f2f5f8 100%);
}

.exact-auth-card{
  width:min(500px,100%);
  background:#fff;
  border:1px solid #edf1f5;
  border-radius:17px;
  box-shadow:0 18px 50px rgba(12,31,53,.08);
  padding:28px 36px 30px;
}

.exact-tabs{
  margin:0 0 40px;
  background:#f2f4f7;
  border-radius:10px;
  padding:0;
  gap:0;
  overflow:hidden;
}
.exact-tabs .tab{
  min-height:51px;
  border-radius:10px;
  font-size:16px;
  color:#111827;
}
.exact-tabs .tab.active{
  background:linear-gradient(180deg,#0b4f82,#073e68);
  color:#fff;
  box-shadow:none;
}

.exact-auth-heading{
  margin-bottom:34px;
}
.exact-auth-heading h1{
  margin:0 0 6px;
  font-family:Inter,system-ui,sans-serif;
  font-size:31px;
  line-height:1.18;
  letter-spacing:-.035em;
  color:#0b1728;
}
.exact-auth-heading p{
  margin:0;
  color:#617083;
  font-size:16px;
}

.exact-form{
  gap:18px;
}
.exact-form label{
  font-size:15px;
  color:#101828;
  font-weight:650;
}
.input-with-icon{
  position:relative;
}
.input-with-icon input{
  padding-left:50px;
  padding-right:46px;
}
.input-icon{
  position:absolute;
  z-index:2;
  left:17px;
  top:50%;
  transform:translateY(-50%);
  color:#50647a;
  font-size:20px;
  pointer-events:none;
}
.password-toggle{
  position:absolute;
  right:12px;
  top:50%;
  transform:translateY(-50%);
  border:0;
  background:transparent;
  color:#8795a7;
  font-size:17px;
  padding:8px;
}
.exact-form input{
  min-height:55px;
  border-radius:10px;
  border-color:#d8e0e9;
  background:#fff;
  font-size:16px;
}
.exact-form input::placeholder{
  color:#a6b1bf;
}
.exact-form input:focus{
  border-color:#7da6c7;
  box-shadow:0 0 0 3px rgba(11,79,130,.08);
}

.login-options{
  margin-top:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.remember-row{
  display:flex;
  align-items:center;
  gap:9px;
  font-weight:500!important;
  cursor:pointer;
}
.remember-row input{
  width:21px;
  height:21px;
  min-height:0;
  padding:0;
  accent-color:#0b4f82;
}
.forgot-link{
  border:0;
  background:transparent;
  color:#07549b;
  padding:4px 0;
  font-size:14px;
  font-weight:600;
}

.exact-login-btn{
  min-height:58px;
  border-radius:9px;
  margin-top:3px;
  background:linear-gradient(90deg,#083e69,#07558e);
  font-size:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:15px;
}
.exact-login-btn span{
  font-size:25px;
  line-height:1;
}

.auth-divider{
  display:flex;
  align-items:center;
  gap:14px;
  color:#667085;
  margin:2px 0;
}
.auth-divider:before,.auth-divider:after{
  content:"";
  height:1px;
  background:#e0e5ea;
  flex:1;
}
.auth-divider span{
  font-size:14px;
}

.register-outline{
  min-height:57px;
  border:1.5px solid #07549b;
  border-radius:9px;
  background:#fff;
  color:#073f72;
  font-size:16px;
  font-weight:700;
}
.register-outline:hover{
  background:#f8fbff;
}

.register-name-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.exact-auth-security{
  margin-top:40px;
  color:#7e8b9b;
  text-align:center;
  font-size:13px;
}

@media(max-width:1100px){
  .exact-auth{
    grid-template-columns:55% 45%;
  }
  .exact-auth-card{
    padding:26px 28px;
  }
}

@media(max-width:900px){
  .exact-auth{
    display:block;
  }
  .exact-auth-hero{
    display:none;
  }
  .exact-auth-panel{
    min-height:100vh;
    padding:26px 16px;
  }
  .exact-auth-card{
    width:min(510px,100%);
  }
}

@media(max-width:520px){
  .exact-auth-card{
    padding:22px 18px 24px;
  }
  .exact-tabs{
    margin-bottom:30px;
  }
  .exact-auth-heading h1{
    font-size:27px;
  }
  .exact-auth-heading p{
    font-size:14px;
  }
  .register-name-grid{
    grid-template-columns:1fr;
  }
  .login-options{
    align-items:flex-start;
    flex-direction:column;
  }
}


/* Login-Seite: optimierte Proportionen */
@media(min-width:901px){
  .exact-auth{
    grid-template-columns:52% 48%;
  }
  .exact-auth-hero{
    background-size:cover;
    background-position:center center;
  }
  .exact-auth-panel{
    padding-left:48px;
    padding-right:48px;
  }
  .exact-auth-card{
    width:min(500px,100%);
  }
}


/* =========================================================
   Premium Corporate Login – Feinschliff
   ========================================================= */

@media(min-width:901px){
  .exact-auth{
    grid-template-columns:50% 50%;
    background:#f5f7fa;
  }

  .exact-auth-hero{
    position:relative;
    background-size:cover;
    background-position:center center;
    box-shadow:inset -1px 0 0 rgba(255,255,255,.08);
  }

  .exact-auth-hero:after{
    content:"";
    position:absolute;
    inset:0;
    background:
      linear-gradient(90deg,rgba(5,20,34,.10),rgba(5,20,34,.02) 50%,rgba(5,20,34,.16)),
      linear-gradient(0deg,rgba(5,20,34,.18),transparent 42%);
    pointer-events:none;
  }

  .exact-auth-panel{
    padding:64px 72px;
    background:
      linear-gradient(180deg,#fbfcfe 0%,#f5f7fa 100%);
  }

  .exact-auth-card{
    width:min(520px,100%);
    border:1px solid #e7ebf0;
    border-radius:14px;
    padding:34px 38px 30px;
    box-shadow:
      0 1px 2px rgba(16,24,40,.02),
      0 14px 34px rgba(16,24,40,.055);
  }
}

.exact-tabs{
  background:#f3f5f7;
  border:1px solid #eceff3;
  border-radius:9px;
  padding:4px;
  gap:4px;
  overflow:visible;
  margin-bottom:34px;
}

.exact-tabs .tab{
  min-height:44px;
  border-radius:7px;
  font-size:14px;
  font-weight:700;
  letter-spacing:.005em;
}

.exact-tabs .tab.active{
  background:#0d2d4a;
  color:#fff;
  box-shadow:0 2px 6px rgba(13,45,74,.18);
}

.exact-auth-heading{
  margin-bottom:28px;
}

.exact-auth-heading h1{
  font-size:32px;
  line-height:1.15;
  font-weight:750;
  letter-spacing:-.03em;
  color:#0e1b2a;
}

.exact-auth-heading p{
  margin-top:7px;
  font-size:15px;
  color:#6d7886;
}

.exact-form{
  gap:16px;
}

.exact-form label{
  font-size:13px;
  font-weight:700;
  color:#253446;
}

.exact-form input{
  min-height:50px;
  border-radius:8px;
  border:1px solid #d8e0e8;
  background:#fff;
  font-size:15px;
  transition:border-color .16s ease, box-shadow .16s ease;
}

.exact-form input:hover{
  border-color:#c4ced8;
}

.exact-form input:focus{
  border-color:#6f8daa;
  box-shadow:0 0 0 3px rgba(13,45,74,.07);
}

.input-icon{
  color:#6f8193;
  font-size:16px;
}

.password-toggle{
  color:#8795a5;
}

.login-options{
  margin-top:0;
  min-height:28px;
}

.remember-row{
  font-size:13px;
  color:#3b4755;
}

.remember-row input{
  width:18px;
  height:18px;
}

.forgot-link{
  font-size:13px;
  color:#0b5a91;
  font-weight:650;
}

.exact-login-btn{
  min-height:52px;
  border-radius:8px;
  background:#0d2d4a;
  box-shadow:0 5px 14px rgba(13,45,74,.14);
  font-size:14px;
  font-weight:750;
  letter-spacing:.01em;
}

.exact-login-btn:hover{
  background:#123a5e;
}

.exact-login-btn span{
  font-size:20px;
}

.auth-divider{
  margin:3px 0;
  color:#8994a1;
}

.auth-divider span{
  font-size:12px;
}

.register-outline{
  min-height:50px;
  border-radius:8px;
  border:1px solid #9fb3c6;
  color:#173e61;
  background:#fff;
  font-size:14px;
  font-weight:700;
}

.register-outline:hover{
  border-color:#6f8daa;
  background:#fafcff;
}

.exact-auth-security{
  margin-top:28px;
  font-size:11px;
  letter-spacing:.01em;
  color:#9aa5b1;
}

@media(max-width:1100px) and (min-width:901px){
  .exact-auth-panel{
    padding:48px 42px;
  }
  .exact-auth-card{
    padding:30px 30px 28px;
  }
}


/* Footer links unten im linken Login-Bild */
@media(min-width:901px){
  .exact-auth-hero::before{
    content:"ELITECAR TRANSFER  ·  MITARBEITERPORTAL";
    position:absolute;
    left:54px;
    bottom:28px;
    z-index:3;
    color:rgba(255,255,255,.78);
    font-size:11px;
    font-weight:700;
    letter-spacing:.18em;
    text-transform:uppercase;
    pointer-events:none;
  }
}


/* =========================================================
   ORIGINAL ELITECAR LOGIN – wie die erste Version
   ========================================================= */
.original-auth{
  min-height:100vh !important;
  display:grid !important;
  grid-template-columns:1.05fr .95fr !important;
  background:#f4f7fb !important;
}
.original-hero{
  position:relative !important;
  min-height:100vh !important;
  display:flex !important;
  align-items:center !important;
  overflow:hidden !important;
  padding:56px !important;
  color:#fff !important;
  background:
    radial-gradient(circle at 20% 15%,rgba(255,255,255,.18),transparent 30%),
    linear-gradient(135deg,#1e426b,#0b1f35 70%) !important;
  background-image:
    radial-gradient(circle at 20% 15%,rgba(255,255,255,.18),transparent 30%),
    linear-gradient(135deg,#1e426b,#0b1f35 70%) !important;
}
.original-hero:before{
  content:none !important;
}
.original-hero:after{
  content:"" !important;
  position:absolute !important;
  width:520px !important;
  height:220px !important;
  border:1px solid rgba(255,255,255,.10) !important;
  border-radius:50% !important;
  right:-120px !important;
  bottom:40px !important;
  transform:rotate(-8deg) !important;
  inset:auto !important;
  background:none !important;
}
.original-hero .hero-content{
  max-width:560px !important;
  position:relative !important;
  z-index:2 !important;
  left:auto !important;
  bottom:auto !important;
}
.original-hero .brand{
  font-family:"Playfair Display",serif !important;
  font-size:34px !important;
  letter-spacing:.16em !important;
  line-height:1.05 !important;
}
.original-hero .brand small{
  display:block !important;
  font-family:Inter,sans-serif !important;
  font-size:11px !important;
  letter-spacing:.42em !important;
  margin-top:10px !important;
  opacity:.92 !important;
}
.portal-label{
  display:inline-block;
  margin-top:22px;
  padding:7px 10px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:6px;
  font-size:10px;
  font-weight:700;
  letter-spacing:.18em;
  color:rgba(255,255,255,.82);
}
.original-hero h1{
  font-family:Inter,sans-serif !important;
  font-size:44px !important;
  margin:52px 0 10px !important;
  font-weight:700 !important;
  letter-spacing:-.02em !important;
}
.original-hero p{
  max-width:520px !important;
  margin:0 !important;
  font-size:18px !important;
  line-height:1.6 !important;
  color:#fff !important;
  opacity:.92 !important;
}
.original-footer{
  position:absolute;
  left:56px;
  bottom:30px;
  z-index:2;
  font-size:10px;
  font-weight:700;
  letter-spacing:.15em;
  color:rgba(255,255,255,.48);
}
.original-auth-panel{
  min-height:100vh !important;
  display:grid !important;
  place-items:center !important;
  padding:40px 24px !important;
  background:#f4f7fb !important;
}
.original-auth-card{
  width:min(460px,100%) !important;
  background:#fff !important;
  border:0 !important;
  border-radius:18px !important;
  box-shadow:0 14px 38px rgba(16,24,40,.10) !important;
  padding:34px !important;
}
.original-auth-card .tabs{
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:6px !important;
  background:#f1f4f8 !important;
  border:0 !important;
  border-radius:10px !important;
  padding:4px !important;
  margin-bottom:26px !important;
}
.original-auth-card .tab{
  border:0 !important;
  border-radius:8px !important;
  padding:11px !important;
  min-height:auto !important;
  background:transparent !important;
  color:var(--muted) !important;
  font-size:14px !important;
  font-weight:600 !important;
}
.original-auth-card .tab.active{
  background:#fff !important;
  color:var(--blue) !important;
  box-shadow:0 2px 8px rgba(16,24,40,.08) !important;
}
.original-auth-card .form-grid{gap:14px !important}
.original-auth-card label{
  font-size:13px !important;
  color:#344054 !important;
  font-weight:600 !important;
}
.original-auth-card input{
  width:100% !important;
  min-height:44px !important;
  border:1px solid var(--border) !important;
  border-radius:9px !important;
  padding:10px 12px !important;
  color:var(--text) !important;
  background:#fff !important;
  font-size:14px !important;
}
.original-auth-card input:focus{
  border-color:#93b8ff !important;
  box-shadow:0 0 0 3px rgba(13,110,253,.10) !important;
}
.original-auth-card .primary{
  min-height:auto !important;
  border:0 !important;
  background:linear-gradient(180deg,var(--blue),var(--blue-2)) !important;
  color:#fff !important;
  font-weight:700 !important;
  font-size:14px !important;
  padding:12px 18px !important;
  border-radius:9px !important;
  box-shadow:none !important;
}

@media(max-width:900px){
  .original-auth{
    grid-template-columns:1fr !important;
  }
  .original-hero{
    display:none !important;
  }
  .original-auth-panel{
    min-height:100vh !important;
    padding:20px 16px !important;
  }
}
@media(max-width:640px){
  .original-auth-card{
    padding:24px 18px !important;
  }
}


/* Gewünschte Bereinigung links */
.original-hero::after{
  content:none !important;
  display:none !important;
}

.original-hero h1,
.original-hero p{
  display:none !important;
}


/* Dezente Fahrzeugkontur über dem ELITECAR-Schriftzug */
.brand-logo-wrap{
  display:inline-flex;
  flex-direction:column;
  align-items:flex-start;
}

.car-silhouette{
  width:220px;
  height:54px;
  margin:0 0 6px -2px;
  overflow:visible;
  opacity:.42;
}

.car-silhouette path{
  fill:none;
  stroke:rgba(255,255,255,.88);
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
  vector-effect:non-scaling-stroke;
}

@media(max-width:1100px){
  .car-silhouette{
    width:190px;
    height:48px;
  }
}


/* =========================================================
   Dashboard, Monatsabschluss, Benachrichtigungen & Admin KPIs
   ========================================================= */
.nav-count{
  float:right; min-width:22px; height:22px; padding:0 6px; display:inline-grid; place-items:center;
  border-radius:999px; background:rgba(255,255,255,.15); font-size:11px; font-weight:700;
}
.dashboard-hero{
  display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:24px;
}
.dashboard-hero h1{margin:4px 0 6px;font-size:32px}
.dashboard-status{padding-bottom:3px}
.dashboard-kpis{
  display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-bottom:22px;
}
.admin-kpis{grid-template-columns:repeat(5,minmax(0,1fr))}
.kpi-card{
  background:#fff; border:1px solid var(--border); border-radius:14px; padding:18px 20px;
  box-shadow:0 6px 18px rgba(16,24,40,.04);
}
.kpi-card span{display:block;color:var(--muted);font-size:12px;font-weight:600;margin-bottom:8px}
.kpi-card strong{font-size:24px;color:var(--navy);letter-spacing:-.02em}
.primary-kpi{border-color:#cddfff;background:#f8fbff}
.warning-kpi{background:#fffaf2}
.dashboard-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:18px}
.quick-actions{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.quick-action{
  text-align:left; min-height:145px; border:1px solid var(--border); border-radius:12px; padding:20px;
  background:#fff; cursor:pointer; transition:.15s ease;
}
.quick-action:hover{transform:translateY(-1px);box-shadow:0 8px 22px rgba(16,24,40,.07)}
.quick-action span,.quick-action small{display:block;color:var(--muted);font-size:12px}
.quick-action strong{display:block;font-size:18px;margin:13px 0 22px;color:var(--navy)}
.quick-action.primary-action{background:#0f2e4f;color:#fff;border-color:#0f2e4f}
.quick-action.primary-action strong{color:#fff}.quick-action.primary-action span,.quick-action.primary-action small{color:rgba(255,255,255,.72)}
.notification-list{display:grid;gap:10px}
.notification-item{display:flex;gap:12px;padding:12px 2px;border-bottom:1px solid #edf1f5}
.notification-item:last-child{border-bottom:0}
.notification-dot{width:9px;height:9px;border-radius:50%;background:#8da2b7;margin-top:5px;flex:0 0 auto}
.notification-item.success .notification-dot{background:#2f9e64}.notification-item.error .notification-dot{background:#c84f4f}.notification-item.warning .notification-dot{background:#d89a2b}.notification-item.info .notification-dot{background:#4587d9}
.notification-item strong{display:block;font-size:13px;color:var(--text);margin-bottom:4px}
.notification-item small{display:block;font-size:12px;line-height:1.45;color:var(--muted)}
.empty-state-small{padding:20px 0;color:var(--muted);font-size:13px}
.badge.neutral{background:#eef2f6;color:#667085}
.month-close-bar{
  display:flex;justify-content:space-between;align-items:center;gap:16px;background:#fff;border:1px solid var(--border);
  border-radius:12px;padding:14px 16px;margin-bottom:14px;
}
.month-close-bar>div{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.month-close-bar>div>span{font-size:12px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}
.month-close-bar small{width:100%;color:var(--muted);font-size:12px}
.submit-month-btn:disabled,.primary:disabled{opacity:.55;cursor:not-allowed}
.detail-status-row{margin-top:10px}
.admin-detail-actions{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 14px}
.card-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}
@media(max-width:1200px){.admin-kpis{grid-template-columns:repeat(3,1fr)}.dashboard-kpis{grid-template-columns:repeat(2,1fr)}}
@media(max-width:800px){.dashboard-grid{grid-template-columns:1fr}.quick-actions{grid-template-columns:1fr}.dashboard-hero{align-items:flex-start;flex-direction:column}.admin-kpis,.dashboard-kpis{grid-template-columns:1fr 1fr}.month-close-bar{align-items:flex-start;flex-direction:column}}
@media(max-width:520px){.admin-kpis,.dashboard-kpis{grid-template-columns:1fr}}


/* =========================================================
   PROFESSIONELLE MOBILE-ANSICHT
   Desktop bleibt unverändert.
   ========================================================= */
.mobile-menu-btn{
  display:none;
  width:42px;
  height:42px;
  border:1px solid #d8e0ea;
  border-radius:10px;
  background:#fff;
  padding:10px;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:4px;
  cursor:pointer;
}
.mobile-menu-btn span{
  display:block;
  width:18px;
  height:2px;
  border-radius:99px;
  background:var(--navy);
}
body.mobile-nav-open{
  overflow:hidden;
}

@media(max-width:900px){
  /* Topbar */
  .topbar{
    height:64px;
    padding:0 16px;
    position:sticky;
    top:0;
    z-index:50;
  }
  .topbar .brand{
    font-size:18px;
    letter-spacing:.11em;
  }
  .topbar .brand small{
    font-size:7px;
    margin-top:4px;
  }
  .top-actions{
    gap:8px;
  }
  .mobile-menu-btn{
    display:flex;
  }
  .top-logout-btn{
    display:none;
  }

  /* Sidebar wird auf Mobilgeräten zu einem echten Off-Canvas-Menü */
  .employee-layout,
  .admin-layout{
    display:block;
    min-height:calc(100vh - 64px);
  }

  .sidebar,
  .employee-sidebar{
    position:fixed !important;
    display:block !important;
    top:64px;
    left:0;
    bottom:0;
    width:min(82vw,320px);
    height:auto;
    padding:22px 16px 24px;
    overflow-y:auto;
    overflow-x:hidden;
    z-index:100;
    transform:translateX(-105%);
    transition:transform .22s ease;
    box-shadow:18px 0 40px rgba(8,24,43,.18);
    background:linear-gradient(180deg,var(--navy),var(--navy-2));
  }

  .sidebar.mobile-open,
  .employee-sidebar.mobile-open{
    transform:translateX(0);
  }

  .sidebar h3,
  .employee-sidebar h3{
    display:block;
    margin:2px 10px 18px;
    font-size:11px;
    letter-spacing:.14em;
    opacity:.65;
  }

  .sidebar button,
  .employee-sidebar button{
    display:flex;
    align-items:center;
    justify-content:space-between;
    width:100%;
    min-height:48px;
    white-space:normal;
    text-align:left;
    padding:12px 13px;
    margin:4px 0;
    border-radius:9px;
    font-size:14px;
  }

  body.mobile-nav-open::after{
    content:"";
    position:fixed;
    inset:64px 0 0;
    z-index:90;
    background:rgba(8,22,38,.42);
    backdrop-filter:blur(1px);
  }

  /* Hauptinhalt nimmt immer exakt die Bildschirmbreite */
  .employee-main,
  .admin-main,
  .page{
    width:100%;
    max-width:100%;
    min-width:0;
    padding:22px 16px 44px;
    overflow-x:hidden;
  }

  .dashboard-hero{
    margin-bottom:18px;
  }
  .dashboard-hero h1{
    font-size:28px;
  }

  .dashboard-kpis,
  .admin-kpis{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }
  .kpi-card{
    min-width:0;
    padding:15px 14px;
  }
  .kpi-card strong{
    font-size:22px;
  }

  .dashboard-grid{
    grid-template-columns:1fr;
    gap:14px;
  }
  .quick-actions{
    grid-template-columns:1fr;
  }
  .quick-action{
    min-height:124px;
  }

  /* Tabellen bleiben bedienbar, ohne die gesamte Seite seitlich zu verschieben */
  .table-wrap{
    width:100%;
    max-width:100%;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    border-radius:12px;
  }

  .employee-time-card,
  .card{
    max-width:100%;
    min-width:0;
  }

  .month-close-bar{
    align-items:stretch;
    flex-direction:column;
  }
}

@media(max-width:520px){
  .topbar{
    padding:0 14px;
  }
  .employee-main,
  .admin-main,
  .page{
    padding:18px 12px 36px;
  }

  .dashboard-kpis,
  .admin-kpis{
    grid-template-columns:1fr 1fr;
  }

  .dashboard-hero h1{
    font-size:26px;
  }

  .kpi-card{
    padding:14px 12px;
  }
  .kpi-card span{
    font-size:11px;
  }
  .kpi-card strong{
    font-size:21px;
  }

  .card-heading{
    align-items:flex-start;
    flex-direction:column;
  }

  .month-nav{
    width:100%;
    justify-content:space-between;
  }
  .month-label{
    min-width:0;
    flex:1;
  }

  .actions-row{
    gap:12px;
  }
}

/* Sehr schmale Geräte: Kennzahlen untereinander, aber niemals horizontales Seiten-Scrollen */
@media(max-width:350px){
  .dashboard-kpis,
  .admin-kpis{
    grid-template-columns:1fr;
  }
}


/* =========================================================
   MOBILE LOGIN BRANDING
   Desktop unverändert – auf Mobil bleibt die Marke sichtbar.
   ========================================================= */
.mobile-auth-brand{
  display:none;
}

@media(max-width:900px){
  .original-auth-panel{
    min-height:100vh !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:flex-start !important;
    padding:56px 16px 32px !important;
    background:
      radial-gradient(circle at 50% 0%, rgba(30,66,107,.10), transparent 32%),
      #f4f7fb !important;
  }

  .mobile-auth-brand{
    display:flex;
    flex-direction:column;
    align-items:center;
    margin:0 0 34px;
    color:var(--navy);
    text-align:center;
  }

  .mobile-auth-car{
    width:150px;
    height:38px;
    margin-bottom:5px;
    opacity:.52;
  }

  .mobile-auth-car path{
    fill:none;
    stroke:currentColor;
    stroke-width:1.5;
    stroke-linecap:round;
    stroke-linejoin:round;
    vector-effect:non-scaling-stroke;
  }

  .mobile-auth-title{
    font-family:"Playfair Display",serif;
    font-size:27px;
    line-height:1;
    letter-spacing:.16em;
  }

  .mobile-auth-transfer{
    margin-top:7px;
    font-size:8px;
    font-weight:700;
    letter-spacing:.42em;
    padding-left:.42em;
  }

  .mobile-auth-portal{
    margin-top:16px;
    padding:6px 9px;
    border:1px solid #c8d3e0;
    border-radius:6px;
    font-size:9px;
    font-weight:700;
    letter-spacing:.16em;
    color:#51667f;
  }

  .original-auth-card{
    width:min(100%, 390px) !important;
    margin:0 !important;
  }
}

@media(max-width:520px){
  .original-auth-panel{
    padding:42px 14px 28px !important;
  }

  .mobile-auth-brand{
    margin-bottom:28px;
  }

  .mobile-auth-title{
    font-size:25px;
  }

  .mobile-auth-car{
    width:138px;
  }
}


/* =========================================================
   MOBILE TABELLEN ALS KARTEN
   Kein horizontales Wischen bei Mitarbeiter/Admin-Übersichten.
   Desktop bleibt unverändert.
   ========================================================= */
@media(max-width:640px){
  .expense-history-card .table-wrap,
  .admin-expense-card .table-wrap,
  .admin-main .card .table-wrap:has(.admin-overview-table){
    overflow-x:visible;
  }

  .expense-history-card table,
  .admin-expense-table,
  .admin-overview-table{
    display:block;
    width:100%;
    min-width:0 !important;
  }

  .expense-history-card thead,
  .admin-expense-table thead,
  .admin-overview-table thead{
    display:none;
  }

  .expense-history-card tbody,
  .admin-expense-table tbody,
  .admin-overview-table tbody{
    display:grid;
    gap:12px;
    width:100%;
  }

  .expense-history-card tbody tr,
  .admin-expense-table tbody tr,
  .admin-overview-table tbody tr{
    display:block;
    width:100%;
    min-width:0;
    padding:8px 14px;
    border:1px solid #dbe4ee;
    border-radius:12px;
    background:#fff;
    box-shadow:0 4px 14px rgba(15,39,66,.045);
  }

  .expense-history-card tbody td,
  .admin-expense-table tbody td,
  .admin-overview-table tbody td{
    display:grid;
    grid-template-columns:112px minmax(0,1fr);
    align-items:start;
    gap:12px;
    width:100%;
    min-width:0;
    padding:10px 0 !important;
    border:0 !important;
    border-bottom:1px solid #edf1f5 !important;
    white-space:normal !important;
    overflow-wrap:anywhere;
    text-align:left;
  }

  .expense-history-card tbody td:last-child,
  .admin-expense-table tbody td:last-child,
  .admin-overview-table tbody td:last-child{
    border-bottom:0 !important;
  }

  .expense-history-card tbody td[data-label]::before,
  .admin-expense-table tbody td[data-label]::before,
  .admin-overview-table tbody td[data-label]::before{
    content:attr(data-label);
    color:#61738a;
    font-size:11px;
    line-height:1.35;
    font-weight:800;
    letter-spacing:.04em;
    text-transform:uppercase;
  }

  .expense-history-card .empty-cell,
  .admin-expense-table .empty-cell,
  .admin-overview-table td[colspan]{
    display:block !important;
    padding:14px 0 !important;
    border-bottom:0 !important;
  }

  .expense-history-card .empty-cell::before,
  .admin-expense-table .empty-cell::before,
  .admin-overview-table td[colspan]::before{
    display:none;
  }

  .admin-overview-table .employee-row{
    cursor:pointer;
  }

  .admin-overview-table .employee-row td:first-child strong{
    font-size:16px;
  }

  .expense-reason-cell{
    max-width:none !important;
  }

  .expense-actions{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    min-width:0;
  }

  .expense-actions button,
  .receipt-btn{
    max-width:100%;
    white-space:normal;
  }

  .table-sub{
    display:block;
    margin-top:4px;
    overflow-wrap:anywhere;
  }
}

@media(max-width:390px){
  .expense-history-card tbody td,
  .admin-expense-table tbody td,
  .admin-overview-table tbody td{
    grid-template-columns:96px minmax(0,1fr);
    gap:9px;
  }
}

/* =========================================================
   ELITECAR – MOBILE REDESIGN 2026
   Nur <= 640px. Desktop bleibt unverändert.
   Ziel: klare Fenster, weniger visuelles Chaos, mehr Navy.
   ========================================================= */
.mobile-panel-tabs{display:none}

@media(max-width:640px){
  html,body{overflow-x:hidden}
  body{background:#eef3f8}

  /* ---------- Mobile Kopfzeile: klare ELITECAR-Farbe ---------- */
  .topbar{
    height:62px;
    padding:0 14px;
    background:linear-gradient(135deg,#122a46,#0b1f35);
    border-bottom:0;
    box-shadow:0 4px 18px rgba(7,24,42,.18);
  }
  .topbar .brand{color:#fff;font-size:17px;letter-spacing:.13em}
  .topbar .brand small{color:rgba(255,255,255,.78)}
  .mobile-menu-btn{
    width:39px;height:39px;
    border-color:rgba(255,255,255,.24);
    background:rgba(255,255,255,.08);
    border-radius:9px;
  }
  .mobile-menu-btn span{background:#fff}
  .sidebar,.employee-sidebar{top:62px}
  body.mobile-nav-open::after{inset:62px 0 0}

  /* ---------- Einheitliches Inhaltsraster ---------- */
  .employee-main,.admin-main,.page{
    padding:16px 12px 32px;
  }
  .employee-main>*,.admin-main>*{min-width:0}
  .eyebrow{font-size:9px;letter-spacing:.16em;margin-bottom:5px}
  .muted{font-size:12px;line-height:1.45}
  .employee-welcome,.page-title-row,.employee-entry-header{
    margin-bottom:14px;
  }
  .employee-welcome h1,.employee-entry-header h1,.page-title-row h1{
    font-size:23px;
    line-height:1.15;
    margin-bottom:5px;
  }
  .card{
    border-radius:13px;
    border-color:#dfe7f0;
    box-shadow:0 5px 16px rgba(15,39,66,.045);
  }
  .card-heading{
    padding:14px 14px 11px;
    gap:7px;
  }
  .card-heading h2{font-size:16px;margin-bottom:2px}
  .card-heading .muted{font-size:11px}

  /* ---------- Login: kompakt + deutlich mehr Markenwirkung ---------- */
  .original-auth-panel{
    position:relative;
    min-height:100dvh !important;
    padding:26px 14px 24px !important;
    justify-content:flex-start !important;
    background:linear-gradient(180deg,#102b49 0,#0b2038 210px,#eef3f8 210px,#eef3f8 100%) !important;
  }
  .original-auth-panel::after{
    content:"";
    position:absolute;
    top:128px; left:-12%;
    width:124%; height:120px;
    border:1px solid rgba(255,255,255,.07);
    border-radius:50%;
    transform:rotate(-5deg);
    pointer-events:none;
  }
  .mobile-auth-brand{
    position:relative;
    z-index:1;
    margin:0 0 20px;
    color:#fff;
  }
  .mobile-auth-car{width:126px;height:31px;margin-bottom:1px;opacity:.62}
  .mobile-auth-title{font-size:23px;letter-spacing:.17em}
  .mobile-auth-transfer{font-size:7px;margin-top:5px;letter-spacing:.43em}
  .mobile-auth-portal{
    margin-top:11px;
    padding:5px 8px;
    border-color:rgba(255,255,255,.28);
    color:rgba(255,255,255,.78);
    background:rgba(255,255,255,.04);
    font-size:8px;
  }
  .original-auth-card{
    position:relative;
    z-index:2;
    width:min(100%,390px)!important;
    padding:16px!important;
    border-radius:15px;
    border:1px solid rgba(219,228,238,.92);
    box-shadow:0 14px 38px rgba(8,27,47,.15);
  }
  .original-auth-card .tabs{
    margin-bottom:14px;
    padding:3px;
    gap:3px;
    border-radius:9px;
    background:#eef2f6;
  }
  .original-auth-card .tab{
    padding:9px 7px;
    min-height:38px;
    font-size:13px;
    border-radius:7px;
  }
  .original-auth-card .tab.active{
    background:linear-gradient(180deg,#12385f,#0d2947);
    color:#fff;
    box-shadow:none;
  }
  .original-auth-card .form-grid{gap:10px}
  .original-auth-card .field{gap:5px;min-width:0}
  .original-auth-card label{font-size:11px}
  .original-auth-card input{
    min-height:42px;
    height:42px;
    padding:8px 10px;
    border-radius:8px;
    font-size:14px;
  }
  .original-auth-card .primary{
    min-height:43px;
    padding:9px 14px;
    margin-top:1px;
    background:linear-gradient(90deg,#12385f,#0b4b7c);
  }
  #registerForm{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    column-gap:9px;
  }
  #registerForm .field:nth-child(3),
  #registerForm .field:nth-child(4),
  #registerForm .primary{
    grid-column:1/-1;
  }
  .original-auth-card .notice{font-size:12px;padding:9px 10px;margin:9px 0}

  /* ---------- Startseite: Begrüßung als klarer Markenblock ---------- */
  .dashboard-hero{
    position:relative;
    overflow:hidden;
    margin:0 0 12px;
    padding:17px 16px;
    border-radius:14px;
    background:linear-gradient(135deg,#15395f,#0b223b);
    box-shadow:0 8px 22px rgba(10,34,58,.14);
    color:#fff;
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    gap:10px;
  }
  .dashboard-hero::after{
    content:"";
    position:absolute;
    width:180px;height:80px;
    right:-45px;bottom:-42px;
    border:1px solid rgba(255,255,255,.09);
    border-radius:50%;
  }
  .dashboard-hero .eyebrow,.dashboard-hero .muted{color:rgba(255,255,255,.70)}
  .dashboard-hero h1{font-size:23px!important;color:#fff;margin:3px 0 4px}
  .dashboard-status{padding:0;flex:0 0 auto;position:relative;z-index:1}
  .dashboard-status .badge{font-size:10px;padding:5px 7px}

  .dashboard-kpis,.admin-kpis{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
    margin-bottom:12px;
  }
  .kpi-card{
    min-height:76px;
    padding:11px 12px;
    border-radius:11px;
    box-shadow:none;
  }
  .kpi-card span{font-size:9.5px;margin-bottom:5px;line-height:1.25}
  .kpi-card strong{font-size:19px;line-height:1.1}
  .primary-kpi{
    background:linear-gradient(145deg,#f4f8fd,#eaf2fb);
    border-color:#c9daeb;
  }
  .admin-kpis .kpi-card:last-child:nth-child(odd){grid-column:1/-1;min-height:64px}

  /* ---------- "Fenster"-Navigation: nur ein Bereich gleichzeitig ---------- */
  .mobile-panel-tabs{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:4px;
    padding:4px;
    margin:0 0 10px;
    border:1px solid #d9e3ed;
    border-radius:11px;
    background:#e7edf4;
  }
  .mobile-panel-tab{
    min-width:0;
    min-height:38px;
    border:0;
    border-radius:8px;
    background:transparent;
    color:#52667d;
    font-size:11px;
    font-weight:750;
    padding:7px 8px;
  }
  .mobile-panel-tab.active{
    background:#fff;
    color:#12385f;
    box-shadow:0 2px 8px rgba(15,39,66,.08);
  }
  .mobile-panel-tab span{
    display:inline-grid;place-items:center;
    min-width:18px;height:18px;
    margin-left:3px;padding:0 5px;
    border-radius:999px;
    background:#12385f;color:#fff;
    font-size:9px;
  }
  .mobile-tab-group>.card{display:none}
  .mobile-tab-group>.card.mobile-panel-active{display:block}
  .dashboard-grid{display:block}

  .quick-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:12px}
  .quick-action{
    min-height:104px;
    padding:12px;
    border-radius:10px;
  }
  .quick-action span,.quick-action small{font-size:9.5px;line-height:1.35}
  .quick-action strong{font-size:14px;margin:8px 0 13px;line-height:1.25}
  .notification-list{padding:4px 14px 8px;gap:0}
  .notification-item{padding:10px 0;gap:9px}
  .notification-item strong{font-size:12px;margin-bottom:2px}
  .notification-item small{font-size:10.5px;line-height:1.4}

  /* ---------- Monatsauswahl: zwei kompakte Kacheln pro Zeile ---------- */
  .month-section{max-width:none}
  .year-groups{gap:18px}
  .year-group{gap:8px}
  .year-heading{padding:0 1px 6px}
  .year-heading h2{font-size:16px}
  .year-heading span{font-size:10px}
  .month-grid-ordered{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px;
  }
  .month-card{
    min-height:70px;
    padding:10px;
    grid-template-columns:26px minmax(0,1fr) 10px;
    gap:6px;
    border-radius:10px;
  }
  .month-card-icon{width:25px;height:25px;border-radius:7px;font-size:11px}
  .month-card strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .month-card small{font-size:9px;margin-top:3px}
  .month-card-arrow{font-size:17px}

  /* ---------- Arbeitszeiten: jeder Tag ist eine kompakte Karte ---------- */
  .employee-entry-header{gap:10px}
  .back-link{font-size:11px;margin-bottom:8px}
  .compact-total{
    width:100%;
    min-width:0;
    padding:9px 12px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    text-align:left;
  }
  .compact-total span{margin:0;font-size:10px}
  .compact-total strong{font-size:18px}
  .month-close-bar{
    padding:10px 11px;
    margin-bottom:10px;
    border-radius:10px;
    gap:9px;
  }
  .month-close-bar>div{gap:7px}
  .month-close-bar>div>span{font-size:9px}
  .month-close-bar .badge{font-size:10px;padding:4px 7px}
  .submit-month-btn{width:100%;padding:9px 10px;font-size:11px}
  .employee-time-card{background:transparent;border:0;box-shadow:none;overflow:visible}
  .employee-time-card .mobile-note{display:none}
  .employee-time-card .table-wrap{overflow:visible;border-radius:0}
  .employee-time-table{
    display:block;
    min-width:0!important;
    width:100%;
  }
  .employee-time-table thead{display:none}
  .employee-time-table tbody{display:grid;gap:8px;width:100%}
  .employee-time-table tbody tr{
    display:grid;
    grid-template-columns:1.05fr 1.05fr .9fr .85fr;
    gap:7px;
    width:100%;
    min-width:0;
    padding:9px 10px 10px;
    border:1px solid #dce5ee;
    border-radius:11px;
    background:#fff;
    box-shadow:0 3px 10px rgba(15,39,66,.035);
  }
  .employee-time-table tbody tr.weekend{background:#f8fafc}
  .employee-time-table tbody td{
    display:grid;
    gap:4px;
    min-width:0;
    padding:0!important;
    border:0!important;
    background:transparent;
    white-space:normal;
    font-size:12px;
  }
  .employee-time-table tbody td::before{
    content:attr(data-label);
    color:#75869a;
    font-size:8px;
    line-height:1;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.05em;
  }
  .employee-time-table .mobile-day-date{
    grid-column:1/-1;
    display:flex;
    align-items:center;
    justify-content:space-between;
    min-height:20px;
    padding-bottom:6px!important;
    margin-bottom:1px;
    border-bottom:1px solid #edf1f5!important;
    color:#15385d;
    font-weight:800;
  }
  .employee-time-table .mobile-day-date::before{display:none}
  .employee-time-table td input{
    width:100%;min-width:0;
    height:34px;min-height:34px;
    padding:4px 3px;
    border-radius:7px;
    font-size:12px;
    text-align:center;
  }
  .employee-time-table td.hours{
    min-height:34px;
    align-content:center;
    justify-items:center;
    border-radius:7px!important;
    background:#eef8f2;
    color:#145c38;
    font-weight:800;
  }
  .employee-save-row{
    position:sticky;
    bottom:0;
    z-index:20;
    margin:10px -12px -32px;
    padding:10px 12px calc(10px + env(safe-area-inset-bottom));
    border-top:1px solid #dbe4ee;
    background:rgba(238,243,248,.96);
    backdrop-filter:blur(8px);
  }
  .employee-save-row .primary{width:100%;min-height:44px}

  /* ---------- Nebenkosten: Form kompakter, Verlauf separates Fenster ---------- */
  .expense-layout{gap:0}
  .expense-form{padding:13px 14px 14px}
  .expense-form-grid{gap:10px}
  .expense-form .field{gap:5px}
  .expense-form label{font-size:11px}
  .expense-form input,.expense-form select{min-height:42px;height:42px;font-size:13px}
  .expense-form textarea{min-height:76px;padding:9px 10px;font-size:13px}
  .upload-box{min-height:72px;padding:10px;border-radius:9px}
  .upload-box strong{font-size:12px}.upload-box span,.file-name{font-size:10px}
  .expense-submit-row{padding-top:11px}
  .expense-submit-row .primary{width:100%;min-height:43px}
  .expense-history-card tbody tr,.admin-expense-table tbody tr,.admin-overview-table tbody tr{
    padding:6px 11px;
    border-radius:10px;
  }
  .expense-history-card tbody td,.admin-expense-table tbody td,.admin-overview-table tbody td{
    grid-template-columns:94px minmax(0,1fr);
    gap:8px;
    padding:8px 0!important;
    font-size:12px;
  }
  .expense-history-card tbody td[data-label]::before,
  .admin-expense-table tbody td[data-label]::before,
  .admin-overview-table tbody td[data-label]::before{
    font-size:9px;
  }

  /* ---------- Admin ---------- */
  .pending-counter{
    width:100%;
    min-width:0;
    padding:8px 12px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    text-align:left;
  }
  .pending-counter span{font-size:9px}.pending-counter strong{font-size:18px;margin:0}
  .admin-main .page-title-row{gap:10px}
  .admin-main .month-nav{height:40px}
  .admin-main .month-nav button{padding:6px 9px}
  .admin-main .month-label{font-size:12px}
  .admin-overview-table .employee-row td:first-child strong{font-size:14px}
  #exportOverviewExcel{width:100%;font-size:11px;padding:9px 10px}
  .admin-detail-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:7px;
    margin-bottom:10px;
  }
  .admin-detail-actions button{font-size:10px;padding:9px 7px;min-width:0}
  .admin-detail-table{
    display:block;
    min-width:0!important;
    width:100%;
  }
  .admin-detail-table thead{display:none}
  .admin-detail-table tbody{display:grid;gap:7px;padding:8px}
  .admin-detail-table tbody tr{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:0 12px;
    padding:8px 10px;
    border:1px solid #e1e8f0;
    border-radius:9px;
    background:#fff;
  }
  .admin-detail-table tbody td{
    display:flex;
    justify-content:space-between;
    gap:8px;
    padding:6px 0!important;
    border-bottom:1px solid #f0f3f6!important;
    white-space:normal;
    font-size:11px;
  }
  .admin-detail-table tbody td::before{
    content:attr(data-label);
    color:#76869a;
    font-size:8px;
    font-weight:800;
    text-transform:uppercase;
  }
  .admin-detail-table tbody td:nth-last-child(-n+2){border-bottom:0!important}
  .admin-detail-table tbody td.hours{background:transparent}
  .admin-main .actions-row{padding:10px}
  .admin-main .total-box{padding:9px 11px}
  .admin-main .total-box strong{font-size:20px}
  .admin-expense-mobile-group{display:block}
  .expense-actions{gap:6px}
  .expense-actions button{font-size:10px;padding:7px 8px}
}

@media(max-width:360px){
  .month-grid-ordered{grid-template-columns:1fr!important}
  .quick-actions{grid-template-columns:1fr}
  .dashboard-hero{align-items:flex-start;flex-direction:column}
  .employee-time-table tbody tr{grid-template-columns:1fr 1fr}
  .employee-time-table .mobile-day-date{grid-column:1/-1}
  #registerForm{grid-template-columns:1fr}
  #registerForm .field:nth-child(3),#registerForm .field:nth-child(4),#registerForm .primary{grid-column:auto}
}
