.btn-logout {
  background-color: #cc0033;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn-logout:hover {
  background-color: #990026;
}

.pw-check {
  transition: color 0.3s ease;
}

.pw-check.valid {
  color: #00ff88; /* galaktisches Grün */
}

.pw-check.invalid {
  color: #ff4d4d; /* Rot */
}

#pw-strength-bar {
  transition: width 0.3s ease, background-color 0.3s ease;
  background-image: linear-gradient(to right, #ff4d4d, #ffcc00, #00ff88);
}

.galactic-card {
  background: #f9f9fc;
  border: 1px solid #0056b3;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(0, 86, 179, 0.2), 0 0 40px rgba(0, 86, 179, 0.1);
  color: #222;
  max-width: 500px;
  width: 100%;
}

.orbitron-title {
  font-family: 'Orbitron', sans-serif;
  color: #0056b3;
  text-shadow: 0 0 6px rgba(0, 86, 179, 0.4);
}

.theme-light .modal-content.theme-box {
  background: #f9f9fc;
  color: #222;
  border: 1px solid #0056b3;
  box-shadow: 0 0 20px rgba(0, 86, 179, 0.3), 0 0 40px rgba(0, 86, 179, 0.15);
  border-radius: 16px;
}

/* Titel mit Orbitron-Blau */
.theme-light .modal-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 500;
  color: #0056b3;
  text-shadow: 0 0 6px rgba(0, 86, 179, 0.4);
}

/* Auswahlbuttons */
.theme-light .orbitron-choice {
  background-color: #0056b3;
  color: #fff;
  border: 2px solid #0056b3;
  font-family: 'Orbitron', sans-serif;
  font-weight: 500;
  box-shadow: 0 0 10px rgba(0, 86, 179, 0.3);
  transition: all 0.3s ease;
}

.theme-light .orbitron-choice:hover {
  background-color: #007bff;
  border-color: #007bff;
  box-shadow: 0 0 20px rgba(0, 123, 255, 0.5);
  color: #fff;
}

.theme-box {
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.orbitron-choice {
  font-family: 'Orbitron', sans-serif;
  font-weight: 500;
  transition: all 0.3s ease;
}

.orbitron-choice:hover {
  transform: scale(1.05);
}
.btn-theme {
  font-family: 'Orbitron', sans-serif;
  font-weight: 500;
  padding: 0.4rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

/* Dark Theme: weiß-transparent */
.theme-dark .btn-theme {
  background-color: transparent;
  color: #fff;
  border-color: #fff;
}

/* Light Theme: Business-Blau */
.theme-light .btn-theme {
  background-color: #0056b3; /* elegantes Business-Blau */
  color: #fff;
  border-color: #0056b3;
}

.btn-theme:hover {
  transform: scale(1.05);
  background-color: #007bff; /* helleres Blau beim Hover */
  color: #fff;
  border-color: #007bff;
}

.floating-user-buttons {
  position: absolute;
  top: calc(100% + 10px); /* direkt unter dem Header */
  right: 2rem;
  z-index: 1000;
  display: flex;
  gap: 1rem;
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.6); /* dark mode */
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0,0,0,0.3);
}

.theme-light .floating-user-buttons {
  background: rgba(255, 255, 255, 0.85); /* light mode */
  box-shadow: 0 0 12px rgba(0,0,0,0.2);
}

.btn-floating {
  font-family: 'Orbitron', sans-serif;
  font-weight: 500;
  padding: 0.4rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-floating:hover {
  transform: scale(1.05);
  background-color: #00bfff;
  color: #fff;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: #e6ecf5; /* sanftes Blau-Grau */
  color: #1c2a3a; /* dunkles Business-Blau */
  font-family: 'Segoe UI', sans-serif;
}

.toast-message {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 20px;
  border-radius: 8px;
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  z-index: 9999;
  opacity: 0;
  transform: translateY(-20px);
  animation: toastFadeIn 0.5s forwards;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast-message {
  background: #111;
  color: #00f0ff;
  box-shadow: 0 0 12px #00f0ff;
}

@keyframes toastFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  position: sticky;
  top: 0;
  background-color: #ffffff;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 0 12px rgba(0, 95, 163, 0.1);
  z-index: 100;
}

header img {
  max-height: 40px;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

header img:hover {
  transform: scale(1.05);
}

main {
  flex: 1;
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

footer {
  background-color: #dbe3ef;
  color: #1c2a3a;
  text-align: center;
  padding: 1rem;
  font-size: 0.85rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-bar {
  background-color: #dbe3ef;
  color: #1c2a3a;
  padding: 0.3rem 0.8rem;
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  text-align: center;
}

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

/* Icons */
.theme-toggle,
.cookie-settings-btn {
  font-size: 1.3rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--accent-color);
}

.footer-left {
  flex: 1;
}

.footer-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: #005fa3;
}

.language-switch select {
  background-color: #dbe3ef;
  color: #1c2a3a;             
  border: 1px solid rgba(28, 42, 58, 0.2); 
  border-radius: 6px;
  padding: 0.3rem 0.6rem;
  font-size: 0.85rem;
  box-shadow: none;           /* kein Glow */
  background-image: url('/assets/img/flags/de.png');
  background-repeat: no-repeat;
  background-position: 0.3rem center;
  background-size: 1rem;
  padding-left: 2rem;
  transition: background-color 0.3s ease;
}

.language-switch select:has(option[value="en"]:checked) {
  background-image: url('/assets/img/flags/en.png');
}

.cms-floating-boxes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin: 2rem auto;
  padding: 1rem;
  margin-top: 6rem;
  max-width: 1200px;
}

.cms-floating-box {
  flex: 1 1 250px;
  max-width: 280px;
  background: radial-gradient(circle at center, #f0faff, #d0eaff);
  border: 2px solid rgba(0, 170, 255, 0.2);
  box-shadow: 0 0 16px rgba(0, 170, 255, 0.3);
  border-radius: 1rem;
  padding: 2rem 1rem 1rem;
  position: relative;
  display: flex;
  flex-direction: column;
}

.cms-box-heading {
  position: absolute;
  top: -1.2rem;
  left: 50%;
  transform: translateX(-50%);
  background: #e0f7ff;
  padding: 0.3rem 1rem;
  border-radius: 1rem;
  font-weight: bold;
  color: #0077cc;
  box-shadow: 0 0 8px rgba(0, 170, 255, 0.5);
  z-index: 2;
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90%;
}

.cms-box {
  display: block;
  width: 100%;
  background: radial-gradient(circle at center, #ffffff, #e0f0ff);
  border: 2px solid rgba(0, 170, 255, 0.3);
  box-shadow: 0 0 12px rgba(0, 170, 255, 0.4);
  border-radius: 0.8rem;
  padding: 0.6rem 1rem;
  color: #003366;
  text-decoration: none;
  font-weight: bold;
  margin-bottom: 0.6rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  word-break: break-word;
}

.cms-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 170, 255, 0.6);
  background: #d0ecff;
  color: #000;
}

@media (max-width: 768px) {
.cms-floating-boxes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin: 2rem auto;
  padding: 0rem;
  max-width: 1200px;
  margin-top: 6rem;
  }
}

/* Toast styles */
.galactic-toast {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #ffffff, #dbe3ef);
  color: #005fa3;
  padding: 0.8rem 1.2rem;
  border-radius: 0.6rem;
  box-shadow: 0 0 12px rgba(0, 95, 163, 0.3);
  font-size: 0.9rem;
  z-index: 9999;
  animation: fadeInOut 3s ease forwards;
}
.galactic-search-card {
  background: #f9fbff;
  border-radius: 1rem;
  box-shadow:
    0 0 12px rgba(0,95,163,0.15),
    inset 0 0 6px rgba(0,95,163,0.05);
  padding: 2rem;
  color: #1c2a3a;
}

@keyframes fadeInOut {
  0%   { opacity: 0; transform: translateY(-10px); }
  10%  { opacity: 1; transform: translateY(0); }
  90%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-10px); }
}
@media (max-width: 576px) {
  .galactic-card {
    max-width: 90% !important;
    padding: 1rem !important;
  }

  .orbitron-title {
    font-size: 1.5rem;
  }

  .orbitron-form .form-control {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
  }

  .orbitron-form .form-label {
    font-size: 0.85rem;
  }

  .btn-theme {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
  }
}
@media (max-width: 768px) {
  .footer-bar {
    display: block;
    text-align: center;
    padding: 1rem 0.5rem;
    background-color: #dbe3ef;
    color: #1c2a3a;
    font-size: 0.9rem;
  }

  .footer-left {
    margin-bottom: 1rem;
    font-size: 0.8rem;
  }

  .footer-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
  }

.language-switch.lang-de select {
  background-image: url('/assets/img/flags/de.png');
}

.language-switch.lang-en select {
  background-image: url('/assets/img/flags/en.png');
}

.language-switch select {
  background-repeat: no-repeat;
  background-position: 0.4rem center;
  background-size: 0.8rem;
  padding-left: 1.6rem;
}

  .language-switch select {
    background-color: #dbe3ef;
    color: #1c2a3a;
    border: 1px solid rgba(28, 42, 58, 0.2); 
    padding: 0.3rem 0.6rem;
    border-radius: 0.4rem;
    font-size: 0.75rem;
    background-repeat: no-repeat;
    background-position: 0.4rem center;
    background-size: 0.8rem; /* ?? Flagge kleiner */
    padding-left: 1.6rem;     /* ?? Platz für kleinere Flagge */
  }

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.2rem;
  flex-wrap: wrap;
  text-align: center;
}

  .theme-toggle {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: #005fa3;
  }
}

@media (max-width: 576px) {
  header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  header img {
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 768px) {
  main {
    max-width: none;
    margin: 0;
    padding: 1rem;
  }
}
