/* ============================================================
   Gemeinsames Layout für Unternehmens- und Rechtstext-Unterseiten
   ============================================================ */

.subpage-body {
    background: #f6f8fb;
    color: var(--text, #46576a);
}

.subpage-main {
    min-height: 70vh;
    padding-top: var(--nav-h, 76px);
}

.subpage-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(76px, 9vw, 124px) 0 clamp(62px, 7vw, 94px);
    background:
        radial-gradient(circle at 78% 18%, rgba(128, 179, 44, 0.15), transparent 30%),
        radial-gradient(circle at 14% 112%, rgba(217, 119, 6, 0.1), transparent 34%),
        linear-gradient(180deg, #fff 0%, #f7fafc 100%);
}

.subpage-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.22;
    background-image: radial-gradient(rgba(10, 37, 64, 0.15) 0.7px, transparent 0.7px);
    background-size: 19px 19px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 28%, #000 72%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 28%, #000 72%, transparent);
}

.subpage-hero-inner {
    max-width: 920px;
}

.subpage-eyebrow {
    margin: 0 0 16px;
    color: var(--kicker, #d97706);
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.subpage-hero h1 {
    max-width: 900px;
    margin: 0;
    color: var(--anthracite, #3e4a56);
    font-family: "Outfit", "Inter", sans-serif;
    font-size: clamp(2.65rem, 6vw, 5.4rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.subpage-hero h1 span {
    display: inline-block;
    background: linear-gradient(115deg, var(--green, #80b32c) 0%, var(--green-dark, #6a9624) 58%, var(--kicker, #d97706) 120%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.subpage-lead {
    max-width: 760px;
    margin: 24px 0 0;
    color: #617286;
    font-size: clamp(1.02rem, 1.6vw, 1.22rem);
    line-height: 1.72;
}

.subpage-source-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 27px 0 0;
    padding: 8px 12px;
    border: 1px solid rgba(128, 179, 44, 0.22);
    border-radius: 999px;
    color: #607384;
    background: rgba(255, 255, 255, 0.72);
    font-size: 0.76rem;
    font-weight: 700;
}

.subpage-source-note::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green, #80b32c);
    box-shadow: 0 0 0 4px rgba(128, 179, 44, 0.11);
}

.subpage-section {
    padding: clamp(64px, 8vw, 110px) 0 clamp(86px, 10vw, 140px);
}

.subpage-layout {
    display: grid;
    grid-template-columns: minmax(190px, 0.28fr) minmax(0, 0.72fr);
    gap: clamp(34px, 6vw, 82px);
    align-items: start;
}

.subpage-layout--single {
    display: block;
}

.subpage-toc {
    position: sticky;
    top: calc(var(--nav-h, 76px) + 28px);
    max-height: calc(100vh - var(--nav-h, 76px) - 56px);
    overflow-y: auto;
    padding: 22px;
    border: 1px solid rgba(10, 37, 64, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 16px 38px rgba(10, 37, 64, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    scrollbar-width: thin;
    scrollbar-color: rgba(106, 150, 36, 0.45) transparent;
}

.subpage-toc strong {
    display: block;
    margin-bottom: 13px;
    color: var(--anthracite, #3e4a56);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.subpage-toc a {
    display: block;
    padding: 7px 0;
    color: #6b7a8b;
    font-size: 0.81rem;
    line-height: 1.38;
    transition: color 0.2s ease, transform 0.2s ease;
}

.subpage-toc a:hover {
    color: var(--green-dark, #6a9624);
    transform: translateX(3px);
}

.subpage-article {
    min-width: 0;
    padding: clamp(30px, 5vw, 72px);
    border: 1px solid rgba(10, 37, 64, 0.08);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 26px 70px rgba(10, 37, 64, 0.075);
}

.subpage-layout--single .subpage-article {
    max-width: 980px;
    margin: 0 auto;
}

.subpage-article > :first-child {
    margin-top: 0 !important;
}

.subpage-article h2,
.subpage-article h3,
.subpage-article h4,
.subpage-article h5,
.subpage-article h6 {
    color: var(--anthracite, #3e4a56);
    font-family: "Outfit", "Inter", sans-serif;
    letter-spacing: -0.025em;
}

.subpage-article h2 {
    margin: 2.3em 0 0.72em;
    padding-top: 0.2em;
    font-size: clamp(1.62rem, 2.6vw, 2.3rem);
    line-height: 1.14;
}

.subpage-article h3 {
    margin: 2em 0 0.64em;
    color: #465565;
    font-size: clamp(1.22rem, 1.9vw, 1.55rem);
    line-height: 1.24;
}

.subpage-article h4,
.subpage-article h5,
.subpage-article h6 {
    margin: 1.75em 0 0.55em;
    font-size: 1.08rem;
    line-height: 1.35;
}

.subpage-article p,
.subpage-article li,
.subpage-article td,
.subpage-article th {
    color: #596b7e;
    font-size: 0.97rem;
    line-height: 1.82;
}

.subpage-article p {
    margin: 0 0 1.15em;
}

.subpage-article ul,
.subpage-article ol {
    margin: 0 0 1.35em;
    padding-left: 1.35em;
}

.subpage-article li + li {
    margin-top: 0.42em;
}

.subpage-article strong {
    color: #3f4e5e;
}

.subpage-article a {
    color: var(--green-dark, #6a9624);
    font-weight: 700;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-decoration: underline;
    text-decoration-color: rgba(106, 150, 36, 0.3);
    text-underline-offset: 3px;
}

.subpage-article a:hover {
    text-decoration-color: currentColor;
}

.subpage-article blockquote {
    margin: 2em 0;
    padding: 20px 24px;
    border-left: 4px solid var(--green, #80b32c);
    border-radius: 0 16px 16px 0;
    background: #f4f8ed;
}

.subpage-article table {
    display: block;
    width: 100%;
    margin: 1.5em 0;
    overflow-x: auto;
    border-collapse: collapse;
}

.subpage-article th,
.subpage-article td {
    padding: 10px 12px;
    border: 1px solid #dfe7ef;
    text-align: left;
    vertical-align: top;
}

.subpage-article img {
    display: block;
    max-width: min(100%, 640px);
    height: auto;
    margin: 2em auto;
    border-radius: 18px;
}

.dsgvo-contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 170px;
    gap: clamp(42px, 8vw, 96px);
    align-items: center;
}

.dsgvo-contact-copy > :first-child {
    margin-top: 0;
}

.dsgvo-contact-copy > :last-child {
    margin-bottom: 0;
}

.subpage-article img.dsgvo-compliance-logo {
    width: 140px;
    max-width: 100%;
    margin: 0 auto;
    justify-self: center;
}

@media (max-width: 700px) {
    .dsgvo-contact-layout {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .subpage-article img.dsgvo-compliance-logo {
        margin: 0;
        justify-self: start;
    }
}

/* ============================================================
   Über uns: Idee und interaktiver Zeitstrahl
   ============================================================ */

.about-page {
    overflow: hidden;
}

.about-page .subpage-hero {
    padding-bottom: clamp(78px, 9vw, 116px);
}

.about-eyebrow {
    margin: 0 0 14px;
    color: var(--kicker, #d97706);
    font-size: 0.74rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.about-intro {
    position: relative;
    padding: clamp(78px, 9vw, 128px) 0 clamp(84px, 10vw, 142px);
    background: #fff;
}

.about-intro::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    top: 12%;
    right: -250px;
    border: 1px solid rgba(128, 179, 44, 0.12);
    border-radius: 50%;
    box-shadow: 0 0 0 72px rgba(128, 179, 44, 0.025), 0 0 0 144px rgba(128, 179, 44, 0.018);
    pointer-events: none;
}

.about-intro-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
    gap: clamp(48px, 8vw, 112px);
    align-items: start;
}

.about-intro-heading {
    position: sticky;
    top: calc(var(--nav-h, 76px) + 42px);
}

.about-intro-heading h2,
.about-history-head h2 {
    margin: 0;
    color: var(--anthracite, #3e4a56);
    font-family: "Outfit", "Inter", sans-serif;
    font-weight: 800;
    letter-spacing: -0.045em;
}

.about-intro-heading h2 {
    max-width: 480px;
    font-size: clamp(2.35rem, 4.7vw, 4.55rem);
    line-height: 1.02;
}

.about-intro-heading h2 span,
.about-history-head h2 span {
    background: linear-gradient(110deg, var(--green, #80b32c), var(--green-dark, #6a9624) 62%, var(--kicker, #d97706) 130%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.about-intro-copy {
    max-width: 680px;
}

.about-intro-copy p {
    margin: 0 0 1.15em;
    color: #5d6f81;
    font-size: clamp(1rem, 1.35vw, 1.12rem);
    line-height: 1.82;
}

.about-intro-copy .about-intro-lead {
    color: #405264;
    font-size: clamp(1.2rem, 2vw, 1.54rem);
    font-weight: 650;
    line-height: 1.55;
    letter-spacing: -0.018em;
}

.about-principle {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 20px;
    max-width: 740px;
    margin: clamp(52px, 7vw, 84px) 0 0 auto;
    padding: clamp(24px, 4vw, 36px);
    border: 1px solid rgba(128, 179, 44, 0.2);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(128, 179, 44, 0.09), rgba(255, 255, 255, 0.94));
    box-shadow: 0 22px 58px rgba(10, 37, 64, 0.06);
}

.about-principle-mark {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(145deg, var(--green, #80b32c), var(--green-dark, #6a9624));
    box-shadow: 0 10px 24px rgba(106, 150, 36, 0.24);
    font-size: 1.15rem;
    font-weight: 900;
}

.about-principle strong {
    display: block;
    margin: 1px 0 8px;
    color: var(--anthracite, #3e4a56);
    font-family: "Outfit", "Inter", sans-serif;
    font-size: 1.12rem;
}

.about-principle p {
    margin: 0;
    color: #637486;
    font-size: 0.91rem;
    line-height: 1.7;
}

.about-history {
    position: relative;
    isolation: isolate;
    padding: clamp(84px, 10vw, 142px) 0 clamp(100px, 12vw, 166px);
    background:
        radial-gradient(circle at 92% 8%, rgba(128, 179, 44, 0.15), transparent 24%),
        radial-gradient(circle at 4% 84%, rgba(217, 119, 6, 0.08), transparent 25%),
        #eef3f6;
}

.about-history::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.22;
    background-image: radial-gradient(rgba(10, 37, 64, 0.17) 0.7px, transparent 0.7px);
    background-size: 21px 21px;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
}

.about-history-head {
    max-width: 820px;
    margin: 0 auto clamp(42px, 6vw, 72px);
    text-align: center;
}

.about-history-head h2 {
    font-size: clamp(2.3rem, 5vw, 4.7rem);
    line-height: 1.04;
}

.about-history-head > p:last-child {
    max-width: 650px;
    margin: 22px auto 0;
    color: #617286;
    font-size: clamp(1rem, 1.4vw, 1.13rem);
    line-height: 1.72;
}

.history-explorer {
    --history-progress: 4.55%;
    max-width: 1160px;
    margin: 0 auto;
    padding: clamp(22px, 3.5vw, 38px);
    border: 1px solid rgba(10, 37, 64, 0.08);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 30px 85px rgba(23, 45, 66, 0.13);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.history-explorer:focus-visible {
    outline: 3px solid rgba(128, 179, 44, 0.45);
    outline-offset: 5px;
}

.history-explorer-meta {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 10px;
    color: #7a8998;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.history-explorer-meta b {
    color: var(--green-dark, #6a9624);
}

.history-years-shell {
    max-width: 100%;
    margin-bottom: clamp(26px, 4vw, 42px);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(106, 150, 36, 0.42) transparent;
}

.history-years {
    position: relative;
    display: grid;
    grid-template-columns: repeat(11, minmax(66px, 1fr));
    min-width: 760px;
    padding: 4px 0 24px;
}

.history-years::before,
.history-years::after {
    content: "";
    position: absolute;
    bottom: 8px;
    left: 0;
    height: 2px;
    border-radius: 999px;
}

.history-years::before {
    width: 100%;
    background: #dfe6eb;
}

.history-years::after {
    width: var(--history-progress);
    background: linear-gradient(90deg, var(--green, #80b32c), var(--green-dark, #6a9624));
    transition: width 0.38s ease;
}

.history-year {
    position: relative;
    z-index: 1;
    min-height: 44px;
    padding: 3px 5px 13px;
    border: 0;
    color: #8794a0;
    background: transparent;
    font: 800 0.72rem/1 "Inter", sans-serif;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.history-year::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 50%;
    width: 10px;
    height: 10px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #c9d3dc;
    box-shadow: 0 0 0 1px #c9d3dc;
    transform: translateX(-50%);
    transition: width 0.2s ease, height 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.history-year:hover {
    color: var(--green-dark, #6a9624);
    transform: translateY(-2px);
}

.history-year:focus-visible {
    border-radius: 8px;
    outline: 2px solid rgba(128, 179, 44, 0.65);
    outline-offset: 2px;
}

.history-year.is-active {
    color: var(--anthracite, #3e4a56);
}

.history-year.is-active::after {
    width: 16px;
    height: 16px;
    bottom: -6px;
    background: var(--green, #80b32c);
    box-shadow: 0 0 0 1px var(--green, #80b32c), 0 0 0 6px rgba(128, 179, 44, 0.13);
}

.history-stage {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 58px;
    grid-template-areas: "prev slide next";
    gap: clamp(13px, 2vw, 22px);
    align-items: center;
}

.history-viewport {
    grid-area: slide;
    min-width: 0;
}

.history-control {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border: 1px solid rgba(10, 37, 64, 0.1);
    border-radius: 50%;
    color: #fff;
    background: var(--anthracite, #3e4a56);
    box-shadow: 0 14px 30px rgba(27, 49, 68, 0.16);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.history-control--prev {
    grid-area: prev;
}

.history-control--next {
    grid-area: next;
}

.history-control svg {
    width: 24px;
    height: 24px;
}

.history-control:hover:not(:disabled) {
    background: var(--green-dark, #6a9624);
    transform: scale(1.06);
}

.history-control:focus-visible {
    outline: 3px solid rgba(128, 179, 44, 0.42);
    outline-offset: 4px;
}

.history-control:disabled {
    opacity: 0.25;
    cursor: not-allowed;
    box-shadow: none;
}

.history-slide[hidden] {
    display: none !important;
}

.history-slide {
    display: grid;
    grid-template-columns: minmax(185px, 0.34fr) minmax(0, 0.66fr);
    min-height: 450px;
    overflow: hidden;
    border: 1px solid rgba(10, 37, 64, 0.08);
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(23, 45, 66, 0.09);
}

.history-slide.is-active {
    animation: history-slide-in 0.38s ease both;
}

.history-slide-year {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 30px 18px;
    color: #fff;
    background: linear-gradient(150deg, #334652 0%, #52626c 100%);
    font-family: "Outfit", "Inter", sans-serif;
    font-size: clamp(3.7rem, 6.5vw, 6.9rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.075em;
}

.history-slide-year::before,
.history-slide-year::after {
    content: "";
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 50%;
}

.history-slide-year::before {
    width: 250px;
    height: 250px;
    top: -90px;
    left: -120px;
}

.history-slide-year::after {
    width: 170px;
    height: 170px;
    right: -105px;
    bottom: -45px;
    box-shadow: 0 0 0 44px rgba(255, 255, 255, 0.025);
}

.history-slide--future .history-slide-year {
    background: linear-gradient(150deg, var(--green-dark, #6a9624), #425e20 110%);
}

.history-slide--future .history-slide-copy {
    background: linear-gradient(145deg, rgba(128, 179, 44, 0.08), #fff 54%);
}

.history-slide-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: clamp(32px, 5vw, 58px);
}

.history-slide-kicker {
    margin: 0 0 11px;
    color: var(--kicker, #d97706);
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.history-slide-copy h3 {
    max-width: 650px;
    margin: 0 0 20px;
    color: var(--anthracite, #3e4a56);
    font-family: "Outfit", "Inter", sans-serif;
    font-size: clamp(1.75rem, 3.2vw, 3rem);
    font-weight: 780;
    line-height: 1.08;
    letter-spacing: -0.037em;
}

.history-slide-intro {
    margin: 0 0 20px;
    color: #526678;
    font-size: 0.98rem;
    font-weight: 570;
    line-height: 1.7;
}

.history-slide-copy ul {
    display: grid;
    gap: 11px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.history-slide-copy li {
    position: relative;
    padding-left: 22px;
    color: #617286;
    font-size: 0.9rem;
    line-height: 1.55;
}

.history-slide-copy li::before {
    content: "";
    position: absolute;
    top: 0.61em;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green, #80b32c);
    box-shadow: 0 0 0 4px rgba(128, 179, 44, 0.1);
}

.history-hint {
    margin: 20px 0 0;
    color: #8794a0;
    font-size: 0.72rem;
    font-weight: 650;
    text-align: center;
}

@keyframes history-slide-in {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.992);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 900px) {
    .about-intro-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .about-intro-heading {
        position: static;
    }

    .about-intro-heading h2 {
        max-width: 680px;
    }

    .about-principle {
        max-width: none;
    }

    .history-explorer {
        border-radius: 24px;
    }

    .history-stage {
        grid-template-columns: 48px minmax(0, 1fr) 48px;
    }

    .history-control {
        width: 48px;
        height: 48px;
    }

    .history-slide {
        grid-template-columns: 155px minmax(0, 1fr);
    }
}

@media (max-width: 700px) {
    .about-intro,
    .about-history {
        padding-top: 72px;
        padding-bottom: 88px;
    }

    .about-principle {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 15px;
        padding: 22px;
    }

    .about-principle-mark {
        width: 40px;
        height: 40px;
    }

    .history-explorer {
        padding: 18px;
        border-radius: 20px;
    }

    .history-stage {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "slide slide"
            "prev next";
        gap: 18px;
    }

    .history-control--prev {
        justify-self: end;
    }

    .history-control--next {
        justify-self: start;
    }

    .history-slide {
        grid-template-columns: 1fr;
        min-height: 0;
        border-radius: 20px;
    }

    .history-slide-year {
        min-height: 112px;
        padding: 18px;
        font-size: clamp(3.3rem, 17vw, 5.2rem);
    }

    .history-slide-copy {
        min-height: 410px;
        padding: 29px 24px 34px;
        justify-content: flex-start;
    }

    .history-slide-copy h3 {
        font-size: clamp(1.75rem, 8vw, 2.45rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .history-years::after,
    .history-year,
    .history-year::after,
    .history-control {
        transition: none;
    }

    .history-slide.is-active {
        animation: none;
    }
}

.company-section {
    padding: clamp(64px, 8vw, 110px) 0 clamp(90px, 10vw, 140px);
}

.team-grid,
.partner-grid {
    display: grid;
    gap: 24px;
}

.team-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.team-card,
.partner-card {
    overflow: hidden;
    border: 1px solid rgba(10, 37, 64, 0.08);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 22px 54px rgba(10, 37, 64, 0.07);
}

.team-card figure,
.partner-card figure {
    margin: 0;
    background: linear-gradient(145deg, #eef4f7, #f7faf3);
}

.team-card figure {
    aspect-ratio: 1 / 1;
}

.team-card img,
.partner-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card-copy {
    padding: 22px 22px 25px;
}

.team-card h2 {
    margin: 0;
    color: var(--anthracite, #3e4a56);
    font-family: "Outfit", "Inter", sans-serif;
    font-size: 1.28rem;
    line-height: 1.2;
}

.team-card p {
    margin: 7px 0 0;
    color: #657483;
    font-size: 0.94rem;
    line-height: 1.45;
}

.partner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.partner-card {
    display: grid;
    grid-template-columns: minmax(170px, 0.42fr) minmax(0, 0.58fr);
    min-height: 290px;
}

.partner-card figure {
    min-height: 100%;
}

.partner-card img {
    object-fit: contain;
}

.partner-card-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 28px;
}

.partner-card-copy h2 {
    margin: 0 0 12px;
    color: var(--anthracite, #3e4a56);
    font-family: "Outfit", "Inter", sans-serif;
    font-size: 1.35rem;
}

.partner-card-copy p {
    margin: 0 0 20px;
    color: #647589;
    font-size: 0.9rem;
    line-height: 1.66;
}

.partner-card-copy a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 9px 14px;
    border-radius: 999px;
    color: #fff;
    background: var(--green-dark, #6a9624);
    font-size: 0.78rem;
    font-weight: 800;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 28px;
    align-items: start;
}

.contact-form-card,
.contact-info-card {
    padding: clamp(28px, 4vw, 48px);
    border: 1px solid rgba(10, 37, 64, 0.08);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 22px 58px rgba(10, 37, 64, 0.07);
}

.contact-form-card h2,
.contact-info-card h2 {
    margin: 0 0 12px;
    color: var(--anthracite, #3e4a56);
    font-family: "Outfit", "Inter", sans-serif;
    font-size: clamp(1.65rem, 2.5vw, 2.15rem);
}

.contact-card-intro {
    margin: 0 0 28px;
    color: #65768a;
    line-height: 1.7;
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.contact-form[hidden], .contact-form-status[hidden] { display: none; }
.contact-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form-status { grid-column: 1 / -1; padding: 20px; border-radius: 12px; background: #f0f5f8; overflow-wrap: anywhere; }
.contact-form-status--error { background: #fff0ee; color: #982d25; }
.contact-form-status--success { background: #edf7f0; color: #205b38; }
.contact-form-status--success h3 { margin-top: 0; }
.contact-submit-row .btn:disabled { opacity: .6; cursor: wait; }

.contact-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-field--full,
.contact-confirm,
.contact-submit-row {
    grid-column: 1 / -1;
}

.contact-field label {
    color: #415365;
    font-size: 0.79rem;
    font-weight: 800;
}

.contact-field input,
.contact-field textarea {
    width: 100%;
    border: 1px solid #dbe5ee;
    border-radius: 12px;
    padding: 13px 14px;
    color: #33485b;
    background: #fbfcfd;
    font: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-field textarea {
    min-height: 160px;
    resize: vertical;
}

.contact-field input:focus,
.contact-field textarea:focus {
    border-color: rgba(128, 179, 44, 0.8);
    box-shadow: 0 0 0 4px rgba(128, 179, 44, 0.1);
}

.contact-confirm {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    color: #68798a;
    font-size: 0.78rem;
    line-height: 1.55;
}

.contact-confirm input {
    margin-top: 3px;
    accent-color: var(--green-dark, #6a9624);
}

.contact-confirm a,
.contact-info-card a {
    color: var(--green-dark, #6a9624);
    font-weight: 750;
}

.contact-submit-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.contact-submit-row .btn {
    border: 0;
    cursor: pointer;
}

.contact-form-note {
    margin: 0;
    color: #8290a0;
    font-size: 0.74rem;
    line-height: 1.5;
}

.contact-info-list {
    display: grid;
    gap: 0;
    margin: 24px 0 0;
}

.contact-info-item {
    padding: 18px 0;
    border-top: 1px solid #e5ebf1;
}

.contact-info-item small {
    display: block;
    margin-bottom: 5px;
    color: var(--kicker, #d97706);
    font-size: 0.67rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.contact-info-item strong,
.contact-info-item span,
.contact-info-item address {
    display: block;
    margin: 0;
    color: #4a5c6e;
    font-size: 0.92rem;
    font-style: normal;
    line-height: 1.6;
}

@media (max-width: 1050px) {
    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 900px) {
    .subpage-layout,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .subpage-toc {
        position: static;
        max-height: none;
        overflow: visible;
    }

    .subpage-toc nav {
        columns: 2;
        column-gap: 28px;
    }
}

@media (max-width: 620px) {
    .subpage-hero {
        padding-top: 58px;
    }

    .subpage-hero h1 {
        font-size: clamp(2.35rem, 13vw, 3.5rem);
    }

    .subpage-source-note {
        align-items: flex-start;
        border-radius: 14px;
        line-height: 1.45;
    }

    .subpage-toc nav {
        columns: 1;
    }

    .subpage-article {
        padding: 26px 22px;
        border-radius: 18px;
    }

    .team-grid,
    .partner-card,
    .contact-form {
        grid-template-columns: 1fr;
    }

    .partner-card {
        min-height: 0;
    }

    .partner-card figure {
        min-height: 220px;
    }
}

@media print {
    .nav,
    .mobile-menu,
    .footer,
    .subpage-toc,
    .subpage-source-note {
        display: none !important;
    }

    .subpage-main {
        padding-top: 0;
    }

    .subpage-hero {
        padding: 24px 0;
        background: #fff;
    }

    .subpage-section {
        padding: 0;
    }

    .subpage-article {
        max-width: none !important;
        padding: 0;
        border: 0;
        box-shadow: none;
    }

    .about-intro,
    .about-history {
        padding: 36px 0;
        background: #fff;
    }

    .history-explorer {
        padding: 0;
        border: 0;
        box-shadow: none;
    }

    .history-years-shell,
    .history-control,
    .history-explorer-meta,
    .history-hint {
        display: none !important;
    }

    .history-stage,
    .history-viewport {
        display: block;
    }

    .history-slide[hidden] {
        display: grid !important;
    }

    .history-slide {
        min-height: 0;
        margin-bottom: 18px;
        break-inside: avoid;
        box-shadow: none;
    }
}
