/* --- Google Fonts --- */
/* font-family: 'Cinzel', serif; */
/* font-family: 'Roboto', sans-serif; */

/* --- General Styling & Dark Theme --- */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    background-color: #121212; /* Dark background */
    color: #e0e0e0; /* Light text */
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1, h2 {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

main {
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
    animation-delay: 0.5s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}


/* --- Cinematic Header (KOMPAKTER) --- */
header {
    position: relative;
    height: 30vh; /* Geändert von 40vh */
    min-height: 250px; /* Geändert von 300px */
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.header-content {
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header h1 {
    font-size: 3.5rem;
    margin: 0;
}

.button {
    display: inline-block;
    background-color: #e53935;
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 25px;
    font-weight: 500;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.button:hover {
    background-color: #c62828;
    transform: scale(1.05);
}

/* --- Language Switcher --- */
.language-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

#lang-switcher-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    font-family: 'Roboto', sans-serif;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#lang-switcher-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

#lang-switcher-button svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

#lang-switcher-button[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.lang-switcher-dropdown {
    display: none;
    position: absolute;
    top: 110%;
    right: 0;
    background-color: rgba(23, 23, 23, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px;
    flex-direction: column;
    gap: 4px;
    max-height: 70vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
}

.lang-switcher-dropdown.open, .lang-switcher-dropdown.show {
    display: flex;
}

.lang-switcher-dropdown a {
    color: #fff;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 5px;
    white-space: nowrap;
    transition: background-color 0.2s ease;
    text-align: left;
}

.lang-switcher-dropdown a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.lang-switcher-dropdown a.active {
    background-color: #e53935;
    font-weight: bold;
    cursor: default;
}

/* --- Radio Player Section (KOMPAKTER) --- */
.radio-player-section {
    padding: 40px 0; /* Geändert von 60px */
    background-color: #1a1a1a;
}

.radio-player-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 30px; /* Geändert von 40px */
}

.player-card {
    max-width: 384px;
    margin: 0 auto;
    background: rgba(23, 23, 23, 0.7);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    border-radius: 1rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.album-art-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #333;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
}

.album-art-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.track-info-container {
    text-align: center;
    min-height: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.25rem 0;
}

.track-info-container h3 {
    font-size: 1.125rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Roboto', sans-serif;
    color: #fff;
    line-height: 1.4;
    white-space: nowrap;
}

.track-info-container p {
    font-size: 0.875rem;
    color: #a0a0a0;
    margin: 0;
}

.controls-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.control-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 9999px;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    color: #fff;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.control-btn.play-btn {
    background-color: #1DB954;
    padding: 1rem;
}

.control-btn.play-btn:hover {
    background-color: #1ED760;
}

.control-btn svg {
    display: block;
}

.control-btn .hidden {
    display: none;
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1rem;
    color: #a0a0a0;
}

input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
    cursor: pointer;
}
input[type=range]:focus {
    outline: none;
}
input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: #ffffff;
    margin-top: -6px;
    box-shadow: 0 0 4px rgba(0,0,0,0.5);
}

/* --- EchoBot Chat Section (NEU) --- */
#chat-messages {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 15px;
    background: rgba(23, 23, 23, 0.7); /* Passt zu deiner player-card */
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    height: 350px;
    overflow-y: auto;
    margin-top: 20px;
}

/* Scrollbar für den Chat verschönern */
#chat-messages::-webkit-scrollbar {
    width: 6px;
}
#chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

/* Die Nachrichten-Blasen */
.message {
    max-width: 85%;
    padding: 10px 16px;
    border-radius: 1.2rem;
    font-size: 0.95rem;
    line-height: 1.5;
    word-wrap: break-word;
    position: relative;
}

/* Hörer-Nachricht (Rechts & Pixel-Echo Rot) */
.user-msg {
    align-self: flex-end;
    background-color: #e53935; /* Dein Haupt-Rotton */
    color: #fff;
    border-bottom-right-radius: 4px;
}

/* EchoBot-Nachricht (Links & Dunkelgrau) */
.bot-msg {
    align-self: flex-start;
    background-color: #333;
    color: #e0e0e0;
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Schreib-Animation (Drei blinkende Punkte) --- */
.typing {
    display: flex;
    gap: 5px;
    padding: 12px 16px;
    align-items: center;
}

.typing span {
    width: 6px;
    height: 6px;
    background: #aaa;
    border-radius: 50%;
    animation: echoBlink 1.4s infinite both;
}

.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes echoBlink {
    0%, 80%, 100% { opacity: 0.2; transform: scale(0.8); }
    40% { opacity: 1; transform: scale(1.1); }
}

/* --- Videos Section (KOMPAKTER) --- */
.videos {
    padding: 40px 0; /* Geändert von 60px */
}

.videos h2 {
    margin-bottom: 30px; /* Geändert von 40px */
    text-align: center;
    font-size: 2.5rem;
}

.playlist-container {
    margin-bottom: 80px;
    text-align: center;
}

.playlist-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.playlist-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --- Dynamic Video Grid (KOMPAKTER) --- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px; /* Geändert von 30px */
    position: relative;
    min-height: 200px;
}

.video-item {
    background-color: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.video-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(229, 57, 53, 0.4);
}

.video-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.thumbnail-container {
    position: relative;
    padding-top: 56.25%; 
    background-color: #000;
    overflow: hidden;
}

.video-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover; 
    transition: transform 0.4s ease;
}

.video-info {
    padding: 20px;
}

.video-info h3 {
    margin: 0;
    font-size: 1.1em;
    line-height: 1.4;
    font-family: 'Roboto', sans-serif;
}

/* --- CSS Loading Spinner --- */
.video-grid.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    margin-top: -25px;
    margin-left: -25px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-top-color: #e53935;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* --- Enhanced Footer (KOMPAKTER) --- */
footer {
    background-color: #1e1e1e;
    color: #aaa;
    text-align: center;
    padding: 20px 0; /* Geändert von 30px */
    font-size: 0.9em;
    margin-top: 30px; /* Geändert von 40px */
    border-top: 1px solid #333;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.contact-info h4 {
    font-family: 'Cinzel', serif;
    margin: 0 0 10px 0;
    font-size: 1.2em;
    color: #fff;
    font-weight: 700;
}

.contact-info a {
    color: #e53935;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #fff;
}

.social-links a {
    color: #aaa;
    transition: color 0.3s ease;
    margin: 0 10px;
}

.social-links a:hover {
    color: #e53935;
}

.social-links svg {
    width: 28px;
    height: 28px;
}

.copyright p {
    margin: 0;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.5rem;
    }
    .player-card {
        padding: 1.5rem;
    }
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    .contact-info { order: 2; }
    .social-links { order: 1; }
    .copyright { order: 3; }
}

/* --- Privacy Page Styles --- */
.privacy-header {
    height: 30vh;
    min-height: 250px;
}

.privacy-content {
    max-width: 800px;
    padding-top: 40px;
    padding-bottom: 40px;
}

.privacy-section {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

.privacy-section:last-child {
    border-bottom: none;
}

.privacy-content h2 {
    font-size: 2rem;
    color: #e53935;
    margin-bottom: 15px;
}

.privacy-content p {
    line-height: 1.8;
    font-size: 1.1em;
    color: #ccc;
}

.privacy-content p.lead {
    font-size: 1.2em;
    font-style: italic;
    color: #fff;
}

/* --- Footer Privacy Link --- */
.footer-privacy-link-container {
    text-align: center;
    margin-top: 20px;
}

.footer-privacy-link {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-privacy-link:hover {
    color: #fff;
}
