/* ==========================================================================
   aircraft.css - Ergänzung zu styles.css für aircraft.php
   (nach styles.css einbinden)
   ========================================================================== */

/* ---------- Seitenkopf mit Suche ---------- */

.page-head {
  position: relative;
  padding: 56px 4vw 44px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 340px at 85% -20%, rgba(57, 217, 245, .14), transparent 70%),
    linear-gradient(180deg, #0a1727, var(--bg));
}

.page-head-inner {
  max-width: 1380px;
  margin: 0 auto;
}

.page-head h1 {
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.05;
  margin: 14px 0 10px;
  letter-spacing: -.05em;
}

.page-head h1 span {
  color: transparent;
  background: linear-gradient(90deg, #fff, var(--cyan));
  background-clip: text;
  -webkit-background-clip: text;
}

.page-head p {
  margin: 0;
  color: #bbc6d4;
  font-size: 16px;
}

.page-head .global-search {
  max-width: 640px;
}

/* ---------- Allgemeines Panel ---------- */

.aircraft-page .stats-grid {
  margin-top: 0;
}

.panel {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
}

.panel .panel-head h2 {
  font-size: 19px;
}

/* ---------- Foto + Details ---------- */

.aircraft-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.photo-body {
  padding: 18px;
}

.photo-body a {
  display: block;
}

.photo-body img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.aircraft-photo {
  margin: 0;
}

.photo-credit {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

/* ---------- Datenliste ---------- */

.spec-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.spec-list > div {
  padding: 16px 21px;
  background: var(--surface);
}

.spec-list .wide {
  grid-column: 1 / -1;
}

.spec-list dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.spec-list dd {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.spec-list a {
  color: var(--cyan);
  text-decoration: none;
}

.spec-list a:hover {
  text-decoration: underline;
}

.panel-actions {
  padding: 18px 21px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), #159bd0);
  color: #04101c;
  font-weight: 800;
  text-decoration: none;
}

.cta-button:hover {
  filter: brightness(1.08);
}

/* ---------- Flug-Tabelle ---------- */

.flights-panel .table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th {
  padding: 13px 21px;
  text-align: left;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}

.data-table td {
  padding: 14px 21px;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  white-space: nowrap;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background: #14243a;
}

.data-table .empty {
  padding: 28px 21px;
  color: var(--muted);
  text-align: center;
  white-space: normal;
}

/* ---------- Hinweis "nicht gefunden" ---------- */

.notice {
  padding: 28px 24px;
}

.notice h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.notice p {
  margin: 0;
  color: #bbc6d4;
  line-height: 1.6;
}

/* ---------- Flottenliste (fleet.php) ---------- */

.table-wrap {
  overflow-x: auto;
}

.data-table a {
  color: var(--cyan);
  text-decoration: none;
}

.data-table a:hover {
  text-decoration: underline;
}

.silhouette {
  display: inline-grid;
  place-items: center;
  min-width: 76px;
  height: 36px;
  padding: 4px 8px;
  border-radius: 10px;
  background: #d9ebf9;
}

.silhouette img {
  display: block;
  max-width: 100%;
  max-height: 100%;
}

/* ---------- Responsive ---------- */

@media (max-width: 1050px) {
  .aircraft-layout {
    grid-template-columns: 1fr;
  }

  .photo-body img {
    max-width: 420px;
  }
}

@media (max-width: 650px) {
  .page-head {
    padding: 36px 16px 30px;
  }

  .spec-list {
    grid-template-columns: 1fr;
  }

  .data-table th,
  .data-table td {
    padding: 12px 14px;
  }
}
