:root {
    --ink: #17201c;
    --muted: #64716b;
    --paper: #f8faf7;
    --surface: #ffffff;
    --line: #d8e0da;
    --accent: #c94724;
    --accent-strong: #a73518;
    --accent-cool: #2f766b;
    --signal: #f0bd3e;
    --shadow: 0 18px 60px rgba(14, 18, 16, 0.18);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: #101412;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    letter-spacing: 0;
    text-rendering: optimizeLegibility;
}

a {
    color: var(--accent-strong);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
    color: var(--accent-cool);
}

img,
video,
iframe,
object,
embed {
    max-width: 100%;
}

img {
    height: auto;
}

table {
    max-width: 100%;
    border-collapse: collapse;
}

.skip-link {
    position: fixed;
    left: 1rem;
    top: 1rem;
    z-index: 10000;
    transform: translateY(-160%);
    border-radius: 6px;
    background: var(--surface);
    color: var(--ink);
    padding: 0.65rem 0.9rem;
    box-shadow: var(--shadow);
    transition: transform 160ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-hero {
    position: relative;
    min-height: 520px;
    height: 68vh;
    max-height: 680px;
    isolation: isolate;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(9, 13, 11, 0.9) 0%, rgba(9, 13, 11, 0.66) 42%, rgba(9, 13, 11, 0.18) 100%),
        linear-gradient(180deg, rgba(9, 13, 11, 0.25) 0%, rgba(9, 13, 11, 0.72) 100%),
        url("/bilder/2014/Fotos_Yana/day2_ygs0508.jpg") center 55% / cover no-repeat;
}

@supports (background-image: image-set(url("/img/hero-2026.webp") type("image/webp"))) {
    .site-hero {
        background-image:
            linear-gradient(90deg, rgba(9, 13, 11, 0.9) 0%, rgba(9, 13, 11, 0.66) 42%, rgba(9, 13, 11, 0.18) 100%),
            linear-gradient(180deg, rgba(9, 13, 11, 0.25) 0%, rgba(9, 13, 11, 0.72) 100%),
            image-set(
                url("/img/hero-2026.webp") type("image/webp"),
                url("/bilder/2014/Fotos_Yana/day2_ygs0508.jpg") type("image/jpeg")
            );
    }
}

.site-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 12rem;
    z-index: -1;
    background: linear-gradient(0deg, rgba(16, 20, 18, 0.9), rgba(16, 20, 18, 0));
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
    text-decoration: none;
    min-width: 0;
}

.brand img {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}

.brand strong,
.brand small {
    display: block;
    line-height: 1.05;
}

.brand strong {
    font-size: 1.05rem;
}

.brand small {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.25rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(12, 16, 14, 0.54);
    padding: 0.35rem;
    backdrop-filter: blur(14px);
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 2.35rem;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    padding: 0.45rem 0.7rem;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.nav-links a[aria-current="page"] {
    box-shadow: inset 0 -2px 0 var(--signal);
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.35rem;
    min-height: 2.6rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #fff;
    background: rgba(12, 16, 14, 0.64);
    font: inherit;
    font-weight: 800;
    padding: 0.55rem 0.7rem;
}

.nav-toggle span {
    display: block;
    width: 1rem;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.hero-content {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 4rem 0 3.5rem;
    color: #fff;
}

.eyebrow {
    margin: 0 0 0.7rem;
    color: var(--signal);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.hero-content h1 {
    max-width: 780px;
    margin: 0;
    font-size: 4.25rem;
    line-height: 0.95;
    letter-spacing: 0;
}

.hero-copy {
    max-width: 680px;
    margin: 1.25rem 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.15rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.65rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.85rem;
    border-radius: 6px;
    font-weight: 900;
    text-decoration: none;
    padding: 0.72rem 1rem;
}

.button-primary {
    color: #fff;
    background: var(--accent);
}

.button-primary:hover,
.button-primary:focus-visible {
    color: #fff;
    background: var(--accent-strong);
}

.button-secondary {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.1);
}

.button-secondary:hover,
.button-secondary:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
}

.hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    max-width: 760px;
    margin: 2.2rem 0 0;
    padding: 0;
}

.hero-facts div {
    min-width: 9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    padding-top: 0.85rem;
}

.hero-facts dt {
    color: #fff;
    font-size: 1.85rem;
    font-weight: 950;
    line-height: 1;
}

.hero-facts dd {
    margin: 0.28rem 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.92rem;
}

.content-band {
    background:
        linear-gradient(180deg, var(--paper) 0, var(--surface) 240px),
        var(--surface);
    padding: 3rem 0 4rem;
}

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 3rem;
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    align-items: start;
}

.legacy-content {
    min-width: 0;
    font-size: 1rem;
    line-height: 1.7;
    overflow-wrap: anywhere;
    display: flow-root;
}

.legacy-content > img:first-child[src*="/img/hl.php"] {
    margin-bottom: 1.25rem;
}

.legacy-content img[src*="/img/hl.php"] {
    display: block;
    max-width: 100%;
}

.legacy-heading {
    clear: both;
    color: var(--ink);
    line-height: 1.12;
    letter-spacing: 0;
}

.legacy-heading:first-child {
    margin-top: 0;
}

.legacy-heading-16 {
    margin: 0 0 1.2rem;
    font-size: 2rem;
}

.legacy-heading-14,
.legacy-heading-12 {
    margin: 1.8rem 0 0.8rem;
    font-size: 1.35rem;
}

.legacy-heading::after {
    content: "";
    display: block;
    width: 4rem;
    height: 3px;
    border-radius: 999px;
    background: var(--accent);
    margin-top: 0.5rem;
}

.legacy-content img:not([src*="/img/hl.php"]) {
    border-radius: 6px;
}

.legacy-content a {
    font-weight: 750;
}

.legacy-content p,
.legacy-content ul,
.legacy-content ol {
    max-width: 74ch;
}

.legacy-content fieldset {
    min-width: 0;
    border: 1px solid var(--line) !important;
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 1px 0 rgba(14, 18, 16, 0.05);
    margin: 0 0 1rem !important;
    padding: 1rem !important;
}

.legacy-content legend {
    color: var(--ink);
    font-size: 1.02rem;
    font-weight: 900;
    padding: 0 0.4rem;
}

.legacy-content br[clear],
.legacy-content .clearer {
    clear: both;
}

.legacy-space {
    max-width: 100%;
}

.name {
    display: inline-block;
    margin-top: 0.4rem;
    color: var(--accent-strong);
    font-weight: 900;
    line-height: 1.25;
}

.gbild {
    float: right;
    max-width: 220px;
    margin: 0 0 1rem 1rem !important;
    border: 1px solid var(--line) !important;
    border-radius: 8px;
    background: var(--paper);
    padding: 0.5rem !important;
    text-align: center;
}

.gbild img {
    display: block;
    margin: 0 auto 0.35rem;
}

.galpic {
    float: left;
    width: min(220px, 100%);
    min-height: 190px;
    border: 1px solid var(--line) !important;
    border-radius: 8px;
    background: var(--surface) !important;
    color: var(--muted) !important;
    box-shadow: 0 10px 26px rgba(22, 28, 25, 0.08);
    font-size: 0.78rem !important;
    margin: 0 1rem 1rem 0 !important;
    padding: 0.65rem !important;
}

.galpic img {
    display: block;
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 6px;
}

.invis {
    opacity: 0.66;
    background: #f7dede !important;
}

.vidwrap,
.newsentry,
.nentry {
    border: 1px solid var(--line) !important;
    border-radius: 8px;
    background: var(--surface) !important;
    padding: 1rem !important;
}

.vidmetabox {
    border: 1px solid var(--line) !important;
    border-radius: 6px;
    background: var(--paper) !important;
    padding: 0.6rem !important;
}

.video-years {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 1rem 0 1.5rem;
}

.video-years a {
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    color: var(--ink);
    text-decoration: none;
    padding: 0.35rem 0.6rem;
}

.video-years a[aria-current="page"] {
    border-color: var(--accent);
    background: #ffe7df;
    color: var(--accent-strong);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.video-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(22, 28, 25, 0.08);
}

.video-card a {
    position: relative;
    display: block;
    color: #fff;
    text-decoration: none;
}

.video-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 0;
}

.video-card span {
    position: absolute;
    right: 0.65rem;
    bottom: 0.65rem;
    border-radius: 6px;
    background: rgba(16, 20, 18, 0.86);
    font-size: 0.82rem;
    font-weight: 900;
    padding: 0.35rem 0.55rem;
}

.video-card h3 {
    margin: 0;
    font-size: 0.98rem;
    padding: 0.75rem;
}

.years {
    float: left;
    border: 1px solid var(--line);
    border-radius: 6px;
    margin: 0 0.45rem 0.75rem 0;
    padding: 0.32rem 0.5rem;
    background: var(--paper);
}

.yearactive {
    border-color: var(--accent);
    background: #ffe7df;
}

.archive-rail {
    position: sticky;
    top: 1rem;
    border-left: 3px solid var(--accent);
    padding-left: 1rem;
}

.archive-rail h2 {
    margin: 0 0 0.9rem;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.archive-rail a {
    display: block;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
    padding: 0.8rem 0;
}

.archive-rail a:hover,
.archive-rail a:focus-visible {
    color: var(--accent-strong);
}

.archive-rail span {
    display: block;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    background: #101412;
    color: rgba(255, 255, 255, 0.76);
    padding: 1.4rem max(1rem, calc((100vw - 1180px) / 2));
}

.site-footer strong,
.site-footer span {
    display: block;
}

.site-footer strong {
    color: #fff;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.85rem;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 800;
}

[hidden] {
    display: none !important;
}

#imglayer {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(5, 7, 6, 0.84);
    backdrop-filter: blur(7px);
}

#imgbox {
    position: fixed;
    left: 50%;
    top: 4vh;
    z-index: 9010;
    width: min(1120px, calc(100vw - 2rem));
    max-height: 92vh;
    overflow: auto;
    transform: translateX(-50%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: #101412;
    color: #fff;
    box-shadow: 0 24px 90px rgba(0, 0, 0, 0.46);
}

.lightbox-open {
    overflow: hidden;
}

.lightbox-frame {
    display: grid;
    gap: 0.8rem;
    padding: 0.8rem;
}

.lightbox-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.lightbox-title {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
}

.lightbox-actions {
    display: flex;
    gap: 0.4rem;
}

.lightbox-actions button {
    min-width: 2.4rem;
    min-height: 2.4rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 6px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.lightbox-actions button:hover,
.lightbox-actions button:focus-visible {
    background: rgba(255, 255, 255, 0.18);
}

.lightbox-media {
    display: grid;
    place-items: center;
    min-height: 12rem;
}

.lightbox-media img,
.lightbox-media video,
.lightbox-media iframe {
    max-height: calc(92vh - 6rem);
    width: auto;
    border: 0;
    border-radius: 6px;
}

.lightbox-media iframe {
    width: min(960px, calc(100vw - 4rem));
    aspect-ratio: 16 / 9;
}

@media (max-width: 920px) {
    .site-hero {
        height: auto;
        min-height: 560px;
    }

    .site-nav {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav-links {
        display: none;
        width: 100%;
        justify-content: flex-start;
    }

    body.nav-open .nav-links {
        display: flex;
    }

    .hero-content {
        padding-top: 2.5rem;
    }

    .hero-content h1 {
        font-size: 3rem;
        line-height: 1;
    }

    .content-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .archive-rail {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 1rem;
    }

    .archive-rail h2 {
        grid-column: 1 / -1;
    }
}

@media (max-width: 680px) {
    body {
        font-size: 15px;
    }

    .site-hero {
        min-height: 590px;
        background-position: 58% center;
    }

    .brand small {
        display: none;
    }

    .nav-links a {
        flex: 1 1 calc(50% - 0.25rem);
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 2.55rem;
    }

    .hero-copy {
        font-size: 1rem;
    }

    .hero-facts {
        gap: 0.9rem;
    }

    .hero-facts div {
        min-width: 7.5rem;
    }

    .content-band {
        padding-top: 2rem;
    }

    .legacy-content [style*="float:left"],
    .legacy-content [style*="float:right"],
    .gbild,
    .galpic {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 1rem !important;
    }

    .legacy-content [style*="position:"],
    .legacy-content [style*="width:400px"] {
        max-width: 100% !important;
    }

    .galpic img {
        height: auto;
        max-height: 220px;
    }

    .archive-rail {
        grid-template-columns: 1fr;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-footer nav {
        justify-content: flex-start;
    }

    .lightbox-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
