/* Layout */
.layout {
    width: 100%;
    display: grid;
    grid:
        "header header header" auto
        "leftSide body rightSide" 1fr
        "footer footer footer" auto
        / auto 1fr auto;
    gap: 8px;
}

.header { grid-area: header; }
.leftSide { grid-area: leftSide; }
.body { 
    grid-area: body;
    background: #06050547;
    color: blanchedalmond; 
}
.rightSide { grid-area: rightSide; }
.footer { grid-area: footer; }

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

/* Allgemeine Stile */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-image: url('boxen/background.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center;
}

header {
    background: transparent;
    color: #ffffff;
    padding: 10px 20px;
    text-align: center;
}

/* Navigation mit Sendeplan-Farben */
nav {
    max-width: 900px;       /* Breiter als vorher */
    margin: 0 auto;         /* Zentriert horizontal */
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 10px 0;
    background-color: rgba(74, 54, 14, 0.8);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(199, 130, 44, 0.8);
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

nav li {
    position: relative;
}

nav a {
    color: rgba(199, 130, 44, 0.9); /* hellgold */
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

nav a i {
    font-size: 1.2em;
    color: inherit;
}

nav a:hover,
nav a:focus {
    background-color: rgba(199, 130, 44, 0.7); /* dunkleres Gold beim Hover */
    color: #fff;
    outline: none;
}

nav ul .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(74, 54, 14, 0.9); /* dunkleres Messing für Dropdown */
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(199, 130, 44, 0.8);
    z-index: 1000;
    padding: 10px 0;
    min-width: 200px;
}

nav ul .dropdown li {
    margin: 0;
}

nav ul .dropdown a {
    padding: 10px 15px;
    display: block;
    font-size: 14px;
    color: #f3f4f6;
}

nav ul .dropdown a:hover {
    background-color: rgba(199, 130, 44, 0.7);
    color: #fff;
}

nav li:hover > .dropdown {
    display: block;
}

/* Responsive Navigation */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    nav ul .dropdown {
        position: static;
        display: none;
    }

    nav li:hover > .dropdown {
        display: block;
    }

    nav a {
        justify-content: center;
        padding: 10px;
    }
}

/* Profil-Box: flexibles Layout innerhalb der bestehenden .box-content */
.box-content.profile-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 15px;
  justify-content: center; /* zentriert horizontal */
  flex-wrap: wrap; /* bei kleinen Bildschirmen umbrechen */
  min-height: 100px; /* gleiche Mindesthöhe wie andere Boxen */
  text-align: left; /* Text linksbündig */
  color: #f3f4f6;
  font-family: Arial, sans-serif;
}

.box-content.profile-box .avatar {
  border-radius: 50%;
  border: 2px solid #c7822c;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  object-fit: cover;
}

.box-content.profile-box .profile-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 150px;
}

.box-content.profile-box .profile-info span {
  font-weight: 600;
  font-size: 1rem;
  color: #f3d27a;
  margin-bottom: 6px;
}

.box-content.profile-box .profile-links a {
  margin-right: 12px;
  color: #c7822c;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.box-content.profile-box .profile-links a:hover,
.box-content.profile-box .profile-links a:focus {
  color: #f3d27a;
  text-decoration: underline;
}

/* Responsive Anpassung für kleine Bildschirme */
@media (max-width: 480px) {
  .box-content.profile-box {
    flex-direction: column;
    align-items: center;
    min-height: auto;
    text-align: center;
  }
  .box-content.profile-box .profile-info {
    min-width: auto;
  }
  .box-content.profile-box .profile-links a {
    margin: 0 8px 8px 8px;
  }
}

/* Profil-Links */
.profile-links a {
    text-decoration: none;
    color: #fff;
}

.profile-links a:hover {
    color: #007BFF;
}

.profile-links a:visited {
    color: #ed0808;
}

/* Boxen */
.box {
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    color: #f3f4f6;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.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: #f3d27a;
    font-weight: 700;
    text-shadow:
      0 0 5px rgba(243, 210, 122, 0.7),
      0 2px 4px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.box-content {
    background-image: url('boxen/Lbm.png');
    background-repeat: no-repeat;
    background-size: cover;
    width: 260px;
    color: #fdfdfd;
    background-color: #1a1a1a;
    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: Arial, sans-serif;
}

.box-content a {
    color: #c7822c;
    text-decoration: underline;
}

.box-content a:hover {
    color: #f3d27a;
}

.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: #f3d27a;
    font-weight: 700;
    text-shadow:
      0 0 5px rgba(243, 210, 122, 0.7),
      0 2px 4px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.box:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.box h2 {
    margin-top: 0;
    color: #f3d27a;
    font-weight: 700;
    text-shadow:
      0 0 5px rgba(243, 210, 122, 0.7),
      0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Überschriften in Sidebars */
.leftSide .box h2,
.rightSide .box h2 {
    transform: translateX(-7px) translateY(65px);
    margin-bottom: 0;
}

/* Vorschau Sendeplan (#box3) */
#box3 {
  max-width: 700px;
  margin: 20px auto;
  padding: 15px 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: rgba(74, 54, 14, 0.6); /* halbtransparentes Messing-Braun */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(199, 130, 44, 0.8); /* hellgoldener Schein */
  color: #f3f4f6;
  text-align: center;
}

#box3 h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: white;
  font-weight: 700;
}

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

#box3 li {
  display: flex;
  align-items: center;
  background: rgba(199, 130, 44, 0.15); /* hellgold halbtransparent */
  border-radius: 8px;
  margin-bottom: 8px;
  padding: 6px 10px;
  color: #f3f4f6;
  font-size: 0.95rem;
  box-shadow: 0 2px 6px rgba(199, 130, 44, 0.12);
  transition: background 0.2s;
}

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

#box3 li img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 6px;
  border: 1.5px solid rgba(199, 130, 44, 0.6);
  background: #fff;
}

#box3 a {
  display: inline-block;
  margin-top: 8px;
  color: rgba(199, 130, 44, 0.9); /* hellgold */
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: underline;
  border-radius: 6px;
  transition: color 0.2s;
  cursor: pointer;
  padding: 2px 6px;
}

#box3 a:hover {
  color: #fff;
  background: rgba(199, 130, 44, 0.7);
  text-decoration: none;
}

/* Benutzerliste */
.user-list {
    max-height: 150px;
    overflow-y: auto;
    padding: 0;
    margin: 0 auto;
    width: 89%;
    box-sizing: border-box;
    list-style: none;
}

.user-list li {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    width: 100%;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-list img.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
}

.username {
    font-weight: bold;
    color: antiquewhite;
    flex-grow: 1;
    text-overflow: ellipsis;
}

.user-list li .username:hover::after {
    content: attr(title);
    position: absolute;
    background: #fff;
    border: 1px solid #ccc;
    padding: 5px;
    z-index: 10;
    white-space: nowrap;
}

.online-status {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-left: 10px;
    flex-shrink: 0;
}

.online {
    background-color: green;
}

.offline {
    background-color: gray;
}

.last-online {
    margin-left: 10px;
    font-size: 0.8em;
    color: #ccc;
    white-space: nowrap;
}

/* Shoutbox */
#shoutbox {
    margin-top: 20px;
}

#shoutbox h2 {
    margin: 0 0 10px;
}

#shoutbox-messages {
    transform: scale(0.89);
}

#shoutbox-messages ul {
    list-style: none;
    padding: 0;
}

#shoutbox-messages li {
    margin: 10px 0;
    padding: 10px;
    background: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 50px;
    color: black;
    font-size: 13px;
}

#shoutbox form {
    margin-top: 10px;
}

#shoutbox textarea {
    width: 185px;
    height: 13px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#shoutbox button {
    margin-top: 10px;
    padding: 10px 15px;
    background-color: #35424a;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#shoutbox .box-content {
    background-size: 100% 100%;
}

#shoutbox button:hover {
    background-color: #007BFF;
}

/* Span Tag */
#events ul span {
    font-weight: 300;
    display: flex;
    padding-right: 42px;
}

#welcome-box {
    max-width: 700px;
    margin: 20px auto;
    padding: 20px 25px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #f3f4f6;
    background: rgba(74, 54, 14, 0.6);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(199, 130, 44, 0.8);
    line-height: 1.4;
    text-align: center;
}

#welcome-box h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: white;
    text-align: center;
}

.welcome-subtitle {
    font-size: 1.1rem;
    font-style: italic;
    text-align: center;
    margin-bottom: 15px;
    color: rgba(199, 130, 44, 0.8);
}

#welcome-box p {
    font-size: 1rem;
    margin: 8px 0;
    text-align: center;
    color: #f3f4f6;
}

.moderator-call {
    margin: 20px 0;
    text-align: center;
}

.moderator-call p {
    margin: 6px 0;
    font-weight: 600;
    color: rgba(199, 130, 44, 0.8);
}

.button3 {
    background-color: rgba(199, 130, 44, 0.8);
    color: #1a1a1a;
    border: none;
    padding: 10px 22px;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.button3:hover {
    background-color: rgba(199, 130, 44, 1);
    color: #fff;
}

.welcome-footer {
    font-size: 0.95rem;
    margin-top: 15px;
    font-weight: 500;
    color: rgba(199, 130, 44, 0.8);
    text-align: center;
}

/* List Item */
.layout .rightSide .box .box-content li {
    width: 79% !important;
}

/* List Item */
.rightSide .box li {
    text-align: center;
}

/* User list */
.rightSide .box {
    margin-bottom: 0px;
    margin-top: 2px;
}

/* Box content */
#radio-player .box-content {
    background-size: contain;
    background-repeat: repeat-y;
    color: rgb(253, 253, 253);
}

/* Music player */
#musicPlayer {
    left: 32px !important;
    height: 700px;
}

/* Tagline */
.tagline {
    font-family: 'Segoe UI Variable', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 700;
    font-optical-sizing: auto;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    line-height: 1.2;
    color: #f3d27a;
    text-align: center;
    margin: 2rem auto;
    max-width: 600px;
    user-select: none;
    position: relative;
    letter-spacing: 0.05em;
    text-shadow:
        0 0 5px rgba(243, 210, 122, 0.7),
        0 2px 4px rgba(0, 0, 0, 0.3);
    background: linear-gradient(90deg, #f3d27a 0%, #c7822c 50%, #f3d27a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s infinite linear;
}

.tagline p:nth-child(2) {
    font-weight: 500;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: #d9b94a;
    margin-top: 0.3rem;
    letter-spacing: 0.1em;
    text-shadow: none;
    background: none;
    -webkit-text-fill-color: initial;
}

@keyframes shine {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.tagline:hover {
    animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
    0% {
        text-shadow:
            0 0 5px rgba(243, 210, 122, 0.7),
            0 2px 4px rgba(0, 0, 0, 0.3);
    }
    100% {
        text-shadow:
            0 0 15px rgba(243, 210, 122, 1),
            0 4px 8px rgba(0, 0, 0, 0.5);
    }
}

/* Responsive Anpassung für kleine Bildschirme */
@media (max-width: 480px) {
    .tagline {
        font-size: 1.8rem;
        max-width: 90%;
    }
    .tagline p:nth-child(2) {
        font-size: 1rem;
    }
}