    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    :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; }

    .search-bar { background: var(--brand-dark); padding: 14px 20px; display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
    .search-bar .direktfluege { display: flex; align-items: center; gap: 6px; color: var(--white); font-weight: 600; font-size: 14px; cursor: pointer; }
    .search-bar .direktfluege input[type=checkbox] { accent-color: var(--white); width: 16px; height: 16px; cursor: pointer; }
    .search-top-bar { background: var(--brand-dark); height: 14px; }
    .search-fields-outer { background: var(--brand-dark); padding: 0 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 12px; height: 40px; gap: 8px; cursor: pointer; 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; }

    /* ── MOBILE SEARCH HEADER ── */
    .mobile-search-header { display: none; background: var(--brand-dark); padding: 10px 12px 12px; gap: 8px; flex-direction: column; }
    .msh-row1 { display: flex; gap: 8px; align-items: center; }
    .msh-row2 { display: flex; gap: 8px; align-items: center; }
    .msh-field { flex: 1; background: var(--white); border-radius: 4px; padding: 10px 14px; font-size: 15px; font-weight: 600; color: var(--text); cursor: pointer; min-width: 0; }
    .msh-swap { background: var(--white); border: 2px solid var(--brand-dark); border-radius: 50%; width: 36px; height: 36px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--brand-dark); cursor: pointer; }
    .msh-date { flex: 1; background: var(--white); border-radius: 4px; padding: 10px 14px; font-size: 14px; color: var(--text); cursor: pointer; display: flex; align-items: center; gap: 6px; min-width: 0; }
    .msh-date span { white-space: nowrap; overflow: hidden; }
    .msh-search-btn { background: var(--brand-accent); color: var(--white); border: none; padding: 10px 20px; border-radius: 4px; font-size: 15px; font-weight: 700; font-family: var(--font); cursor: pointer; flex-shrink: 0; white-space: nowrap; }


    .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] { accent-color: var(--brand-dark); cursor: pointer; }
    .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 .calendar-cell { text-align: center; padding: 6px 2px; cursor: pointer; border-radius: 3px; }
    .dpp-cal .calendar-cell:hover { background: var(--gray-bg); }
    .dpp-cal .calendar-cell.other-month { color: var(--gray-border); cursor: default; }
    .dpp-cal .calendar-cell.selected { background: var(--brand-dark); color: var(--white); border-radius: 50%; }
    .dpp-cal .calendar-cell.in-range { background: var(--green-light); color: #2e7d32; }
    .dpp-cal .calendar-cell.disabled { color: #ccc; cursor: default; pointer-events: none; }
    .search-btn { background: var(--brand-accent); color: var(--white); border: none; padding: 10px 28px; border-radius: 4px; font-size: 16px; font-weight: 700; font-family: var(--font); cursor: pointer; flex-shrink: 0; white-space: nowrap; }
    .search-btn:hover { background: #d44600; }

    .breadcrumb { background: var(--white); padding: 10px 20px; font-size: 13px; color: var(--gray-text); border-bottom: 1px solid var(--gray-border); }
    .breadcrumb a { color: var(--gray-text); text-decoration: none; }
    .breadcrumb a:hover { text-decoration: underline; }
    .breadcrumb strong { color: var(--text); }
    .bc-short { display: none; }
    .bc-full { display: inline; }

    .page-body { display: flex; width: 100%; max-width: 1120px; margin: 20px auto; gap: 20px; padding: 0 16px; box-sizing: border-box; align-items: flex-start; }

    .sidebar { width: 260px; flex-shrink: 0; }
    .sidebar-search { display: flex; gap: 6px; margin-bottom: 18px; }
    .sidebar-search input { flex: 1; padding: 8px 10px; border: 1px solid var(--gray-border); border-radius: 4px; font-family: var(--font); font-size: 13px; }
    .sidebar-search button { background: var(--brand-accent); color: var(--white); border: none; border-radius: 4px; padding: 8px 14px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: var(--font); }
    .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; }
    .filter-more { color: var(--brand-accent); font-size: 12px; cursor: pointer; display: flex; align-items: center; gap: 4px; margin-bottom: 16px; }
    .flight-type-row { display: flex; gap: 8px 14px; margin-bottom: 16px; }
    .flight-type-row label { display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; }
    .flight-type-row input[type=radio] { accent-color: var(--brand-dark); cursor: pointer; }
    .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; }
    .sidebar-links { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; border-top: 1px solid var(--gray-border); }
    .sidebar-links a { font-size: 12px; color: var(--brand-dark); text-decoration: none; }
    .sidebar-links a:hover { text-decoration: underline; }
    .mobile-sidebar-links { display: none; }

    .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: 6px; }
    .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 .calendar-cell { text-align: center; padding: 4px 2px; cursor: pointer; border-radius: 3px; }
    .mini-calendar .calendar-cell:hover { background: var(--gray-bg); }
    .mini-calendar .calendar-cell.selected { background: var(--brand-dark); color: var(--white); }
    .mini-calendar .calendar-cell.in-range { background: var(--green-light); }
    .mini-calendar .calendar-cell.other-month { color: var(--gray-border); }

    .hub-filter { display: flex; flex-direction: column; gap: 8px; }
    #hubFilterSection { display: none; }
    #hubFilterSection.hub-visible { display: block !important; }
    .hub-filter label { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
    .hub-filter input[type=checkbox] { accent-color: var(--brand-dark); flex-shrink: 0; }
    .airline-filter { display: flex; flex-direction: column; gap: 10px; }
    .airline-filter label { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
    .airline-filter input[type=checkbox] { accent-color: var(--brand-dark); flex-shrink: 0; }
    .al-logo { display: flex; align-items: center; flex-shrink: 0; }
    .al-logo-image { width: 40px; height: 40px; object-fit: contain; display: block; }
    .al-days { color: var(--gray-text); font-size: 12px; }

    .results { flex: 1; min-width: 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); }
    .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); }

    .sort-row { display: flex; gap: 24px; align-items: center; font-size: 13px; color: var(--gray-text); margin-bottom: 12px; padding-bottom: 8px; }
    .sort-row > span { font-weight: 600; color: var(--text); }
    .sort-col { cursor: pointer; display: flex; align-items: center; gap: 4px; user-select: none; }
    .sort-col:hover { color: var(--text); }
    .sort-col.active { color: var(--brand-dark); font-weight: 600; }

    .flight-pair { background: var(--white); border: 1px solid var(--gray-border); border-radius: 4px; margin-bottom: 8px; overflow: hidden; }
    .flight-row { display: flex; align-items: stretch; padding: 12px 14px; gap: 12px; border-bottom: 1px solid var(--gray-border); }
    .flight-row:last-child { border-bottom: none; }
    .airline-logo { width: 46px; height: 46px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; align-self: center; }
    .airline-logo-image { width: 40px; height: 40px; object-fit: contain; display: block; }
    .flight-times { display: flex; flex-direction: column; justify-content: space-between; 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[data-stop-type="direct"] { color: var(--green); font-weight: 600; }
    .row-right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; flex-shrink: 0; gap: 8px; }
    .row-price { font-size: 13px; font-weight: 700; color: #e65c00; white-space: nowrap; }
    .day-chips { display: flex; gap: 4px; }
    .pair-footer { display: none; }
    .chip { width: 30px; height: 28px; border-radius: 3px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; }
    .chip[data-chip-state="avail"] { background: var(--green); color: var(--white); }
    .chip[data-chip-state="unavail"] { background: #e0e0e0; color: #aaa; }
.chip[data-chip-state="dim"] { background: #fdfdfd; color: #8a8a8a; border: 1px solid #e6e6e6; }
    .chip[data-chip-state="nofly"] { background: var(--white); color: #ccc; border: 1.5px solid var(--green); }
    .mini-calendar .calendar-cell.in-range-dim { background: var(--green-light); color: #2e7d32; cursor: pointer; }
    .mini-calendar .calendar-cell.in-range-dim:hover { background: #a5d6a7; }
    #headerViewMode {
      display: inline;
      font-size: 11px;
      font-weight: 400;
      line-height: 16px;
      color: #888;
      margin-right: 4px;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }

    #mshViewMode {
      display: inline;
      font-size: 11px;
      font-weight: 400;
      line-height: 14px;
      color: #888;
      margin-right: 4px;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }

    #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; }

    /* ── 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: hidden;
      -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-normal-weight { 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-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; }
    .breadcrumb-home-link { color: var(--gray-text); text-decoration: none; }
    .mf-heading { font-size: 13px; font-weight: 700; margin-bottom: 8px; margin-top: 12px; }
    .mf-heading-first { font-size: 13px; font-weight: 700; margin-bottom: 8px; }
    .filter-row-normal-weight { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-weight: 400; }
    .mobile-wrap-relative-margin { position: relative; margin-bottom: 10px; }
    .mobile-airport-input { width: 100%; padding: 8px 10px; border: 1px solid var(--gray-border); border-radius: 4px; font-family: var(--font); font-size: 13px; }
    .mobile-dropdown-full { display: none; position: absolute; top: calc(100% + 4px); left: 0; right: 0; 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; }
    .mobile-dropdown-full.open { display: block; }
    .mobile-panel-relative { position: relative; }

    /* Sidebar search with leg selector */
    .sidebar-search { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
    .sidebar-search-row { display: flex; gap: 6px; }
    .sidebar-search-row input { flex: 1; padding: 8px 10px; border: 1px solid var(--gray-border); border-radius: 4px; font-family: var(--font); font-size: 13px; }
    .sidebar-leg-tabs { display: flex; gap: 0; border: 1px solid var(--gray-border); border-radius: 4px; overflow: hidden; }
    .sidebar-leg-tab { flex: 1; padding: 6px 8px; font-size: 12px; font-family: var(--font); font-weight: 600; background: var(--white); border: none; cursor: pointer; color: var(--gray-text); transition: background .15s; }
    .sidebar-leg-tab.active { background: var(--brand-dark); color: var(--white); }

    @media (max-width: 780px) {
      .ap-input.mobile-short { font-size: 14px; }
    }

    @media (max-width: 780px) {
      /* Hide desktop search header, show mobile one */
      .search-fields-outer { display: none; }
      .mobile-search-header { display: flex; }
      /* Adjust date picker popup on mobile */
      .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; }
      /* Hide day chips and sidebar */
      .day-chips { display: none; }
      .day-chips-text { display: none; }
      .row-right { display: none; }
      .pair-footer { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; border-top: 1px solid var(--gray-border); font-size: 12px; color: var(--gray-text); }
      .pair-footer-price { font-size: 13px; font-weight: 700; color: #e65c00; }
      .sidebar { display: none; }
      .mobile-filter-bar { display: flex; }
      .page-body { margin-top: 0; }
      .results h1 { font-size: 16px; margin-bottom: 10px; }
      .bc-full { display: none; }
      .bc-short { display: inline; }
      .mobile-sidebar-links { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-top: 1px solid var(--gray-border); margin-top: 8px; }
      .mobile-sidebar-links a { font-size: 13px; color: var(--brand-dark); text-decoration: none; }
      .mobile-sidebar-links a:hover { text-decoration: underline; }
    }

/*
 * Home-Route soll 1:1 wie die Vorlage `from-to-org.html` aussehen.
 * Die globale Base-Huelle wird fuer die Home-Route bewusst reduziert.
 */
#baseLayoutHeader {
  display: none;
}

#messages-container {
  display: none;
}

#baseFooter {
  display: none;
}

#baseLayoutMainContainer {
  display: block;
  min-height: 0;
}

#baseLayoutContentArea {
  display: block;
  position: static;
  inset: auto;
  transform: none;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow: visible;
}

.page-body {
  position: static;
  inset: auto;
  transform: none;
}
