/* ── Reset & Basis ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-gradient: linear-gradient(135deg, #4a4a4a 0%, #2b2b2b 100%); /* Der graue Gradient */
  --surface:  #ffffff; /* Reinweißes Loginfenster */
  --text:     #2c2c2a;
  --primary:  #D4AF37; /* Goldton aus dem Logo für Buttons */
  --primary-dark: #b8962e;
  --radius:   12px;
}


body {
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

/* ── Login ── */

/* ── Login Seite ── */
.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--bg-gradient); /* Hier wird der Gradient angewendet */
  margin: 0;
}

.login-box {
  background: var(--surface);
  border: none; /* Rand entfernen für cleanen Look */
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2); /* Etwas Schatten für Tiefe */
  text-align: center;
}




/* Dieser Selektor ist sehr spezifisch, um sicherzustellen, dass er greift */
.login-box input[type="text"], 
.login-box input[type="password"],
.field input[type="text"],
.field input[type="password"],
.field input[type="number"],
.field input[type="month"],
.field input[type="time"],
.field textarea {
    display: block !important;
    width: 100% !important;
    padding: 12px 15px !important;
    margin: 8px 0 5px 0 !important;
    
    /* Rahmen: Hier setzen wir einen deutlichen, dunklen Rahmen */
    border: 1px solid #b0b0b0 !important; 
    border-radius: 8px !important;
    
    /* Hintergrund & Text */
    background-color: #ffffff !important;
    color: #333333 !important;
    font-size: 16px !important;
    
    /* Schatten für ein moderneres Aussehen */
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1) !important;
    
    /* Webkit Fix für Safari/Chrome */
    -webkit-appearance: none;
    appearance: none;
}

/* Fokus-Zustand: Wenn der User in das Feld klickt */
.login-box input:focus, 
.field input:focus {
    outline: none !important;
    border-color: #D4AF37 !important; /* Das Gold deines Logos */
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2) !important;
    background-color: #fff !important;
}

/* Label-Styling, damit der Text über den Feldern gut aussieht */
.field label, .login-box label {
    display: block !important;
    text-align: left !important;
    font-weight: 600 !important;
    color: #444 !important;
    margin-bottom: 4px !important;
    font-size: 14px !important;
}







/* Container für Label + Input */
.field {
  margin-bottom: 1.5rem;
  text-align: left;
}

/* Beschriftung über dem Feld */
.field label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #4a4a4a;
  font-size: 0.85rem;
  text-transform: uppercase; /* Wirkt professioneller */
  letter-spacing: 0.5px;
}

/* Das eigentliche Eingabefeld */
.field input {
  width: 100%;
  padding: 12px 15px;
  font-size: 1rem;
  color: var(--text);
  background-color: #ffffff;
  
  /* Rahmen-Definition (Damit sie wieder sichtbar sind) */
  border: 1px solid #dcdcdc; 
  border-radius: 6px;
  
  transition: all 0.3s ease;
  outline: none;
}

/* Zustand beim Draufklicken (Focus) */
.field input:focus {
  border-color: #D4AF37; /* Die Gold-Farbe aus deinem Logo */
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15); /* Sanfter goldener Schein */
  background-color: #fff;
}

/* Platzhalter-Text Styling */
.field input::placeholder {
  color: #b0b0b0;
}

/* Fehler-Box Styling (falls Login fehlschlägt) */
.error-box {
  background-color: #fff5f5;
  color: #c53030;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #feb2b2;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}


/* Styling für das neue Logo-Bild */
.login-logo-img {
  max-width: 220px; /* Breite des Logos anpassen */
  height: auto;
  margin-bottom: 1.5rem;
}


.login-sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.5rem; }

/* ── Navbar ── */
.navbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-logo { font-weight: 600; font-size: 1rem; }
.nav-name { color: var(--muted); font-size: 0.9rem; flex: 1; }

.btn-logout {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.3rem 0.8rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--muted);
}
.btn-logout:hover { background: var(--bg); }

/* ── Container ── */
.container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* ── Tabs ── */
.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.tab {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--muted);
  transition: all 0.15s;
}

.tab:hover { border-color: var(--primary); color: var(--primary); }
.tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 500;
}

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

/* ── Headings ── */
h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--muted);
}

/* ── Formular ── */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.form-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
  min-width: 140px;
}

label { font-size: 0.82rem; font-weight: 500; color: var(--muted); }

input[type="text"],
input[type="tel"],
input[type="date"],
input[type="time"],
input[type="password"],
input[type="month"],
select {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.45rem 0.7rem;
  font-size: 0.9rem;
  background: var(--bg);
  color: var(--text);
  outline: none;
  width: 100%;
}

input:focus, select:focus {
  border-color: var(--primary);
  background: var(--surface);
}

/* ── Buttons ── */

.btn-primary {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.8rem;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  transition: background 0.3s;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 0.9rem;
}
.btn-secondary:hover { border-color: var(--primary); }

.btn-group { display: flex; gap: 0.75rem; margin-top: 0.5rem; flex-wrap: wrap; }

.btn-show {
  background: #e8f5e9;
  color: var(--success);
  border: 1px solid #a5d6a7;
  border-radius: 7px;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
}
.btn-show:hover { background: #c8e6c9; }

.btn-noshow {
  background: #fde8e8;
  color: var(--danger);
  border: 1px solid #f5a5a5;
  border-radius: 7px;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
}
.btn-noshow:hover { background: #fcc8c8; }

.btn-del {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 0 0.4rem;
}
.btn-del:hover { color: var(--danger); }

/* ── Listen ── */
.liste { display: flex; flex-direction: column; gap: 0.4rem; }

.liste-eintrag {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 0.6rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
}

.liste-mitte { flex: 1; color: var(--muted); }
.liste-datum { color: var(--muted); font-size: 0.82rem; }

.typ-verfuegbar { border-left: 3px solid var(--success); }
.typ-blockiert  { border-left: 3px solid #888; }
.typ-urlaub     { border-left: 3px solid #ef9f27; }
.typ-gebucht    { border-left: 3px solid var(--primary); }

.leer { color: var(--muted); font-size: 0.9rem; padding: 0.5rem 0; }

/* ── Score-Card ── */
.score-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-top: 1rem;
  font-size: 0.95rem;
}

.score-icon { font-size: 1.8rem; }

.score-gut     { border-left: 4px solid var(--success); }
.score-mittel  { border-left: 4px solid var(--warn); }
.score-schlecht{ border-left: 4px solid var(--danger); }
.score-unbekannt{ border-left: 4px solid var(--muted); }

.gesperrt-badge {
  background: #fde8e8;
  color: var(--danger);
  border-radius: 5px;
  padding: 0.2rem 0.6rem;
  font-size: 0.82rem;
  font-weight: 500;
  margin-top: 0.3rem;
}

/* ── Meldungen ── */
.error-box {
  background: #fde8e8;
  color: var(--danger);
  border: 1px solid #f5a5a5;
  border-radius: 7px;
  padding: 0.65rem 0.9rem;
  margin-bottom: 1rem;
  font-size: 0.88rem;
}

.success-box {
  background: #e8f5e9;
  color: var(--success);
  border: 1px solid #a5d6a7;
  border-radius: 7px;
  padding: 0.65rem 0.9rem;
  margin-top: 1rem;
  font-size: 0.88rem;
}

.hint {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .form-row { flex-direction: column; }
  .btn-group { flex-direction: column; }
  .tabs { gap: 0.4rem; }
  .tab { font-size: 0.82rem; padding: 0.4rem 0.7rem; }
}
