/* ------------------------------------------------------------
   FSV63 Geschichte-Seite
------------------------------------------------------------ */

:root {
    --fsv63-history-blue: #061a3a;
    --fsv63-history-blue-2: #0a2a5a;
    --fsv63-history-yellow: #ffdc21;
    --fsv63-history-white: #ffffff;
    --fsv63-history-text: #dbe7ff;
    --fsv63-history-muted: rgba(255, 255, 255, .72);
    --fsv63-history-card: rgba(255, 255, 255, .08);
    --fsv63-history-border: rgba(255, 255, 255, .14);
}

body.page-template-page-geschichte,
body.page-id .fsv63-history-page {
    background: var(--fsv63-history-blue);
}

.fsv63-history-page {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 4%, rgba(255, 220, 33, .18), transparent 34%),
        radial-gradient(circle at 90% 20%, rgba(63, 132, 255, .22), transparent 35%),
        linear-gradient(180deg, #061831 0%, #082451 42%, #061831 100%);
    color: var(--fsv63-history-white);
}

.fsv63-history-page::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.25));
    opacity: .34;
}

.fsv63-history-hero,
.fsv63-history-intro,
.fsv63-history-content,
.fsv63-history-cta {
    position: relative;
    z-index: 1;
}

.fsv63-history-hero {
    min-height: 640px;
    display: flex;
    align-items: stretch;
    background:
        linear-gradient(110deg, rgba(3, 16, 38, .96) 0%, rgba(7, 32, 75, .90) 48%, rgba(5, 20, 44, .64) 100%),
        var(--geschichte-hero-image, none),
        linear-gradient(135deg, #061a3a, #0b3473);
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.fsv63-history-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 6px;
    background: linear-gradient(90deg, transparent, var(--fsv63-history-yellow), transparent);
    opacity: .9;
}

.fsv63-history-hero__inner {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, .8fr);
    gap: 34px;
    align-items: center;
    padding: 92px 0 86px;
}

.fsv63-history-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    width: fit-content;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255, 220, 33, .12);
    border: 1px solid rgba(255, 220, 33, .35);
    color: var(--fsv63-history-yellow);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.fsv63-history-kicker .fsv63-fa-icon {
    font-size: 14px;
}

.fsv63-history-hero h1 {
    margin: 22px 0 18px;
    max-width: 820px;
    color: #fff;
    font-size: clamp(46px, 7vw, 92px);
    line-height: .93;
    font-weight: 950;
    letter-spacing: -.055em;
    text-transform: uppercase;
    text-wrap: balance;
}

.fsv63-history-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255,255,255,.86);
    font-size: clamp(17px, 1.8vw, 21px);
    line-height: 1.72;
}

.fsv63-history-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.fsv63-history-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 13px 20px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.fsv63-history-btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.fsv63-history-btn--primary {
    color: #071a39;
    background: var(--fsv63-history-yellow);
    box-shadow: 0 16px 30px rgba(255,220,33,.2);
}

.fsv63-history-btn--ghost {
    color: #fff;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
}

.fsv63-history-hero__panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.fsv63-history-hero-stat {
    min-height: 182px;
    padding: 20px;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,.06));
    border: 1px solid rgba(255,255,255,.16);
    box-shadow: 0 22px 48px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.12);
    backdrop-filter: blur(12px);
}

.fsv63-history-hero-stat__icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    color: var(--fsv63-history-yellow);
    background: rgba(255,220,33,.11);
    border: 1px solid rgba(255,220,33,.28);
    margin-bottom: 16px;
}

.fsv63-history-hero-stat__icon .fsv63-fa-icon {
    font-size: 21px;
}

.fsv63-history-hero-stat strong,
.fsv63-history-hero-stat em,
.fsv63-history-hero-stat small {
    display: block;
}

.fsv63-history-hero-stat strong {
    color: #fff;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1;
    font-weight: 950;
    letter-spacing: -.04em;
}

.fsv63-history-hero-stat em {
    margin-top: 7px;
    color: var(--fsv63-history-yellow);
    font-style: normal;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.fsv63-history-hero-stat small {
    margin-top: 10px;
    color: rgba(255,255,255,.72);
    font-size: 13px;
    line-height: 1.45;
}

.fsv63-history-intro {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
    padding: 70px 0 34px;
}

.fsv63-history-intro__head {
    max-width: 820px;
    margin-bottom: 26px;
}

.fsv63-history-intro__head h2,
.fsv63-history-cta h2 {
    margin: 16px 0 12px;
    color: #fff;
    font-size: clamp(34px, 4.8vw, 64px);
    line-height: 1;
    font-weight: 950;
    letter-spacing: -.045em;
    text-transform: uppercase;
}

.fsv63-history-intro__head p,
.fsv63-history-cta p {
    margin: 0;
    color: rgba(255,255,255,.78);
    font-size: 17px;
    line-height: 1.7;
}

.fsv63-history-values {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.fsv63-history-value-card {
    position: relative;
    overflow: hidden;
    padding: 26px;
    border-radius: 24px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.13);
    box-shadow: 0 18px 42px rgba(0,0,0,.18);
}

.fsv63-history-value-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--fsv63-history-yellow), rgba(255,255,255,.05));
}

.fsv63-history-value-card > span {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #081a38;
    background: var(--fsv63-history-yellow);
    margin-bottom: 18px;
}

.fsv63-history-value-card h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 22px;
    font-weight: 950;
}

.fsv63-history-value-card p {
    margin: 0;
    color: rgba(255,255,255,.72);
    line-height: 1.65;
}

.fsv63-history-content {
    padding: 30px 0 0;
}

/* Bestehende Timeline/Archiv-Komponenten auf neuen FSV-Look ziehen */
.fsv63-history-page .fsv-history-timeline,
.fsv63-history-page .fsv-history-archive {
    width: min(1240px, calc(100% - 40px));
    max-width: none;
}

.fsv63-history-page .fsv-history-timeline {
    margin-bottom: 54px;
    padding-inline: 0;
}

.fsv63-history-page .fsv-history-timeline__header h2,
.fsv63-history-page .fsv-history-archive__header h2 {
    color: #fff;
    font-size: clamp(34px, 5vw, 72px);
    letter-spacing: -.05em;
}

.fsv63-history-page .fsv-history-timeline__header h2::after,
.fsv63-history-page .fsv-history-archive__header h2::after {
    background: linear-gradient(90deg, var(--fsv63-history-yellow), rgba(255,255,255,.08));
}

.fsv63-history-page .fsv-history-item__toggle,
.fsv63-history-page .fsv-history-archive__toggle {
    background: linear-gradient(180deg, #ffdf36, #f3c60e);
    color: #071a38;
    border-color: rgba(255,255,255,.2);
}

.fsv63-history-page .fsv-history-item__text,
.fsv63-history-page .fsv-history-archive__content {
    background: rgba(255,255,255,.09);
    border-color: rgba(255,255,255,.14);
    color: rgba(255,255,255,.82);
}

.fsv63-history-page .fsv-history-item__text p,
.fsv63-history-page .fsv-history-archive__intro {
    color: rgba(255,255,255,.78);
}

.fsv63-history-page .fsv-history-item__image-wrap {
    background: linear-gradient(135deg, rgba(255,220,33,.14), rgba(255,255,255,.06));
    border-color: rgba(255,255,255,.16);
}

.fsv63-history-page .fsv-history-item__image-wrap--fallback {
    min-height: 245px;
}

.fsv63-history-page .fsv-history-item__image-fallback {
    min-height: 245px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background:
        radial-gradient(circle at 50% 30%, rgba(255,220,33,.25), transparent 34%),
        linear-gradient(135deg, rgba(7,32,75,.95), rgba(3,12,30,.98));
}

.fsv63-history-page .fsv-history-item__image-fallback span {
    width: 72px;
    height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    background: rgba(255,220,33,.14);
    border: 1px solid rgba(255,220,33,.34);
    color: var(--fsv63-history-yellow);
    font-size: 32px;
}

.fsv63-history-page .fsv-history-item__image-fallback strong {
    color: #fff;
    font-size: 32px;
    font-weight: 950;
    letter-spacing: -.04em;
}

.fsv63-history-page .fsv-history-item__label {
    background: var(--fsv63-history-yellow);
    color: #071a38;
}

.fsv63-history-page .fsv-history-stats {
    gap: 16px;
}

.fsv63-history-page .fsv-history-stat {
    background: rgba(255,255,255,.09);
    border-color: rgba(255,255,255,.15);
}

.fsv63-history-page .fsv-history-stat__value {
    color: var(--fsv63-history-yellow);
}

.fsv63-history-page .fsv-history-archive__table-wrap {
    border-radius: 20px;
    overflow: auto;
    border: 1px solid rgba(255,255,255,.11);
}

.fsv63-history-page .fsv-history-archive__table {
    min-width: 760px;
}

.fsv63-history-cta {
    width: min(1240px, calc(100% - 40px));
    margin: 54px auto 80px;
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr);
    gap: 28px;
    align-items: stretch;
    padding: 34px;
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(255,220,33,.15), rgba(255,255,255,.06)),
        rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 28px 70px rgba(0,0,0,.24);
}

.fsv63-history-cta__links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.fsv63-history-cta__links a {
    position: relative;
    min-height: 170px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    padding: 20px;
    border-radius: 22px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    color: #fff;
    overflow: hidden;
    transition: transform .2s ease, background .2s ease;
}

.fsv63-history-cta__links a:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,.14);
    text-decoration: none;
}

.fsv63-history-cta__links .fsv63-fa-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    color: #071a38;
    background: var(--fsv63-history-yellow);
    font-size: 20px;
}

.fsv63-history-cta__links strong,
.fsv63-history-cta__links small {
    display: block;
}

.fsv63-history-cta__links strong {
    font-size: 18px;
    font-weight: 950;
}

.fsv63-history-cta__links small {
    color: rgba(255,255,255,.7);
    font-size: 13px;
}

@media (max-width: 1040px) {
    .fsv63-history-hero__inner,
    .fsv63-history-cta {
        grid-template-columns: 1fr;
    }

    .fsv63-history-hero__panel,
    .fsv63-history-cta__links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fsv63-history-values {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .fsv63-history-hero__inner,
    .fsv63-history-intro,
    .fsv63-history-page .fsv-history-timeline,
    .fsv63-history-page .fsv-history-archive,
    .fsv63-history-cta {
        width: min(100% - 28px, 1240px);
    }

    .fsv63-history-hero {
        min-height: auto;
        background:
            linear-gradient(180deg, rgba(3,16,38,.94), rgba(7,32,75,.90)),
            var(--geschichte-hero-image, none),
            linear-gradient(135deg, #061a3a, #0b3473);
        background-size: cover;
        background-position: center;
    }

    .fsv63-history-hero__inner {
        padding: 58px 0 52px;
    }

    .fsv63-history-hero__panel,
    .fsv63-history-cta__links {
        grid-template-columns: 1fr;
    }

    .fsv63-history-hero-stat {
        min-height: 0;
    }

    .fsv63-history-btn {
        width: 100%;
    }

    .fsv63-history-cta {
        padding: 22px;
        border-radius: 24px;
    }

    .fsv63-history-page .fsv-history-item__image-wrap--fallback,
    .fsv63-history-page .fsv-history-item__image-fallback {
        min-height: 190px;
    }
}
