/* Flug aus dem Flugbuch im Beitrag (REQ-BL16): Karte, Höhenprofil, Kennzahlen. Gleiche Darstellung wie im Flugbuch. */
.flight-embed { margin: 1.5rem 0; padding: .9rem; background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  --radius: 10px; --accent-text: #fff; --warn: #b5541c; --danger: #b3261e; }
@media (prefers-color-scheme: dark) { .flight-embed { --accent-text: #0f1a17; --warn: #e59866; --danger: #f28b82; } }
.flight-embed h2 { font-size: 1.15rem; margin: 0 0 .2rem; line-height: 1.3; }
.flight-embed .fe-meta { color: var(--muted); font-size: .88rem; display: flex; flex-wrap: wrap; gap: .1rem .9rem; margin-bottom: .6rem; }
.flight-embed .fe-meta strong { color: var(--text); }
.flight-embed .fe-link { font-size: .88rem; margin: .6rem 0 0; }
.flight-embed .muted { color: var(--muted); }
.flight-embed .small { font-size: .85rem; }
.flight-embed .warn { color: var(--warn); }
.flight-embed .toolbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.flight-embed .inline { display: inline-flex; align-items: center; gap: .4rem; margin: 0 .6rem 0 0; font-size: .85rem; }
.flight-embed .seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin-bottom: .4rem; }
.flight-embed .seg button { border: 0; background: transparent; color: var(--text); padding: .35rem .8rem; min-height: 36px; font: inherit; font-size: .9rem; cursor: pointer; }
.flight-embed .seg button.on { background: var(--accent); color: var(--accent-text); }
.flight-embed .btn { display: inline-flex; align-items: center; min-height: 36px; padding: .3rem .9rem; border: 1px solid var(--line);
  border-radius: 999px; background: var(--panel); color: var(--text); font: inherit; font-size: .88rem; cursor: pointer; }
.flight-embed .kv { display: grid; grid-template-columns: max-content 1fr; gap: .2rem 1rem; margin: .6rem 0; font-size: .92rem; }
.flight-embed .kv dt { color: var(--muted); }
.flight-embed .kv dd { margin: 0; }
.flight-embed table.t { width: 100%; border-collapse: collapse; border: 1px solid var(--line); }
.flight-embed table.t td, .flight-embed table.t th { padding: .3rem .4rem; border-bottom: 1px solid var(--line); text-align: left; font-size: .82rem; }
.flight-embed .trackgrid { display: grid; gap: .8rem; }
.flight-embed .trackgrid .info { order: 2; }
.flight-embed .map { border-radius: var(--radius); border: 1px solid var(--line); z-index: 1; }
.flight-embed .trackmap { height: 50vh; min-height: 260px; max-height: 520px; }
.flight-embed .profwrap { margin-top: .4rem; border: 1px solid var(--line); border-radius: var(--radius); }
.flight-embed canvas.profile { display: block; width: 100%; height: 170px; touch-action: pan-y; cursor: crosshair; }
.flight-embed canvas.profile:focus-visible { outline: 2px solid var(--accent); }
.flight-embed .statusline { display: flex; flex-wrap: wrap; gap: .2rem .8rem; font-size: .82rem; font-variant-numeric: tabular-nums; padding: .35rem .2rem 0; min-height: 2.6em; }
.flight-embed .statusline .up { color: #2e8b57; } .flight-embed .statusline .down { color: var(--danger); }
@media (orientation: landscape) and (max-height: 500px) { .flight-embed .trackmap { height: 70vh; } }
/* Mehrere Flüge gemeinsam (REQ-BL17) */
.flight-embed .fc-head { display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: flex-start; margin-bottom: .5rem; }
.flight-embed .fc-legend { display: flex; flex-direction: column; gap: .2rem; font-size: .86rem; }
.flight-embed .fc-item { display: flex; align-items: center; gap: .4rem; cursor: pointer; }
.flight-embed .fc-sw { display: inline-block; width: 14px; height: 4px; border-radius: 2px; flex: none; box-shadow: 0 0 0 1px #fff8; }
.flight-embed .fc-status { display: flex; flex-direction: column; gap: .15rem; font-variant-numeric: tabular-nums; padding: .35rem .2rem 0; min-height: 3em; }
.flight-embed .fc-row { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .7rem; }
.flight-embed .fc-row .up { color: #2e8b57; } .flight-embed .fc-row .down { color: var(--danger); }
.flight-singles .flight-embed { margin-top: .8rem; }
.flight-embed .fc-ctl { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.flight-embed [data-pspeed] { font: inherit; font-size: .9rem; color: var(--text); background: transparent; border: 1px solid var(--line); border-radius: 8px; min-height: 36px; }

/* Profilbilder der Pilot:innen (aus dem Flugbuch, static/pilots/) */
.flight-embed .fe-pilot { display: inline-flex; align-items: center; gap: .4rem; }
.flight-embed .fe-av { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 1px var(--line, #ddd); }
.flight-embed .fc-av { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; flex: none; }
.fc-avpin img { display: block; width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 3px solid; background: #fff; box-shadow: 0 0 4px #0009; }
