html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto; /* Hauptinhalt füllt den Platz aus */
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}


/* ------------------------
   GLOBAL DARK THEME
------------------------- */

body {
  background: #121212; /* echtes dark mode black */
  color: #e0e0e0;
}



/* Links im Dark Mode */
a {
  color: #66b2ff;
}
a:hover {
  color: #99ccff;
}

/* Bootstrap Overrides – dezenter, moderner */
.bg-light {
  background-color: #1f1f1f !important;
}
.table {
  color: #e0e0e0;
}
.table thead {
  background: #222 !important;
  color: #eee !important;
}

/* Panels / Cards */
.card, .shadow-card, .info-box {
  background: #1e1e1e !important;
  color: #e0e0e0;
  border: 1px solid #333;
}

/* Footer */
.footer-dark {
  background: #0e0e0e;
  color: #bbbbbb;
  flex-shrink: 0;
}

/* Buttons leicht moderner machen */
.btn-primary {
  background: #005be0;
  border-color: #005be0;
}
.btn-primary:hover {
  background: #2176ff;
  border-color: #2176ff;
}

.btn-outline-secondary {
  border-color: #888;
  color: #ccc;
}
.btn-outline-secondary:hover {
  background: #333;
  border-color: #aaa;
  color: white;
}

/* Mobile-first Navbar spacing */
.navbar-nav .nav-link {
  padding: 0.6rem 1rem;
  font-size: 1.05rem;
}

/* Für sehr kleine Screens (iPhone SE) */
@media (max-width: 360px) {
  .navbar-brand {
      font-size: 1.1rem;
  }
}

/* Events-Link präsenter machen */
.nav-link-primary {
  color: #ffffff !important;
  font-weight: 600;
}

.nav-link-primary:hover {
  color: #e6e6e6;
}

/* Wrapper für Sticky Footer */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-content {
  flex: 1 0 auto; /* wächst und nimmt den verfügbaren Platz */
}







/* --- Auth page styling --- */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem;
}

.auth-card {
  background: #1e1e2a;
  color: white;
  padding: 2.2rem;
  border-radius: 12px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.6);
}

.auth-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: .5rem;
  text-align: center;
}

.auth-subtitle {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #cfcfcf;
}

/* Floating labels dark mode */
.form-floating > label {
  color: #e0e0e0;       /* helles Grau/Weiß für dunklen Hintergrund */
  font-weight: 600;     /* etwas fetter als normal */
  opacity: 0.9;         /* leicht reduziert für Eleganz */
}

.form-floating .form-control {
  background-color: #2b2b38;
  border: 1px solid #444;
  color: white;
}

.form-floating .form-control:focus {
  background-color: #353542;
  border-color: #6ea8fe;
  box-shadow: 0 0 0 0.2rem rgba(110,168,254,0.25);
}

.form-floating .form-control::placeholder {
  color: #b0b0b0;       /* hellgrau, ruhiger als Label */
  opacity: 1;           /* volle Deckkraft, damit Farbe korrekt angezeigt wird */
}

/* Validation text */
.text-danger {
  color: #ff6b6b !important;
}


.logout-btn {
  padding: 0;
  margin: 0;
  height: auto;       /* passt die Höhe an die Navbar an */
  line-height: 1.5;   /* gleiche Zeilenhöhe wie die Nav-Links */
  text-decoration: none;
}

.logout-btn:hover {
  color: #ffc107;     /* optional, wie bei Hover von Nav-Link */
  text-decoration: underline;
}





/* Dark Mode File Input */
input[type="file"].form-control {
  background-color: #2b2f3a;
  color: #f1f1f1;
  border: 1px solid #444;
}

input[type="file"].form-control::file-selector-button {
  background-color: #3a3f4b;
  color: #ffffff;
  border: none;
  padding: 0.375rem 0.75rem;
  margin-right: 1rem;
}

input[type="file"].form-control::file-selector-button:hover {
  background-color: #4a5160;
  cursor: pointer;
}







/* ------------------------
   Bootstrap Modal Dark Theme Override
------------------------- */

.modal-content {
  /* Hintergrundfarbe wie Ihre Cards/Panels */
  background-color: #1e1e1e !important; 
  color: #e0e0e0;
  border: 1px solid #333;
  border-radius: 0.5rem; /* Standard Bootstrap-Radius beibehalten */
}

.modal-header {
  border-bottom: 1px solid #333; /* Trennlinie anpassen */
  color: #e0e0e0;
}

.modal-footer {
  border-top: 1px solid #333; /* Trennlinie anpassen */
  /* Fügt den dunklen Hintergrund hinzu, falls er nicht schon gesetzt ist */
  background-color: #1e1e1e; 
}

/* Anpassung des Schließen-Buttons (X) für Dark Mode */
.modal-header .btn-close {
  /* Das Icon ist standardmäßig weiß bei Dunkelheit, aber wir stellen sicher, 
     dass es in Ihrem Dark Mode sichtbar und anklickbar ist. */
  filter: invert(1) grayscale(100%) brightness(200%); /* Macht das X hell/weiß */
}

.modal-header .btn-close:hover {
  opacity: 0.8;
}




/* ------------------------
   Title Styling
------------------------- */


.view-title {
  text-align: center;
  font-size: 2.4rem;
  font-weight: 700;
  margin: 2rem 0 2.5rem;
  padding: 1.2rem 2rem;

  color: #ffffff;
  background-color: #1e1e1e;
  border: 1px solid #333;
  border-radius: 12px;

  letter-spacing: 0.5px;
}