/* Linkseite /links/ — der eine Link für alle Bios.
   Eigene Datei wie podcast.css: greift sofort, ohne den Cache-Stand aller Seiten zu ändern.
   Nur Tokens aus site.css — der Dunkelmodus dreht von selbst mit. */

.links-body { background: var(--paper-tint); }
/* Eigene display-Werte schlagen sonst das hidden-Attribut (Spotify/Apple vor der Freigabe) */
.links [hidden], .links-kopiert[hidden] { display: none !important; }

.links {
    max-width: 560px;
    margin: 0 auto;
    padding: max(20px, env(safe-area-inset-top)) 16px max(32px, env(safe-area-inset-bottom));
}

/* --- Kopf ---------------------------------------------------------------- */
.links-kopf {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 12px;
}
.links-home {
    position: absolute; left: 0; top: 0;
    width: 44px; height: 44px;
    display: grid; place-items: center;
    color: var(--accent);
    border-radius: 50%;
}
.links-home .brand-mark { width: 28px; height: 28px; }
.links-teilen {
    position: absolute; right: 0; top: 0;
    height: 44px; padding: 0 14px;
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .88rem; font-weight: 600;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 999px;
}
.links-teilen svg { width: 17px; height: 17px; }
.links-teilen:hover { border-color: var(--ink-mute); }

.links-bild {
    width: 112px; height: 112px;
    margin-top: 28px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--line);
}
.links-name {
    margin-top: 16px;
    font-size: 1.6rem;
    font-weight: 750;
    letter-spacing: -.02em;
    line-height: 1.2;
    color: var(--ink);
}
.links-zeile {
    margin-top: 8px;
    max-width: 34ch;
    font-size: .98rem;
    line-height: 1.5;
    color: var(--ink-body);
}
.links-zeile strong { color: var(--ink); font-weight: 650; }

.links-socials { display: flex; gap: 10px; margin-top: 18px; }
.links-socials a {
    width: 48px; height: 48px;
    display: grid; place-items: center;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 50%;
    transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.links-socials a:hover { border-color: var(--ink-mute); transform: translateY(-2px); }
.links-socials svg { width: 20px; height: 20px; }

/* --- Blöcke -------------------------------------------------------------- */
.links-block { margin-top: 30px; }
.links-termine { margin-top: 30px; }
.links-neu > .links-block:first-child { margin-top: 30px; }
.links-rubrik {
    margin: 0 4px 10px;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-mute);
}
.links-liste { display: grid; gap: 10px; }

/* Karte = ganzer Link. Farbe ausdrücklich setzen, sonst erbt alles Linkblau. */
a.link-karte {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    min-height: 64px;
    padding: 14px 18px;
    color: var(--ink-body);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r);
    transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
a.link-karte:hover {
    border-color: var(--ink-mute);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -18px rgba(11, 21, 36, .45);
}
a.link-karte:active { transform: translateY(1px) scale(.995); }
.link-titel { font-weight: 650; font-size: 1.02rem; line-height: 1.35; color: var(--ink); }
.link-unter { font-size: .88rem; line-height: 1.4; color: var(--ink-mute); }
.link-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

/* Karte mit App-Icon */
a.link-karte:has(.link-icon) { flex-direction: row; align-items: center; justify-content: flex-start; gap: 14px; }
.link-icon { flex: none; width: 44px; height: 44px; border-radius: 10px; }
a.link-karte[class*="tone-"] { border-left: 3px solid var(--tone); }

.link-marke {
    display: inline-block;
    margin-right: 6px;
    padding: 2px 8px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--btn-ink);
    background: var(--accent);
    border-radius: 999px;
    vertical-align: .12em;
}
a.link-termin { border-color: var(--accent); background: var(--accent-wash); }
a.link-termin .link-marke { align-self: flex-start; margin-bottom: 4px; }

/* --- Neuestes Video ------------------------------------------------------ */
a.link-video { padding: 0; overflow: hidden; gap: 0; }
.link-video-bild {
    display: none;
    aspect-ratio: 16 / 9;
    background: var(--paper-sink) center / cover no-repeat;
}
.link-video-bild img { width: 100%; height: 100%; object-fit: cover; }
.link-video.hat-bild .link-video-bild { display: block; }
a.link-video .link-text { padding: 14px 18px; }

/* --- Podcast ------------------------------------------------------------- */
.podcast-karte {
    padding: 18px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r);
}
.podcast-folge { font-weight: 650; color: var(--ink); line-height: 1.45; }
.podcast-knoepfe { display: grid; gap: 8px; margin-top: 14px; }
.podcast-knopf {
    display: flex; align-items: center; gap: 10px;
    min-height: 48px;
    padding: 0 16px;
    font-weight: 600;
    color: var(--ink);
    background: var(--paper-tint);
    border: 1px solid var(--line);
    border-radius: 10px;
}
.podcast-knopf:hover { border-color: var(--ink-mute); }
.podcast-knopf svg { width: 20px; height: 20px; flex: none; }
/* Die vom Gerät bevorzugte Plattform steht vorn und ist gefüllt */
.podcast-knopf.ist-empfohlen { color: var(--btn-ink); background: var(--accent); border-color: var(--accent); }
.podcast-material {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 14px;
    font-size: .92rem; font-weight: 600;
    color: var(--accent);
}
.podcast-material svg { width: 16px; height: 16px; }

/* --- QR (nur große Bildschirme) ----------------------------------------- */
.links-qr { display: none; }

/* --- Desktop: zwei Spalten — links steht die Person, rechts das Neue ---- */
@media (min-width: 900px) {
    .links {
        max-width: 1040px;
        display: grid;
        grid-template-columns: 300px minmax(0, 1fr);
        gap: 56px;
        align-items: start;
        padding: 56px 32px 48px;
    }
    .links-seite { position: sticky; top: 40px; }
    .links-kopf { padding-top: 0; }
    .links-home, .links-teilen { position: static; }
    .links-kopf { display: grid; justify-items: center; }
    .links-home { display: none; }   /* Fuß verlinkt die Website ohnehin */
    .links-teilen { order: 10; margin-top: 20px; }
    .links-bild { width: 152px; height: 152px; margin-top: 0; }
    .links-name { font-size: 1.9rem; }
    .links-neu > .links-block:first-child { margin-top: 0; }

    /* Rechte Spalte: Video- und Podcastkarte bekommen mehr Fläche */
    .links-inhalt .links-liste:not(.links-termine) { grid-template-columns: 1fr 1fr; }
    .links-inhalt .links-liste:not(.links-termine) > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
    a.link-video { flex-direction: row; align-items: stretch; }
    .link-video.hat-bild .link-video-bild { flex: 0 0 56%; }
    a.link-video .link-text { justify-content: center; padding: 18px 22px; }
    a.link-video .link-titel { font-size: 1.12rem; }
    .podcast-knoepfe { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}
@media (min-width: 900px) and (hover: hover) {
    .links-qr {
        display: flex; flex-direction: column; align-items: center; gap: 10px;
        margin-top: 28px; padding: 16px;
        text-align: center;
        border: 1px dashed var(--line);
        border-radius: var(--r);
    }
    .links-qr img { width: 112px; height: 112px; border-radius: 6px; }
    .links-qr p { font-size: .9rem; font-weight: 600; color: var(--ink); line-height: 1.45; }
    .links-qr span { font-weight: 400; color: var(--ink-mute); }
}

/* --- Fuß ----------------------------------------------------------------- */
.links-fuss {
    margin-top: 36px;
    text-align: center;
    font-size: .8rem;
    line-height: 1.55;
    color: var(--ink-mute);
}
.links-fuss p + p { margin-top: 8px; }
.links-fuss a { color: var(--ink-mute); text-decoration: underline; text-underline-offset: 2px; }

.links-kopiert {
    position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    padding: 10px 18px;
    font-size: .9rem; font-weight: 600;
    color: var(--btn-ink);
    background: var(--ink);
    border-radius: 999px;
    box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .5);
}

@media (prefers-reduced-motion: reduce) {
    a.link-karte, .links-socials a { transition: none; }
    a.link-karte:hover, .links-socials a:hover { transform: none; }
}
