/* Heinrich Neuy – statische Deploy-Version */
:root {
    --accent: #e0a800;
    --ink:    #1a1a1a;
    --paper:  #ffffff;
    --bg:     #ededed;
    --muted:  #8a8a8a;
    --line:   #e2e2e0;
    --maxw: 1100px;
    --font: 'Inter', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.01em; font-weight: 700; margin: 0; }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 1000; background: var(--ink); color: #fff; padding: .6rem 1rem; }
.skip-link:focus { left: 0; }

.container { width: min(100% - 2rem, var(--maxw)); margin-inline: auto; }

/* Splash */
body.is-splash { background: #0f0f12; }
.splash-main { display: block; }
.splash {
    min-height: 100vh; min-height: 100svh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; color: #fff; position: relative; padding: 3rem 1.5rem;
    overflow: hidden;
}
.splash--rotate { background: #0f0f12; }
.splash__bg {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    background-repeat: no-repeat; opacity: 0; transition: opacity 1.4s ease-in-out;
    z-index: 0;
}
.splash__bg.is-active { opacity: 1; }
.splash__bg--d { background-position: 28% 42%; }
.splash__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.splash__title {
    font-size: clamp(2.4rem, 7vw, 5.6rem); text-transform: uppercase;
    letter-spacing: .06em; font-weight: 700; color: #fff; margin: 0;
    text-shadow: 0 2px 30px rgba(0,0,0,.35);
}
.splash__sub {
    text-transform: uppercase; letter-spacing: .34em; font-weight: 400;
    font-size: clamp(.68rem, 1.4vw, .86rem); color: rgba(255,255,255,.85);
    margin: 1rem 0 0;
}

/* Navigation & Footer */
.site-brand {
    position: fixed; top: 1.5rem; left: 1.8rem; z-index: 50;
    display: block; text-decoration: none; line-height: 0;
}
.site-brand__logo {
    display: block; width: auto; height: auto;
    max-width: 241px; max-height: 20px; object-fit: contain;
    filter: invert(1);
}

.site-nav {
    position: fixed; top: 1.5rem; right: 1.8rem; z-index: 50;
    display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 1.6rem;
}
.site-nav__link {
    color: rgba(255,255,255,.9); text-transform: uppercase; letter-spacing: .16em;
    font-size: .72rem; text-decoration: none; transition: color .2s ease;
}
.site-nav__link:hover, .site-nav__link.is-active { color: var(--accent); }

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.site-nav__toggle { display: none; }

.site-foot {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, .65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.site-foot__legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.2rem; }
.site-foot__legal a {
    color: rgba(255,255,255,.75); text-decoration: none; font-size: .72rem;
    text-transform: uppercase; letter-spacing: .12em; transition: color .2s ease;
}
.site-foot__legal a:hover { color: var(--accent); }

/* Innenseiten */
body.is-inner {
    --ink: #f0f0f0;
    --paper: #000000;
    --bg: #000000;
    --muted: #9a9a9a;
    --line: #2a2a2a;
    color: var(--ink);
    background: #000;
    min-height: 100vh; min-height: 100svh;
}

.content {
    padding: 5rem clamp(.6rem, 1.5vw, 1.2rem) 5.5rem;
    position: relative; z-index: 1;
}

.page-head { padding: 1rem .3rem 1.5rem; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; }
.page-head--plain { border-bottom: none; }
.page-head h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 0 0 .4rem; }
.page-head p { margin: 0; max-width: 60ch; color: var(--muted); }

.prose { max-width: 72ch; padding: .5rem .3rem 2rem; }
.prose h2 { font-size: 1.3rem; margin-top: 2rem; }
.prose p { margin: 0 0 1rem; color: #d4d4d4; }
.notice { border-left: 3px solid var(--accent); background: #111; color: var(--ink); padding: 1rem 1.2rem; margin-bottom: 2rem; }

/* Impressum */
.legal { padding-bottom: 3rem; max-width: 680px; }
.legal__card {
    padding: clamp(1.4rem, 3.5vw, 2.2rem);
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .35);
}
.legal__item { display: grid; gap: .45rem; padding: 1.35rem 0; }
.legal__item:first-child { padding-top: 0; }
.legal__item:last-child { padding-bottom: 0; }
.legal__item + .legal__item { border-top: 1px solid var(--line); }
.legal__item--row {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2rem;
}
.legal__label {
    margin: 0;
    font-size: .68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: var(--accent);
}
.legal__value { margin: 0; color: #d4d4d4; line-height: 1.65; }
.legal__value--lead { font-size: 1.2rem; font-weight: 600; color: var(--ink); }
.legal__value a {
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid rgba(224, 168, 0, .45);
    transition: color .2s ease, border-color .2s ease;
}
.legal__value a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* Lebenslauf */
body.is-cv::before {
    content: "";
    position: fixed; inset: 0; z-index: -1;
    background:
        linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, .72)),
        url('../img/bild1.webp') 28% 42% / cover no-repeat;
}

.timeline { position: relative; margin: 1rem 0 2rem; max-width: 820px; }
.tl-item { position: relative; display: grid; grid-template-columns: 74px 1fr; gap: 1.4rem; padding: .5rem 0 1.6rem; }
.tl-year { color: var(--muted); text-align: right; font-size: .95rem; font-weight: 600; padding-top: .05rem; }
.tl-body { position: relative; padding-left: 1.6rem; }
.tl-body::before {
    content: ""; position: absolute; left: -5px; top: .45rem; width: 11px; height: 11px;
    background: var(--ink); border: 2px solid var(--bg); border-radius: 50%;
}
.tl-item:hover .tl-body::before { background: var(--accent); }
.tl-body p { margin: 0; color: #d4d4d4; }

/* Museum */
body.is-museum::before,
body.is-museum::after {
    content: "";
    position: fixed; inset: 0; z-index: -1;
    background-size: cover; background-position: center; background-repeat: no-repeat;
    pointer-events: none;
    animation: museum-bg-crossfade 12s ease-in-out infinite;
}
body.is-museum::before {
    background-image:
        linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, .72)),
        url('../img/museum.webp');
}
body.is-museum::after {
    background-image:
        linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, .72)),
        url('../img/museum2.webp');
    animation-delay: -6s;
}
@keyframes museum-bg-crossfade {
    0%, 45%   { opacity: 1; }
    50%, 95%  { opacity: 0; }
    100%      { opacity: 1; }
}

.museum { padding-bottom: 3rem; }
.museum__grid {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
    gap: clamp(1.5rem, 4vw, 3rem); align-items: start;
}
.museum__date { color: var(--muted); font-size: .88rem; margin: -.5rem 0 1.2rem; }
.museum__card {
    padding: 1rem 1.1rem; background: rgba(255, 255, 255, .04);
    border: 1px solid var(--line); border-radius: 8px; font-size: .92rem;
}
.museum__card-title { font-weight: 700; margin: 0 0 .75rem; }
.museum__card p { margin: 0 0 .85rem; color: #d4d4d4; }
.museum__card h3 {
    font-size: .78rem; text-transform: uppercase; letter-spacing: .1em;
    color: var(--muted); margin: 1rem 0 .5rem;
}
.museum__card a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 800px) {
    .site-brand { top: max(1rem, env(safe-area-inset-top)); left: 1rem; }

    .site-nav__toggle {
        display: flex; flex-direction: column; justify-content: center; gap: 5px;
        position: fixed; top: max(.85rem, env(safe-area-inset-top)); right: 1rem;
        z-index: 52; width: 44px; height: 44px; padding: 10px;
        background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .2);
        border-radius: 8px; cursor: pointer;
    }
    .site-nav__toggle-bar {
        display: block; width: 100%; height: 2px; background: #fff;
        border-radius: 1px; transition: transform .25s ease, opacity .25s ease;
    }
    .nav-toggle:checked ~ .site-nav__toggle .site-nav__toggle-bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .nav-toggle:checked ~ .site-nav__toggle .site-nav__toggle-bar:nth-child(2) { opacity: 0; }
    .nav-toggle:checked ~ .site-nav__toggle .site-nav__toggle-bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .site-nav {
        top: 0; right: 0; left: 0; bottom: 0;
        flex-direction: column; align-items: stretch; justify-content: flex-start;
        gap: 0; padding: calc(4.5rem + env(safe-area-inset-top)) 1.5rem 1.5rem;
        background: rgba(0, 0, 0, .94);
        backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
        transform: translateY(-100%); opacity: 0; pointer-events: none;
        transition: transform .3s ease, opacity .3s ease;
        overflow-y: auto;
    }
    .nav-toggle:checked ~ .site-nav {
        transform: translateY(0); opacity: 1; pointer-events: auto;
    }
    .site-nav__link {
        font-size: .88rem; letter-spacing: .14em; padding: .95rem 0;
        border-bottom: 1px solid var(--line);
    }
    .site-nav__link:last-child { border-bottom: none; }

    body:has(#nav-toggle:checked) { overflow: hidden; }

    .site-foot {
        padding: .85rem 1rem max(.85rem, env(safe-area-inset-bottom));
    }
    .site-foot__legal a { font-size: .66rem; }

    .content {
        padding: calc(4.2rem + env(safe-area-inset-top)) 1rem calc(4.5rem + env(safe-area-inset-bottom));
    }

    .splash {
        padding: calc(5rem + env(safe-area-inset-top)) 1.25rem calc(4rem + env(safe-area-inset-bottom));
    }
    .splash__sub { letter-spacing: .22em; }

    .page-head { padding: .75rem 0 1.25rem; }
    .page-head h1 { font-size: clamp(1.6rem, 7vw, 2.2rem); }

    .legal__item--row { grid-template-columns: 1fr; gap: 1.35rem; }

    .tl-item { grid-template-columns: 58px 1fr; gap: .9rem; }
    .museum__grid { grid-template-columns: 1fr; }
}

@media (max-width: 460px) {
    .splash__title { letter-spacing: .04em; }
    .tl-item { grid-template-columns: 1fr; gap: .35rem; }
    .tl-year { text-align: left; }
    .tl-body { padding-left: 1.2rem; }
}
