body {
  background-color: #10101f;
  color: #f1f1f1;
  font-family: 'Segoe UI', sans-serif;
  padding: 16px;
  -webkit-tap-highlight-color: transparent;
  line-height: 1.4;
}

.card {
  background: linear-gradient(135deg, #202040, #181830);
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.card:hover::before {
  transform: translateX(100%);
}

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

.form-control, .form-select {
  background: linear-gradient(135deg, #1f1f32, #17172a);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 10px 14px;
  color: #fff;
  transition: all 0.25s ease;
}

.form-control:focus, .form-select:focus {
  box-shadow: 0 0 0 3px rgba(0, 184, 184, 0.15);
  border-color: rgba(0, 184, 184, 0.4);
  outline: none;
}

.btn,
button {
  background: linear-gradient(135deg, #1f1f32, #17172a);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 10px 20px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: all 0.25s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
  z-index: -1;
}

.btn:hover::before {
  width: 250px;
  height: 250px;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary { background: linear-gradient(135deg, #009b9b, #00b8b8); border: none; }
.btn-success { background: linear-gradient(135deg, #1eb854, #22c55e); border: none; }
.btn-danger { background: linear-gradient(135deg, #e03c3c, #ef4444); border: none; }

#chatlog {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 10px;
  background: #1f1f3c;
  overflow-y: auto;
  height: 250px;
  font-size: 0.92rem;
  scroll-behavior: smooth;
  color: #ffffff;
  scrollbar-width: thin;
}

.chat-bubble-wrapper {
  display: flex;
}

.chat-bubble {
  background: linear-gradient(135deg, #1f1f32, #17172a);
  border-radius: 12px;
  padding: 10px 14px;
  margin: 6px 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: transform 0.25s ease;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.25s ease;
  max-width: 95%;
}

.chat-bubble::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, #1f1f32, #17172a);
  border-radius: 50%;
  transform: translate(50%, 50%);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.chat-bubble:hover {
  transform: translateX(4px);
  background: linear-gradient(135deg, #17172a, #1f1f32);
}

.chat-bubble strong {
  color: #00b8b8;
  font-weight: 600;
  margin-right: 4px;
}

.chat-input-group {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-top: 8px;
  gap: 8px;
}

#chatinput {
  width: 100%;
  text-align: left;
  min-height: 42px;
  background-color: #1f1f32;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.95rem;
}

#chatinput::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

#sendChatBtn {
  position: relative;
  width: 100%;
  background: linear-gradient(135deg, #00a2a2, #00b8b8);
  border: none;
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 9px 14px;
  border-radius: 10px;
  transition: all 0.25s ease;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

#sendChatBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 184, 184, 0.25);
  background: linear-gradient(135deg, #00b8b8, #00a2a2);
}

#sendChatBtn i {
  margin-right: 5px;
}

#emojiToggle {
  position: absolute;
  right: 12px;
  top: 10px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

#emojiToggle:hover {
  opacity: 1;
}

#emojiPicker {
  display: none;
  position: absolute;
  bottom: 58px;
  left: 10px;
  background: #1f1f32;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px;
  max-width: 240px;
  flex-wrap: wrap;
  gap: 4px;
  z-index: 1000;
  display: flex;
  flex-wrap: wrap;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#emojiPicker span {
  cursor: pointer;
  font-size: 1.4rem;
  padding: 4px;
  transition: 0.2s;
  border-radius: 4px;
}

#emojiPicker span:hover {
  background: #17172a;
  transform: scale(1.1);
}

#userlist, #streamlist {
  max-height: 250px;
  overflow-y: auto;
  padding: 0;
  scrollbar-width: thin;
  background-color: transparent !important;
}

#userlist .list-group-item,
#streamlist .list-group-item {
  background-color: #252545 !important;
  color: #f1f1f1;
  border: none;
  padding: 8px 10px;
  margin-bottom: 4px;
}

#debugConsole {
  font-size: 0.78rem;
  padding: 8px;
  margin-top: 16px;
  height: 140px;
  overflow-y: auto;
  background: #0a0a14;
  color: #0f0;
  border-radius: 10px;
  font-family: 'Consolas', monospace;
  scrollbar-width: thin;
}

.hidden {
  display: none !important;
}

.audio-wrapper audio {
  width: 100%;
  margin-top: 10px;
  border-radius: 8px;
}

/* Mobile Touch-Optimierung */
@media (max-width: 768px) {
  body {
    padding: 12px;
  }

  .chat-input-group {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  #chatinput {
    background-color: rgba(31, 31, 50, 0.9);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    min-height: 42px;
    padding: 8px 12px;
    border-radius: 8px;
  }
  
  #sendChatBtn {
    position: relative;
    width: 100%;
    margin-top: 4px;
    padding: 8px 12px;
  }

  #emojiPicker {
    position: relative;
    bottom: auto;
    left: auto;
    width: 100%;
    margin-top: 8px;
    justify-content: center;
    max-height: 150px;
    overflow-y: auto;
  }

  #chatlog {
    height: 200px;
    font-size: 0.88rem;
  }

  .btn {
    width: 100%;
    padding: 9px 16px;
  }
  
  .card {
    padding: 12px !important;
    margin-bottom: 12px;
  }
}

.glow-button {
  animation: pulseGlow 1.2s infinite;
  box-shadow: 0 0 8px #ff4444, 0 0 12px #ff4444;
}

@keyframes pulseGlow {
  0%   { box-shadow: 0 0 5px #ff4444; }
  50%  { box-shadow: 0 0 12px #ff4444; }
  100% { box-shadow: 0 0 5px #ff4444; }
}

/* Farbige Linie unter dem Titel */
h1 {
  position: relative;
  display: inline-block;
  margin-bottom: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #f5f5f5;
}

h1::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 40%;
  height: 3px;
  background: linear-gradient(to right, #00b8b8, #22c55e);
  border-radius: 3px;
}

.player-underline {
  height: 3px;
  background: linear-gradient(to right, #00b8b8, #22c55e);
  border: none;
  margin-top: 5px;
  margin-bottom: 12px;
  border-radius: 3px;
  opacity: 0.8;
}

#streamSelect:hover {
  border-color: #00b8b8;
  box-shadow: 0 0 10px rgba(0, 184, 184, 0.3);
  transition: 0.25s ease;
}

.player-card {
  position: relative;
  background: linear-gradient(135deg, #1a1a2e, #131325);
  border-radius: 14px;
  padding: 18px !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  transition: all 0.28s ease;
  margin-bottom: 15px;
}

.player-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  padding: 1.5px;
  background: linear-gradient(45deg, #00b8b8, #22c55e);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.8;
}

.player-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.22);
}

.stream-select-container {
  position: relative;
  margin: 16px auto;
  max-width: 450px;
  border-radius: 12px;
  overflow: hidden;
}

/* Volume-Section standardmäßig ausblenden und nur im aktiven Zustand anzeigen */
.volume-section {
  position: relative;
  background: linear-gradient(135deg, #1a1a2e, #131325);
  border-radius: 12px;
  padding: 16px;
  margin: 16px auto;
  max-width: 380px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  display: none; /* Standardmäßig ausgeblendet */
}

.player-active .volume-section,
.playing .volume-section {
  display: block;
}

.volume-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  margin-top: 8px;
}

#streamSelect {
  background: linear-gradient(135deg, #1f1f32, #17172a);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 12px;
  font-size: 1rem;
  color: #fff;
  transition: all 0.25s ease;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

#streamSelect:hover {
  border-color: #00b8b8;
  box-shadow: 0 0 12px rgba(0, 184, 184, 0.25);
  transform: translateY(-1px);
}

#streamSelect option {
  background-color: #1a1a2e;
  color: #fff;
  padding: 8px;
}

/* Größerer, auffälliger Stop-Button */
.btn-stop {
  padding: 10px 20px;
  font-size: 1.1rem;
  font-weight: 600;
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
  display: block;
  text-align: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #e03c3c, #ef4444);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
  transition: all 0.25s ease;
}

.btn-stop:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(239, 68, 68, 0.35);
}

.btn-play {
  padding: 10px 20px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 10px;
  background: linear-gradient(135deg, #009b9b, #00b8b8);
  box-shadow: 0 4px 12px rgba(0, 184, 184, 0.25);
  transition: all 0.25s ease;
}

.btn-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 184, 184, 0.35);
}

/* Lautstärke-Wrapper passend darunter */
.volume-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 260px;
  margin: 8px auto 0;
  width: 100%;
  padding: 8px 6px;
}

#volumeSlider {
  accent-color: #00b8b8;
  width: 100px;
  height: 4px;
  border-radius: 2px;
  outline: none;
  background: linear-gradient(to right, rgba(0, 184, 184, 0.6), rgba(34, 197, 94, 0.6));
}

#volumeSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, #00b8b8, #22c55e);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
  transition: all 0.25s ease;
}

#volumeSlider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 0 10px rgba(0, 184, 184, 0.4);
}

#vuMeter {
  background-color: #181826;
  border-radius: 3px;
  margin-left: 6px;
  height: 8px;
}

#vuMeterCanvas {
  display: block;
  border-radius: 3px;
  background: #0a0a14;
  margin-left: 6px;
  box-shadow: 0 0 6px rgba(0, 255, 100, 0.06);
  height: 6px;
}

/* Mobile-friendly */
@media (max-width: 576px) {
  .player-card {
    padding: 14px !important;
    margin: 8px !important;
    border-radius: 12px;
  }
  
  .btn-stop, .btn-play {
    font-size: 1rem;
    padding: 8px 14px;
    border-radius: 8px;
    max-width: 220px;
  }
  
  .volume-wrapper {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 5px;
    max-width: 220px;
  }
  
  .volume-wrapper i {
    font-size: 1rem;
  }
  
  .stream-select-container {
    padding: 8px !important;
    margin: 12px auto;
  }
  
  .volume-section {
    padding: 12px !important;
    margin: 8px auto !important;
  }
  
  #streamSelect {
    padding: 10px;
    font-size: 0.95rem;
  }
  
  .volume-controls {
    padding: 10px;
    gap: 8px;
  }
}

/* Hauptsteuerung für alle Auflösungen */
.main-controls {
  width: 100% !important;
  max-width: 320px !important;
  margin: 0 auto !important;
  display: flex !important;
  justify-content: center !important;
  gap: 10px !important;
}

.main-controls .btn {
  width: 100% !important;
  padding: 12px 20px !important;
  font-size: 1.1rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.main-controls .btn i {
  font-size: 1.3rem !important;
  margin-right: 6px;
}

#volumeWrapper {
  display: none;
}

.collapsible {
  position: relative;
  background: linear-gradient(135deg, #23233c, #1b1b2f);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  animation: slideDown 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.collapsible::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.collapsible:hover::before {
  transform: translateX(100%);
}

.collapsible:hover {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.collapsible-header {
  position: relative;
  padding: 14px 16px;
  background: linear-gradient(135deg, #2d2d4a, #242440);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  border-radius: 12px;
  margin-bottom: 1px;
  /* Innere Beleuchtung am oberen Rand */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.collapsible-header:hover {
  background: linear-gradient(135deg, #34345c, #29294f);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.collapsible-header:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Visueller Hinweis auf Klickbarkeit */
.collapsible-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, rgba(0, 184, 184, 0.5), rgba(34, 197, 94, 0.5));
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.collapsible-header:hover::after {
  transform: scaleX(1);
}

/* Mobile Anpassungen für Touch-Geräte */
@media (max-width: 768px) {
  .collapsible-header {
    padding: 16px 18px;
    margin-bottom: 2px;
  }
  
  .collapsible-header:hover {
    transform: none;
    box-shadow: none;
  }
  
  .collapsible-header:active {
    background: linear-gradient(135deg, #17172a, #1f1f32);
  }
}

.collapsible-body {
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease, transform 0.3s ease, padding 0.3s ease;
  padding: 0 16px;
  background: #252545;
  border-radius: 0 0 12px 12px;
}

.collapsible.open .collapsible-body {
  max-height: 2000px;
  opacity: 1;
  transform: translateY(0);
  padding: 16px 16px 18px;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.arrow {
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
  font-size: 1.1rem;
  margin-left: 8px;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  cursor: pointer; /* Extra Hinweis auf Klickbarkeit */
  position: relative;
  z-index: 5; /* Höherer z-index für bessere Erreichbarkeit */
  margin-right: 5px; /* Etwas Abstand zum Rand */
}

.arrow:hover {
  color: #00b8b8;
  background: rgba(0, 0, 0, 0.3);
  transform: scale(1.1);
  box-shadow: 0 3px 8px rgba(0, 184, 184, 0.3);
}

.arrow:active {
  transform: scale(0.9);
}

.collapsible.open .arrow {
  transform: rotate(180deg);
  color: #00b8b8;
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0 2px 5px rgba(0, 184, 184, 0.2);
}

.collapsible.open .arrow:hover {
  transform: rotate(180deg) scale(1.1);
}

.collapsible.open .arrow:active {
  transform: rotate(180deg) scale(0.9);
}

/* Touch-freundliche Anpassungen für mobile Geräte */
@media (max-width: 768px) {
  .arrow {
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
    background: rgba(0, 184, 184, 0.1); /* Leicht farbig für bessere Sichtbarkeit */
  }
}

.collapsible-header,
h5 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #00b8b8;
  margin-bottom: 0;
}

h5 {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card h5 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #00b8b8;
  margin-bottom: 0;
  padding: 8px 0 4px;
}

.collapsible-body .card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin-top: 0;
}

#streamlist,
#streamlist .list-group-item {
  background-color: transparent !important;
  color: #f1f1f1;
  border: none;
  padding: 8px 10px;
}

#streamlist .list-group-item + .list-group-item {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Leuchteffekt für grün */
#streamlist li:has(.status-green) .status-green {
  filter: drop-shadow(0 0 4px rgba(34, 197, 94, 0.7));
}

/* Leuchteffekt für rot */
#streamlist li:has(.status-red) .status-red {
  filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.7));
}

#userlist,
#userlist .list-group-item {
  background-color: transparent !important;
  color: #f1f1f1;
  border: none;
  padding: 8px 10px;
}

#userlist .list-group-item + .list-group-item {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Benutzerliste: Icon & Hover-Effekt */
.user-list-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f1f1f1;
  background: transparent;
  border: none;
  padding: 8px 10px;
  transition: background 0.25s ease, color 0.25s ease;
  border-radius: 8px;
}

.user-list-item:hover {
  background-color: #1a1a2e;
  color: #00b8b8;
}

.user-icon {
  font-size: 1rem;
  opacity: 0.8;
}

.hörer-count {
  margin-left: 6px;
  color: #22c55e;
  font-weight: normal;
  font-size: 0.9rem;
}

.title-with-count {
  display: flex;
  align-items: center;
  gap: 5px;
}

.sender-count {
  color: #22c55e;
  font-size: 0.9rem;
  font-weight: normal;
}

footer {
  font-size: 0.8rem;
  color: #aaa;
  padding: 8px 0;
}

/* Navbar durchgängig und oben ohne Lücke */
.bg-dark-custom {
  background: linear-gradient(135deg, #282852, #22224a) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

body {
  margin: 0;
  padding: 0;
}

/* Entferne Abstand zwischen Navbar und Inhalt */
main > .container {
  padding-top: 16px;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-image: url('../img/bg.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  background-color: #0f0f1e; /* Fallback */
}

main {
  margin-top: 70px !important; /* Höhe der Navbar */
  padding-top: 16px;
  min-height: calc(100vh - 70px);
  padding-bottom: 60px; /* Footer-Höhe (40px) + zusätzlicher Abstand (20px) */
}

/* Footer modernisieren */
.footer-dark {
  flex-shrink: 0;
  background: linear-gradient(135deg, #282852, #22224a);
  box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #bbb;
  font-size: 0.85rem;
  padding: 10px 0;
  width: 100%;
  text-align: center;
  margin-top: auto;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 100;
  /* Subtiler Gradient-Effekt hinzufügen */
  overflow: hidden;
  height: 40px; /* Feste Höhe für den Footer */
}

/* Schmückendes Element für den Footer */
.footer-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.footer-dark strong {
  color: #fff;
  font-weight: 600;
  position: relative;
}

/* Unterstreichen für den Namen im Footer */
.footer-dark strong::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, #00b8b8, transparent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: center;
}

.footer-dark:hover strong::after {
  transform: scaleX(1);
}

/* Footer für mobile Geräte optimieren */
@media (max-width: 768px) {
  .footer-dark {
    padding: 8px 0;
    font-size: 0.75rem;
    height: 36px; /* Angepasste Höhe für mobile Geräte */
  }
  
  main {
    padding-bottom: 50px; /* Angepasst an mobile Footer-Höhe (36px) + Abstand (14px) */
  }
}

.navbar .btn-sm {
  padding: 0.2rem 0.4rem;
  font-size: 0.75rem;
  min-width: 28px;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.25s ease;
}

.navbar .btn-sm i {
  font-size: 0.75rem;
}

/* Navbar-Links verbessern */
.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.8);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.25s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.navbar-dark .navbar-nav .active > .nav-link,
.navbar-dark .navbar-nav .nav-link.active {
  color: #42b8ff;
  background: rgba(66, 184, 255, 0.08);
}

/* Laufschrift für den Stream-Titel */
.marquee-container {
  width: 100%;
  overflow: hidden;
  background: rgba(0,0,0,0.15);
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  margin: 0.4rem 0;
  position: relative;
}

.marquee-text {
  display: inline-block;
  white-space: nowrap;
  position: relative;
  animation: marquee 18s linear infinite;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  padding-left: 100%;
  will-change: transform;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

.marquee-text:hover {
  animation-play-state: paused;
}

/* Anpassung für die Laufschrift im Player */
#currentChannel {
  position: relative;
  margin: 0 auto;
  max-width: 280px;
  transition: opacity 0.25s ease;
  display: none;
  overflow: hidden;
  width: 100%;
}

#currentChannel.active {
  display: block;
}

.header-title,
.header-channel {
  transition: opacity 0.25s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px; /* Standard für Mobile */
}

.header-channel {
  display: none;
  width: 110px; /* Standard für Mobile */
  overflow: hidden;
  text-align: center;
}

.header-channel .marquee-text {
  display: inline-block;
  white-space: nowrap;
  position: relative;
  animation: marquee 10s linear infinite;
  color: #00b8b8;
  font-size: 1.2rem;
  font-weight: 600;
  padding-left: 100%;
  will-change: transform;
}

/* Tablet (768px und größer) */
@media (min-width: 768px) {
  .header-title,
  .header-channel {
    max-width: 280px;
  }
  
  .header-channel {
    width: 280px;
  }
  
  .header-channel .marquee-text {
    animation: marquee 14s linear infinite;
  }
}

/* Mobile Anpassungen für Header-Titelanzeige */
@media (max-width: 460px) {
  .header-title,
  .header-channel {
    max-width: 100px;
    font-size: 0.9em;
  }
  
  .header-channel {
    width: 100px;
  }
  
  .header-channel .marquee-text {
    font-size: 1rem;
    animation-duration: 8s;
  }
}

/* Extra schmale mobile Geräte */
@media (max-width: 359px) {
  .header-title,
  .header-channel {
    max-width: 80px;
    font-size: 0.85em;
  }
  
  .header-channel {
    width: 80px;
  }
  
  .header-channel .marquee-text {
    font-size: 0.9rem;
  }
  
  .navbar .btn-sm {
    min-width: 24px;
    min-height: 24px;
    padding: 0.15rem 0.3rem;
  }
  
  .navbar-brand {
    font-size: 0.9rem;
  }
}

/* Verbesserte Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  background: transparent;
}

::-webkit-scrollbar-track {
  background: rgba(31, 31, 50, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #00a2a2, #00b8b8);
  border-radius: 4px;
  border: 2px solid #1a1a2e;
  transition: all 0.25s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #00b8b8, #00a2a2);
}

/* Modernere Listen */
.list-group-item {
  background: linear-gradient(135deg, #2a2a4a, #23233f);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin: 6px 0;
  padding: 10px 12px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.list-group-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: linear-gradient(to bottom, #00b8b8, transparent);
  transform: scaleY(0);
  transition: transform 0.25s ease;
}

.list-group-item:hover::before {
  transform: scaleY(1);
}

.list-group-item:hover {
  transform: translateX(4px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Status-Anzeigen */
.status-indicator {
  position: relative;
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

/* Anpassung des Hauptinhalts */
main {
  margin-top: 70px !important; /* Höhe der Navbar */
  padding-top: 16px;
  min-height: calc(100vh - 70px);
  padding-bottom: 60px; /* Footer-Höhe (40px) + zusätzlicher Abstand (20px) */
}

/* Anpassung für mobile Geräte */
@media (max-width: 768px) {
  main {
    margin-top: 60px !important; /* Kleinere Navbar auf Mobile */
    padding-bottom: 50px; /* Mobile Footer-Höhe (36px) + Abstand (14px) */
  }
  
  .navbar {
    padding: 0.4rem 0.8rem;
  }
}

/* Moderne Icon-Styles */
.navbar i,
.btn i,
.list-group-item i {
  transition: all 0.3s ease;
  position: relative;
}

/* Hover-Effekte für Navbar-Icons */
.navbar i:hover {
  transform: scale(1.2);
  color: #00b8b8;
  text-shadow: 0 0 10px rgba(0, 184, 184, 0.5);
}

/* Animierte Icons für die Navigation */
.nav-link i {
  display: inline-block;
  transition: transform 0.3s ease;
}

.nav-link:hover i {
  transform: translateY(-2px);
  color: #00b8b8;
}

/* Moderne Status-Icons */
.status-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 184, 184, 0.1);
  transition: all 0.3s ease;
}

.status-icon i {
  font-size: 0.9rem;
  color: #00b8b8;
}

.status-icon:hover {
  background: rgba(0, 184, 184, 0.2);
  transform: scale(1.1);
}

/* Animierte Button-Icons */
.btn i {
  transition: all 0.3s ease;
}

.btn:hover i {
  transform: scale(1.2);
  animation: iconPulse 1s infinite;
}

@keyframes iconPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

/* Moderne List-Icons */
.list-group-item i {
  margin-right: 8px;
  color: #00b8b8;
  transition: all 0.3s ease;
}

.list-group-item:hover i {
  transform: translateX(3px);
  color: #22c55e;
}

/* Spezielle Icon-Styles für verschiedene Bereiche */
.fa-broadcast-tower {
  animation: towerPulse 2s infinite;
}

.fa-user-friends {
  animation: friendsFloat 3s infinite;
}

.fa-comment-dots {
  animation: commentBounce 2s infinite;
}

@keyframes towerPulse {
  0% {
    transform: scale(1);
    text-shadow: 0 0 5px rgba(0, 184, 184, 0.5);
  }
  50% {
    transform: scale(1.1);
    text-shadow: 0 0 15px rgba(0, 184, 184, 0.8);
  }
  100% {
    transform: scale(1);
    text-shadow: 0 0 5px rgba(0, 184, 184, 0.5);
  }
}

@keyframes friendsFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes commentBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

/* Moderne Icon-Container */
.icon-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(0, 184, 184, 0.1);
  transition: all 0.3s ease;
}

.icon-container:hover {
  background: rgba(0, 184, 184, 0.2);
  transform: scale(1.1);
}

.icon-container i {
  font-size: 1.1rem;
  color: #00b8b8;
}

/* Mobile Anpassungen für Icons */
@media (max-width: 768px) {
  .navbar i {
    font-size: 0.9rem;
  }
  
  .icon-container {
    width: 28px;
    height: 28px;
  }
  
  .icon-container i {
    font-size: 0.9rem;
  }
}

/* Container-Zustände */
#hörer-container,
#sender-container {
  margin-bottom: 1rem;
}

#hörer-container .collapsible-body,
#sender-container .collapsible-body {
  max-height: 0;
  opacity: 0;
  transform: translateY(-10px);
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease, transform 0.4s ease, padding 0.4s ease;
  padding: 0 18px;
  background: #2b2b3d;
  border-radius: 0 0 12px 12px;
}

#hörer-container.open .collapsible-body,
#sender-container.open .collapsible-body {
  max-height: 2000px;
  opacity: 1;
  transform: translateY(0);
  padding: 15px 18px 15px;
}

/* Entferne die 'open' Klasse aus dem HTML */
#hörer-container,
#sender-container {
  border: none;
  border-radius: 12px;
  background: #2b2b3d;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

/* Mobile Anpassungen für RX Gateway Teilnehmerliste */
@media (max-width: 768px) {
  /* Allgemeine RX Gateway Card Anpassungen */
  .rx-gateway-card {
    padding: 0.35rem !important;
    border-radius: 8px;
  }
  
  /* Teilnehmerliste für mobile Geräte optimieren */
  .participant-list {
    margin-top: 0.05rem;
  }
  
  .participant-list .list-group-item {
    padding: 0.25rem 0.3rem;
    margin-bottom: 0.2rem;
    border-radius: 4px;
    min-height: 0;
    border-width: 1px;
  }
  
  /* Teilnehmer-Einträge besser für Touchgeräte gestalten */
  .participant-list .list-group-item .d-flex {
    padding: 0.1rem;
    flex-wrap: nowrap;
  }
  
  .participant-avatar {
    width: 20px;
    height: 20px;
    margin-right: 0.35rem;
  }
  
  .participant-avatar i {
    font-size: 0.7rem;
  }
  
  .participant-name {
    font-size: 0.75rem;
    margin-bottom: 0;
    line-height: 1;
  }
  
  .participant-status {
    font-size: 0.6rem;
    line-height: 1;
  }
  
  /* Buttons für bessere Touch-Targets */
  .local-mute-btn {
    width: 24px;
    height: 24px;
    padding: 0;
    margin-left: auto;
    min-width: 24px;
    min-height: 24px;
  }
  
  .local-mute-btn i {
    font-size: 0.7rem;
  }
  
  /* Entfernen des Hintergrundsettens bei Hover, da das auf mobilen Geräten problematisch sein kann */
  .participant-list .list-group-item:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.08);
  }
  
  /* Ultra-kompaktes Layout für sehr kleine Displays */
  @media (max-width: 480px) {
    .participant-list .list-group-item {
      padding: 0.2rem;
      margin-bottom: 0.15rem;
    }
    
    .participant-controls {
      margin-top: 0;
      justify-content: flex-end;
    }
    
    /* Verstecke Badge-Labels auf sehr kleinen Displays */
    .badge span {
      display: none;
    }
    
    .badge i {
      margin-right: 0;
    }
    
    /* Kompaktes Layout für die Teilnehmerinfo */
    .participant-list .list-group-item .d-flex {
      flex-direction: row;
      align-items: center;
      gap: 0.2rem;
    }
    
    .participant-list .list-group-item .participant-info {
      flex: 1;
      min-width: 0;
    }
    
    .participant-details {
      min-width: 0;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
    }
    
    /* Text-Ellipsis für lange Namen */
    .participant-name {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      max-width: calc(100vw - 120px);
    }
    
    /* Ultrakompakte Statuszeile nur mit Icons */
    .participant-status {
      display: flex;
      align-items: center;
      gap: 0.2rem;
    }
    
    .participant-status i {
      font-size: 0.6rem;
    }
    
    /* Noch kleinere Buttons */
    .local-mute-btn {
      width: 22px;
      height: 22px;
      min-width: 22px;
      min-height: 22px;
    }
    
    .local-mute-btn i {
      font-size: 0.65rem;
    }
    
    /* Kompakter Sprecherstatus */
    .list-group-item.active-speaker {
      border-left-width: 2px;
    }
    
    .list-group-item.active-speaker::after {
      width: 6px;
      height: 6px;
      top: 5px;
      right: 5px;
    }
  }
  
  /* Optimierte Touch-Events für mobiles Scrollen */
  .participant-container {
    -webkit-overflow-scrolling: touch;
    max-height: 35vh; /* Noch kompakter auf Mobilgeräten */
    scrollbar-width: none; /* Firefox */
    padding-right: 0;
  }
  
  /* Versteckte Scrollbar auf Mobilgeräten für ein saubereres Aussehen */
  .participant-container::-webkit-scrollbar {
    width: 2px;
  }
  
  /* Schwebender Mikrofon-Button am unteren Bildschirmrand für Mobilgeräte */
  .mobile-float-mic {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    font-size: 1.1rem;
    border: none;
  }
  
  .mobile-float-mic.active {
    background: linear-gradient(145deg, #2ecc71, #27ae60);
  }
  
  .mobile-float-mic:not(.active) {
    background: linear-gradient(145deg, #e74c3c, #c0392b);
  }
}

/* Zusätzliche Scrollbar-Styles für die Teilnehmerliste */
.participant-container {
  position: relative;
  max-height: 300px;  /* Desktop Höhe */
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(52, 152, 219, 0.5) rgba(0, 0, 0, 0.1);
  padding-right: 4px;
}

.participant-container::-webkit-scrollbar {
  width: 6px;
}

.participant-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}

.participant-container::-webkit-scrollbar-thumb {
  background-color: rgba(52, 152, 219, 0.5);
  border-radius: 3px;
}

.rx-gateway-status-container {
  background: rgba(0, 0, 0, 0.15);
  padding: 0.4rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

/* Mobile Größe für den Teilnehmer-Container */
@media (max-width: 768px) {
  .participant-container {
    max-height: 40vh;  /* 40% der Bildschirmhöhe auf Mobilgeräten */
  }
  
  /* Kleinere Scrollbar für Touch-Geräte */
  .participant-container::-webkit-scrollbar {
    width: 4px;
  }
  
  /* Verstecke die Info-Box bei sehr kleinen Displays */
  @media (max-width: 480px) {
    .rx-gateway-status-container {
      display: none;
    }
  }
}

/* RX Gateway Kontrollelemente */
.rx-gateway-controls {
  background: rgba(0, 0, 0, 0.15);
  padding: 0.8rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

.rx-control-btn {
  padding: 0.5rem 1.2rem;
  font-size: 0.95rem;
  border-radius: 8px;
  min-width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.rx-control-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
}

/* Standard Button-Stile */
.rx-control-btn.btn-success {
  background: linear-gradient(145deg, #2ecc71, #27ae60);
  border: none;
}

.rx-control-btn.btn-danger {
  background: linear-gradient(145deg, #e74c3c, #c0392b);
  border: none;
}

.rx-control-btn i {
  font-size: 1rem;
}

/* Mobile Anpassungen für RX Gateway Kontrollen */
@media (max-width: 768px) {
  .rx-gateway-controls {
    padding: 0.5rem;
    border-radius: 8px;
    margin-bottom: 0.7rem;
  }
  
  .rx-control-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    min-width: 100px;
    border-radius: 6px;
  }
  
  .rx-control-btn i {
    font-size: 0.9rem;
  }
  
  /* Bei sehr kleinen Displays noch kompakter */
  @media (max-width: 480px) {
    .rx-gateway-controls {
      padding: 0.4rem;
      margin-bottom: 0.5rem;
    }
    
    .rx-control-btn {
      padding: 0.35rem 0.6rem;
      font-size: 0.8rem;
      min-width: 90px;
      border-radius: 5px;
    }
    
    .rx-control-btn i {
      font-size: 0.8rem;
    }
  }
}

/* Titelanzeige im gestoppten Zustand ausblenden */
.stopped .marquee-container,
.player-stopped .marquee-container {
  display: none;
}

/* Play-Button im aktiven Zustand deaktivieren */
.btn-play.disabled,
.btn-play:disabled,
.playing .btn-play {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
  background: linear-gradient(135deg, #767676, #999999);
  box-shadow: none;
  transform: none !important;
}

/* Aktiver Zustand für den Player */
.player-active .btn-stop,
.playing .btn-stop {
  background: linear-gradient(135deg, #e03c3c, #ef4444);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
  opacity: 1;
  cursor: pointer;
  pointer-events: auto;
}

/* Mobile Anpassung für Titelanzeige */
@media (max-width: 576px) {
  #currentChannel {
    max-width: 90%;
    padding: 0 5px;
  }
  
  .marquee-container {
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    margin: 0.3rem 0;
  }
  
  .marquee-text {
    font-size: 0.85rem;
    animation-duration: 15s;
  }
}

/* Extra kleine Geräte */
@media (max-width: 320px) {
  #currentChannel {
    max-width: 95%;
    padding: 0 2px;
  }
  
  .marquee-container {
    padding: 0.2rem 0.4rem;
  }
  
  .marquee-text {
    font-size: 0.8rem;
  }
}

.collapsible.open {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.15);
  margin-bottom: 20px;
  background: linear-gradient(135deg, #282852, #1f1f40);
}

.collapsible.open .collapsible-header {
  background: linear-gradient(135deg, #34345c, #29294f);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.collapsible.open .collapsible-body {
  max-height: 2000px;
  opacity: 1;
  transform: translateY(0);
  padding: 16px 16px 18px;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Highlight-Linie am oberen Rand */
.collapsible::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, #00b8b8, #22c55e);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.collapsible.open::after {
  opacity: 0.7;
}

/* Verbesserte Textdarstellung */
p, div, span {
  color: #e8e8e8;
}

/* Hellere Text-Highlightfarbe */
.text-info {
  color: #42b8ff !important;
}

.text-success {
  color: #42d392 !important;
}

.text-primary {
  color: #6c8fff !important;
}

/* Login-Bereich optimieren */
#loginArea {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  position: relative;
}

#loginArea::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, #00b8b8, #22c55e);
  opacity: 0.8;
}

#loginArea::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: translateX(-100%);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { transform: translateX(-100%); }
  20%, 100% { transform: translateX(100%); }
}

#loginArea input {
  border-radius: 8px;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.25s ease;
}

#loginArea input:focus {
  box-shadow: 0 0 0 3px rgba(0, 184, 184, 0.3), inset 0 2px 5px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

#loginArea button {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 12px;
  box-shadow: 0 4px 15px rgba(0, 123, 123, 0.3);
  transition: all 0.25s ease;
}

#loginArea button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 123, 123, 0.4);
}

#loginArea button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 123, 123, 0.3);
}

#loginArea .disclaimer {
  font-size: 0.85rem;
  line-height: 1.5;
}

#loginArea .warning-icon {
  font-size: 1.2rem;
  margin-right: 6px;
  vertical-align: middle;
}

#loginArea .signature {
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
}

/* WLAN-Signalstärke-Anzeige */
.signal-strength-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.signal-strength-indicator {
  display: inline-flex;
  align-items: flex-end;
  height: 20px;
  gap: 3px;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 3px 5px;
  border-radius: 5px;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.signal-bar {
  width: 4px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 1px;
  transition: all 0.3s ease;
}

.signal-bar.bar-1 {
  height: 6px;
}

.signal-bar.bar-2 {
  height: 10px;
}

.signal-bar.bar-3 {
  height: 14px;
}

.signal-bar.bar-4 {
  height: 18px;
}

/* Signalstärke-Klassen */
.signal-strength-excellent .signal-bar {
  background-color: #2ecc71; /* Grün */
  box-shadow: 0 0 5px rgba(46, 204, 113, 0.7);
}

.signal-strength-good .signal-bar.bar-1,
.signal-strength-good .signal-bar.bar-2,
.signal-strength-good .signal-bar.bar-3 {
  background-color: #2ecc71; /* Grün */
  box-shadow: 0 0 5px rgba(46, 204, 113, 0.7);
}

.signal-strength-good .signal-bar.bar-4 {
  background-color: rgba(255, 255, 255, 0.2);
}

.signal-strength-moderate .signal-bar.bar-1,
.signal-strength-moderate .signal-bar.bar-2 {
  background-color: #f39c12; /* Orange */
  box-shadow: 0 0 5px rgba(243, 156, 18, 0.7);
}

.signal-strength-moderate .signal-bar.bar-3,
.signal-strength-moderate .signal-bar.bar-4 {
  background-color: rgba(255, 255, 255, 0.2);
}

.signal-strength-poor .signal-bar.bar-1 {
  background-color: #e74c3c; /* Rot */
  box-shadow: 0 0 5px rgba(231, 76, 60, 0.7);
}

.signal-strength-poor .signal-bar.bar-2,
.signal-strength-poor .signal-bar.bar-3,
.signal-strength-poor .signal-bar.bar-4 {
  background-color: rgba(255, 255, 255, 0.2);
}

.signal-strength-offline .signal-bar {
  background-color: rgba(255, 255, 255, 0.15);
  box-shadow: none;
}

/* Inaktiv-Status (RX Gateway nicht gestartet) */
.signal-strength-inactive .signal-bar {
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.signal-strength-inactive {
  background-color: rgba(108, 117, 125, 0.15);
  border: 1px solid rgba(108, 117, 125, 0.3);
}

/* Offline-Status speziell hervorheben */
.signal-strength-offline {
  background-color: rgba(231, 76, 60, 0.15);
  border: 1px solid rgba(231, 76, 60, 0.3);
  animation: offlinePulse 2s infinite;
}

@keyframes offlinePulse {
  0% {
    background-color: rgba(231, 76, 60, 0.15);
    border-color: rgba(231, 76, 60, 0.3);
  }
  50% {
    background-color: rgba(231, 76, 60, 0.25);
    border-color: rgba(231, 76, 60, 0.5);
  }
  100% {
    background-color: rgba(231, 76, 60, 0.15);
    border-color: rgba(231, 76, 60, 0.3);
  }
}

/* Pulseffekt für die Signalstärke-Anzeige */
@keyframes signalPulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

.signal-strength-updating .signal-bar {
  animation: signalPulse 1.5s infinite;
}

/* Ping-Anzeige */
.ping-display {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  min-width: 50px;
  text-align: left;
}

.signal-strength-excellent + .ping-display {
  color: #2ecc71;
}

.signal-strength-good + .ping-display {
  color: #2ecc71;
}

.signal-strength-moderate + .ping-display {
  color: #f39c12;
}

.signal-strength-poor + .ping-display {
  color: #e74c3c;
}

.signal-strength-offline + .ping-display {
  color: #e74c3c;
  font-weight: 700;
}

.signal-strength-inactive + .ping-display {
  color: #6c757d;
  font-weight: 500;
}

/* Mobile Anpassungen für die Signalstärke-Anzeige */
@media (max-width: 576px) {
  .signal-strength-container {
    gap: 6px;
  }
  
  .signal-strength-indicator {
    height: 18px;
    gap: 2px;
    padding: 2px 4px;
  }
  
  .signal-bar {
    width: 3px;
  }
  
  .signal-bar.bar-1 {
    height: 5px;
  }
  
  .signal-bar.bar-2 {
    height: 8px;
  }
  
  .signal-bar.bar-3 {
    height: 12px;
  }
  
  .signal-bar.bar-4 {
    height: 15px;
  }
  
  .ping-display {
    font-size: 0.8rem;
    min-width: 45px;
  }
}