html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
}

body {
    flex-direction: column;
    background: url("../images/banners/hero-bg.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
}

a{
    text-decoration: none;
}

main {
    flex: 1;
}

/* --- */

.blog-header {
    line-height: 1;
    border-bottom: 1px solid #e5e5e5;
}

.blog-header-logo {
    font-family: "Playfair Display", Georgia, "Times New Roman",
        serif;
    font-size: 2.25rem;
}

.blog-header-logo:hover {
    text-decoration: none;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Roboto Slab", serif;
    font-weight: 400;
    font-style: normal;
}

.display-4 {
    font-size: 2.5rem;
}
@media (min-width: 768px) {
    .display-4 {
        font-size: 3rem;
    }
}

.nav-scroller {
    position: relative;
    z-index: 2;
    height: 2.75rem;
    overflow-y: hidden;
}

.nav-scroller .nav {
    display: flex;
    flex-wrap: nowrap;
    padding-bottom: 1rem;
    margin-top: -1px;
    overflow-x: auto;
    text-align: center;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.nav-scroller .nav-link {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    font-size: 0.875rem;
}

.card-img-right {
    height: 100%;
    border-radius: 0 3px 3px 0;
}

.flex-auto {
    flex: 0 0 auto;
}

.h-250 {
    height: 250px;
}
@media (min-width: 768px) {
    .h-md-250 {
        height: 250px;
    }
}

/*  */

.toggle-btn {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1000;
    background-color: #212529;
    color: white;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
}

.sidebar {
    background-image: linear-gradient(60deg, #29323c 0%, #485563 100%);
    color: white;
    min-height: 100vh;
    transition: all 0.3s ease-in-out;
}

.sidebar.collapsed {
    width: 0 !important;
    padding: 0 !important;
    overflow: hidden;
}

.menu-link {
    display: block;
    padding: 0.75rem 1rem;
    color: #ffffffcc;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.menu-link:hover {
    background-image: linear-gradient(120deg, #d4fc79 0%, #96e6a1 100%);
    color: #212529;
    box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
}

.content-area {
    background-image: url("../images/banners/selects.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 100vh;
    padding: 2rem;
    transition: all 0.3s ease-in-out;
}

.content-area-full {
    background-image: url("../images/banners/selects.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 100vh;
    padding: 2rem;
    transition: all 0.3s ease-in-out;
}

.content-box {
    background-color: rgba(0, 0, 0, 0.4);
    padding: 2rem;
    border-radius: 12px;
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    -ms-border-radius: 12px;
    -o-border-radius: 12px;
}

.select-menu p {
    font-size: 18px;
    margin: 0;
    display: inline-block;
    line-height: 1;
}

.icon-category {
    margin-right: 8px;
}


/* --- */
.login-page {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-image: url("../images/banners/login.jpg");
    background-position: inherit;
    background-repeat: no-repeat;
    background-size: cover;
}

.login-page .login-container {
    width: 400px;
    background-color: #ffffffc4;
    padding: 30px;
    border-radius: 1.5rem;
    box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.logo img{
    border-radius: 15px;
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    -ms-border-radius: 15px;
    -o-border-radius: 15px;
}

.input-group {
    margin-bottom: 20px;
}

.form-control:focus {
    color: #212529;
    background-color: #fff;
    border-color: #86b7fe;
    outline: 0;
    box-shadow: none !important;
}

.btn-primary{
    background-image: linear-gradient(to top, #48c6ef 0%, #6f86d6 100%);
}

.btn-style{
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
}

.navbar-side{
    height: 75px;
    background-image: linear-gradient(to right, #243949 0%, #517fa4 100%);
    box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
    border-bottom: 2px solid #fff;
}


/*  */

/* Pagination */
.blog-pagination {
    margin-bottom: 4rem;
}
.blog-pagination > .btn {
    border-radius: 2rem;
}

/*
   * Blog posts
   */
.blog-post {
    margin-bottom: 4rem;
}
.blog-post-title {
    margin-bottom: 0.25rem;
    font-size: 2.5rem;
}
.blog-post-meta {
    margin-bottom: 1.25rem;
    color: #727272;
}

/*
   * Footer
*/
.blog-footer {
    padding: 2.5rem 0;
    color: #727272;
    text-align: center;
    background-color: #f9f9f9;
    border-top: 0.05rem solid #e5e5e5;
}
.blog-footer p:last-child {
    margin-bottom: 0;
}

/* ----- */


/*  */

.card {
    background-image: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%);
    border-radius: 15px;
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    -ms-border-radius: 15px;
    -o-border-radius: 15px;
}

.card-filter {
    background-image: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%) !important;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
}

/*  */


.styled-select {
  background-color: #485761;
  color: #fff;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  width: 100%;
}

.form-label {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: block;
}

.styled-select:hover {
  box-shadow: 0 4px 8px rgba(90, 175, 238, 0.3);
  color: #fff;
}

.styled-select option:first-child {
  font-style: italic;
  color: #cbd5e1;
}

.styled-select option {
  background-color: #2f3b42;
  color: #ffffff;
}

.custom-select {
  position: relative;
}

.custom-select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1rem;
  width: 0.6em;
  height: 0.6em;
  border: 0.2em solid #86919a;
  transform: translateY(-50%) rotate(45deg);
  border-top: none;
  border-left: none;
  pointer-events: none;
}


.btn-filter {
  background-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: white;
  font-weight: bold;
  padding: 0.75rem 1.5rem;
  height: 100%;
  border-radius: 8px;
  box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
  transition: all 0.3s ease;
}

.btn-filter:hover {
  color: #fff;
}

.filter-status-box {
  min-height: 48px;
  border-radius: 8px;
  background-color: #f8f9fa;
  box-shadow: rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
  padding: 0.75rem 1.5rem;
  font-weight: bold;
  font-size: 0.9rem;
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
}





.d-grid .btn {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* */


.card-land {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
}

.card-land-side {
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
    border: 3px solid #fff;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.land-position{
    margin-top: 70px;
}

/* ‌--- */

.kennzahl-container{
    margin-top: 5rem;
}

.kennzahl-icon-box {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kennzahl-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
}


@media (max-width: 991.98px) {
  .offcanvas-collapse {
    position: fixed;
    top: 56px; /* Height of navbar */
    bottom: 0;
    left: 100%;
    width: 100%;
    padding-right: 1rem;
    padding-left: 1rem;
    overflow-y: auto;
    visibility: hidden;
    background-color: #343a40;
    transition: transform .3s ease-in-out, visibility .3s ease-in-out;
  }
  .offcanvas-collapse.open {
    visibility: visible;
    transform: translateX(-100%);
  }
}

.nav-scroller {
  position: relative;
  z-index: 2;
  height: 2.75rem;
  overflow-y: hidden;
}

.nav-scroller .nav {
  display: flex;
  flex-wrap: nowrap;
  padding-bottom: 1rem;
  margin-top: -1px;
  overflow-x: auto;
  color: rgba(255, 255, 255, .75);
  text-align: center;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.nav-underline .nav-link {
  padding-top: .75rem;
  padding-bottom: .75rem;
  font-size: .875rem;
  color: #6c757d;
}

.nav-underline .nav-link:hover {
  color: #007bff;
}

.nav-underline .active {
  font-weight: 500;
  color: #343a40;
}

.text-white-50 { color: rgba(255, 255, 255, .5); }

.bg-purple {
    /*background-color: #6f42c1;*/
    border-radius: 15px;
    background-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
}

.text-shadow{
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.3);
}

.bg-body{
    background-image: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%);
    border-radius: 15px;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    -ms-border-radius: 15px;
    -o-border-radius: 15px;
}

.accordion-item {
    transition: box-shadow 0.3s ease;
    border-radius: 12px !important;
    -webkit-border-radius: 12px !important;
    -moz-border-radius: 12px !important;
    -ms-border-radius: 12px !important;
    -o-border-radius: 12px !important;
}
.accordion-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/*  */


.rounded-table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px,
        rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;
    background-image: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%);
    text-align: center;
}

.ergebnis-box{
    background-image: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%);
    border-radius: 5px;
    box-shadow: rgba(3, 102, 214, 0.3) 0px 0px 0px 3px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
    padding: 14px;
}

.btn-side{
    color: #fff;
    background-image: linear-gradient(to top, #09203f 0%, #537895 100%);
    border-radius: 10px;
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
}

.btn-side:hover{
    color: #fff;
}

.dropdown-menu{
    border-radius: 15px !important;
    background-image: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%);
}

.bg-jahre{
    background-image: linear-gradient(to top, #accbee 0%, #e7f0fd 100%);
}

.box-q{
    background-image: linear-gradient(to top, #dfe9f3 0%, white 100%);
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
}

/*  */


.skeleton-loader {
        background: linear-gradient(110deg, #f0f0f0 8%, #e0e0e0 18%, #f0f0f0 33%);
        background-size: 200% 100%;
        animation: shine 1.5s linear infinite;
        height: 16px;
        border-radius: 4px;
    }

.skeleton-cell {
    padding: 12px;
}
@keyframes shine {
    to {
        background-position-x: -200%;
    }
}

.bg-success{
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.3);
    background-image: linear-gradient(to top, #0ba360 0%, #3cba92 100%);
    box-shadow: rgba(0, 0, 0, 0.25) 0px 0.0625em 0.0625em, rgba(0, 0, 0, 0.25) 0px 0.125em 0.5em, rgba(255, 255, 255, 0.1) 0px 0px 0px 1px inset;
}
.bg-value{
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.3);
    background-image: linear-gradient(to top, #09203f 0%, #537895 100%);
    box-shadow: rgba(0, 0, 0, 0.25) 0px 0.0625em 0.0625em, rgba(0, 0, 0, 0.25) 0px 0.125em 0.5em, rgba(255, 255, 255, 0.1) 0px 0px 0px 1px inset;
}
.bg-danger{
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.3);
    background-image: linear-gradient(to top, #ff0844 0%, #ffb199 100%);
    box-shadow: rgba(0, 0, 0, 0.25) 0px 0.0625em 0.0625em, rgba(0, 0, 0, 0.25) 0px 0.125em 0.5em, rgba(255, 255, 255, 0.1) 0px 0px 0px 1px inset;
}

.icon{
    color: #a8a8a8;
}

.kommentar-box{
    background-image: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%);
}

.kommentar-box-form{
    border-radius: 1rem;
    -webkit-border-radius: 1rem;
    -moz-border-radius: 1rem;
    -ms-border-radius: 1rem;
    -o-border-radius: 1rem;
    padding: 1rem;
}

.kommentar-btn{
    border-radius: 0.5rem;
    background-image: linear-gradient(15deg, #13547a 0%, #80d0c7 100%);
    box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
    -webkit-border-radius: 0.5rem;
    -moz-border-radius: 0.5rem;
    -ms-border-radius: 0.5rem;
    -o-border-radius: 0.5rem;
}

.swal2-green-background {
    background-color: #00cdac !important;
    color: #eee;
    text-shadow: 0px 0px 1px #747373;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 0px 0px 1px, rgb(209, 213, 219) 0px 0px 0px 1px inset;
    text-shadow: 1px 1px 2px #0000007d;
    border-radius: 10px;
}

.swal2-yellow-background {
    background-color: #f8bb86 !important;
    color: #c15a01;
    text-shadow: 0px 0px 1px #747373;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 0px 0px 1px, rgb(209, 213, 219) 0px 0px 0px 1px inset;
    text-shadow: 1px 1px 2px #0000;
    border-radius: 10px;
}

.modal-footer, .modal-header {
    background-image: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);

}

.modal-body{
    background-image: linear-gradient(to top, #e6e9f0 0%, #eef1f5 100%);
}

.btn-close-modal{
    background-image: linear-gradient(to top, #a3bded 0%, #6991c7 100%);
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
    color: #fff;
    text-shadow: 1px 1px 2px #0000007d;
}

.btn-close-modal:hover{
    color: #fff;
    text-shadow: 1px 1px 2px #0000007d;
}

.alert-info{
    background-image: linear-gradient(120deg, #f6d365 0%, #fda085 100%);
    border-radius: 9px;
    margin-top: 1rem;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
    padding: 1.5rem;
}
.unt-Vierteler {
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.3);
    box-shadow: rgba(0, 0, 0, 0.25) 0px 0.0625em 0.0625em, rgba(0, 0, 0, 0.25) 0px 0.125em 0.5em, rgba(255, 255, 255, 0.1) 0px 0px 0px 1px inset;
    background-image: linear-gradient(to right, #f78ca0 0%, #f9748f 19%, #fd868c 60%, #fe9a8b 100%);
}
.oberes-Vierteler {
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.3);
    box-shadow: rgba(0, 0, 0, 0.25) 0px 0.0625em 0.0625em, rgba(0, 0, 0, 0.25) 0px 0.125em 0.5em, rgba(255, 255, 255, 0.1) 0px 0px 0px 1px inset;
    background-image: linear-gradient(60deg, #96deda 0%, #50c9c3 100%);
}


/* ===== KPI Card ===== */
.kpi-card {
    position: relative;
    border-radius: 16px;
    background: linear-gradient(120deg, #f8f9fa, #eef1f4);
}


.kpi-row {
    display: grid;
    grid-template-columns: 320px 1fr;
    column-gap: 40px;
    align-items: start;
}

.kpi-middle {
    width: 100%;
}


.kpi-left  { min-width: 0; }
.kpi-right { text-align: right; }

@media (max-width: 992px) {
  .kpi-row { grid-template-columns: 260px 1fr 200px; }
}
@media (max-width: 768px) {
  .kpi-row { grid-template-columns: 220px 1fr 180px; }
}

.vbf-row {
    display: grid;
    grid-template-columns: 68px 1fr 280px;
    gap: 12px;
    align-items: center;
    margin-bottom: 28px;
}

.vbf-row:last-child { margin-bottom: 0; }

.vbf-year {
    font-weight: 700;
    color: #6c757d;
    text-align: center;
}

.vbf-barbox {
    position: relative;
    width: 100%;
}
.vbf-bar {
    position: relative;
    width: 100%;
    height: 14px;
    border-radius: 999px;
    box-shadow:
        rgba(50, 50, 93, 0.25) 0px 2px 5px -1px,
        rgba(0, 0, 0, 0.3) 0px 1px 3px -1px,
        inset 0 0 0 1px rgba(0,0,0,.06) !important;
}

.vbf-tick {
    position: absolute;
    top: -4px;
    width: 2px;
    height: calc(14px + 8px);
    background: #1a1a1a;
    opacity: .9;
    border-radius: 1px;
}


.vbf-bubble {
    position: absolute;
    bottom: calc(100% + 6px);
    transform: translateX(-50%);
    background: #fff;
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
    white-space: nowrap;
    z-index: 2;
    border: 2px solid transparent;
}
.vbf-bubble::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #fff;
    filter: drop-shadow(0 -1px 0 rgba(0,0,0,.06));
}
.vbf-bubble--q1  { border-color: #dc3545; }
.vbf-bubble--mid { border-color: #0d6efd; } 
.vbf-bubble--q3  { border-color: #28a745; } 


.vbf-comment {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 120px;
    white-space: nowrap;
}
.vbf-comment span {
    font-size: 13px;
    color: #6c757d;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 280px; 
}

.btn-outline-secondary {
    color: #000000;
    background: linear-gradient(to bottom, #D5DEE7 0%, #E8EBF2 50%, #E2E7ED 100%),
                linear-gradient(to bottom, rgba(0,0,0,0.02) 50%, rgba(255,255,255,0.02) 61%, rgba(0,0,0,0.02) 73%),
                linear-gradient(33deg, rgba(255,255,255,0.20) 0%, rgba(0,0,0,0.20) 100%);
    background-blend-mode: normal, color-burn;
    border-radius: 5px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px,
                rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
}
.btn-outline-secondary:hover {
    color: #000000;
}


.ergebnis-page .vbf-mini {
    padding: 0 1rem; 
}

.ergebnis-page .vbf-barbox {
    width: 100%;
    display: block;
}

.alert-warning{
    background-image: linear-gradient(120deg, #f6d365 0%, #fda085 100%);
    border-radius: 9px;
    -webkit-border-radius: 9px;
    -moz-border-radius: 9px;
    -ms-border-radius: 9px;
    -o-border-radius: 9px;
}

/*  */
.user-card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.user-card {
    width: 230px;
    min-height: 180px;
    background: rgba(255, 255, 255, 0.93);
    border-radius: 20px;
    color: #333;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    align-items: center;
    padding: 1.5rem;
    text-align: center;
}

.user-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 24px rgba(25, 135, 84, 0.3);
}

.user-card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.user-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    word-break: break-word;
}

.user-knr {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.btn-view {
    background-color: #198754;
    border: none;
    color: #fff;
    border-radius: 50px;
    padding: 0.4rem 1.2rem;
    font-size: 0.9rem;
    transition: background-color 0.25s ease, transform 0.2s ease;
}

.btn-view:hover {
    background-color: #157347;
    transform: scale(1.05);
}

.btn-view:active {
    transform: scale(0.98);
}

@media (max-width: 768px) {
    .user-card {
        width: 90%;
    }
}

/*  */
.kommentar-box {
    max-height: 150vh;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: height 0.3s ease-in-out;
}

.kommentar-box.has-comments {
    height: 45vh;
}

.offcanvas-bottom {
  height: auto; 
  max-height: 80vh; 
}
.offcanvas-bottom {
  min-height: 25vh; 
  max-height: 80vh;
  height: auto;
}



.kommentar-box .offcanvas-header {
    border-bottom: 1px solid #ddd;
    background: #f8f9fa;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding: 0.75rem 1rem;
}

.kommentar-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem 1rem 0.5rem;
    margin-bottom: 0; 
}

.kommentar-form {
    border-top: 1px solid #e3e3e3;
    background: #fafafa;
    padding: 0.75rem 1rem; 
    position: sticky;
    bottom: 0;
    z-index: 10;
}
.kommentar-btn {
    font-weight: 600;
    background: linear-gradient(90deg, #005c97, #3ca6b0);
    border: none;
}
.kommentar-btn:hover {
    opacity: 0.9;
}
.kommentar-box-form {
    resize: none;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 0.5rem;
}

.bg-kommentar{
    background-image: linear-gradient(to top, #c1dfc4 0%, #deecdd 100%);
    border-radius: 9px;
    -webkit-border-radius: 9px;
    -moz-border-radius: 9px;
    -ms-border-radius: 9px;
    -o-border-radius: 9px;
    box-shadow: rgba(0, 0, 0, 0.04) 0px 3px 5px;
}

.bg-light-kommentar{
    background-image: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%);
    border-radius: 9px;
    -webkit-border-radius: 9px;
    -moz-border-radius: 9px;
    -ms-border-radius: 9px;
    -o-border-radius: 9px;
    box-shadow: rgba(0, 0, 0, 0.04) 0px 3px 5px;
}

.bg-kommentar-liste{
    background-image: linear-gradient(to top, #cfd9df 0%, #e2ebf0 100%);
    border-radius: 5px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px, rgba(0, 0, 0, 0.06) 0px 1px 2px;
    -webkit-border-radius: 5px;
}

/* ------ STRUCTURE ------ */

.select-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem; 
}

.select-item {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    background-color: #1e293b90; 
    color: #f8fafc;
    text-decoration: none;
    border-radius: 0.65rem;
    padding: 1rem 1.25rem; 
    transition: background-color 0.25s ease, transform 0.15s ease;
}

.select-item:hover {
    background-color: #334155;
    transform: translateY(-2px);
    text-decoration: none;
    color: #f8fafc; 
}

.select-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.select-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
}

.circle-indicator {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #60a5fa;
    background-color: #e0f2fe;
    flex-shrink: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.circle-indicator:hover {
    transform: scale(1.15);
    box-shadow: 0 0 10px rgba(0,0,0,0.25);
}


.select-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
}

.select-title {
    font-size: 1.1rem;
    font-weight: 500;
    white-space: nowrap;
}

.color-count {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.color-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.color-dot.red { background: #ef4444; }
.color-dot.blue { background: #3b82f6; }
.color-dot.green { background: #22c55e; }


.content-box {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 1.2rem;
    padding: 2.5rem;
    width: 540px; 
    max-width: 90%;
}

.content-box h3 {
    font-weight: 600;
    font-size: 1.9rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .select-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .select-right {
        gap: 0.8rem;
    }
}

.alert-text{
    background-image: linear-gradient(to top, #e6e9f0 0%, #eef1f5 100%);
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    border-radius: 9px;
    -webkit-border-radius: 9px;
    -moz-border-radius: 9px;
    -ms-border-radius: 9px;
    -o-border-radius: 9px;
}


.table-konto {
  max-height: 280px;
  overflow-y: auto;
  border-radius: 9px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.table-konto thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background-color: #198754;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.25);
}

.table-konto tbody tr {
  transition: background-color 0.2s ease;
}
.table-konto tbody tr:hover {
  background-color: rgba(25,135,84,0.08);
}

.table-konto table {
  margin-bottom: 0;
  border-radius: 9px;
  overflow: hidden;
}

.btn-outline-success{
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}

.toggle-btn {
  position: fixed;
  top: 0.9rem;
  left: 0.9rem;
  z-index: 1100;
  background-color: #212529;
  color: #fff;
  border: none;
  padding: 0.35rem 0.6rem;
  border-radius: 4px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
.toggle-btn:hover {
  background-color: #343a40;
}

#sidebar {
  transition: transform 0.3s ease-in-out, width 0.3s ease-in-out, padding 0.3s ease-in-out;
  z-index: 1099;
}

@media (min-width: 992px) {
  #sidebar.collapsed {
    width: 0 !important;
    padding: 0 !important;
    overflow: hidden;
  }

  .content-area {
    transition: all 0.3s ease-in-out;
  }

  #sidebar.collapsed ~ .content-area {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (max-width: 991.98px) {
  #sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    transform: translateX(-100%);
    max-width: 280px;
    background-color: #212529;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.4);
  }

  #sidebar.collapsed {
    transform: translateX(-100%);
  }

  #sidebar:not(.collapsed) {
    transform: translateX(0);
  }

  .content-area {
    transition: filter 0.3s ease-in-out;
  }

  #sidebar:not(.collapsed) ~ .content-area {
    filter: brightness(0.8);
  }
}

.text-shadow-sm{
    text-shadow: 1px 2px 2px #000000;
}

@media (max-width: 1269px) and (min-width: 992px) {
  #sidebar {
    width: 0 !important;
    padding: 0 !important;
    overflow: hidden;
  }

  .content-area {
    flex: 0 0 100%;
    max-width: 100%;
    transition: all 0.3s ease-in-out;
  }
}

@media (max-width: 991.98px) {
  #sidebar {
    position: fixed !important;
    top: 0;
    left: 0;
    height: 100vh;
    transform: translateX(-100%);
    width: 260px;
    background-color: #212529;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.4);
    z-index: 1050;
    padding: 1.5rem;
  }


  #sidebar:not(.collapsed) {
    transform: translateX(0);
  }


  #sidebar.collapsed {
    transform: translateX(-100%);
  }

  .content-area {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    transition: filter 0.3s ease-in-out;
  }

  #sidebar:not(.collapsed) ~ .content-area {
    filter: brightness(0.7);
  }
}

.login-alert {
    background-image: linear-gradient(120deg, #f6d365 0%, #fda085 100%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    color: #5a0000;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
}

.login-alert ul {
    margin: 0;
    padding-left: 1.2rem;
}

.login-alert li {
    list-style-type: disc;
}

.active-link {
  color: #6f6dff !important;
  font-weight: 600;
  opacity: 1 !important;
}

.navbar-toggler {
  background-color: #1f2937;
  border-radius: 6px;
}
.navbar-toggler:focus {
  box-shadow: none;
}


.navbar {
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
  min-height: 56px; 
}

.navbar .navbar-brand {
  font-size: 1.1rem;
  font-weight: 600;
}

.navbar .navbar-nav {
  gap: 1.25rem;
}

.navbar .nav-link {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.25s ease, transform 0.2s ease;
}

.navbar .nav-link:hover {
  color: #6f6dff; 
  transform: translateY(-1px);
}

.navbar .nav-aux {
  gap: 1.25rem; 
}


@media (max-width: 991.98px) {

  .navbar-collapse.collapse {
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
  }

  .navbar-collapse.collapse.show {
    opacity: 1;
    transform: translateY(0);
  }

  .navbar-collapse {
    background-color: #111827;
    padding-top: 1rem;
    padding-bottom: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .mobile-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 0.5rem;
  }

  .mobile-menu .nav-item {
    margin-bottom: 0.4rem;
  }

  .mobile-menu .nav-link {
    font-size: 1.15rem;
    font-weight: 500;
    text-align: center;
    padding: 0.8rem;
    transition: color 0.3s ease, transform 0.2s ease;
  }

  .mobile-menu .nav-link:hover {
    color: #0dcaf0;
    transform: scale(1.05);
  }


  .nav-aux {
    width: 90%;
    margin-top: 1.8rem; 
    padding: 1rem 0.75rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    text-align: center;

    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }

  .nav-aux .nav-link {
    display: block;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    padding: 0.4rem 0;
  }

  .nav-aux .nav-link:hover {
    color: #0dcaf0;
  }

  .nav-aux form svg {
    width: 28px;
    height: 28px;
    margin-top: 0.2rem;
    transition: transform 0.2s ease;
  }

  .nav-aux form:hover svg {
    transform: rotate(10deg) scale(1.12);
  }
}


.loading-wrapper {
  position: relative;
  width: 100%;
  height: 145px;
  background: linear-gradient(120deg, #f8f9fa, #eef1f4);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
}

#load {
  position: relative;
  width: 600px;
  height: 36px;
  overflow: visible;
  user-select: none;
  cursor: default;
}

#load div {
  position: absolute;
  width: 20px;
  height: 36px;
  opacity: 0;
  font-family: "Montserrat", Helvetica, Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  animation: move 2s linear infinite;
  transform: rotate(180deg);
  color: #35C4F0;
  text-shadow: 0 0 10px rgba(53,196,240,0.5);
}

#load div:nth-child(2) { animation-delay: 0.2s; }
#load div:nth-child(3) { animation-delay: 0.4s; }
#load div:nth-child(4) { animation-delay: 0.6s; }
#load div:nth-child(5) { animation-delay: 0.8s; }
#load div:nth-child(6) { animation-delay: 1s; }
#load div:nth-child(7) { animation-delay: 1.2s; }

@keyframes move {
  0% {
    left: 0;
    opacity: 0;
  }
  35% {
    left: 41%;
    transform: rotate(0deg);
    opacity: 1;
  }
  65% {
    left: 59%;
    transform: rotate(0deg);
    opacity: 1;
  }
  100% {
    left: 100%;
    transform: rotate(-180deg);
    opacity: 0;
  }
}

@media (max-width: 991px) {

.vbf-wrapper .row {
  margin-bottom: 1.4rem !important;
  padding-bottom: 1rem !important;
}
.vbf-wrapper .row:last-child {
  margin-bottom: 0.6rem !important;
  padding-bottom: 0 !important;
}
.vbf-wrapper .col-md-5.d-flex {
  padding-left: 1.1rem !important;
  align-items: flex-start !important;
}
.kpi-card h6 {
  margin-bottom: 0.4rem !important;
}

}


.kpi-modal-content {
    border-radius: 1rem;
    background: #ffffff;
    border: none;
    overflow: hidden;
}

.modal-header {
    padding: 1.5rem 2rem 0.75rem 2rem;
}

.kpi-modal-body {
    padding: 1.5rem 2rem;
    background: #f9fafb;
    border-radius: 0 0 1rem 1rem;
}

#sharedKpiInfoModalLabel {
    margin-bottom: 0.75rem;
}

.kpi-divider {
    border-top: 2px dashed #dee2e6;
    opacity: 0.7;
}

.kpi-recommendation {
    background: #fff;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.kpi-recommendation:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

/* Subtle badge colors */
.bg-primary-subtle {
    background-color: #e7f1ff !important;
}
.bg-success-subtle {
    background-color: #e9f7ef !important;
}

.text-primary {
    color: #0d6efd !important;
}
.text-success {
    color: #198754 !important;
}

/* Footer and close button styling */
.modal-footer {
    border-top: none;
    padding: 1rem 2rem 1.5rem 2rem;
}

.modal-footer .btn {
    border-radius: 12px; 
    padding: 0.5rem 1.75rem;
    font-weight: 500;
}

/* Page container */
.comment-page {
    max-width: 1100px;
}

/* Header */
.comment-page-header {
    border-radius: 18px;
}

/* Main card */
.comment-main-card {
    border-radius: 18px;
}

/* Filter button */
.comment-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border-radius: 12px;
    padding-inline: 1.5rem;
}

/* Active filter chips */
.comment-chip-row {
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.12);
    padding: 0.35rem 0.75rem;
}

.comment-chip {
    background-image: linear-gradient(120deg, #e0e7ff 0%, #e2f3ff 100%);
    color: #1e293b;
    box-shadow: 0 2px 6px rgba(148, 163, 184, 0.5);
    font-size: .78rem;
}

.comment-chip.year-chip {
    background-image: linear-gradient(120deg, #fee2e2 0%, #fffbeb 100%);
}

/* Group card */
.comment-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.comment-group-card {
    border-radius: 18px;
    overflow: hidden;
    background: #0f172a;
}

.comment-group-card--active {
    box-shadow: 0 0 0 2px #3b82f6, 0 10px 25px rgba(37, 99, 235, 0.45);
}

.comment-group-header {
    background: linear-gradient(90deg, #2563eb, #7c3aed);
}

.comment-group-badge {
    border-radius: 999px;
    font-weight: 600;
}

/* KPI link */
.comment-kpi-link {
    font-size: .95rem;
}

/* Year cards */
.comment-year-card {
    border-radius: 14px;
    background-image: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%);
    border: 1px solid #cbd5f5;
    transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.comment-year-card:hover {
    transform: translateY(-1px);
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    border-color: #2563eb;
}

.comment-year-header {
    padding: .15rem .25rem;
}

.comment-year-dot {
    width: 24px;
    height: 24px;
    border-radius: 12px;
    box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.1);
}

.year-arrow {
    font-size: 1.25rem;
    transition: transform .18s ease, color .18s ease;
}

.comment-year-card[data-loaded="1"] .year-arrow {
    color: #2563eb;
}

/* Comment entries */
.comment-entry {
    background: #ffffff;
    border-radius: 10px;
    padding: 0.5rem 0.85rem;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
}

.comment-entry-meta {
    color: #64748b !important;
}

.comment-entry-text {
    font-size: .92rem;
    color: #0f172a;
}

/* Offcanvas filter */
.comment-filter-header {
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
    background: linear-gradient(120deg, #f4f4ff, #e5edff);
}

.comment-filter-body {
    background: #f9fafb;
}


.comment-filter-option {
    position: relative;
    padding: 8px 12px 8px 42px !important; 
    border-radius: 10px;
    display: flex;
    align-items: center;
    min-height: 40px;
}


.comment-filter-option .form-check-input {
    position: absolute;
    left: 12px;         
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
}


.comment-filter-option:hover {
    background: rgba(148, 163, 184, 0.18);
    padding-left: 44px !important;   
}

.comment-filter-option .form-check-label {
    cursor: pointer;
}

#commentFilterCanvas .offcanvas-body {
    padding-left: 2rem;
    padding-right: 2rem;
}

.year-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid #d0d7e2;
    background: #ffffff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all .2s ease;
    color: #334155;
    user-select: none;
}


.year-chip:hover {
    border-color: #38bdf8;
    background: #e0f2fe;
    color: #0c4a6e;
}


.year-chip input {
    display: none;
}

.year-chip input:checked ~ span,
.year-chip input:checked + span,
.year-chip:has(input:checked) {
    border-color: #38bdf8 !important;
    background: #e0f2fe !important;
    color: #0c4a6e !important;
    font-weight: 600;
}

.chip-outline {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1.5px solid #d0d7e2;
    background: #ffffff;
    color: #475569;
    transition: all 0.25s ease;
    user-select: none;
}


.chip-outline:hover {
    background: rgba(56, 189, 248, 0.12); 
    border-color: #38bdf8;
    color: #0369a1;
}


.chip-outline i {
    font-size: 0.9rem;
    margin-right: 4px;
}

.chip-select {
    border-color: #3b82f6;
    color: #1d4ed8;
}

.chip-select:hover {
    background: rgba(59, 130, 246, 0.12);
    border-color: #2563eb;
    color: #1e40af;
}

.chip-year {
    border-color: #d6d6d6;
    color: #374151;
}

.chip-year:hover {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    color: #0369a1;
}

.year-arrow .arrow-icon {
    font-size: 0.70rem;
    color: #6b7280;
    opacity: 0.85;
    transition: transform .22s ease, color .22s ease;
}

.year-arrow.open .arrow-icon {
    transform: rotate(90deg);
    color: #2563eb;
    opacity: 1;
}

