/* STUDIO Seite /welche-ki/ (page-welche-ki.hbs, js/welche-ki.js).
   Aufbau von oben nach unten, jeder Teil ein eigener Behälter mit demselben großen Abstand zum nächsten:
   1. Kopf      Titel in zwei Tönen, darunter der Satz mit Lücken (die Eingabe, weiß und offen)
   2. Antwort   hellgraue Kachel: sechs Logos, meine Wahl als Satz, Zahlen als weiße Karten (die Ausgabe)
   3. Vergleich Tabelle wie im Blogartikel, alle sechs für diese Aufgabe
   4. Team      schwarze Kachel mit fertiger Nachricht
   5. Alle      Tabelle: meine Wahl je Aufgabe
   6. Weiter    Artikel groß und grau wie „Was ich denke“ auf der Startseite
   Farben nur über die Namen aus css/global.css. Farbe bringen allein die Logos und das Violett der Diagramme.
   Bewegung nur über transform, opacity, filter. Jede Bewegung zeigt, was sich geändert hat oder was man antippen kann. */

.wk {
    --wk-leise: color-mix(in srgb, var(--text-color) 30%, transparent);
    --wk-violett: light-dark(#615FFF, #8583FF);
    --wk-on-ink-muted: light-dark(#8F8F8F, #6E6E6E);
    --wk-radius: clamp(20px, 2vw, 32px);
    --wk-abstand: clamp(88px, 10.5vw, 168px);   /* zwischen den Teilen */
    --wk-block: clamp(28px, 3.2vw, 48px);       /* innerhalb eines Teils */
    --wk-innen: clamp(20px, 3.4vw, 56px);       /* Innenabstand der Kacheln */
    --wk-gross: clamp(30px, 4.4vw, 68px);       /* der Satz */
    color: var(--text-color);
}

/* Der Inhalt beginnt neben dem stehenden Logo, nicht darunter: So stehen Titel, Satz und Antwort im ersten Bildschirm */
main.wk[data-accent-navigation="true"] {
    padding-top: 0;
}

.wk-seite {
    display: flex;
    flex-direction: column;
    gap: var(--wk-abstand);
    padding-top: max(128px, calc(9.4vw * var(--scale)));
    padding-bottom: var(--wk-abstand);
}

@media (min-width: 1000px) {
    .wk .wk-seite {
        padding-left: calc(max(26px, 1.8vw) + clamp(60px, 4.5vw, 88px));
    }
}

/* Schmaler als 1000 Pixel ist neben dem Logo kein Platz: Der Titel beginnt darunter */
@media (max-width: 999px) {
    .wk .wk-seite {
        padding-top: calc(var(--logo-vertical-top, 26px) + var(--logo-vertical-height, 240px) + 32px);
    }
}

/* Grundregeln des Themes für Überschriften, Absätze und Knöpfe hier aufheben */
.wk :is(h1, h2, h3, p) {
    margin: 0;
    color: inherit;
    font-family: var(--font1);
    letter-spacing: inherit;
}

.wk button,
.wk-wahl button {
    display: inline;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-align: inherit;
    cursor: pointer;
}

.wk a {
    color: inherit;
}

.wk :is(button, a, tr, .wk-luecke):focus-visible,
.wk-wahl button:focus-visible,
.wk-quelle a:focus-visible {
    outline: 2px solid var(--text-color);
    outline-offset: 3px;
    border-radius: 6px;
}

.wk-formen {
    position: absolute;
}

.wk-stern {
    display: inline-block;
    width: 0.78em;
    height: 0.78em;
    vertical-align: -0.04em;
    fill: currentColor;
    color: inherit;
}

.wk-kleben {
    white-space: nowrap;
}

.wk-leise {
    color: var(--wk-leise);
}

/* ============ 1. Kopf und Satz ============ */

.wk-kopf {
    margin-bottom: calc(var(--wk-block) * 1.4 - var(--wk-abstand));
}

.wk .wk-titel {
    margin-left: -0.05em;
    font-size: clamp(46px, 8.6vw, 148px);
    font-weight: 500;
    line-height: 0.95;
    letter-spacing: -0.05em;
    text-wrap: balance;
}

.wk .wk-titel span {
    display: block;
    color: var(--c-muted);
}

.wk .wk-satz {
    max-width: 21em;
    margin-bottom: calc(var(--wk-block) * 1.6 - var(--wk-abstand));
    color: var(--c-muted);
    font-size: var(--wk-gross);
    font-weight: 500;
    line-height: 1.16;
    letter-spacing: -0.045em;
    text-wrap: pretty;
}

/* Lücke: schwarzes Wort mit Linie und kleinem Pfeil. Ohne JavaScript bleibt es ein normales Wort */
.wk .wk-luecke {
    color: var(--text-color);
}

.wk.ist-bereit .wk-luecke {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.wk.ist-bereit .wk-luecke .wk-wort {
    text-decoration: underline;
    text-decoration-thickness: 0.05em;
    text-underline-offset: 0.17em;
    text-decoration-color: var(--wk-leise);
    transition: text-decoration-color .2s ease;
}

.wk-unten {
    display: none;
}

.wk.ist-bereit .wk-unten {
    display: inline-block;
    width: 0.4em;
    height: 0.4em;
    margin-left: 0.13em;
    vertical-align: 0.14em;
    color: var(--c-muted);
    transition: transform .25s var(--ease-transition), color .2s ease;
}

.wk.ist-bereit .wk-luecke[aria-expanded="true"] .wk-wort {
    text-decoration-color: var(--text-color);
}

.wk.ist-bereit .wk-luecke[aria-expanded="true"] .wk-unten {
    transform: rotate(180deg);
    color: var(--text-color);
}

@media (hover: hover) {
    .wk.ist-bereit .wk-luecke:hover .wk-wort { text-decoration-color: var(--text-color); }
    .wk.ist-bereit .wk-luecke:hover .wk-unten { color: var(--text-color); transform: translateY(0.08em); }
    .wk.ist-bereit .wk-luecke[aria-expanded="true"]:hover .wk-unten { transform: rotate(180deg); }
}

/* Beim Laden nicken die Pfeile einmal der Reihe nach: Diese Wörter kann man ändern */
.wk.ist-bereit .wk-satz .wk-luecke .wk-unten {
    animation: wk-nicken .5s var(--ease-transition) 1.1s 1 backwards;
}
.wk.ist-bereit .wk-satz .wk-luecke:nth-of-type(2) .wk-unten { animation-delay: 1.25s; }
.wk.ist-bereit .wk-satz .wk-luecke:nth-of-type(3) .wk-unten { animation-delay: 1.4s; }
.wk.ist-bereit .wk-satz .wk-luecke:nth-of-type(4) .wk-unten { animation-delay: 1.55s; }

@keyframes wk-nicken {
    0%, 100% { transform: translateY(0); }
    45% { transform: translateY(0.14em); }
}

/* Tippende Lücke: ein Strich hinter dem Wort, solange es sich schreibt */
.wk .wk-luecke.tippt .wk-wort::after {
    content: "";
    display: inline-block;
    width: 0.045em;
    height: 0.8em;
    margin-left: 0.04em;
    vertical-align: -0.05em;
    background: var(--text-color);
}

/* ============ Auswahl an der Lücke ============ */

.wk-schleier {
    position: fixed;
    inset: 0;
    z-index: 1090;
}

.wk-wahl {
    position: absolute;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 320px;
    max-width: calc(100vw - 32px);
    padding: 8px;
    border-radius: 24px;
    background: var(--c-card);
    box-shadow: 0 0 0 1px var(--c-hair), 0 24px 60px -20px var(--c-shadow);
    color: var(--text-color);
    font-family: var(--font1);
    animation: wk-auf .2s var(--ease-transition);
}

@keyframes wk-auf {
    from { opacity: 0; transform: translateY(-6px) scale(.985); }
}

.wk-wahl button {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.02em;
    transition: background-color .12s ease;
}

.wk-wahl button svg {
    flex: none;
    width: 22px;
    height: 22px;
}

.wk-wahl button small {
    display: block;
    margin-top: 1px;
    color: var(--c-muted);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.005em;
}

@media (hover: hover) {
    .wk-wahl button:hover { background: var(--c-tile); }
}

.wk-wahl button:focus-visible {
    background: var(--c-tile);
    outline: 0;
}

.wk-wahl button[aria-selected="true"] {
    background: var(--text-color);
    color: var(--c-on-ink);
}

.wk-wahl button[aria-selected="true"] small {
    color: var(--wk-on-ink-muted);
}

.wk-zaehler {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px;
}

.wk-zaehler b {
    min-width: 2.4ch;
    font-size: 48px;
    font-weight: 500;
    letter-spacing: -0.05em;
    line-height: 1;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.wk-wahl .wk-zaehler button {
    justify-content: center;
    width: 56px;
    height: 56px;
    padding: 0;
    border-radius: 999px;
    background: var(--c-tile);
    font-size: 26px;
    font-weight: 400;
}

.wk-wahl .wk-zaehler button:active {
    transform: scale(.94);
}

.wk-schnell {
    display: flex;
    gap: 2px;
}

.wk-wahl .wk-schnell button {
    justify-content: center;
    color: var(--c-muted);
    font-size: 16px;
    font-variant-numeric: tabular-nums;
}

/* Am Handy kommt die Auswahl von unten, die Seite dahinter wird dunkler */
@media (max-width: 640px) {
    .wk-schleier {
        background: rgba(0, 0, 0, .4);
        animation: wk-ein .2s ease;
    }

    .wk-wahl {
        position: fixed;
        top: auto !important;
        right: 0;
        bottom: 0;
        left: 0 !important;
        max-width: none;
        padding: 10px 10px calc(14px + env(safe-area-inset-bottom, 0px));
        border-radius: 28px 28px 0 0;
        box-shadow: none;
        animation: wk-hoch .3s var(--ease-transition);
    }

    .wk-wahl button {
        padding: 14px;
    }
}

@keyframes wk-hoch {
    from { transform: translateY(100%); }
}

@keyframes wk-ein {
    from { opacity: 0; }
}

/* ============ 2. Antwort ============ */

.wk-antwort {
    display: flex;
    flex-direction: column;
    gap: var(--wk-block);
    padding: var(--wk-innen);
    border-radius: var(--wk-radius);
    background: var(--c-tile);
}

.wk-antwort-kopf {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.wk .wk-stand {
    color: var(--c-muted);
    font-size: 14px;
    line-height: 1.3;
    text-align: right;
}

/* Sechs Logos: grau, die gezeigte KI in Farbe. Die Antwort auf einen Blick, bevor man liest */
.wk-reihe {
    display: flex;
    align-items: center;
    gap: clamp(6px, 1.2vw, 16px);
    margin-left: -8px;
}

.wk .wk-reihe button {
    display: block;
    width: clamp(40px, 3.6vw, 52px);
    height: clamp(40px, 3.6vw, 52px);
    padding: 8px;
    border-radius: 14px;
    color: var(--wk-leise);
    transition: color .25s ease, background-color .25s ease, transform .3s var(--ease-transition);
}

.wk .wk-reihe svg {
    display: block;
    width: 100%;
    height: 100%;
}

.wk .wk-reihe button.ist-an {
    background: var(--c-card);
    color: var(--text-color);
    transform: scale(1.12);
}

@media (hover: hover) {
    .wk .wk-reihe button:not(.ist-an):hover { color: var(--c-muted); }
}

.wk-wechsel {
    display: flex;
    flex-direction: column;
    gap: var(--wk-block);
}

/* Neue Antwort blendet kurz ein: Hier hat sich etwas geändert */
.wk-wechsel.ist-neu,
.wk-zettel.ist-neu {
    animation: wk-neu .35s var(--ease-transition);
}

@keyframes wk-neu {
    from { opacity: 0; transform: translateY(8px); filter: blur(6px); }
}

.wk .wk-antwort-satz {
    max-width: 24em;
    font-size: clamp(26px, 3.3vw, 52px);
    font-weight: 500;
    line-height: 1.16;
    letter-spacing: -0.04em;
    text-wrap: pretty;
}

.wk .wk-antwort-satz span:not(.wk-kleben) {
    color: var(--c-muted);
}

/* Quellenzahl: klein und hochgestellt. Drüberfahren oder antippen zeigt die Karte */
.wk .wk-q {
    margin-left: 0.08em;
    padding: 0 0.14em;
    border-radius: 4px;
    color: var(--c-muted);
    font-size: 0.42em;
    font-weight: 500;
    letter-spacing: 0;
    vertical-align: 0.95em;
    font-variant-numeric: tabular-nums;
    transition: color .15s ease;
}

.wk :is(td, .wk-karte) .wk-q {
    font-size: 0.72em;
    vertical-align: 0.42em;
}

.wk .wk-q[aria-expanded="true"] {
    color: var(--wk-violett);
}

@media (hover: hover) {
    .wk .wk-q:hover { color: var(--wk-violett); }
}

.wk-karten {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    max-width: 980px;
}

.wk-karte {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: clamp(28px, 4vw, 56px);
    min-width: 0;
    min-height: clamp(150px, 15vw, 220px);
    padding: clamp(18px, 1.8vw, 26px);
    border-radius: clamp(16px, 1.5vw, 22px);
    background: var(--c-card);
    text-decoration: none;
}

.wk .wk-karte b {
    font-size: clamp(34px, 3.9vw, 60px);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.05em;
    font-variant-numeric: tabular-nums;
}

.wk .wk-karte p {
    max-width: 26ch;
    color: var(--c-muted);
    font-size: 15px;
    line-height: 1.38;
    letter-spacing: -0.005em;
}

.wk .wk-karte-los {
    background: var(--text-color);
    color: var(--c-on-ink);
}

.wk .wk-karte-los p {
    color: var(--wk-on-ink-muted);
}

.wk .wk-karte-los b {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.wk-karte-los .wk-logo {
    display: block;
    width: clamp(34px, 3.4vw, 48px);
    height: clamp(34px, 3.4vw, 48px);
}

.wk-logo svg {
    display: block;
    width: 100%;
    height: 100%;
}

.wk-karte-los .wk-pfeil {
    width: 26px;
    height: 26px;
    transition: transform .3s var(--ease-transition);
}

@media (hover: hover) {
    .wk-karte-los:hover .wk-pfeil { transform: translate(3px, -3px); }
}

.wk .wk-zurueck {
    align-self: flex-start;
    color: var(--c-muted);
    font-size: 16px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 760px) {
    .wk-karten { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wk-karte-los { grid-column: 1 / -1; min-height: 0; }
    .wk .wk-stand { display: none; }
}

/* ============ 3. und 5. Tabellen wie im Blogartikel ============ */

.wk-teil {
    display: flex;
    flex-direction: column;
    gap: var(--wk-block);
}

.wk .wk-h2 {
    font-size: clamp(26px, 2.9vw, 44px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.wk .wk-h2 span {
    color: var(--c-muted);
}

.wk .wk-tabelle {
    --t-pad: 6px;
    --t-radius: var(--wk-radius);
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: var(--t-pad) solid var(--c-tile);
    border-top: 0;
    border-radius: var(--t-radius);
    background: var(--c-tile);
    font-size: 17px;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.wk .wk-tabelle thead th {
    padding: 20px 20px 14px;
    border: 0;
    background: none;
    color: var(--c-muted);
    font-size: 14.5px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.3;
    text-align: left;
    text-transform: none;
    white-space: nowrap;
}

.wk .wk-tabelle tbody tr > * {
    padding: 20px;
    border: 0;
    border-top: 1px solid var(--c-line);
    background: var(--c-card);
    font-weight: 400;
    text-align: left;
    vertical-align: middle;
    transition: background-color .15s ease;
}

.wk .wk-tabelle tbody tr:first-child > * { border-top: 0; }
.wk .wk-tabelle tbody tr:first-child > :first-child { border-top-left-radius: calc(var(--t-radius) - var(--t-pad)); }
.wk .wk-tabelle tbody tr:first-child > :last-child { border-top-right-radius: calc(var(--t-radius) - var(--t-pad)); }
.wk .wk-tabelle tbody tr:last-child > :first-child { border-bottom-left-radius: calc(var(--t-radius) - var(--t-pad)); }
.wk .wk-tabelle tbody tr:last-child > :last-child { border-bottom-right-radius: calc(var(--t-radius) - var(--t-pad)); }

.wk .wk-tabelle tbody th {
    font-weight: 600;
}

.wk .wk-tabelle :is(th, td).wk-zahl {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.wk.ist-bereit .wk-tabelle tbody tr {
    cursor: pointer;
}

@media (hover: hover) {
    .wk.ist-bereit .wk-tabelle tbody tr:hover > * { background: light-dark(#FAFAFA, #232323); }
}

.wk-wer {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.wk-wer .wk-logo {
    flex: none;
    width: 28px;
    height: 28px;
}

.wk-wer small {
    display: block;
    color: var(--c-muted);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
}

.wk-wer .wk-stern {
    margin-left: 0.32em;
}

.wk-tabelle-alle td.wk-eck {
    font-weight: 500;
}

/* Passt: drei Striche im Violett der Diagramme */
.wk-passt {
    display: flex;
    align-items: center;
    gap: 4px;
}

.wk-passt i {
    width: 26px;
    height: 8px;
    border-radius: 99px;
    background: var(--c-line);
}

.wk-passt i.ist-an {
    background: var(--wk-violett);
}

/* Am Handy und Tablet wird jede Zeile eine Karte: Name links, Striche oder Wahl rechts, darunter Werte mit ihrem Namen */
@media (max-width: 860px) {
    .wk .wk-tabelle,
    .wk .wk-tabelle :is(tbody, tr, th, td) {
        display: block;
    }

    .wk .wk-tabelle {
        border: 0;
        background: none;
        font-size: 16px;
    }

    .wk .wk-tabelle thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
    }

    .wk .wk-tabelle tbody {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .wk .wk-tabelle tbody tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px 14px;
        padding: 16px 18px;
        border-radius: 20px;
        background: var(--c-tile);
    }

    .wk .wk-tabelle tbody tr > * {
        grid-column: 1 / -1;
        padding: 0;
        border: 0;
        border-radius: 0 !important;
        background: none !important;
        text-align: left;
        white-space: normal;
    }

    .wk .wk-tabelle tbody tr > th { grid-column: 1; }
    .wk .wk-tabelle tbody tr > td.wk-eck { grid-column: 2; }

    .wk .wk-tabelle tbody td[data-label] {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 4px 16px;
        font-size: 15.5px;
    }

    .wk .wk-tabelle tbody td[data-label]::before {
        content: attr(data-label);
        color: var(--c-muted);
    }

    .wk .wk-tabelle tbody td.wk-lang {
        color: var(--c-muted);
        font-size: 15.5px;
    }

    /* In „Alles auf einen Blick“ steht die Wahl unter der Aufgabe, lange Aufgaben brauchen die Breite */
    .wk .wk-tabelle-alle tbody tr > th,
    .wk .wk-tabelle-alle tbody tr > td.wk-eck { grid-column: 1 / -1; }

    .wk-wer .wk-logo { width: 24px; height: 24px; }
    .wk-wer { gap: 10px; }
}

/* ============ 4. Team ============ */

.wk-team {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: end;
    gap: clamp(32px, 5vw, 88px);
    padding: var(--wk-innen);
    border-radius: var(--wk-radius);
    background: var(--text-color);
    color: var(--c-on-ink);
}

.wk-team-text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-self: stretch;
    gap: var(--wk-block);
}

.wk .wk-team h2 {
    font-size: clamp(34px, 5.2vw, 84px);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.05em;
    text-wrap: balance;
}

.wk .wk-team h2 span {
    display: block;
    color: var(--wk-on-ink-muted);
}

.wk-team-tun {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.wk .wk-knopf {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 26px;
    border-radius: 999px;
    background: var(--c-on-ink);
    color: var(--text-color);
    font-size: 17px;
    font-weight: 500;
    line-height: 1.2;
    transition: transform .15s ease;
}

.wk .wk-knopf svg {
    width: 18px;
    height: 18px;
}

.wk .wk-knopf:active {
    transform: scale(.97);
}

.wk .wk-team :is(button, a):focus-visible {
    outline-color: var(--c-on-ink);
}

.wk .wk-leiser {
    color: var(--wk-on-ink-muted);
    font-size: 16px;
    line-height: 1.4;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color .15s ease;
}

@media (hover: hover) {
    .wk .wk-leiser:hover { color: var(--c-on-ink); }
}

/* Der Zettel: die Nachricht, wie sie gleich im Team-Chat steht. Liegt leicht schräg, damit man ihn als Zettel liest */
.wk-zettel {
    display: flex;
    flex-direction: column;
    gap: 0.9em;
    padding: clamp(20px, 2.6vw, 36px);
    border-radius: clamp(16px, 1.5vw, 22px);
    background: var(--background-color);
    color: var(--text-color);
    transform: rotate(1deg);
}

.wk .wk-zettel p {
    font-size: clamp(17px, 1.45vw, 22px);
    line-height: 1.42;
    letter-spacing: -0.015em;
}

.wk .wk-zettel .wk-zettel-von {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--c-muted);
    font-size: 15px;
}

.wk-zettel-von i {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--c-tile);
    color: var(--text-color);
    font-size: 12.5px;
    font-style: normal;
    font-weight: 600;
}

.wk .wk-zettel .wk-zettel-link {
    color: var(--c-muted);
    font-size: 15px;
}

@media (max-width: 860px) {
    .wk-team {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
    }

    .wk-zettel { transform: rotate(.6deg); }
}

/* ============ 6. Weiterlesen ============ */

.wk-weiter {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    font-size: clamp(26px, 4.1vw, 64px);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.wk .wk-weiter a {
    max-width: 20em;
    color: var(--wk-leise);
    text-decoration: none;
    text-wrap: balance;
    transition: color .25s ease;
}

.wk .wk-weiter a:focus-visible {
    color: var(--text-color);
}

@media (hover: hover) {
    .wk .wk-weiter a:hover { color: var(--text-color); }
}

.wk-weiter .wk-stern {
    width: 0.7em;
    height: 0.7em;
    margin: 0 0.1em;
}

.wk .wk-fuss {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 32px;
    padding-top: 26px;
    border-top: 1px solid var(--c-line);
    color: var(--c-muted);
    font-size: 15px;
    line-height: 1.5;
}

.wk .wk-fuss b {
    color: var(--text-color);
    font-weight: 500;
}

.wk .wk-fuss a {
    text-underline-offset: 3px;
}

/* ============ Quellen-Karte und Meldung (hängen an body) ============ */

.wk-quelle {
    position: absolute;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(380px, calc(100vw - 32px));
    padding: 18px 20px;
    border-radius: 22px;
    background: var(--c-card);
    box-shadow: 0 0 0 1px var(--c-hair), 0 24px 60px -20px var(--c-shadow);
    color: var(--text-color);
    font-family: var(--font1);
    animation: wk-auf .18s var(--ease-transition);
}

.wk-quelle h3 {
    margin: 0;
    color: inherit;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.wk-quelle p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--c-muted);
    font-size: 15.5px;
    line-height: 1.42;
    letter-spacing: -0.005em;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
}

.wk-quelle a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--c-line);
    color: inherit;
    font-size: 15.5px;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
}

.wk-quelle a small {
    display: block;
    margin-top: 2px;
    color: var(--c-muted);
    font-size: 13.5px;
    font-weight: 400;
}

.wk-quelle .wk-pfeil {
    flex: none;
    width: 16px;
    height: 16px;
}

@media (max-width: 640px) {
    .wk-quelle {
        position: fixed;
        top: auto !important;
        right: 8px;
        bottom: calc(8px + env(safe-area-inset-bottom, 0px));
        left: 8px !important;
        width: auto;
        animation: wk-hoch .28s var(--ease-transition);
    }
}

.wk-meldung {
    position: fixed;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    z-index: 1200;
    display: flex;
    align-items: center;
    gap: 0.5em;
    margin: 0;
    padding: 13px 22px;
    border-radius: 999px;
    background: var(--text-color);
    color: var(--c-on-ink);
    font-family: var(--font1);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    transform: translateX(-50%);
    animation: wk-melden .25s var(--ease-transition);
}

.wk-meldung .wk-stern {
    width: 1em;
    height: 1em;
}

@keyframes wk-melden {
    from { opacity: 0; transform: translate(-50%, 8px); }
}

@media (prefers-reduced-motion: reduce) {
    .wk *,
    .wk-wahl,
    .wk-schleier,
    .wk-quelle,
    .wk-meldung {
        animation: none !important;
        transition: none !important;
    }

    .wk-zettel { transform: none; }
}
