/* ===== FONTS (self-hosted, no Google server contact) ===== */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                   U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                   U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                   U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                   U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== CSS VARIABLES ===== */
:root {
    --font-primary: 'Inter', sans-serif;
    /* Alternative: --font-primary: 'IBM Plex Sans', sans-serif; */

    --color-bg: #fafafa;
    --color-text: #020112;
    --color-subtle: #444444;

    --spacing-unit: 1rem;

    /* Motion timings (tunable in mockups/bg-texture.html → Tempo) */
    --t-move: 0.07s;   /* title glides to the top and back */
    --t-in: 0.07s;     /* content / titles fade in */
    --t-out: 0.07s;    /* content / titles fade out */
    --t-hover: 1s;  /* hover fades on links and buttons */
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.15;
    min-height: 100vh;
    padding: 0;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    font-weight: 400;
    letter-spacing: -0.04em;
}

/* ===== BACKGROUND TEXTURE ===== */
/* Tuned in mockups/bg-texture.html: anchored bottom-left, breathes and
   slowly drifts closer (zoom from the same corner) */
.bg-texture {
    position: fixed;
    inset: 0;
    background: url('media/bg/1.webp') 0% 100% / cover no-repeat;
    transform-origin: 0% 100%;
    animation: bg-breathe 17s ease-in-out infinite,
               bg-drift 90s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes bg-breathe {
    0%, 100% { opacity: 0.15; }
    50% { opacity: 0.35; }
}

@keyframes bg-drift {
    0%, 100% { scale: 1; }
    50% { scale: 1.12; }
}

@media (min-width: 768px) {
    body {
        padding: 0;
    }
}

/* ===== LANGUAGE SWITCH ===== */
.lang-switch {
    position: fixed;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    z-index: 1000;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--color-text);
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 0.875rem;
    opacity: 0.3;
    transition: opacity var(--t-hover) ease;
    padding: 0.25rem;
}

.lang-btn:hover {
    opacity: 0.6;
}

.lang-btn.active {
    opacity: 1;
    font-weight: 500;
}

.lang-switch span {
    opacity: 0.3;
}

/* ===== LANGUAGE VISIBILITY ===== */
.hidden {
    display: none !important;
}

/* ===== NAVIGATION ===== */
.main-nav {
    position: relative;
    min-height: 100vh;
}

.nav-list {
    list-style: none;
    position: relative;
}

.nav-item {
    font-size: clamp(2rem, 5vw, 5vh);
    font-weight: 380;
    cursor: pointer;
    position: absolute;
    user-select: none;
    line-height: 0.9;
    letter-spacing: -0.06em;
    z-index: 1;
    opacity: 1;
    left: 0;
    top: 0;
    width: 100%;
    padding-bottom: 0.0em;
    border-bottom: 3px solid var(--color-text);
}

.nav-item:hover {
    opacity: 1 !important;
}


.nav-item.active {
    z-index: 5;
}

.nav-item.faded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-bottom: 0;
    z-index: 10;
    position: absolute;
    left: 0;
    right: 0;
    top: clamp(3.5rem, 14vw, 8.5rem);
    visibility: hidden;
}

/* First section also positioned absolutely */
.content-section:first-of-type {
    position: absolute;
}

.content-section.open {
    max-height: 5000px;
    opacity: 1;
    visibility: visible;
    margin-bottom: 2rem;
    border-bottom: 3px solid var(--color-text);
}

.section-content {
    padding: 0;
    max-width: 900px;
}

.section-content > *:last-child,
.section-content > *:last-child > *:last-child,
.section-content > .de > *:last-child {
    margin-bottom: 0;
}

.content-section h2 {
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    font-weight: 400;
    margin-bottom: 1rem;
    opacity: 0.5;
    line-height: 1.1;
    display: none; /* Always hidden - nav item becomes the title */
}

.content-section p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 0.2rem;
    line-height: 1.0;
}

.content-section p a,
.show-item a {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.15em;
    text-decoration-color: rgba(2, 1, 18, 0.5);
}

.content-section p a:hover {
    opacity: 0.6;
}

/* ===== MOTION ===== */
/* Only enabled after the first layout (script adds .motion), so nothing
   animates on page load or when a section is opened via #hash link.
   Open: title glides up, others fade out, then content fades in.
   Close: content fades out quickly, title glides back, others fade in. */
.motion .nav-item {
    transition: top var(--t-move) cubic-bezier(0.65, 0, 0.35, 1),
                opacity var(--t-in) ease var(--t-out),
                visibility 0s linear 0s;
}

.motion .nav-item.faded {
    transition: top var(--t-move) cubic-bezier(0.65, 0, 0.35, 1),
                opacity var(--t-out) ease,
                visibility 0s linear var(--t-out);
}

.motion .content-section {
    transition: opacity var(--t-out) ease,
                max-height 0s linear var(--t-out),
                visibility 0s linear var(--t-out);
}

.motion .content-section.open {
    transition: opacity var(--t-in) ease var(--t-out),
                max-height 0s,
                visibility 0s;
}

/* While the window is being resized, the nav re-stacks instantly */
.resizing .nav-item,
.resizing .content-section {
    transition: none !important;
}

/* ===== TEXT BUTTONS (copy bio, show past shows) ===== */
.text-button {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    letter-spacing: inherit;
    color: inherit;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.15em;
}

.text-button:hover {
    opacity: 0.6;
}

.toggle-past {
    display: block;
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    line-height: 1.0;
    color: var(--color-subtle);
    padding: 0.4rem 0 0.2rem;
}

/* Past shows stay folded until "vergangene anzeigen" */
.shows-list:not(.show-past) .show-item.past {
    display: none;
}

/* ===== PROSE (bio, press texts) ===== */
.prose p {
    line-height: 1.2;
    margin-bottom: 0.6em;
}

.prose .note {
    color: var(--color-subtle);
    font-weight: 300;
    margin-top: 1.2em;
}


/* ===== LIST GRIDS (shows, projects, highlights, releases) ===== */
/* Same architecture for every list: grid container + display:contents rows,
   so columns stay aligned across all rows. */
#section-shows .section-content {
    padding: 0;
}

.shows-list {
    display: grid;
    grid-template-columns: max-content max-content 1fr max-content;
    gap: 0;
}

.shows-list.cols-3 {
    grid-template-columns: max-content 1fr max-content;
}

.shows-list.cols-projects {
    grid-template-columns: max-content 1fr 1fr;
}

.show-item {
    display: contents;
}

.show-item > span {
    padding: 0.2rem 1.5rem 0.2rem 0;
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.0;
    transition: opacity var(--t-hover) ease;
}

.show-item > span:last-child {
    padding-right: 0;
}

.show-item a:hover {
    opacity: 0.6;
}

.show-links a + a {
    margin-left: 1rem;
}

.show-band {
    font-weight: 300;
    color: var(--color-subtle);
}

.show-item.past > span {
    text-decoration: line-through;
    color: var(--color-subtle);
}

.show-item.past .show-venue a {
    color: var(--color-subtle);
}

.show-date {
    font-weight: 400;
    min-width: 120px;
    position: relative;
}

.show-date::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 2px;
    background: var(--color-text);
    pointer-events: none;
}

.show-item:last-child .show-date::after {
    display: none;
}

.show-venue {
    font-weight: 300;
}

.show-location {
    font-weight: 300;
    color: var(--color-subtle);
    text-align: left;
}

@media (max-width: 768px) {
    .shows-list,
    .shows-list.cols-3,
    .shows-list.cols-projects {
        grid-template-columns: 1fr;
    }

    .show-date::after {
        display: none;
    }

    .show-item > span {
        padding: 0.2rem 0;
    }

    .show-item > span:last-child {
        border-bottom: 2px solid var(--color-text);
        padding-bottom: 0.5rem;
        margin-bottom: 0.5rem;
    }

    /* Section's own bottom border closes the list — avoid a double line */
    .show-item:last-child > span:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }

    .show-location {
        text-align: left;
    }
}

/* ===== MUSIC SECTION ===== */
.music-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.music-links a {
    color: var(--color-text);
    text-decoration: none;
    font-size: clamp(1rem, 2vw, 1.25rem);
    transition: opacity var(--t-hover) ease;
}

.music-links a:hover {
    opacity: 0.6;
}

/* ===== IMAGE SECTION ===== */
.press-image {
    margin-top: 0;
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
}

.press-image img {
    width: auto;
    max-width: 100%;
    max-height: 60vh;
    display: block;
}

.press-image picture {
    display: block;
    min-width: 0; /* let the photo shrink so the credit never overflows on narrow phones */
}

.image-credit {
    font-size: 0.875rem;
    color: var(--color-subtle);
    font-style: italic;
    line-height: 1.3;
    white-space: nowrap;
}

.image-credit a {
    color: var(--color-subtle);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.15em;
}

.image-credit a:hover {
    opacity: 0.6;
}

/* ===== SCREEN-READER / SEO ONLY ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== CONTACT SECTION ===== */
.contact-info {
    margin-bottom: 0;
}

.contact-info a {
    color: var(--color-text);
    text-decoration: none;
    font-size: clamp(1rem, 2vw, 1.25rem);
    transition: opacity var(--t-hover) ease;
    display: inline-block;
}

.contact-info a:hover {
    opacity: 0.6;
}

.mailing-list {
    margin-bottom: 2rem;
}

.subscribe-form {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
    max-width: 500px;
}

.subscribe-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.2);
    background: transparent;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color var(--t-hover) ease;
}

.subscribe-form input:focus {
    outline: none;
    border-color: var(--color-text);
}

.subscribe-form button {
    padding: 0.75rem 2rem;
    border: 1px solid var(--color-text);
    background: transparent;
    color: var(--color-text);
    font-family: var(--font-primary);
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--t-hover) ease;
}

.subscribe-form button:hover {
    background: var(--color-text);
    color: var(--color-bg);
}

@media (max-width: 768px) {
    .subscribe-form {
        flex-direction: column;
    }
}

.social-links {
    display: flex;
    gap: 2rem;
}

.social-links a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 1rem;
    transition: opacity var(--t-hover) ease;
}

.social-links a:hover {
    opacity: 0.6;
}

/* ===== FOOTER ===== */
.site-footer {
    position: fixed;
    bottom: 0.5rem;
    left: 0;
    z-index: 1000;
    background: var(--color-bg);
    padding: 0.25rem 0.5rem;
}

.impressum-link {
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.875rem;
    opacity: 0.3;
    transition: opacity var(--t-hover) ease;
}

.impressum-link:hover {
    opacity: 0.7;
}

/* ===== FORM MESSAGE ===== */
.form-message {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    min-height: 1.5rem;
}

.form-message.success {
    color: #22c55e;
}

.form-message.error {
    color: #ef4444;
}

/* ===== FOCUS STATES ===== */
a:focus,
button:focus,
input:focus {
    outline: 2px solid var(--color-text);
    outline-offset: 2px;
}

.nav-item:focus {
    outline: none;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
        animation-duration: 0.01ms !important;
    }

    .bg-texture {
        animation: none !important;
        opacity: 0.35;
    }
}
