/* ========================= */
/* 🌐 Basislayout & Farben   */
/* ========================= */
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
}

header.banner {
  background: url('/assets/img/abstraktes-glattes-dunkelblau-mit-schwarzem-vignettenstudio-gut-als-hintergrundgeschaeftsberichtdigitalweb-verwenden_1258-107794.avif') no-repeat center center;
  background-size: cover;
  padding: 4rem 1rem;
  text-align: center;
  color: white;
  position: relative;
  z-index: 0;
}

header.banner::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

header.banner h1,
header.banner p {
  position: relative;
  z-index: 1;
}

header.banner h1 {
  font-size: 2.8rem;
  margin: 0;
  font-weight: bold;
}

header.banner p {
  font-size: 1.2rem;
  margin-top: 0.5rem;
}

/* ========================= */
/* 📦 Section Layout         */
/* ========================= */
section {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

h2 {
  color: #00467f;
}


/* ========================= */
/* 📋 Formulare              */
/* ========================= */
form label {
  display: block;
  margin-top: 1rem;
  font-weight: bold;
}

form input,
form textarea {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.3rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

form button {
  margin-top: 1rem;
  background-color: #00467f;
  color: white;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
}

form button:hover {
  background-color: #003366;
}


/* ========================= */
/* ⚙️ Flex Wrapper            */
/* ========================= */
.flex-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}

.flex-wrapper > div {
  flex: 1;
  min-width: 280px;
}

.flex-wrapper img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(0,0,0,0.1);
}


/* ========================= */
/* 🔒 Statusbar oben rechts  */
/* ========================= */
.admin-statusbar {
  position: fixed;
  top: 0.7rem;
  right: 1.2rem;
  z-index: 1000;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background-color: #ffffffd0;
  border: 1px solid #00467f;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.admin-statusbar span.status {
  background-color: #e0f0ff;
  border: 1px solid #00467f;
  border-radius: 6px;
  padding: 0.3rem 0.8rem;
  color: #00467f;
  font-weight: bold;
}

.admin-statusbar .admin-button {
  background-color: #00467f;
  color: white;
  text-decoration: none;
  font-size: 0.8rem;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  border: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.admin-statusbar .admin-button:hover {
  background-color: #003366;
  transform: scale(1.05);
}


/* ========================= */
/* 🔻 Footer Styling         */
/* ========================= */

.footer-bar {
  background-color: #00325a;
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 0.95rem;
  border-top: 4px solid #00325a;
  color: white;
}

.footer-bar p {
  color: white;
  margin: 0.3rem 0 1rem 0;
}

.footer-links {
  display: inline-flex;
  justify-content: center;
  gap: 1.5rem;
  background-color: transparent;
  padding: 0;
  margin: 0 auto;
}

.footer-links a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.footer-links a:hover {
  color: #cde8ff;
  text-decoration: underline;
}

/* ========================= */
/*  📁 Dokumenten-Tabelle    */
/* ========================  */

table.doc-table,
.dokumente-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background: white;
  border: 2px solid #00467f;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

table.doc-table th,
table.doc-table td,
.dokumente-table th,
.dokumente-table td {
  padding: 0.9rem 1.2rem;
  border: 1px solid #ccc;
  text-align: left;
  vertical-align: middle;
}

table.doc-table th,
.dokumente-table th {
  background-color: #00467f;
  color: white;
  font-weight: bold;
}

table.doc-table tr:hover {
  background-color: #f0f8ff;
}

.download-btn {
  padding: 0.5rem 1rem;
  background-color: #00467f;
  color: white;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
}

.download-btn:hover {
  background-color: #003366;
}


/* 📁 Vorsorgedokumente-Tabelle im Info-Formular */

.user-info-doc-table {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #f9f9f9;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
}

.user-info-doc-table td {
  border: none;
  padding: 0.6rem 0.3rem;
  vertical-align: middle;
}

.user-info-doc-table td:nth-child(2) {
  font-weight: bold;
}


/* ================== */
/*  📅 Terminkalender */
/* ================== */

#calendar {
    max-width: 900px;
    margin: 2rem auto;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
  
.fc-toolbar-title {
  font-size: 1.6rem;
}
  
/* ✅ Eigene Termine */
.event-eigen {
  background-color: #4CAF50 !important;
  border-color: #4CAF50 !important;
  color: white !important;
}
  
/* 🔴 Fremde Termine */
.event-fremd {
  background-color: #f44336 !important;
  border-color: #f44336 !important;
  color: white !important;
}

/* 🟦 Beantragte Termine */
.event-beantragt {
  background-color: #2196f3 !important;
  border-color: #2196f3 !important;
  color: white !important;
  position: relative;
}

/* 🕒 Nicht wählbare Zeiten (optisch hervorheben) */
.fc-timegrid-slot-label.fc-timegrid-slot-minor {
  background-color: #f0f0f0;
}

/* ================================ */
/* 📣 Globale Popups & Modals       */
/* ================================ */

/* 🪟 Allgemeine Modals */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
  position: relative;
}

/* Nur der Schließen-Button oben rechts */
.modal-content button.close-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #ccc;
  border: none;
  border-radius: 4px;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
}

.modal-content button.close-button:hover {
  background: #999;
}

/* Alle anderen Buttons im Modal */
.modal-content button:not(.close-button) {
  margin-top: 1.5rem;
  padding: 0.7rem 1.5rem;
  background: #00467f;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  position: static; /* GANZ WICHTIG: NICHT mehr absolut */
}

.modal-content button:not(.close-button):hover {
  background: #003366;
}

/* ✅ Speichern-Button im Modal */
.modal-save-button {
  margin-top: 1.5rem;
  padding: 0.7rem 2rem;
  background-color: #2e7d32;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.1rem;
}

.modal-save-button:hover {
  background-color: #1b5e20;
}

/* ⏳ Später-Button im Modal */
.modal-later-button {
  margin-top: 1.5rem;
  padding: 0.7rem 2rem;
  background-color: #a94442;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.1rem;
}

.modal-later-button:hover {
  background-color: #922d2d;
}


/* ✅ Erfolgspopup */
.popup-overlay {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  justify-content: center;
  align-items: center;
}

.success-popup {
  background-color: #f0fff4;
  color: #2e7d32;
  border: 2px solid #2e7d32;
  padding: 1rem;
  max-width: 500px;
  margin: 2rem auto;
  border-radius: 8px;
  text-align: center;
  font-weight: bold;
  font-size: 1.1rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.success-popup button {
  background-color: #2e7d32;
  color: white;
  border: none;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  margin-top: 1rem;
  cursor: pointer;
}

.success-popup button:hover {
  background-color: #1b5e20;
}

/* ⚠️ Datenschutz-/Warn-Popup */
.datenschutz-popup {
  display: none;
  position: fixed;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff4f4;
  color: #a94442;
  padding: 1.5rem 2rem;
  border: 2px solid #a94442;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  z-index: 10001;
  text-align: center;
  max-width: 400px;
  font-weight: bold;
}

.datenschutz-popup button {
  margin-top: 1rem;
  background-color: #a94442;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  cursor: pointer;
}

.datenschutz-popup button:hover {
  background-color: #922d2d;
}

.label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.label .icon {
  display: inline-block;
  width: 30px;
  text-align: center;
  flex-shrink: 0;
}

.label .text {
  flex: 1;
}

/* ⚠️ Allgemeine Warn-Popups */
.warning-popup {
  display: none;
  position: fixed;
  z-index: 10001;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff3cd;
  color: #856404;
  padding: 2rem;
  border: 2px solid #ffeeba;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  text-align: center;
  max-width: 400px;
  font-weight: bold;
}

.warning-popup button {
  margin-top: 1rem;
  background-color: #856404;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  cursor: pointer;
}

.warning-popup button:hover {
  background-color: #6c5200;
}


/* ================================ */
/* 📋 Checkbox-Gruppen              */
/* ================================ */

.checkbox-wrapper {
  border: 1px solid #ccc;
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
}

.checkbox-wrapper label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
  font-weight: normal;
  line-height: 1.4;
  cursor: pointer;
}

.checkbox-wrapper input[type="checkbox"] {
  width: 16px;
  height: 16px;
  appearance: auto;
  cursor: pointer;
  margin-top: 0.3rem;
}

.checkbox-table {
  width: 100%;
  border-collapse: collapse;
}

.checkbox-table td {
  padding: 0.4rem 1rem;
  vertical-align: top;
}

.checkbox-flex-group {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.checkbox-column {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ========================================= */
/* 🔒 DATEI-LÖSCHEN-MODAL                    */
/* ========================================= */

/* 🖼️ Overlay-Hintergrund */
.delete-modal-overlay {
  display: none; /* Wird per JS auf 'flex' gesetzt */
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  justify-content: center;
  align-items: center;
}

/* 💬 Modal-Box (Popup-Fenster) */
.delete-modal-box {
  background: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.2);
  font-family: Arial, sans-serif;
}

/* 🧾 Modal-Text */
.delete-modal-box p {
  font-size: 1.1rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 1.5rem;
}

/* ========================================= */
/* 🔘 LÖSCHEN-BUTTONS                        */
/* ========================================= */

.delete-btn {
  padding: 0.6rem 1.4rem;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin: 0 0.5rem;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

/* ✅ Bestätigen */
.delete-btn.confirm {
  background-color: #d32f2f;
  color: white;
}
.delete-btn.confirm:hover {
  background-color: #b71c1c;
  transform: scale(1.03);
}

/* ❌ Abbrechen */
.delete-btn.cancel {
  background-color: #ccc;
  color: #333;
}
.delete-btn.cancel:hover {
  background-color: #bbb;
  transform: scale(1.03);
}

/* ========================================= */
/* 🎉 ERFOLGS-POPUPS (Upload / Delete)       */
/* ========================================= */

/* 🔲 Boxen für Upload- oder Löschmeldung */
.upload-popup-box,
.delete-popup-box {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.2);
  font-weight: bold;
  color: #00467f;
  font-family: Arial, sans-serif;
}

/* 🔘 Button in Erfolgspopup */
.upload-popup-box button,
.delete-popup-box button {
  margin-top: 1rem;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  border: none;
  background-color: #00467f;
  color: white;
  cursor: pointer;
  font-weight: bold;
}
.upload-popup-box button:hover,
.delete-popup-box button:hover {
  background-color: #00325a;
}

/* ============================ */
/* 🌙 Darkmode-Erweiterungen   */
/* ============================ */

/* ⚙️ Basislayout */
body.darkmode {
  background-color: #121212;
  color: #e0e0e0;
}

body.darkmode a,
body.darkmode .admin-button {
  color: #ffffff;
}

body.darkmode h2 {
  color: #90caf9;
}

/* 📋 Formulare */
body.darkmode form label {
  color: #e0e0e0;
}

body.darkmode input,
body.darkmode textarea {
  background-color: #1e1e1e;
  color: #ffffff;
  border: 1px solid #555;
}

body.darkmode form button {
  background-color: #1976d2;
}

body.darkmode form button:hover {
  background-color: #0d47a1;
}

/* 🧩 Section */
body.darkmode section {
  background-color: #1e1e1e;
  color: #e0e0e0;
  border: 1px solid #333;
}

/* 📦 Flex Wrapper */
body.darkmode .flex-wrapper img {
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.05);
}

/* 🛠 Statusbar */
body.darkmode .admin-statusbar {
  background-color: #1e1e1e;
  border-color: #444;
}

body.darkmode .admin-statusbar span.status {
  background-color: #2c2c2c;
  border-color: #666;
  color: #90caf9;
}

body.darkmode .admin-statusbar .admin-button {
  background-color: #333;
}

/* 🔻 Footer */
body.darkmode .footer-bar {
  background-color: #1f1f1f;
  border-color: #2c2c2c;
  color: #ddd;
}

body.darkmode .footer-bar p,
body.darkmode .footer-links a {
  color: #ccc;
}

body.darkmode .footer-links a:hover {
  color: #90caf9;
}

/* 📁 Tabellen */
body.darkmode table.doc-table,
body.darkmode .dokumente-table {
  background-color: #1e1e1e;
  border-color: #444;
}

body.darkmode table.doc-table th,
body.darkmode .dokumente-table th {
  background-color: #333;
  color: #fff;
}

body.darkmode table.doc-table td,
body.darkmode .dokumente-table td {
  border-color: #555;
  color: #ddd;
}

body.darkmode table.doc-table tr:hover {
  background-color: #2c2c2c;
}

body.darkmode .download-btn {
  background-color: #1976d2;
  color: white;
}

body.darkmode .download-btn:hover {
  background-color: #0d47a1;
}

/* 📁 Benutzer-Info-Tabelle */
body.darkmode .user-info-doc-table {
  background-color: #1e1e1e;
  border-color: #444;
}

/* 📅 Kalender */
body.darkmode #calendar {
  background-color: #1e1e1e;
  color: #ddd;
}

/* ⏱ Timegrid in Kalender */
body.darkmode .fc-timegrid-slot-label.fc-timegrid-slot-minor {
  background-color: #2c2c2c;
}

/* 🪟 Modals */
body.darkmode .modal-content {
  background-color: #2a2a2a;
  color: #fff;
}

body.darkmode .modal-content button {
  background-color: #555;
  color: white;
}

body.darkmode .modal-content button:hover {
  background-color: #888;
}

/* ✅ Erfolgspopup */
body.darkmode .success-popup {
  background-color: #1b2e1b;
  color: #81c784;
  border-color: #388e3c;
}

body.darkmode .success-popup button {
  background-color: #388e3c;
}

body.darkmode .success-popup button:hover {
  background-color: #2e7d32;
}

/* ⚠️ Datenschutzpopup */
body.darkmode .datenschutz-popup {
  background-color: #2c0d0d;
  color: #f28b82;
  border-color: #c62828;
}

body.darkmode .datenschutz-popup button {
  background-color: #c62828;
}

body.darkmode .datenschutz-popup button:hover {
  background-color: #b71c1c;
}

/* ☑️ Checkboxen */
body.darkmode .checkbox-wrapper {
  background-color: #1e1e1e;
  border-color: #444;
  color: #ccc;
}

body.darkmode .checkbox-wrapper label {
  color: #ccc;
}

