/* Allgemeine Fensterstile */
.draggable {
  position: absolute;
  top: 100px;
  left: 200px;
  width: 400px;
  border: 1px solid #ccc;
  background: white;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.draggable .header {
  background: #007bff;
  color: white;
  padding: 5px 10px;
  cursor: move;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.draggable .close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  margin: 0;
  padding: 0;
}

.hidden {
  display: none;
}

/* Navigation */
.navbar .btn {
  margin: 5px;
  padding: 5px 8px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
}

.navbar .btn img {
  height: 40px;
  width: auto;
  margin: 0;
}

/* Standard Hamburger-Menü für das rechte Menü bleibt */
.navbar-toggler-icon {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1 2.5a.5.5 0 0 1 .5-.5h13a.5.5 0 0 1 0 1h-13a.5.5 0 0 1-.5-.5zm0 5a.5.5 0 0 1 .5-.5h13a.5.5 0 0 1 0 1h-13a.5.5 0 0 1-.5-.5zm0 5a.5.5 0 0 1 .5-.5h13a.5.5 0 0 1 0 1h-13a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
background-size: contain;
background-repeat: no-repeat;
}

/* Benutzerdefiniertes Symbol für das linke Menü */
.custom-toggler-icon {
background-image: url("google/settings_220dp_F3F3F3_FILL0_wght400_GRAD0_opsz48.svg"); /* Dein Icon hier */
background-size: contain; /* Passt die Größe des Bildes an */
background-repeat: no-repeat; /* Verhindert Wiederholung */
background-position: center; /* Zentriert das Bild */
width: 30px;
height: 30px;
}

.custom-toggler-icon {
background-color: red; 
}

/* Überschreibt die Standardgröße der Bootstrap-Toggler-Schaltfläche 
.custom-toggler {
border: none;
padding: 0;
}  */

/*  Testfarbe
.custom-toggler-icon {
background-color: red; 
} */

/* Tooltip-Stil */
.tooltip {
position: absolute;
background-color: #333;
color: #fff;
padding: 5px 10px;
border-radius: 5px;
font-size: 12px;
pointer-events: none; /* verhindert Interaktion */
opacity: 0; /* unsichtbar zu Beginn */
transition: opacity 0.2s;
z-index: 1000;
}

.navbar-nav span {
display: block;
text-align: center;
font-size: 0.875rem; /* Kleinere Schrift */
margin-top: 5px; /* Abstand zwischen Icon und Text */
}

#pdfViewer {
background-color: red; 
}

.custom-text-085 {
font-size: 0.85rem; /* Schriftgröße nach Bedarf anpassen */
}

/* Match the dark grey behind the AFU King banner. */
.navbar.bg-dark {
  background-color: #353535 !important;
}

/* Responsive navigation and landing page. */
.navbar .navbar-brand { display: flex; align-items: center; min-width: 0; margin-right: .5rem; }
.navbar .navbar-brand img { max-width: 100%; object-fit: contain; }
.navbar #rightMenu > .btn,
.navbar #rightMenu .navbar-nav > .btn,
.navbar #rightMenu button[aria-label="Logout"] { color: #f8fafc; }
.navbar #rightMenu > .btn:hover,
.navbar #rightMenu .navbar-nav > .btn:hover,
.navbar #rightMenu button[aria-label="Logout"]:hover { color: #fff; background: #505050; }
.nav-auth { display: flex; align-items: flex-start; gap: .75rem; color: #fff; }
.navbar .nav-register { margin: 0; }
.nav-login { min-width: 0; }
.nav-login-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: .5rem; }
.nav-login-fields .form-control { min-width: 0; }
.navbar .nav-login-fields .btn { margin: 0; height: auto; min-height: 42px; }
.nav-login-options { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin-top: .5rem; font-size: .8rem; }
.nav-login-options a { color: #b9dcff; }
.home-intro { padding-top: 2rem; }
.home-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.home-mobile-login { display: none; }
.home-logo { width: 50%; height: auto; }
.site-news { padding: .85rem 1rem; margin-bottom: 1rem; border: 1px solid #b9d8f5; border-radius: 16px; background: #eef6ff; color: #17324d; }
.site-news h2 { margin: 0 0 .65rem; font-size: .9rem; }
.site-news-label { color: #245887; font-weight: 700; }
.stat-container { width: 100%; max-width: 400px; }
.stat-container table { width: 100%; margin: 0; }
.cookie-notice { position: fixed; inset: auto 0 0; z-index: 1080; background: #26323f; color: #fff; padding: 1rem max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)); box-shadow: 0 -4px 20px #0003; display: flex; align-items: center; justify-content: center; gap: 1rem; }
.cookie-notice[hidden] { display: none; }
.cookie-notice p { margin: 0; max-width: 850px; }
.cookie-notice a { color: #b9dcff; }
.cookie-notice .btn { flex-shrink: 0; }
@media (max-width: 991.98px) {
  .navbar > .container { gap: .5rem; }
  .navbar .navbar-brand { max-width: calc(100% - 68px); }
  .navbar .navbar-brand img { height: auto; max-height: 44px; }
  .navbar .navbar-brand img:first-of-type { width: 40px; flex-shrink: 0; }
  .navbar .navbar-brand img:last-of-type { min-width: 0; max-width: calc(100% - 40px); }
  #rightMenu { padding: 1rem 0 .5rem; border-top: 1px solid #ffffff30; }
  .nav-auth { flex-direction: column; align-items: stretch; gap: 1rem; padding-bottom: 1rem; }
  .navbar .nav-register { align-self: flex-start; min-height: 44px; padding-inline: 1.25rem; }
  .nav-login-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
  .nav-login-fields .form-control { padding: .6rem .5rem; font-size: 16px; }
  .nav-login-options { justify-content: space-between; font-size: .875rem; }
  .navbar #rightMenu > .btn,
  .navbar #rightMenu .navbar-nav > .btn,
  .navbar #rightMenu button[aria-label="Logout"] { justify-content: flex-start; gap: .75rem; margin: .25rem 0; padding: .5rem .75rem; width: 100%; }
  .navbar #rightMenu .btn span { margin-top: 0; font-size: 1rem; }
  .home-mobile-login { display: inline-flex; justify-content: center; align-items: center; }
}
@media (max-width: 575.98px) {
  .home-intro { padding-top: 1.25rem; }
  .home-intro h1 { font-size: 1.9rem; }
  .home-actions { flex-direction: column; align-items: stretch; }
  .home-actions .btn { white-space: normal; padding: .75rem 1rem; }
  .home-logo { width: 85%; max-width: 360px; }

  .cookie-notice { flex-direction: column; align-items: stretch; gap: .75rem; font-size: .9rem; }
  .cookie-notice .btn { min-height: 44px; }
  .stat-container table td, .stat-container table th { padding: .5rem; }
  .main-container select { max-width: 100%; }
}

.site-news { position: relative; }
.site-news-label { display: block; padding-right: 2.5rem; }
.site-news-close { position: absolute; top: .5rem; right: .5rem; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: #17324d; font-size: 1.75rem; line-height: 1; }
.site-news-close:hover { background: #d6e8fa; }
.site-news-close:focus-visible { outline: 2px solid #245887; outline-offset: 2px; }

.site-news-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.site-news-item { display: flex; align-items: center; justify-content: flex-start; gap: .75rem; min-width: 0; }
.site-news-item h3 { margin: 0 0 .15rem; font-size: 1rem; }
.site-news-item p { margin: 0; font-size: .875rem; line-height: 1.4; }
.site-news-item .btn { flex-shrink: 0; display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
@media (max-width: 991.98px) {
  .site-news-items { grid-template-columns: 1fr; gap: .65rem; }
  .site-news-item + .site-news-item { border-top: 1px solid #c9dff2; padding-top: .65rem; }
}

.afu-home-label, .navbar .navbar-nav .afu-home-label { display: none; }
@media (max-width: 991.98px) {
  .navbar .afu-home-link { color: #f8fafc; width: 100% !important; justify-content: flex-start !important; gap: .75rem; margin: .25rem 0 !important; padding: .5rem .75rem !important; border-radius: 5px; }
  .navbar .afu-home-link:hover { color: #fff; background: #505050 !important; }
  .navbar .afu-home-link .afu-home-label { display: block; margin: 0; font-size: 1rem; }
}

@media (max-width: 991.98px) {
  .navbar #leftMenu { padding: 1rem 0 .5rem; }
  .navbar #leftMenu .btn { justify-content: flex-start; gap: .75rem; margin: .25rem 0; padding: .5rem .75rem; width: 100%; text-align: left; }
  .navbar #leftMenu .btn span { margin-top: 0; font-size: 1rem; text-align: left; }
}
