body {
  /* Abstand wird dynamisch an die echte Navbar-Höhe angepasst (siehe JS in navbar.php).
     Der Wert hier dient nur als Fallback, bis das JS greift. */
  padding-top: var(--navbar-height, 75px);
  padding-bottom: 70px;
}

th {
  font-weight: normal;
  font-size: small;
}

td {
  font-weight: normal;
  font-size: medium;
  vertical-align: middle;
}

datalist {
  position: absolute;
  background-color: lightgrey;
  font-family: sans-serif;
  font-size: 0.8rem;
  width: 300px;
}

.navbar { 
  margin-bottom: 0px; /* Abstand unter der Navigationsleiste */ 
}

.navbar-collapse { 
  transition: all 0.3s ease; 
} 

.navbar-brand {
  font-size: larger;
}

.navbar-nav>li {
  font-size: small;
}

.navbar .btn {
    height: 36px !important;
    min-width: 36px;
    padding: 0 12px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.navbar .btn i {
    font-size: 1.2rem;
    line-height: 1;
}


/* Standard-Dropdown nach rechts */
.nav-item .dropdown-menu {
  left: auto;
  right: 0;
}

/* Dropdown nach links bei kleinen Bildschirmen */
@media (max-width: 768px) {
  .nav-item .dropdown-menu {
      left: 0;
      right: auto;
  }
}

.dropdown-menu {
  font-size: small;
}

.dropdown-toggle::after {
  display: none;
}


#HinweisFooter {
  font-size: small; /* Schriftgröße */
  color: #7859d5; /* Schriftfarbe */
}

#AnzahlZeilen {
  font-size: small; /* Schriftgröße */
}

.pagination {
  margin: 2px 0;
  color: #3d3d3e;
  border-color: gray;
}


.clearable { 
  position: relative; 
  display: inline-block; 
} 

.clearable input[type="text"] { 
  padding-right: 24px; 
} 
  .clearable__clear { 
    position: absolute; 
    right: 8px; 
    top: 50%; 
    transform: translateY(-50%); 
    cursor: pointer; 
    display: none; 
  } 
  
  .clearable input[type="text"]:not(:placeholder-shown) + .clearable__clear { 
    display: block; 
  }

  .button-row {
    display: flex;
    justify-content: space-between;
}

.input-field { 
  background-color: white; /* Standard-Hintergrundfarbe */ 
} 

.input-field.filled { 
  background-color: rgb(252, 255, 88); /* Hintergrundfarbe, wenn Text eingegeben wurde */ 
}

.input-field:not(:placeholder-shown) {
  background-color:  rgb(252, 255, 88);
}

.button_custom {
  min-width: 55px;
  width: 65px !important;
}

.custom-row {
  height: 20px;
}

 /* Standard Textgröße für Desktop */
 .responsive-text {
  font-size: 18px;
}

/* Für kleinere Bildschirme (bis 576px, typischer Smartphone-Bereich) */
@media (max-width: 768px) {
  .responsive-text {
    font-size: 15px; /* Schriftgröße für Smartphones */
  }
}

.page-link {
  display: inline-block;
  width: 30px; /* oder eine andere gewünschte Breite */
  text-align: center; /* Text zentrieren */
}

.desktop-only {
  display: none;
}

@media (min-width: 490px) {
  .desktop-only {
      display: block;
  }
}

/* Standardmäßig ausblenden */
.mobile-only {
  display: none;
}

/* Nur auf Smartphones sichtbar machen */
@media (max-width: 490px) {
  .mobile-only {
      display: inline-block;
  }
}

/* 3D Card Effect with more compact design */
.flight-card_alt {
  position: relative;
  margin: 5px 0;
  padding: 6px 8px;
  border-radius: 6px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15), 
              0 1px 1px rgba(255, 255, 255, 0.4) inset;
  transition: all 0.25s ease;
  transform: perspective(800px) rotateX(1.5deg);
  transform-style: preserve-3d;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.flight-card_alt:hover {
  transform: perspective(800px) rotateX(0deg) translateY(-3px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2), 
              0 1px 1px rgba(255, 255, 255, 0.4) inset;
}

.flight-card {
  position: relative;
  margin: 5px 0;
  padding: 6px 8px;
  border-radius: 6px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15), 
              0 1px 1px rgba(255, 255, 255, 0.4) inset;
  border: 2px solid transparent;
  transition: all 0.25s ease;
  background: #fff;
  cursor: pointer;
}

/* Hover nur wenn nicht ausgewählt */
.flight-card:hover:not(.selected) {
  border-color: rgba(0, 123, 255, 0.8); /* Blau */
}

/* Ausgewählt */
.flight-card.selected {
  border-color: rgba(40, 167, 69, 0.9); /* Grün */
}


.flight-card-body {
  position: relative;
  z-index: 1;
}

/* Larger registration display */
.flight-card .registration {
  font-size: 1.0rem; /* Larger than the base font */
  font-weight: bold;
  color: #333;
  letter-spacing: 0.5px;
}

/* Make font sizes more compact */
.flight-card, .flight-card .fs-6 {
  font-size: 0.825rem !important;
}

/* Reduce spacing between elements */
.flight-card .d-flex {
  margin-bottom: 2px;
}

/* Last flex container doesn't need bottom margin */
.flight-card .d-flex:last-child {
  margin-bottom: 0;
}

/* Enhanced background colors with subtle gradients */
.bg-success-subtle {
  background: linear-gradient(145deg, #d4edda, #c3e6cb);
}

.bg-danger-subtle {
  background: linear-gradient(145deg, #f8d7da, #f5c6cb);
}

.bg-warning-subtle {
  background: linear-gradient(145deg, #fff3cd, #ffeeba);
}

.bg-info-subtle {
  background: linear-gradient(145deg, #d1ecf1, #bee5eb);
}

.bg-light-subtle {
  background: linear-gradient(145deg, #dee8ea, #cacdcd);
}


/* Add a pseudo-element for subtle glossy effect */
.flight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 6px;
  background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
  pointer-events: none;
}

/* More compact buttons */
.flight-card .btn {
  padding: 0.15rem 0.4rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.flight-card .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.12);
}

/* Smaller icon sizes */
.flight-card .bi {
  font-size: 0.85rem;
}

/* Date headers with matching style */
h6.mt-3.mb-1 {
  font-size: 0.95rem;
  margin-top: 0.8rem !important;
  margin-bottom: 0.2rem !important;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.05);
  padding-left: 4px;
  border-left: 2px solid #007bff;
}

@media (max-width: 768px) {
  .flight-card {
      font-size: 13px;
  }
}



/* Entfernt das Dropdown-Pfeilsymbol */
#dropdownMenuButton::after {
  display: none;
}


.form-row {
  display: flex;
  align-items: center;
  gap: 10px; /* Optional, um einen kleinen Abstand zwischen den Elementen zu schaffen */
}

.form-label {
  margin: 0;
}

.form-select {
    width: 60px; /* Setzt die Breite des Dropdowns auf 20px */
    padding: 0 5px; /* Optional: Fügt etwas Innenabstand hinzu, um den Text innerhalb des Selects besser anzuzeigen */
    overflow: hidden; /* Verhindert, dass der Text außerhalb der Breite angezeigt wird */
    text-overflow: ellipsis; /* Falls der Text zu lang ist, wird er abgeschnitten und mit "..." angezeigt */
}

.arrow-up {
  width: 0; 
  height: 0; 
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 10px solid black;
  display: inline-block;
}

.arrow-down {
  width: 0; 
  height: 0; 
  border-left: 5px solid transparent;
  border-right: 6px solid transparent;
  border-top: 10px solid black;
}

.ui-menu-item-wrapper {
  color: blue;
  font-size: 10px;
}

.suggestions-box {
  position: absolute;
  background: white;
  border: 1px solid #ccc;
  max-height: 200px;
  overflow-y: auto;
  width: 100%;
  display: none;
  z-index: 1000;
}

.suggestion-item {
  padding: 5px;
  cursor: pointer;
}

.suggestion-item:hover {
  background: #f0f0f0;
}

.custom-list li {
  margin-bottom: 5px; /* Abstand zum nächsten li */
}

/* Container und alle Absätze linksbündig, ohne Margin/Padding */
#metar-list {
  text-align: left;
  padding: 0;
  margin: 0;
  font-family: Menlo, Consolas, "Courier New", monospace;
  font-size:.9em ;
}
#metar-list p {
  margin: 0;
  padding: 0;
  text-align: left;
}

.monospace {
  font-family: Menlo, Consolas, "Courier New", monospace;
}

.blink {
    animation: blink 2s infinite;
    vertical-align: top;
    margin-left: 5px;
}
@keyframes blink {
    0%   { opacity: 1; }
    50%  { opacity: 0; }
    100% { opacity: 1; }
}

form.compact-form .form-control {
    padding: 0.3rem 0.5rem !important;
    font-size: .9rem !important;
}

form.compact-form td {
    padding-top: 0.1rem !important;
    padding-bottom: 0.1rem !important;
    line-height: 1.2 !important;
}

form.compact-form label {
    font-size: 0.8rem !important;
    text-align: right;
    display: block;
}

.compact-table td,
.compact-table th {
    padding: 0.25rem !important;
    font-size: 0.8rem !important;
    line-height: 1.2 !important;
}