/* ===========================
   CSS Variablen & Grundfarben
   =========================== */
:root {
  --primary: #A03B44;           /* Icy Crimson Metallic */
  --primary-light: #C8D6E5;     /* Icy Silver */
  --primary-dark: #4A6FA5;      /* Frosted Steel Blue */
  --accent: #C8D6E5;            /* Icy Silver als Akzent */
  --background: #2F2F2F;        /* Anthracite */
  --background-glass: rgba(47, 47, 47, 0.85);
  --foreground: #E6F0F3;        /* Frost White (Licht & Nebel) */
  --muted: #C8D6E5;             /* Icy Silver */
  --box-bg: rgba(20, 77, 59, 0.28); /* Deep Evergreen Metallic transparent */
  --box-radius: 14px;
  --shadow: 0 4px 24px rgba(20, 77, 59, 0.18); /* Deep Evergreen Metallic Schatten */
  --transition: 0.3s ease;
  --font-family: 'Segoe UI', Arial, sans-serif;
}

/* ===========================
   Grundlayout mit CSS Grid
   =========================== */
body {
  font-family: var(--font-family);
  margin: 0;
  padding: 0;
  background: var(--background) url('boxen/background.jpg') center/cover no-repeat fixed;
  color: var(--foreground);
  min-height: 100vh;
  transition: background 0.5s;
}

.layout {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid:
    "header header header" auto
    "leftSide body rightSide" 1fr
    / auto 1fr auto;
  gap: 16px;
  background: transparent;
}

.layout {
  transform: scale(0.94);
  transform-origin: top center;
}

.header { grid-area: header; }
.leftSide { grid-area: leftSide; }
.body {
  grid-area: body;
  background: var(--box-bg);
  color: var(--foreground);
  border-radius: var(--box-radius);
  box-shadow: var(--shadow);
  padding: 24px 18px;
  min-height: 400px;
}
.rightSide { grid-area: rightSide; }

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "header"
      "body";
    gap: 8px;
  }
  .leftSide, .rightSide {
    display: none;
  }
  .body {
    padding: 0 10px;
  }
}

/* ===========================
   Header & Tagline (3D-Effekt)
   =========================== */
header {
  background: linear-gradient(135deg, rgba(20, 77, 59, 0.48) 60%, rgba(160, 59, 68, 0.48) 100%);
  box-shadow: 0 4px 16px rgba(160, 59, 68, 0.15);
  border-radius: 0 0 18px 18px;
  padding: 18px 24px 8px 24px;
  color: var(--foreground);
  font-family: var(--font-family);
}

.tagline p {
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent);
  margin: 0 0 18px 0;
  text-align: center;
  letter-spacing: 0.03em;
  user-select: none;
  perspective: 600px;
  text-shadow:
    0 1px 0 #9ea9b3,
    0 2px 0 #8a95a3,
    0 3px 0 #76818f,
    0 4px 0 #636d7b,
    0 5px 0 #505967,
    0 6px 0 #3d4553,
    0 7px 0 #2a3240,
    0 8px 7px rgba(0,0,0,0.6);
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
}
.tagline p:hover {
  transform: rotateX(15deg) rotateY(10deg) translateZ(10px);
  text-shadow:
    0 2px 1px #dbe6f2,
    0 4px 2px #c9d9f0,
    0 6px 3px #b7cced,
    0 8px 4px #a5bff0,
    0 10px 5px #93b2f0,
    0 12px 6px #81a5f0,
    0 14px 7px #6f98f0,
    0 16px 14px rgba(0,0,0,0.8);
}

/* ===========================
   Hauptnavigation
   =========================== */
.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 0;
}

.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.main-nav li {
  position: relative;
}

.main-nav a,
.main-nav .dropdown-toggle {
  color: var(--primary-light);
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: 
    background 0.2s cubic-bezier(.4,0,.2,1),
    color 0.2s cubic-bezier(.4,0,.2,1),
    box-shadow 0.2s cubic-bezier(.4,0,.2,1);
  outline: none;
}

.main-nav a[aria-current="page"],
.main-nav a.active,
.main-nav .dropdown-toggle[aria-expanded="true"] {
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  color: var(--foreground);
  box-shadow: 0 2px 8px rgba(200, 214, 229, 0.15);
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav .dropdown-toggle:hover,
.main-nav .dropdown-toggle:focus-visible {
  background: color-mix(in srgb, var(--accent) 60%, transparent);
  color: var(--background);
  box-shadow: 0 4px 16px rgba(200, 214, 229, 0.18);
}

.main-nav .dropdown-toggle::after {
  content: " ▼";
  font-size: 0.8em;
  color: var(--accent);
  transition: transform 0.2s;
}
.main-nav .dropdown-toggle[aria-expanded="true"]::after {
  transform: rotate(-180deg);
}

/* Dropdown-Menüs */
.main-nav ul.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(20, 77, 59, 0.97);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 2px 10px rgba(160, 59, 68, 0.18);
  padding: 10px 0;
  min-width: 220px;
  display: none;
  flex-direction: column;
  z-index: 1000;
  animation: fadeIn 0.2s;
}

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

.main-nav li:focus-within > ul.dropdown,
.main-nav li:hover > ul.dropdown,
.main-nav .dropdown-toggle[aria-expanded="true"] + ul.dropdown {
  display: flex;
}

.main-nav ul.dropdown li {
  margin: 0;
}

.main-nav ul.dropdown a {
  padding: 10px 18px;
  display: block;
  font-size: 1rem;
  color: var(--primary-light);
  border-radius: 6px;
  background: none;
  transition: background 0.2s, color 0.2s;
}

.main-nav ul.dropdown a:hover,
.main-nav ul.dropdown a:focus-visible {
  background: var(--accent);
  color: var(--background);
  outline: none;
}

/* Responsive Navigation */
@media (max-width: 900px) {
  .main-nav ul {
    flex-direction: column;
    gap: 0.7rem;
    align-items: stretch;
  }
  .main-nav ul.dropdown {
    position: static;
    min-width: 100%;
    box-shadow: none;
    border-radius: 0 0 12px 12px;
  }
  .main-nav a,
  .main-nav .dropdown-toggle {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 600px) {
  header {
    padding: 10px 6px 4px 6px;
  }
  .tagline p {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }
  .main-nav ul {
    gap: 0.3rem;
  }
  .main-nav a,
  .main-nav .dropdown-toggle {
    padding: 12px 8px;
    font-size: 1rem;
  }
  .main-nav ul.dropdown a {
    padding: 10px 8px;
    font-size: 0.95rem;
  }
}
/* ===========================
   Boxen Allgemein
   =========================== */
.box {
  border-radius: var(--box-radius);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(20, 77, 59, 0.3); /* Deep Evergreen Metallic Schatten */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--foreground);
  font-family: var(--font-family);
  background: var(--background-glass);
}

.box-header {
  background-image: url('boxen/Lbt.png');
  background-repeat: no-repeat;
  background-size: cover;
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  font-weight: 700;
  text-shadow:
    0 0 5px rgba(200, 214, 229, 0.7), /* Icy Silver */
    0 2px 4px rgba(0, 0, 0, 0.7);
  text-align: center;
  border-radius: var(--box-radius) var(--box-radius) 0 0;
}

.box-content {
  background-image: url('boxen/Lbm.png');
  background-repeat: no-repeat;
  background-size: cover;
  width: 260px;
  color: var(--foreground);
  background-color: var(--background);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  min-height: 100px;
  font-size: 1rem;
  line-height: 1.4;
  font-family: var(--font-family);
  border-radius: 0 0 var(--box-radius) var(--box-radius);
}

.box-content a {
  color: var(--primary-light);
  text-decoration: underline;
  transition: color var(--transition);
}

.box-content a:hover {
  color: var(--accent);
}

.box-footer {
  background-image: url('boxen/Lbb.png');
  background-repeat: no-repeat;
  background-size: cover;
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  font-weight: 700;
  text-shadow:
    0 0 5px rgba(200, 214, 229, 0.7),
    0 2px 4px rgba(0, 0, 0, 0.7);
  text-align: center;
  border-radius: var(--box-radius);
}

.box:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(20, 77, 59, 0.7); /* Deep Evergreen Metallic */
}

.box h2 {
  margin-top: 0;
  color: var(--primary-light);
  font-weight: 700;
  text-shadow:
    0 0 5px rgba(200, 214, 229, 0.7),
    0 2px 4px rgba(0, 0, 0, 0.7);
}

/* ===========================
   Box1: Profil-Box
   =========================== */
#box1.profile-box {
  max-width: 700px;
  margin: 32px auto;
  background: var(--background-glass);
  border-radius: var(--box-radius);
  box-shadow: var(--shadow);
  color: var(--foreground);
  font-family: var(--font-family);
  user-select: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Box content */
.leftSide .profile-box .box-content {
  background-size: contain !important;
  background-repeat: repeat-y !important;
}

#box1.profile-box .box-header {
  display: flex;
  align-items: flex-end; /* Text unten ausrichten */
  justify-content: center;
  height: 210px;
  padding-bottom: 40px; /* Abstand nach unten */
  background-image: url('boxen/Lbt.png');
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--primary-light);
  font-weight: 700;
  font-size: 1.3rem;
  text-shadow:
    0 0 5px rgba(200, 214, 229, 0.7), /* Icy Silver */
    0 2px 4px rgba(0, 0, 0, 0.7);
  border-radius: var(--box-radius) var(--box-radius) 0 0;
  text-align: center;
}

#box1.profile-box .box-header h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

#box1.profile-box .box-header h2 i {
  font-size: 2.2rem;
  color: var(--accent);
}

#box1.profile-box .box-content {
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  background-image: url('boxen/Lbm.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-color: var(--background);
  border-radius: 0 0 var(--box-radius) var(--box-radius);
}

.profile-avatar-container {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid var(--primary);
  overflow: hidden;
  box-shadow: 0 0 12px var(--primary);
  flex-shrink: 0;
}

.profile-avatar-container img.profile-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-info {
  color: var(--primary-light);
  font-weight: 600;
  font-size: 1.1rem;
}

.profile-info .profile-greeting {
  margin: 0 0 12px 0;
  font-size: 1.2rem;
  color: var(--accent);
}

.profile-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-links ul li a {
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color var(--transition);
}

.profile-links ul li a:hover,
.profile-links ul li a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  outline: none;
}

.profile-login-prompt {
  font-size: 1.1rem;
  color: var(--primary-light);
}

.profile-login-prompt a {
  color: var(--accent);
  text-decoration: underline;
  transition: color var(--transition);
}

.profile-login-prompt a:hover,
.profile-login-prompt a:focus-visible {
  color: var(--primary-light);
  outline: none;
}

@media (max-width: 480px) {
  #box1.profile-box {
    max-width: 90%;
    margin: 24px auto;
  }
  .profile-links ul {
    flex-direction: column;
    gap: 8px;
  }
}

/* ===========================
   Box3: Vorschau Sendeplan
   =========================== */
#box3 {
  max-width: 700px;
  margin: 32px auto;
  background: var(--background-glass);
  border-radius: var(--box-radius);
  box-shadow: var(--shadow);
  padding: 24px 20px;
  color: var(--foreground);
  font-family: var(--font-family);
  text-align: center;
  border: 2px solid var(--primary);
}

#box3 h2 {
  font-size: 1.7rem;
  margin-bottom: 18px;
  color: var(--primary-light);
  font-weight: 700;
  text-shadow:
    0 0 5px rgba(200, 214, 229, 0.7), /* Icy Silver */
    0 2px 4px rgba(0, 0, 0, 0.3);
}

#box3 ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#box3 li {
  display: flex;
  align-items: center;
  background: rgba(160, 59, 68, 0.15); /* Icy Crimson Metallic transparent */
  border-radius: 8px;
  margin-bottom: 10px;
  padding: 10px 14px;
  color: var(--foreground);
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(160, 59, 68, 0.15);
  transition: background 0.3s ease;
}

#box3 li:last-child {
  margin-bottom: 0;
}

#box3 li:hover {
  background: rgba(160, 59, 68, 0.3);
}

.schedule-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin-right: 10px;
  border: 2px solid var(--primary);
  background: var(--background);
  object-fit: cover;
}

.schedule-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--primary-light);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: underline;
  border-radius: 6px;
  transition: color 0.3s ease;
  cursor: pointer;
  padding: 4px 8px;
}

.schedule-link:hover,
.schedule-link:focus-visible {
  color: var(--accent);
  background: rgba(160, 59, 68, 0.2);
  text-decoration: none;
  outline: none;
}

/* ===========================
   Box4: Benutzerliste
   =========================== */
#box4.userlist-box {
  max-width: 320px;
  margin: 32px auto;
  background: var(--background-glass);
  border-radius: var(--box-radius);
  box-shadow: var(--shadow);
  color: var(--foreground);
  font-family: var(--font-family);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#box4 .box-header {
  background-image: url('boxen/Lbt.png');
  background-repeat: no-repeat;
  background-size: cover;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  font-weight: 700;
  font-size: 1.3rem;
  text-shadow:
    0 0 5px rgba(200, 214, 229, 0.7), /* Icy Silver */
    0 2px 4px rgba(0, 0, 0, 0.7);
  border-radius: var(--box-radius) var(--box-radius) 0 0;
}

#box4 .box-header h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

#box4 .box-header h2 i {
  font-size: 1.6rem;
  color: var(--accent);
}

#box4 .box-content {
  padding: 16px 10px 18px 10px;
  background-image: url('boxen/Lbm.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-color: var(--background);
  border-radius: 0 0 var(--box-radius) var(--box-radius);
}

.user-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.userlist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(160, 59, 68, 0.10); /* Icy Crimson Metallic transparent */
  border-radius: 8px;
  padding: 7px 8px;
  font-size: 1rem;
  box-shadow: 0 1px 4px rgba(160, 59, 68, 0.08);
  transition: background 0.2s;
}

.userlist-item:hover {
  background: rgba(160, 59, 68, 0.18);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  object-fit: cover;
  background: var(--background);
  flex-shrink: 0;
}

.username {
  color: var(--primary-light);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition);
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90px;
}

.username:hover,
.username:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  outline: none;
}

.online-status {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-left: 6px;
  margin-right: 2px;
  border: 1.5px solid #fff;
}

.online-status.online {
  background: #4caf50;
  box-shadow: 0 0 4px #4caf50;
}

.online-status.offline {
  background: #bdbdbd;
  box-shadow: 0 0 4px #bdbdbd;
}

.last-online {
  font-size: 0.85em;
  color: var(--muted);
  margin-left: 6px;
  white-space: nowrap;
}

.userlist-login-prompt {
  color: var(--primary-light);
  font-size: 1.05rem;
  text-align: center;
}

.userlist-login-prompt a {
  color: var(--accent);
  text-decoration: underline;
  transition: color var(--transition);
}

.userlist-login-prompt a:hover,
.userlist-login-prompt a:focus-visible {
  color: var(--primary-light);
  outline: none;
}

/* Fehleranzeige */
.user-list .error {
  color: #ffbaba;
  background: rgba(160, 59, 68, 0.18);
  border-radius: 6px;
  padding: 8px;
  text-align: center;
  font-size: 0.98rem;
}

/* Für Benutzerliste Content auf der rechten Seite */
.rightSide #box4.userlist-box .box-content {
  background-size: contain !important;
  background-repeat: repeat-y !important;
  background-position: center top !important;
}

/* Heading */
.userlist-box .box-header h2 {
  transform: translateX(0px) translateY(46px);
  font-size: 24px;
}

/* Responsive Anpassung */
@media (max-width: 480px) {
  #box4.userlist-box {
    max-width: 98vw;
    margin: 18px auto;
  }
  .username {
    max-width: 60vw;
  }
}
/* ===========================
   Charts-Box (Voting & Archiv)
   =========================== */
#charts-box {
  max-width: 700px;
  margin: 32px auto;
  background: var(--background-glass);
  border-radius: var(--box-radius);
  box-shadow: var(--shadow);
  padding: 24px 20px;
  color: var(--foreground);
  font-family: var(--font-family);
  text-align: center;
  border: 2px solid var(--primary);
}

#charts-box h2 {
  font-size: 1.6rem;
  margin-bottom: 12px;
  color: var(--primary-light);
  font-weight: 700;
  text-shadow:
    0 0 5px rgba(200, 214, 229, 0.7), /* Icy Silver */
    0 2px 4px rgba(0, 0, 0, 0.3);
}

#charts-box > div {
  margin-bottom: 18px;
  font-size: 1.08rem;
  color: var(--accent);
}

#charts-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px 0;
}

#charts-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(160, 59, 68, 0.13); /* Icy Crimson Metallic transparent */
  border-radius: 8px;
  margin-bottom: 10px;
  padding: 10px 14px;
  color: var(--foreground);
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(160, 59, 68, 0.10);
  transition: background 0.3s;
  gap: 10px;
}

#charts-list li:last-child {
  margin-bottom: 0;
}

#charts-list strong {
  color: var(--primary-light);
  font-weight: 700;
  margin-left: 8px;
}

.vote-btn {
  background: var(--primary);
  color: var(--foreground);
  border: none;
  border-radius: 8px;
  padding: 6px 18px;
  font-weight: 700;
  font-size: 1rem;
  margin-left: 10px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  box-shadow: 0 1px 4px rgba(160, 59, 68, 0.10);
}

.vote-btn:hover,
.vote-btn:focus-visible {
  background: var(--accent);
  color: var(--primary-dark);
  outline: none;
}

#charts-box form {
  margin-top: 1em;
  margin-bottom: 1em;
}

#charts-box select {
  border-radius: 8px;
  border: 1.5px solid var(--primary);
  padding: 7px 12px;
  font-size: 1rem;
  background: var(--background);
  color: var(--foreground);
  transition: border-color var(--transition);
}

#charts-box select:focus {
  border-color: var(--accent);
  outline: none;
}

#charts-box h3 {
  margin-top: 2em;
  margin-bottom: 0.7em;
  color: var(--primary-light);
  font-size: 1.2rem;
  font-weight: 700;
}

#charts-box textarea {
  width: 90%;
  min-height: 60px;
  border-radius: 8px;
  border: 1.5px solid var(--primary);
  padding: 10px 12px;
  font-size: 1rem;
  background: var(--background);
  color: var(--foreground);
  margin-bottom: 8px;
  transition: border-color var(--transition);
  resize: vertical;
}

#charts-box textarea:focus {
  border-color: var(--accent);
  outline: none;
}

#charts-box button[type="submit"] {
  background: var(--primary);
  color: var(--foreground);
  border: none;
  border-radius: 8px;
  padding: 7px 18px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

#charts-box button[type="submit"]:hover,
#charts-box button[type="submit"]:focus-visible {
  background: var(--accent);
  color: var(--primary-dark);
  outline: none;
}

#charts-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#charts-box ul li {
  margin-bottom: 8px;
  text-align: left;
  background: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  color: var(--foreground);
}

#charts-box ul li strong {
  color: var(--primary-light);
  font-weight: 700;
}

#charts-box p,
#charts-box .info {
  color: var(--primary-light);
  font-size: 1.05rem;
  margin: 0.5em 0;
}

@media (max-width: 600px) {
  #charts-box {
    max-width: 98vw;
    padding: 12px 2vw;
  }
  #charts-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 0.98rem;
    padding: 8px 6px;
  }
  #charts-box textarea {
    width: 98%;
  }
}

/* ===========================
   Event Ticker
   =========================== */
#event-ticker {
  max-width: 700px;
  margin: 32px auto;
  background: var(--background-glass);
  border-radius: var(--box-radius);
  box-shadow: var(--shadow);
  padding: 20px 24px;
  color: var(--foreground);
  font-family: var(--font-family);
  overflow: hidden;
}

#event-ticker h2 {
  font-size: 1.6rem;
  margin-bottom: 16px;
  color: var(--primary-light);
  font-weight: 700;
  text-align: center;
  text-shadow:
    0 0 5px rgba(200, 214, 229, 0.7), /* Icy Silver */
    0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Container für den Ticker */
.ticker-container {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: ticker-scroll 20s linear infinite;
  user-select: none;
}

/* Einzelne Ticker-Items */
.ticker-item {
  display: inline-block;
  min-width: 280px;
  background: rgba(160, 59, 68, 0.15); /* Icy Crimson Metallic transparent */
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 2px 10px rgba(160, 59, 68, 0.2);
  cursor: pointer;
  transition: background-color 0.3s ease;
  white-space: normal; /* Wichtig: Text innerhalb umbrechen */
}

.ticker-item:hover,
.ticker-item:focus-within {
  background: rgba(160, 59, 68, 0.35);
  outline: none;
}

.ticker-item a.event-link {
  color: var(--foreground);
  text-decoration: none;
  display: block;
}

.ticker-item a.event-link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.ticket-info h3 {
  margin: 0 0 6px 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-light);
}

.ticket-info p {
  margin: 0 0 8px 0;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--foreground);
}

.ticket-info a {
  color: var(--accent);
  text-decoration: underline;
}

.ticket-info a:hover,
.ticket-info a:focus-visible {
  color: var(--primary-light);
  outline: none;
}

.event-hint {
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}

/* Animation für den Ticker */
@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Modal Styles */
#modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(47, 47, 47, 0.9); /* Anthracite transparent */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  box-sizing: border-box;
}

#modal[style*="display:none"] {
  display: none !important;
}

.modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  background: var(--background-glass);
  border-radius: var(--box-radius);
  box-shadow: var(--shadow);
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 2.4rem;
  color: var(--accent);
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-close:hover,
.modal-close:focus-visible {
  color: var(--primary-light);
  outline: none;
}

#modal-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--box-radius);
  box-shadow: 0 0 20px var(--primary);
  user-select: none;
}

/* Responsive */
@media (max-width: 600px) {
  #event-ticker {
    max-width: 98vw;
    padding: 16px 12px;
  }
  .ticker-container {
    gap: 24px;
  }
  .ticker-item {
    min-width: 220px;
    padding: 12px 14px;
  }
  .ticket-info h3 {
    font-size: 1.1rem;
  }
  .ticket-info p {
    font-size: 0.9rem;
  }
}

/* ===========================
   Events Box
   =========================== */
#events.events-box {
  max-width: 700px;
  margin: 32px auto;
  background: var(--background-glass);
  border-radius: var(--box-radius);
  box-shadow: var(--shadow);
  padding: 24px 20px;
  color: var(--foreground);
  font-family: var(--font-family);
  text-align: center;
  border: 2px solid var(--primary);
}

#events.events-box .box-header {
  background-image: url('boxen/Lbt.png');
  background-repeat: no-repeat;
  background-size: cover;
  height: 210px;
  display: flex;
  align-items: flex-end;      /* Überschrift unten ausrichten */
  justify-content: center;
  padding-bottom: 20px;       /* Abstand nach unten */
  color: var(--primary-light);
  font-weight: 700;
  font-size: 1.8rem;
  text-shadow:
    0 0 5px rgba(200, 214, 229, 0.7), /* Icy Silver */
    0 2px 4px rgba(0, 0, 0, 0.7);
  border-radius: var(--box-radius) var(--box-radius) 0 0;
  text-align: center;
}

#events.events-box .box-header h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px; /* Abstand zwischen Icon und Text */
  font-size: 2rem;
}

#events.events-box .box-header h2 i {
  font-size: 2rem;
  color: var(--accent);
  padding-bottom: 0; /* Padding entfernt, da Abstand über gap geregelt wird */
}

#events.events-box .box-content {
  background-image: url('boxen/Lbm.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-color: var(--background);
  border-radius: 0 0 var(--box-radius) var(--box-radius);
  padding: 20px 18px;
  min-height: 150px;
  font-size: 1.1rem;
  color: var(--foreground);
  text-align: left;
}

.events-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.event-item {
  padding: 12px 16px;
  margin-bottom: 12px;
  background: rgba(160, 59, 68, 0.15); /* Icy Crimson Metallic transparent */
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(160, 59, 68, 0.15);
  font-weight: 600;
  color: var(--primary-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.event-item strong {
  flex-shrink: 0;
  color: var(--accent);
}

.event-item time {
  font-style: normal;
  color: var(--foreground);
  white-space: nowrap;
}

.event-timestamp {
  font-size: 0.85rem;
  color: var(--muted);
  margin-left: 8px;
  white-space: nowrap;
}

.no-events {
  color: var(--muted);
  font-style: italic;
  padding: 20px 0;
  text-align: center;
}

/* Heading */
#events .box-header h2 {
  transform: translateX(-5px) translateY(44px);
}

/* Responsive Anpassungen */
@media (max-width: 600px) {
  #events.events-box {
    max-width: 98vw;
    padding: 16px 12px;
  }
  .event-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font-size: 1rem;
  }
  .event-item time,
  .event-timestamp {
    white-space: normal;
  }
}

/* ===========================
   Feedback Panel (Floating)
   =========================== */
#feedback-fab {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 10001;
  background: var(--primary);
  color: var(--foreground);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 14px 22px;
  border-radius: 50px;
  box-shadow: 0 4px 16px rgba(160, 59, 68, 0.25); /* Icy Crimson Metallic */
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  outline: none;
  border: none;
  user-select: none;
}
#feedback-fab:hover,
#feedback-fab:focus-visible {
  background: var(--accent);
  color: var(--primary-dark);
  box-shadow: 0 6px 24px rgba(200, 214, 229, 0.25); /* Icy Silver */
  outline: none;
}

/* Panel selbst */
#feedback-panel {
  position: fixed;
  bottom: 90px;
  right: 32px;
  width: 340px;
  max-width: 96vw;
  background: var(--background-glass);
  color: var(--foreground);
  border-radius: var(--box-radius);
  box-shadow: 0 8px 32px rgba(160, 59, 68, 0.25);
  z-index: 10002;
  padding: 0;
  display: none;
  flex-direction: column;
  animation: feedback-fadein 0.3s;
}
#feedback-panel[aria-hidden="false"] {
  display: flex;
}

@keyframes feedback-fadein {
  from { opacity: 0; transform: translateY(40px);}
  to   { opacity: 1; transform: translateY(0);}
}

.feedback-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--primary);
  color: var(--foreground);
  padding: 14px 18px;
  border-radius: var(--box-radius) var(--box-radius) 0 0;
  font-size: 1.2rem;
  font-weight: 700;
}

#feedback-close {
  background: transparent;
  border: none;
  color: var(--accent);
  font-size: 2rem;
  cursor: pointer;
  transition: color var(--transition);
  margin-left: 10px;
}
#feedback-close:hover,
#feedback-close:focus-visible {
  color: var(--primary-light);
  outline: none;
}

.feedback-average {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 0 18px;
  font-size: 1.05rem;
  color: var(--primary-light);
}
.feedback-average .stars {
  color: var(--accent);
  font-size: 1.2em;
  letter-spacing: 2px;
}
.feedback-average .avg-number {
  color: var(--muted);
  font-size: 0.98em;
}

#feedback-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
}

.slider-label {
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

#feedback-slider {
  width: 100%;
  margin: 0 0 8px 0;
  accent-color: var(--primary);
  height: 4px;
  background: var(--primary-light);
  border-radius: 6px;
  outline: none;
  transition: accent-color var(--transition);
}
#feedback-slider:focus {
  accent-color: var(--accent);
  outline: none;
}

#feedback-form textarea {
  border-radius: 8px;
  border: 1.5px solid var(--primary);
  padding: 10px 12px;
  font-size: 1rem;
  background: var(--background);
  color: var(--foreground);
  resize: vertical;
  min-height: 60px;
  transition: border-color var(--transition);
}
#feedback-form textarea:focus {
  border-color: var(--accent);
  outline: none;
}

#feedback-form button[type="submit"] {
  background: var(--primary);
  color: var(--foreground);
  border: none;
  border-radius: 8px;
  padding: 10px 0;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
#feedback-form button[type="submit"]:hover,
#feedback-form button[type="submit"]:focus-visible {
  background: var(--accent);
  color: var(--primary-dark);
  outline: none;
}

.error-message {
  color: #ffbaba;
  background: rgba(160, 59, 68, 0.18);
  border-radius: 6px;
  padding: 12px 18px;
  margin: 18px;
  text-align: center;
  font-size: 1.05rem;
}

/* Responsive Anpassung */
@media (max-width: 600px) {
  #feedback-fab {
    right: 12px;
    bottom: 12px;
    padding: 10px 16px;
    font-size: 1rem;
  }
  #feedback-panel {
    right: 2vw;
    width: 98vw;
    min-width: 0;
    max-width: 98vw;
    bottom: 70px;
  }
  .feedback-header {
    font-size: 1rem;
    padding: 10px 12px;
  }
  #feedback-form {
    padding: 12px;
  }
}

/* ===========================
   Discord Floating Button
   =========================== */
#discord-fab {
  position: fixed;
  bottom: 32px;
  right: 90px; /* Neben Feedback-Fab, Abstand anpassen */
  z-index: 10001;
  width: 56px;
  height: 56px;
  background: #4A6FA5; /* Frosted Steel Blue */
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(74, 111, 165, 0.6);
  color: #E6F0F3; /* Frost White */
  font-size: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
  border: none;
  user-select: none;
}

#discord-fab:hover,
#discord-fab:focus-visible {
  background: #39568a; /* dunkleres Frosted Steel Blue */
  box-shadow: 0 6px 24px rgba(57, 86, 138, 0.8);
  outline: none;
}

/* Für Screenreader und Tastaturfokus */
#discord-fab:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

/* ===========================
   Radio Player Box
   =========================== */
#radio-player {
  max-width: 700px;
  margin: 32px auto;
  background: var(--background-glass);
  border-radius: var(--box-radius);
  box-shadow: var(--shadow);
  color: var(--foreground);
  font-family: var(--font-family);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 2px solid var(--primary);
}

#radio-player .box-header {
  background-image: url('boxen/Lbt.png');
  background-repeat: no-repeat;
  background-size: cover;
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  font-weight: 700;
  font-size: 1.8rem;
  text-shadow:
    0 0 5px rgba(200, 214, 229, 0.7), /* Icy Silver */
    0 2px 4px rgba(0, 0, 0, 0.7);
  border-radius: var(--box-radius) var(--box-radius) 0 0;
  text-align: center;
}

#radio-player .box-header h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

#radio-player .box-content {
  background-image: url('boxen/Lbm.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-color: var(--background);
  border-radius: 0 0 var(--box-radius) var(--box-radius);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: var(--foreground);
  font-size: 1rem;
  text-align: center;
}

/* Player container */
#musicPlayer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* Top indicator */
#musicPlayer .top .indicator {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--primary-light);
}

/* Center logo and caption */
#musicPlayer .center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

#musicPlayer .center img.logo {
  max-width: 160px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 16px var(--primary);
  user-select: none;
}

#musicPlayer .center .img-caption {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Laut.fm playlists container */
#api_lfm_current_playlists {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.lfm_curr_pl_id {
  width: 200px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 0 8px var(--primary);
}

/* Song details marquee */
.song_details {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.marquee {
  display: inline-block;
  animation: marquee 15s linear infinite;
}

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

/* Listener count */
#api_lfm_listener1 {
  font-weight: 600;
  font-size: 1rem;
  color: var(--primary-light);
  margin-top: 8px;
}

/* Current time */
#current_time {
  font-size: 1rem;
  color: var(--muted);
  margin-top: 6px;
}

/* Play/Pause button */
.button1 {
  background: var(--primary);
  border: none;
  border-radius: 12px;
  padding: 10px 24px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(160, 59, 68, 0.4);
  transition: background var(--transition), box-shadow var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px auto 0 auto;
}

.button1:hover,
.button1:focus-visible {
  background: var(--accent);
  box-shadow: 0 6px 20px rgba(200, 214, 229, 0.6);
  outline: none;
}

.button1 img {
  width: 28px;
  height: 28px;
  user-select: none;
}

.button1 .img-caption {
  color: var(--foreground);
  font-weight: 700;
  font-size: 1rem;
}

/* Background selector */
#backgroundSelector1 {
  margin: 16px auto 0 auto;
  display: block;
  border-radius: 8px;
  border: 1.5px solid var(--primary);
  padding: 8px 12px;
  font-size: 1rem;
  background: var(--background);
  color: var(--foreground);
  max-width: 280px;
  transition: border-color var(--transition);
}

#backgroundSelector1:focus {
  border-color: var(--accent);
  outline: none;
}

/* Sendeplan container */
#containerSchedule1 {
  margin-top: 18px;
  font-size: 0.6rem;
  color: var(--primary-light);
  min-height: 60px;
}

/* Player download links */
.center-align {
  margin-top: 24px;
  text-align: center;
}

.image-table {
  margin: 0 auto;
  border-collapse: collapse;
  width: auto;
}

.image-table td {
  padding: 0 12px;
}

.image-table img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  box-shadow: 0 0 12px var(--primary);
  user-select: none;
  transition: transform 0.3s ease;
}

.image-table img:hover,
.image-table img:focus-visible {
  transform: scale(1.1);
  outline: none;
}

/* Für Radio-Player Content auf der rechten Seite */
.rightSide #radio-player .box-content {
  background-size: contain !important;
  background-repeat: repeat-y !important;
  background-position: center top !important;
}

/* Heading */
#radio-player .box-header h2{
 transform:translatex(0px) translatey(46px);
 font-size:33px;
}

/* Responsive */
@media (max-width: 600px) {
  #radio-player {
    max-width: 98vw;
    padding: 16px 12px;
  }
  #musicPlayer .center img.logo {
    max-width: 120px;
  }
  .button1 {
    padding: 8px 18px;
  }
  .image-table td {
    padding: 0 8px;
  }
  .image-table img {
    width: 40px;
    height: 40px;
  }
}

/* ===========================
   Shoutbox
   =========================== */
#shoutbox {
  max-width: 700px;
  margin: 32px auto;
  background: var(--background-glass);
  border-radius: var(--box-radius);
  box-shadow: var(--shadow);
  color: var(--foreground);
  font-family: var(--font-family);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 2px solid var(--primary);
}

#shoutbox .box-header {
  background-image: url('boxen/Lbt.png');
  background-repeat: no-repeat;
  background-size: cover;
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  font-weight: 700;
  font-size: 1.4rem;
  text-shadow:
    0 0 5px rgba(200, 214, 229, 0.7), /* Icy Silver */
    0 2px 4px rgba(0, 0, 0, 0.7);
  border-radius: var(--box-radius) var(--box-radius) 0 0;
  text-align: center;
}

#shoutbox .box-header h2 {
  margin: 0;
}

/* Angepasste Box-Content Hintergrund */
#shoutbox .box-content {
  background-image: url('boxen/Lbm.png');
  background-repeat: repeat-y;
  background-size: contain;
  background-position: center top;
  background-color: var(--background);
  border-radius: 0 0 var(--box-radius) var(--box-radius);
  padding: 20px 18px;
  min-height: 180px;
  font-size: 1.05rem;
  color: var(--foreground);
}

/* Nachrichtenliste */
.shoutbox-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shoutbox-item {
  background: rgba(160, 59, 68, 0.13); /* Icy Crimson Metallic transparent */
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--foreground);
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(160, 59, 68, 0.10);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.shoutbox-item strong {
  color: var(--accent);
  font-weight: 700;
  margin-right: 4px;
}

.shoutbox-timestamp {
  font-size: 0.85em;
  color: var(--muted);
  margin-left: 8px;
}

.shoutbox-delete {
  color: #ffbaba;
  background: none;
  border: none;
  font-size: 0.95em;
  margin-left: 10px;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
}

.shoutbox-delete:hover,
.shoutbox-delete:focus-visible {
  color: var(--primary-light);
  outline: none;
}

.shoutbox-empty {
  color: var(--muted);
  font-style: italic;
  padding: 20px 0;
  text-align: center;
}

/* Shoutbox Formular */
.shoutbox-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.shoutbox-form textarea {
  border-radius: 8px;
  border: 1.5px solid var(--primary);
  padding: 10px 12px;
  font-size: 1rem;
  background: var(--background);
  color: var(--foreground);
  resize: vertical;
  min-height: 60px;
  transition: border-color var(--transition);
}

.shoutbox-form textarea:focus {
  border-color: var(--accent);
  outline: none;
}

/* Formatierungsbuttons */
.format-buttons {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}

.format-buttons button {
  background: var(--primary);
  color: var(--foreground);
  border: none;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 1.1em;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  font-weight: 700;
}

.format-buttons button:hover,
.format-buttons button:focus-visible {
  background: var(--accent);
  color: var(--primary-dark);
  outline: none;
}

/* Emoji Dropdown Container */
.emoji-dropdown {
  position: relative;
  display: inline-block;
  margin-bottom: 8px;
  user-select: none;
}

/* Toggle Button */
.emoji-toggle {
  background-color: #A03B44; /* Icy Crimson Metallic */
  color: #E6F0F3;            /* Frost White */
  border: none;
  border-radius: 5px;
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-weight: 600;
}

.emoji-toggle:hover,
.emoji-toggle:focus,
.emoji-toggle:focus-visible {
  background-color: #C8D6E5; /* Icy Silver */
  color: #2E2B22;            /* Dark Metallic Brown */
  outline: none;
}

/* Emoji List (Dropdown Inhalt) */
.emoji-list {
  position: absolute;
  top: 110%;
  left: 0;
  background: #2E2B22; /* Dark Metallic Brown */
  border: 1px solid #A03B44; /* Icy Crimson Metallic */
  border-radius: 6px;
  padding: 8px 10px;
  box-shadow: 0 4px 8px rgba(160, 59, 68, 0.5);
  flex-wrap: wrap;
  gap: 6px;
  max-width: 300px;
  z-index: 1000;
  display: none; /* Standardmäßig versteckt */
}

/* Emoji List sichtbar, wenn nicht hidden */
.emoji-list:not([hidden]) {
  display: flex;
}

/* Emoji Items */
.emoji-list span {
  font-size: 22px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 5px;
  transition: background-color 0.2s ease;
  color: #E6F0F3; /* Frost White */
}

.emoji-list span:hover,
.emoji-list span:focus,
.emoji-list span:focus-visible {
  background-color: #A03B44; /* Icy Crimson Metallic */
  outline: none;
}

/* Absenden Button */
.submit-button {
  background: var(--primary);
  color: var(--foreground);
  border: none;
  border-radius: 8px;
  padding: 10px 0;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.submit-button:hover,
.submit-button:focus-visible {
  background: var(--accent);
  color: var(--primary-dark);
  outline: none;
}

/* Hinweis für nicht eingeloggte Nutzer */
#shoutbox .box-content p {
  color: var(--primary-light);
  font-size: 1.05rem;
  text-align: center;
}

/* Heading */
#shoutbox .box-header h2 {
  transform: translateX(4px) translateY(35px);
}

/* List Item */
#shoutbox-messages ul li {
  transform: translateX(-17px) translateY(-3px);
}

/* Responsive Anpassung */
@media (max-width: 600px) {
  #shoutbox {
    max-width: 98vw;
    padding: 16px 8px;
  }
  .shoutbox-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    font-size: 0.98rem;
    padding: 8px 6px;
  }
  .emoji-list {
    min-width: 120px;
    font-size: 1.1em;
  }
}

/* Für Shoutbox Content in .leftSide (optional) */
.leftSide #shoutbox .box-content {
  background-size: contain !important;
  background-repeat: repeat-y !important;
  background-position: center top !important;
}

/* ===========================
   Bild-Slider / Carousel
   =========================== */
#slider {
  max-width: 700px;
  margin: 32px auto;
  background: var(--background-glass);
  border-radius: var(--box-radius);
  box-shadow: var(--shadow);
  color: var(--foreground);
  font-family: var(--font-family);
  padding: 20px 24px;
  border: 2px solid var(--primary);
  text-align: center;
}

#slider > h2 {
  color: var(--primary-light);
  font-weight: 700;
  font-size: 1.6rem;
  margin-bottom: 16px;
  text-shadow:
    0 0 5px rgba(200, 214, 229, 0.7), /* Icy Silver */
    0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Slider Container */
.slider {
  position: relative;
  overflow: hidden; /* Wichtig: verhindert Überlaufen */
  border-radius: var(--box-radius);
  background-color: var(--background);
  box-shadow: 0 4px 16px rgba(160, 59, 68, 0.3); /* Icy Crimson Metallic transparent */
}

/* Slides Wrapper */
.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
  outline: none; /* tabindex=0 for keyboard focus */
  width: 300%; /* Beispiel für 3 Slides, besser per JS setzen */
}

/* Einzelne Slide */
.slide {
  width: 100%; /* Jede Slide nimmt 100% der sichtbaren Breite ein */
  flex-shrink: 0;
  position: relative;
  user-select: none;
}

/* .slide[aria-hidden="true"] { */
  /* display: none; */
/* } */

.slide img {
  width: 50%;
  height: auto;
  border-radius: var(--box-radius) var(--box-radius) 0 0;
  display: block;
}

.description {
  background: rgba(160, 59, 68, 0.7); /* Icy Crimson Metallic transparent */
  color: var(--accent);
  font-weight: 600;
  font-size: 1rem;
  padding: 10px 14px;
  border-radius: 0 0 var(--box-radius) var(--box-radius);
  text-align: center;
  user-select: none;
}

/* Navigation Buttons */
.slider-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 12px;
  pointer-events: none; /* disable clicks on container */
}

.nav-button {
  background: var(--primary);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  color: var(--foreground);
  font-size: 1.8rem;
  cursor: pointer;
  pointer-events: auto; /* enable clicks on buttons */
  box-shadow: 0 4px 12px rgba(160, 59, 68, 0.5);
  transition: background-color var(--transition), color var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.nav-button:hover,
.nav-button:focus-visible {
  background: var(--accent);
  color: var(--primary-dark);
  outline: none;
}

/* Accessibility focus */
.nav-button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* Responsive */
@media (max-width: 600px) {
  #slider {
    max-width: 98vw;
    padding: 16px 12px;
  }
  .nav-button {
    width: 36px;
    height: 36px;
    font-size: 1.4rem;
  }
  .description {
    font-size: 0.9rem;
    padding: 8px 10px;
  }
}

/* ===========================
   Willkommensbox
   =========================== */
.welcome-box {
  max-width: 700px;
  margin: 32px auto;
  background: var(--background-glass);
  border-radius: var(--box-radius);
  box-shadow: var(--shadow);
  color: var(--foreground);
  font-family: var(--font-family);
  padding: 28px 24px;
  text-align: center;
  border: 2px solid var(--primary);
}

.welcome-title {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--primary-light);
  margin-bottom: 12px;
  text-shadow:
    0 0 8px rgba(200, 214, 229, 0.8), /* Icy Silver */
    0 2px 6px rgba(0, 0, 0, 0.7);
}

.welcome-subtitle {
  font-size: 1.3rem;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 20px;
  user-select: none;
}

.welcome-text {
  font-size: 1.1rem;
  line-height: 1.5;
  margin-bottom: 28px;
  color: var(--foreground);
}

.moderator-call {
  background: rgba(160, 59, 68, 0.15); /* Icy Crimson Metallic transparent */
  border-radius: 12px;
  padding: 18px 24px;
  margin-bottom: 28px;
  box-shadow: 0 4px 14px rgba(160, 59, 68, 0.25);
  color: var(--primary-light);
  font-weight: 700;
  user-select: none;
}

.moderator-call p {
  margin: 6px 0;
}

.button3 {
  background: var(--primary);
  color: var(--foreground);
  border: none;
  border-radius: 10px;
  padding: 12px 28px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(160, 59, 68, 0.5);
  transition: background var(--transition), color var(--transition);
  user-select: none;
}

.button3:hover,
.button3:focus-visible {
  background: var(--accent);
  color: var(--primary-dark);
  outline: none;
}

.welcome-footer {
  font-size: 1.05rem;
  color: var(--muted);
  font-style: italic;
  user-select: none;
}

/* Responsive */
@media (max-width: 600px) {
  .welcome-box {
    max-width: 98vw;
    padding: 20px 16px;
  }
  .welcome-title {
    font-size: 2rem;
  }
  .welcome-subtitle {
    font-size: 1.1rem;
  }
  .welcome-text,
  .welcome-footer {
    font-size: 1rem;
  }
  .moderator-call {
    padding: 14px 18px;
  }
  .button3 {
    padding: 10px 22px;
    font-size: 1rem;
  }
}