/* ============================================================
   Referenzen · redaktionelle Bühne + filterbares Stimmenarchiv
   ============================================================ */

.nav-link[aria-current="page"] {
    color: var(--green-dark);
}

.nav-link[aria-current="page"]::after {
    transform: scaleX(1);
}

.ref-page {
    overflow: clip;
}

.ref-hero {
    position: relative;
    min-height: 760px;
    padding: 144px 0 88px;
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 18%, rgba(128, 179, 44, 0.18), transparent 33%),
        radial-gradient(circle at 15% 76%, rgba(217, 119, 6, 0.09), transparent 29%),
        linear-gradient(180deg, #f6f9fc 0%, #ffffff 78%);
}

.ref-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.34;
    background-image: repeating-radial-gradient(circle at 20% 20%, rgba(10, 37, 64, 0.07) 0 0.7px, transparent 0.8px 6px);
    mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.ref-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(440px, 1.05fr);
    gap: clamp(48px, 7vw, 110px);
    align-items: center;
}

.ref-hero-copy .eyebrow {
    margin-bottom: 18px;
}

.ref-hero-title {
    max-width: 760px;
    margin: 0;
    font-family: "Outfit", "Inter", sans-serif;
    font-size: clamp(2.8rem, 5.3vw, 5rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
    color: var(--anthracite);
}

.ref-hero-title .gradient-word {
    display: inline;
}

.ref-hero-lead {
    max-width: 650px;
    margin: 28px 0 0;
    font-size: clamp(1rem, 1.35vw, 1.14rem);
    line-height: 1.72;
    color: var(--text);
}

.ref-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.ref-hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 44px 0 0;
    padding: 0;
    list-style: none;
}

.ref-hero-proof li {
    min-width: 138px;
    padding: 0 26px;
    border-left: 1px solid rgba(10, 37, 64, 0.14);
}

.ref-hero-proof li:first-child {
    padding-left: 0;
    border-left: 0;
}

.ref-hero-proof strong {
    display: block;
    font-family: "Outfit", "Inter", sans-serif;
    font-size: 1.4rem;
    color: var(--anthracite);
}

.ref-hero-proof span {
    display: block;
    margin-top: 4px;
    font-size: 0.77rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-light);
}

.ref-hero-collage {
    position: relative;
    min-height: 530px;
}

.ref-hero-orbit {
    position: absolute;
    inset: 5% 3% 2% 4%;
    border: 1px solid rgba(128, 179, 44, 0.25);
    border-radius: 50%;
    transform: rotate(-10deg);
}

.ref-hero-orbit::before,
.ref-hero-orbit::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(10, 37, 64, 0.08);
    border-radius: 50%;
}

.ref-hero-orbit::before {
    inset: 9%;
}

.ref-hero-orbit::after {
    inset: 19%;
}

.ref-portrait {
    position: absolute;
    margin: 0;
    overflow: hidden;
    background: #dfe8ef;
    box-shadow: 0 28px 70px rgba(10, 37, 64, 0.19);
    transform: translateZ(0);
}

.ref-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ref-portrait--main {
    inset: 6% 16% 8% 13%;
    border-radius: 48% 52% 44% 56% / 39% 44% 56% 61%;
    transform: rotate(-2deg);
}

.ref-portrait--top {
    top: 0;
    right: 0;
    width: 176px;
    aspect-ratio: 1;
    border: 8px solid #fff;
    border-radius: 50%;
    transform: rotate(4deg);
}

.ref-portrait--bottom {
    bottom: 0;
    left: 0;
    width: 190px;
    aspect-ratio: 4 / 5;
    border: 8px solid #fff;
    border-radius: 42% 58% 48% 52% / 57% 39% 61% 43%;
    transform: rotate(3deg);
}

.ref-hand-note {
    position: absolute;
    right: 1%;
    bottom: 10%;
    z-index: 3;
    max-width: 180px;
    margin: 0;
    font-family: "Caveat", cursive;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.08;
    color: #2c4a68;
    transform: rotate(-4deg);
}

.ref-hand-note::before {
    content: "";
    position: absolute;
    width: 58px;
    height: 28px;
    left: -69px;
    top: 14px;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    transform: rotate(12deg);
}

/* --- Bühne ------------------------------------------------- */

.ref-stage {
    position: relative;
    padding: 112px 0 56px;
    color: #fff;
    background:
        radial-gradient(circle at 12% 24%, rgba(128, 179, 44, 0.17), transparent 27%),
        radial-gradient(circle at 92% 78%, rgba(217, 119, 6, 0.12), transparent 31%),
        #11283b;
}

.ref-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.11;
    background-image: repeating-radial-gradient(circle, #fff 0 0.65px, transparent 0.8px 7px);
}

.ref-stage-intro,
.ref-stage-layout {
    position: relative;
    z-index: 1;
}

.ref-stage-intro {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.6fr);
    gap: 60px;
    align-items: end;
    padding-bottom: 54px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.ref-stage-intro .eyebrow {
    color: #e89b38;
}

.ref-stage-intro h2 {
    max-width: 760px;
    margin: 13px 0 0;
    font-family: "Outfit", "Inter", sans-serif;
    font-size: clamp(2.15rem, 4vw, 3.7rem);
    line-height: 1.04;
    letter-spacing: -0.035em;
    color: #fff;
}

.ref-stage-intro > p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.68);
}

.ref-stage-layout {
    display: grid;
    grid-template-columns: minmax(330px, 0.78fr) minmax(0, 1.12fr);
    gap: clamp(58px, 8vw, 126px);
    align-items: start;
}

.ref-spotlight {
    position: sticky;
    top: 112px;
    padding: 76px 0 84px;
}

.ref-spotlight-frame {
    position: relative;
    width: min(100%, 470px);
    aspect-ratio: 4 / 5;
}

.ref-spotlight-frame::before,
.ref-spotlight-frame::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
}

.ref-spotlight-frame::before {
    inset: -28px -34px 24px 18px;
    transform: rotate(6deg);
}

.ref-spotlight-frame::after {
    inset: 8px 18px -24px -28px;
    border-color: rgba(128, 179, 44, 0.36);
    transform: rotate(-5deg);
}

.ref-spotlight-image-wrap {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    border-radius: 47% 53% 44% 56% / 39% 46% 54% 61%;
    background: #dfe8ef;
    box-shadow: 0 34px 84px rgba(0, 0, 0, 0.28);
}

.ref-spotlight-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.32s ease, transform 0.72s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ref-spotlight-image-wrap img.is-changing {
    opacity: 0.2;
    transform: scale(1.025);
}

.ref-spotlight-counter {
    position: absolute;
    right: -12px;
    bottom: 32px;
    z-index: 2;
    display: flex;
    align-items: baseline;
    gap: 7px;
    min-width: 106px;
    padding: 13px 18px;
    border-radius: 999px;
    background: #fff;
    color: #11283b;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.2);
}

.ref-spotlight-counter strong {
    font-family: "Outfit", "Inter", sans-serif;
    font-size: 1.32rem;
}

.ref-spotlight-counter span {
    font-size: 0.78rem;
    font-weight: 800;
    color: #8090a0;
}

.ref-spotlight-caption {
    margin-top: 32px;
}

.ref-spotlight-caption strong,
.ref-spotlight-caption span {
    display: block;
}

.ref-spotlight-caption strong {
    font-family: "Outfit", "Inter", sans-serif;
    font-size: 1.15rem;
    color: #fff;
}

.ref-spotlight-caption span {
    margin-top: 6px;
    font-size: 0.86rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.58);
}

.ref-featured-list {
    min-width: 0;
}

.ref-story {
    display: flex;
    min-height: 78vh;
    flex-direction: column;
    justify-content: center;
    padding: 14vh 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    opacity: 0.28;
    transform: translateY(20px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.ref-story:first-child {
    border-top: 0;
}

.ref-story.is-active {
    opacity: 1;
    transform: translateY(0);
}

.ref-story-mobile-image {
    display: none;
}

.ref-story-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 34px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: #a8ce6a;
}

.ref-story-topline span:first-child {
    color: #e89b38;
}

.ref-story blockquote {
    margin: 0;
    font-family: "Outfit", "Inter", sans-serif;
    font-size: clamp(1.55rem, 2.5vw, 2.35rem);
    font-weight: 600;
    line-height: 1.34;
    letter-spacing: -0.02em;
    text-wrap: balance;
    color: #fff;
}

.ref-story footer {
    display: grid;
    gap: 5px;
    margin-top: 36px;
    padding-left: 24px;
    border-left: 3px solid var(--green);
}

.ref-story footer strong {
    font-size: 0.92rem;
    color: #fff;
}

.ref-story footer span {
    font-size: 0.8rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.58);
}

/* --- Stimmenarchiv ----------------------------------------- */

.ref-explorer {
    padding: 112px 0 126px;
    background: #fff;
}

.ref-explorer-head {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(320px, 0.52fr);
    gap: 64px;
    align-items: end;
}

.ref-explorer-head h2 {
    max-width: 760px;
    margin: 12px 0 0;
    font-family: "Outfit", "Inter", sans-serif;
    font-size: clamp(2.15rem, 4vw, 3.55rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
    color: var(--anthracite);
}

.ref-explorer-head > p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text);
}

.ref-tools {
    position: sticky;
    top: 72px;
    z-index: 5;
    display: grid;
    grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    margin-top: 58px;
    padding: 17px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(15px);
}

.ref-search-wrap {
    position: relative;
}

.ref-search-wrap::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 50%;
    width: 13px;
    height: 13px;
    border: 2px solid #7d8a97;
    border-radius: 50%;
    transform: translateY(-58%);
}

.ref-search-wrap::after {
    content: "";
    position: absolute;
    left: 15px;
    top: 56%;
    width: 7px;
    height: 2px;
    border-radius: 2px;
    background: #7d8a97;
    transform: rotate(45deg);
}

.ref-search {
    width: 100%;
    height: 46px;
    padding: 0 12px 0 34px;
    border: 0;
    border-bottom: 1px solid rgba(10, 37, 64, 0.22);
    border-radius: 0;
    outline: none;
    background: transparent;
    font: inherit;
    font-size: 0.9rem;
    color: var(--anthracite);
    transition: border-color 0.2s ease;
}

.ref-search:focus {
    border-bottom-color: var(--green);
}

.ref-search::placeholder {
    color: #8995a1;
}

.ref-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.ref-filter {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 0.76rem;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ref-filter:hover,
.ref-filter.is-active {
    border-color: var(--green);
    background: var(--green-soft);
    color: var(--green-dark);
}

.ref-filter-count {
    display: grid;
    min-width: 20px;
    height: 20px;
    place-items: center;
    border-radius: 999px;
    background: rgba(10, 37, 64, 0.07);
    font-size: 0.66rem;
}

.ref-result-count {
    margin: 0;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--text-light);
}

.ref-list {
    margin-top: 20px;
    border-bottom: 1px solid var(--border);
}

.ref-entry {
    border-top: 1px solid var(--border);
    background: #fff;
    transition: background 0.25s ease;
    content-visibility: auto;
    contain-intrinsic-size: 104px;
}

.ref-entry[open] {
    background: linear-gradient(90deg, rgba(128, 179, 44, 0.055), rgba(255, 255, 255, 0) 72%);
}

.ref-entry summary {
    display: grid;
    grid-template-columns: 44px 58px minmax(240px, 1fr) minmax(190px, auto) 34px;
    gap: 20px;
    align-items: center;
    min-height: 102px;
    padding: 15px 4px;
    list-style: none;
    cursor: pointer;
}

.ref-entry summary::-webkit-details-marker {
    display: none;
}

.ref-entry summary:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 4px;
}

.ref-entry-number {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #a0aab4;
}

.ref-entry-avatar {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: linear-gradient(135deg, #e7edf2, #d6e1e9);
}

.ref-entry-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ref-entry-avatar.has-fallback::before {
    content: attr(data-initials);
}

.ref-entry-name {
    min-width: 0;
}

.ref-entry-name strong,
.ref-entry-name small {
    display: block;
}

.ref-entry-name strong {
    font-family: "Outfit", "Inter", sans-serif;
    font-size: 1rem;
    line-height: 1.35;
    color: var(--anthracite);
}

.ref-entry-name small {
    margin-top: 4px;
    overflow: hidden;
    font-size: 0.76rem;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-light);
}

.ref-entry-tags {
    display: flex;
    justify-content: flex-end;
    gap: 7px;
}

.ref-entry-tags span {
    padding: 6px 9px;
    border-radius: 999px;
    background: #f3f6f8;
    font-size: 0.68rem;
    font-weight: 800;
    white-space: nowrap;
    color: #667787;
}

.ref-entry-toggle {
    position: relative;
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: 50%;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.25s ease;
}

.ref-entry-toggle::before,
.ref-entry-toggle::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 1.5px;
    border-radius: 2px;
    background: var(--anthracite);
    transform: translate(-50%, -50%);
}

.ref-entry-toggle::after {
    transform: translate(-50%, -50%) rotate(90deg);
    transition: transform 0.25s ease;
}

.ref-entry[open] .ref-entry-toggle {
    border-color: var(--green);
    background: var(--green-soft);
    transform: rotate(180deg);
}

.ref-entry[open] .ref-entry-toggle::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.ref-entry-body {
    display: grid;
    grid-template-columns: 122px minmax(0, 780px) 1fr;
    padding: 6px 4px 46px;
}

.ref-entry-body blockquote {
    grid-column: 2;
    margin: 0;
    font-family: "Outfit", "Inter", sans-serif;
    font-size: clamp(1.12rem, 1.65vw, 1.42rem);
    font-weight: 600;
    line-height: 1.55;
    letter-spacing: -0.01em;
    color: var(--anthracite);
}

.ref-empty {
    display: grid;
    gap: 5px;
    padding: 60px 0;
    text-align: center;
}

.ref-empty strong {
    font-family: "Outfit", "Inter", sans-serif;
    color: var(--anthracite);
}

.ref-empty span {
    font-size: 0.88rem;
    color: var(--text-light);
}

.ref-final-cta {
    padding-top: 0;
}

@media (max-width: 1100px) {
    .ref-hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(380px, 0.82fr);
        gap: 38px;
    }

    .ref-hero-collage {
        min-height: 470px;
    }

    .ref-stage-layout {
        grid-template-columns: minmax(290px, 0.64fr) minmax(0, 1fr);
        gap: 68px;
    }

    .ref-tools {
        grid-template-columns: minmax(240px, 0.55fr) minmax(0, 1fr);
    }

    .ref-result-count {
        grid-column: 1 / -1;
        justify-self: end;
        margin-top: -8px;
    }

    .ref-entry summary {
        grid-template-columns: 38px 54px minmax(210px, 1fr) auto 34px;
        gap: 15px;
    }
}

@media (max-width: 900px) {
    .ref-hero {
        min-height: 0;
        padding: 116px 0 68px;
    }

    .ref-hero-grid,
    .ref-stage-intro,
    .ref-explorer-head {
        grid-template-columns: minmax(0, 1fr);
    }

    .ref-hero-grid {
        gap: 52px;
    }

    .ref-hero-copy {
        text-align: center;
    }

    .ref-hero-copy .eyebrow,
    .ref-hero-actions,
    .ref-hero-proof {
        justify-content: center;
    }

    .ref-hero-title,
    .ref-hero-lead {
        margin-right: auto;
        margin-left: auto;
    }

    .ref-hero-collage {
        width: min(590px, 100%);
        min-height: 510px;
        margin: 0 auto;
    }

    .ref-stage {
        padding: 82px 0 24px;
    }

    .ref-stage-intro {
        gap: 22px;
        padding-bottom: 42px;
    }

    .ref-stage-layout {
        display: block;
    }

    .ref-spotlight {
        display: none;
    }

    .ref-story {
        min-height: 0;
        padding: 68px 0;
        opacity: 1;
        transform: none;
    }

    .ref-story-mobile-image {
        display: block;
        width: min(100%, 540px);
        aspect-ratio: 16 / 10;
        margin-bottom: 30px;
        border-radius: 32px 72px 34px 64px;
        object-fit: cover;
    }

    .ref-explorer {
        padding: 82px 0 96px;
    }

    .ref-explorer-head {
        gap: 22px;
    }

    .ref-tools {
        position: static;
        grid-template-columns: minmax(0, 1fr);
        margin-top: 42px;
    }

    .ref-result-count {
        grid-column: auto;
        justify-self: start;
        margin-top: 0;
    }

    .ref-entry summary {
        grid-template-columns: 44px minmax(0, 1fr) 34px;
        min-height: 96px;
    }

    .ref-entry-number,
    .ref-entry-tags {
        display: none;
    }

    .ref-entry-avatar {
        width: 44px;
        height: 44px;
    }

    .ref-entry-body {
        grid-template-columns: 59px minmax(0, 1fr);
        padding-right: 4px;
    }

    .ref-entry-body blockquote {
        grid-column: 2;
    }
}

@media (max-width: 600px) {
    .ref-hero-title {
        font-size: clamp(2.5rem, 12vw, 3.45rem);
    }

    .ref-hero-proof li {
        min-width: 0;
        flex: 1 1 33%;
        padding: 0 12px;
    }

    .ref-hero-proof strong {
        font-size: 1.12rem;
    }

    .ref-hero-proof span {
        font-size: 0.66rem;
    }

    .ref-hero-collage {
        min-height: 390px;
    }

    .ref-portrait--main {
        inset: 7% 9% 7% 9%;
    }

    .ref-portrait--top {
        width: 116px;
        border-width: 5px;
    }

    .ref-portrait--bottom {
        width: 126px;
        border-width: 5px;
    }

    .ref-hand-note {
        right: 0;
        bottom: 4%;
        max-width: 130px;
        font-size: 1.25rem;
    }

    .ref-story-topline {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .ref-story blockquote {
        font-size: 1.34rem;
        line-height: 1.45;
        text-wrap: pretty;
    }

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

    .ref-filter {
        justify-content: space-between;
    }

    .ref-entry summary {
        grid-template-columns: 42px minmax(0, 1fr) 32px;
        gap: 11px;
        padding: 14px 0;
    }

    .ref-entry-avatar {
        width: 42px;
        height: 42px;
    }

    .ref-entry-name strong {
        font-size: 0.93rem;
    }

    .ref-entry-name small {
        white-space: normal;
    }

    .ref-entry-body {
        display: block;
        padding: 2px 0 36px 53px;
    }

    .ref-entry-body blockquote {
        font-size: 1.03rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ref-story,
    .ref-spotlight-image-wrap img,
    .ref-entry-toggle,
    .ref-entry-toggle::after {
        transition: none;
    }
}
