/* =================================== */
/* KOMPLETTE style.css (Version 4.22)  */
/* (KORRIGIERTE BILD-PFADE)            */
/* =================================== */

/* Globales Styling */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #e8e8e8;
    line-height: 1.6;
    margin: 0;
    padding: 0;

    /* --- DEIN HINTERGRUND (KORRIGIERTER PFAD) --- */
    background-image: url('images/header_bg.png');
    background-size: cover; 
    background-position: center center; 
    background-repeat: no-repeat; 
    background-attachment: fixed; 
    background-color: #373b49; /* Fallback-Farbe */
}

/* Container */
.container {
    max-width: none;
    margin: 0;
    background-color: transparent; 
    border-radius: 0;
    box-shadow: none;
    border: none;
    overflow: hidden; 
}

/* Header-Styling */
header {
    background-color: transparent; 
    padding: 25px 30px;
    color: #ffffff;
    border-bottom: 2px solid #995bac; 
    position: relative;
    overflow: hidden;
    text-align: center; 
}
header h1 {
    margin: 0 0 10px 0;
    font-size: 2.5em;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.6), 
                 0 0 20px rgba(153, 91, 172, 0.6); 
    color: #ffffff;
    position: relative; 
    z-index: 2; 
}
.header-logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 15px;
    border-radius: 50%;
    filter: drop-shadow(0 0 10px #995bac) drop-shadow(0 0 6px #00FFFF); 
    position: relative; 
    z-index: 2; 
}

/* Login/Registrieren-Links über der Navi */
.user-actions {
    text-align: right;
    margin-bottom: 10px;
    padding: 0 10px;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto 10px auto; 
    padding-right: 30px;
}
.user-actions a.user-link,
.user-actions span.user-link { /* Gilt jetzt auch für den "Willkommen"-Text */
    color: #e6d6ea; 
    text-decoration: none;
    font-weight: bold;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    transition: color 0.3s ease;
}
.user-actions a.user-link:hover {
    color: #fff;
    text-decoration: underline;
}
.user-actions span {
    color: #995bac; 
    margin: 0 5px;
}

/* Navigation */
.main-nav {
    width: 100%;
    margin-top: 15px; 
    background-color: rgba(153, 91, 172, 0.25); 
    border-radius: 8px;
    border-top: 1px solid rgba(153, 91, 172, 0.6); 
    border-bottom: 1px solid rgba(153, 91, 172, 0.6); 
    position: relative; 
    z-index: 2; 
}
.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.main-nav a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #e6d6ea; 
    font-weight: bold;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}
.main-nav a:hover {
    background-color: rgba(153, 91, 172, 0.5); 
    color: #fff;
    border-bottom-color: #995bac; 
}
.main-nav a.active {
    color: #00FFFF; /* Cyan */
    border-bottom-color: #00FFFF;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.7); 
}

/* Hauptinhaltsbereich */
main {
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 30px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}
main h2 {
    font-size: 2em;
    color: #FFFFFF; 
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.6), 
                 0 0 20px rgba(153, 91, 172, 0.6);
    background-color: rgba(153, 91, 172, 0.25); 
    border: 1px solid rgba(153, 91, 172, 0.6); 
    border-radius: 8px; 
    padding: 10px 15px; 
    margin-top: 0;
    margin-bottom: 25px; 
    display: inline-block; 
    border-bottom: none; 
}
main p {
    font-size: 1.1em;
    line-height: 1.7;
}
main a {
    color: #00FFFF;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5); 
}
main ul {
    line-height: 1.8;
}

/* Home-Magazin-Layout (Sidebar) */
.home-split-layout {
    display: grid;
    grid-template-columns: 2fr 1fr; 
    gap: 30px;
}
.home-main-content { }
.home-sidebar { }

.sidebar-widget {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(153, 91, 172, 0.3); 
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px; 
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4); 
}
.sidebar-widget:last-child {
    margin-bottom: 0;
}
.home-sidebar h2 {
    font-size: 1.6em;
    padding: 8px 12px;
    margin-bottom: 20px; 
}
.home-sidebar .stream-list li,
.home-sidebar .media-item {
    text-shadow: none;
}
.home-sidebar .stream-list li.online .stream-details,
.home-sidebar .media-info p {
    font-size: 0.85em;
}
.home-sidebar .media-info h4 {
    font-size: 0.95em;
}
.home-sidebar .media-thumbnail img {
    width: 120px; 
    height: 67px; 
}
.home-sidebar .media-item {
    gap: 10px; 
}
.home-sidebar .media-info {
    padding: 5px 10px; 
}

@media (max-width: 960px) {
    .home-split-layout {
        grid-template-columns: 1fr; 
    }
    .home-sidebar {
        margin-top: 30px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .sidebar-widget {
        margin-bottom: 0; 
    }
}
@media (max-width: 600px) {
    .home-sidebar {
        grid-template-columns: 1fr; 
        gap: 30px;
        margin-top: 30px;
    }
    .sidebar-widget {
        margin-bottom: 0;
    }
}

/* YouTube Video (Responsive) */
.video-container {
    position: relative;
    padding-bottom: 56.25%; 
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    border: 2px solid #995bac; 
    box-shadow: 0 0 20px rgba(153, 91, 172, 0.5); 
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Twitch VOD/Clip Liste */
.media-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 20px;
}
.media-item {
    display: flex;
    background-color: rgba(0, 0, 0, 0.4); 
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(153, 91, 172, 0.5); 
    transition: all 0.3s ease;
    text-decoration: none; 
    color: #e8e8e8; 
}
.media-item:hover {
    transform: translateY(-2px);
    border-color: #995bac;
    box-shadow: 0 0 15px rgba(153, 91, 172, 0.5); 
}
.media-thumbnail {
    flex-shrink: 0;
}
.media-thumbnail img {
    width: 160px; 
    height: 90px; 
    object-fit: cover;
    display: block;
}
.media-info {
    padding: 10px 15px;
    flex-grow: 1;
}
.media-info h4 {
    margin: 0 0 5px 0;
    font-size: 1em;
    color: #FFFFFF; 
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.media-info p {
    margin: 0;
    font-size: 0.85em;
    color: #c0c0c0; 
    text-shadow: none;
}

/* Twitch Live-Status Liste */
.stream-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 300px; 
    overflow-y: auto; 
}
.stream-list li {
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    border-left: 6px solid;
    background-color: rgba(0, 0, 0, 0.35); 
    border: 1px solid rgba(153, 91, 172, 0.3); 
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4); 
    transition: all 0.3s ease-in-out;
}
.stream-list li:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3),
                0 0 10px rgba(153, 91, 172, 0.4); 
    border-color: rgba(153, 91, 172, 0.7);
}
.stream-list li.online {
    background-color: rgba(0, 255, 255, 0.35); /* Cyan */
    border-color: #00FFFF;
    color: #e0ffff;
    text-shadow: 0 0 6px rgba(0, 255, 255, 0.6); 
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4); 
}
.stream-list li.online strong {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
}
.stream-list li.online .stream-details {
    font-size: 0.9em;
    color: #b3f0ff;
    margin-top: 5px;
    line-height: 1.4;
}
.stream-list li.offline {
    background-color: rgba(153, 91, 172, 0.3); /* #995bac */
    border-color: #995bac; 
    color: #e6d6ea; 
    text-shadow: 0 0 6px rgba(153, 91, 172, 0.6); 
    box-shadow: 0 0 15px rgba(153, 91, 172, 0.5); 
}
.stream-list a {
    color: #00FFFF;
    text-decoration: none;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.7); 
    transition: color 0.3s ease;
}
.stream-list a:hover {
    color: #ffffff;
    text-decoration: underline;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.9);
}
.error-message {
    color: #ffaaaa;
    background-color: #550000;
    border: 1px solid #ff8888; 
    padding: 15px;
    border-radius: 8px;
    font-weight: bold;
    text-shadow: 0 0 6px rgba(255, 136, 136, 0.7);
}

/* Footer-Styling */
footer {
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
    color: #995bac; 
    background-color: transparent;
    border-top: 2px solid #995bac; 
    text-shadow: 0 0 8px rgba(153, 91, 172, 0.7); 
}

/* Teiler zwischen den Reihen (Home) */
.section-divider {
    border: 0;
    height: 2px;
    background: #995bac;
    box-shadow: 0 0 15px rgba(153, 91, 172, 0.5);
    margin: 40px auto;
    width: 80%;
}
.home-sidebar .section-divider {
    width: 100%;
    margin: 30px auto;
}

/* "Weiterlesen"-Links (Home) */
.read-more-link {
    display: inline-block;
    padding: 8px 15px;
    background-color: rgba(153, 91, 172, 0.4);
    border: 1px solid #995bac;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    color: #e6d6ea !important; 
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}
.read-more-link:hover {
    background-color: rgba(153, 91, 172, 0.7);
    color: #fff !important;
    box-shadow: 0 0 10px rgba(153, 91, 172, 0.7);
    text-decoration: none;
}

/* Streamplan-Tabelle */
.table-container {
    width: 100%;
    overflow-x: auto; 
    margin-top: 30px;
    -webkit-overflow-scrolling: touch; 
    border: 1px solid #995bac; 
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.2);
}
.stream-table {
    width: 100%;
    border-collapse: collapse; 
    min-width: 700px; 
    text-shadow: none; 
}
.stream-table th, 
.stream-table td {
    padding: 15px;
    border: 1px solid #995bac; 
    text-align: left;
    vertical-align: top;
}
.stream-table thead {
    background-color: rgba(153, 91, 172, 0.25); 
}
.stream-table th {
    font-size: 1.2em;
    color: #fff;
    text-align: center;
    text-shadow: 0 0 5px #995bac;
}
.stream-table td {
    background-color: rgba(0, 0, 0, 0.3);
    height: 120px;
    font-size: 0.9em;
    line-height: 1.5;
}
.stream-table td strong {
    color: #00FFFF; 
    font-size: 1.1em;
}
.stream-table td.day-off {
    background-color: rgba(0, 0, 0, 0.5);
    color: #aaa;
    font-style: italic;
    text-align: center;
    vertical-align: middle;
}

/* Login/Forum-Stile */
.form-container {
    max-width: 500px;
    margin: 30px auto;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid #995bac;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 0 15px rgba(153, 91, 172, 0.5);
}
.form-group {
    margin-bottom: 20px;
    text-shadow: none;
}
.form-group label {
    display: block;
    font-weight: bold;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 0 0 5px #995bac;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px;
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid #995bac;
    border-radius: 6px;
    color: #fff;
    font-size: 1em;
    box-sizing: border-box; 
}
.form-group input:focus {
    outline: none;
    border-color: #00FFFF; 
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}
.form-button {
    width: 100%;
    padding: 12px;
    background-color: #00FFFF; 
    border: none;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: bold;
    color: #111; 
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: none;
}
.form-button:hover {
    background-color: #fff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.7);
}
.form-button:disabled,
.new-topic-button.disabled { /* Gilt auch für den Forum-Button */
    background-color: #555;
    color: #999;
    cursor: not-allowed;
    opacity: 0.7;
    border-color: #555;
}
.new-topic-button.disabled:hover {
    box-shadow: none;
    color: #999 !important;
}

/* Home-Streamplan-Snippet */
.plan-snippet-live,
.plan-snippet-off {
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    text-shadow: none;
}
.plan-snippet-live {
    background-color: rgba(0, 255, 255, 0.3); /* Cyan */
    border: 1px solid #00FFFF;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}
.plan-snippet-live strong {
    display: block;
    font-size: 1.4em;
    color: #fff;
    text-shadow: 0 0 8px #fff;
}
.plan-snippet-live span {
    display: block;
    font-size: 1.1em;
    color: #e0ffff;
}
.plan-snippet-off {
    background-color: rgba(153, 91, 172, 0.3); /* Lila */
    border: 1px solid #995bac;
    box-shadow: 0 0 15px rgba(153, 91, 172, 0.5);
}
.plan-snippet-off span {
    display: block;
    font-size: 1.2em;
    color: #e6d6ea;
    font-style: italic;
}

/* Forum-Tabellen-Stile */
.forum-actions {
    text-align: right;
    margin-bottom: 20px;
}
.new-topic-button {
    display: inline-block;
    padding: 8px 15px;
    background-color: rgba(0, 255, 255, 0.3); /* Cyan */
    border: 1px solid #00FFFF;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    color: #e0ffff !important; 
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}
.new-topic-button:hover {
    background-color: rgba(0, 255, 255, 0.5);
    color: #fff !important;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.7);
    text-decoration: none;
}

.forum-table {
    width: 100%;
    border-collapse: separate; /* Erlaubt border-radius auf der Tabelle */
    border-spacing: 0;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid #995bac;
    border-radius: 8px;
    overflow: hidden; /* Stellt sicher, dass die Ecken rund bleiben */
    text-shadow: none;
}
.forum-table th {
    background-color: rgba(153, 91, 172, 0.25); /* #995bac */
    padding: 15px;
    text-align: left;
    font-size: 1.1em;
    color: #fff;
    text-shadow: 0 0 5px #995bac;
    border-bottom: 2px solid #995bac;
}
.forum-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(153, 91, 172, 0.4); /* #995bac */
    vertical-align: middle;
}
.forum-table tbody tr:last-child td {
    border-bottom: none;
}
.forum-table .forum-icon {
    float: left;
    margin-right: 15px;
}
.forum-table .forum-icon img {
    width: 40px; 
    height: 40px;
    filter: invert(1) opacity(0.8); 
}
.forum-name-col {
    width: 55%;
}
.forum-info {
    overflow: hidden; /* Für den Float-Fix */
}
.forum-title {
    font-size: 1.2em;
    font-weight: bold;
    color: #fff !important; 
    text-decoration: none;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}
.forum-title:hover {
    text-decoration: underline;
    color: #00FFFF !important; /* Cyan beim Hovern */
}
.forum-description {
    font-size: 0.9em;
    color: #ccc;
    margin: 5px 0 0 0;
    text-shadow: none;
}
.forum-stats-col {
    width: 10%;
    text-align: center;
}
.forum-stats {
    text-align: center;
    font-size: 1.1em;
    font-weight: bold;
    color: #fff;
}
.forum-lastpost-col {
    width: 25%;
}
.forum-lastpost {
    font-size: 0.9em;
    line-height: 1.4;
}
.forum-lastpost a {
    font-weight: bold;
}
.post-time {
    color: #ccc;
    font-style: italic;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .forum-stats-col,
    .forum-stats,
    .forum-lastpost-col {
        display: none;
    }
    .forum-name-col {
        width: 100%;
    }
}