/* ==========================================================================
   aircraft-page.css – Flugzeugseite im "Kino"-Design (aircraft.php)
   Kopf: unscharfes Foto als Hintergrund, grosses Kennzeichen, schräg gestelltes
   Foto, Live-Leiste (von assets/app.js gefüllt). Der Kopf bleibt auch im hellen
   Modus ein dunkles Banner (wie der Kopf der Startseite).
   ========================================================================== */

/* ---------- Kopf ---------- */
.acx-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: #050c17; color: #f3f7fb; }
.acx-hero.no-photo { background: radial-gradient(900px 380px at 85% -10%, rgba(57, 217, 245, .16), transparent 70%), linear-gradient(180deg, #0a1727, #050c17); }
.acx-bg { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(34px) saturate(1.3); opacity: .55; transform: scale(1.1); }
.acx-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(5, 12, 23, .96) 0%, rgba(5, 12, 23, .75) 45%, rgba(5, 12, 23, .35) 100%), linear-gradient(0deg, rgba(5, 12, 23, 1) 0%, transparent 40%); }
.acx-inner { position: relative; z-index: 2; max-width: 1380px; margin: 0 auto; padding: 44px 4vw 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 40px; align-items: center; }
.acx-crumbs { font-size: 13px; color: #8d9caf; margin-bottom: 18px; }
.acx-crumbs a { color: #b9c6d6; text-decoration: none; }
.acx-crumbs a:hover { color: #39d9f5; }
.acx-hero .eyebrow { color: #39d9f5; }
.acx-hero h1 { font-size: clamp(52px, 8vw, 112px); line-height: .92; letter-spacing: -.06em; margin: 14px 0 12px; overflow-wrap: anywhere;
  color: transparent; background: linear-gradient(100deg, #fff 30%, #39d9f5); -webkit-background-clip: text; background-clip: text; }
.acx-sub { font-size: clamp(18px, 2vw, 24px); font-weight: 600; margin: 0 0 22px; color: #dbe5f0; line-height: 1.3; }
.acx-sub a { color: inherit; text-decoration: none; }
.acx-sub a:hover { color: #39d9f5; }
.acx-dot { color: #39d9f5; margin: 0 9px; }
.acx-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.acx-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #f3f7fb;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); text-decoration: none; }
a.acx-chip:hover { border-color: #39d9f5; color: #fff; }
.acx-chip img { width: 20px; height: 15px; border-radius: 3px; object-fit: cover; }
.acx-hero .seen-active { color: #2de0a0; border-color: rgba(45, 224, 160, .35); background: rgba(45, 224, 160, .1); }
.acx-hero .seen-badge:not(.seen-active) { color: #c7d2df; border-color: rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); }
.acx-hero .badge-warn { background: rgba(251, 191, 36, .12); color: #fbd36a; border-color: rgba(251, 191, 36, .4); }

.acx-photo .aircraft-photo { margin: 0; transform: perspective(1200px) rotateY(-8deg) rotateZ(1deg); transform-origin: center; }
.acx-photo .aircraft-photo img { width: 100%; height: auto; display: block; border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .12); }
.acx-photo .photo-credit { font-size: 12px; color: #8d9caf; margin-top: 10px; text-align: right; }

/* ---------- Live-Leiste ---------- */
.acx-live { position: relative; z-index: 2; max-width: calc(1380px - 8vw); margin: 0 auto 32px; display: flex; align-items: center; gap: 22px; padding: 14px 16px 14px 22px;
  border-radius: 18px; background: rgba(13, 25, 41, .7); border: 1px solid rgba(141, 156, 175, .25); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
@media (max-width: 1380px) { .acx-live { margin-left: 4vw; margin-right: 4vw; } }
.acx-live.is-live { border-color: rgba(57, 217, 245, .3); box-shadow: 0 0 40px rgba(45, 224, 160, .08); }
.acx-live-body { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px 22px; flex-wrap: wrap; font-size: 14px; color: #b9c6d6; }
.acx-live .live-dot { width: 9px; height: 9px; border-radius: 50%; background: #8d9caf; flex: none; }
.acx-live-msg { flex: 1; min-width: 0; }
.acx-live-msg small { color: #8d9caf; margin-left: 6px; }
.acx-badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #06251a; background: #2de0a0; }
.acx-badge i { width: 7px; height: 7px; border-radius: 50%; background: #06251a; animation: acx-pulse 1.6s infinite; }
@keyframes acx-pulse { 50% { opacity: .3; } }
.acx-cs { font-weight: 800; font-size: 17px; color: #fff; text-decoration: none; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.acx-cs:hover { color: #39d9f5; }
.acx-route { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 180px; font-size: 15px; color: #fff; }
.acx-route b { font-weight: 800; }
.acx-track-line { position: relative; flex: 1; height: 2px; background: repeating-linear-gradient(90deg, #39d9f5 0 6px, transparent 6px 11px); }
.acx-track-line i { position: absolute; top: -6px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #2de0a0; box-shadow: 0 0 0 5px rgba(45, 224, 160, .25); }
.acx-live dl { display: flex; gap: 22px; margin: 0; }
.acx-live dt { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #8d9caf; font-weight: 700; }
.acx-live dd { margin: 2px 0 0; font-weight: 800; font-size: 16px; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.acx-src { flex-basis: 100%; font-size: 11px; color: #8d9caf; margin-top: -4px; }
.acx-track { display: inline-flex; gap: 6px; align-items: center; padding: 10px 16px; border-radius: 12px; background: linear-gradient(135deg, #39d9f5, #159bd0); color: #04121f; font-weight: 800; text-decoration: none; font-size: 14px; white-space: nowrap; flex: none; }
.acx-track svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.4; }
.acx-track:hover { filter: brightness(1.08); color: #04121f; }

/* ---------- Kennzahlen-Leiste ---------- */
.acx-page { padding-top: 26px; }
.acx-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow: hidden; }
.acx-stats div { padding: 16px 18px; border-right: 1px solid var(--line); min-width: 0; }
.acx-stats div:last-child { border-right: 0; }
.acx-stats dt { font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.acx-stats dd { margin: 5px 0 0; font-size: 18px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acx-stats a { text-decoration: none; }
.acx-ext { padding: 10px 2px 0; }
.acx-sec { margin-top: 22px; }
.acx-page > .two-col { margin-top: 22px; }
.acx-page > .two-col > .acx-sec { margin-top: 0; }
.acx-sec .panel-head small { font-size: 13px; color: var(--muted); font-weight: 600; margin-left: 6px; letter-spacing: 0; }

/* ---------- Zeitleiste ---------- */
.acx-time { list-style: none; margin: 0; padding: 24px 21px 22px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); position: relative; }
.acx-time::before { content: ""; position: absolute; left: 21px; right: 21px; top: 31px; height: 2px; background: linear-gradient(90deg, var(--line) 40%, var(--cyan)); }
.acx-time li { position: relative; z-index: 1; padding: 26px 14px 0 0; }
.acx-time li::before { content: ""; position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 2px solid var(--muted); }
.acx-time li.now::before { border-color: var(--cyan); background: var(--cyan); box-shadow: 0 0 0 5px rgba(57, 217, 245, .18); }
.acx-time li.is-live::before { border-color: var(--green); background: var(--green); box-shadow: 0 0 0 5px rgba(45, 224, 160, .2); animation: acx-pulse 1.6s infinite; }
.acx-time b { display: block; font-size: 16px; }
.acx-time span { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.acx-time li.is-live b { color: var(--green); }

/* ---------- Flugzeugtyp ---------- */
.acx-type-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr) minmax(0, 1.2fr); gap: 26px; align-items: start; padding: 21px; }
.acx-type-grid.no-drawing { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
.acx-type-grid.no-wiki { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
.acx-type-grid.no-drawing.no-wiki { grid-template-columns: 1fr; }
.acx-dims { margin: 0; color: var(--cyan); }
.acx-dims svg { width: 100%; max-width: 330px; height: auto; display: block; stroke-linecap: butt; }
.acx-dims text { font-family: inherit; }
.acx-dims figcaption { display: flex; gap: 6px 14px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; color: var(--muted); }
.acx-dims figcaption b { color: var(--text); font-size: 15px; }
.acx-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.acx-facts div { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.acx-facts div.wide { grid-column: 1 / -1; }
.acx-facts dt { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.acx-facts dd { margin: 4px 0 0; font-weight: 700; font-size: 15px; overflow-wrap: anywhere; }
.acx-facts a { text-decoration: none; }
.acx-wiki h3 { margin: 0 0 8px; font-size: 16px; }
.acx-wiki h3 small { display: block; color: var(--muted); font-weight: 500; font-size: 13px; margin-top: 2px; }
.acx-wiki p { margin: 0 0 12px; color: var(--muted); line-height: 1.6; font-size: 14px; }

/* ---------- Betreiber ---------- */
.acx-op-body { display: flex; gap: 20px; align-items: flex-start; padding: 21px; }
.acx-op-logo { flex: none; width: 110px; height: 110px; border-radius: 18px; display: grid; place-items: center; background: #fff; padding: 12px; border: 1px solid var(--line); }
.acx-op-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.acx-op-body .acx-facts { flex: 1; grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- Schwesterflugzeuge ---------- */
.acx-sisters .panel-head p strong { color: var(--text); }
.acx-sis-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(114px, 1fr)); gap: 10px; padding: 21px; }
.acx-sis-strip a { padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); text-decoration: none; color: var(--text); display: grid; gap: 2px; min-width: 0; }
.acx-sis-strip a:hover { border-color: var(--cyan); }
.acx-sis-strip span { font-size: 12px; color: var(--muted); }
.acx-sis-strip a.current { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan) inset; }
.acx-sis-strip a.current b { color: var(--cyan); }

/* ---------- Heller Modus ---------- */
:root[data-theme="light"] .acx-hero::before { background: linear-gradient(90deg, rgba(5, 12, 23, .94) 0%, rgba(5, 12, 23, .7) 45%, rgba(5, 12, 23, .3) 100%), linear-gradient(0deg, rgba(5, 12, 23, .9) 0%, transparent 40%); }
:root[data-theme="light"] .acx-time li.now::before { box-shadow: 0 0 0 5px rgba(8, 115, 154, .15); }
:root[data-theme="light"] .acx-time li.is-live b { color: #0b7a55; }

@media (prefers-reduced-motion: reduce) {
  .acx-badge i, .acx-time li.is-live::before { animation: none; }
  .acx-photo .aircraft-photo { transform: none; }
}

/* ---------- Responsiv ---------- */
@media (max-width: 1100px) {
  .acx-type-grid, .acx-type-grid.no-wiki { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acx-wiki { grid-column: 1 / -1; }
  .acx-type-grid.no-drawing .acx-wiki { grid-column: auto; }
  .acx-op-body .acx-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1050px) {
  .acx-inner { grid-template-columns: 1fr; }
  .acx-photo { max-width: 560px; }
  .acx-photo .aircraft-photo { transform: none; }
  .acx-live { flex-wrap: wrap; }
  .acx-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .acx-stats div:nth-child(3n) { border-right: 0; }
  .acx-stats div:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .acx-time { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 24px; }
  .acx-time::before { display: none; }
}
@media (max-width: 650px) {
  .acx-inner { padding: 22px 16px 18px; gap: 22px; }
  .acx-crumbs { margin-bottom: 12px; }
  .acx-dot { margin: 0 6px; }
  .acx-live { margin: 0 16px 24px; gap: 14px; padding: 14px; }
  .acx-live-body { gap: 12px 16px; }
  .acx-live dl { width: 100%; justify-content: space-between; gap: 8px; }
  .acx-track { width: 100%; justify-content: center; }
  .acx-page { padding-top: 18px; }
  .acx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acx-stats div, .acx-stats div:nth-child(3n) { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .acx-stats div:nth-child(2n) { border-right: 0; }
  .acx-stats div:nth-last-child(-n+2) { border-bottom: 0; }
  .acx-time { grid-template-columns: 1fr; row-gap: 18px; padding: 20px 18px; }
  .acx-time::before { display: block; left: 25px; right: auto; top: 20px; bottom: 20px; width: 2px; height: auto; background: var(--line); }
  .acx-time li { padding: 0 0 0 30px; }
  .acx-type-grid, .acx-type-grid.no-wiki, .acx-type-grid.no-drawing { grid-template-columns: 1fr; padding: 18px; }
  .acx-dims svg { margin: 0 auto; }
  .acx-op-body { flex-direction: column; padding: 18px; }
  .acx-op-body .acx-facts { grid-template-columns: 1fr 1fr; width: 100%; }
  .acx-sis-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 18px; }
}
@media (max-width: 650px) {
  .acx-sec .panel-head { flex-wrap: wrap; gap: 10px 16px; }
  .acx-sec .panel-head > .link-arrow, .acx-sec .panel-head > .updated { flex-basis: 100%; }
}
