/* ==========================================================================
   callsign.css – Callsign-Seite im "Kino"-Design (callsign.php)
   Baut auf assets/aircraft-page.css auf (Kopf .acx-hero, Leiste .acx-live, .acx-stats).
   ========================================================================== */

/* ---------- Kopf ---------- */
.csx-hero h1.csx-title { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 800; font-size: clamp(64px, 10vw, 140px); letter-spacing: -.05em; line-height: .88; }
.csx-spacer { height: 18px; }
.csx-tag { padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: rgba(57, 217, 245, .15); color: #39d9f5; white-space: nowrap; }
.csx-when { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 17px; color: #fff; white-space: nowrap; }
.csx-last .acx-live-msg a { margin-left: 4px; }
:root[data-theme="light"] .csx-tag { background: rgba(8, 115, 154, .1); color: var(--cyan); }
:root[data-theme="light"] .csx-when { color: var(--text); }

/* ---------- Abschnitte ---------- */
.csx-lead { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.csx-row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 22px; margin-top: 22px; }
.csx-row > .acx-sec { margin-top: 0; }
.csx-row > .acx-sec:only-child { grid-column: 1 / -1; }

/* Flugzeuge mit diesem Callsign */
.csx-fleet { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; padding: 21px; }
.csx-plane { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); text-decoration: none; color: var(--text); min-width: 0; }
.csx-plane:hover { border-color: var(--cyan); }
.csx-plane .csx-ph { width: 112px; height: 76px; border-radius: 10px; }
.csx-plane .csx-ph .sp-ph { font-size: 18px; }
.csx-plane .sp-credit { display: none; }
.csx-plane b { display: block; font-size: 17px; }
.csx-plane span { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; overflow-wrap: anywhere; }
.csx-share { height: 6px; border-radius: 6px; background: var(--line); margin-top: 8px !important; overflow: hidden; }
.csx-share i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--cyan), var(--green)); }

/* Callsign entschlüsselt */
.csx-decode-body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center; padding: 21px; }
.csx-big { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 46px; font-weight: 800; letter-spacing: -.04em; line-height: 1; white-space: nowrap; }
.csx-big span { color: var(--cyan); }
.csx-decode-body p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.csx-decode-body p b { color: var(--text); }

/* Aktivität */
.csx-act { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; padding: 21px; }
.csx-clock, .csx-week { margin: 0; }
.csx-clock svg.csx-clock-svg { width: 240px; height: 240px; max-width: 100%; display: block; margin: 0 auto; stroke: none; fill: none; }
.csx-clock-svg line { stroke-width: 8; stroke-linecap: round; }
.csx-clock-svg line.on { stroke: var(--cyan); }
.csx-clock-svg line.off { stroke: var(--line); }
.csx-clock-svg text { stroke: none; text-anchor: middle; font-family: inherit; }
.csx-clock-svg .lbl { fill: var(--muted); font-size: 11px; font-weight: 700; }
.csx-clock-svg .big { fill: var(--text); font-size: 22px; font-weight: 800; }
.csx-clock-svg .small { fill: var(--muted); font-size: 10px; }
.csx-clock figcaption, .csx-week figcaption { text-align: center; font-size: 12px; color: var(--muted); margin-top: 8px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.csx-week ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; align-items: end; height: 170px; }
.csx-week li { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; font-size: 12px; color: var(--muted); font-weight: 700; }
.csx-week li i { width: 100%; min-height: 6px; border-radius: 8px 8px 3px 3px; background: var(--surface-2); border: 1px solid var(--line); }
.csx-week li.on i { background: linear-gradient(180deg, var(--cyan), var(--cyan-2)); border: 0; }

/* Flugbuch */
.csx-log { padding-bottom: 12px; }
.csx-day { margin: 18px 21px 6px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--cyan); }
.csx-flights { list-style: none; margin: 0 21px; padding: 0 0 0 22px; border-left: 2px solid var(--line); }
.csx-flights li { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) 70px 96px; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.csx-flights li::before { content: ""; position: absolute; left: -29px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--cyan); }
.csx-flights li.now::before { background: var(--cyan); box-shadow: 0 0 0 5px rgba(57, 217, 245, .2); }
.csx-flights time { font-weight: 800; font-variant-numeric: tabular-nums; }
.csx-flights a { text-decoration: none; color: var(--text); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csx-flights a:hover b { color: var(--cyan); }
.csx-flights a span { color: var(--muted); margin-left: 4px; }
.csx-sq, .csx-dur { color: var(--muted); font-size: 13px; text-align: right; white-space: nowrap; }
.csx-log .pager { margin: 18px 21px 6px; }
:root[data-theme="light"] .csx-flights li.now::before { box-shadow: 0 0 0 5px rgba(8, 115, 154, .15); }

/* ---------- Responsiv ---------- */
@media (max-width: 900px) {
  .csx-row, .csx-act { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .csx-fleet, .csx-decode-body, .csx-act { padding: 18px; }
  .csx-decode-body { grid-template-columns: 1fr; gap: 12px; }
  .csx-day { margin: 16px 18px 6px; }
  .csx-flights { margin: 0 18px; padding-left: 18px; }
  .csx-flights li { grid-template-columns: 50px minmax(0, 1fr) 62px; gap: 10px; font-size: 14px; }
  .csx-flights li::before { left: -25px; }
  .csx-sq { display: none; }
  .csx-log .pager { margin: 16px 18px 4px; }
  .csx-plane { grid-template-columns: 96px minmax(0, 1fr); }
  .csx-plane .csx-ph { width: 96px; height: 66px; }
  .csx-when { font-size: 15px; }
  .csx-last .acx-live-msg { flex-basis: 100%; }
  .csx-fleet .csx-plane:nth-child(n+7) { display: none; }
}
