/* ========================
   LOGIN PAGE – SIKS Style
======================== */
:root{
  --bg: #d9d9d9;
  --white: #ffffff;
  --label-text: #5A7679;
  --text: #111111;
  --text-muted: #666666;
  --accent: #F49000;
  --border: #cfcfcf;
}

/* Nur für die Login-Seite */
body.login{
  margin:0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  background:var(--bg);
  color:var(--text);
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

/* Kopfbereich */
.site-header{
  background:var(--white);
  border-bottom:1px solid #e4e4e4;
  padding:18px 40px;
}

.inner-header{
  width: 80%;margin: 0 auto;display: flex;justify-content: space-between;align-items: center;
}

/* Einfaches Platzhalter-Logo – gern durch <img> ersetzen */
.logo{
  display:inline-flex;
  align-items:center;
  gap:4px;
  font-weight:800;
  font-size:30px;
  letter-spacing:1px;
}
.logo span{ display:inline-block; }

.logo .dots{
  display:inline-grid;
  grid-template-columns:repeat(2,6px);
  gap:2px;
  margin-right:4px;
}
.logo .dots div{
  width:6px;
  height:6px;
  background:var(--accent);
}

/* Hauptbereich */
.main{
  flex:1;
  display:flex;
  justify-content:center;
  align-items:center;
  padding:40px 16px;
}

/* Login-Card */
.login-card{
  width:100%;
  max-width:500px;
  background:var(--white);
  border-radius:4px;
  padding:48px 60px 40px;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.02),
    0 18px 45px rgba(0,0,0,0.18);
}

.login-card h1{
  margin:0 0 32px;
  font-size:40px;
  text-align:center;
  letter-spacing:1px;
}

.login-card form{
  display:block;
}

.form-group{
  margin-bottom:22px;
}

.login-card label{
  display:block;
  margin-bottom:4px;
  font-size:14px;
  font-weight:600;
  color:var(--label-text);
}

.login-card input{
  width:100%;
  padding:14px 16px;
  font-size:15px;
  border-radius:3px;
  border:2px solid #000;
  background:#f5f5f5;
  outline:none;
  transition:border-color .2s, box-shadow .2s, background .2s;
  box-sizing: border-box;
}

.login-card input:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 2px rgba(244,161,26,.2);
  background:#ffffff;
}

.forgot{
  font-size:13px;
  margin-top:4px;
  color:var(--accent);
  text-decoration:none;
  display:inline-block;
  font-weight: 600;
}
.forgot:hover{ text-decoration:underline; }

.actions{
  margin-top:28px;
  display:flex;
  justify-content:center;
}

/* Button (für Login) */
.btn{
  background:var(--accent);
  color:#fff;
  border:none;
  padding:10px 26px;
  border-radius:3px;
  font-weight:600;
  font-size:15px;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:6px;
  box-shadow:0 3px 0 rgba(0,0,0,.18);
  transition:transform .1s, box-shadow .1s, filter .1s;
  text-decoration: none;
}
.btn:hover{ filter:brightness(1.05); }
.btn:active{
  transform:translateY(1px);
  box-shadow:0 1px 0 rgba(0,0,0,.3);
}

/* Fehlermeldung bleibt erhalten */
.err{
  color:#b91c1c;
  background:#fee2e2;
  border:1px solid #fecaca;
  padding:10px 12px;
  border-radius:10px;
  font-size:.9rem;
  margin-bottom:16px;
}

/* Footer unten */
.site-footer{background:var(--white);border-top:1px solid var(--border);padding:28px 40px 32px;}
.footer-inner{display: flex;gap: 40px;align-items: flex-start;justify-content: space-evenly;}
.footer-col{ min-width:180px; }
.footer-logo{ margin-bottom:8px; }
.footer-logo .logo{ font-size:26px; }
.footer-small{font-size:12px;color:var(--text-muted);line-height:1.5;}
.footer-title{font-weight:700;margin-bottom:10px;font-size:16px;}
.footer-link, .footer-text{font-size:13px;color:#2f4858;text-decoration:none;display:block;margin-bottom:4px;}
.footer-link:hover{ text-decoration:underline; }







/* simple default für eingeloggte Seite */
/* ========================
   Dashboard (eingeloggt)
======================== */
body.page{
  margin:0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  display:flex;
  flex-direction:column;
  min-height:100vh;
}

body.page .main{
  flex:1;
  display:block;
  padding:32px 40px 56px;
}

.dashboard{
  max-width:1100px;
  margin:0 auto;
}

.dashboard-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:20px;
  margin-bottom:16px;
}

.dashboard-title{
  margin:0;
  font-size:40px;
  font-weight:800;
}

.dashboard-subtitle{
  margin:6px 0 0;
  font-size:14px;
  color:var(--text-muted);
}

/* Tabs + Kopfbereich */
.orders{
  margin-top:10px;
}

.orders-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:16px;
}

.tabs-nav{
  display:flex;
  align-items:flex-end;
  /* kein gap, die Überlappung machen wir mit margin */
  gap:0;
  position:relative;
  z-index:2;
}

.tab{
  position:relative;              /* wichtig für z-index */
  border:none;
  background:#e7e7e7;
  padding:10px 24px 20px;
  border-radius:18px 18px 0 0;
  font-size:15px;
  font-weight:600;
  cursor:pointer;

  /* Tabs leicht übereinander schieben */
  margin-left:-16px;
  box-shadow:0 8px 14px rgba(0,0,0,0.4);
}

/* erstes Tab normal starten */
.tab:first-child{
  margin-left:0;
}

.tab:nth-child(1){ z-index:3; }
.tab:nth-child(2){ z-index:2; }
.tab:nth-child(3){ z-index:1; }

/* aktives Tab immer ganz oben */
.tab--active{
  background:#ffffff;
  color:var(--accent);
  z-index:4;
}

/* Hover-Tab liegt vor den anderen, aber unter dem aktiven */
.tab:not(.tab--active):hover{
  z-index:2;
}


/* Button "Neuen Auftrag anlegen" */
.btn-new-order{
  margin-bottom: 15px;
}
.btn-new-order__icon{
  font-size:18px;
  line-height:1;
}

/* Karte leicht unter die Tabs schieben, damit es verbunden aussieht */
.orders-card{
  margin-top:-6px;
  background:#ffffff;
  border-radius:0 10px 10px 10px;
  box-shadow:0 18px 45px rgba(0,0,0,0.08);
  padding:24px 28px 20px;
  overflow-x:auto;
  position:relative;
  z-index:10;
}


.orders-table{
  width:100%;
  min-width:640px;
  border-collapse:separate;
  border-spacing:0 12px;
  font-size:14px;
}

.orders-table thead th{
  text-align:left;
  padding:0 18px 8px;
  font-weight:700;
  color:var(--text);
}

.orders-table tbody tr{
  background:#fbfbfb;
  box-shadow:0 1px 4px rgba(0,0,0,0.04);
}

.orders-table tbody tr td{
  padding:12px 18px;
  background:inherit;
}

.orders-table tbody tr td:first-child{
  border-radius:18px 0 0 18px;
}
.orders-table tbody tr td:last-child{
  border-radius:0 18px 18px 0;
}

.orders-table__action{
  text-align:right;
}

/* kleiner Button in der Tabelle */
.btn-row{
  padding:8px 18px;
  font-size:14px;
  border-radius:999px;
}
.btn-row::after{
  content:"👁";
  font-size:0.9rem;
  margin-left:8px;
}

/* Responsive */
@media (max-width: 900px){
  body.page .main{
    padding:24px 16px 40px;
  }
  .dashboard-title{
    font-size:32px;
  }
  .orders-header{
    flex-direction:column;
    align-items:flex-start;
  }
  .orders-card{
    padding:18px 14px 16px;
  }
  .orders-table{
    font-size:13px;
  }
}


/* Responsive */
@media (max-width: 768px){
  .site-header{ padding-inline:20px; }
  .login-card{ padding:32px 20px 28px; }
  .footer-inner{
    flex-direction:column;
    gap:24px;
  }
}
