/* portal.css — gemeinsames Aussehen aller Portal-Seiten.
   Bewusst ausgelagert statt in die PHP-Dateien eingebettet: der Upload-Filter
   des Webspace bricht FTP-Übertragungen ab, wenn zu viel Nicht-PHP in einer
   .php-Datei steckt. Nebeneffekt: der Browser kann es cachen. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: #f4f3ef;
  color: #1a1916;
  line-height: 1.5;
  font-size: 15px;
}

/* ── Kopfzeile (angemeldete Seiten) ──────────────────────────────────────── */
header {
  background: #1a1916; color: #fff; padding: 14px 18px;
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 14px;
}
header .marke {
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; opacity: 0.85;
}
header .marke span { color: #4ade80; }
header .spacer { flex: 1; }
header a {
  color: rgba(255,255,255,0.65); text-decoration: none;
  font-size: 13px; font-weight: 500;
}
header a:hover, header a.aktiv { color: #fff; }

.huelle { max-width: 640px; margin: 0 auto; padding: 18px; }
.kopf { margin-bottom: 16px; }
.kopf h1 { font-size: 20px; margin-bottom: 3px; }
.kopf p { color: #6b6860; font-size: 13px; }

/* ── Formularelemente ─────────────────────────────────────────────────────── */
label {
  display: block; font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: #6b6860; margin-bottom: 6px;
}
input[type=date], input[type=tel], textarea, select {
  width: 100%; padding: 11px 13px; border: 1px solid #e2e0d8; border-radius: 8px;
  font-family: inherit; font-size: 15px; background: #fff; color: #1a1916; outline: none;
}
input:focus, textarea:focus, select:focus { border-color: #1a6b3c; }
textarea { resize: vertical; min-height: 68px; }
.feld { margin-bottom: 14px; }
.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

button.senden {
  width: 100%; padding: 13px; background: #1a6b3c; color: #fff; border: none;
  border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer;
  font-family: inherit;
}
button.senden:hover { background: #145730; }

/* ── Karten & Meldungen ───────────────────────────────────────────────────── */
.karte {
  background: #fff; border: 1px solid #e2e0d8; border-radius: 10px;
  padding: 18px; margin-bottom: 14px;
}
.karte h2 {
  font-size: 13px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: #6b6860; margin-bottom: 14px;
}
.meldung { border-radius: 8px; padding: 12px 15px; font-size: 14px; margin-bottom: 14px; }
.meldung.ok { background: #e8f5ee; color: #14532d; border: 1px solid #9cbfa8; }
.meldung.fehler { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.hinweis {
  background: #fff; border: 1px solid #e2e0d8; border-radius: 10px;
  padding: 13px 16px; font-size: 13px; color: #6b6860; margin-bottom: 14px;
}
.hinweis strong { color: #1a1916; }
.leer { color: #6b6860; font-size: 14px; }
.fuss { text-align: center; color: #6b6860; font-size: 13px; margin-top: 22px; }

/* ── Anmeldeseite ─────────────────────────────────────────────────────────── */
body.login {
  min-height: 100vh; display: flex; align-items: center;
  justify-content: center; padding: 20px;
}
.login-karte {
  background: #fff; border: 1px solid #e2e0d8; border-radius: 12px;
  padding: 32px 28px; width: 100%; max-width: 380px;
}
.login-marke {
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: #6b6860; margin-bottom: 20px;
}
.login-marke span { color: #1a6b3c; }
.login-karte h1 { font-size: 21px; margin-bottom: 6px; }
.login-karte p.sub { color: #6b6860; font-size: 14px; margin-bottom: 22px; }
.login-karte input[type=tel] {
  padding: 14px 16px; font-size: 22px; font-family: ui-monospace, monospace;
  letter-spacing: 0.3em; text-align: center;
}
.login-karte button {
  width: 100%; margin-top: 16px; padding: 14px; background: #1a6b3c; color: #fff;
  border: none; border-radius: 8px; font-size: 15px; font-weight: 600;
  cursor: pointer; font-family: inherit;
}
.login-karte button:hover { background: #145730; }
.login-karte button:disabled { background: #b8b5ac; cursor: not-allowed; }
.fehler {
  background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca;
  border-radius: 8px; padding: 11px 14px; font-size: 14px; margin-bottom: 18px;
}
.login-hinweis {
  background: #f4f3ef; border-radius: 8px; padding: 14px;
  font-size: 13px; color: #6b6860; margin-top: 20px;
}

/* ── Verfügbarkeit ────────────────────────────────────────────────────────── */
.monatsleiste {
  display: flex; align-items: center; justify-content: space-between;
  background: #fff; border: 1px solid #e2e0d8; border-radius: 10px;
  padding: 10px 14px; margin-bottom: 14px;
}
.monatsleiste .monat { font-weight: 600; font-size: 16px; }
.monatsleiste a {
  text-decoration: none; color: #1a6b3c; font-weight: 600;
  padding: 6px 12px; border-radius: 6px; font-size: 14px;
}
.monatsleiste a:hover { background: #e8f5ee; }
.monatsleiste .aus { color: #c9c6bd; pointer-events: none; }
.monatsleiste .klein { font-weight: 400; color: #6b6860; font-size: 13px; }

details.schnell {
  background: #fff; border: 1px solid #e2e0d8; border-radius: 10px; margin-bottom: 14px;
}
details.schnell summary {
  padding: 13px 16px; cursor: pointer; font-weight: 600; font-size: 14px; list-style: none;
}
details.schnell summary::-webkit-details-marker { display: none; }
details.schnell summary::before { content: '\26A1  '; }
.schnell-inhalt {
  padding: 0 16px 16px; display: flex; flex-wrap: wrap; gap: 8px;
  align-items: center; font-size: 14px;
}
.schnell-inhalt select { width: auto; padding: 8px 10px; font-size: 14px; }
.schnell-inhalt button {
  padding: 8px 14px; background: #1a6b3c; color: #fff; border: none;
  border-radius: 6px; font-weight: 600; cursor: pointer;
  font-family: inherit; font-size: 14px;
}

.toast {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%);
  background: #1a6b3c; color: #fff; padding: 10px 20px; border-radius: 8px;
  font-size: 14px; font-weight: 500; opacity: 0; pointer-events: none;
  transition: opacity 0.2s; z-index: 100;
}
.toast.zeigen { opacity: 1; }
.toast.fehler { background: #b91c1c; }

/* ── Urlaub & Krank ───────────────────────────────────────────────────────── */
.art-wahl { display: flex; gap: 10px; margin-bottom: 14px; }
.art-wahl label {
  flex: 1; margin: 0; text-transform: none; letter-spacing: 0; font-size: 15px;
  font-weight: 500; color: #1a1916; border: 1px solid #e2e0d8; border-radius: 8px;
  padding: 13px; text-align: center; cursor: pointer; background: #fff;
}
.art-wahl input { position: absolute; opacity: 0; }
.art-wahl label:has(input:checked) {
  border-color: #1a6b3c; background: #e8f5ee; color: #1a6b3c; font-weight: 700;
}

.eintrag {
  display: flex; align-items: center; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid #eeece5;
}
.eintrag:last-child { border-bottom: none; }
.eintrag .zeit { font-weight: 600; font-size: 14px; }
.eintrag .art { font-size: 12px; color: #6b6860; }
.eintrag .kommentar { font-size: 12px; color: #6b6860; font-style: italic; }
.eintrag .rechts { margin-left: auto; text-align: right; }
.marke2 {
  font-size: 11px; font-weight: 600; padding: 3px 9px;
  border-radius: 4px; display: inline-block;
}
.m-offen     { background: #fef0e6; color: #c25f1a; }
.m-genehmigt { background: #e8f5ee; color: #1a6b3c; }
.m-abgelehnt { background: #f4f3ef; color: #6b6860; }
.zurueck {
  background: none; border: none; color: #b91c1c; font-size: 12px;
  cursor: pointer; font-family: inherit; padding: 4px 0; text-decoration: underline;
}
.datenschutz { font-size: 12px; color: #6b6860; margin-top: 6px; }

/* ── Namensliste und Standortwahl (Anmeldung ohne persönlichen Zugang) ────── */
.namensliste {
  display: flex; flex-direction: column; gap: 6px;
  max-height: 46vh; overflow-y: auto; margin-bottom: 4px;
}
.namens-knopf {
  width: 100%; text-align: left; padding: 12px 14px; font-size: 15px;
  font-family: inherit; color: #1a1916; background: #fff;
  border: 1px solid #e2e0d8; border-radius: 8px; cursor: pointer;
}
.namens-knopf:hover { border-color: #1a6b3c; background: #e8f5ee; }
.namens-knopf:active { transform: scale(.99); }

.standort-wahl { display: flex; flex-direction: column; gap: 9px; margin-bottom: 18px; }
.standort-wahl label {
  display: flex; align-items: center; gap: 11px; margin: 0;
  text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 500;
  color: #1a1916; background: #fff; border: 1px solid #e2e0d8;
  border-radius: 8px; padding: 14px; cursor: pointer;
}
.standort-wahl label:has(input:checked) {
  border-color: #1a6b3c; background: #e8f5ee; color: #1a6b3c;
}
.standort-wahl input { width: 18px; height: 18px; accent-color: #1a6b3c; }

/* ── Standort-Umschalter im Verfügbarkeitsraster ──────────────────────────── */
.ort-tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.ort-tabs a {
  padding: 9px 15px; border-radius: 8px; font-size: 14px; font-weight: 500;
  text-decoration: none; color: #6b6860; background: #fff;
  border: 1px solid #e2e0d8;
}
.ort-tabs a.aktiv { background: #1a1916; color: #fff; border-color: #1a1916; }
.ort-tabs a .offen {
  font-family: ui-monospace, monospace; font-size: 11px; opacity: .7; margin-left: 5px;
}
/* „Standorte ändern" ist kein Standort — deshalb dezenter und immer am Ende
   der Zeile, statt wie eine weitere Auswahl auszusehen. */
.ort-tabs .ort-wechseln {
  border: none; background: none; color: #6b6860; font-size: 13px;
  text-decoration: underline; padding: 9px 4px; margin-left: auto;
}
.ort-tabs .ort-wechseln:hover { color: #1a6b3c; }
