/* ===================== */
/* Allgemeines Styling */
/* ===================== */

/* Datum mittig ausrichten mit Umrandung und Hintergrundfarbe */
.headline {
  text-align: center;
  font-size: 1.8em;
  font-weight: bold;
  border: 2px solid #ddd;
  padding: 10px;
  margin-bottom: 20px;
  width: 100%;
  display: block;
  background-color: #f8f9fa; /* Hintergrundfarbe passend zur Umrandung */
  border-radius: 8px;
}


.form-label {
  text-align: left;
  font-size: 1.2em;
  font-weight: bold;
  
  padding: 10px;
  margin-bottom: 10px;
  width: 100%;
  display: block;
 
}

/* ===================== */
/* Styling für Module/Karten */
/* ===================== */

.module-card {
  cursor: pointer;
  position: relative;
  border-radius: 8px;
  padding: 0px;
  display: flex;
  flex-direction: column;
  justify-content: start;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;            /* Inhalt wird bei Überschreitung versteckt */
  max-height: 120px;          /* Standardhöhe */
  transition: max-height 0.3s ease-in-out;
}

/* Zustand, wenn die Karte aufgeklappt ist */
.module-card.expanded {
  max-height: 9999px; /* "Unendlich" groß, passt sich dem Inhalt an */
}

/* Stellt sicher, dass jede Karte ihre eigene Höhe hat */
.row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start !important; /* Kein automatisches Angleichen */
}

/* ===================== */
/* Modulname & Icons */
/* ===================== */

.module-header {
  font-size: 1.2em;
  font-weight: bold;
  text-align: center;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  padding: 10px;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  position: relative;
}

/* ===================== */
/* Icons für Bearbeiten und Löschen */
/* ===================== */

.action-icons {
  display: flex;
  gap: 8px;
}

.action-icons a {
  text-decoration: none;
}

/* Stift-Icon (Bearbeiten) */
.icon-edit {
  font-size: 1.2em;
  color: #6c757d;
  padding: 6px;
  border-radius: 5px;
  transition: background 0.2s;
}
.icon-edit:hover {
  background: #e9ecef;
  color: #343a40;
}

/* Papierkorb-Icon (Löschen) */
.icon-delete {
  font-size: 1.2em;
  color: #6c757d;
  padding: 6px;
  border-radius: 5px;
  transition: background 0.2s;
}
.icon-delete:hover {
  background: #e9ecef;
  color: #dc3545;
}

/* ===================== */
/* Plus-Button für neues Modul */
/* ===================== */



.add-module {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  color: #555;
  height: auto;
  background: #f0f0f0;
  border: 2px dashed #aaa;
  cursor: pointer;
  transition: 0.2s;
  border-radius: 8px;
  min-height: 75px;
}
.add-module:hover {
  background: #ddd;
  transform: scale(1.05);
}

/* ===================== */
/* Inhalt & iFrames */
/* ===================== */

.card-body {
  padding: 10px;
  flex-grow: 1;
     position: relative;
  padding-right: 2rem; /* damit zwischen Icon und Text mehr Platz ist */
}

/* Sicherstellen, dass iFrames (YouTube-Videos) korrekt dargestellt werden */
.module-card iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
}

/* ===================== */
/* Tabellen & Buttons */
/* ===================== */

.table th {
  text-align: center;
  background-color: #f8f9fa;
}

.table td {
  vertical-align: middle;
}

.btn-sm {
  padding: 5px 8px;
  font-size: 14px;
}

/* ===================== */
/* Farbwähler */
/* ===================== */

.color-picker {
  width: 30px;
  height: 30px;
  border: none;
  cursor: pointer;
  padding: 0;
  display: block;
  margin: auto;
}

/* ===================== */
/* Icons für Aktionen optimieren */
/* ===================== */

.fa-arrow-up, .fa-arrow-down, .fa-trash-alt, .fa-check, .fa-times {
  font-size: 1.2em;
}

/* Standard nicht aktiv (rotes X) */
.btn-standard {
  border: none;
  background: transparent;
  padding: 5px;
}

.btn-standard i {
  color: #dc3545;
}

/* Standard aktiv (grünes Häkchen bleibt grün) */
.btn-standard.active {
  background: transparent;
  color: #12b933 !important;
  border-radius: 5px;
  padding: 6px 10px;
}

.btn-standard.active i {
  color: #1eaa2f !important;
}



/* Papierkorb nur rot, ohne Hintergrund */
.btn-delete i {
  color: #dc3545;
}

/* Zentrierte Icons */
.text-center i {
  vertical-align: middle;
}

/* -- 1) btn-danger dauerhaft rot anzeigen -- */
.btn-danger2 {
  background-color: #dc3545 !important; /* Rot */
  color: #fff !important;               /* weiße Schrift */
  border: none !important;             /* kein Rand */
}

/* -- 2) Container für "Anhänge" Überschrift und Icon -- */
.attachments-header {
  position: relative;
  text-align: center;       /* Text selbst mittig ausrichten */
  font-size: 1.2em;
  font-weight: bold;
  border: 2px solid #ddd;
  padding: 10px;
  margin-bottom: 20px;
  width: 100%;
  background-color: #f8f9fa;
  border-radius: 8px;
}

/* -- Icon: links, größer, rot -- */
.upload-icon {
  position: absolute;
  left: 15px;               /* Abstand vom linken Rand */
  top: 50%;                 
  transform: translateY(-50%);
  color: #5C636A;
  font-size: 1.6em;
  cursor: pointer;
}

/* -- Damit der Text "Anhänge" in der Mitte bleibt -- */
.attachments-title {
  pointer-events: none;     /* Klicks gehen nicht auf den Text, sondern aufs Icon */
  pointer-events: none;     /* Klicks gehen nicht auf den Text, sondern aufs Icon */
}

/* ===================== */
/* Nav-Link Styling */
/* ===================== */
.navbar-nav .nav-link {
   font-size: 1.1rem; 
    color: #343a40 !important;   /* dunkler Text */
  font-weight: 500;            /* etwas dicker */
  display: flex;
  align-items: center;
  gap: 5px;                    /* kleiner Abstand zwischen Icon und Text */
  transition: background-color 0.2s;
  border-radius: 4px;
  margin-right: 8px;           /* leichter Abstand zwischen Links */
}

.navbar-nav .nav-link i {
  font-size: 1.1em;        /* Größe für Icons */
  line-height: 1;          /* Ggf. anpassen, damit Icon zentriert ist */
}

.navbar-nav .nav-link:hover {
  background-color: #e9ecef;   /* dezenter Hover-Hintergrund */
  color: #212529 !important;
  text-decoration: none;
}

/* Wenn der Link aktiv ist (Bootstrap .active), kann man z.B. so stylen: */
.navbar-nav .nav-link.active {
  background-color: #dee2e6;
  color: #212529 !important;
}

/* Zusätzliche Feinheiten kannst du nach Belieben anpassen. */


