/* ===== css/kopf/herkunft.css ===== */


:root[data-thema] .hk-main {
    position: relative;

    padding-bottom: 6rem;
    overflow-x: clip;
}

:root[data-thema] .hk-bahn {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 1.5rem;
}


:root[data-thema] .hk-buehne {
    position: relative;
    padding-bottom: 3.5rem;
    margin-bottom: 4.5rem;
    border-bottom: 1px solid var(--k-rand-seite);
}

:root[data-thema] .hk-buehne::before {
    content: "";
    position: absolute;
    top: -120px;
    left: 8%;
    width: 420px;
    max-width: 70%;
    height: 320px;
    background: radial-gradient(circle,
            var(--k-schein-leise) 0%, transparent 68%);
    pointer-events: none;
    z-index: 0;
}

:root[data-thema] .hk-buehne > * {
    position: relative;
    z-index: 1;
}

:root[data-thema] .hk-schild {
    display: inline-block;
    padding: 0.38rem 0.95rem;
    border-width: 1px;
    border-style: solid;
    border-radius: var(--k-rund-pille);
    background: var(--k-vertieft);
    color: var(--k-text-still);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

:root[data-thema] .hk-titel {
    margin: 1.5rem 0 1.6rem;
    font-family: 'Aerona Sans', system-ui, sans-serif;
    font-size: clamp(2.1rem, 5.2vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.12;
    background-image: linear-gradient(var(--k-winkel),
            var(--k-verlauf-a) 0%, var(--k-verlauf-b) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

:root[data-thema] .hk-titel.zeichen--zerfaellt,
:root[data-thema] .hk-kopf h2.zeichen--zerfaellt {
    visibility: hidden;
}

:root[data-thema] .hk-anriss {
    max-width: 68ch;
    margin-bottom: 1.1rem;
    color: var(--k-text-leise);
    font-size: 1.08rem;
    line-height: 1.75;
}

:root[data-thema] .hk-anriss em,
:root[data-thema] .hk-fazit em {
    color: var(--k-text);
    font-style: italic;
}


:root[data-thema] .hk-buehne-zahlen {
    display: flex;
    flex-wrap: wrap;
    gap: 2.6rem;
    margin-top: 2.6rem;
}

:root[data-thema] .hk-zahl {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

:root[data-thema] .hk-zahl strong {
    font-family: 'Aerona Sans', system-ui, sans-serif;
    font-size: 2.3rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    background-image: linear-gradient(var(--k-winkel),
            var(--k-verlauf-a) 0%, var(--k-verlauf-b) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    width: fit-content;
}

:root[data-thema] .hk-zahl span {
    max-width: 22ch;
    color: var(--k-text-still);
    font-size: 0.87rem;
    line-height: 1.5;
}


:root[data-thema] .hk-abschnitt {
    position: relative;
    margin-bottom: 5.5rem;
}

:root[data-thema] .hk-kopf {
    margin-bottom: 2.4rem;
}

:root[data-thema] .hk-nummer {
    display: block;
    margin-bottom: 0.7rem;
    color: var(--k-text-still);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

:root[data-thema] .hk-kopf h2 {
    margin: 0 0 0.9rem;
    font-family: 'Aerona Sans', system-ui, sans-serif;
    font-size: clamp(1.6rem, 3.4vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--k-text);
}

:root[data-thema] .hk-kopf-text,
:root[data-thema] .hk-text {
    max-width: 66ch;
    color: var(--k-text-leise);
    font-size: 1rem;
    line-height: 1.78;
}

:root[data-thema] .hk-text {
    margin-bottom: 1.3rem;
}

:root[data-thema] .hk-text code {
    padding: 0.1rem 0.35rem;
    border-radius: 5px;
    background: var(--k-vertieft-tief);
    color: var(--k-text);
    font-family: 'Aerona Mono', ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.88em;
}


:root[data-thema] .hk-main .fenster__ring,
:root[data-thema] .hk-main .fenster__zeichen-pixel {
    position: absolute;
    pointer-events: none;
    max-width: none;
    max-height: none;
}


@media (max-width: 720px) {
    :root[data-thema] .hk-buehne-zahlen {
        gap: 1.6rem 2rem;
    }

    :root[data-thema] .hk-zahl strong {
        font-size: 1.9rem;
    }

    :root[data-thema] .hk-abschnitt {
        margin-bottom: 4rem;
    }
}

:root[data-thema] .hk-gegenueber {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
    gap: 1.4rem;
}

:root[data-thema] .hk-seite {
    position: relative;
    padding: 1.8rem 1.7rem;
    border-width: 1px;
    border-style: solid;
    border-radius: var(--k-rund-gross);
    background: var(--k-vertieft);
    overflow: hidden;
}

:root[data-thema] .hk-seite::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    pointer-events: none;
}

:root[data-thema] .hk-seite--hier::before {
    background-image: var(--k-verlauf);
}

:root[data-thema] .hk-seite--anders::before {
    background: var(--k-rand-oben);
}

:root[data-thema] .hk-seite h3 {
    margin: 0 0 1.2rem;
    color: var(--k-text);
    font-size: 1.12rem;
    font-weight: 700;
}

:root[data-thema] .hk-seite ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

:root[data-thema] .hk-seite li {
    position: relative;
    padding: 0.6rem 0 0.6rem 1.25rem;
    color: var(--k-text-leise);
    font-size: 0.95rem;
    line-height: 1.62;
    border-bottom: 1px solid var(--k-rand-dicke);
}

:root[data-thema] .hk-seite li:last-child {
    border-bottom: 0;
}

:root[data-thema] .hk-seite li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.13rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--k-text-still);
}

:root[data-thema] .hk-seite--anders p {
    margin: 0;
    color: var(--k-text-still);
    font-size: 0.95rem;
    line-height: 1.7;
}

:root[data-thema] .hk-rechte {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr));
    gap: 1.2rem;
}

:root[data-thema] .hk-recht {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1.4rem;
    border-width: 1px;
    border-style: solid;
    border-radius: var(--k-rund-gross);
    background: var(--k-vertieft);
}

:root[data-thema] .hk-recht-quelle {
    align-self: flex-start;
    margin-bottom: 0.8rem;
    padding: 0.26rem 0.65rem;
    border-width: 1px;
    border-style: solid;
    border-radius: var(--k-rund-pille);
    background: var(--k-vertieft);
    color: var(--k-text-still);
    font-size: max(12px, 0.72rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

:root[data-thema] .hk-recht--stark .hk-recht-quelle {
    color: var(--k-text);
}

:root[data-thema] .hk-recht h3 {
    margin: 0 0 0.55rem;
    color: var(--k-text);
    font-size: 1.05rem;
    font-weight: 700;
}

:root[data-thema] .hk-recht p {
    margin: 0;
    color: var(--k-text-leise);
    font-size: 0.92rem;
    line-height: 1.66;
}

:root[data-thema] .hk-merksatz {
    position: relative;
    max-width: 62ch;
    margin: 2.2rem 0 0;
    padding: 1.15rem 1.4rem;
    border-width: 1px;
    border-style: solid;
    border-radius: var(--k-rund-mittel);
    background: var(--k-vertieft);
    color: var(--k-text);
    font-size: 1rem;
    line-height: 1.7;
}

:root[data-thema] .hk-grenzen {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
    gap: 1.1rem 2rem;
}

:root[data-thema] .hk-grenze {
    position: relative;
    display: flex;
    gap: 0.9rem;
    padding: 1.1rem 0;
}

:root[data-thema] .hk-grenze-zeichen {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 1.6rem;
    height: 1.6rem;
    margin-top: 0.1rem;
    border-radius: 50%;
    background: var(--k-vertieft);
    color: var(--k-text);
    font-size: 0.8rem;
}

:root[data-thema] .hk-grenze h3 {
    margin: 0 0 0.4rem;
    color: var(--k-text);
    font-size: 1rem;
    font-weight: 700;
}

:root[data-thema] .hk-grenze p {
    max-width: 46ch;
    margin: 0;
    color: var(--k-text-leise);
    font-size: 0.92rem;
    line-height: 1.68;
}

:root[data-thema] .hk-preise {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
    gap: 1.2rem;
}

:root[data-thema] .hk-preis {
    position: relative;
    padding: 1.4rem 1.35rem;
    border-width: 1px;
    border-style: solid;
    border-radius: var(--k-rund-mittel);
    background: var(--k-vertieft);
}

:root[data-thema] .hk-preis h3 {
    margin: 0 0 0.5rem;
    color: var(--k-text);
    font-size: 1.02rem;
    font-weight: 700;
}

:root[data-thema] .hk-preis p {
    margin: 0;
    color: var(--k-text-leise);
    font-size: 0.92rem;
    line-height: 1.66;
}

@media (max-width: 720px) {
    :root[data-thema] .hk-seite,
    :root[data-thema] .hk-recht {
        padding: 1.4rem 1.25rem;
    }
}




:root[data-thema] .hk-schritte {
    margin: 0;
    padding: 0;
    list-style: none;
}

:root[data-thema] .hk-schritt {
    position: relative;
    display: flex;
    gap: 1.3rem;
    padding: 0 0 2rem 0;
}

:root[data-thema] .hk-schritt::before {
    content: "";
    position: absolute;
    left: 1.05rem;
    top: 2.4rem;
    bottom: 0;
    width: 1px;
    background: var(--k-rand-seite);
}

:root[data-thema] .hk-schritt:last-child::before {
    display: none;
}

:root[data-thema] .hk-schritt-nr {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    background: var(--k-vertieft-tief);
    color: var(--k-text);
    font-family: 'Aerona Sans', system-ui, sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    z-index: 1;
}

:root[data-thema] .hk-schritt h3 {
    margin: 0.25rem 0 0.5rem;
    color: var(--k-text);
    font-size: 1.05rem;
    font-weight: 700;
}

:root[data-thema] .hk-schritt p {
    max-width: 62ch;
    margin: 0;
    color: var(--k-text-leise);
    font-size: 0.95rem;
    line-height: 1.7;
}


:root[data-thema] .hk-sorgen {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

:root[data-thema] .hk-sorge {
    position: relative;
    padding: 1.5rem 1.6rem;
    border-width: 1px;
    border-style: solid;
    border-radius: var(--k-rund-mittel);
    background: var(--k-vertieft);
}

:root[data-thema] .hk-sorge-frage {
    margin: 0 0 0.65rem;
    color: var(--k-text);
    font-size: 1.06rem;
    font-weight: 700;
    line-height: 1.4;
}

:root[data-thema] .hk-sorge p {
    max-width: 68ch;
    margin: 0;
    color: var(--k-text-leise);
    font-size: 0.96rem;
    line-height: 1.75;
}


:root[data-thema] .hk-fazit {
    position: relative;
    max-width: 66ch;
    padding: 1.6rem 1.7rem;
    border-width: 1px;
    border-style: solid;
    border-radius: var(--k-rund-gross);
    background: var(--k-vertieft);
}

:root[data-thema] .hk-fazit p {
    margin: 0 0 1rem;
    color: var(--k-text-leise);
    font-size: 1.02rem;
    line-height: 1.78;
}

:root[data-thema] .hk-fazit p:last-child {
    margin-bottom: 0;
}


:root[data-thema] .hk-verweise {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

:root[data-thema] .hk-verweis {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.15rem 1.3rem;
    border-width: 1px;
    border-style: solid;
    border-radius: var(--k-rund-mittel);
    background: var(--k-vertieft);
    text-decoration: none;
}

:root[data-thema] .hk-verweis strong {
    color: var(--k-text-leise);
    font-size: 1rem;
    font-weight: 700;
    transition: color var(--bew-mikro) var(--bew-knackig);
}

:root[data-thema] .hk-verweis:hover strong,
:root[data-thema] .hk-verweis:focus-visible strong {
    color: var(--k-text);
}

:root[data-thema] .hk-verweis span {
    color: var(--k-text-still);
    font-size: 0.87rem;
    line-height: 1.55;
}


@media (max-width: 720px) {
    :root[data-thema] .hk-sorge,
    :root[data-thema] .hk-fazit {
        padding: 1.25rem 1.3rem;
    }
}
