/* =====================================================================
   COREVISION — Linkseite (radio-no9.de/cv)
   Eigenständig: Farben und Hintergrund wie radio-no9.de (style.css),
   aber nur das, was diese eine Seite braucht.
   ===================================================================== */

@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/dm-sans-400.woff2) format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/dm-sans-500.woff2) format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/dm-sans-700.woff2) format('woff2'); }

:root {
    --bg-page:      #10121a;
    --glass:        rgba(255, 255, 255, 0.03);
    --glass-hover:  rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.07);
    --text:         #c0caf5;
    --text-bright:  #ffffff;
    --text-dim:     #7a82a8;
    --accent:       #EB358C;
    --accent-glow:  rgba(235, 53, 140, 0.25);
    --accent-soft:  rgba(235, 53, 140, 0.10);
    --radius:       14px;
    --radius-sm:    10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'DM Sans', 'Segoe UI', Helvetica, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text);
    background: radial-gradient(ellipse at 20% 0%, rgba(235, 53, 140, 0.07) 0%, transparent 50%);
    -webkit-font-smoothing: antialiased;
}
/* Seitenhintergrund wie auf radio-no9.de: kein CSS-Verlauf, sondern das
   fertige Bild /assets/img/hintergrund.webp auf einer festen Ebene.
   Firefox malt in einen festen CSS-Verlauf bei manchen Grafikkarten einen
   wandernden Punkt in die Bildschirmmitte — ein Bild zeigt er nur an. */
html { background-color: var(--bg-page); }
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: var(--bg-page) url('/assets/img/hintergrund.webp') center / 100% 100% no-repeat;
    transform: translateZ(0);
}

a { color: inherit; text-decoration: none; }
.ic { width: 1.25em; height: 1.25em; flex: none; }

.cv {
    width: 100%;
    max-width: 30rem;
    margin: 0 auto;
    padding: calc(2.25rem + env(safe-area-inset-top, 0px)) 1.1rem calc(2rem + env(safe-area-inset-bottom, 0px));
}

/* --- KOPF ---------------------------------------------------------- */
.kopf { text-align: center; margin-bottom: 1.75rem; }

/* Kreis: strahlt nach außen wie im Dashboard. Das Leuchten sitzt auf
   einer dunklen Scheibe hinter dem Emblem — so bleibt das Innere des
   Kreises dunkel und nur der Rand strahlt. */
.kopf-marke {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.4rem;
}
.kopf-emblem {
    position: relative;
    flex: none;
    width: 104px;
    height: 104px;
}
.kopf-emblem::before {
    content: "";
    position: absolute;
    inset: 2%;
    border-radius: 50%;
    background: var(--bg-page);
    box-shadow:
        0 0 20px 6px rgba(235, 53, 140, 0.55),
        0 0 54px 16px rgba(235, 53, 140, 0.28);
}
.kopf-emblem img { position: relative; display: block; width: 100%; height: 100%; }

/* Schriftzug: bewusst ohne Effekt */
.kopf-schrift { margin: 0; line-height: 0; }
.kopf-schrift img { display: block; width: 190px; max-width: 100%; height: auto; }

.kopf-icons { display: flex; justify-content: center; gap: 1.5rem; margin-top: 1.6rem; }
.kopf-icons a {
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: var(--radius-sm);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
.kopf-icons a:hover { background: rgba(255, 255, 255, 0.08); border-color: #fff; }

/* --- NÄCHSTE SENDUNG ----------------------------------------------
   Karte wie auf radio-no9.de (article): Glas, feiner Rand, Speer links,
   Kopf mit Icon + LED und auslaufender Linie. Ruhig in Grau — Magenta
   gibt es nur, wenn die Sendung läuft. */
.karte {
    position: relative;
    margin-bottom: 2rem;
    padding: 1rem 1.1rem 0.9rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.025);
}
.karte::before {                                   /* Speer */
    content: "";
    position: absolute;
    left: 0; top: 12px; bottom: 12px;
    width: 2px;
    background: linear-gradient(180deg, transparent 0%, var(--text-dim) 10%, var(--text-dim) 90%, transparent 100%);
}

.karte-kopf {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.6rem;
    background-image: linear-gradient(to right, var(--glass-border) 0%, var(--glass-border) 30%, transparent 90%);
    background-size: 100% 1px;
    background-repeat: no-repeat;
    background-position: bottom;
}
.karte-kopf h1,
.karte-kopf h2 { margin: 0; color: var(--text-bright); font-size: 1rem; font-weight: 700; }

.karte-ic { position: relative; display: grid; place-items: center; width: 26px; height: 26px; flex: none; }
.karte-ic .ic {
    width: 26px; height: 26px;
    color: #f0f2f9;
    filter: drop-shadow(0 0 3px rgba(240, 242, 249, 0.3));
}
.karte-ic::after {                                 /* LED: aus */
    content: "";
    position: absolute;
    right: -2px; bottom: -3px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--text-dim);
    border: 1.5px solid #1a1c2a;
}

/* Termin: zweizeilig wie im Sendeplan, in einer leicht milchigen Fläche */
.termin {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.045);
}
.termin-zeit {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    min-width: 6.4rem;
}
.termin-tag {
    color: var(--text);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
}
.termin-tag i { font-style: normal; margin: 0 0.4em; color: var(--text-dim); font-size: 0.7em; vertical-align: 0.15em; }
.termin-uhr { color: var(--text-bright); font-size: 1.35rem; font-weight: 700; line-height: 1.15; }
.termin-uhr small { font-size: 0.62em; letter-spacing: 0.08em; text-transform: uppercase; }

.termin-info { min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.termin-titel { color: var(--text-bright); font-size: 1.15rem; font-weight: 700; line-height: 1.25; }
.termin-mod { color: var(--text); font-size: 0.9rem; }
.termin-mod b { color: var(--text); font-weight: 700; }


/* Kalender: unten rechts, weiß, ohne Rahmen — wie im Dashboard */
.karte-fuss { display: flex; justify-content: flex-end; gap: 1.4rem; margin-top: 0.85rem; }

/* Glocke: gleiche Machart wie "Kalender" — weiß, ohne Rahmen */
button.karte-kal { background: none; border: 0; padding: 0; font-family: inherit; cursor: pointer; }
button.karte-kal[disabled] { opacity: 0.5; cursor: default; }
.karte-glocke.ist-an .ic { fill: currentColor; }
.karte-hinweis {
    margin: 0.7rem 0 0;
    color: var(--text);
    font-size: 0.82rem;
    line-height: 1.45;
    text-align: right;
}
.karte-kal {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}
.karte-kal .ic { width: 1.1em; height: 1.1em; }
.karte-kal:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }

/* Live-Karte (Titel + Moderatoren + Knopf) */
.karte-titel { margin: 0; color: var(--text-bright); font-size: 1.35rem; font-weight: 700; line-height: 1.2; }
.karte-mod   { margin: 0.2rem 0 0; color: var(--text); font-size: 0.9rem; }

/* --- LIVE ----------------------------------------------------------
   Wie im Dashboard: oben klein "ON AIR" in Magenta, darunter ein großes
   weißes LIVE, das atmet. Speer links magenta. Sonst keine Farbe. */
.karte--live::before { background: linear-gradient(180deg, transparent 0%, var(--accent) 10%, var(--accent) 90%, transparent 100%); }
.karte--live .termin-tag { color: var(--accent); }
.termin-live {
    letter-spacing: 0.06em;
    animation: liveAtmen 4.5s ease-in-out infinite;
    will-change: transform;
}
@keyframes liveAtmen {
    0%, 100% { transform: scale(1);    text-shadow: 0 0 0 rgba(255, 255, 255, 0); }
    50%      { transform: scale(1.08); text-shadow: 0 0 12px rgba(255, 255, 255, 0.55), 0 0 26px rgba(235, 53, 140, 0.5); }
}

/* Unter dem Termin: "Jetzt läuft" mit Play-Symbol — die ganze Zeile ist
   ein Link auf radio-no9.de (dort läuft der Player) */
.live-fuss { display: flex; align-items: center; gap: 0.9rem; margin-top: 0.9rem; border-radius: var(--radius-sm); }
.live-play {
    flex: none;
    display: grid;
    place-items: center;
    width: 2.9rem;
    height: 2.9rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    color: #fff;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
.live-fuss:hover .live-play { background: rgba(255, 255, 255, 0.08); border-color: #fff; }
.live-play .ic { width: 1.3rem; height: 1.3rem; fill: currentColor; margin-left: 2px; }

.live-song { min-width: 0; display: flex; flex-direction: column; }
.live-song-label { color: var(--text); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.live-song-titel {
    color: var(--text-bright);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* "Bisher gespielt" — zugeklappt unter der Reinhören-Zeile */
.bisher { margin-top: 0.8rem; border-top: 1px solid var(--glass-border); padding-top: 0.6rem; }
.bisher summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
}
.bisher summary::-webkit-details-marker { display: none; }
.bisher summary::after {
    content: "";
    width: 0.45rem; height: 0.45rem;
    border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform 0.2s ease;
}
.bisher[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }

/* --- SONGS im Stil von "LAST 5" (songhistory.php) --------------------
   oben Uhrzeit (weiß, fett) + Status (JETZT LÄUFT hellblau, GESPIELT
   gedimmt), darunter Interpret weiß und fett, Titel gedimmtes Weiß.
   Ganze Zeile → YouTube Music. Wie am Handy: ohne YouTube-Symbol. */
.songliste { list-style: none; margin: 0.6rem 0 0; padding: 0; }
.bisher .songliste { max-height: 22rem; overflow-y: auto; }
.bisher .songliste li + li { border-top: 1px solid var(--glass-border); }
.song {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.2rem;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}
.song:hover { background: rgba(255, 255, 255, 0.04); }
.song-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.song-meta { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
.song-zeit { color: var(--text-bright); font-size: 0.8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.song-status {
    color: rgba(192, 202, 245, 0.5);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.song-status--jetzt { color: var(--text); font-weight: 700; }
.song-interpret, .song-titel { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-interpret { color: var(--text-bright); font-size: 1.02rem; font-weight: 700; line-height: 1.3; }
.song-titel { color: rgba(255, 255, 255, 0.55); font-size: 0.85rem; font-weight: 500; line-height: 1.35; }
.song-pfeil { flex: none; width: 1rem; height: 1rem; color: rgba(255, 255, 255, 0.2); transition: color 0.2s ease, transform 0.2s ease; }
.song:hover .song-pfeil { color: #fff; transform: translateX(2px); }

/* Playlist-Seite: jeder Song als eigene kleine Karte — wie LAST 5 */
.songliste--karten li + li { margin-top: 0.6rem; }
.songliste--karten .song {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.songliste--karten .song:hover { background: rgba(255, 255, 255, 0.06); }

/* --- LINKGRUPPEN ----------------------------------------------------
   Rubrik mittig, weiß, links und rechts eine feine Linie, die nach außen
   ausläuft. Karten mit weißem Haarstrich, Icon frei stehend, Text mittig. */
.gruppe { margin-bottom: 1.9rem; }

.gruppe-titel {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin: 0 0 0.8rem;
    color: var(--text-bright);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-align: center;
    white-space: nowrap;
}
.gruppe-titel::before,
.gruppe-titel::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.45));
}
.gruppe-titel::after { background: linear-gradient(to left, transparent, rgba(255, 255, 255, 0.45)); }

.zeile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 3.75rem;
    margin-bottom: 0.65rem;
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.015);
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
}
.zeile:hover  { border-color: #fff; background: rgba(255, 255, 255, 0.05); }
.zeile:active { transform: scale(0.99); }

/* links: Icon oder Cover — gleiche Breite, damit der Text mittig bleibt */
.zeile-ic, .zeile-bild { flex: none; width: 40px; height: 40px; }
.zeile-ic  { display: grid; place-items: center; color: #fff; }
.zeile-ic .ic { width: 1.6rem; height: 1.6rem; }
.zeile-bild { border-radius: 6px; object-fit: cover; }

.zeile-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.zeile-titel { color: var(--text-bright); font-weight: 500; line-height: 1.3; }
.zeile-zusatz {
    max-width: 100%;
    color: var(--text);
    font-size: 0.8rem;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* rechts: Pfeil in einer Box so breit wie links — Text sitzt exakt mittig */
.zeile > .ic:last-child {
    flex: none;
    width: 40px;
    height: 1.1rem;
    color: rgba(255, 255, 255, 0.45);
    transition: color 0.2s ease, transform 0.2s ease;
}
.zeile:hover > .ic:last-child { color: #fff; transform: translateX(2px); }

/* --- PLAYLIST-SEITE (/cv/playlist/39) ------------------------------
   Kopf klein und als Link zurück, darunter eine Karte mit der Liste:
   Minute in der Sendung | Interpret / Titel | Pfeil (YouTube Music) */
.kopf--klein { margin-bottom: 1.4rem; }
.kopf--klein .kopf-marke { gap: 1rem; text-decoration: none; }
.kopf--klein .kopf-emblem { width: 64px; height: 64px; }
.kopf--klein .kopf-emblem::before {
    box-shadow: 0 0 14px 4px rgba(235, 53, 140, 0.5), 0 0 36px 10px rgba(235, 53, 140, 0.25);
}
.kopf--klein .kopf-schrift img { width: 140px; }

/* Kopf der Playlist: Titel etwas größer, darunter Datum weiß, klein, nicht
   fett — dann die Trennlinie (kommt von .karte-kopf), dann die Liste */
.pl-kopf { flex-direction: column; align-items: flex-start; gap: 0.15rem; }
.pl-kopf h1 { font-size: 1.25rem; }
.pl-datum { margin: 0; color: var(--text-bright); font-size: 0.85rem; font-weight: 400; }

/* YouTube-Music-Hinweis wie unter "LAST 5" (style.css: .cta-footer) */
.cta-footer {
    margin-top: 1.4rem;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    text-align: center;
}
.cta-text { font-size: 0.85rem; color: var(--text); opacity: 0.8; }
.cta-text a { color: var(--accent); font-weight: 500; }
.cta-text a:hover { text-decoration: underline; }
.cta-apps { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: center; }
.cta-label { font-size: 0.7rem; opacity: 0.5; margin-right: 5px; }
.cta-app-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-bright);
    font-size: 0.75rem;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.cta-app-link:hover { background: var(--accent-soft); border-color: var(--accent); transform: translateY(-2px); }
.cta-app-link .ic { width: 1rem; height: 1rem; color: var(--accent); }

/* Zurück-Pfeil links oben — wie .md-back in match.php: groß, ohne Wort,
   gedimmt, beim Drüberfahren weiß */
.kopf--klein { position: relative; }
.pl-back {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease;
}
.pl-back:hover { color: #fff; }
.pl-back .ic { width: 30px; height: 30px; }

/* --- FUSS ----------------------------------------------------------- */
.fuss { margin-top: 2.6rem; text-align: center; }
/* Leitspruch: Plektrum, darüber auslaufende Linien wie bei den Rubriken,
   der Spruch in Weiß — ruhig, aber klar als Haltung erkennbar */
.fuss-pick {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}
.fuss-pick::before,
.fuss-pick::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.35));
}
.fuss-pick::after { background: linear-gradient(to left, transparent, rgba(255, 255, 255, 0.35)); }
.fuss-pick .ic { width: 1.3rem; height: 1.3rem; transform: rotate(-12deg); }

.fuss-spruch {
    margin: 0.7rem 0 0;
    color: var(--text-bright);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}
.fuss-sender {
    margin: 0.2rem 0 0;
    color: var(--text);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

/* --- TASTATUR ------------------------------------------------------- */
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.zeile:focus-visible, .knopf:focus-visible, .kopf-icons a:focus-visible { outline-offset: 2px; }

/* --- BEWEGUNG ------------------------------------------------------- */
@keyframes puls {
    0%   { box-shadow: 0 0 0 0 rgba(235, 53, 140, 0.55); }
    100% { box-shadow: 0 0 0 9px rgba(235, 53, 140, 0); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
