body {
    transition: background-color 0.3s ease;
}

/* --- LIGHT MODE --- */

[data-bs-theme="light"] {
    --bs-body-bg: #fafafa;

    @media (max-width: 995px) {
        --bs-body-font-size: 0.85rem;
    }

    .container .content {
        background: transparent;
    }

    .logo-color {
        color: #16295d !important;
    }

    .bg-analysis {
        background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    }

    .bg-ranking {
        background: linear-gradient(135deg, #0f766e, #14b8a6);
    }

    .bg-results {
        background: linear-gradient(135deg, #581c87, #8b5cf6);
    }

    .card {
        background: linear-gradient(to bottom, rgb(255, 255, 255) 0%, rgba(212, 212, 212, 0.5) 100%);
        border-color: var(--bs-border-color);
    }

    .navbar {
        background: linear-gradient(to bottom, #fdfdfdeb 10%, #f4f4f4f5 90%) !important;
        backdrop-filter: blur(6px);
    }

    .nav-item .nav-link {
        color: #222;
    }

    .nav-item .nav-link.active {
        background: #0d6efd;
    }

    .accordion-body {
        background: #fff;
    }

    .accordion-button {
        color: #222;
    }

    .footer {
        background: linear-gradient(to bottom, #f4f4f4 0%, #fdfdfd 100%) !important;
    }

    .bg-slide-1 {
        background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    }

    .bg-slide-2 {
        background: linear-gradient(135deg, #0f766e, #14b8a6);
    }

    .bg-slide-3 {
        background: linear-gradient(135deg, #581c87, #8b5cf6);
    }
}

/* --- DARK MODE --- */
[data-bs-theme="dark"] {
    --bs-body-bg: #121212;
    --bs-body-color: #e2e8f0;
    /* Dunkler Text */
    --bs-surface-color: #111827;
    /* Kartenhintergrund */
    --bs-border-color: #1e293b;

    @media (max-width: 995px) {
        --bs-body-font-size: 0.85rem;
    }

    .container .content {
        background: #0f1726;
    }

    .logo-color {
        color: #e5e5e5 !important;
    }

    .bg-analysis {
        background: linear-gradient(135deg, #0d1527, #1e3a8a);
    }

    .bg-ranking {
        background: linear-gradient(135deg, #0a1622, #0f766e);
    }

    .bg-results {
        background: linear-gradient(135deg, #131026, #581c87);
    }

    .card {
        background: linear-gradient(to bottom, rgb(6, 14, 30) 0%, rgb(8, 25, 56) 100%);
        border-color: var(--bs-border-color);
    }

    .navbar {
        background: linear-gradient(to bottom, #0f112bd6 10%, #111b2ded 90%) !important;
        backdrop-filter: blur(6px);
    }

    .nav-item .nav-link {
        color: #f4f4f4;
    }

    .nav-item .nav-link.active {
        background: #0d6efd;
    }

    .accordion-body {
        background: #141414;
    }

    .accordion-button {
        color: #f4f4f4;
    }

    .footer {
        background: linear-gradient(to bottom, #111b2d 0%, #0f112b 100%) !important;
    }

    .bg-slide-1 {
        background: linear-gradient(135deg, #0d1527, #1e3a8a);
    }

    .bg-slide-2 {
        background: linear-gradient(135deg, #0a1622, #0f766e);
    }

    .bg-slide-3 {
        background: linear-gradient(135deg, #131026, #581c87);
    }
}

.container .content {
    padding: 1rem;
    border-radius: 10px;
}

.bg-analysis {
    border-radius: 30px;
    box-shadow: 0 0 10px #666;
    padding: 2rem;
}

.bg-ranking {
    border-radius: 30px;
    box-shadow: 0 0 10px #666;
    padding: 2rem;
}

.bg-results {
    border-radius: 30px;
    box-shadow: 0 0 10px #666;
    padding: 2rem;
}

.list-group-item {
    background-color: transparent !important;
}

.nav-link,
.mod-menu .nav-item {
    border-radius: 5px;
    border: 2px solid transparent;
    margin: 0 2px;
}

.mod-menu .nav-item a {
    width: 100%;
}

.nav-link:hover,
.mod-menu .nav-item:hover {
    border: 2px solid #0d6efd;
}

.nav-link.active,
.mod-menu .nav-item.current {
    border: 2px solid transparent;
    background: #0d6efd;
    color: #fff !important;
}

.nav-item.current .btn {
    color: #fff !important;
}

.bi-sun-fill {
    color: #ffc107;
}

.btn-link .bi-moon-stars-fill {
    color: #212529;
}

.clip-path {
    /* Nutzt 3vw für eine mathematisch konstante Steigung auf allen Bildschirmgrößen */
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3vw), 0 100%);
}

.carousel-item {
    min-height: 400px;
    padding: 80px 0 120px 0;
}

.carousel-content {
    height: 100%;
    display: flex;
    align-items: center;
}

.text-content {
    padding: 2rem 0.5rem 1rem 0.5rem;
    width: 100%;
    text-align: center;
}

.image-content {
    display: none;
    /* Auf Mobilgeräten ausblenden für bessere Lesbarkeit */
    height: 100%;
    align-items: center;
    justify-content: center;
}

.carousel-indicators {
    bottom: 45px;
}

.carousel-indicators .active {
    width: 60px
}

@media (min-width: 1200px) {
    .image-content {
        display: block;
    }

    .carousel-item .text-content {
        width: 60%;
        padding: 2rem 1rem;
    }

    .carousel-item .image-content img {
        max-width: 100%;
        max-height: 75%;
        object-fit: contain;
        border-radius: 1rem;
    }
}

/* Total Score Kreis-Visualisierung */
.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* Status-Indikatoren */
.priority-high {
    border-left: 4px solid #dc3545 !important;
}

.priority-medium {
    border-left: 4px solid #ffc107 !important;
}

.priority-low {
    border-left: 4px solid #0d6efd !important;
}

/* Dashboard */
.nav-link.btn {
    text-align: left;
}

.dashboard-card {
    transition: transform 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-2px);
}

.nav-pills .nav-link {
    text-align: left;
}

.navbar-brand {
    font-size: 1.7rem;
}

.logo {
    width: 48px;
    height: 48px;
    margin-top: 3px;
}

/* TABLE */
.table th.highlight {
    background: #4a90e2;
    color: white;
}

/* Modal */
.modal-content {
    backdrop-filter: blur(10px);
    border: 2px solid #aaa;
}

/* ============================
    Login
============================ */
.login,
.profile,
.com-users-logout,
.com-users-reset,
.com-users-remind,
.com-users-profile,
.profile-edit {
    max-width: 480px;
    margin: 0 auto;
    text-align: left;
}

.registration .form-control,
.login .form-control,
.com-users-reset .form-control,
.com-users-remind .form-control,
.profile-edit .form-control {
    background: var(--bs-light);
}

.registration .controls,
.login .controls,
.com-users-reset .controls,
.com-users-remind .controls,
.profile-edit .controls {
    margin-bottom: 10px;
}


.com-users-profile,
.profile-edit {
    text-align: left;
}

@media (max-width: 568px) {
    .login {
        margin: 15% auto;
    }
}

.form-control-feedback {
    color: red;
    font-size: 14px;
}

/* Cookies */
#cookiesck_interface {
    background: linear-gradient(to bottom, rgb(6, 14, 30) 0%, rgb(8, 25, 56) 100%);
    border-color: var(--bs-border-color);
    border-radius: 5px;
}

#cookiesck_interface .cookiesck-main-desc {
    text-align: center;

}

.cookiesck-category-name,
.cookiesck-category-desc {
    color: #f4f4f4;
}

/* Scroll to Top */
#scrollTopBtn {
    position: fixed;
    bottom: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    display: none;
    z-index: 1050;
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-size: 20px;
    line-height: 1;
}

#scrollTopBtn.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Wiki */
code {
    color: #dc3545;
}

/* FOOTER LINKS */
footer li a,
#footer-menu li a {
    color: var(--dash-score-value);
    text-decoration: none;
}

footer li a:hover,
#footer-menu li a:hover {
    color: #888;
    text-decoration: underline;
}

.article-info {
    text-align: center;
}

.modified {
    font-size: 14px;
    color: #999;
}

/* Pricing Cards */
.pricing-card {
    transition: transform 0.3s ease;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.featured {
    border: 2px solid #3b82f6 !important;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.2) !important;
}

.pricing-card.active {
    transform: translateY(-5px);
    border: 2px solid #198754 !important;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.2) !important;
}

/* Pricing Card Text */
#Trial .text-color {
    color: var(--bs-pink);
}

#Starter .text-color {
    color: var(--bs-yellow);
}

#Pro .text-color {
    color: var(--bs-orange);
}

#Business .text-color {
    color: var(--bs-cyan);
}

.pricing-card.featured .text-color {
    color: var(--bs-teal) !important;
}

.pricing-card.active .text-color {
    color: var(--bs-blue) !important;
}

/* Pricing Card Borders */
#Trial.card-border {
    border: 2px solid var(--bs-pink);
}

#Starter.card-border {
    border: 2px solid var(--bs-yellow);
}

#Pro.card-border {
    border: 2px solid var(--bs-orange);
}

#Business.card-border {
    border: 2px solid var(--bs-cyan);
}

.card-border.featured {
    border: 2px solid var(--bs-teal) !important;
}

.card-border.active {
    border: 2px solid var(--bs-blue) !important;
}

/* Pricing Card Shadow*/
#Trial.card-shadow {
    box-shadow: 0 0.5rem 1rem rgba(214, 51, 132, 0.3);
}

#Starter.card-shadow {
    box-shadow: 0 0.5rem 1rem rgba(255, 193, 7, 0.3);
}

#Pro.card-shadow {
    box-shadow: 0 0.5rem 1rem rgba(253, 126, 20, 0.3);
}

#Business.card-shadow {
    box-shadow: 0 0.5rem 1rem rgba(13, 202, 240, 0.3);
}

.card-shadow.featured {
    box-shadow: 0 0.5rem 1rem rgba(32, 201, 151, 0.3) !important;
}

.card-shadow.active {
    box-shadow: 0 0.5rem 1rem rgba(11, 94, 215, 0.3) !important;
}

/* Pricing Card Backgrounds */
#Trial .card-btn {
    background: var(--bs-pink);
    border: 1px solid #333;
    color: #333;
}

#Starter .card-btn {
    background: var(--bs-yellow) !important;
    border: 1px solid #333;
    color: #333;
}

#Pro .card-btn {
    background: var(--bs-orange);
    border: 1px solid #333;
    color: #333;
}

#Business .card-btn {
    background: var(--bs-cyan);
    border: 1px solid #333;
    color: #333;
}

.featured .card-btn {
    background: var(--bs-teal) !important;
    border: 1px solid #333;
    color: #333;
}

.active .card-btn {
    background: var(--bs-blue) !important;
    border: 1px solid #333;
    color: #333;
}

#Trial .card-btn:hover,
#Starter .card-btn:hover,
#Pro .card-btn:hover,
#Business .card-btn:hover,
.featured .card-btn:hover,
.active .card-btn:hover {
    background: var(--bs-light) !important;
}

#projectDetailsContainer .badge {
    width: 130px;
}

.badge-promo {
    position: absolute;
    top: 17px;
    right: -31px;
    transform: rotate(45deg);
    background: var(--bs-teal);
    color: #fff;
    padding: 5px 40px;
    font-weight: bold;
    font-size: 0.9rem;
}

.badge-active {
    position: absolute;
    top: 15px;
    right: -30px;
    transform: rotate(45deg);
    background: var(--bs-blue);
    color: #fff;
    padding: 5px 40px;
    font-weight: bold;
    font-size: 0.9rem;
}