/* === Layout & Containers === */
/* --- Responsive table/chart layout --- */
.result-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.chart-wrapper {
  max-width: 400px;
  width: 100%;
  margin: auto;
}

@media (min-width: 900px) {
  .result-layout {
    flex-direction: row;
    align-items: flex-start;
  }

  .result-layout table {
    flex: 1;
  }

  .chart-wrapper {
    flex: 0 0 400px;
  }
}

/* === Diff Colors for Positive/Negative Values === */
.diff-green {
    color: #2ecc71;
    font-weight: bold;
}

.diff-red {
    color: #e74c3c;
    font-weight: bold;
}

/* === Base Body Styling === */
body {
    font-family: sans-serif;
    background: #121212;
    color: #fff;
    padding: 2rem;
    transition: background 0.3s, color 0.3s;
}

/* === Theme: Light & Dark Mode === */
.light-mode {
    background: #f0f0f0;
    color: #000;
}

.dark-mode {
    background: #121212;
    color: #fff;
}

/* === Container Styling === */
.container {
    max-width: 1000px;
    width: 100%;
    box-sizing: border-box;
    margin: auto;
    padding: 2rem;
    border-radius: 10px;
}

.light-mode .container {
    background: #fff;
}

.dark-mode .container {
    background: #1e1e1e;
    color: #ffffff;
}

/* === Dropdown Styling === */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #fff;
  color: #333;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  background-image: url("data:image/svg+xml,%3Csvg fill='gray' viewBox='0 0 140 140' width='14' height='14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='70,100 40,50 100,50'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  margin-bottom: 1rem;
}

select:hover {
  border-color: #888;
}

select:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.light-mode select {
  background-color: #fff;
  color: #000;
}

.dark-mode select {
  background-color: #2c2c2c;
  color: #fff;
  border-color: #555;
}

/* === Dropdown Layout === */
.dropdown-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dropdown-column {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

@media (min-width: 600px) {
    .dropdown-row {
        flex-direction: row;
    }
}

@media (min-width: 600px) {
    .dropdown-column {
        flex-direction: column;
        align-items: center;
    }
}

.dropdown-row select {
    width: 100%;
}

/* === Table Styling === */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th, td {
    padding: 0.5rem;
    border-bottom: 1px solid #444;
}

/* === Score Box Styling === */
.score-box {
    padding: 1rem;
    background: #2ecc71;
    color: #000;
    border-radius: 8px;
    margin: 1rem 0;
    text-align: center;
}

/* === Aircraft Images Styling (under dropdowns) === */
.aircraft-image {
  max-height: 200px;
  width: 100%;
  object-fit: contain;
  aspect-ratio: 16 / 9;
  /*background-color: #00000010; /* Optional: leichter Rahmen-Hintergrund */
  border-radius: 6px;
  display: block;
}

/* === Header Image Styling === */
.header-image {
  width: 100%;
  max-width: 1000px;
  display: block;
  margin: 0 auto 1rem auto;
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
  height: 500px;
  /* clip-path: inset(10px 0 10px 0); */
}

/* === Dropdown Label Styling === */
.dropdown-label {
  font-weight: bold;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  color: var(--text-select, #666);
}

/* === Language Footer Styling === */
.language-footer {
  text-align: center;
  margin-top: 2rem;
}

/* === Language Flag Styling === */
.lang-flag {
  font-size: 1.5rem;
  cursor: pointer;
  margin: 0 0.5rem;
  transition: transform 0.2s;
}

.lang-flag:hover {
  transform: scale(1.1);
}

/* === Language Switcher Styling === */
.language-switcher {
      position: absolute;
      top: 1rem;
      right: 1rem;
    }

    .language-switcher img {
      width: 32px;
      height: auto;
      cursor: pointer;
      margin-left: 0.5rem;
    }

/* === Settings Container & Button Styling === */
.settings-container {
  position: relative;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.settings-button {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: inherit;
}

/* === Settings Menu Styling === */
.settings-menu {
  margin-top: 0.5rem;
  background-color: rgba(255, 255, 255, 0.9);
  color: #000;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.light-mode .settings-menu {
  background-color: #fff;
  color: #000;
}

.dark-mode .settings-menu {
  background-color: #333;
  color: #fff;
}

.settings-menu.hidden {
  display: none;
}


/* === table styles === */
table th {
  cursor: pointer;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
}
th.asc::after {
  content: " 🔼";
}
th.desc::after {
  content: " 🔽";
}
td {
  text-align: right;
}
th {
  hyphens: auto;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

table th,
table td {
  width: 10ch;
  max-width: 10ch;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

th {
  hyphens: auto;
  word-break: break-word;
  overflow-wrap: anywhere;
}


/* Sticky first column in tables */
td:first-child,
th:first-child {
  position: sticky;
  left: 0;
  background: white;
  z-index: 2;
  text-align: left;
  min-width: 200px;
  max-width: 300px;
  white-space: normal;
  word-break: break-word;
}