/* History page (/unsere-geschichte): tokens, the photo hero and the sticky year bar.
   Design C "Fotobänder", picked 30.11.2026. Phone first on the 600 / 900 / 1200 ladder.
   Prefix hy- (classes) / --hy-* (tokens). */

:root {
    --hy-ink: #111214;
    --hy-text: #33353a;
    --hy-muted: rgba(17, 18, 20, .5);
    --hy-line: #e2ddd4;
    --hy-line2: #cfc7b8;
    --hy-or: #FF6A00;
    --hy-or-hover: #e55e00;
    --hy-milk: #EDE3D5;
    --hy-head: 72px;
}

.hy-page { color: var(--hy-ink); background: #fff; }
.hy-page a { text-decoration: none; }

.hy-eyebrow {
    display: block; margin: 0 0 14px;
    font: 800 10px/1.2 Roboto, sans-serif; letter-spacing: .18em; text-transform: uppercase;
    color: var(--hy-or);
}

.hy-preview {
    position: relative; z-index: 2; margin: 0; padding: 12px 20px;
    background: var(--hy-or); color: #fff; font: 600 13px/1.4 Roboto, sans-serif; text-align: center;
}

/* ── Hero ── */
.hy-hero { position: relative; min-height: 88vh; display: flex; align-items: flex-end; overflow: hidden; color: var(--hy-milk); }
.hy-hero picture, .hy-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hy-hero__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(17, 18, 20, .88) 0%, rgba(17, 18, 20, .35) 55%, rgba(17, 18, 20, .15) 100%); }
.hy-hero__inner { position: relative; width: 100%; max-width: 1140px; margin: 0 auto; padding: 120px 20px 48px; }
.hy-hero__h1 {
    margin: 0; font: 800 clamp(40px, 8vw, 88px)/1 Roboto, sans-serif; letter-spacing: -.02em;
    text-transform: uppercase; text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}
.hy-hero__stats { display: flex; flex-wrap: wrap; gap: 20px 40px; margin: 32px 0 0; }
.hy-hero__stats div { display: flex; flex-direction: column-reverse; }
.hy-hero__stats dd { margin: 0; font: 800 clamp(26px, 4vw, 36px)/1.1 Roboto, sans-serif; }
.hy-hero__stats dt { font: 500 11px/1.4 Roboto, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: rgba(237, 227, 213, .62); }

/* ── Year bar: sticky under the fixed header, a sideways rail on a phone ── */
.hy-nav {
    position: sticky; top: var(--hy-head); z-index: 20;
    background: #fff; border-bottom: 1px solid var(--hy-line);
}
.hy-nav__list {
    display: flex; gap: 2px; margin: 0 auto; padding: 0 12px; max-width: 1240px; list-style: none;
    overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
}
.hy-nav__list::-webkit-scrollbar { display: none; }
.hy-nav__list li { scroll-snap-align: center; flex: 0 0 auto; }
.hy-nav__link {
    display: block; padding: 14px 8px 11px; border-bottom: 3px solid transparent;
    font: 700 13px/1 Roboto, sans-serif; color: rgba(17, 18, 20, .42); transition: color .15s, border-color .15s;
}
.hy-nav__link:hover { color: var(--hy-ink); }
.hy-nav__link.is-active { color: var(--hy-ink); border-bottom-color: var(--hy-or); }
.hy-nav__link:focus-visible { outline: 2px solid var(--hy-or); outline-offset: -2px; }
.hy-nav__short { display: none; }

[id^="y"] { scroll-margin-top: calc(var(--hy-head) + 48px); }

@media (min-width: 900px) {
    :root { --hy-head: 88px; }
    .hy-hero { min-height: 640px; height: 78vh; }
    .hy-hero__inner { padding: 140px 24px 64px; }
    .hy-hero__stats { gap: 56px; margin-top: 36px; }
    .hy-nav__list { justify-content: center; overflow: visible; }
    .hy-nav__link { padding: 16px 6px 13px; font-size: 12px; }
    .hy-nav__full { display: none; }
    .hy-nav__short { display: inline; }
}

@media (min-width: 1200px) {
    .hy-nav__link { padding: 16px 8px 13px; }
}

@media (prefers-reduced-motion: reduce) {
    .hy-nav__link { transition: none; }
    html { scroll-behavior: auto; }
}
