/* Basis-Reset und Box-Sizing */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Grundlegende Schriftarten und Farben */
body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  color: #333;
  background-color: #f9f9f9;
  line-height: 1.6;
}

/* Container für zentrierte Inhalte */
.container {
  max-width: 1200px;
  margin: 20px auto;
  padding: 20px;
  background-color: #fff;
}

/* Header Styling */
header {
  background-color: #003366; /* Dunkelblau als Corporate-Farbe */
  padding: 15px 20px;
  color: #fff;
}

.header-container {
  display: flex;
  align-items: center;
}

.header-container .logo {
  height: 60px;
  margin-right: 20px;
}

.header-text h1 {
  margin: 0;
  font-size: 2em;
}

.header-text p {
  margin: 0;
  font-size: 1em;
  opacity: 0.9;
}

/* Navigation Styles (inkl. Dropdown-Menüs) */
.admin-navigation {
  background-color: #003366;
  margin: 20px 0;
}

.admin-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}

.admin-navigation ul li {
  position: relative;
}

.admin-navigation ul li a {
  display: block;
  padding: 10px 15px;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

.admin-navigation ul li a:hover {
  background-color: #002244;
}

/* Dropdown-Menü */
.admin-navigation li.dropdown:hover > a {
  background-color: #002244;
}

.admin-navigation .dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 1000;
}

.admin-navigation li.dropdown:hover .dropdown-content {
  display: block;
}

.admin-navigation .dropdown-content li {
  display: block;
}

.admin-navigation .dropdown-content li a {
  padding: 10px;
  color: #003366;
}

.admin-navigation .dropdown-content li a:hover {
  background-color: #e0e0e0;
}

/* Formulare */
.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #003366;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 3px;
}
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: #f9f9f9;
  color: #333;
  min-height: 120px; /* Falls du eine Standardhöhe möchtest */
  resize: vertical; /* Benutzer kann die Höhe anpassen */
  transition: border-color 0.3s, box-shadow 0.3s;
}

/* Fokus-Styling */
.form-group textarea:focus {
  border-color: #003366;
  outline: none;
  box-shadow: 0 0 5px rgba(0, 51, 102, 0.5);
}


/* Buttons */
button, .button {
  background-color: #003366;
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 3px;
  cursor: pointer;
  font-weight: bold;
}

button:hover {
  background-color: #002244;
}

/* Meldungen */
.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  padding: 10px;
  margin-bottom: 15px;
}

.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  padding: 10px;
  margin-bottom: 15px;
}

/* Footer */
footer {
  background-color: #003366;
  color: #fff;
  text-align: center;
  padding: 15px;
  margin-top: 20px;
  font-size: 0.9em;
}

/* --- Bestehende Styles (Header, Navigation etc.) --- */

/* Kachel-Übersicht für Prüfungen */
.exam-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.tile {
  background-color: #f1f1f1;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tile h3 {
  margin-bottom: 10px;
  color: #003366;
}

.tile p {
  font-size: 0.9em;
  color: #333;
  margin-bottom: 15px;
}

.tile-button {
  display: inline-block;
  background-color: #003366;
  color: #fff;
  padding: 8px 12px;
  text-decoration: none;
  border-radius: 3px;
  transition: background-color 0.3s;
}

.tile-button:hover {
  background-color: #002244;
}



/* Container für zentrierte Inhalte */
.container {
  max-width: 1200px;
  margin: 20px auto;
  padding: 20px;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Spalten */
.row {
  display: flex;
  flex-wrap: wrap;
}

.col {
  flex: 1;
  padding: 10px;
}

.border-end {
  border-right: 1px solid #ccc;
}

.border-bottom {
  border-bottom: 1px solid #ccc;
}

/* Sektionen */
.section {
  margin-bottom: 20px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 15px;
  border-radius: 3px;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  font-weight: bold;
}

.btn-warning {
  background-color: #ffcc00;
  color: #fff;
}

.btn-danger {
  background-color: #d4004b;
  color: #fff;
}

.btn-secondary {
  background-color: #ccc;
  color: #333;
}

.btn:hover {
  opacity: 0.8;
}

/* Button-Gruppe */
.button-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}

.modal-content {
  background-color: #fff;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #ccc;
  width: 80%;
  max-width: 500px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.modal-header, .modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  margin: 0;
}

.close {
  cursor: pointer;
  font-size: 1.5em;
}

/* Tabellen-Styling */
.table-container {
  max-width: 1200px;
  margin: 20px auto;
  padding: 20px;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.table th, .table td {
  padding: 12px 15px;
  border: 1px solid #ccc;
  text-align: left;
}

.table th {
  background-color: #003366;
  color: #fff;
  font-weight: bold;
}

.table tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* Datums-Auswahl Styling */
input[type="date"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 8px;
  font-size: 16px;
  color: #333;
  width: 100%;
  box-sizing: border-box;
}

input[type="date"]::-webkit-inner-spin-button,
input[type="date"]::-webkit-calendar-picker-indicator {
  display: none;
}

input[type="date"]:focus {
  border-color: #003366;
  outline: none;
  box-shadow: 0 0 5px rgba(0, 51, 102, 0.5);
}

/* Checkbox-Gruppe Styling */
.checkbox-group {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.checkbox-group input[type="checkbox"] {
  margin-right: 10px;
}

.checkbox-group label {
  font-size: 16px;
  color: #333;
}

/* Dropdown-Menü Styling */
select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 3px;
  background-color: #fff;
  font-size: 16px;
  color: #333;
  box-sizing: border-box;
}

select:focus {
  border-color: #003366;
  outline: none;
  box-shadow: 0 0 5px rgba(0, 51, 102, 0.5);
}
/* Inline-Formular Styling */
.form-inline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-inline select {
  flex: 1;
}

.form-inline button {
  flex: 0;
}

/* Notizen Container */
.note {
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 10px;
  margin-bottom: 10px;
  position: relative;
  transition: background-color 0.3s, border-color 0.3s;
  overflow: hidden;
}

.note-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.note-title {
  font-weight: bold;
  margin: 0;
}

.note-date {
  font-size: 0.9em;
  color: #666;
}

.note-content {
  display: none;
  margin-top: 10px;
}

.note-content p {
  margin: 0;
}

/* Farben für verschiedene Notiztypen */
.note-neutral {
  background-color: #f9f9f9;
  border-color: #ccc;
}

.note-positive {
  background-color: #d4edda;
  border-color: #c3e6cb;
}

.note-negative {
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

.note-info {
  background-color: #d1ecf1;
  border-color: #bee5eb;
}

/* Hervorhebung für wichtige Notizen */
.note-important {
  border: 2px solid #d4004b;
}

/* Ausklappbare Notizen */
.note-header::after {
  content: '\25BC';
  font-size: 0.8em;
  margin-left: 10px;
}

.note-header.active::after {
  content: '\25B2';
}

.note-header.active + .note-content {
  display: block;
}

/* Scrollbare Notizenliste */
.notes-container {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 10px;
}

/* Basis-Styles für Alerts */
.alert {
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

/* Fehler-Alert */
.alert-error {
  background-color: #f8d7da;
  color: #721c24;
  border-color: #f5c6cb;
}

/* Erfolgs-Alert */
.alert-success {
  background-color: #d4edda;
  color: #155724;
  border-color: #c3e6cb;
}

/* Warnungs-Alert */
.alert-warning {
  background-color: #fff3cd;
  color: #856404;
  border-color: #ffeeba;
}

/* Informations-Alert */
.alert-info {
  background-color: #d1ecf1;
  color: #0c5460;
  border-color: #bee5eb;
}

/* Allgemeiner Kommentar-Stil */
.comment {
  max-width: 80%;
  padding: 10px 15px;
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Eigene Kommentare */
.comment-self {
  background-color: #003366;
  color: #fff;
  align-self: flex-end;
  text-align: right;
}

/* Fremde Kommentare */
.comment-other {
  background-color: #f1f1f1;
  color: #fff;
  align-self: flex-start;
  text-align: left;
}

/* Zusätzliche Kommentarelemente */
.comment-meta {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
}
/* Pagination-Container */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
  padding: 10px;
}

/* Einzelne Seitenlinks */
.pagination a {
  color: #003366;
  background-color: #fff;
  border: 1px solid #ccc;
  padding: 8px 12px;
  margin: 0 5px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s, color 0.3s;
}

/* Aktive Seite */
.pagination a.active {
  background-color: #003366;
  color: #fff;
  border-color: #003366;
}

/* Hover-Effekt */
.pagination a:hover {
  background-color: #002244;
  color: #fff;
}

/* Deaktivierte Links (z. B. Vor/Zurück, wenn nicht verfügbar) */
.pagination a.disabled {
  color: #aaa;
  background-color: #f1f1f1;
  border-color: #ddd;
  cursor: not-allowed;
}

/* Grid-Container für Anträge */
.application-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* Kachel-Grunddesign */
.application-tile {
  background-color: #ffffff;
  border: 1px solid #ccc;
  border-left: 5px solid #003366;
  border-radius: 6px;
  padding: 15px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

.application-tile:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Titel */
.application-tile h4 {
  margin: 0 0 8px 0;
  font-size: 1.1em;
  color: #003366;
}

/* Link innerhalb der Kachel */
.application-tile a {
  color: #003366;
  text-decoration: none;
  font-weight: bold;
}

.application-tile a:hover {
  text-decoration: underline;
}

/* Kategorie-Titel */
.application-category {
  font-size: 1.2em;
  font-weight: bold;
  margin-top: 30px;
  color: #003366;
}
