@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../fonts/Plus_Jakarta_Sans/PlusJakartaSans-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../fonts/Plus_Jakarta_Sans/PlusJakartaSans-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'DM Serif Display';
    src: url('../fonts/DM_Serif_Display/DMSerifDisplay-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'DM Serif Display';
    src: url('../fonts/DM_Serif_Display/DMSerifDisplay-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

:root {
    --bg:       #121118; /* Midnight Velvet */
    --text:    #e7e5d6; /*#E2D9C8; /* Dimmed Cream */
    --muted:    #c1bfb4;
    --border:   #333;
    --max:      860px;
    --gap:      clamp(0.75rem, 4vw, 2rem);
    --bg-glass: rgba(18, 17, 24, 0.82);
    /* Stroke width matching burger icon lines (SVG stroke-width 1.333 in viewBox height 23, rendered at 1.875rem) */
    --stroke:   calc(1.333 * 1.875rem / 23);

    --error: #CE402B;

    /* Accent colour pool — headings, nav hover, vollbild dots */
    --accent-1: #CE402B;
    --accent-2: #C07C27;
    --accent-3: #287CAB;
    --accent-4: #7D4CAE;
    --accent-5: #269FA3;


}

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

/* Prevent 100vw sub-pixel overflow from expanding the layout viewport on Android Chrome,
   which would cause fixed elements (canvas, burger) to position relative to a wider-than-screen viewport. */
html, body { overflow-x: hidden; }

@keyframes page-reveal {
    from { opacity: 0; }
    to   { opacity: 1; }
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 1.2rem;
    line-height: 1.8;
    letter-spacing: 0.05em;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    animation: page-reveal 0.5s ease both;
}
@media (prefers-reduced-motion: reduce) {
    body { animation: none; }
}

/* ── Header ── */

header {
    padding: 1.25rem var(--gap);
    border-bottom: 2px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--bg);
    z-index: 50;
}



/* ── Burger button ── */

.burger {
    position: fixed;
    top: 1.25rem;
    right: var(--gap);
    z-index: 50;
    background: rgba(234, 234, 234, 0.5);
    background: color-mix(in srgb, var(--bg) 50%, transparent);
    border: none;
    cursor: pointer;
    padding: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}

.burger-icon { display: block; height: 1.875rem; width: auto; }

.nav-close svg { display: block; height: 1.875rem; width: auto; }

/* ── Nav overlay ── */

.nav-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4.5rem 0;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0s 0.25s;
}

.nav-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.25s ease;
}

.nav-close {
    position: fixed;
    top: 1.25rem;
    right: var(--gap);
    z-index: 101;
    background: rgba(234, 234, 234, 0.5);
    background: color-mix(in srgb, var(--bg) 50%, transparent);
    border: none;
    cursor: pointer;
    color: inherit;
    padding: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-mute {
    position: fixed;
    top: 1.25rem;
    left: var(--gap);
    z-index: 101;
    background: rgba(234, 234, 234, 0.5);
    background: color-mix(in srgb, var(--bg) 50%, transparent);
    border: none;
    cursor: pointer;
    color: inherit;
    padding: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-mute svg { display: block; height: 1.875rem; width: auto; }
.nav-mute .icon-muted { display: none; }
.nav-mute.is-muted .icon-sound { display: none; }
.nav-mute.is-muted .icon-muted { display: block; }

.nav-overlay-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: auto 0;
    width: min(calc(100% - 2 * var(--gap)), var(--max));
}

.nav-overlay-links a {
    display: block;
    width: 80%;
    padding: 1.1rem var(--gap);
    text-decoration: none;
    color: var(--text);
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    transition: background 0.12s, color 0.12s;
}

/* ── Main ── */

main {
    max-width: var(--max);
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--gap) var(--footer-h, 0px);
    flex: 1;
    position: relative;
    z-index: 10;
    pointer-events: none;
}
main > * { pointer-events: auto; }

/* First block is not a vollbild → breathing room at top */
main > .block:first-child:not(.block-vollbild) { padding-top: 3rem; }


/* ── Typografie ── */

h1 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(1.8rem, 3.75vw, 2.4rem);
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0.05em;
    margin-top: 2rem;
    margin-bottom: 2rem;
}
.block-text h2:first-child { margin-top: 0; }
.block-text h2:last-child  { margin-bottom: 1.5rem; }

h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 400;
    line-height: 1.3;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}
.block-text h3:first-child { margin-top: 0; }
.block-text h3:last-child  { margin-bottom: 0; }


p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
a { color: inherit; }

/* ── Blöcke ── */

/* Full-width background strip behind content blocks */
.block {
    background: transparent;
    padding: 1.32rem;
    margin-bottom: 0;
    position: relative;
}
.block:last-child { padding-bottom: 3rem; }
/* .block-footer ist display:none aber bleibt :last-child — vorletztem Block Padding geben */
.block:nth-last-child(2):has(+ .block-footer) { padding-bottom: 3rem; }
/* Fallback für Browser ohne :has() — main.has-footer wird PHP-seitig gesetzt */
main.has-footer .block:nth-last-child(2) { padding-bottom: 3rem; }

.block-text::before,
.block-video::before,
.block-audio::before,
.block-divider::before,
.block-image::before,
.block-gigs::before,
.block-liste::before,
.block-button::before,
.block-kontakt::before,
.block-footer::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc((100% - 100vw) / 2);
    right: calc((100% - 100vw) / 2);
    background: var(--bg);
    z-index: -1;
}

/* Vollbilder: no padding/margin (spacing handled by adjacent content blocks) */
.block-vollbild {
    background: transparent;
    padding: 0;
    margin-top: 0;
    margin-bottom: 0;
}
main .block-vollbild { pointer-events: none; }

/* First content block after a vollbild */
.block-vollbild + .block { padding-top: 4rem; }
/* …skip one JS-hidden block (e.g. upcoming gigs block hidden when no gigs exist) */
.block-vollbild + [hidden] + .block { padding-top: 4rem; }

/* Last content block before a vollbild */
.block:has(+ .block-vollbild) { padding-bottom: 4rem; }
.block:has(+ [hidden] + .block-vollbild) { padding-bottom: 4rem; }
.block-vollbild:last-child { margin-bottom: 0; padding-bottom: 0; }
/* Vollbild als letzter sichtbarer Block — kein Extra-Padding, kein Footer-Höhen-Offset auf main */
.block-vollbild:nth-last-child(2):has(+ .block-footer) { padding-bottom: 0; }
main:has(> .block-vollbild:last-child),
main:has(> .block-vollbild:nth-last-child(2) + .block-footer) { padding-bottom: 0; }

/* Letzter Block nach Vollbild: padding-bottom auf 4rem anheben (sonst 3rem < 4rem oben) */
.block-vollbild + .block:last-child,
.block-vollbild + .block:nth-last-child(2):has(+ .block-footer) { padding-bottom: 4rem; }

.block-text,
.gig-text-before,
.gig-text-empty { hyphens: auto; }
.block-text a, .gig-text-before a, .gig-text-empty a,
figcaption a { color: inherit; text-decoration: underline; text-decoration-thickness: var(--stroke); hyphens: none; transition: color 0.15s ease, text-decoration-color 0.15s ease; }
.md-arrow { display: inline-block; vertical-align: 0.1em; }
.block-text hr,
.gig-text-before hr, .gig-text-empty hr { border: none; border-top: var(--stroke) solid var(--border); margin: 2.5rem 0; }
.block-text blockquote,
.gig-text-before blockquote, .gig-text-empty blockquote { border-left: var(--stroke) solid var(--muted); padding-left: 1.25rem; margin: 1.5rem 1.25rem 1.5rem 1.25rem; font-style: italic; font-size: 1.05em; }
.block-text ul, .block-text ol,
.gig-text-before ul, .gig-text-before ol,
.gig-text-empty ul, .gig-text-empty ol { padding-left: 1.5rem; margin: 1rem 0; }
.block-text ul li, .block-text ol li,
.gig-text-before ul li, .gig-text-before ol li,
.gig-text-empty ul li, .gig-text-empty ol li { margin-bottom: 0.25rem; }

.gig-text-before { margin-bottom: 1.5rem; }
.gig-text-empty  { margin-top: 1rem; }

.block-image figure { margin: 0 auto; max-width: 100%; }
.block-image figure img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
}
.block-image figcaption { font-size: 1rem; margin-top: 1.3rem; text-align: center; }

.block-image figure.has-bw img { filter: grayscale(1) brightness(var(--img-brightness, 1)) contrast(var(--img-contrast, 1)); }
.block-image figure.has-fx img { filter: brightness(var(--img-brightness, 1)) contrast(var(--img-contrast, 1)) saturate(var(--img-saturation, 1)); }
.block-image .img-wrap { display: block; position: relative; }

.block-fill {
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    height: 100vh;
    height: 100svh;
    overflow: hidden;
}
.block-fill img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--focal-x, 50%) var(--focal-y, 50%);
    display: block;
    visibility: hidden;
}
.block-fill figcaption,
.block-fill > .block-fill__hero {
    visibility: hidden;
}

.scroll-img-fixed.is-fill img { }
.block-fill figcaption {
    position: absolute;
    bottom: 1.5rem;
    left: 2rem;
    right: 2rem;
    color: #fff;
    font-size: 0.82rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.block-fill__hero {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem clamp(2.5rem, 10vw, 6rem);
    color: var(--text);
}
.block-fill__hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    margin-bottom: 0.4em;
    text-shadow: 2px 3px 10px rgba(0,0,0,0.32);
}
.block-fill__hero p {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-weight: 500;
    letter-spacing: 0.18em;
    text-shadow: 1px 2px 6px rgba(0,0,0,0.32);
    margin-bottom: 0;
}

.block-video video { max-width: 100%; height: auto; display: block; margin: 0 auto; }
.block-video .video-embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; }
.block-video .video-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.video-facade { cursor: pointer; }
.block-video .video-facade img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.video-facade-label {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-family: inherit;
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    color: #e7e5d6;
    padding: 0.55rem calc(var(--gap) / 2);
    max-width: 75%;
    pointer-events: none;
    transition: background 0.12s, color 0.12s, opacity 0.5s ease;
    box-shadow: 3px 4px 14px rgba(0,0,0,0.45);
}
.video-facade .video-facade-label { opacity: 0; }
.video-facade .video-facade-label.is-loaded { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
    .video-facade .video-facade-label { opacity: 1; }
}
video.poster-bw { filter: grayscale(1); }

.video-facade-label .vfl-compact { display: none; }
.video-facade-icon { width: 1em; height: 1em; vertical-align: -0.1em; margin-right: 0.35em; }
.video-facade-icon * {
    /* Gleiche Strichdicke wie das Play-Dreieck im Custom-Player (.video-play-btn svg *) —
       fester Bildschirm-Pixelwert statt proportional mitskalierend, sonst wirkt die Linie
       bei der kleineren Icon-Größe hier dünner. */
    vector-effect: non-scaling-stroke;
    stroke-width: var(--stroke);
}
/* Kleine Hochkant-Screens: "Play Youtube/Vimeo/… Video" bricht auf 3 Zeilen um und verdeckt
   zu viel vom Posterframe. Kompakte Variante (Dreieck + Plattformname) statt vollem Satz —
   Plattform bleibt genannt (DSGVO-Transparenz vor dem Klick auf den Drittanbieter-Embed). */
@media (max-aspect-ratio: 10/13) {
    .video-facade-label .vfl-full { display: none; }
    .video-facade-label .vfl-compact { display: inline-block; }
}

.video-local-wrap {
    position: relative;
}
.video-local-wrap video {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.video-controls {
    display: flex;
    align-items: center;
    gap: calc(var(--gap) / 2);
    margin-top: 0.5rem;
}
.audio-local-wrap {
    width: 100%;
}
/* Audio-Player: eigenes Grid-Layout statt der Flex-Reihe des Video-Players (der teilt sich
   die .video-controls-Klasse, hat aber Play+Fullscreen nebeneinander statt Play+Balken+Zeile).
   Spalte 1 = Play-Button, Spalte 2 = Balken (Reihe 1) + Zeit/Caption (Reihe 2), Spalte 3 =
   optionaler Download-Button. Play-/Download-Button spannen beide Reihen (grid-row 1/3) und
   werden per align-self:stretch auf die volle Komponentenhöhe gebracht — die Grid-Höhe ist
   exakt auf die natürliche Button-Höhe fixiert (2.475rem = 1.875rem SVG + 2×0.3rem Padding,
   s. .video-play-btn), Button "wächst" dadurch de facto nicht, füllt nur exakt seine eigene
   Höhe. Zeile 2 (Zeit/Caption) ist "auto" (so hoch wie der Text braucht) und sitzt mit ihrer
   Unterkante exakt auf der Button-Unterkante. Zeile 1 (Balken) bekommt den verbleibenden Rest
   (1fr) und wird darin zentriert — das ist der Raum zwischen Button-Oberkante und Text-
   Oberkante, nicht die volle Button-Höhe (rechnerisch nicht beides gleichzeitig möglich, s.
   Kommentar im Code-Verlauf). Kein Sonderfall mehr für "mit/ohne Caption" nötig — Zeile 2 ist
   immer da, zeigt ohne Caption einfach nur die Zeit.
   Warum robust: Play-Button-Höhe (1.875rem) und Zeit-Schriftgröße (1rem) sind beide rem-basiert,
   also fest zueinander proportional (kein html{font-size} Override im Projekt). */
.audio-local-wrap .video-controls {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: 1fr auto;
    column-gap: calc(var(--gap) / 2);
    row-gap: 0.15rem;
    height: 2.475rem;
    margin-top: 0;
}
.audio-local-wrap .video-play-btn {
    grid-row: 1 / 3;
    align-self: stretch;
}
.audio-local-wrap .video-progress {
    /* Spannt wie der Play-Button beide Reihen (1/3) — align-self:center zentriert dadurch
       relativ zur VOLLEN Komponentenhöhe (= Button-Höhe), nicht nur relativ zu Reihe 1.
       Deckt sich mit der Spitze des Play-Dreiecks; Platz für den Tooltip bleibt darüber. */
    grid-row: 1 / 3;
    align-self: center;
    padding: 0.15rem 0;
}
.audio-local-wrap .player-time {
    grid-row: 2;
    align-self: end;
    line-height: 1.2; /* body hat line-height:1.8 (bewusst für Fließtext) — geerbt macht die
                          Zeilenbox 28.8px hoch statt ~19px, mit viel Leerraum um den Text.
                          align-self:end dockt die BOX unten an, nicht die Grundlinie selbst —
                          bei 1.8 landet die sichtbare Grundlinie dadurch spürbar über der
                          Box-Unterkante. Eng gesetzt rückt Grundlinie nah an die Box-Kante. */
    transform: translateY(3px); /* gemessen: Grundlinie sitzt bei 100% Zoom ~3px zu hoch
                                    (Font-Ascent/Descent-Metrik von Plus Jakarta Sans) */
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
.audio-local-wrap .player-time-tooltip { bottom: calc(0.15rem + var(--stroke) + 0.35rem); }
.player-time {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    white-space: nowrap;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

.video-play-btn {
    border: none;
    cursor: pointer;
    padding: 0.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e7e5d6;
    flex-shrink: 0;
    text-decoration: none;
    position: relative;
}
.video-play-btn::after {
    content: attr(aria-label);
    position: absolute;
    bottom: calc(100% + 0.35rem);
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    white-space: nowrap;
    background: var(--border);
    color: var(--muted);
    padding: 0.15rem 0.4rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
}
.video-play-btn:hover::after {
    opacity: 1;
}
.video-play-btn svg {
    display: block;
    width: 1.875rem;
    height: 1.875rem;
}
.video-play-btn svg * {
    vector-effect: non-scaling-stroke;
    stroke-width: var(--stroke);
}

.player-time-tooltip {
    position: absolute;
    bottom: calc(0.75rem + var(--stroke) + 0.35rem);
    transform: translateX(-50%);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    white-space: nowrap;
    background: var(--border);
    color: var(--muted);
    padding: 0.15rem 0.4rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    font-variant-numeric: tabular-nums;
}

.video-progress {
    flex: 1;
    padding: 0.75rem 0;
    cursor: pointer;
    position: relative;
}

.video-progress-track {
    height: var(--stroke);
    background: var(--border);
    position: relative;
}

.video-progress-buffer {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    width: 0%;
    background: #555;
    pointer-events: none;
}
.video-progress-fill {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    width: 0%;
    pointer-events: none;
}

.block-audio .audio-local-wrap audio { display: none; }
.block-audio iframe { display: block; width: 100%; max-width: 100%; margin: 0 auto; border: none; }

.block-divider hr { border: none; border-top: var(--stroke) solid var(--border); }

.block-footer { display: none; }

/* ── Media fade-in ── */
.media-fade {
    opacity: 0;
    transition: opacity 0.5s ease;
}
.media-fade.is-loaded {
    opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
    .media-fade { opacity: 1; }
}

/* ── Page Lists (projects, study) ── */

.page-list { list-style: none; }

.page-list-item {
    padding: 1rem 0;
    border-bottom: 2px solid var(--border);
}
.page-list-item:first-child { border-top: 2px solid var(--border); }

.page-list-item a { text-decoration: none; font-size: 1.05rem; }
.page-list-item a:hover { color: var(--muted); }

/* ── Tag filter ── */

.tag-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag-filter-btn {
    background: none;
    border: 1px solid var(--border);
    padding: 0.25rem 0.85rem;
    font-size: 0.78rem;
    font-family: inherit;
    cursor: pointer;
    color: var(--muted);
    letter-spacing: 0.04em;
}

.tag-filter-btn:hover,
.tag-filter-btn.active {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

/* ── Study list items ── */

.study-item-title { display: flex; align-items: baseline; gap: 0.75rem; }
.study-ext { font-size: 0.8em; }
.study-notes-link { font-size: 0.82rem; color: var(--muted); text-decoration: none; white-space: nowrap; }
.study-notes-link:hover { color: var(--text); }

.page-list-meta {
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 0.2rem;
}

/* ── Live / Gigs ── */

.gig-list { list-style: none; border-top: var(--stroke) solid var(--divider-color, var(--border)); }

.gig-item {
    display: grid;
    grid-template-columns: 9rem 1fr auto;
    gap: 0.5rem 1.5rem;
    align-items: start;
    padding: 1rem 0;
    border-bottom: var(--stroke) solid var(--divider-color, var(--border));
}

.gig-date     { font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 300; line-height: 1.3; }
.gig-time     { display: block; margin-top: 0.75rem; opacity: 0.8; }
.gig-venue    { display: block; font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 500; line-height: 1.3; transition: color 0.15s ease; }
.gig-venue a  { color: inherit; text-decoration: underline; text-decoration-thickness: var(--stroke); transition: color 0.15s ease, text-decoration-color 0.15s ease; }
.gig-location { display: block; font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 300; font-style: italic; line-height: 1.3; margin-top: 0.75rem; }
.gig-desc     { margin-top: 0.3rem; }
.gig-link     { font-weight: 500; white-space: nowrap; align-self: end; text-decoration: none; }

.gig-past .gig-time { display: none; }

/* ── Footer ── */

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 7;
    background: #0e0d13;
    color: var(--text);
    padding: 3.75rem var(--gap);
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
footer.is-visible { transform: translateY(0); }
footer.footer--instant { transition: none; }
footer::before { content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: inherit; }
footer p { margin-bottom: 0; }
footer a {
    text-decoration: none;
    transition: color 0.12s;
    color: var(--text);
}

/* ── Scroll image effect ── */


.scroll-img-fixed {
    position: fixed;
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    will-change: opacity;
}

.scroll-cap-fixed {
    position: fixed;
    bottom: 1.5rem;
    left: 2rem;
    right: 2rem;
    z-index: 8;
    transition: bottom 0.3s ease;
    color: #fff;
    font-size: 0.82rem;
    text-align: left;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
    pointer-events: none;
    will-change: opacity;
}

body.footer-visible .scroll-cap-fixed {
    bottom: calc(var(--footer-h, 0px) + 1.5rem);
}

.scroll-hero-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;       /* fallback: old browsers without 100lvh */
    height: 100lvh;  /* stable: never changes with URL-bar toggle */
    z-index: 8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    will-change: transform, opacity;
    transition: bottom 0.3s ease, height 0.3s ease;
}
body.footer-visible .scroll-hero-fixed.is-last-hero {
    bottom: var(--footer-h, 0px);                        /* fallback */
    height: calc(100lvh - var(--footer-h, 0px));         /* modern */
}

.scroll-img-fixed.is-fill {
    inset: 0;
    overflow: hidden;
}

.scroll-img-fixed.is-fill canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.scroll-img-fixed.is-fill figcaption {
    position: absolute;
    bottom: 1.5rem;
    left: 2rem;
    right: 2rem;
    color: #fff;
    font-size: 0.82rem;
    text-align: left;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
    pointer-events: auto;
}

.scroll-img-fixed.is-fit {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    max-width: var(--max);
    width: 100%;
    padding: 0 var(--gap);
}

.scroll-img-fixed.is-fit img {
    max-width: 100%;
    height: auto;
    display: block;
}

.scroll-img-fixed.is-fit figcaption {
    font-size: 0.82rem;
    color: var(--muted);
    margin-top: 0.5rem;
}

/* ── Liste-Grid ── */

.liste-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
}

.liste-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border: var(--stroke) solid var(--card-color, var(--border));
    overflow: hidden;
}

.liste-card-thumb-wrap {
    margin: 0.75rem 0.75rem 0;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--border);
}

.liste-card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.liste-grid--bw .liste-card-thumb,
.liste-list--bw .liste-list-thumb { filter: grayscale(100%); }

.liste-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--muted);
    opacity: 0.4;
}
.liste-thumb-placeholder svg { width: 40%; height: auto; }

.liste-card-title {
    flex: 1;
    margin-top: 0.75rem;
    padding: 0.75rem;
    font-size: 0.9em;
    line-height: 1.4;
    font-weight: 500;
    overflow-wrap: break-word;
    border-top: var(--stroke) solid var(--card-color, var(--border));
    transition: background 0.12s, color 0.12s;
}
.liste-card:hover .liste-card-title {
    background: var(--card-color);
    color: var(--text);
}

/* ── Liste-List ── */

.liste-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: var(--stroke) solid var(--divider-color, var(--border));
}

.liste-list-item {
    border-bottom: var(--stroke) solid var(--divider-color, var(--border));
}

.liste-list-thumb-wrap {
    flex-shrink: 0;
    width: calc(160px / 3);
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--border);
}

.liste-list-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.liste-list-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: inherit;
    text-decoration: none;
    position: relative;
}

.liste-list-link::before {
    content: '';
    position: absolute;
    top: 0.75rem;
    left: calc(160px / 3 + 0.75rem);
    right: 0;
    height: calc(160px / 3);
    background: var(--hover-bg, transparent);
    z-index: -1;
    pointer-events: none;
}

.liste-list-title { flex: 1; padding-left: 0.75rem; font-weight: 500; }

.liste-list-date {
    flex-shrink: 0;
    font-size: 0.85rem;
    font-weight: 500;
    padding-right: 0.75rem;
}

/* ── Button-Block ── */

.button-wrap {
    display: flex;
    justify-content: center;
}

.page-btn {
    display: block;
    padding: 1.1rem var(--gap);
    font-family: inherit;
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    border: none;
    cursor: pointer;
    width: 80%;
    line-height: 1;
    transition: background 0.12s, color 0.12s;
    text-decoration: none;
    color: var(--text);
}


/* ── Responsive ── */

/* ── Kontaktformular ───────────────────────────────────────────── */
.kontakt-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.kontakt-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.kontakt-row input,
.kontakt-form textarea {
    background: transparent;
    border: var(--stroke) solid var(--card-color, var(--border));
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
    color: var(--text);
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    padding: 0.5rem 0.75rem;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    resize: none;
    transition: border-color 0.12s;
}
.kontakt-row input::placeholder,
.kontakt-form textarea::placeholder {
    color: var(--muted);
}
.kontakt-row input:focus,
.kontakt-form textarea:focus {
    border-color: var(--text);
}
.kontakt-row input.is-invalid::placeholder,
.kontakt-form textarea.is-invalid::placeholder {
    color: var(--error);
    font-weight: 500;
}
.kontakt-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
}
.kontakt-status {
    flex: 1;
    font-size: inherit;
    font-weight: 500;
    margin: 0;
    min-width: 0;
}
.kontakt-status.is-error { color: var(--error); }
.kontakt-status.is-success { color: var(--accent-5); }
.kontakt-submit {
    background: var(--card-color, var(--border));
    color: #e7e5d6;
    border: none;
    font-family: inherit;
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 1.1rem var(--gap);
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: auto;
    transition: opacity 0.12s;
}
.kontakt-submit:hover { opacity: 1; }
.kontakt-arrow { margin-left: 0.4em; }
.kontakt-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

@media (max-aspect-ratio: 10/13) {
    .kontakt-footer { flex-direction: column; align-items: stretch; }
}

/* Tall screens (height ≥ 1.3 × width): full-width nav buttons */
@media (max-aspect-ratio: 10/13) {
    .nav-overlay-links { width: calc(100% - 2 * var(--gap)); min-width: 0; }
    .nav-overlay-links a { width: 100%; }
    .page-btn { width: 100%; }
}

@media (max-width: 600px) {
    .burger, .nav-close, .nav-mute { padding: 0.875rem; }
    .gig-item    { grid-template-columns: 1fr; gap: 0.2rem; }
}
