/* Ergänzungen für bilder-gesaenge.html
   Diese Datei wird nach styles.css eingebunden. */

.archivseite {
    background:
        radial-gradient(850px 520px at 80% -5%, rgba(200, 161, 84, 0.08), transparent 70%),
        var(--nacht);
}

/* ---------- Kopfbereich ---------- */
.archivheld {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(3rem, 7vw, 6rem);
    border-bottom: var(--linie);
    background:
        radial-gradient(720px 500px at 78% 44%, rgba(200, 161, 84, 0.12), transparent 70%),
        radial-gradient(620px 440px at 18% 100%, rgba(27, 49, 40, 0.24), transparent 72%),
        linear-gradient(150deg, var(--nacht-2), var(--tiefe));
}

.archivheld::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.42;
    background-image:
        linear-gradient(rgba(200, 161, 84, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(200, 161, 84, 0.045) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(75% 90% at 78% 45%, #000, transparent 82%);
    -webkit-mask-image: radial-gradient(75% 90% at 78% 45%, #000, transparent 82%);
}

.archivheld__grid {
    position: relative;
    display: grid;
    gap: var(--lueck-l);
    align-items: center;
}

.archivheld__text {
    max-width: 760px;
}

.archivheld .seitentitel {
    max-width: 13ch;
    padding-right: 0.08em;
    padding-bottom: 0.16em;
    overflow: visible;
    font-size: clamp(2.7rem, 1.45rem + 4.5vw, 5.4rem);
    color: transparent;
    background: linear-gradient(178deg, #f6ecd3 8%, var(--gold) 64%, var(--messing));
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.6));
}

.archivheld__lede {
    max-width: 62ch;
    margin-bottom: 0.85rem;
    font-family: var(--serif);
    font-size: clamp(1.1rem, 1rem + 0.65vw, 1.5rem);
    line-height: 1.55;
    color: var(--pergament-2);
}

.archivheld__hinweis {
    max-width: 58ch;
    color: var(--text-leise);
}

.archivheld__spruenge {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.35rem;
    margin-top: var(--lueck-m);
}

.archivheld__spruenge a {
    color: var(--text-leise);
    font-size: 0.76rem;
    letter-spacing: 0.16em;
    text-decoration: none;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(200, 161, 84, 0.35);
}

.archivheld__spruenge a:hover {
    color: var(--pergament);
    border-bottom-color: var(--gold);
}

.archivheld__zeichen {
    width: min(78vw, 29rem);
    justify-self: center;
    opacity: 0.92;
    filter: drop-shadow(0 24px 44px rgba(0, 0, 0, 0.58));
}

.archivheld__zeichen svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.archivheld__kreis {
    fill: none;
    stroke: rgba(200, 161, 84, 0.27);
    stroke-width: 1;
}

.archivheld__kreis--innen {
    stroke-dasharray: 2 9;
}

.archivheld__rahmen {
    stroke: rgba(200, 161, 84, 0.55);
    stroke-width: 1.4;
}

.archivheld__falz,
.archivheld__landschaft,
.archivheld__welle,
.archivheld__note {
    fill: none;
    stroke: rgba(230, 205, 146, 0.72);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.archivheld__welle {
    stroke-width: 2.4;
}

.archivheld__mond {
    fill: rgba(200, 161, 84, 0.22);
    stroke: var(--gold-hell);
    stroke-width: 1;
}

.archivheld__stern {
    fill: var(--gold);
    stroke: var(--gold-hell);
    stroke-width: 0.8;
    filter: drop-shadow(0 0 8px rgba(200, 161, 84, 0.45));
}

@media (min-width: 880px) {
    .archivheld__grid {
        grid-template-columns: minmax(0, 1.35fr) minmax(19rem, 0.65fr);
    }
}

/* ---------- Sprungnavigation ---------- */
.archivnav {
    position: sticky;
    top: 4.2rem;
    z-index: 20;
    border-bottom: var(--linie);
    background: rgba(8, 12, 19, 0.92);
    backdrop-filter: blur(10px);
}

.archivnav .wrap {
    display: flex;
    gap: 1px;
    overflow-x: auto;
    padding-block: 0.65rem;
}

.archivnav a {
    flex: 1 0 13rem;
    padding: 0.45rem 0.85rem;
    color: var(--text-leise);
    font-family: var(--serif);
    line-height: 1.3;
    text-decoration: none;
    border-left: 1px solid rgba(200, 161, 84, 0.2);
    transition: color 0.25s ease, background 0.25s ease;
}

.archivnav a:hover {
    color: var(--pergament);
    background: rgba(200, 161, 84, 0.07);
}

.archivnav span {
    display: block;
    color: var(--gold);
    font-family: var(--sans);
    font-size: 0.63rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

/* ---------- Bildergalerie ---------- */
.section--bilder {
    scroll-margin-top: 8rem;
    background:
        radial-gradient(880px 520px at 12% 8%, rgba(27, 49, 40, 0.28), transparent 70%),
        linear-gradient(180deg, var(--nacht), var(--nacht-2));
}

.bildergalerie {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--lueck-m);
    align-items: start;
}

.bildkarte {
    position: relative;
    overflow: hidden;
    margin: 0;
    border: var(--linie-zart);
    border-top-color: rgba(200, 161, 84, 0.42);
    border-radius: var(--radius);
    background: linear-gradient(165deg, rgba(233, 220, 189, 0.055), rgba(8, 12, 19, 0.9));
    box-shadow: var(--schatten);
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.bildkarte::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    border: 1px solid transparent;
    background: radial-gradient(110% 65% at 50% 0%, rgba(200, 161, 84, 0.11), transparent 62%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.bildkarte:hover {
    transform: translateY(-5px);
    border-color: rgba(200, 161, 84, 0.52);
    box-shadow: var(--schatten-tief), 0 0 28px rgba(200, 161, 84, 0.08);
}

.bildkarte:hover::after {
    opacity: 1;
}

.bildkarte__bild {
    position: relative;
    display: block;
    overflow: hidden;
    border-bottom: var(--linie);
    background:
        repeating-linear-gradient(135deg, rgba(233, 220, 189, 0.025) 0 1px, transparent 1px 20px),
        radial-gradient(100% 85% at 50% 10%, rgba(200, 161, 84, 0.11), transparent 68%),
        #0a1017;
}

.bildkarte__bild--hoch {
    aspect-ratio: 4 / 5;
}

.bildkarte__bild--quer {
    aspect-ratio: 16 / 10;
}

.bildkarte__bild img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.88) contrast(1.03);
    transition: transform 0.55s ease, filter 0.35s ease;
}

.bildkarte:hover .bildkarte__bild img {
    transform: scale(1.025);
    filter: saturate(1) contrast(1.05);
}

.bildkarte__bild svg {
    position: absolute;
    inset: 8%;
    width: 84%;
    height: 74%;
    fill: rgba(200, 161, 84, 0.035);
    stroke: rgba(214, 196, 156, 0.48);
    stroke-width: 1.35;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bildkarte__bild > span {
    position: absolute;
    right: 1rem;
    bottom: 0.8rem;
    left: 1rem;
    color: var(--text-leise);
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-align: center;
    text-transform: uppercase;
}

.bildkarte__text {
    position: relative;
    z-index: 3;
    padding: clamp(1.15rem, 2.3vw, 1.65rem);
}

.bildkarte__kategorie {
    margin-bottom: 0.45rem;
    color: var(--gold);
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.bildkarte__text h3 {
    margin-bottom: 0.45rem;
    font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.65rem);
}

.bildkarte__text > p:last-child {
    color: var(--text-leise);
    font-size: 0.93rem;
    line-height: 1.65;
}

.archivnotiz {
    max-width: 78ch;
    margin-top: var(--lueck-l);
    padding: 0.8rem 1rem;
    color: var(--text-leise);
    font-size: 0.86rem;
    border-left: 2px solid var(--messing);
    background: rgba(200, 161, 84, 0.055);
}

@media (min-width: 680px) {
    .bildergalerie {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bildkarte--breit {
        grid-column: span 2;
    }
}

@media (min-width: 1020px) {
    .bildergalerie {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .bildkarte--breit {
        grid-column: span 2;
    }
}

/* ---------- Gesänge ---------- */
.section--gesaenge {
    scroll-margin-top: 8rem;
    background:
        radial-gradient(820px 500px at 86% 12%, rgba(200, 161, 84, 0.09), transparent 72%),
        radial-gradient(680px 440px at 10% 90%, rgba(27, 49, 40, 0.22), transparent 70%),
        linear-gradient(180deg, var(--nacht-2), var(--tiefe));
}

.gesangliste {
    display: grid;
    gap: var(--lueck-m);
    max-width: 62rem;
}

.gesang {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: clamp(1rem, 3vw, 2.2rem);
    padding: clamp(1.25rem, 3vw, 2.25rem);
    overflow: hidden;
    border: var(--linie);
    border-left-color: rgba(200, 161, 84, 0.62);
    background:
        linear-gradient(145deg, rgba(233, 220, 189, 0.055), rgba(8, 12, 19, 0.86)),
        var(--nacht-3);
    box-shadow: var(--schatten);
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.gesang::after {
    content: "";
    position: absolute;
    right: -8%;
    bottom: -55%;
    width: 50%;
    height: 110%;
    border-radius: 50%;
    pointer-events: none;
    background: rgba(200, 161, 84, 0.09);
    filter: blur(44px);
}

.gesang:hover {
    transform: translateY(-3px);
    border-color: rgba(200, 161, 84, 0.48);
    box-shadow: var(--schatten-tief), 0 0 30px rgba(200, 161, 84, 0.07);
}

.gesang__nummer {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: clamp(2.9rem, 7vw, 4.1rem);
    height: clamp(2.9rem, 7vw, 4.1rem);
    color: var(--gold-hell);
    font-family: var(--serif);
    font-size: clamp(1.15rem, 1rem + 0.7vw, 1.55rem);
    border: 1px solid rgba(200, 161, 84, 0.42);
    background: rgba(8, 12, 19, 0.72);
    transform: rotate(45deg);
}

.gesang__nummer::first-line {
    transform: rotate(-45deg);
}

.gesang__nummer {
    line-height: 1;
}

.gesang__nummer::before {
    content: "";
    position: absolute;
    inset: 5px;
    border: 1px solid rgba(200, 161, 84, 0.18);
}

.gesang__nummer {
    text-indent: 0;
}

.gesang__nummer {
    color: transparent;
}

.gesang__nummer::after {
    content: attr(aria-label);
}

/* Die römische Ziffer liegt in einem eigenen, zurückgedrehten Elementersatz. */
.gesang__nummer::after {
    content: "";
}

.gesang__nummer {
    color: var(--gold-hell);
}

.gesang__inhalt {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.gesang__herkunft {
    margin-bottom: 0.35rem;
    color: var(--gold);
    font-size: 0.68rem;
    letter-spacing: 0.23em;
    text-transform: uppercase;
}

.gesang h3 {
    font-size: clamp(1.5rem, 1.15rem + 1.25vw, 2.25rem);
}

.gesang__beschreibung {
    max-width: 66ch;
    color: var(--text);
}

.gesang audio {
    display: block;
    width: 100%;
    max-width: 44rem;
    margin-top: 1.15rem;
    accent-color: var(--gold);
    color-scheme: dark;
}

.gesang__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 1rem;
    align-items: center;
    margin-top: 0.9rem;
    color: var(--text-leise);
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gesang__meta span:not(:last-of-type)::after {
    content: "·";
    margin-left: 1rem;
    color: rgba(200, 161, 84, 0.42);
}

.gesang__meta a {
    color: var(--gold-hell);
    text-decoration: none;
    border-bottom: 1px solid rgba(200, 161, 84, 0.42);
}

.gesang__meta a:hover {
    color: var(--pergament);
    border-bottom-color: var(--gold);
}

.sammlung-download {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    align-items: center;
    margin-top: var(--lueck-l);
    padding-top: var(--lueck-m);
    border-top: var(--linie);
}

.sammlung-download > span {
    color: var(--pergament-2);
    font-family: var(--serif);
}

@media (max-width: 560px) {
    .archivnav {
        top: 5.2rem;
    }

    .gesang {
        grid-template-columns: 1fr;
    }

    .gesang__nummer {
        margin: 0.55rem 0 0.35rem 0.55rem;
    }
}

/* ---------- Großansicht ---------- */
.lichtkasten {
    width: min(94vw, 1180px);
    max-width: none;
    max-height: 92vh;
    padding: 0;
    overflow: visible;
    color: var(--text);
    border: 1px solid rgba(200, 161, 84, 0.42);
    border-radius: var(--radius);
    background: var(--tiefe);
    box-shadow: var(--schatten-tief);
}

.lichtkasten::backdrop {
    background: rgba(3, 5, 9, 0.9);
    backdrop-filter: blur(6px);
}

.lichtkasten figure {
    display: grid;
    place-items: center;
    margin: 0;
    max-height: 92vh;
}

.lichtkasten img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: calc(92vh - 4.5rem);
    object-fit: contain;
}

.lichtkasten figcaption {
    width: 100%;
    padding: 0.8rem 1rem;
    color: var(--pergament-2);
    font-family: var(--serif);
    text-align: center;
    border-top: var(--linie);
}

.lichtkasten__schliessen {
    position: absolute;
    z-index: 5;
    top: -0.9rem;
    right: -0.9rem;
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    cursor: pointer;
    color: var(--nacht);
    font: 1.7rem/1 var(--sans);
    border: 1px solid var(--gold-hell);
    border-radius: 50%;
    background: linear-gradient(180deg, var(--gold-hell), var(--gold));
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55);
}

@media (prefers-reduced-motion: reduce) {
    .bildkarte,
    .bildkarte__bild img,
    .gesang {
        transition: none;
    }

    .bildkarte:hover,
    .gesang:hover,
    .bildkarte:hover .bildkarte__bild img {
        transform: none;
    }
}
