*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
.db-missing-banner {
  background: #fff3cd;
  border-bottom: 1px solid #ffc107;
  color: #664d03;
  font-size: 13px;
  padding: 10px 16px;
  text-align: center;
}
.db-missing-banner code { font-size: 12px; }
    :root {
      --brand-dark:  #003663;
      --brand-accent:#e8520a;
      --green:       #4caf50;
      --green-light: #c8e6c9;
      --gray-bg:     #f5f5f5;
      --gray-border: #ddd;
      --gray-text:   #666;
      --text:        #222;
      --white:       #fff;
      --font:        'Source Sans 3', sans-serif;
    }
    body { font-family: var(--font); background: var(--gray-bg); color: var(--text); font-size: 14px; }

    /* site-nav: siehe assets/site-nav.css */

    .search-fields-outer {
      position: relative;
      z-index: 530;
      background: var(--brand-dark);
      padding: 14px 20px 14px;
    }
    .search-fields { max-width: 1120px; margin: 0 auto; display: flex; gap: 8px; align-items: center; padding: 0 16px; }

    .search-fields input[type=text] { flex: 1; padding: 10px 14px; border: none; border-radius: 4px; font-size: 15px; font-family: var(--font); color: var(--text); background: var(--white); min-width: 0; }
    .swap-btn { background: var(--white); border: 2px solid var(--brand-dark); border-radius: 50%; width: 36px; height: 36px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 18px; color: var(--brand-dark); }
    .date-field {
      display: flex; align-items: center; background: var(--white); border-radius: 4px;
      padding: 0 8px 0 10px; height: 40px; gap: 4px; position: relative;
      min-width: 0; flex: 0 0 auto;
    }
    .date-field span { font-size: 14px; color: var(--text); white-space: nowrap; }
    .date-field:hover { background: #f0f0f0; }
    .date-field-mode {
      font-size: 11px; color: #888; margin-right: 2px; text-transform: uppercase;
      letter-spacing: 0.04em; white-space: nowrap; flex-shrink: 0; cursor: pointer;
    }
    .msh-date {
      flex: 1;
      min-width: 0;
      background: var(--white);
      border-radius: 4px;
      padding: 10px 14px;
      font-size: 14px;
      color: var(--text);
      display: flex;
      align-items: center;
      gap: 6px;
      min-width: 0;
    }
    .msh-date span { white-space: nowrap; overflow: hidden; }
    .msh-date-mode {
      font-size: 10px; color: #888; text-transform: uppercase; letter-spacing: 0.04em;
      white-space: nowrap; flex-shrink: 0; cursor: pointer;
    }

    /* ── MOBILE SEARCH HEADER (+ Airport-Panels direkt darunter, nicht unter der Filterleiste) ── */ */
    .mobile-search-stack {
      display: none !important;
      position: relative;
      z-index: 530;
    }
    .mobile-search-header {
      display: none;
      flex-direction: column;
      gap: 8px;
      background: var(--brand-dark);
      padding: 10px 12px 12px;
      /* eigener Stacking-Kontext über der Filter-Bar (z-index:10), damit das
         aufklappende Header-Nav-Menü nicht dahinter verschwindet */
      position: relative;
      z-index: 600;
    }
    .msh-row1,
    .msh-row2 {
      display: flex;
      gap: 8px;
      align-items: center;
      min-width: 0;
    }
    .msh-row2 { width: 100%; }
    .msh-field {
      flex: 1 1 0;
      min-width: 0;
      background: var(--white);
      border-radius: 4px;
      padding: 8px 28px 8px 10px;
      font-size: 14px;
      font-weight: 600;
      color: var(--text);
      cursor: pointer;
      position: relative;
      display: flex;
      align-items: center;
      overflow: hidden;
    }
    .msh-field span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .msh-clear-btn {
      display: none; position: absolute; top: 50%; right: 8px;
      transform: translateY(-50%);
      background: #bbb; color: #fff; border: none; border-radius: 50%;
      width: 18px; height: 18px; font-size: 11px; line-height: 1;
      cursor: pointer; align-items: center; justify-content: center;
      padding: 0; z-index: 10; transition: background .15s;
    }
    .msh-clear-btn:hover { background: #888; }
    .msh-clear-btn.visible { display: flex; }
    .msh-swap { background: var(--white); border: 2px solid var(--brand-dark); border-radius: 50%; width: 34px; height: 34px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--brand-dark); cursor: pointer; }
    /* Von/Nach-Dropdowns liegen genau unter ihrem Feld: msh-row1 ist der
       Positionskontext, das Panel wird an der Außenkante des Feldes verankert. */
    .msh-row1 { position: relative; }
    .mobile-search-stack .mf-ap-panel {
      position: absolute; top: calc(100% + 6px); left: auto; right: auto;
      width: min(320px, calc(100vw - 24px));
      border: 1px solid var(--gray-border); border-radius: 8px;
      overflow: visible; z-index: 600;
      box-shadow: 0 8px 24px rgba(0,0,0,.16);
    }
    .mobile-search-stack .mf-ap-panel--von  { left: 0;  right: auto; }
    .mobile-search-stack .mf-ap-panel--nach { right: 0; left: auto; }

    .date-picker-popup {
      display: none; position: fixed; top: 80px; right: 20px;
      background: var(--white); border: 1px solid var(--gray-border);
      border-radius: 8px; box-shadow: 0 8px 28px rgba(0,0,0,.15);
      padding: 18px 20px 20px; z-index: 600; width: 520px;
    }
    .date-picker-popup.open { display: block; }
    .dpp-close { position: absolute; top: 10px; right: 12px; background: none; border: none; font-size: 18px; line-height: 1; color: #999; cursor: pointer; padding: 2px 6px; }
    .dpp-close:hover { color: #333; }
    .dpp-view-toggle { display: flex; gap: 20px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--gray-border); margin-bottom: 14px; }
    .dpp-view-toggle label { display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; font-family: var(--font); }
    .dpp-view-toggle input[type=radio] { 
      appearance: auto; 
      -webkit-appearance: radio; 
      accent-color: var(--brand-dark); 
      cursor: pointer; 
      width: 16px; 
      height: 16px; 
      margin: 0; 
      flex-shrink: 0;
    }
    .dpp-cols { display: grid; grid-template-columns: 1fr 1px 1fr; gap: 0 20px; }
    .dpp-divider { background: var(--gray-border); }
    .dpp-col h4 { font-size: 13px; font-weight: 700; margin: 0 0 10px; color: var(--brand-dark); }
    .dpp-cal-nav { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
    .dpp-cal-nav button { background: none; border: none; cursor: pointer; font-size: 18px; color: var(--brand-dark); padding: 0 4px; line-height: 1; }
    .dpp-cal table { width: 100%; border-collapse: collapse; font-size: 12px; }
    .dpp-cal th { color: var(--gray-text); font-weight: 600; text-align: center; padding: 4px 2px; }
    .dpp-cal td { text-align: center; padding: 6px 2px; cursor: pointer; border-radius: 3px; }
    .dpp-cal td:hover { background: var(--gray-bg); }
    .dpp-cal td.other-month { color: var(--gray-border); cursor: default; }
    .dpp-cal td.selected { background: var(--brand-dark); color: var(--white); border-radius: 50%; }
    .dpp-cal td.in-range { background: var(--green-light); color: #2e7d32; }
    .dpp-cal td.disabled { color: #ccc; cursor: default; pointer-events: none; }

    /* Über normale Seiteninhalte; Kopf-Autocomplete liegt in .search-fields-outer (höherer z-index) darüber */
    .breadcrumb { position: relative; z-index: 520; background: var(--white); padding: 10px 0 10px; font-size: 13px; color: var(--gray-text); border-bottom: 1px solid var(--gray-border); }
    .breadcrumb-inner {
      max-width: 1120px;
      margin: 0 auto;
      padding: 0 16px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
    }
    .breadcrumb-trail { min-width: 0; }
    .breadcrumb a { color: var(--gray-text); text-decoration: none; }
    .breadcrumb a:hover { text-decoration: underline; }
    .breadcrumb strong { color: var(--text); }
    .bc-live-now { margin-left: 10px; font-weight: 600; color: var(--gray-text); white-space: nowrap; }
    .bc-short { display: none; }
    .bc-full { display: inline; }
    .bc-qa-abbr { display: none; }
    .bc-context { display: none; color: var(--gray-text); font-weight: 400; margin-left: 5px; }

    /* In XOR-Ansicht (nur von / nur nach): grauen Bereich näher an Breadcrumb */
    body.one-airport .page-body { margin-top: 12px; }

    .page-body { display: flex; max-width: 1120px; margin: 20px auto; gap: 20px; padding: 0 16px; }

    .sidebar { width: 260px; flex-shrink: 0; }
    .filter-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-weight: 600; }
    .filter-row input[type=checkbox] { accent-color: var(--brand-dark); cursor: pointer; flex-shrink: 0; }
    .flight-type-row { display: flex; gap: 8px 14px; margin-bottom: 16px; flex-wrap: wrap; }
    /* Stopp- UND Datums-Modus-Zeile: platz-optimiert wie „Direkt(130)" — Count direkt
       am Wort (im .stop-type-text-Span, keine Flex-Lücke), kompakte Gaps, kein Umbruch
       INNERHALB eines Labels („(379)" darf nie allein in die nächste Zeile rutschen). */
    .flight-type-row.stop-type-row, .flight-type-row.date-mode-row { gap: 4px 8px; margin-bottom: 12px; }
    .flight-type-row.stop-type-row label, .flight-type-row.date-mode-row label { gap: 4px; white-space: nowrap; flex-shrink: 0; }
    .flight-type-row.stop-type-row .stop-type-text, .flight-type-row.date-mode-row .stop-type-text { white-space: nowrap; }
    .flight-type-row.stop-type-row .al-days, .flight-type-row.date-mode-row .al-days { margin: 0; padding: 0; }
    .flight-type-row label { display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; }
    .flight-type-row input[type=radio] { 
      appearance: auto; 
      -webkit-appearance: radio; 
      accent-color: var(--brand-dark); 
      cursor: pointer; 
      width: 16px; 
      height: 16px; 
      margin: 0; 
      flex-shrink: 0;
    }
    .filter-section { margin-bottom: 18px; }
    .filter-section h4 { font-size: 13px; font-weight: 700; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }

    .mini-calendar { margin-bottom: 16px; }
    .mini-calendar .cal-nav { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; margin-bottom: 1px; }
    .mini-calendar .cal-nav button { background: none; border: none; cursor: pointer; font-size: 16px; color: var(--brand-dark); }
    .mini-calendar table { width: 100%; border-collapse: collapse; font-size: 12px; }
    .mini-calendar th { color: var(--gray-text); font-weight: 600; text-align: center; padding: 3px; }
    .mini-calendar td { text-align: center; padding: 4px 2px; cursor: pointer; border-radius: 3px; }
    .mini-calendar td:hover { background: var(--gray-bg); }
    /* Ausgewählter Tag: dezenter dunkler Rahmen (statt dunkler Füllung) — konsistent mit
       der Ergebnisliste und besser wiedererkennbar; Preisfarbe als Füllung bleibt sichtbar. */
    .mini-calendar td.selected { color: var(--brand-dark); box-shadow: inset 0 0 0 2px #1b5e20; font-weight: 700; }
    .mini-calendar td.in-range { background: var(--green-light); }
    .mini-calendar td.other-month { color: var(--gray-border); }
    .mini-calendar td.other-month:hover { color: var(--gray-text); }

    .airline-filter { display: flex; flex-direction: column; gap: 10px; overflow: visible; }
    /* Scroll nur ab 21 Fluglinien (airline-filter--expanded); ≤20 ohne max-height */
    .airline-filter.airline-filter--expanded { max-height: 360px; overflow-y: auto; }
    .airline-filter--collapsed .airline-filter-row.airline-row-preview-hidden { display: none !important; }
    .airline-filter-block { display: flex; flex-direction: column; gap: 4px; }
    .airline-show-all-link {
      font-family: var(--font);
      font-size: 12px;
      color: var(--brand-dark);
      text-decoration: underline;
      cursor: pointer;
      font-weight: 400;
      align-self: flex-start;
      background: none;
      border: none;
      padding: 0;
      margin: 0;
    }
    .airline-show-all-link:hover { text-decoration: underline; }
    .airline-show-all-link[hidden] { display: none !important; }
    .airline-filter label { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
    .airline-filter label.airline-filter-row {
      display: grid;
      grid-template-columns: auto 20px minmax(0, 1fr) auto;
      align-items: center;
      gap: 5px;
      width: 100%;
      max-width: 100%;
      white-space: nowrap;
      font-size: 12px;
      font-weight: 600;
    }
    .airline-filter input[type=checkbox] { accent-color: var(--brand-dark); flex-shrink: 0; }
    .airline-filter-row .al-name {
      overflow: hidden;
      text-overflow: ellipsis;
      min-width: 0;
    }
    .airline-filter-row .al-days { white-space: nowrap; flex-shrink: 0; }
    .al-logo { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 20px; height: 20px; overflow: hidden; }
    .al-logo-img, .airline-logo .al-logo-img { width: 100%; height: 100%; object-fit: contain; }
    .al-days { color: var(--gray-text); font-size: 12px; }

    /* Airline filter heading + alle/keine selector */
    .airline-heading { font-size: 13px; font-weight: 700; margin-bottom: 4px; color: var(--text); }
    .airline-headrow { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
    .airline-headrow .airline-heading { margin-bottom: 0; }
    .airline-headrow .airline-allnone { margin-bottom: 0; }
    .airline-allnone { font-size: 12px; margin-bottom: 8px; display: flex; gap: 6px; align-items: baseline; }
    .airline-allnone a { color: var(--brand-dark); cursor: pointer; text-decoration: underline; font-weight: 400; }
    .airline-allnone a:hover { text-decoration: underline; }
    .airline-allnone a.active { font-weight: 700; pointer-events: none; cursor: default; text-decoration: none; }
    .airline-allnone a.active:hover { text-decoration: none; }
    .airline-allnone .sep { color: var(--brand-dark); font-weight: 700; }

    /* Time-of-day filter */
    .time-filter { display: flex; flex-direction: column; gap: 5px; }
    .time-filter-nav { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; margin-bottom: 0; color: var(--text); }
    .time-filter-nav button { background: none; border: none; cursor: pointer; font-size: 16px; color: var(--brand-dark); padding: 0 4px; line-height: 1; }
    .time-filter-nav button:hover { color: var(--brand-accent); }
    .time-filter-nav .time-range-label { font-size: 13px; color: var(--text); font-weight: 700; }
    /* Flight duration slider */
    .dur-filter { display: flex; flex-direction: column; gap: 6px; }
    .dur-filter-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--text); font-weight: 700; }
    .dur-filter-head .dur-bound { color: var(--text); font-weight: 700; }
    .dur-filter-head .dur-title { color: var(--text); font-weight: 700; }
    .dur-value-line { font-size: 11px; color: var(--gray-text); text-align: center; min-height: 13px; }
    .dur-value-line.limited { color: var(--brand-accent); font-weight: 600; }
    .dur-filter input[type=range] {
      -webkit-appearance: none; appearance: none;
      width: 100%; height: 4px; background: var(--gray-border); border-radius: 2px; outline: none; padding: 0; margin: 4px 0;
    }
    .dur-filter input[type=range]::-webkit-slider-thumb {
      -webkit-appearance: none; appearance: none;
      width: 16px; height: 16px; border-radius: 50%;
      background: var(--brand-dark); cursor: pointer; border: 2px solid var(--white); box-shadow: 0 1px 3px rgba(0,0,0,.25);
    }
    .dur-filter input[type=range]::-moz-range-thumb {
      width: 16px; height: 16px; border-radius: 50%;
      background: var(--brand-dark); cursor: pointer; border: 2px solid var(--white); box-shadow: 0 1px 3px rgba(0,0,0,.25);
    }
    .dur-filter input[type=range].limited::-webkit-slider-thumb { background: var(--brand-accent); }
    .dur-filter input[type=range].limited::-moz-range-thumb { background: var(--brand-accent); }

    .time-cells { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
    .time-cell {
      border: 1.5px solid var(--gray-border); border-radius: 4px; padding: 4px 2px 3px;
      display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
      cursor: pointer; background: var(--white);
      transition: background .15s, border-color .15s;
    }
    .time-cell:hover { background: var(--gray-bg); }
    .time-cell.active { background: var(--green-light); border-color: var(--green); }
    .time-cell.active .time-cell-hours { color: #2e7d32; font-weight: 600; }
    .time-cell.empty { opacity: 0.45; cursor: default; background: #fafafa; border-color: #eee; }
    .time-cell.empty:hover { background: #fafafa; }
    .time-cell.has-flights:not(.active) { border-color: #bbb; }
    .time-cell svg { width: 100%; height: auto; aspect-ratio: 4 / 3; display: block; }
    .time-cell-hours { font-size: 10px; color: var(--gray-text); line-height: 1; text-align: center; }

    .results { flex: 1; min-width: 0; }
    .results-toolbar {
      display: grid;
      grid-template-columns: 1fr auto;
      align-items: start;
      gap: 8px 16px;
      margin-bottom: 6px;
    }
    .results-toolbar h1 { margin-bottom: 0; }
    .results h1 { font-size: 18px; font-weight: 700; margin-bottom: 4px; line-height: 1.3; }
    .results h1 #resultsCount { font-size: 18px; font-weight: 700; color: var(--brand-dark); }
    /* XOR: lange Direkt+Umsteiger-Zeile — etwas kompakter als Standard, aber einheitlich ab erstem Paint */
    .results h1.results-heading--split { font-size: 16px; font-weight: 600; line-height: 1.35; }
    .results h1.results-heading--split #resultsCount { font-size: inherit; font-weight: 600; color: inherit; }
    .results h1.results-heading--split #resultsPrefix,
    .results h1.results-heading--split #resultsHeadingInner { font-weight: 600; }
    .results h1 .results-label { font-size: 14px; font-weight: 400; color: var(--gray-text); display: inline; margin-left: 6px; }
    .results h1 small { font-size: 13px; font-weight: 400; color: var(--gray-text); }
    /* RT-Gesamtpreis-Badge: eigene Zeile unter der Überschrift, stört das 2-Spalten-Grid nicht. */
    .rt-price-badge {
      grid-column: 1 / -1;
      justify-self: start;
      display: inline-block;
      font-size: 13px;
      font-weight: 600;
      color: var(--brand-dark);
      background: #e4f7e7;
      border: 1px solid #bfe6c6;
      border-radius: 999px;
      padding: 3px 11px;
      line-height: 1.4;
    }
    /* display:inline-block oben schlägt sonst das [hidden]-Attribut → leere Pille,
       wenn keine Route/kein RT-Preis (z. B. Einzel-Abflug-Seiten). Hidden gewinnt. */
    .rt-price-badge[hidden] { display: none; }

    .sort-row {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 6px 10px;
      font-size: 13px;
      color: var(--gray-text);
      margin-bottom: 4px;
      padding-bottom: 4px;
    }
    .sort-row .sort-label,
    .sort-row .active-filters-label {
      font-weight: 600;
      color: var(--text);
      margin-right: 2px;
    }
    .sort-row .active-filters-label { margin-left: 4px; }
    .sort-group {
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .sort-col {
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 4px;
      user-select: none;
      font-size: 13px;
      color: var(--gray-text);
    }
    .sort-col:hover { color: var(--text); }
    .sort-col.active { color: var(--brand-dark); font-weight: 600; }
    .active-filters {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px 10px;
    }
    .active-filter-chip {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-size: 13px;
      color: var(--gray-text);
      line-height: 1.2;
    }
    .active-filter-chip--struck .active-filter-chip-label {
      text-decoration: line-through;
      text-decoration-thickness: 1px;
    }
    .active-filter-chip-remove {
      cursor: pointer;
      border: none;
      background: none;
      padding: 0;
      margin: 0;
      line-height: 1;
      font-size: 13px;
      color: var(--gray-text);
      opacity: 0.75;
    }
    .active-filter-chip-remove:hover { color: var(--text); opacity: 1; }
    #sidebarDateSection .flex-over-calendar { margin-top: 0; margin-bottom: 10px; }
    /* Datums-Modus: Top-Reihe „Alle Flüge / Bestpreis-Flüge", darunter die untergeordnete
       Feinwahl „Exakt / ±1 Tag" (eingerückt, dezenter). Wird per JS ein-/ausgeblendet. */
    .date-mode-row { margin-bottom: 8px; }
    .date-flex-sub { margin-top: 0; padding-left: 22px; border-left: 2px solid var(--gray-border); }
    .date-flex-sub label { font-size: 12.5px; color: var(--gray-text); }
    /* Unterauswahl als Textlinks (analog „alle | keine"/.airline-allnone): nicht gewählte
       Werte = unterstrichene Links, der gewählte Wert = fett ohne Link. Die Radios bleiben
       als verstecktes State-/Sync-Element erhalten (checked-Sync + change-Events unverändert). */
    .sub-links input[type=radio] { display: none; }
    .sub-links input[type=radio] + .stop-type-text {
      color: var(--brand-dark); text-decoration: underline; font-weight: 400; cursor: pointer;
    }
    .sub-links input[type=radio]:checked + .stop-type-text {
      font-weight: 700; text-decoration: none; cursor: default;
    }
    .sub-links label:has(input:checked) { pointer-events: none; }
    /* Stopp-Reihe (Direkt | Umstieg | Beides) unter der Datums-Modus-Reihe — gleiche Einrückung
       wie „Exakt / ±1 Tag", kompakter Abstand zur Feinwahl darunter. */
    #sidebarDateSection .stop-type-row.date-flex-sub { margin-bottom: 8px; }
    /* Abflug-Erweiterungen (Cluster): Markup/Optik = Flughafen-Filter (.dir-ap-filter, sidebar.php) —
       keine Sonderregeln. „(+DUS, +FRA)" hinter dem Abflug-Ort in der Ergebnis-Überschrift — dezent. */
    .h-cluster { color: var(--gray-text); font-weight: normal; font-size: 0.82em; white-space: nowrap; }

    .flight-pair { background: var(--white); border: 1px solid var(--gray-border); border-radius: 4px; margin-bottom: 8px; overflow: hidden; position: relative; content-visibility: auto; contain-intrinsic-size: auto 120px; }
    .flight-debug-idx {
      position: absolute;
      top: 2px;
      right: 6px;
      z-index: 2;
      font-size: 9px;
      line-height: 1;
      font-weight: 400;
      font-variant-numeric: tabular-nums;
      color: rgba(0, 0, 0, 0.11);
      pointer-events: none;
      user-select: none;
      letter-spacing: 0.02em;
    }
    .flight-page-marker { height: 0; overflow: hidden; margin: 0; padding: 0; }
    .flight-chunk-pagination {
      margin: 12px 0 20px;
      padding: 10px 12px;
      border: 1px solid var(--gray-border);
      border-radius: 4px;
      background: var(--white);
      font-size: 13px;
      color: var(--brand-dark);
    }
    .flight-chunk-pagination-status { margin-bottom: 8px; color: var(--text-muted, #666); }
    .flight-chunk-pagination-nav {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px;
    }
    .flight-chunk-page-label { display: inline-flex; align-items: center; gap: 4px; }
    .flight-chunk-page-label input {
      width: 4.5em;
      padding: 4px 6px;
      border: 1px solid var(--gray-border);
      border-radius: 3px;
      font-size: 13px;
    }
    .flight-chunk-btn {
      min-width: 32px;
      padding: 4px 10px;
      border: 1px solid var(--gray-border);
      border-radius: 3px;
      background: #f7f7f7;
      cursor: pointer;
      font-size: 14px;
      line-height: 1.2;
    }
    .flight-chunk-btn:disabled { opacity: 0.45; cursor: default; }
    .flight-chunk-btn--primary { font-weight: 600; margin-left: auto; }
    .flight-row {
      display: flex;
      flex-wrap: wrap;
      align-items: flex-start;
      padding: 12px 14px 3px;
      column-gap: 12px;
      row-gap: 4px;
      border-bottom: 1px solid var(--gray-border);
    }
    .flight-row:last-child { border-bottom: none; }
    .airline-logo { width: 38px; height: 38px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; align-self: center; }
    .airline-logo-stack {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 2px;
      width: 100%;
      height: 100%;
    }
    .airline-logo-stack .airline-logo-slot,
    .airline-logo-stack .al-logo-img {
      width: 18px;
      height: 18px;
      flex-shrink: 0;
    }
    .flight-times { display: flex; flex-direction: column; justify-content: flex-start; gap: 2px; flex: 1; min-width: 0; }
    .times-line { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; }
    .times-line .dep, .times-line .arr { color: var(--text); white-space: nowrap; }
    .times-line .duration { font-size: 12px; font-weight: 400; color: var(--gray-text); display: flex; flex-direction: column; align-items: center; flex: 1; gap: 2px; }
    .times-line .duration .line-wrap { display: flex; align-items: center; width: 100%; }
    .times-line .duration hr { flex: 1; border: none; border-top: 1px solid var(--gray-border); }
    .city-line { display: flex; justify-content: space-between; font-size: 12px; color: var(--gray-text); }
    .city-line span:first-child { text-align: left; }
    .city-line span:last-child { text-align: right; }
    .stop-label { font-size: 11px; color: var(--gray-text); flex: 1; text-align: center; padding: 0 6px; }
    .stop-label.direct { color: var(--green); font-weight: 600; }
    .stop-label.via { color: var(--brand-dark); font-weight: 500; }
    .leg-summary {
      flex: 0 0 100%;
      width: 100%;
      order: 10;
      font-size: 11px;
      font-weight: 400;
      color: var(--gray-text);
      opacity: 0.72;
      line-height: 1.35;
      margin: 0;
      padding: 2px 0 0;
      box-sizing: border-box;
    }
    .row-right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; flex-shrink: 0; }
    .row-price { font-size: 13px; font-weight: 700; color: #e65c00; white-space: nowrap; }
    .row-price.row-live-past { color: #555; font-weight: 600; text-transform: lowercase; }
    /* Live-Preis (Kiwi-Enrichment) — Buchungs-Link + Quelle */
    .row-price { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
    .row-price-link { color: inherit; text-decoration: none; }
    .row-price-link:hover { text-decoration: underline; }
    .row-price-src { font-size: 9px; font-weight: 600; color: #999; text-transform: uppercase; letter-spacing: .03em; }
    .row-price--none { color: #999; font-weight: 600; font-size: 11px; }
    .row-price--loading .price-skeleton { display: inline-block; width: 46px; height: 12px; border-radius: 3px;
      background: linear-gradient(90deg, #eee 25%, #f5f5f5 37%, #eee 63%); background-size: 400% 100%;
      animation: priceShimmer 1.2s ease-in-out infinite; }
    @keyframes priceShimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
    /* Bestpreise: Tag(e) mit dem günstigsten Preis dunkelgrün markieren */
    /* Bestpreise: günstige Tage werden allein über die Preisfarbe (grün) markiert —
       KEIN dicker Rahmen (der bleibt dem ausgewählten Datum, .is-selected, vorbehalten). */
    .flight-pair .day-chips .chip.bp-cheap { font-weight: 700; }
    /* Bestpreise-Modus: Kalender-/Dauer-/Zeitblock ausblenden (keine Datumswahl).
       Per Klasse statt Inline-Style, damit die App-eigene Sichtbarkeit (z. B. Rückflug-
       Kalender nur bei Hin-&-Rückflug) beim Verlassen wieder greift. */
    body.bestpreise-mode #sidebarDateSection .mini-calendar,
    body.bestpreise-mode #timeFilterSection,
    body.bestpreise-mode #timeFilterRetSection,
    /* Bestpreise = Einbein-Bestpreis → keine Hin-&-Rückflug-Wahl (siehe syncBestpreiseSidebar). */
    body.bestpreise-mode #tripTypeSection,
    body.bestpreise-mode #mAllTripTypeRow { display: none !important; }
    /* #durFilterSection bleibt im Bestpreise-Modus sichtbar (Flugdauer-Schieber, v.a. für
       Umsteiger mit stark variabler Gesamtdauer) — Sichtbarkeit steuert syncDurFilterVisibility. */
    /* Mobile: Preis-Spalte aus — Live-Status wird in die Zeile geschrieben */
    .live-status-inline { font-size: 11px; font-weight: 700; color: #555; margin-left: 6px; text-transform: lowercase; white-space: nowrap; }
    .day-chips { display: flex; gap: 4px; }
    .chip { min-width: 34px; height: 36px; border-radius: 3px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; padding: 2px 3px; line-height: 1.1; }
    .chip-day-label { font-size: 11px; font-weight: 600; }
    .chip-date-label { font-size: 9px; font-weight: 400; opacity: 0.85; }
    /* Voll-Grün/Hellgrün nur noch in der Matrix-Kopfzeile (matrix-date-chip);
       Karten-Tageschips (.day-chips) sind preisgefärbt, s. u. */
    .chip.avail { background: var(--green); color: var(--white); }
    .chip.dim { background: var(--green-light); color: #2e7d32; }
    /* Tageschips: Farbe = Preis. Vor dem (asynchronen) Einfärben neutral weiß —
       kein grüner Zwischenzustand mehr. Tage ohne Flüge bleiben weiß,
       der aktive Tag bekommt statt Füllung nur einen dunkleren Rahmen. */
    .day-chips .chip.avail,
    .day-chips .chip.dim    { background: var(--white); color: var(--text); border: 1.5px solid #e9e9e9; }
    .day-chips .chip.price-low  { background: #e4f7e7; color: #1f7a33; border: 1.5px solid #bfe6c6; }
    .day-chips .chip.price-mid  { background: #fff1db; color: #9a5a00; border: 1.5px solid #ffd8a3; }
    .day-chips .chip.price-high { background: #fde0de; color: #c0271e; border: 1.5px solid #f3aba6; }
    .day-chips .chip.nofly      { background: var(--white); color: #ccc; border: 1.5px solid #e9e9e9; }
    .day-chips .chip.is-selected { border-color: #1b5e20; border-width: 2px; font-weight: 700; }
    .route-matrix-wrap {
      display: none;
      margin-bottom: 12px;
      background: var(--white);
      border: 1px solid var(--gray-border);
      border-radius: 4px;
      overflow: auto;
      -webkit-overflow-scrolling: touch;
    }
    .route-matrix-wrap.is-visible { display: block; }
    .route-matrix {
      width: 100%;
      border-collapse: collapse;
      font-size: 13px;
    }
    .route-matrix th,
    .route-matrix td {
      border-bottom: 1px solid var(--gray-border);
      padding: 8px 6px;
      text-align: center;
      vertical-align: middle;
    }
    .route-matrix th.route-matrix-ap,
    .route-matrix td.route-matrix-ap {
      text-align: left;
      font-weight: 700;
      color: var(--brand-dark);
      position: sticky;
      left: 0;
      background: var(--white);
      z-index: 1;
      padding-left: 12px;
      min-width: 52px;
    }
    .route-matrix td.route-matrix-ap a {
      color: var(--brand-dark);
      font-weight: 700;
      text-decoration: none;
    }
    .route-matrix td.route-matrix-ap a:hover { text-decoration: underline; }
    .route-matrix .matrix-ap-label--iata { display: none; }
    @media (max-width: 780px) {
      .route-matrix .matrix-ap-label--full { display: none; }
      .route-matrix .matrix-ap-label--iata { display: inline; }
    }
    @media (min-width: 781px) {
      .route-matrix th.route-matrix-ap,
      .route-matrix td.route-matrix-ap {
        min-width: 128px;
        max-width: 220px;
        white-space: nowrap;
      }
      .route-matrix tr.is-metro-row td.route-matrix-ap {
        max-width: 280px;
        white-space: normal;
      }
    }
    .route-matrix thead th { background: var(--gray-bg); font-weight: 600; }
    .route-matrix th.matrix-date-col.is-weekend,
    .route-matrix td.matrix-date-col.is-weekend { background: #f0f3f7; }
    .route-matrix th.matrix-date-col.is-weekend .matrix-date-chip {
      background: #e6ebf1;
      border-radius: 4px;
    }
    .route-matrix th.matrix-date-col.is-weekend .matrix-date-chip.is-selected.chip.avail {
      background: #5a6573;
      color: var(--white);
    }
    .route-matrix th.matrix-date-col.is-weekend .matrix-date-chip.is-selected.chip.avail .chip-date-label {
      opacity: 0.9;
    }
    .route-matrix td.matrix-date-col.is-weekend .matrix-count.is-zero { color: #bbb; }
    .route-matrix th.matrix-date-col,
    .route-matrix td.matrix-date-col {
      width: 1%;
      white-space: nowrap;
    }
    .route-matrix th.matrix-nav-col,
    .route-matrix td.matrix-nav-col {
      width: 26px;
      min-width: 26px;
      max-width: 26px;
      padding: 6px 2px;
    }
    .route-matrix .matrix-week-prev,
    .route-matrix .matrix-week-next {
      background: none;
      border: none;
      cursor: pointer;
      font-size: 16px;
      color: var(--brand-dark);
      padding: 0;
      line-height: 1;
    }
    .route-matrix .matrix-week-prev:hover,
    .route-matrix .matrix-week-next:hover { opacity: 0.75; }
    .route-matrix .matrix-date-chip {
      margin: 0 auto;
      cursor: default;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      min-width: 34px;
      height: 36px;
      padding: 2px 3px;
      line-height: 1.1;
    }
    .route-matrix .matrix-date-chip .chip-day-label { display: block; }
    .route-matrix .matrix-date-chip .chip-date-label { display: block; }
    .route-matrix .matrix-count { font-weight: 700; color: var(--brand-dark); }
    .route-matrix .matrix-count a { color: var(--brand-dark); font-weight: 700; text-decoration: none; }
    .route-matrix .matrix-count a:hover { text-decoration: underline; }
    .route-matrix .matrix-count.is-zero { color: #ccc; font-weight: 400; }
    /* Preis-Chips: kleines farbiges Kästchen um die Flüge-pro-Tag-Zahl. Farbe = Preis. */
    .price-chip {
      display: inline-block;
      padding: 2px 7px;
      border-radius: 7px;
      border: 1px solid transparent;
      font-weight: 700;
      line-height: 1.3;
    }
    .route-matrix a.matrix-count.price-chip { min-width: 2.1em; text-align: center; text-decoration: none; }
    .route-matrix a.matrix-count.price-chip:hover { filter: brightness(0.96); text-decoration: none; }
    .price-low  { background: #e4f7e7; border-color: #bfe6c6; color: #1f7a33; } /* hellgrün — günstig */
    .price-mid  { background: #fff1db; border-color: #ffd8a3; color: #9a5a00; } /* hell-orange — mittel */
    .price-high { background: #fde0de; border-color: #f3aba6; color: #c0271e; } /* rot — teuer */
    .matrix-price-legend {
      margin: 8px 2px 2px;
      font-size: 12px;
      color: var(--gray-text, #667);
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }
    .matrix-price-legend .price-chip { font-size: 11px; padding: 1px 7px; }
    .results-view-toggle {
      display: none;
      margin-bottom: 0;
      flex-shrink: 0;
      justify-self: end;
      align-self: center;
      gap: 5px;
      align-items: center;
    }
    .results-view-toggle.is-visible { display: flex; }
    .view-mode-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 32px;
      height: 32px;
      min-width: 32px;
      min-height: 32px;
      padding: 0;
      border: none;
      background: none;
      cursor: pointer;
      color: #b0b8c4;
      border-radius: 3px;
      line-height: 0;
      box-sizing: border-box;
      flex-shrink: 0;
      transition: color 0.15s ease;
      -webkit-appearance: none;
      appearance: none;
    }
    .view-mode-btn:hover { color: #6b7a8c; }
    .view-mode-btn.active {
      color: var(--brand-dark);
      cursor: default;
    }
    .view-mode-icon {
      display: grid;
      width: 18px;
      height: 18px;
      min-width: 18px;
      min-height: 18px;
      box-sizing: border-box;
      flex-shrink: 0;
    }
    .view-mode-icon--list {
      grid-template-rows: repeat(3, 1fr);
      gap: 1px;
    }
    .view-mode-icon--list .view-mode-line {
      display: block;
      width: 100%;
      height: 100%;
      min-height: 0;
      background: currentColor;
      border-radius: 1px;
    }
    .view-mode-icon--matrix {
      grid-template-columns: repeat(3, 1fr);
      grid-template-rows: repeat(3, 1fr);
      gap: 1px;
    }
    .view-mode-icon--matrix span {
      display: block;
      width: 100%;
      height: 100%;
      min-width: 0;
      min-height: 0;
      background: currentColor;
      border-radius: 1px;
    }
    .mini-calendar td.in-range-dim { background: #f5f5f5; color: #999; cursor: pointer; opacity: 0.6; }
    .mini-calendar td.in-range-dim:hover { background: #e0e0e0; opacity: 0.8; }
    /* Kalender: Tage mit Flügen nach Preis tönen (grün/orange/rot). Ausgewählter Tag
       bleibt dunkel (bekommt keine Preisklasse), Tage ohne Flüge bleiben weiß. */
    .mini-calendar td.cal-price-low  { background: #e4f7e7; color: #1f7a33; opacity: 1; }
    .mini-calendar td.cal-price-mid  { background: #fff1db; color: #9a5a00; opacity: 1; }
    .mini-calendar td.cal-price-high { background: #fde0de; color: #c0271e; opacity: 1; }
    .mini-calendar td.cal-price-low:hover  { background: #d3f0d8; }
    .mini-calendar td.cal-price-mid:hover  { background: #ffe7c2; }
    .mini-calendar td.cal-price-high:hover { background: #fbcecb; }
    .dpp-cal td.cal-price-low  { background: #e4f7e7; color: #1f7a33; }
    .dpp-cal td.cal-price-mid  { background: #fff1db; color: #9a5a00; }
    .dpp-cal td.cal-price-high { background: #fde0de; color: #c0271e; }

    #no-results { display: none; padding: 32px; text-align: center; color: var(--gray-text); font-size: 15px; background: var(--white); border: 1px solid var(--gray-border); border-radius: 4px; }
    .flight-load-error-msg { margin-bottom: 12px; }
    .flight-load-error-retry { padding: 8px 18px; font-size: 14px; font-weight: 600; color: var(--white); background: var(--blue, #1a73e8); border: none; border-radius: 4px; cursor: pointer; }
    .flight-load-error-retry:hover { filter: brightness(0.94); }

    /* ── LADE-SKELETON (Platzhalter bis erste Treffer da sind) ── */
    .flight-skeleton { background: var(--white); border: 1px solid var(--gray-border); border-radius: 4px; padding: 16px; margin-bottom: 8px; }
    .flight-skeleton-line { height: 14px; border-radius: 4px; margin: 10px 0; background: linear-gradient(90deg, #eee 25%, #f5f5f5 37%, #eee 63%); background-size: 400% 100%; animation: flight-skeleton-shimmer 1.4s ease infinite; }
    .flight-skeleton-line--head { width: 45%; height: 18px; }
    .flight-skeleton-line--short { width: 65%; }
    @keyframes flight-skeleton-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
    @media (prefers-reduced-motion: reduce) { .flight-skeleton-line { animation: none; } }

    /* ── MOBILE FILTER BAR ── */
    .mobile-filter-bar {
      display: none;
      padding: 10px 12px;
      background: var(--white);
      border-bottom: 1px solid var(--gray-border);
      gap: 8px;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      position: relative;
      z-index: 10;
    }
    .mobile-filter-bar::-webkit-scrollbar { display: none; }

    .mf-btn {
      display: inline-flex; align-items: center; gap: 6px;
      border-radius: 20px; padding: 6px 14px; font-size: 13px; font-family: var(--font);
      white-space: nowrap; cursor: pointer; border: 1.5px solid var(--gray-border);
      background: var(--white); color: var(--text); font-weight: 500;
      flex-shrink: 0; transition: background .15s, border-color .15s;
    }
    .mf-btn:hover { background: var(--gray-bg); }
    .mf-btn.primary { background: #1a73e8; color: var(--white); border-color: #1a73e8; font-weight: 600; }
    .mf-btn.primary:hover { background: #1558b0; }
    .mf-btn.active { background: #e8f0fe; border-color: #1a73e8; color: #1a73e8; }
    .mf-btn.filtered { background: #fff3e0; border-color: #f57c00; color: #f57c00; }

    /* ── MOBILE FILTER PANEL (dropdown) ── */
    .mf-panel {
      display: none;
      position: absolute;
      top: 100%;
      left: 0; right: 0;
      background: var(--white);
      border-bottom: 2px solid var(--gray-border);
      padding: 16px 20px;
      z-index: 200;
      box-shadow: 0 4px 12px rgba(0,0,0,.1);
    }
    .mf-panel.open { display: block; }
    .mf-panel-header {
      display: flex; justify-content: space-between; align-items: center;
      margin-bottom: 14px;
    }
    .mf-panel-header strong { font-size: 15px; }
    .mf-close-btn {
      background: none; border: none; cursor: pointer; font-size: 20px;
      color: var(--gray-text); padding: 0 4px; line-height: 1;
    }
    .mf-close-btn:hover { color: var(--text); }
    .mf-panel .flight-type-row,
    .mf-panel .filter-row { margin-bottom: 10px; }
    .mf-panel .mini-calendar { max-width: 280px; }

    .mf-bar-wrapper { position: relative; }

    /* ── AIRPORT AUTOCOMPLETE ── */
    .ap-wrap { position: relative; flex: 1; min-width: 0; }
    .ap-wrap.narrow { flex: 0 0 auto; }
    .ap-input { width: 100%; padding: 10px 14px; border: none; border-radius: 4px; font-size: 15px; font-family: var(--font); color: var(--text); background: var(--white); box-sizing: border-box; }
    .ap-dropdown {
      display: none; position: absolute; top: calc(100% + 4px); left: 0;
      min-width: 260px; background: var(--white); border: 1px solid var(--gray-border);
      border-radius: 6px; box-shadow: 0 6px 20px rgba(0,0,0,.12); z-index: 500;
      max-height: 260px; overflow-y: auto;
    }
    .ap-dropdown.open { display: block; }
    .ap-item { padding: 9px 14px; cursor: pointer; font-size: 13px; display: flex; gap: 10px; align-items: baseline; }
    .ap-item:hover, .ap-item.highlighted { background: #f0f4ff; }
    .ap-item-metro .ap-code { color: var(--brand-accent); }
    .ap-item-country .ap-code { color: #1565c0; }
    .ap-metro-tag {
      margin-left: 6px; font-size: 10px; font-weight: 700; text-transform: uppercase;
      letter-spacing: 0.04em; color: var(--brand-accent); opacity: 0.85;
    }
    .ap-country-tag {
      margin-left: 6px; font-size: 10px; font-weight: 700; text-transform: uppercase;
      letter-spacing: 0.04em; color: #1565c0; opacity: 0.9;
    }
    .ap-metro-members { color: var(--gray-text); font-size: 11px; }
    .ap-country-count { color: var(--gray-text); font-size: 11px; }
    .ap-code { font-weight: 700; color: var(--brand-dark); min-width: 32px; }
    .ap-city { color: var(--text); }
    .ap-country { color: var(--gray-text); font-size: 11px; }


    @media (max-width: 780px) {
      .search-fields-outer { display: none !important; }
      .mobile-search-stack { display: block !important; }
      .mobile-search-header { display: flex !important; }
      .date-picker-popup { width: calc(100vw - 24px); right: 12px; left: 12px; top: 130px; flex-direction: column; gap: 12px; }
      .dpp-divider { width: auto; height: 1px; margin: 0; }
      .sidebar { display: none; }
      .mobile-filter-bar { display: flex; }
      .page-body { margin-top: 0; padding: 0 4px; }
      .results h1 { font-size: 16px; margin-bottom: 10px; }
      .results h1.results-heading--split { font-size: 15px; }
      .bc-full { display: none; }
      .bc-short { display: inline; }

      /* flight-row: Chips umbrechen unter die Zeile; Live-Status siehe .live-status-inline */
      .flight-pair { position: relative; padding-bottom: 3px; }
      .flight-row { flex-wrap: wrap; padding: 8px 14px 3px; column-gap: 10px; row-gap: 4px; align-items: flex-start; border-bottom: none !important; }

      /* Ankunftszeit rechtsbündig in times-line */
      .times-line { font-size: 16px; }
      .times-line .arr { margin-left: auto; }

      /* Wochentage: eine DOM-Quelle (.day-chips), mobil als Inline-Textzeile */
      .row-right {
        flex-basis: 100%;
        width: 100%;
        flex-direction: row;
        align-items: flex-start;
        padding: 0 14px 0 48px;
        margin-top: 0;
      }
      .flight-row[data-leg="out"] .row-price {
        position: absolute;
        bottom: 3px;
        right: 14px;
      }
      .day-chips {
        flex-wrap: wrap;
        gap: 0;
        font-size: 11px;
        color: var(--gray-text);
        line-height: 1.5;
      }
      .day-chips .chip {
        min-width: auto;
        height: auto;
        border-radius: 0;
        flex-direction: row;
        gap: 4px;
        padding: 0;
        margin-right: 6px;
        font-weight: 400;
        background: none !important;
        color: var(--gray-text) !important;
        border: none !important;
      }
      .day-chips .chip.nofly { opacity: 0.3; }
      .day-chips .chip-day-label,
      .day-chips .chip-date-label { font-size: 11px; font-weight: 400; opacity: 1; }
      .day-chips .chip-date-label::before { content: ' '; }
      /* Matrix-Grid: wie Desktop Wochentag über Datum (nicht Inline-Zeile) */
      .route-matrix .matrix-date-chip {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-width: 30px;
        height: 36px;
        padding: 2px 3px;
        margin: 0 auto;
        gap: 0;
      }
      .route-matrix .matrix-date-chip .chip-day-label {
        font-size: 11px;
        font-weight: 600;
        opacity: 1;
      }
      .route-matrix .matrix-date-chip .chip-date-label {
        font-size: 9px;
        font-weight: 400;
        opacity: 0.85;
      }
      .route-matrix .matrix-date-chip .chip-date-label::before { content: none; }
      .flight-row[data-leg="out"]:not(:only-child) .row-right {
        border-bottom: 1px solid var(--gray-border);
        padding-bottom: 4px;
        margin-bottom: 0;
      }
      .leg-summary {
        padding: 2px 0 0;
      }
    }

    

    /* ── DIRECTION SEARCH FILTER (from Munich template) ── */
    .sidebar-section { margin-bottom: 16px; }
    .sidebar-label { font-weight: 700; margin-bottom: 6px; display: block; font-size: 13px; }
    .sidebar-input-wrap { position: relative; }
    .sidebar-input { width: 100%; padding: 8px 10px; border: 1px solid var(--gray-border); border-radius: 4px; font-family: var(--font); font-size: 13px; color: var(--text); box-sizing: border-box; }
    .sidebar-input:focus { outline: none; border-color: var(--brand-dark); }
    .collapsible.collapsed .sec-body { display:none; }
    .ap-region-label { font-size:11px; font-weight:700; color:var(--brand-dark); text-transform:uppercase; letter-spacing:.06em; margin:10px 0 4px; padding-bottom:2px; border-bottom:1px solid var(--gray-border); }
    .ap-sep { color:var(--gray-text); margin: 0; padding: 0 1px; letter-spacing: -0.02em; }
    /* Flughafen-Filter: Typo wie Fluglinien, ohne max-height/Scroll */
    .dir-ap-filter { display: flex; flex-direction: column; gap: 5px; overflow: visible; }
    /* Region-Schnellfilter (B5): ab >100 Flughäfen Block über der Liste — ganze Regionen/Länder ab-/anwählbar */
    .dir-region-quick { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--gray-border); }
    .dir-region-quick-title {
      font-size: 11px; font-weight: 700; color: var(--brand-dark);
      text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px;
    }
    .dir-ap-filter label.filter-ap-row {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr) auto;
      align-items: center;
      gap: 5px;
      width: 100%;
      max-width: 100%;
      white-space: nowrap;
      font-size: 12px;
      font-weight: 600;
      cursor: pointer;
    }
    .dir-ap-filter input[type=checkbox] { accent-color: var(--brand-dark); flex-shrink: 0; }
    .dir-ap-filter .filter-ap-row .al-name {
      display: flex;
      align-items: center;
      min-width: 0;
      overflow: hidden;
    }
    .dir-ap-filter .filter-ap-row .ap-filter-code { flex-shrink: 0; font-weight: 600; color: inherit; }
    .dir-ap-filter .filter-ap-row .ap-name-part {
      overflow: hidden;
      text-overflow: ellipsis;
      min-width: 0;
    }
    .dir-ap-filter .filter-ap-row .al-days { white-space: nowrap; flex-shrink: 0; }
    .dir-ap-filter .filter-ap-row.region-hidden,
    .dir-ap-filter .filter-ap-row.region-collapsed { display: none !important; }
    .dir-ap-filter .filter-ap-row.filter-ap-zero,
    .ap-region-header.filter-ap-zero .ap-region-label-text { color: #a8b4c0; font-weight: 500; }
    .dir-ap-filter .filter-ap-row.filter-ap-zero .ap-filter-code { color: #a8b4c0; font-weight: 500; }
    #dirOrigRegionBody, #dirDestRegionBody, #dirHubRegionBody,
    #mAllDirOrigRegionBody, #mAllDirDestRegionBody, #mAllDirHubRegionBody { overflow: visible; }
    .dir-ap-filter .filter-ap-row .filter-hub { accent-color: var(--brand-dark); flex-shrink: 0; }
    .airline-headrow.dir-headrow { margin-bottom: 8px; align-items: flex-start; }
    .ap-region-header .dir-ap-sort-wrap {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-left: auto;
      flex-shrink: 0;
    }
    .ap-region-header .ap-region-label-text { flex: 1 1 auto; min-width: 0; text-align: left; }
    .dir-ap-sort-col {
      cursor: pointer;
      border: none;
      background: none;
      padding: 0;
      font-family: var(--font);
      font-size: 11px;
      color: var(--gray-text);
      user-select: none;
      white-space: nowrap;
    }
    .dir-ap-sort-col:hover { color: var(--text); }
    .dir-ap-sort-col.active { color: var(--brand-dark); font-weight: 700; }
    .airline-headrow.dir-headrow + .sec-body.dir-ap-filter > .ap-region-header:first-child { margin-top: 0; }
    .ap-region-header { display: flex; align-items: center; gap: 6px; margin: 5px 0 2px; padding-bottom: 2px; border-bottom: 1px solid var(--gray-border); }
    .ap-region-header.region-collapsed { margin-bottom: 0; border-bottom-color: transparent; }
    .ap-region-header input[type="checkbox"] { margin: 0; cursor: pointer; accent-color: var(--brand-dark); }
    .ap-region-label-text {
      font-family: var(--font);
      font-size: 11px;
      font-weight: 700;
      color: var(--brand-dark);
      text-transform: uppercase;
      letter-spacing: .06em;
      cursor: pointer;
      background: none;
      border: none;
      padding: 0;
      margin: 0;
      text-align: left;
    }
    .ap-region-label-text:hover { color: var(--brand-accent); }

    /* ── CLEAR (×) BUTTONS ON SEARCH INPUTS ── */
    .ap-wrap { position: relative; }
    .ap-clear-btn {
      display: none; position: absolute; top: 50%; right: 8px;
      transform: translateY(-50%);
      background: #bbb; color: #fff; border: none; border-radius: 50%;
      width: 17px; height: 17px; font-size: 10px; line-height: 1;
      cursor: pointer; align-items: center; justify-content: center;
      padding: 0; z-index: 10; transition: background .15s;
    }
    .ap-clear-btn:hover { background: #888; }
    .ap-clear-btn.visible { display: flex; }
    .ap-input.has-clear { padding-right: 32px; }

    /* Sidebar clear buttons */
    .sidebar-input-wrap { position: relative; }
    .sidebar-clear-btn {
      display: none; position: absolute; top: 50%; right: 8px;
      transform: translateY(-50%);
      background: #bbb; color: #fff; border: none; border-radius: 50%;
      width: 15px; height: 15px; font-size: 9px; line-height: 1;
      cursor: pointer; align-items: center; justify-content: center;
      padding: 0; z-index: 10; transition: background .15s;
    }
    .sidebar-clear-btn:hover { background: #888; }
    .sidebar-clear-btn.visible { display: flex; }
    .sidebar-input.has-clear { padding-right: 28px; }
    
    /* Sidebar swap button */
    .sidebar-swap-row { display: flex; justify-content: center; margin: 2px 0 4px; }
    .sidebar-swap-btn { background: var(--white); border: 2px solid var(--brand-dark); border-radius: 50%; width: 32px; height: 32px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--brand-dark); transition: all 0.2s; }
    .sidebar-swap-btn:hover { background: var(--brand-dark); color: var(--white); transform: rotate(180deg); }
  
  @media (max-width: 780px) {
    .ap-input {
      font-size: 14px;
      padding: 8px 30px 8px 10px;
    }
  }


/* ════════════════════════════════════════════════════════════════════════
   MOBILE FILTER SHEET — Booking-Style Vollbild-Layer
   Fork: mobile-ux-booking. In sich geschlossener Block; zum Verwerfen
   einfach diesen Abschnitt + mobile-sheet.js + die msheet-Markup-Teile
   in mobile-filters.php entfernen. Hält sich an unser Layout:
   Primär-Aktion orange (var(--brand-accent)), Schrift var(--font).
   ════════════════════════════════════════════════════════════════════════ */
@media (max-width: 780px) {
  /* Hintergrund-Abdunkelung hinter dem Sheet */
  .msheet-backdrop {
    display: none; position: fixed; inset: 0;
    background: rgba(0, 22, 44, .45); z-index: 999;
  }
  .msheet-backdrop.open { display: block; }

  /* Hintergrund-Scroll sperren, solange das Sheet offen ist */
  body.msheet-lock { overflow: hidden; }

  /* panelAll wird zum Vollbild-Layer, sobald es .open trägt.
     ID-Selektor → höhere Spezifität als das alte Dropdown (.mf-panel.open). */
  .mf-panel.mf-sheet.open {
    position: fixed; inset: 0;
    max-height: none; margin: 0; padding: 0;
    border: none; border-radius: 0; box-shadow: none;
    overflow: hidden; z-index: 1000;
    display: flex; flex-direction: column;
    background: var(--white);
    animation: msheet-slide-up .22s ease;
  }
  @keyframes msheet-slide-up {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
  }

  /* Das alte Dropdown-Headerchen im Sheet-Modus verstecken */
  .mf-panel.mf-sheet.open > .mf-panel-header { display: none; }

  /* ── Sticky Header: ✕ links · Titel mitte · Zurücksetzen rechts ── */
  .msheet-header { display: none; }
  .mf-panel.mf-sheet.open .msheet-header {
    display: flex; align-items: center; justify-content: space-between;
    flex: 0 0 auto; padding: 11px 14px;
    background: var(--white); border-bottom: 1px solid var(--gray-border);
  }
  .msheet-title {
    font-size: 16px; font-weight: 700; color: var(--text); font-family: var(--font);
  }
  .msheet-x {
    background: none; border: none; cursor: pointer;
    font-size: 22px; line-height: 1; color: var(--text);
    padding: 4px 8px 4px 0; font-family: var(--font);
  }
  .msheet-reset {
    background: none; border: none; cursor: pointer;
    font-size: 14px; font-weight: 600; color: var(--brand-accent);
    padding: 4px 0 4px 8px; font-family: var(--font);
  }

  /* ── Scrollbarer Body ── */
  .msheet-body { /* im Dropdown-Modus unsichtbar (panelAll ist dann zu) */ }
  .mf-panel.mf-sheet.open .msheet-body {
    flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch;
    padding: 16px 20px 20px;
  }
  .mf-panel.mf-sheet.open .msheet-body [data-msheet-anchor] { scroll-margin-top: 8px; }

  /* ── Sticky Footer mit unserer Primär-Aktion (orange) ── */
  .msheet-footer { display: none; }
  .mf-panel.mf-sheet.open .msheet-footer {
    display: block; flex: 0 0 auto;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--white); border-top: 1px solid var(--gray-border);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, .06);
  }
  .msheet-apply {
    width: 100%; background: var(--brand-accent); color: var(--white);
    border: none; border-radius: 4px; padding: 13px 20px;
    font-size: 16px; font-weight: 700; font-family: var(--font);
    cursor: pointer; white-space: nowrap;
  }
  .msheet-apply:hover { background: #d44600; }

  /* ── Sort-Sheet: Booking-Style Radio-Liste ── */
  .msheet-sortlist { display: block; }
  .msheet-sortopt {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; width: 100%; cursor: pointer;
    padding: 15px 2px; border: none; border-bottom: 1px solid var(--gray-border);
    background: none; text-align: left;
    font-size: 16px; font-family: var(--font); color: var(--text);
  }
  .msheet-sortopt:last-child { border-bottom: none; }
  .msheet-sortopt .msheet-radio {
    flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
    border: 2px solid var(--gray-border); position: relative; box-sizing: border-box;
  }
  /* Ausgewählt: dunkelblau wie die nativen Projekt-Radios (accent-color: var(--brand-dark)),
     statt eines Sonder-Orange — so wirkt das Sheet nicht wie ein Fremdelement. */
  .msheet-sortopt[aria-checked="true"] .msheet-radio { border-color: var(--brand-dark); }
  .msheet-sortopt[aria-checked="true"] .msheet-radio::after {
    content: ""; position: absolute; inset: 4px; border-radius: 50%;
    background: var(--brand-dark);
  }
  .msheet-sortopt[aria-checked="true"] { font-weight: 700; }

  /* ── Booking-Leiste: Sortieren · Filtern · [Liste|Matrix] — randlos ── */
  /* Punkt 1: 10px weniger Weiß ober- und unterhalb (Bar-Polster 10px → 0). */
  .mobile-filter-bar.mf-bar-trio { justify-content: space-between; gap: 0; align-items: stretch; padding-top: 0; padding-bottom: 0; }
  /* Sortieren/Filtern: KEIN Rahmen, kein Kasten — nur Icon + Text (wie Booking) */
  .mf-btn.mf-btn-bar,
  .mf-btn.mf-btn-bar.primary {
    flex: 1 1 0; justify-content: center; gap: 3px; /* Punkt 2: Icon↔Wort 5px enger (8→3) */
    border: none; background: none; border-radius: 0;
    padding: 10px 6px; font-size: 14px; font-weight: 600; color: var(--text);
  }
  .mf-btn.mf-btn-bar:hover,
  .mf-btn.mf-btn-bar.primary:hover { background: none; }
  .mf-btn.mf-btn-bar svg { flex: 0 0 auto; }
  /* dünne Trenner zwischen den Bar-Items */
  .mf-bar-trio > * + * { border-left: 1px solid var(--gray-border); }
  /* aktiver Sort → dezenter oranger Akzent (nur Schrift, kein Kasten) */
  .mf-btn.mf-btn-bar.filtered { background: none; color: var(--brand-accent); }

  /* ── Liste/Matrix als 2-Icon-Segment ── */
  .mf-viewseg { display: none; align-items: center; justify-content: center; gap: 2px; flex: 0 0 auto; padding: 0 10px; }
  .mf-viewseg.is-on { display: flex; }
  .mf-viewseg-btn {
    border: none; background: none; cursor: pointer; padding: 6px 8px;
    border-radius: 6px; color: var(--gray-text); line-height: 0;
  }
  .mf-viewseg-btn .view-mode-icon { color: currentColor; }
  .mf-viewseg-btn.active { color: var(--brand-accent); background: #fff3ea; }

  /* ── Punkt 3: „Sortierung: …"-Zeile ist redundant zum Sortieren-Button → weg ── */
  #sortRow { display: none !important; }
  /* Liste/Matrix steckt mobil in der Bar (mfViewSeg) → den Toggle neben der
     Überschrift mobil ausblenden, sonst doppelt. */
  #resultsViewToggle { display: none !important; }

  /* ── F&A wandert in die Filter-Bar (mfBarQA), neben Sortieren/Filtern ──
     Breadcrumb-eigener F&A-Link mobil aus → Breadcrumb bleibt einzeilig. */
  .bc-qa-link { display: none !important; }
  .mf-btn.mf-btn-bar.mf-qa { flex: 0 0 auto; padding-left: 14px; padding-right: 14px; text-decoration: none; }

  /* Punkt 3: „von"/„nach" in den Ergebnis-Überschriften nur mobil ausblenden
     (Leerzeichen stehen außerhalb der Spans → kollabieren zu einem). */
  #resultsHeading .h-rel { display: none; }
  /* Ergebnis-Überschrift mobil etwas einrücken + nach unten */
  #resultsHeading { margin-left: 3px; margin-top: 10px; }

  /* Mobile Breadcrumb: zweiten Teil („Flüge nach …") weglassen, dafür hinter
     „FRA – JFK" den Kontext (Bestpreise / Datum / ±1 Tag) anzeigen. */
  #bcCityWrap { display: none; }
  .bc-context { display: inline; }

  /* Mobile Header-Nav (Hamburger) sitzt auf dem dunkelblauen Suchkopf → weiße
     Striche, sonst sind sie transparent/unsichtbar (keine .search-fields-outer-Regel). */
  .mobile-search-header .site-nav-bar { background: #fff; }
  .mobile-search-header .site-nav-toggle:hover,
  .mobile-search-header .site-nav-toggle:focus-visible { background: rgba(255, 255, 255, .12); }

  /* ── Mobile Datum-Sheet (Booking-Style Vollbild-Monats-Scroll) ── */
  .mdate-top {
    flex: 0 0 auto; padding: 6px 20px 6px; background: var(--white);
    border-bottom: 1px solid var(--gray-border);
  }
  /* Leg-Auswahl in EINER Zeile: „Hin [Datum] ✈ [Datum] Zurück" */
  .mdate-legs { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 4px 0 8px; }
  .mdate-leg {
    border: none; background: none; cursor: pointer; font-family: var(--font);
    display: inline-flex; align-items: baseline; gap: 7px; padding: 3px 2px 5px;
    border-bottom: 2px solid transparent;
  }
  .mdate-leg-cap { font-size: 14px; font-weight: 600; color: var(--gray-text); }
  .mdate-leg-date { font-size: 15px; font-weight: 700; color: var(--text); }
  .mdate-leg.active { border-bottom-color: var(--brand-accent); }
  .mdate-leg.active .mdate-leg-cap,
  .mdate-leg.active .mdate-leg-date { color: var(--brand-accent); }
  .mdate-leg.md-leg-off .mdate-leg-cap,
  .mdate-leg.md-leg-off .mdate-leg-date { color: #bbb; }
  .mdate-leg.md-leg-off { border-bottom-color: transparent; cursor: default; }
  .mdate-leg-plane { color: #bbb; font-size: 17px; }
  .mdate-ctrl-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; padding: 3px 0; }
  .mdate-ctrl-row label { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-family: var(--font); cursor: pointer; }
  .mdate-ctrl-row input[type=radio] { accent-color: var(--brand-dark); width: 16px; height: 16px; }
  .mdate-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; padding: 8px 0 0; }
  .mdate-weekdays span { text-align: center; font-size: 12px; font-weight: 600; color: var(--gray-text); }

  .md-month { margin-bottom: 18px; }
  .md-month-label { font-size: 17px; font-weight: 700; color: var(--text); margin: 6px 0 10px; }
  .md-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
  .md-day, .md-empty { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; border-radius: 12px; font-size: 15px; font-weight: 600; box-sizing: border-box; }
  .md-empty { background: none; }
  /* Tage in unserem Terzil-Farbcode (identisch zu Tageschips/Matrix) */
  .md-day { cursor: pointer; background: var(--white); color: #bbb; border: 1.5px solid #ececec; }
  .md-day.md-low  { background: #e4f7e7; color: #1f7a33; border-color: #bfe6c6; }
  .md-day.md-mid  { background: #fff1db; color: #9a5a00; border-color: #ffd8a3; }
  .md-day.md-high { background: #fde0de; color: #c0271e; border-color: #f3aba6; }
  .md-day.md-past { background: none; color: #d6d6d6; border-color: transparent; cursor: default; font-weight: 500; }
  .md-day.md-inrange { box-shadow: inset 0 0 0 9999px rgba(0, 54, 99, .10); }
  /* Ausgewählte Tage UND ±1-Nachbarn bekommen grauen Hintergrund (überdeckt die Preis-Tönung) */
  .md-day.md-sel, .md-day.md-flex { background: #d9dde2; color: var(--text); }
  .md-day.md-sel { box-shadow: inset 0 0 0 2px var(--brand-dark); }        /* exakt: dunkler Rahmen */
  .md-day.md-flex { box-shadow: inset 0 0 0 2px rgba(0, 54, 99, .35); }    /* ±1: hellerer Rahmen */
}

/* ── Saison-Navigation „Zielflughäfen nach Saison" (season-filter.js) ──
   Eignungs-Punkte ●/◐ IMMER in Markenfarbe — Ampelfarben (grün/orange/rot)
   sind im Produkt für Preise reserviert. */
.season-nav { display: flex; flex-direction: column; gap: 2px; }
.season-nav-row { display: flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; white-space: nowrap; }
.season-nav-row input[type=radio] { accent-color: var(--brand-dark); cursor: pointer; flex-shrink: 0; margin: 0; }
.season-nav-row .al-days { color: #888; }
.season-legend-wrap { margin-top: 6px; }
.season-legend-toggle { color: var(--brand-dark); text-decoration: underline; cursor: pointer; font-size: 12px; }
.season-legend { font-size: 12px; color: #333; }
.season-legend p { margin: 6px 0 4px; }
.season-legend ul { margin: 0 0 4px; padding-left: 16px; }
.season-legend li { margin: 2px 0; }
