body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
}

/* Verhindert Flackern: Body ist versteckt, bis das Script geladen ist */
body.preload {
  visibility: hidden; /* Versteckt den gesamten Body */
  opacity: 0; /* Setzt die Transparenz auf 0 */
}

/* Allgemeine Header-Stile */
.header {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  height: 15vh;
}

/* Werbebalken */
.ad-bar {
  background-color: #0C4774; /* Weißer Hintergrund */
  color: white; /* Schwarzer Text */
  text-align: center;
  padding: 10px 0;
  font-weight: bold;
  border-bottom: 2px solid #f0f0f0;
}

/* Logo- und Dark Mode-Bereich */
.logo-container {
  background-color: #fff; /* Weißer Hintergrund */
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 80%;
  margin: auto;
  padding: 10px 2px;
}

.logo {
  height: 50px;
}

/* Container-Stil */
.dark-mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  font-family: Arial, sans-serif;
}

.label-text {
  font-weight: bold;
}

/* Slider-Container */
.dark-mode-toggle input {
  display: none; /* Versteckt das Standard-Checkbox-Element */
}

.slider {
  position: relative;
  width: 50px;
  height: 24px;
  background: #ccc;
  border-radius: 24px;
  transition: background 0.3s ease;
}

.slider::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Aktivierter Zustand */
input:checked + .slider {
  background: #4caf50; /* Grün für aktiv */
}

input:checked + .slider::before {
  transform: translateX(26px); /* Bewegt den Schalter nach rechts */
}

.tracking {
  position: relative;
  text-align: center;
  padding: 50px 20px;
  background: linear-gradient(
      92.93deg,
      #f0f0f0 1.24%,
      #c9e0ff 98.76%
    ),
    radial-gradient(
      146.22% 164.16% at 48.99% 0%,
      rgba(101, 214, 239, 0.65) 0%,
      rgba(210, 235, 229, 0) 65%
    );
  height: 35vh;
}

.tracking h1 {
  font-size: 50px;
  font-weight: 600;
  margin-bottom: 30px;
  color: #0C4774;
  font-family: 'Inter';
}

.search-container {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 400px;
}

.search-input {
  width: 90%;
  padding: 15px 20px;
  border: 2px solid #ddd;
  border-radius: 30px;
  font-size: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  outline: none;
  transition: all 0.3s ease;
}

.search-input:focus {
  border-color: #007acc;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.search-icon {
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  border: none;
  background: none;
  color: #007acc;
  font-size: 18px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.search-icon:hover {
  color: #005bb5;
}

.search-icon i {
  pointer-events: none; /* Das Icon bleibt klicksicher */
}

/* Container für die Nachricht */
.tracking-message {
  margin: 20px auto; /* Zentriert die Nachricht */
  max-width: 400px; /* Begrenzte Breite */
  font-size: 16px;
  text-align: center;
  padding: 15px 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px; /* Platz zwischen Text und Icon */
  opacity: 0; /* Unsichtbar, bis die Animation startet */
  transform: translateY(-20px); /* Startpunkt für Animation */
  transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.2s ease;
  background: linear-gradient(145deg, #ffffff, #f0f0f0); /* Subtler Farbverlauf */
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.1), -4px -4px 10px rgba(255, 255, 255, 0.5);
  position: relative;
  z-index: 9999;
}

/* Erfolgsnachricht */
.tracking-message.success {
  color: #1e7e34;
  background: linear-gradient(145deg, #e6f4ea, #d4edda); /* Dezenter grüner Verlauf */
  border: 1px solid #b5d8c6;
}

.tracking-message.success i {
  color: #28a745; /* Erfolgsicon-Farbe */
}

/* Fehlermeldung */
.tracking-message.error {
  color: #842029;
  background: linear-gradient(145deg, #fbe3e4, #f8d7da); /* Dezenter roter Verlauf */
  border: 1px solid #f5c6cb;
}

.tracking-message.error i {
  color: #e55353; /* Fehlersymbol-Farbe */
}

/* Animation aktivieren */
.tracking-message.show {
  opacity: 1;
  transform: translateY(0); /* Zurück zur normalen Position */
  box-shadow: 6px 6px 15px rgba(0, 0, 0, 0.2), -6px -6px 15px rgba(255, 255, 255, 0.8); /* Eleganter Hover-ähnlicher Schatten */
}

/* Font Awesome Icon Styling */
.tracking-message i {
  font-size: 22px;
  display: flex;
  align-items: center;
}

.auftrag {
  padding: 20px;
  text-align: center;
  font-family: Arial, sans-serif;
}

.auftrag h2{
    color: #003580;
}

.alert-field {
  padding: 15px;
  margin: 15px 0;
  border: 1px solid #ddd;
  border-left: 5px solid #2196F3;
  border-radius: 3px;
  background-color: #f1f1f1;
  display: none; /* Standardmäßig nicht sichtbar */
  font-size: 16px;
}

/* Optional: Unterschiedliche Varianten, z. B. für FR und TN */
.alert-field.success {
  border-left-color: #4CAF50;
  background-color: #e7f9ee;
  color: #2e7d32;
}

.alert-field.warning {
  border-left-color: #ff9800;
  background-color: #fff3e0;
  color: #e65100;
}

/* Container für Fortschrittsbalken und Diagramm */
.progress-diagram-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 80%;
  margin: auto;
  margin-bottom: 30px;
  gap: 20px; /* Abstand zwischen Fortschrittsbalken und Diagramm */
  height: 20vh;
}

/* Fortschrittsanzeige */
.progress-container {
  flex: 1; /* Lässt Fortschrittsanzeige mehr Platz */
  text-align: left;
}

.progress-container p {
  font-size: 16px;
  margin-bottom: 10px;
}

.progress-bar {
  height: 20px;
  width: 100%;
  background-color: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: #4caf50;
  width: 0%;
  transition: width 0.5s ease;
}

/* Kreisdiagramm */
.chart-container {
  width: 150px; /* Feste Breite */
  height: 150px; /* Feste Höhe */
}


/* Auftragsliste */
/* Auftragsliste */
.auftrag-list {
  margin-top: 20px;
  display: grid;
  gap: 20px; /* Abstand zwischen den Elementen */
  justify-items: center; /* Zentriert die Elemente horizontal */
}

/* Einzelne Aufträge */
.auftrag-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 80%;
  padding: 15px 25px;
  border-radius: 12px;
  background: #f9f9f9; /* Standardhintergrund */
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.1), -4px -4px 10px rgba(255, 255, 255, 0.7);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
}

/* Erfolgreich: Leichtes Grün */
.auftrag-item.erfolgreich {
  background: rgba(76, 175, 80, 0.1); /* Leichtes Grün */
}

/* Ausstehend: Leichtes Gelb */
.auftrag-item.ausstehend {
  background: rgba(255, 193, 7, 0.1); /* Leichtes Gelb */
}

/* Fehlgeschlagen: Leichtes Rot */
.auftrag-item.fehlgeschlagen {
  background: rgba(244, 67, 54, 0.1); /* Leichtes Rot */
}

/* Hover-Effekte */
.auftrag-item:hover {
  transform: translateY(-5px);
  box-shadow: 6px 6px 15px rgba(0, 0, 0, 0.15), -6px -6px 15px rgba(255, 255, 255, 0.9);
}

/* Auftrag Name */
.auftrag-name {
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

/* Status-Tag */
.status-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  padding: 8px 20px;
  border-radius: 20px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.status-tag i {
  margin-right: 8px;
}

/* Farben für Status-Tags */
.status-tag.erfolgreich {
  background: linear-gradient(145deg, #4caf50, #66bb6a);
}

.status-tag.ausstehend {
  background: linear-gradient(145deg, #ffc107, #ffd54f);
}

.status-tag.fehlgeschlagen {
  background: linear-gradient(145deg, #f44336, #e57373);
}

/* Container für Filter */
.filter-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

/* Styling für die Buttons */
.filter-btn {
  background: #f3f4f6;
  color: #333;
  border: 1px solid #ccc;
  padding: 8px 15px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.filter-btn:hover {
  background: #ddd;
}

.filter-btn.active {
  background: #007acc;
  color: #fff;
  border-color: #007acc;
}

@media (max-width: 768px) {
  .filter-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 Spalten */
    gap: 10px;
    justify-content: center;
    width: 90%;
    margin: 0 auto 20px auto;
  }

  .filter-btn {
    width: 100%;
    text-align: center;
    font-size: 13px;
    padding: 10px;
  }
}


/* Werbe-Sektion */
.promo {
  background: linear-gradient(135deg, #003580, #007acc);
  color: #fff;
  text-align: center;
  padding: 50px 20px;
  position: relative;
  overflow: hidden;

}

.promo-content {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Logo-Bereich */
.promo-logo-container {
  text-align: center;
  margin-bottom: 20px;
}

.promo-logo {
  height: 80px;
  padding: 10px;
  background: #fff; /* Weißer Hintergrund für das Logo */
  border-radius: 10px; /* Abgerundete Kanten */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Schatten für mehr Sichtbarkeit */
  margin-bottom: 10px;
}

.promo-title {
  font-size: 20px;
  font-weight: bold;
  color: #fff; /* Text bleibt weiß */
  margin: 0;
}

/* Dynamischer Text */
.promo-text {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 30px;
  min-height: 40px; /* Platzhalter für Animation */
  animation: fadeIn 1.5s ease-in-out;
}

.promo-slogan {
  display: inline-block;
  animation: fadeText 4s infinite;
}

/* Button */
.promo-btn {
  padding: 15px 30px;
  font-size: 18px;
  color: #003580;
  background: #fff;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.promo-btn:hover {
  background: #ffd700;
  color: #003580;
  transform: scale(1.05);
}

/* Hintergrundanimation */
.promo::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 70%);
  animation: moveBackground 8s infinite linear;
  z-index: 0;
}

/* Werbe-Sektion 2 */
.promo2 {
  background: linear-gradient(135deg, #D97706, #F59E0B); /* Orange Verlauf */
  color: #fff;
  text-align: center;
  padding: 50px 20px;
  position: relative;
  overflow: hidden;
}

.promo2-content {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Logo-Bereich */
.promo2-logo-container {
  text-align: center;
  margin-bottom: 20px;
}

.promo2-logo {
  height: 80px;
  padding: 10px;
  background: #fff; /* Weißer Hintergrund für das Logo */
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  margin-bottom: 10px;
}

.promo2-title {
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  margin: 0;
}

/* Dynamischer Text */
.promo2-text {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 30px;
  min-height: 40px;
  animation: fadeIn 1.5s ease-in-out;
}

.promo2-slogan {
  display: inline-block;
  animation: fadeText 4s infinite;
}

/* Button */
.promo2-btn {
  padding: 15px 30px;
  font-size: 18px;
  color: #D97706;
  background: #fff;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.promo2-btn:hover {
  background: #F59E0B;
  color: #fff;
  transform: scale(1.05);
}

/* Hintergrundanimation */
.promo2::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 70%);
  animation: moveBackground 8s infinite linear;
  z-index: 0;
}


/* Keyframes für Hintergrund und Text */
@keyframes moveBackground {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes fadeText {
  0%, 80% {
    opacity: 1; /* Text bleibt sichtbar */
    transform: translateY(0);
  }
  90%, 100% {
    opacity: 0; /* Text wird langsam ausgeblendet */
    transform: translateY(-10px);
  }
}


@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq {
  padding: 20px;
  background: #f7faff; /* Helles Blau für den Hintergrund */
  border-radius: 8px;
  background: linear-gradient(
      92.93deg,
      #f0f0f0 1.24%,
      #c9e0ff 98.76%
    ),
    radial-gradient(
      146.22% 164.16% at 48.99% 0%,
      rgba(101, 214, 239, 0.65) 0%,
      rgba(210, 235, 229, 0) 65%
    );
}

.faq h2 {
  color: #003580;
  font-size: 24px;
  margin-bottom: 20px;
    text-align: center;

}

.faq-item {
  margin-bottom: 15px;
    width: 80%;
  margin: auto;
}

.faq-btn {
  text-align: left;
  padding: 15px 20px;
  background: #fff;
  border: 1px solid #cce0ff;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  color: #003580;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.faq-btn:hover {
  background: #e8f1ff;
}

.faq-content {
  display: block; /* Ermöglicht dynamische Höhenberechnung */
  max-height: 0;
  overflow: hidden; /* Verhindert, dass ausgeblendeter Text angezeigt wird */
  opacity: 0; /* Unsichtbar, solange geschlossen */
  padding: 0 20px; /* Entfernt zusätzlichen Platz beim Schließen */
  background: #fff;
  border: 1px solid #cce0ff;
  border-radius: 8px;
  margin-top: 5px;
  margin-bottom: 5px;
  color: #333;
  line-height: 1.5;
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

.faq-content.open {
  opacity: 1; /* Sichtbar, wenn geöffnet */
  padding: 15px 20px; /* Fügt den Puffer beim Öffnen hinzu */
}
.footer {
  color: #333;
  padding: 40px 20px;
  background: linear-gradient(
      92.93deg,
      #f0f0f0 1.24%,
      #c9e0ff 98.76%
    ),
    radial-gradient(
      146.22% 164.16% at 48.99% 0%,
      rgba(101, 214, 239, 0.65) 0%,
      rgba(210, 235, 229, 0) 65%
    );
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Zwei Spalten für obere Bereiche */
  grid-template-rows: auto auto; /* Automatische Höhe für alle Zeilen */
  gap: 20px 30px;
  padding: 30px;
  width: 80%;
  margin: 0 auto;
  background-color: white;
  border-radius: 30px;
}

/* Oben links: Logo */
.footer-top-left {
  grid-column: 1;
  grid-row: 1;
}

.footer-logo {
  max-height: 60px;
}

/* Oben rechts: Beschreibung */
.footer-top-right {
  grid-column: 2;
  grid-row: 1;
  font-size: 14px;
  line-height: 1.6;
}

/* Unten links: Kontaktinformationen */
.footer-bottom-left {
  grid-column: 1;
  grid-row: 2;
  font-size: 14px;
  line-height: 1.5;
}

.footer-bottom-left a {
  color: #007acc;
  text-decoration: none;
}

.footer-bottom-left a:hover {
  text-decoration: underline;
}

/* Unten rechts: Links und Copyright */
.footer-bottom-right {
  grid-column: 2;
  grid-row: 2;
  text-align: right;
}

.footer-links {
  margin-bottom: 10px;
}

.footer-links a {
  margin-right: 15px;
  font-size: 14px;
  color: #007acc;
  text-decoration: none;
}

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

.footer-copyright {
  font-size: 12px;
  color: #777;
}

@media (max-width: 768px) {
  .footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    width: 90%;
    padding: 20px;
  }

  .footer-top-left,
  .footer-top-right,
  .footer-bottom-left,
  .footer-bottom-right {
    width: 100%;
  }

  .footer-logo {
    max-height: 50px;
    margin-bottom: 10px;
  }

  .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .footer-links a {
    margin: 0;
    font-size: 13px;
  }

  .footer-bottom-right {
    text-align: center;
  }

  .footer-copyright {
    font-size: 12px;
    margin-top: 10px;
  }
}

.auftrag-tags {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.datum-tag {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: bold;
  padding: 8px 20px;
  border-radius: 20px;
  background: linear-gradient(145deg, #dbeafe, #bfdbfe);
  color: #1e3a8a;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.datum-tag i {
  margin-right: 8px;
}
