/* Allgemeine STYLES FESTLEGEN ####################################################### */
@import url('fontfaces.css');

/* BOOTSTRAP - FARBEN */
[data-bs-theme=light] {
  --bs-blue: #0d6efd;
  --bs-indigo: #6610f2;
  --bs-purple: #6f42c1;
  --bs-pink: #d63384;
  --bs-red: #dc3545;
  --bs-orange: #fd7e14;
  --bs-yellow: #ffc107;
  --bs-green: #198754;
  --bs-teal: #20c997;
  --bs-cyan: #0dcaf0;
  --bs-black: #000;
  --bs-white: #fff;
  --bs-gray: #6c757d;
  --bs-gray-dark: #343a40;
  --bs-gray-100: #f8f9fa;
  --bs-gray-200: #e9ecef;
  --bs-gray-300: #dee2e6;
  --bs-gray-400: #ced4da;
  --bs-gray-500: #adb5bd;
  --bs-gray-600: #6c757d;
  --bs-gray-700: #495057;
  --bs-gray-800: #343a40;
  --bs-gray-900: #212529;
  --bs-primary: #0d6efd;
  --bs-secondary: #6c757d;
  --bs-success: #198754;
  --bs-info: #0dcaf0;
  --bs-warning: #ffc107;
  --bs-danger: #dc3545;
  --bs-light: #f8f9fa;
  --bs-dark: #212529;
  --bs-primary-rgb: 13, 110, 253;
  --bs-secondary-rgb: 108, 117, 125;
  --bs-success-rgb: 25, 135, 84;
  --bs-info-rgb: 13, 202, 240;
  --bs-warning-rgb: 255, 193, 7;
  --bs-danger-rgb: 220, 53, 69;
  --bs-light-rgb: 248, 249, 250;
  --bs-dark-rgb: 33, 37, 41;
  --bs-primary-text-emphasis: #052c65;
  --bs-secondary-text-emphasis: #2b2f32;
  --bs-success-text-emphasis: #0a3622;
  --bs-info-text-emphasis: #055160;
  --bs-warning-text-emphasis: #664d03;
  --bs-danger-text-emphasis: #58151c;
  --bs-light-text-emphasis: #495057;
  --bs-dark-text-emphasis: #495057;
  --bs-primary-bg-subtle: #cfe2ff;
  --bs-secondary-bg-subtle: #e2e3e5;
  --bs-success-bg-subtle: #d1e7dd;
  --bs-info-bg-subtle: #cff4fc;
  --bs-warning-bg-subtle: #fff3cd;
  --bs-danger-bg-subtle: #f8d7da;
  --bs-light-bg-subtle: #fcfcfd;
  --bs-dark-bg-subtle: #ced4da;
  --bs-primary-border-subtle: #9ec5fe;
  --bs-secondary-border-subtle: #c4c8cb;
  --bs-success-border-subtle: #a3cfbb;
  --bs-info-border-subtle: #9eeaf9;
  --bs-warning-border-subtle: #ffe69c;
  --bs-danger-border-subtle: #f1aeb5;
  --bs-light-border-subtle: #e9ecef;
  --bs-dark-border-subtle: #adb5bd;
  --bs-white-rgb: 255, 255, 255;
  --bs-black-rgb: 0, 0, 0;
  --bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
  --bs-body-font-family: "MontserratMedium", var(--bs-font-sans-serif);
  --bs-body-font-size: 1rem;
  --bs-body-font-weight: 400;
  --bs-body-line-height: 1.5;
  --bs-body-color: #212529;
  --bs-body-color-rgb: 33, 37, 41;
  --bs-body-bg: #fff;
  --bs-body-bg-rgb: 255, 255, 255;
  --bs-emphasis-color: #000;
  --bs-emphasis-color-rgb: 0, 0, 0;
  --bs-secondary-color: rgba(33, 37, 41, 0.75);
  --bs-secondary-color-rgb: 33, 37, 41;
  --bs-secondary-bg: #e9ecef;
  --bs-secondary-bg-rgb: 233, 236, 239;
  --bs-tertiary-color: rgba(33, 37, 41, 0.5);
  --bs-tertiary-color-rgb: 33, 37, 41;
  --bs-tertiary-bg: #f8f9fa;
  --bs-tertiary-bg-rgb: 248, 249, 250;
  --bs-heading-color: inherit;
  --bs-link-color: #0d6efd;
  --bs-link-color-rgb: 13, 110, 253;
  --bs-link-decoration: underline;
  --bs-link-hover-color: #0a58ca;
  --bs-link-hover-color-rgb: 10, 88, 202;
  --bs-code-color: #d63384;
  --bs-highlight-color: #212529;
  --bs-highlight-bg: #fff3cd;
  --bs-border-width: 1px;
  --bs-border-style: solid;
  --bs-border-color: #dee2e6;
  --bs-border-color-translucent: rgba(0, 0, 0, 0.175);
  --bs-border-radius: 0.375rem;
  --bs-border-radius-sm: 0.25rem;
  --bs-border-radius-lg: 0.5rem;
  --bs-border-radius-xl: 1rem;
  --bs-border-radius-xxl: 2rem;
  --bs-border-radius-2xl: var(--bs-border-radius-xxl);
  --bs-border-radius-pill: 50rem;
  --bs-box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --bs-box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --bs-box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
  --bs-box-shadow-inset: inset 0 1px 2px rgba(0, 0, 0, 0.075);
  --bs-focus-ring-width: 0.25rem;
  --bs-focus-ring-opacity: 0.25;
  --bs-focus-ring-color: rgba(13, 110, 253, 0.25);
  --bs-form-valid-color: #198754;
  --bs-form-valid-border-color: #198754;
  --bs-form-invalid-color: #dc3545;
  --bs-form-invalid-border-color: #dc3545;
}

[data-bs-theme=dark] {
  color-scheme: dark;
  --bs-body-color: #dee2e6;
  --bs-body-color-rgb: 222, 226, 230;
  --bs-body-bg: #212529;
  --bs-body-bg-rgb: 33, 37, 41;
  --bs-emphasis-color: #fff;
  --bs-emphasis-color-rgb: 255, 255, 255;
  --bs-secondary-color: rgba(222, 226, 230, 0.75);
  --bs-secondary-color-rgb: 222, 226, 230;
  --bs-secondary-bg: #343a40;
  --bs-secondary-bg-rgb: 52, 58, 64;
  --bs-tertiary-color: rgba(222, 226, 230, 0.5);
  --bs-tertiary-color-rgb: 222, 226, 230;
  --bs-tertiary-bg: #2b3035;
  --bs-tertiary-bg-rgb: 43, 48, 53;
  --bs-primary-text-emphasis: #6ea8fe;
  --bs-secondary-text-emphasis: #a7acb1;
  --bs-success-text-emphasis: #75b798;
  --bs-info-text-emphasis: #6edff6;
  --bs-warning-text-emphasis: #ffda6a;
  --bs-danger-text-emphasis: #ea868f;
  --bs-light-text-emphasis: #f8f9fa;
  --bs-dark-text-emphasis: #dee2e6;
  --bs-primary-bg-subtle: #031633;
  --bs-secondary-bg-subtle: #161719;
  --bs-success-bg-subtle: #051b11;
  --bs-info-bg-subtle: #032830;
  --bs-warning-bg-subtle: #332701;
  --bs-danger-bg-subtle: #2c0b0e;
  --bs-light-bg-subtle: #343a40;
  --bs-dark-bg-subtle: #1a1d20;
  --bs-primary-border-subtle: #084298;
  --bs-secondary-border-subtle: #41464b;
  --bs-success-border-subtle: #0f5132;
  --bs-info-border-subtle: #087990;
  --bs-warning-border-subtle: #997404;
  --bs-danger-border-subtle: #842029;
  --bs-light-border-subtle: #495057;
  --bs-dark-border-subtle: #343a40;
  --bs-heading-color: inherit;
  --bs-link-color: #6ea8fe;
  --bs-link-hover-color: #8bb9fe;
  --bs-link-color-rgb: 110, 168, 254;
  --bs-link-hover-color-rgb: 139, 185, 254;
  --bs-code-color: #e685b5;
  --bs-highlight-color: #dee2e6;
  --bs-highlight-bg: #664d03;
  --bs-border-color: #495057;
  --bs-border-color-translucent: rgba(255, 255, 255, 0.15);
  --bs-form-valid-color: #75b798;
  --bs-form-valid-border-color: #75b798;
  --bs-form-invalid-color: #ea868f;
  --bs-form-invalid-border-color: #ea868f;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  font-family: "MontserratMedium", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover; /* Passt sich an alle Bildschirmgrößen an */
  background-position: center; /* Zentriert das Bild */
  background-repeat: no-repeat; /* Kein Wiederholen */
  background-attachment: fixed; /* Fixiertes Hintergrundbild */
  margin: 0;
  height: 100%;
  overflow: auto;
  font-size: 16px;
}

/* CURSOR-STYLE DISABLED */
html body input:disabled, 
html body textarea:disabled, 
html body select:disabled, 
html body button:disabled {
    cursor: not-allowed !important;
}

/* FONT SIZES and STYLES */
small {
  font-size: 14px;
}

h1 {
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 24px;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 20px;
}

b {
  font-size: 18px;
}

p {
  font-size: 16px;
}

/* Body im lightmode */
body.light, 
html.light {
  background-image: url(../../../../.system/sources/config/media/background.jpg);
  color: #333;
}

/* Body im darkmode */
body.dark, 
html.dark {
  background-image: url(../../../../.system/sources/config/media/background_dark.jpg);
  color: #ccc;
}

/* Body Backdrop-styles */
body.glaseffect .backdrop, 
html.glaseffect .backdrop{
  backdrop-filter: blur(13px) !important;
  -webkit-backdrop-filter: blur(13px)!important;
}

/* SPECIAL STYLE WITH REQUESTS */
.card {
    overflow: hidden;
}

.form-control:hover, .form-select:hover {-webkit-box-shadow: 0px 7px 10px -9px rgb(44,9,119); box-shadow: 0px 7px 10px -9px rgb(44,9,119);}


  /* Alle Input-Felder */
.form-control, .form-select {
    border: 1px solid rgb(44,9,119) !important; /* Neue Border-Farbe */
    background-color: rgb(0,86,214) !important; /* Hintergrundfarbe */
    color: rgb(153,187,239) !important; /* Textfarbe #99bbef */
}
.input-group-text {
    border: 1px solid rgb(44,9,119) !important; /* Neue Border-Farbe */
    background-color: rgb(44,9,119) !important; /* Hintergrundfarbe */
    color: rgb(171,157,201) !important; /* Textfarbe */
}

/* Range Track (Hauptleiste) */
.form-range::-webkit-slider-runnable-track {
    background-color: rgb(0,86,214) !important;
    border: 1px solid rgb(44,9,119) !important;
}
.form-range::-moz-range-track {
    background-color: rgb(0,86,214) !important;
    border: 1px solid rgb(44,9,119) !important;
}
.form-range::-ms-track {
    background-color: rgb(0,86,214) !important;
    border: 1px solid rgb(44,9,119) !important;
}

/* Webkit Browser (Chrome, Edge, Safari) */
.form-range::-webkit-slider-thumb {
    background: rgb(44,9,119);
    border: 1px solid rgb(44,9,119);
}
/* Firefox */
.form-range::-moz-range-thumb {
    background: rgb(44,9,119);
    border: 1px solid rgb(44,9,119);
}
/* IE/Edge (älter) */
.form-range::-ms-thumb {
    background: rgb(44,9,119);
    border: 1px solid rgb(44,9,119);
}

  /* ==== THEME: Cards =================================================== */
.card {
    border: 1px solid rgb(40,8,107) !important;
    background-color: rgb(0,86,214) !important;
    color: rgb(153,187,239) !important;
    overflow: hidden;
}

/* Card Header */
.card > .card-header {
    border-bottom: 1px solid rgb(35,7,95) !important;
    background-color: rgb(44,9,119) !important;
    color: rgb(171,157,201) !important;
}

.card > .collapse .card-header {
    border-bottom: 1px solid rgb(35,7,95) !important;
    background-color: rgb(44,9,119) !important;
    color: rgb(171,157,201) !important;
}

/* Card Body */
.card > .card-body {
    background-color: rgb(0,86,214) !important;
    color: rgb(153,187,239) !important;
}

/* Card Footer */
.card > .card-footer {
    border-top: 1px solid rgb(35,7,95) !important;
    background-color: rgb(44,9,119) !important;
    color: rgb(171,157,201) !important;
}

/* Transparente Tabelle */
.transtable {
  height: auto;
  width: 100%;
  margin: 0;
  display: flex;
}

.transtable .conleft {
  width: 55%;
  float: left;
  text-align: right;
}
            
.transtable .conright {
  width: 44%;
  float: left;
  text-align: center;
}

.sbtngroup.btn-group {
  border: 3px solid rgb(44,9,119); 
  background: rgb(44,9,119);
  animation: fadeIn 0.5s ease-in-out;
}

.sbtngroup.btn-group .input-group-text {
  border-radius: 0 !important; 
  padding-left: 1px; 
  padding-right: 1px;
  margin-right: 1px;
  border-top: none;
  border-bottom: none;
  border-left: none;
  border-right: none;
  background-color: rgb(44,9,119);
  color: #FFFFFF;
}

.sbtngroup.btn-group .btn:hover {
  -webkit-box-shadow: inset 0px 2px 10px -2px rgba(0,0,0,0.9); 
  box-shadow: inset 0px 2px 10px -2px rgba(0,0,0,0.9);
}
.sbtngroup button {
  text-align: center;
}

.sbtngroup .themebgbutton {
  background-color: rgb(0,73,182);
  color: #FFFFFF;
}
.sbtngroup .themebgsbutton {
  background-color: rgb(44,9,119);
  color: #FFFFFF;
}

.sbtngroup .themebgbutton:active {
  background-color: rgb(44,9,119);
  color: #FFFFFF;
  border-color: rgb(44,9,119);
}
.sbtngroup .themebgsbutton:active {
  background-color: rgb(44,9,119);
  color: #FFFFFF;
  border-color: rgb(44,9,119);
}
.sbtngroup .themebgbutton.show {
  border-color: rgb(44,9,119);
}
.sbtngroup .themebgsbutton.show {
  border-color: rgb(44,9,119);
}

.dropdown-menu {
  backdrop-filter: blur(10px); /* Weicher Blur-Effekt */
  -webkit-backdrop-filter: blur(10px); /* Für Safari */
  background-color: rgba(0,86,214, 0.7); /* Leicht transparente weiße Farbe */
  border: 1px solid rgba(8,8,8, 0.2); /* Weicher Rand */
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

.dropdown-menu li button, .dropdown-menu li a {
  text-align: left;
  transition: all 0.2s ease-in-out
  color: #FFFFFF;
}
.dropdown-menu li button:hover, .dropdown-menu li a:hover {
  background: rgb(44,9,119);
  background: linear-gradient(90deg,rgba(42, 123, 155, 0) 0%, rgba(44,9,119, 0.5) 50%, rgba(237, 221, 83, 0) 100%);
}

.barriercard {
  display: none;
  position: fixed;
  top: 10%;
  left: 20%;
  width: 60%;
  height: auto;
  z-index: 10;
  background-color: rgba(255, 255, 255, 0.7); /* Leicht transparente weiße Farbe */
  border: 1px solid rgba(0, 0, 0, 0.2); /* Weicher Rand */
  padding: 10px;
  border-radius: 20px;
}
[data-bs-theme="dark"] .barriercard {
  background-color: rgba(0, 0, 0, 0.5); /* Leicht transparente schwarze Farbe */
  border: 1px solid rgba(255, 255, 255, 0.2); /* Weicher Rand im Dark-Mode */
}

.awd_containerwindow {
  position: absolute;
  max-width: 90%;
  height: auto;
  max-height: 90%;
  overflow-y: auto;
  margin: 4px auto;
  border-radius: 12px;
  border: 1px solid rgb(44,9,119);
  background-color: rgba(0,86,214,0.76);
  padding: 0;
  width: auto;
  min-width: 800px;
  box-shadow: 0 0 20px 0 rgba(0,0,0,0.1);
  animation: fadeIn 0.6s ease-in-out;
  transition: background 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  scrollbar-width: none; /* Für Firefox */
  -ms-overflow-style: none; /* Für Internet Explorer */
}

.awd_containerwindow:hover {
  background-color: rgba(0,86,214,0.81);
}

.awd_containerwindow:hover {
  box-shadow: 0 0 20px -5px rgba(0,0,0, 0.6);
}

.awd_containerwindow .concontent {
  position: relative;
  height: auto;
  padding: 0 40px 40px 40px;
  width: 100%;
  text-align: center;
  z-index: 10;
}

.awd_containerwindow .conheader {
  position: sticky !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 38px;
  padding: 10px;
  border-bottom: 1px solid transparent;
  margin-top: -1px;
  z-index: 20;
  text-align: left;
  font-size: 12px;
  opacity: 0.5;
  transition: background 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  box-shadow: 0px 23px 17px -25px rgba(0, 0, 0, 0); /* Standard: kein Schatten */
}

.awd_containerwindow .conheader .leftcont {
  width: 94%;
  float:left;
  text-align: left;
}
.awd_containerwindow .conheader .rightcont {
  width: 5%;
  float:left;
  text-align: right;
}
.awd_containerwindow .bottommenu{
  border-top: 1px solid transparent;
  padding: 15px 40px 15px 40px; 
  margin: 0 -40px -15px -40px;
  transition: background 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.awd_containerwindow .bottommenu.is-sticky {
  border-top: 1px solid rgba(8,8,8, 0.3);
  background: rgba(0,86,214, 0.95);
  -webkit-box-shadow: 0px -6px 15px -7px rgba(0,0,0,0.5); 
  box-shadow: 0px -6px 15px -7px rgba(0,0,0,0.5);
}

.awd_containerwindow.scrolled .conheader {
  opacity: 1;
  border-bottom: 1px solid rgba(8,8,8, 0.2);
  -webkit-box-shadow: 0px 20px 25px -15px rgba(0,0,0,0.5);
  -moz-box-shadow: 0px 20px 25px -15px rgba(0,0,0,0.5);
  box-shadow: 0px 20px 25px -15px rgba(0,0,0, 0.5);
}

.awd_containerwindow .conheader {
  background: rgba(0,86,214, 0.0);
}
.awd_containerwindow .conheader:hover {
  background: rgba(0,86,214, 0.4);
}
.awd_containerwindow.scrolled .conheader {
  border-bottom: 1px solid rgba(8,8,8, 0.3);
  background: rgba(0,86,214, 0.95);
}

.awd_containerwindow img.headlogo {
  width: 0 !important;
  height: auto;
  margin-top: 0;
  margin-left: 0;
  transition: all 0.3s ease-in-out
}

.awd_containerwindow.scrolled img.headlogo {
  width: 25px !important;
  height: auto;
  margin-top: -5px;
  margin-left: 0;
}

.awd_containerwindow .cleancolcut {
  max-width: 400px;
}

.awd_containerwindow::-webkit-scrollbar {
  display: none; /* Für Webkit-Browser (Chrome, Edge, Safari) */
}

.awd_containerwindow input, select {
  text-align: center;
}

.awd_containerwindow .logo {
  margin-bottom: 2px;
  font-size: 20px;
  color: #333;
}

.awd_containerwindow select.form-select option:disabled {
    color: rgba(255, 0, 0, 0.2) !important;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* MOBILE ANSICHT #################################################################### */
@media only screen and (max-width: 767px) {
  body, html {
    padding: 3px;
    background-size: cover; /* Passt sich an alle Bildschirmgrößen an */
    background-position: center; /* Zentriert das Bild */
    background-repeat: no-repeat; /* Kein Wiederholen */
    background-attachment: fixed; /* Fixiertes Hintergrundbild */
  }
  body.light, 
  html.light {
    background-image: url(../../../../.system/sources/config/media/mobile_background.jpg);
  }

  /* Body im darkmode */
  body.dark, 
  html.dark {
    background-image: url(../../../../.system/sources/config/media/mobile_background_dark.jpg);
  }
  .awd_containerwindow {
    width: 96%;
    min-width: 90vw;
    max-width: 98%;
    max-height: 96%;
    box-shadow: none;
    margin: 0;
  }
  .awd_containerwindow .bottommenu{
    padding: 10px 20px 10px 20px; 
    margin: 0 -20px -10px -20px;
  }
  .awd_containerwindow .concontent {
    padding: 0 20px 40px 20px;
  }
  .awd_containerwindow .cleancolcut {
    max-width: 100%;
  }

}

/* JUST BUTTONS */
.btn-roundet {
  opacity: 0.5;
  background: none;
  border: 1px solid rgba(0,0,0, 0.5);
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  margin-right: 4px;
  transition: all 0.2s ease-in-out 0.1s;
}

.btn-roundet:hover {
  width: 1.0rem;
  height: 1.0rem;
  opacity: 0.8;
}

.btn-roundet.red {
  background-color: rgba(255, 0, 0, 0.9);
}
.btn-roundet.white {
  background-color: rgba(255, 255, 255, 0.9);
}

.btn-roundet:hover.red {
  background-color: rgba(255, 0, 0, 1);
}
.btn-roundet:hover.white {
  background-color: rgba(255, 255, 255, 1);
}

/* Custom context menu */        
.custom-context-menu {
  position: absolute;
  display: none;
  background-color: white;
  border: 1px solid #ddd;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.custom-context-menu a {
  display: block;
  padding: 8px 16px;
  text-decoration: none;
  color: black;
}

.custom-context-menu a:hover {
  background-color: #f8f9fa;
}

/* INFO MODAL DIALOG ################################################################# */
#InfoModal .modal-content {
  color: var(--bs-body-color) !important; /* Dynamische Textfarbe */
  backdrop-filter: blur(13px) !important;
  -webkit-backdrop-filter: blur(13px)!important;
  border-radius: 12px 12px 5px 12px;
  border: 1px solid rgb(44,9,119);
  background: rgba(0,86,214,0.76) !important;
  color: black;
  overflow: hidden;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.2); /* Leichte Schatten für Tiefe */
  max-height: 800px;
  height: 600px;
}

#InfoModal .modal-body {
  position: relative;
  z-index: 1;
}

html[data-bs-theme="dark"] #InfoModal .nav-tabs .nav-link.active {
  border-color: rgba(255,255,255, 0.3) !important;
}

html[data-bs-theme="light"] #InfoModal .nav-tabs .nav-link.active {
  border-color: rgba(0,0,0, 0.2) !important;
}

/* Sidebar */
#InfoModal .sidebar-container {
    max-width: 210px;
    width: 210px;
    border-bottom: 1px solid var(--bs-border-color-translucent);
    border-right: 1px solid var(--bs-border-color-translucent);
    border-radius: 0 0 10px 0;
    overflow: hidden;
    padding: 0;
    margin-left: -18px;
}

/* Content Bereich */
#InfoModal .content-container {
    flex-grow: 1;
}

/* Der Modal-Hintergrund (Backdrop) */
.modal-backdrop { 
  opacity: 0 !important; 
}

/* Modal-Header & Footer */
#InfoModal .modal-header,
#InfoModal .modal-footer {
  border-color: var(--bs-border-color-translucent);
}

/* Tab-Content Hintergrund entfernen */
#InfoModal .modal-body .tab-content,
#InfoModal .modal-body .tab-pane {
  background: none !important;
  background-color: transparent !important;
}

#InfoModal .modal-body {
  padding: 0 !important;
}

#InfoModal .nav-tabs {
  width: auto;
  margin: 0 !important;
  border: none !important;
  display: flex;
  flex-direction: column; /* Sorgt dafür, dass die Buttons die volle Breite bekommen */
  align-items: stretch; /* Stellt sicher, dass sich alle Tabs strecken */
  border-bottom: none;
}

/* Tabs-Buttons */
#InfoModal .nav-tabs .nav-link {
  width: 200px !important;
  color: var(--bs-body-color) !important;
  font-weight: normal;
  border: 1px solid var(--bs-border-color-translucent) !important;
  border-radius: 0 !important;
  background: none !important;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 12px 15px;
  transition: all 0.3s ease-in-out; /* Sanfte Übergänge */
  border-radius: 5px; /* Leichte Abrundung */
}

/* Hover Effekt */
#InfoModal .nav-tabs .nav-link:hover {
  background: rgba(0, 0, 0, 0.1) !important; /* Leichter Hover-Hintergrund */
  color: var(--bs-primary) !important; /* Primärfarbe für Highlight */
  transform: translateX(3px); /* Leichte Bewegung nach rechts */
  border: 1px solid var(--bs-primary) !important;
  border-left: 8px solid var(--bs-primary) !important; /* Nur linker Border */
}

/* Active Zustand */
#InfoModal .nav-tabs .nav-link.active {
  font-weight: bold;
  border-left: 12px solid var(--bs-primary) !important; /* Nur linker Border */
  background: none !important; /* Kein Hintergrund */
}
/* Active Zustand */
#InfoModal .nav-tabs .nav-link.active:hover {
  background: rgba(0, 0, 0, 0.1) !important; /* Leichter Hover-Hintergrund */
  transform: translateX(3px); /* Leichte Bewegung nach rechts */
}

/* Schließen-Button Styling (btn-close) */
#InfoModal .btn-close {
  opacity: 0.7;
  background: rgb(255, 0, 0) !important;
  color: var(--bs-body-color) !important;
  border: 1px solid var(--bs-border-color-translucent);
  width: 0.2rem;
  height: 0.2rem;
  margin-right: 2px !important;
  border-radius: 50%;
  transition: all 0.2s ease-in-out 0.1s;
}

#InfoModal .btn-close:hover {
  background-color: var(--bs-danger) !important;
  width: 0.5rem;
  height: 0.5rem;
  opacity: 1;
  margin-right: 0 !important;
}

/* Modal kann verschoben & skaliert werden */
#resizable-modal {
  color: var(--bs-body-color);
  resize: both;
  overflow: auto;
  display: flex;
  flex-direction: column;
  min-width: 35vw;
  width: 40vw;
  min-height: 30vh;
  max-width: 90vw;
  max-height: 90vh;
  transition: all 0.1s ease;
  position: relative;
}

/* Elemente innerhalb des Modals */
#resizable-modal .defines_divers,
#resizable-modal .session_divers {
  border-bottom: 1px solid var(--bs-border-color-translucent);
}

/* Nav-Tabs über volle Breite */
#InfoModal .navbar-nav {
  width: 100%;
  display: flex;
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
  #resizable-modal {
    max-width: 100%;
    width: 99%;
  }

  #InfoModal .modal-content {
    max-height: 600px;
  }

  #resizable-modal .navbar-toggler {
    margin: 8px 8px 8px 20px;
  }

  #InfoModal .sidebar-container {
    max-width: 98%;
    width: 100%;
  }

  #InfoModal .navbar {
    max-width: 100% !important;
    width: 100% !important;
  }

  #InfoModal .nav-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    border-bottom: none !important;
  }

  #InfoModal .nav-tabs .nav-link {
    border-bottom: none !important;
    background: none !important;
    text-align: left;
    padding: 10px;
    width: 00px !important;
  }

  #InfoModal .nav-tabs .nav-link.active {
    border-top: 1px solid !important;
    border-bottom: 1px solid !important;
  }

}

#backToTopBtn {
    display: none; /* Zuerst ausblenden */
    cursor: pointer;
}

/* Smooth scroll for the content container */
.modal-body {
    scroll-behavior: smooth;
}

/* LOCKSCREEN STYLES  ################################################################ */
.lockscreenview .contentbackground {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.lockscreenview .contentbackground img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lockscreenview .content {
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 2rem;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Grundstyles */
.lockscreenview #slidecontent_top {
  position: absolute;
  top: 2%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 16px;
  color: white;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  width: auto;
  max-width: 600px;
}

/* Verstecke leere Kinder */
.lockscreenview #slidecontent_top > div:empty {
  display: none;
}

/* Style für sichtbare Bubbles */
.lockscreenview #slidecontent_top.light > div {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(0, 0, 0, 0.4);
  color: #000;
}
.lockscreenview #slidecontent_top.dark > div {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
}

.lockscreenview #slidecontent_top > div:not(:empty) {
  padding: 8px 10px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 50px;
  box-shadow: none;
  user-select: none;
}

/* Mobile Ansicht */
@media (max-width: 767px) {
  .lockscreenview #slidecontent_top {
    left: 0;
    right: 0;
    top: 2%;
    transform: none;
    justify-content: space-between;
    padding: 0 1rem;
    width: 100%;
    max-width: 100%;
  }
}

.lockscreenview #overlaybuttons {
  position: fixed;
  left: 0;
  bottom: 25px;
  padding: 0 25px;
  z-index: 2;
  width: 100vw;
}

.lockscreenview #iconinfos {
    color: #fff;
    font-size: 18px;
    padding: 12px;
}

.lockscreenview #iconinfos .bi {
    margin-left: 10px;
}

.lockscreenview .content #time {
    font-size: 80px;
    font-weight: 900;
    text-shadow: 0 -1px rgba(0,0,0, 0.4), 0 1px rgba(0,0,0, 0.4), 0 0 rgba(0,0,0, 0.4), 4px 0 rgba(0,0,0, 0.4);
}

.lockscreenview .content #date {
    margin-top: -20px;
    font-size: 50px;
    font-weight: 700;
    text-shadow: 0 -1px rgba(0,0,0, 0.4), 0 1px rgba(0,0,0, 0.4), 0 0 rgba(0,0,0, 0.4), 4px 0 rgba(0,0,0, 0.4);
}

.lockscreenview .content #dayshow {
    margin-top: -20px;
    font-size: 50px;
    font-weight: 700;
    text-shadow: 0 -1px rgba(0,0,0, 0.4), 0 1px rgba(0,0,0, 0.4), 0 0 rgba(0,0,0, 0.4), 4px 0 rgba(0,0,0, 0.4);
}

.lockscreenview .overlaybg {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    backdrop-filter: blur(20px);
    justify-content: center;
    align-items: center;
    transition: 0.8s ease-in-out;
}

.lockscreenview .overlaybg.light {
    background: rgba(255, 255, 255, 0.3);
}

.lockscreenview .overlaybg.dark {
    background: rgba(0, 0, 0, 0.3);
}

.lockscreenview .installbutton {
    background: rgba(255, 255, 255, 0.40);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 20px 50px;
    color: #000;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s ease-in-out;
}

.lockscreenview .installbutton:hover {
    background: rgba(255, 255, 255, 0.6);
    padding: 25px 55px;
    -webkit-box-shadow: 0px 0px 15px 0px rgba(0,0,0,0.5); 
    box-shadow: 0px 0px 15px 0px rgba(0,0,0,0.5);
}

.lockscreenview .overlay-content {
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

  /* Grid-Container */
  .lockscreenview .grid-container {
    display: grid;
    grid-template-columns: 1fr auto; /* Buttons links, Icons rechts */
    gap: 10px;
    align-items: center;
}

/* Items innerhalb des Grids */
.lockscreenview .grid-item.buttons {
    justify-self: start; /* Buttons links ausrichten */
}

.lockscreenview .grid-item.icons {
    justify-self: end; /* Icons rechts ausrichten */ 
}

/* Wenn backdrop-filter unterstützt wird, wird der Div sichtbar */
@supports not (backdrop-filter: blur(5px)) or not (-webkit-backdrop-filter: blur(5px)) {
    .lockscreenview .overlaybg.light {
        background: rgba(255, 255, 255, 0.8);
    }

    .lockscreenview .overlaybg.dark {
        background: rgba(0, 0, 0, 0.8);
    }
}

@media only screen and (max-width: 767px) {
    }
