:root {
    --dark:     #2A2D34;
    --mint:     #D7F9F1;
    --sage:     #7AA095;
    --burgundy: #280103;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    background: var(--dark);
    color: var(--mint);
    font-family: 'Raleway', system-ui, -apple-system, Helvetica, Arial, sans-serif;
    font-weight: 300;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.025;
    pointer-events: none;
    z-index: 9999;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--sage); border-radius: 2px; }

h1, h2, h3, h4 {
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
    letter-spacing: 0.04em;
}

em { font-style: italic; }

img { max-width: 100%; }

/* === Sichtbarer Tastatur-Fokus (a11y, ui-ux-pro-max §1 focus-states) === */
a:focus-visible,
button:focus-visible,
.sound-tab:focus-visible,
.play-btn:focus-visible,
.progress-wrap:focus-visible {
    outline: 2px solid var(--mint);
    outline-offset: 3px;
    border-radius: 2px;
}

/* Inline icons */
.ic {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: -0.15em;
    fill: currentColor;
    flex-shrink: 0;
}
.link-with-icon { display: inline-flex; align-items: center; gap: 0.55rem; }

nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 500;
    padding: 1.5rem 3.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: background 0.4s, box-shadow 0.4s;
}

nav.scrolled {
    background: rgba(42, 45, 52, 0.97);
    box-shadow: 0 1px 0 rgba(122, 160, 149, 0.12);
    backdrop-filter: blur(8px);
}

.lang-btn {
    font-family: 'Raleway', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    background: transparent;
    border: 1px solid rgba(122,160,149,0.3);
    color: var(--mint);
    padding: 0.55rem 0.9rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s, border-color 0.3s;
    flex-shrink: 0;
    margin-left: 1.5rem;
}
.lang-btn:hover { opacity: 1; border-color: var(--sage); }

html[lang="de"] .lang-en { display: none; }
html[lang="en"] .lang-de { display: none; }

.nav-logo {
    font-family: 'Raleway', sans-serif;
    font-size: 1.15rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--mint);
    text-decoration: none;
    font-weight: 600;
    line-height: 1;
}

.nav-links {
    display: flex;
    gap: 2.25rem;
    list-style: none;
}

.nav-links a {
    display: inline-block;
    color: var(--mint);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.7;
    padding: 0.5rem 0.15rem;
    transition: opacity 0.3s, color 0.3s;
}

.nav-links a:hover { opacity: 1; color: var(--sage); }
.nav-links a.is-active { opacity: 1; color: var(--sage); }

/* === Hero === */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 45% 55%;
    position: relative;
    overflow: hidden;
}

.hero-portrait { position: relative; overflow: hidden; }

.hero-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    filter: contrast(1.05) brightness(0.95);
}

.hero-portrait::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(42,45,52,0) 55%, rgba(42,45,52,1) 100%);
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8rem 5rem 5rem 4rem;
    position: relative;
    isolation: isolate;
}

.hero-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../img/background/hintergrund.jpg') center/cover no-repeat;
    opacity: 0.45;
    z-index: -1;
}

.hero-eyebrow {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--sage);
    margin-bottom: 1.75rem;
}

.hero-name {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(3.4rem, 6.5vw, 6.4rem);
    line-height: 1.05;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--mint);
    margin-bottom: 0.5rem;
    font-weight: 200;
}

.hero-name em {
    font-style: normal;
    color: var(--sage);
    display: block;
    font-weight: 300;
}

.hero-tagline {
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    color: var(--sage);
    opacity: 0.85;
    margin-top: 1.5rem;
    margin-bottom: 3rem;
}

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    font-family: 'Raleway', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn-primary { background: var(--sage); color: var(--dark); }
.btn-primary:hover { background: var(--mint); }

.btn-outline {
    background: transparent;
    color: var(--mint);
    border: 1px solid rgba(215, 249, 241, 0.25);
}

.btn-outline:hover { border-color: var(--sage); color: var(--sage); }

/* === Sections === */
.section { padding: 7rem 3.5rem; }
.section-inner { max-width: 1280px; margin: 0 auto; }

.section-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--sage);
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    font-size: clamp(2rem, 3.8vw, 3.5rem);
    line-height: 1.15;
    color: var(--mint);
    letter-spacing: 0.01em;
}

.section-rule {
    width: 48px;
    height: 1px;
    background: var(--sage);
    margin: 2rem 0 3.5rem;
}

#about { border-top: 1px solid rgba(122,160,149,0.1); }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 7rem;
    align-items: start;
}

.about-quote-block { position: sticky; top: 8rem; }

.about-quote {
    font-family: 'Raleway', sans-serif;
    font-weight: 200;
    font-style: italic;
    font-size: clamp(1.3rem, 1.9vw, 1.85rem);
    line-height: 1.55;
    color: var(--sage);
    position: relative;
    padding-left: 2rem;
}

.about-quote::before {
    content: '\201C';
    position: absolute;
    left: -0.25rem;
    top: -1rem;
    font-size: 5rem;
    color: var(--burgundy);
    opacity: 0.7;
    font-style: normal;
    line-height: 1;
}

.about-source {
    display: block;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--sage);
    opacity: 0.6;
    margin-top: 1.5rem;
    padding-left: 2rem;
}

.about-text p {
    font-size: 1rem;
    opacity: 0.92;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.facts {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 2.5rem;
}

.fact { border-left: 1px solid var(--sage); padding-left: 1rem; }

.fact-year {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--sage);
}

.fact-text {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 0.25rem;
    line-height: 1.45;
}

/* === Filmografie / Projects === */
#projekte {
    padding: 0;
    background: var(--burgundy);
}

.projects-header {
    padding: 6rem 3.5rem 3rem;
    max-width: 1280px;
    margin: 0 auto;
}

.proj-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    padding: 2.5rem 3.5rem 6rem;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.proj-card {
    width: 100%;
    aspect-ratio: 3 / 4;
    position: relative;
    overflow: hidden;
    background: var(--dark);
}

.proj-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.85) saturate(0.95);
    transition: transform 0.7s ease, filter 0.5s ease;
}

.proj-card:hover img { transform: scale(1.04); filter: brightness(0.95) saturate(1.05); }

/* Stärkere Deckkraft, Text immer gut lesbar */
.proj-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
        rgba(42,45,52,0.96) 0%,
        rgba(42,45,52,0.78) 40%,
        rgba(42,45,52,0.25) 75%,
        rgba(42,45,52,0.1) 100%);
    padding: 1.85rem 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: background 0.4s ease;
}

.proj-card:hover .proj-overlay {
    background: linear-gradient(to top,
        rgba(42,45,52,0.98) 0%,
        rgba(42,45,52,0.85) 50%,
        rgba(42,45,52,0.4) 85%,
        rgba(42,45,52,0.15) 100%);
}

.proj-title {
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
    font-size: 1.15rem;
    color: var(--mint);
    line-height: 1.25;
    text-shadow: 0 1px 14px rgba(0,0,0,0.55);
}

.proj-meta {
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--mint);
    opacity: 0.85;
    margin-top: 0.5rem;
    text-shadow: 0 1px 8px rgba(0,0,0,0.55);
}

/* === Sound === */
#sound {
    background: linear-gradient(to bottom, rgba(42,45,52,0.6), rgba(42,45,52,0.9)),
                url('../img/background/hintergrund.jpg') center/cover no-repeat;
    background-attachment: fixed;
}

.sound-inner { max-width: 860px; margin: 0 auto; }

.sound-intro {
    font-size: 1rem;
    opacity: 0.88;
    max-width: 620px;
    margin-bottom: 2rem;
    line-height: 1.75;
}

/* Tabs */
.sound-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid rgba(122,160,149,0.18);
    padding-bottom: 0.25rem;
}

.sound-tab {
    font-family: 'Raleway', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    background: transparent;
    color: var(--mint);
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.7rem 1.1rem;
    margin-bottom: -1px;
    opacity: 0.55;
    cursor: pointer;
    transition: opacity 0.25s, color 0.25s, border-color 0.25s;
}

.sound-tab:hover { opacity: 0.9; }

.sound-tab.is-active {
    opacity: 1;
    color: var(--sage);
    border-bottom-color: var(--sage);
}

.sound-empty {
    font-size: 0.85rem;
    opacity: 0.55;
    padding: 2rem 0;
    text-align: center;
    font-style: italic;
}

.sound-spotify {
    display: flex;
    justify-content: center;
    margin-top: 2.75rem;
}
.spotify-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}
.spotify-btn svg { flex: 0 0 auto; }

.track {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.35rem 1.6rem;
    margin-bottom: 0.55rem;
    background: rgba(42,45,52,0.68);
    border: 1px solid rgba(122,160,149,0.15);
    backdrop-filter: blur(10px);
    transition: border-color 0.3s, background 0.3s, opacity 0.25s;
    cursor: pointer;
}

/* Hidden-Attribut hat sonst gegen .track { display: grid } keine Chance */
.track[hidden] { display: none !important; }

.track[hidden] { display: none !important; }
.track:hover { border-color: rgba(122,160,149,0.4); background: rgba(42,45,52,0.78); }
.track.is-playing { border-color: var(--sage); background: rgba(122,160,149,0.1); }

.play-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(122,160,149,0.5);
    background: transparent;
    color: var(--sage);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.3s, border-color 0.3s;
}

.play-btn:hover { background: rgba(122,160,149,0.15); border-color: var(--sage); }
.track.is-playing .play-btn { background: var(--sage); border-color: var(--sage); }
.track.is-playing .play-btn svg { fill: var(--dark); }

.play-btn svg { fill: var(--sage); width: 13px; height: 13px; flex-shrink: 0; }

.play-icon-shape  { display: block; }
.pause-icon-shape { display: none; }
.track.is-playing .play-icon-shape  { display: none; }
.track.is-playing .pause-icon-shape { display: block; }

.track-info { min-width: 0; }

.track-name {
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--mint);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-project {
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sage);
    margin-top: 0.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.track-genre {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border: 1px solid rgba(122,160,149,0.35);
    border-radius: 999px;
    font-size: 0.58rem;
    letter-spacing: 0.18em;
    color: var(--mint);
    opacity: 0.8;
}

.track-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    min-width: 150px;
}

.progress-wrap {
    width: 100%;
    height: 2px;
    background: rgba(122,160,149,0.18);
    border-radius: 1px;
    cursor: pointer;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--sage);
    border-radius: 1px;
    width: 0%;
    pointer-events: none;
}

.track-times {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 0.65rem;
    color: var(--sage);
    opacity: 0.7;
    font-variant-numeric: tabular-nums;
}

/* === Partner / Logos === */
#partner { border-top: 1px solid rgba(122,160,149,0.1); }

.logo-group { margin-bottom: 3.5rem; }

.logo-group-label {
    font-family: 'Raleway', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--sage);
    opacity: 0.85;
    margin-bottom: 1.75rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(122,160,149,0.18);
}

.logo-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.75rem 3rem;
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.25rem;
}

.logo-item img {
    height: 34px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    display: block;
    opacity: 0.92;
    transition: opacity 0.35s, transform 0.35s;
}

.logo-item img:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* === Footer === */
footer { background: var(--burgundy); padding: 5rem 3.5rem 2.5rem; }

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(215,249,241,0.08);
}

.footer-brand-name {
    font-family: 'Raleway', sans-serif;
    font-size: 2.2rem;
    line-height: 1.1;
    color: var(--mint);
    margin-bottom: 0.85rem;
    font-weight: 200;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.footer-brand-sub {
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--sage);
    opacity: 0.8;
}

.footer-social { display: flex; gap: 1.25rem; margin-top: 2rem; flex-wrap: wrap; }

.footer-social a {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--mint);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s, color 0.3s;
}

.footer-social a:hover { opacity: 1; color: var(--sage); }

.footer-social .ic,
.footer-col .ic {
    width: 14px !important;
    height: 14px !important;
    opacity: 0.85;
    flex-shrink: 0;
}

/* IMDb-Badge ist breiter als hoch — extra Spielraum geben */
.footer-social a[aria-label="IMDb"] .ic { width: 26px !important; }

.footer-col h4 {
    font-family: 'Raleway', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--sage);
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.65rem; }

.footer-col a {
    color: var(--mint);
    text-decoration: none;
    font-size: 0.88rem;
    opacity: 0.72;
    padding: 0.3rem 0;
    transition: opacity 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-col a:hover { opacity: 1; }

.footer-bottom {
    max-width: 1280px;
    margin: 2rem auto 0;
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    font-size: 0.68rem;
    opacity: 0.62;
    flex-wrap: wrap;
}

/* ==================== Responsive ==================== */
@media (max-width: 1024px) {
    nav { padding: 1.3rem 2rem; }
    .nav-links { gap: 1.5rem; }
    .section { padding: 5.5rem 2rem; }
    .about-grid { gap: 3.5rem; }
    .proj-grid { grid-template-columns: repeat(3, 1fr); gap: 26px; padding: 2rem 2rem 4.5rem; }
    .projects-header { padding: 5rem 2rem 2.5rem; }
    footer { padding: 4rem 2rem 2rem; }
}

@media (max-width: 768px) {
    body { line-height: 1.65; }

    nav { padding: 1rem 1.25rem; flex-wrap: wrap; gap: 0.75rem; }
    .nav-logo { font-size: 0.95rem; letter-spacing: 0.12em; }
    .nav-links { gap: 1rem; flex-wrap: wrap; order: 3; width: 100%; justify-content: flex-start; }
    .nav-links a { font-size: 0.62rem; letter-spacing: 0.14em; }
    .lang-btn { margin-left: 0; }

    /* Hero */
    .hero { grid-template-columns: 1fr; min-height: auto; }
    .hero-portrait { height: 60vh; }
    .hero-portrait::after { background: linear-gradient(to bottom, transparent 40%, var(--dark) 95%); }
    .hero-content { padding: 2.5rem 1.5rem 4rem; }
    .hero-name { font-size: clamp(2.8rem, 13vw, 4.6rem); line-height: 1.08; }
    .hero-eyebrow { margin-bottom: 1.25rem; }
    .hero-tagline { margin-bottom: 2rem; }
    .hero-cta .btn { padding: 0.85rem 1.5rem; font-size: 0.65rem; }

    .section { padding: 4.5rem 1.25rem; }
    .section-rule { margin: 1.5rem 0 2.5rem; }

    /* About */
    .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .about-quote-block { position: static; }
    .about-quote { padding-left: 1.5rem; }
    .about-quote::before { font-size: 4rem; top: -0.6rem; }
    .about-source { padding-left: 1.5rem; }
    .facts { grid-template-columns: 1fr; gap: 1rem; margin-top: 2rem; }

    /* Filmografie */
    .projects-header { padding: 4.5rem 1.25rem 2rem; }
    .proj-grid { grid-template-columns: repeat(2, 1fr); padding: 1rem 1.25rem 3.5rem; gap: 12px; }
    .proj-overlay { padding: 1rem; }
    .proj-title { font-size: 0.95rem; }
    .proj-meta { font-size: 0.58rem; margin-top: 0.3rem; }

    /* Sound */
    .sound-tabs {
        gap: 0.3rem 0.4rem;
        flex-wrap: wrap;
    }
    .sound-tab { padding: 0.55rem 0.7rem; font-size: 0.66rem; letter-spacing: 0.12em; white-space: nowrap; }

    .track {
        grid-template-columns: 44px 1fr;
        gap: 1rem;
        padding: 1.1rem 1.2rem;
    }
    .play-btn { width: 44px; height: 44px; }
    .track-right { grid-column: 1 / -1; min-width: 0; }
    .track-name { font-size: 0.95rem; white-space: normal; }
    .track-project { flex-wrap: wrap; }

    /* Logos */
    .logo-group { margin-bottom: 2.5rem; }
    .logo-group-label { font-size: 0.66rem; letter-spacing: 0.2em; margin-bottom: 1.25rem; }
    .logo-row { gap: 1.25rem 2rem; justify-content: center; }
    .logo-item { padding: 0.4rem 0.25rem; }
    .logo-item img { height: 28px; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
    footer { padding: 3.5rem 1.25rem 1.75rem; }
    .footer-brand-name { font-size: 1.8rem; }
    .footer-bottom { flex-direction: column; gap: 0.5rem; font-size: 0.6rem; }
}

@media (max-width: 420px) {
    .proj-grid { grid-template-columns: 1fr; }
    .hero-cta { flex-direction: column; align-items: stretch; }
    .hero-cta .btn { text-align: center; }
}

/* === Reduced Motion (ui-ux-pro-max §1/§7) === */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    #sound { background-attachment: scroll; }
    .proj-card:hover img,
    .logo-item img:hover { transform: none; }
}
