/* Tailwind läuft hier über das CDN-Script und verarbeitet diese Datei NICHT –
   deshalb reines CSS statt @tailwind/@layer-Direktiven. */

:root {
    /* Purple Raindrops Palette (Sekundärfarbe kontrastangepasst für WCAG 2.1 AA) */
    --color-neon-pink: #f72585;
    --color-raspberry-plum: #b5179e;
    --color-indigo-bloom: #7209b7;
    --color-ultrasonic-blue: #560bad;
    --color-true-azure: #480ca8;
    --color-vivid-royal: #3a0ca3;
    --color-persian-blue: #3f37c9;
    --color-periwinkle-glow: #a3b4f2; /* ersetzt electric-sapphire (#798de8) – war mit ~3,9:1 zu kontrastarm */
    --color-cloudy-sky: #4895ef;
    --color-sky-aqua: #4cc9f0;

    /* Rollenbasierte Zuordnung */
    --color-bg: var(--color-vivid-royal);
    --color-surface: var(--color-true-azure);
    --color-border: var(--color-persian-blue);
    --color-accent-primary: var(--color-neon-pink);
    --color-accent-secondary: var(--color-periwinkle-glow);
    --color-accent-tertiary: var(--color-periwinkle-glow);
    --color-text-primary: #f4f2fb;
    --color-text-secondary: var(--color-sky-aqua);

    /* Einheitliche Höhe für alle Bild-/Video-Rahmen in der Slideshow */
    --media-h: 320px;

    /* Neon-Leuchten für den Hero-Titel */
    --neon: 0 0 3px #fff,
    0 0 14px rgba(247, 37, 133, 0.95),
    0 0 36px rgba(247, 37, 133, 0.7),
    0 0 84px rgba(181, 23, 158, 0.65);
}

@media (min-width: 768px) {
    :root {
        --media-h: 400px;
    }
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-primary);
}

.bg-surface {
    background-color: var(--color-surface);
}

.border-brand {
    border-color: var(--color-border);
}

.text-secondary {
    color: var(--color-text-secondary);
}

.shadow-polaroid {
    box-shadow:
            0 8px 16px rgba(0, 0, 0, 0.25),
            0 2px 4px rgba(0, 0, 0, 0.15);
}

.polaroid-frame {
    border-style: solid;
    border-image-source: url("src/image/Cover/cover.png");
    border-image-slice: 60 60 220 60 fill;
    border-image-width: 24px 24px 90px 24px;
    border-image-repeat: stretch;
}

/* ---- Barrierefreiheit: Skip-Link ---- */

.skip-link {
    position: absolute;
    top: -3rem;
    left: 1rem;
    z-index: 100;
    background-color: var(--color-accent-primary);
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 0.375rem;
    font-size: 0.95rem;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 1rem;
}

/* Sichtbarer, kontraststarker Fokusring statt browsereigenem (teils unauffälligem) Standard */
a:focus-visible,
button:focus-visible,
video:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--color-sky-aqua);
    outline-offset: 2px;
}

/* ---- Hero ---- */

.hero-overlay {
    background: linear-gradient(
            to bottom,
            rgba(58, 12, 163, 0.60) 0%,
            rgba(58, 12, 163, 0.40) 45%,
            var(--color-bg) 100%
    );
}

.hero-title {
    position: relative;
    z-index: 1;
    display: block;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(3.75rem, 13vw, 9rem);
    line-height: 1.02;
    letter-spacing: -0.01em;
    color: #fff;
    text-wrap: balance;
    text-shadow: var(--neon);
    animation: neon-on 2.4s ease-out both;
}

/* Leuchtreklame, die einmal beim Laden anspringt */
@keyframes neon-on {
    0%   { color: rgba(255, 255, 255, 0.25); text-shadow: none; }
    6%   { color: #fff; text-shadow: var(--neon); }
    8%   { color: rgba(255, 255, 255, 0.25); text-shadow: none; }
    14%  { color: #fff; text-shadow: var(--neon); }
    16%  { color: rgba(255, 255, 255, 0.25); text-shadow: none; }
    30%, 100% { color: #fff; text-shadow: var(--neon); }
}

.hero-tagline {
    margin-top: 1.75rem;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    color: var(--color-accent-secondary);
    text-shadow: 0 2px 16px rgba(58, 12, 163, 0.8);
    opacity: 0;
    animation: hero-fade 1s ease 1.2s forwards;
}

@media (min-width: 768px) {
    .hero-tagline {
        font-size: 1.35rem;
    }
}

@keyframes hero-fade {
    to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-title   { animation: none; }
    .hero-tagline { animation: none; opacity: 1; }
    .animate-bounce { animation: none; }
}

/* ---- Slideshow: feste Medien-Rahmen ---- */

/* Bild: immer gleiche Größe, Hoch- und Querformat werden bündig zugeschnitten */
.media-frame {
    width: 100%;
    height: var(--media-h);
    border-radius: 0.375rem;
    overflow: hidden;
}

.media-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%; /* bei Hochformat eher Köpfe als Beine zeigen */
}

/* Video: Rahmen passt sich dem Seitenverhältnis an -> keine schwarzen Ränder.
   aspect-ratio und .is-portrait setzt script.js, sobald die Metadaten geladen sind. */
.video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 0.375rem;
    overflow: hidden;
}

.video-frame.is-portrait {
    width: auto;
    height: var(--media-h);
    max-width: 100%;
}

.video-frame .video-js {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

/* ---- Slideshow: Pfeile näher am Displayrand ---- */

.slide-arrow-prev { left: 0.5rem; }
.slide-arrow-next { right: 0.5rem; }

@media (min-width: 768px) {
    .slide-arrow-prev { left:  calc(50% - 50vw + 1.5rem); }
    .slide-arrow-next { right: calc(50% - 50vw + 1.5rem); }
}

/* ---- Audio-Player-UI ---- */

.audio-player {
    background-color: rgba(72, 12, 168, 0.35);
    border: 1px solid rgba(76, 201, 240, 0.2);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.play-pause-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    background-color: var(--color-accent-primary);
    color: white;
    flex-shrink: 0;
    transition: opacity 0.2s ease, transform 0.15s ease;
}

.play-pause-btn:hover:not(:disabled) {
    opacity: 0.9;
    transform: scale(1.05);
}

.play-pause-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.play-pause-btn svg {
    width: 1.1rem;
    height: 1.1rem;
}

/* WaveSurfer rendert in Shadow DOM – Höhe/Radius am Container setzen */
.waveform {
    width: 100%;
    border-radius: 0.5rem;
    overflow: hidden;
}

/* ---- Footer / Impressum ---- */

/* Verlauf statt Trennlinie: geht sanft aus der Kontakt-Section heraus */
.site-footer {
    background: linear-gradient(to bottom, var(--color-surface), var(--color-bg));
    padding: 4rem 1.5rem 2.5rem;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-primary);
}

@media (min-width: 768px) {
    .site-footer {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

.footer-muted {
    color: rgba(244, 242, 251, 0.75);
}

.footer-name {
    font-weight: 500;
    color: var(--color-text-primary);
}

.footer-link {
    color: var(--color-accent-secondary);
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--color-text-primary);
    text-decoration-thickness: 2px;
}

/* ---- Links (global) ---- */
a {
    color: var(--color-accent-secondary);
    text-decoration: underline;
    text-underline-offset: 4px;
}

a:hover {
    color: var(--color-text-primary);
    text-decoration-thickness: 2px;
}