/* Grundlegende Stile */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 20px;
  min-height: 100vh;
  background-color: #0a1128;
  color: white;
  box-sizing: border-box;
  position: relative;
  overflow-x: hidden;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

/* Dynamischer Hintergrund */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0a1128 0%, #1a2a6c 50%, #0a1128 100%);
  background-size: 400% 400%;
  z-index: -1;
  animation: gradientBG 150s ease infinite;
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Container-Stil anpassen */
.container {
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  background-color: transparent;
  padding: 0 15px;
}

header {
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}

h1 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: white;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #e9c46a;
  text-align: center;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #e9c46a;
}

/* User Controls (Logout Button) */
.user-controls {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  gap: 10px;
}

.logout-btn {
  display: inline-block;
  padding: 8px 15px;
  background-color: rgba(231, 76, 60, 0.8);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.logout-btn:hover {
  background-color: rgba(231, 76, 60, 1);
  transform: translateY(-2px);
}

/* Anpassung der Tab-Leiste an den Stil der seminar-schedule Seite */
.tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  flex-wrap: wrap;
  width: 100%;
  min-height: 42px; /* Mindesthöhe statt fester Höhe für bessere Responsivität */
}

.tab {
  padding: 10px 15px; /* Etwas kleineres Padding für mobile Geräte */
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
  font-size: 0.95rem; /* Etwas kleinere Schrift für mobile Geräte */
  display: flex;
  align-items: center;
  white-space: nowrap; /* Verhindert Umbrüche im Text */
}

/* Spezieller Stil für den Seminarplanung-Tab */
.tab.seminar-tab {
  margin-left: auto; /* Schiebt den Tab ganz nach rechts */
  background-color: rgba(42, 157, 143, 0.1); /* Leicht hervorgehobener Hintergrund */
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.tab:hover {
  background: rgba(255, 255, 255, 0.1);
}

.tab.active {
  border-bottom-color: #2a9d8f;
  background: rgba(255, 255, 255, 0.1);
}

/* Tab-Content-Breite anpassen */
.tab-content {
  display: none;
  width: 100%;
  max-width: 1600px;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Upload-Section und Download-Section Breite anpassen */
.upload-section,
.download-section {
  width: 100%;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  padding: 15px;
}

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

.form-row {
  display: flex;
  gap: 20px;
}

.form-row .form-group {
  flex: 1;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #e9c46a;
}

input[type="text"],
input[type="date"],
input[type="url"],
input[type="number"],
input[type="password"],
textarea.form-control {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.9);
  color: #333;
  max-width: 100%;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

input[type="text"]:focus,
input[type="date"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
textarea.form-control:focus {
  border-color: #2a9d8f;
  outline: none;
  box-shadow: 0 0 0 2px rgba(42, 157, 143, 0.3);
}

.file-input {
  display: none;
}

.file-label {
  display: inline-block;
  padding: 10px 20px;
  background-color: #2a9d8f;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.file-label:hover {
  background-color: #218879;
  transform: translateY(-2px);
}

.file-label:active {
  transform: translateY(1px);
}

.selected-file {
  margin-top: 10px;
  text-align: center;
  font-style: italic;
  color: rgba(255, 255, 255, 0.8);
}

/* Button-Stile */
.btn {
  display: inline-block;
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s;
  color: white;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.btn:focus:not(:active)::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  20% {
    transform: scale(25, 25);
    opacity: 0.3;
  }
  100% {
    opacity: 0;
    transform: scale(40, 40);
  }
}

.upload-btn {
  background-color: #2a9d8f;
  background-image: linear-gradient(to bottom, #2a9d8f, #218879);
  margin-top: 15px;
}

.upload-btn:hover {
  background-color: #218879;
  background-image: linear-gradient(to bottom, #218879, #1a7268);
  transform: translateY(-2px);
}

.upload-btn:active {
  transform: translateY(1px);
}

.download-btn {
  background-color: #3498db;
  background-image: linear-gradient(to bottom, #3498db, #2980b9);
}

.download-btn:hover {
  background-color: #2980b9;
  background-image: linear-gradient(to bottom, #2980b9, #2471a3);
  transform: translateY(-2px);
}

.download-btn:active {
  transform: translateY(1px);
}

.download-btn.gallery-open-btn {
  background-color: #2a9d8f;
  background-image: linear-gradient(to bottom, #2a9d8f, #218879);
  padding: 15px 30px;
  font-size: 18px;
  display: inline-block;
  margin: 20px auto;
}

.download-btn.gallery-open-btn:hover {
  background-color: #218879;
  background-image: linear-gradient(to bottom, #218879, #1a7268);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.delete-btn {
  background-color: #e76f51;
  background-image: linear-gradient(to bottom, #e76f51, #d65f41);
  padding: 6px 10px;
  font-size: 14px;
  min-width: 70px;
  text-align: center;
  white-space: nowrap;
}

.delete-btn:hover {
  background-color: #d65f41;
  background-image: linear-gradient(to bottom, #d65f41, #c54e30);
  transform: translateY(-2px);
}

.delete-btn:active {
  transform: translateY(1px);
}

/* Meldungen */
.message {
  padding: 10px 15px;
  margin-bottom: 20px;
  border-radius: 4px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  animation: slideDown 0.5s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message.success {
  background-color: rgba(46, 204, 113, 0.3);
  border-left: 4px solid #2ecc71;
}

.message.error {
  background-color: rgba(231, 76, 60, 0.3);
  border-left: 4px solid #e74c3c;
}

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

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.checkbox-group label {
  margin-bottom: 0;
  cursor: pointer;
}

/* Info-Text */
.info-text {
  margin-bottom: 15px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(0, 0, 0, 0.2);
  padding: 10px 15px;
  border-radius: 6px;
  border-left: 3px solid #e9c46a;
  text-align: center;
}

/* Datei-Konfiguration */
.file-config {
  padding: 15px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.file-config:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.05);
}

.file-config-content {
  width: 100%;
}

.file-config-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

/* Verbesserte Darstellung der Inhalte im Konfigurationsbereich */
.file-config {
  padding: 12px;
  margin-bottom: 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.file-config:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.file-config-controls {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 15px;
  align-items: center;
  margin-top: 8px;
}

/* Kompakteres Dauer-Eingabefeld */
.duration-field {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
}

.duration-field label {
  margin-bottom: 0;
  white-space: nowrap;
  font-size: 0.9rem;
}

.number-input.compact {
  width: 60px;
  padding: 5px;
  text-align: center;
  font-size: 0.9rem;
}

/* Verbesserte Checkbox-Darstellung */
.checkbox-group {
  margin-bottom: 0;
}

/* Verbesserte Datei-Info-Darstellung */
.file-info {
  padding: 5px;
  border-radius: 4px;
  background-color: rgba(0, 0, 0, 0.1);
}

.file-name {
  padding: 5px 10px;
}

/* Verbesserte Aktionsbuttons */
.file-actions {
  justify-content: flex-end;
}

.delete-btn {
  min-width: 80px;
  padding: 6px 12px;
}

.file-info {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-grow: 1;
}

.file-preview {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 5px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
}

.file-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.webpage-preview {
  background-color: rgba(52, 152, 219, 0.3);
}

.video-preview {
  background-color: rgba(231, 76, 60, 0.3);
}

.webpage-icon,
.video-icon {
  font-size: 24px;
  font-style: normal;
}

.file-name {
  flex-grow: 1;
  margin-right: 10px;
  word-break: break-all;
}

.file-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.file-actions .btn {
  flex: 1;
  min-width: 80px;
  padding: 8px 10px;
  font-size: 14px;
}

/* Drag & Drop */
.drag-handle {
  cursor: move;
  padding: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drag-handle::before {
  content: "≡";
  font-size: 20px;
}

.sortable-ghost {
  opacity: 0.5;
  background: rgba(255, 255, 255, 0.2);
}

/* Verstecke das Positionseingabefeld */
.position-field {
  display: none;
}

/* Drag-Hinweis */
.drag-hint {
  text-align: center;
  margin-bottom: 15px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.7);
}

/* URL-Eingabefeld */
.url-input {
  margin-top: 5px;
  width: 100%;
  font-size: 0.9em;
}

/* Footer */
footer {
  margin-top: 40px;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  padding: 20px 0;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.logo-container {
  position: absolute;
  bottom: 10px;
  left: 10px;
}

.footer-logo {
  max-width: 120px;
  max-height: 60px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: all 0.3s ease;
}

.footer-logo:hover {
  transform: scale(1.05);
}

/* Galerie-Stile */
.gallery-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 1920px;
  height: 1080px;
  max-width: 100%;
  max-height: 100%;
  background-color: #000;
  overflow: hidden;
  transition: opacity 0.5s ease;
}

.gallery-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #000;
  max-width: 1920px;
  max-height: 1080px;
}

.gallery-container video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #000;
  max-width: 1920px;
  max-height: 1080px;
}

.gallery-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  background-color: #000;
  max-width: 1920px;
  max-height: 1080px;
}

.no-items {
  color: white;
  text-align: center;
  font-size: 1.5rem;
  padding: 20px;
}

/* Ergänzung für Standby-Modus Einstellungen */
.standby-type-container {
  margin-bottom: 20px;
  background: rgba(0, 0, 0, 0.1);
  padding: 15px;
  border-radius: 8px;
}

.standby-type-option {
  display: inline-block;
  margin-right: 20px;
}

.standby-content-container {
  margin-top: 15px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
}

.standby-preview {
  margin-top: 15px;
  text-align: center;
}

.standby-preview img {
  max-width: 300px;
  max-height: 200px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.business-hours-container {
  margin-top: 30px;
}

.business-hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.business-hours-table th,
.business-hours-table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.business-hours-table th {
  background: rgba(0, 0, 0, 0.2);
  color: #e9c46a;
}

.business-hours-table tr:last-child td {
  border-bottom: none;
}

.business-hours-table input[type="time"] {
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 4px;
  color: #333;
}

.form-actions {
  margin-top: 20px;
  text-align: center;
}

/* Standby-Status */
.standby-status {
  background: rgba(0, 0, 0, 0.2);
  padding: 10px 15px;
  border-radius: 6px;
  margin-bottom: 15px;
  text-align: center;
  font-weight: bold;
}

/* Standby-Text */
.standby-text {
  color: white;
  text-align: center;
  font-size: 1.5rem;
  padding: 20px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .tab {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .container {
    padding: 0 10px;
  }

  h1 {
    font-size: 1.6rem;
  }

  .form-row {
    flex-direction: column;
    gap: 15px;
  }

  .btn {
    width: 100%;
    margin-bottom: 5px;
  }

  /* Verbesserte Tab-Darstellung für mobile Geräte */
  .tabs {
    display: flex;
    flex-wrap: wrap;
    border-bottom: none;
    margin-bottom: 15px;
    gap: 5px;
  }

  .tab {
    flex: 1 0 auto;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 8px 10px;
    margin-bottom: 5px;
    font-size: 0.85rem;
    justify-content: center;
  }

  /* Seminarplanung-Tab auf mobilen Geräten */
  .tab.seminar-tab {
    margin-left: 0; /* Zurücksetzen des auto-margin */
    flex: 1 0 100%; /* Volle Breite auf mobilen Geräten */
    background-color: rgba(42, 157, 143, 0.2); /* Etwas stärkerer Hintergrund für bessere Sichtbarkeit */
    border: 1px solid rgba(42, 157, 143, 0.3);
    order: 5; /* Stellt sicher, dass es immer als letztes angezeigt wird */
  }

  .tab.active {
    border-bottom: 1px solid #2a9d8f;
    border-left: 1px solid #2a9d8f;
    border-right: 1px solid #2a9d8f;
    border-top: 1px solid #2a9d8f;
    background: rgba(42, 157, 143, 0.2);
  }

  .file-config {
    grid-template-columns: 1fr;
  }

  .drag-handle {
    margin-bottom: 10px;
  }

  .file-config-controls {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .file-actions {
    margin-top: 10px;
    justify-content: space-between;
    width: 100%;
  }

  .footer-logo {
    max-width: 100px;
    max-height: 50px;
  }

  /* Verbesserte Darstellung der Inhalte auf mobilen Geräten */
  .file-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .file-preview {
    width: 40px;
    height: 40px;
  }

  .duration-field {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .number-input.compact {
    width: 100%;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.4rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  .container {
    padding: 0 5px;
  }

  .tab {
    padding: 6px 8px;
    font-size: 0.8rem;
  }

  .file-list li {
    flex-direction: column;
    align-items: flex-start;
  }

  .file-actions {
    margin-top: 10px;
    width: 100%;
    justify-content: space-between;
  }

  .file-actions .btn {
    width: 100%;
    text-align: center;
    margin-bottom: 5px;
  }

  /* Noch kompaktere Darstellung für sehr kleine Bildschirme */
  .file-config-controls {
    grid-template-columns: 1fr;
  }

  .checkbox-group {
    justify-content: flex-start;
  }
}

/* Füge diese Stile am Ende der CSS-Datei hinzu */

/* Hervorhebung für wichtige Inhalte */
.file-config.wichtig {
  border-left: 4px solid #e9c46a;
  background: rgba(233, 196, 106, 0.1);
  box-shadow: 0 2px 8px rgba(233, 196, 106, 0.2);
}

.file-config.wichtig:hover {
  background: rgba(233, 196, 106, 0.15);
  transform: translateY(-3px);
}

.wichtig-badge {
  display: inline-block;
  background-color: #e9c46a;
  color: #0a1128;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: bold;
  margin-left: 10px;
  vertical-align: middle;
}

/* Verbesserte Checkbox-Darstellung für wichtige Inhalte */
.checkbox-group input[type="checkbox"]#wichtig_checkbox + label {
  position: relative;
  padding-left: 5px;
}

.checkbox-group input[type="checkbox"]#wichtig_checkbox:checked + label {
  color: #e9c46a;
  font-weight: bold;
}

.help-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 15px;
  background-color: rgba(52, 152, 219, 0.8);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  margin-right: 10px;
}

.help-btn:hover {
  background-color: rgba(52, 152, 219, 1);
  transform: translateY(-2px);
}

.help-icon {
  font-size: 1.2rem;
  font-weight: bold;
  margin-right: 5px;
}

/* Zeitbasierte Regeln Stile */
.rule-container {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.rule-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.rule-header h3 {
  margin: 0;
  color: #e9c46a;
}

.checkbox-group-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 5px;
}

.items-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 10px;
  max-height: 200px;
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.1);
  padding: 10px;
  border-radius: 5px;
}

.rule-divider {
  border: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 20px 0 10px;
}

.remove-rule-btn {
  padding: 5px 10px;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .checkbox-group-container {
    flex-direction: column;
    gap: 5px;
  }

  .items-container {
    grid-template-columns: 1fr;
  }

  .rule-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .remove-rule-btn {
    width: 100%;
  }
}

/* Verbesserte Darstellung der Inhaltsauswahl bei zeitbasierten Regeln */
.items-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 8px;
  margin-top: 10px;
  max-height: 250px;
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.1);
  padding: 10px;
  border-radius: 5px;
}

.rule-item-checkbox {
  display: flex;
  align-items: flex-start;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  padding: 6px;
  transition: background-color 0.2s;
}

.rule-item-checkbox:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.rule-item-label {
  display: flex;
  align-items: center;
  margin-bottom: 0;
  cursor: pointer;
  font-weight: normal;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  line-height: 1.2;
  width: 100%;
  overflow: hidden;
}

.item-type-icon {
  margin-right: 6px;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.item-name-truncated {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Tooltip für den vollständigen Namen beim Hover */
.rule-item-label:hover .item-name-truncated {
  position: relative;
}

.rule-item-label:hover .item-name-truncated::after {
  content: attr(title);
  position: absolute;
  left: 0;
  top: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
  z-index: 10;
  white-space: normal;
  max-width: 250px;
  word-break: break-word;
}

@media (max-width: 768px) {
  .items-container {
    grid-template-columns: 1fr;
    max-height: 200px;
  }
}

/* Add styles to highlight temporarily activated items in the UI */
/* Add this at the end of the style.css file: */

/* Stil für temporär aktivierte Inhalte durch Zeitregeln */
.temporarily-active {
  position: relative;
  border-left: 4px solid #3498db;
  background: rgba(52, 152, 219, 0.1);
}

.temporarily-active::after {
  content: "Temporär aktiviert";
  position: absolute;
  top: 5px;
  right: 5px;
  background-color: #3498db;
  color: white;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: bold;
}

/* Hervorhebung für Inhalte in Zeitregeln */
.time-rule-item {
  border-left: 4px solid #9b59b6;
  background: rgba(155, 89, 182, 0.1);
}

.time-rule-badge {
  display: inline-block;
  background-color: #9b59b6;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: bold;
  margin-left: 10px;
  vertical-align: middle;
}
