  @import url("https://use.typekit.net/gid7bxa.css");

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

/* Nur für die Login-Seite */
body{
  margin:0;
  font-family: "futura-pt", sans-serif;
  font-weight: 400;
  font-style: normal;
  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; max-width:1200px;
}

/* 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 40px;
}

/* Login-Card */
.login-card{
  width:100%;
  max-width:500px;
  background:var(--white);
  border-radius: var(--border-rad);
  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: var(--border-rad);
  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;
  border: none;
  background: transparent;
}
.forgot:hover{ text-decoration:underline;cursor: pointer;}

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

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

.btn svg{
  width: 20px;
  height: 20px;
  fill: white;
}

.btn-second{
  background: var(--bg1);
  border: solid 2px var(--accent);
  color: var(--accent);
}

.btn-second svg{
  fill: var(--accent);
}

.btn:hover{ 
  background:#E56205;
  border: solid 2px #E56205;
  color: var(--white);
}

.btn:hover svg{ 
  fill: var(--white);
}

.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: var(--border-rad);
  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-between;width: 80%;margin: 0 auto;max-width:1200px;}
.footer-col{ min-width:180px; }
.footer-logo{ margin-bottom:8px; }
.footer-logo .logo{ font-size:26px; }
.footer-small{font-size:14px;color:var(--text-muted);line-height:1.5;}
.footer-title{font-weight:700;margin-bottom:10px;font-size:18px;}
.footer-link, .footer-text{font-size:13px;color:#2f4858;text-decoration:none;display:block;margin-bottom:4px;}
.footer-link:hover{ text-decoration:underline; }



/* ========================
   Dashboard (eingeloggt)
======================== */

.dashboard{
  width:80%;
  max-width:1200px;
  margin:0 auto;
  display:flex;
  flex-direction:column;
}

.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;
  flex:1;
  display:flex;
  flex-direction:column;
}

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

.tabs-nav{
  display:flex;
  align-items:flex-end;
  gap:0;
  position:relative;
  z-index:2;
}

.tab{
  position:relative;
  border:none;
  background:#e7e7e7;
  padding:10px 24px 20px;
  border-radius:18px 18px 0 0;
  font-size:15px;
  font-weight:600;
  cursor:pointer;
  margin-left:-16px;
  box-shadow:0 0px 8px rgba(0,0,0,0.1);
}

/* 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 */
.tabs-nav .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:5;
}


/* 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 var(--border-rad) var(--border-rad) var(--border-rad);
  padding:18px;
  overflow-x:auto;
  position:relative;
  z-index:10;
  flex:1;
  display:flex;
  flex-direction:column;
}

/* Tabelle bleibt oben in der Card */
.orders-table{
  width:100%;
  min-width:640px;
  border-collapse:separate;
  border-spacing:0 12px;
  font-size:16px;
}

.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.1);
  border-radius: var(--border-rad);
}

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

.orders-table tbody tr td:first-child{
  border-radius:var(--border-rad) 0 0 var(--border-rad);
}
.orders-table tbody tr td:last-child{
  border-radius:0 var(--border-rad) var(--border-rad) 0;
}

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

.orders-table tbody tr:has(td.orders-table__action:hover), .orders-table tbody tr:hover{
  outline: 2px solid var(--accent);   /* oder eine andere Farbe */
  outline-offset: -1px;               /* Rahmen näher an die Zellen ran */
}


.orders-table .paused{color: #0000008a;}
.paused .btn{background: #F490008a;border: solid 2px #F4900000;}
.paused .btn:hover {background: #E56205A8;border: solid 2px #E5620500;}

/* 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;
}

.orders-content{
  display:none;
}
.orders-content--active{
  display:block;
}


/* Responsive */
@media (max-width: 900px){
  body.page .main{
    padding:24px 16px 40px;
  }
  .dashboard-title{
    font-size:32px;
  }
  .orders-header{
    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;
  }
}




/* ========================
   Auftragsdetail (Lehrer)
======================== */
/* Zurück + Titel */
.order-detail__hero{
  justify-content: center;
  display: flex;
}

.order-detail__top{
  margin-bottom:12px;
  display: flex;
  justify-content: space-between;
}

.btn-back{
  padding:8px 18px;
  border-radius:var(--border-rad);
  font-size:14px;
}

.order-detail__title{
  margin:0 10%;
  width: 80%;
  max-width: 1200px;
  font-size:36px;
  font-weight:800;
}

/* Zwei Boxen nebeneinander */
.order-detail__content{
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}


.order-box{
  flex:1 1 320px;
  background:#ffffff;
  border-radius:var(--border-rad);
  padding:24px 28px 20px;
  box-shadow:0 15px 40px rgba(0,0,0,0.08);
}

.order-box__title{
  font-size:16px;
  font-weight:700;
}

/* Definition-Listen als 2-Spalten-Grid */
.order-info{
  margin:0;
  padding:0;
  text-align: left;
}

.order-info > div{
  display:grid;
  grid-template-columns:auto 1fr;
  column-gap:16px;
  row-gap:2px;
  font-size:14px;
  margin-bottom:4px;
}

.order-info th{
  font-weight:600;
  width: 180px;
}

/* Buttons in den Boxen */
.order-box__primary{
  margin-top:18px;
}

.order-icon{
  font-size:16px;
  line-height:1;
}

/* untere Buttonreihe rechts in Box 2 */
.order-actions{
  margin-top:20px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:flex-start;
}

.order-second{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

/* responsive */
@media (max-width: 900px){
  .order-detail__title{
    font-size:28px;
  }
  .order-detail__content{
    flex-direction:column;
  }
}


/* ===== Forgot Passwort Modal (Mockup-Style) ===== */

#forgot-modal{
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
}

#forgot-modal.modal--open{
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Backdrop */
#forgot-modal .modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.18);
}

/* Dialog */
#forgot-modal .modal__dialog{
  position: relative;
  width: min(680px, calc(100vw - 64px));
  background: #fff;
  border-radius: var(--border-rad);
  padding: 48px 56px 44px;
  box-shadow:
    0 8px 24px rgba(0,0,0,.12),
    0 2px 6px rgba(0,0,0,.08);
  z-index: 1;
  text-align: center;
}

/* Close Button */
#forgot-modal .modal__close{
  position: absolute;
  top: 18px;
  right: 22px;
  background: none;
  border: none;
  font-size: 22px;
  font-weight: 500;
  color: #000;
  cursor: pointer;
}

#forgot-modal .modal__close:hover{
  opacity: .6;
}

/* Title */
#forgot-modal .modal__title{
  margin: 0 0 18px;
  font-size: 36px;
  font-weight: 900;
  color: #000;
}

/* Text */
#forgot-modal .modal__text{
  font-size: 17px;
  line-height: 1.55;
  font-weight: 600;
  color: #5b757a;
}

/* Mail Link */
#forgot-modal .modal__link{
  display: inline-block;
  margin-top: 4px;
  color: #5b757a;
  text-decoration: underline;
}

#forgot-modal .modal__link:hover{
  opacity: .8;
}

/* Scroll Lock */
body.modal-open{
  overflow: hidden;
}

/* Mobile */
@media (max-width: 600px){
  #forgot-modal .modal__dialog{
    padding: 36px 24px 32px;
  }

  #forgot-modal .modal__title{
    font-size: 28px;
  }
}


/* ===== Orders Toolbar (Suche rechts) ===== */
.orders-toolbar{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  margin:6px 0 16px;
}

.orders-search{
  position:relative;
  width:min(340px, 100%);
}

.orders-search__input{
  width:100%;
  border:0;
  border-bottom:2px solid rgba(0,0,0,.12);
  padding:10px 36px 10px 8px;
  outline:none;
  background:transparent;
  font-size:14px;
}

.orders-search__input::placeholder{
  color:rgba(0,0,0,.45);
}

.orders-search__icon{
  position:absolute;
  right:6px;
  top:50%;
  transform:translateY(-50%);
  color:rgba(0,0,0,.45);
  pointer-events:none;
}


/* =========================
   Modal (Popup)
========================= */
.modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.modal.modal--open{
  display: block;
}

.modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
}

.modal__dialog{
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 32px));
  margin: 10vh auto 0;
  background: #fff;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

.modal__close{
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  font-size: 20px;
  line-height: 40px;
}

.modal__title{
  margin: 0 0 16px;
  font-size: 34px;
  font-weight: 800;
}

.modal__label{
  display: block;
  margin: 0 0 8px;
  font-weight: 700;
  color: #2a2a2a;
}

.modal__textarea{
  width: 100%;
  border: 2px solid #1a1a1a;
  border-radius: 10px;
  padding: 14px 16px;
  font: inherit;
  outline: none;
  resize: vertical;
  min-height: 110px;
  box-sizing: border-box;
}

.modal__textarea:focus{
  border-color: var(--accent); /* dein Orange */
  box-shadow: 0 0 0 4px rgba(242,140,0,.18);
}

.modal__actions{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

/* Scroll sperren, wenn Modal offen */
body.modal-open{
  overflow: hidden;
}

/* Mobile */
@media (max-width: 520px){
  .modal__dialog{
    margin-top: 6vh;
    padding: 20px;
    border-radius: 14px;
  }
  .modal__title{
    font-size: 26px;
  }
  .modal__actions{
    flex-direction: column;
  }
}







.order-logs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.log-item {
    padding: 10px 15px;
    border-left: 4px solid var(--accent); /* Akzentfarbe für die Timeline */
    background: #f9f9f9;
    border-radius: 0 6px 6px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.log-item__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    border-bottom: 1px solid #eee;
    padding-bottom: 4px;
}

.log-item__date {
    font-size: 0.8rem;
    color: #777;
    font-weight: 500;
}

.log-item__title {
    font-size: 0.85rem;
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.log-item__content {
    font-size: 0.9rem;
    color: #444;
    line-height: 1.4;
}

.order-logs__empty {
    text-align: center;
    color: #999;
    padding: 20px;
    font-style: italic;
}