/* Damit der Header oben bleibt */
.navbar {
    background-color:rgb(18, 90, 72) !important; /* grün */
    background:transparent !important; /* grün */
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    /* padding: 15px;*/
}
/* Damit der Loginbereich richtig zentriert ist */
.login-container {
    min-height: calc(100vh - 90px); /* volle Höhe minus Navbar */;
    display: flex inline;
    justify-content: center;
    align-items: center;
    /* padding-top: 90px; 
    margin-bottom: 70px;*/
    margin-top: 90px;
}

/* der Titel im Header */
.title-style {
  /*color: rgb(18, 90, 72) !important; *//* grün */
  color: white !important; /* grün */
  font-weight: 900; /* Extra Fett für bessere Sichtbarkeit */
    font-size: 3rem;
    font-weight: bold; /* Fetter Text für bessere Sichtbarkeit */
    text-decoration: underline red 6px; /* 🔴 Rote Unterstreichung */
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: rgb(255, 255, 255);
}

/* link wie Button */
.button-style {
    background-color: white; /* Weißer Hintergrund */
    color: rgb(18, 90, 72) ; /* Grüne Schrift */
    border: 2px solid rgb(18, 90, 72); /* Grüner Rand */
    padding: 10px 20px; /* Etwas Platz im Button */
    font-size: 0.8rem; /* Größere Schrift */
    font-weight: bold; /* Fetter Text */
    border-radius: 6px; /* Abgerundete Ecken */
    text-decoration: underline red 2px; /* Rote Unterstreichung */
}
.button-style:hover {
    background-color:rgba(86, 161, 126, 0.66); /* Heller Hintergrund bei Hover */
    cursor: pointer; /* Zeigt Hand-Cursor an */
}
/* Aktivierungs-Effekt */
.button-style:active {
  background-color: #004085; /* Noch dunkleres Blau bei Klick */
  transform: translateY(2px); /* Button wird leicht nach unten verschoben */
}

.header {
  background: url('/assets/img/tauschfabrik_header.jpg') no-repeat center center;
  /*background: url('/assets/img/business-frau_2.jpg') no-repeat center center;
  background: url('/assets/img/bg2-mobile-fallback.png') no-repeat center center;*/
  background-size: cover;
  height: 100vh;
  color: white;
  position: relative;
}
.header-overlay {
  background-color: rgba(18, 90, 72, 0.5);
  height: 100%;
  padding: 2rem;
}
.header .form-container {
  position: absolute;
  bottom: 2rem;
  width: 100%;
  left: 0;
  text-align: center;
}
.info-section {
  background: url('/assets/img/tauschfabrik_header.jpg') no-repeat center center;
  background-size: cover;
  padding: 5rem 2rem;
  color: white;
}
.info-overlay {
  background-color: rgba(18, 90, 72, 0.9);
  padding: 3rem;
  border-radius: 1rem;
}
.header-text {
    color: rgb(87, 104, 100) ; /* Grüne Schrift */
    color: rgb(255, 255, 255) ;
    font-size: 1.2rem; /* Etwas größer für Klarheit */
}
.header-text-sub {
  color: rgb(87, 104, 100)  ; /* Grüne Schrift */
  color: rgb(255, 255, 255) ;
  font-size: 0.8rem;
  padding: 5px ;
  text-decoration: underline;
}
.header-text-sub-sub {
  color: rgb(87, 104, 100)  ; /* Grüne Schrift */
  color: rgb(255, 255, 255) ;
  font-size: 0.8rem;
  grid-template-columns: 1fr 1fr;
  
}

/* Allgemein */
a {
  /*color: rgb(18, 90, 72) ;*/ /* Grüne Schrift */
  color: rgb(255, 255, 255);
  padding: 5px 10px; /* Etwas Abstand um den Link */
  text-decoration: underline red 2px; /* 🔴 Rote Unterstreichung */
}
a:hover {
  /*color: rgb(13, 59, 48);*/ /* grüner Farbwechsel beim Hover */
  color:  rgb(255, 255, 255);
  text-decoration: underline red 2px; /* Unterstreichen beim Hover */
  /*border: 2px solid rgb(18, 90, 72);*/ /* Grüner Rand */
  border: 2px solid rgb(255,255,255);
}
button {
  background-color: white; /* Weißer Hintergrund */
  color: rgb(18, 90, 72) ; /* Grüne Schrift */
  border: 2px solid rgb(18, 90, 72); /* Grüner Rand */
  padding: 10px 20px; /* Etwas Platz im Button */
  font-size: 1.2rem; /* Größere Schrift */
  font-weight: bold; /* Fetter Text */
  border-radius: 6px; /* Abgerundete Ecken */
  text-decoration: underline red 2px; /* Rote Unterstreichung */
}
button:hover {
  background-color:rgba(86, 161, 126, 0.66); /* Heller Hintergrund bei Hover */
  cursor: pointer; /* Zeigt Hand-Cursor an */
  border-color: white;
  color: white;
}

body,html {
  /*padding-bottom: 130px; /* Platz für Statusleiste + Footer */
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* Stellt sicher, dass die Seite immer die volle Höhe des Viewports hat */
}

/* footer styling */
.footer {
  display: none;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  padding: 10px 20px;
  background-color: transparent;
  color: rgb(18, 90, 72);
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: 1000;
}
.footer > div {
  text-align: center;
}
.footer > div:first-child {
  text-align: left;
}
.footer > div:last-child {
  text-align: right;
}

.footer a {
  color: rgb(18, 90, 72) ; /* Grüne Schrift */
  padding: 5px 10px; /* Etwas Abstand um den Link */
  text-decoration: underline red 2px; /* 🔴 Rote Unterstreichung */
}

.footer a:hover {
  color: rgb(13, 59, 48); /* Blauer Farbwechsel beim Hover */
  text-decoration: underline; /* Unterstreichen beim Hover */
  border: 2px solid rgb(18, 90, 72); /* Grüner Rand */
  border-radius: 6px; /* Abgerundete Ecken */
}


/* TABELLE */
.tabellen-container {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 0px;
  width: 100%;  /* Container breiter machen */
  max-width: 1200px; /* Maximalbreite festlegen */
  margin: auto; /* Zentrierung */
}

/* Nur für die Tabelle innerhalb des login-container */
.tabellen-container .table-card {
  width: 90%;  /* Breite erhöhen */
  max-width: 1200px; /* Maximale Breite begrenzen */
}

/* Die Tabelle selbst */
.tabellen-container .table-card table {
  width: 100%;
  max-width: 100%;
}

table {
    width: 80%;
    margin: 30px auto;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

th, td {
    padding: 8px; /* Kleinere Höhe für die Kopfzeile */
    border: 1px solid #ddd;
    white-space: nowrap;
    width: 1%; /* Lässt den Browser die schmalste mögliche Breite wählen */
}

th {
    border: 2px solid green; /* Nur grüne Umrandung */
    background-color: transparent;
    color: black;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

th:hover {
    background-color: rgba(0, 255, 0, 0.1);
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}
/* Hervorhebung der sortierten Spalte */
.sorted-column {
  background-color: rgba(0, 255, 0, 0.1); /* Leicht grüner Hintergrund */
  font-weight: bold; /* Dickere Schrift */
}
/* Entfernt die Umrandung in der 5. Spalte */
.icon-cell {
  /*border: none !important;*/
  text-align: center;
  width: 120px; /* Breite anpassen */
}

.icon-link {
  text-decoration: none;  /* Verhindert die Unterstreichung des Links */
  display: inline-block;   /* Macht das Symbol klickbar */
  padding: 5px;
}

.icon-link:hover {
  background-color: rgba(0, 0, 0, 0.1); /* Leichtes Hervorheben bei Hover */
  border-radius: 3px;                  /* Weiche Ecken für das Highlight */
  transition: background-color 0.3s ease; /* Sanfter Übergang */
}


/* Flex-Container für Text und Button */
.text-button-container {
  display: flex;
  align-items: center;
  gap: 15px; /* Abstand zwischen Text und Button */
}
/* Container für großen und kleinen Text */
.text-container {
  display: flex;
  flex-direction: column; /* Stapelt den Text untereinander */
  align-items: flex-start; /* Linksbündig ausrichten */
  position: relative; /* Ermöglicht absolute Positionierung */
}
/* Kleiner Text als Link */
.small-link {
  font-size: 12px;
  /*color: rgb(18, 90, 72);*/ /* Grüne Schrift */
  /*color: rgb(87, 104, 100)*/ ; /* Grüne Schrift */ 
  color: rgb(255, 255, 255) ; /* Grüne Schrift */ 
  
  /*text-decoration: underline red 2px;*/
  text-decoration: underline rgba(255, 0, 0, 0.493) 2px;
  position: absolute;
    top: 100%; /* Direkt unter den großen Text setzen */
    left: 0;
    margin-top: 2px;}

/* Kleiner Text */
.small-text {
  font-size: 16px;
  font-weight: bold; /* Fetter Text für bessere Sichtbarkeit */
  /*color: rgb(18, 90, 72) !important;*/ /* Grüne Schrift */
  color: white !important; /* Grüne Schrift */
  }


/* Status-Bar */
 .status-bar {
      overflow-y: auto;
      background-color: #eefaf0;
      background-color: transparent;
      padding-right: 5px;
      color: #155724;
      bottom: 2rem;
      z-index: 998;  
      width: auto;
    }
  .status-scroll > div {
      padding: 2px 0;
  }

    /* Ladeoverlay */
    #loader {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      /*background: rgba(86, 161, 126, 0.66);*/
      background: rgb(18, 90, 72);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 9999;
      transition: opacity 0.8s ease;
      opacity: 1;
    }

    #loader.fade-out {
      opacity: 0;
      pointer-events: none;
      --fade-duration: 1s; 
    }

    /* Spinner Style */
    .spinner {
      width: 60px;
      height: 60px;
      border: 6px solid rgba(255, 255, 255, 0.3);
      border-top-color: #ffffff;
      border-radius: 50%;
      animation: spin 1s linear infinite;
    }

    @keyframes spin {
      to {
        transform: rotate(360deg);
      }
    }






/* Responsiv für mobile Geräte */
@media screen and (max-width: 768px) {
  .footer {
      flex-direction: column; /* Fügt die Bereiche untereinander */
      align-items: center; /* Zentriert die Inhalte */
  }

  .footer-left, .footer-center, .footer-right {
      margin-bottom: 10px; /* Abstand zwischen den Bereichen */
  }
}