/* General Styles */
:root {
    --color-olive: #808000;
    --color-sand: #F4A460;
    --color-dark-gray: #36454F;
    --color-accent: #4682B4; /* SteelBlue */
    --font-sans-serif: 'Arial', sans-serif;
}

body {
    font-family: var(--font-sans-serif);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f8f8f8;
    color: var(--color-dark-gray);
    line-height: 1.6;
}

/* Header */
header {
    background-color: #fff;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.logo {
    max-width: 300px;
    margin-bottom: 1rem;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-dark-gray);
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-accent);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: var(--color-dark-gray);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Hero Section */

/* Contenedor principal del Hero */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh; /* Altura controlada */
    padding: 3rem;    /* Padding simétrico */
    background-image: url('assets/img/textura-musical.jpg');
    background-size: cover;
    background-position: center center; /* La imagen se moverá con el scroll, pero estará centrada */
    color: #fff;
    overflow: hidden;
}

/* Superposición de color para mejorar contraste y dar atmósfera */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7); /* Tono oscuro (azul-grisáceo). Ajusta la opacidad (0.7) si es necesario */
    z-index: 1;
}

/* Contenido del Hero (texto e imagen) */
.hero-content, .hero-image {
    position: relative; /* Se posiciona por encima de la superposición */
    z-index: 2;
}

.hero-content {
    max-width: 750px;
    text-align: center;
    margin-right: 2rem; /* Espacio entre el texto y la imagen */
}

/* --- Estilos de Texto Mejorados --- */
.hero h1 {
    font-size: 3.5rem; /* Más grande e impactante */
    font-weight: 700; /* Más grueso */
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); /* Sombra para legibilidad */
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85); /* Ligeramente transparente */
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.hero .subtitle-small {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
}

.hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
}

/* Botón CTA rediseñado */
.cta-button {
    background-color: var(--color-accent);
    color: #fff;
    padding: 1rem 2.5rem;
    border: 2px solid transparent;
    border-radius: 50px; /* Más redondeado y moderno */
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase; /* Mayúsculas para más impacto */
    letter-spacing: 1px;
}

.cta-button:hover {
    background-color: transparent;
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-3px);
}

/* Imagen del artista */
.hero-image {
    max-width: 350px;
    flex-shrink: 0;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 50%; /* ¡Forma circular para un estilo más elegante y centrado en el artista! */
    border: 5px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
}

/* --- Animaciones de Entrada --- */
/* Estado inicial (antes de la animación) */
.hero h1, .hero h2, .hero p, .hero .cta-button, .hero .hero-image {
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInDown 0.8s ease-out forwards;
}

/* Tiempos de aparición escalonados */
.hero h1 { animation-delay: 0.2s; }
.hero h2 { animation-delay: 0.4s; }
.hero p { animation-delay: 0.6s; }
.hero .cta-button { animation-delay: 0.8s; }
.hero .hero-image { animation-delay: 0.5s; } /* La imagen aparece con el texto */

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Diseño Responsivo para el Hero --- */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }
    .hero-content {
        margin-right: 0;
        margin-bottom: 3rem;
    }
    .hero h1 { font-size: 2.8rem; }
    .hero h2 { font-size: 1.3rem; }
}

@media (max-width: 480px) {
    .hero { padding: 4rem 1rem; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
    .hero-image { max-width: 250px; }
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--color-olive);
    margin-bottom: 3rem;
    position: relative;
}

/* Estilo para el texto más pequeño dentro del H2 */
.subtitle-small {
    font-size: 0.9em; /* Reduce el tamaño de la fuente al 75% del tamaño del h2 */
    font-weight: normal; /* Opcional: hace que el texto no sea tan grueso */
    
}

section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
    margin: 10px auto 0;
}

/* Vita Section */
.vita p {
    text-align: justify;
    margin-bottom: 1.5rem;
}

/* Contenedor principal de la galería */
.film-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* Columnas responsivas */
    gap: 2.5rem; /* Espacio entre las tarjetas */
}

/* La tarjeta completa de la película */
.film-item {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden; /* Importante para que la imagen no se salga de los bordes redondeados */
    display: flex;
    flex-direction: column; /* Apila la imagen y los detalles verticalmente */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Efecto "impactante" al pasar el ratón */
.film-item:hover {
    transform: translateY(-10px); /* La tarjeta se eleva un poco */
    box-shadow: 0 8px 25px rgba(0,0,0,0.15); /* La sombra se hace más pronunciada */
}

/* Contenedor del póster */
.film-poster {
    width: 100%;
    /* Mantiene la proporción de un póster (aprox 2:3) */
    padding-top: 148.14%; 
    position: relative;
    background-color: #e0e0e0; /* Color de fondo mientras carga la imagen */
}

.film-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la imagen cubra todo el espacio sin deformarse */
    position: absolute;
    top: 0;
    left: 0;
}

/* Contenedor para los detalles de texto */
.film-details {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Permite que este contenedor crezca y empuje el link hacia abajo */
}

/* Título (Año y Nombre) */
.film-item h3 {
    font-size: 1.2rem; /* Ajustamos el tamaño para el nuevo diseño */
    color: var(--color-olive);
    margin: 0 0 0.25rem 0; /* Limpiamos márgenes */
}

/* Tipo de película (Kino-Doku, etc.) */
.film-item .film-type {
    font-size: 0.9rem;
    font-weight: normal;
    color: #666;
}

/* Director */
.film-item .film-director {
    font-size: 0.95rem;
    color: var(--color-dark-gray);
    margin: 0;
    font-style: italic;
    flex-grow: 1; /* Empuja el link hacia el final de la tarjeta */
    padding-bottom: 1rem; /* Espacio sobre el botón */
}

/* Enlace "Mehr erfahren" */
.film-item .film-link {
    display: inline-block;
    background-color: var(--color-accent);
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
    text-align: center; /* Centramos el texto del botón */
    margin-top: auto; /* Se pega al final si el director no ocupa espacio */
}

.film-item .film-link:hover {
    background-color: #3a6b9a;
    color: #fff;
}

/* Werbung Section */
/* Galería principal de videos */
.werbung-video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem; /* Espacio entre la galería y la lista de enlaces */
}

/* Tarjeta individual para cada video post */
.video-post {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-post:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Contenedor del video para hacerlo responsivo */
.video-wrapper {
    position: relative;
    padding-top: 56.25%; /* Proporción 16:9 para videos */
    height: 0;
    background-color: #000;
}

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Información debajo del video */
.video-info {
    padding: 1.5rem;
}

.video-info h3 {
    font-size: 1.4rem;
    color: var(--color-olive);
    margin: 0 0 0.5rem 0;
}

.video-info p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Contenedor de la lista de enlaces */
.werbung-links-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #f8f9fa; /* Un fondo ligeramente diferente */
    border-radius: 10px;
    text-align: center;
}

.werbung-links-container h4 {
    font-size: 1.8rem;
    color: var(--color-dark-gray);
    margin: 0 0 1.5rem 0;
}

/* Lista de enlaces */
.werbung-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.werbung-link-list li {
    margin-bottom: 1rem;
}

.werbung-link-list a {
    text-decoration: none;
    color: var(--color-accent);
    font-size: 1.1rem;
    font-weight: bold;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

/* Efecto de subrayado animado */

.werbung-link-list a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-olive);
    transition: width 0.4s ease;
}

.werbung-link-list a:hover {
    color: var(--color-olive);
}

.werbung-link-list a:hover::after {
    width: 100%;
}

/* Estilio para la sección de música */

.musik-list-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Estilo para cada subsección (Songs, Filmmusik, etc.) */
.musik-subsection {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    padding: 2rem;
    margin-bottom: 2.5rem; /* Espacio entre cada subsección */
}

.musik-subsection:last-child {
    margin-bottom: 0;
}

/* Título de la subsección (H3) */
.musik-subsection h3 {
    font-size: 2rem;
    color: var(--color-olive);
    margin-top: 0;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
    text-align: center;
}

/* =================================================== */
/*    ESTILOS PARA REPRODUCTOR DE AUDIO PERSONALIZADO  */
/* =================================================== */

/* Contenedor del item de audio */
.audio-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}
.audio-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.audio-info h5 {
    font-size: 1.2rem;
    margin: 0 0 0.25rem 0;
    color: var(--color-dark-gray);
}

.audio-info p {
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
}

/* Contenedor principal del reproductor personalizado */
.custom-audio-player {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

/* El reproductor original se oculta, pero sigue existiendo para el JS */
.audio-source {
    display: none;
}

/* Botón de Play/Pause */
.play-pause-btn {
    background-color: var(--color-olive);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    transition: background-color 0.3s ease, transform 0.2s ease;
    flex-shrink: 0; /* Evita que el botón se encoja */
}

.play-pause-btn:hover {
    background-color: #6b6b00; /* Un tono más oscuro */
    transform: scale(1.1);
}

.play-pause-btn svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

/* Contenedor de la barra de progreso y los tiempos */
.progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

/* Estilo para los textos de tiempo */
.current-time, .duration {
    font-size: 0.85rem;
    color: #888;
    min-width: 35px; /* Ancho mínimo para evitar saltos de diseño */
    text-align: center;
}

/* Contenedor de la barra de progreso para permitir clics */
.progress-bar-wrapper {
    width: 100%;
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    padding: 3px 0; /* Aumenta el área de clic vertical */
}

/* La barra de progreso que se llena */
.progress-bar {
    width: 0; /* Empieza vacía */
    height: 4px;
    background-color: var(--color-accent);
    border-radius: 2px;
}

/* Estilo específico para el panel de Producción/Library (reutilizado) */
.library-link-container {
    text-align: center;
    padding: 1rem 0;
}

.library-link-container p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}


/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-item {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.news-item h3 {
    color: var(--color-olive);
    margin-top: 0;
}

/* Kontakt Section */
/* =================================================== */
/*      NUEVOS ESTILOS PARA KONTAKT (SIN FORMULARIO)   */
/* =================================================== */

.kontakt {
    background-color: #f8f9fa; /* Damos un color de fondo a toda la sección */
    padding: 5rem 2rem;
}

.kontakt-container-single {
    max-width: 800px;
    margin: 0 auto;
    text-align: center; /* Centramos todo el contenido */
    background-color: #fff;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.kontakt-container-single .kontakt-foto-wrapper {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin: -100px auto 2rem auto; /* <-- TRUCO: La mitad de la foto sale por arriba */
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border: 6px solid #fff;
    position: relative; /* Para asegurar que esté por encima del fondo */
}

.kontakt-container-single .kontakt-foto-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kontakt-container-single h2 {
    margin-bottom: 0.5rem;
}

.kontakt-container-single h3 {
    font-size: 1.5rem;
    color: var(--color-dark-gray);
    font-weight: 400;
    margin-top: 0;
    margin-bottom: 2.5rem;
}

.kontakt-container-single .contact-details {
    margin-bottom: 2.5rem;
}

.kontakt-container-single .contact-details p {
    margin: 1rem 0;
}

.kontakt-container-single .contact-link {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--color-dark-gray);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block; /* Para que la transición funcione bien */
}

.kontakt-container-single .contact-link.email-link {
    font-size: 1.5rem; /* El email un poco más grande */
    color: var(--color-accent);
}

.kontakt-container-single .contact-link:hover {
    color: var(--color-olive);
}

.kontakt-container-single .separator {
    color: #ccc;
    margin: 0 1rem;
    font-weight: normal;
}

.kontakt-container-single .kontakt-social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.kontakt-container-single .kontakt-social-icons img {
    width: 45px;
    height: 45px;
    transition: transform 0.3s ease;
}

.kontakt-container-single .kontakt-social-icons a:hover {
    transform: scale(1.15);
}

/* Media query para ajustar el truco de la foto en móviles */
@media (max-width: 480px) {
    .kontakt-container-single {
        padding: 2rem 1.5rem;
    }
    .kontakt-container-single .kontakt-foto-wrapper {
        width: 150px;
        height: 150px;
        margin-top: -90px;
    }
    .kontakt-container-single .contact-link {
        font-size: 1.1rem;
    }
    .kontakt-container-single .contact-link.email-link {
        font-size: 1.3rem;
    }
}


/* Footer */
footer {
    background-color: var(--color-dark-gray);
    color: #fff;
    padding: 2rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-links a,
.social-icons a {
    color: #fff;
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.social-icons a:hover {
    color: var(--color-accent);
}

.social-icons img {
    width: 30px;
    height: 30px;
    vertical-align: middle;
}

/* Back to Top Button */
.back-to-top {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--color-olive);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: opacity 0.5s, transform 0.3s ease; /* Mejoramos la transición */
    opacity: 0;
    transform: translateY(20px); /* Posición inicial para la animación */
}

.back-to-top.show {
    display: block; /* Lo hacemos visible */
    opacity: 1;
    transform: translateY(0); /* Posición final de la animación */
}

.back-to-top:hover {
    background-color: #3a6b9a;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        background-color: #fff;
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 1rem 0;
    }

    .hamburger {
        display: block;
        position: absolute;
        right: 1rem;
        top: 1.5rem;
    }

    .hamburger.active .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active .line2 {
        opacity: 0;
    }

    .hamburger.active .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero {
        flex-direction: column-reverse;
    }

    .hero-content {
        margin-top: 2rem;
        margin-bottom: 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    section {
        padding: 2rem 1rem;
    }

    section h2 {
        font-size: 2rem;
    }

    .film-gallery,
    .audio-player-container,
    .news-grid {
        grid-template-columns: 1fr;
    }

    footer {
        flex-direction: column;
    }
}

@media (max-width: 300px) {
    .logo {
        max-width: 200px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .cta-button {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }

    section h2 {
        font-size: 1.8rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

