﻿ /* NEU: CSS-Variablen für das Kartendesign (Dunkle Variante) */
:root {
    --background-color: #18181B;
    --text-color: #A1A1AA;
    --card-background-color: rgba(255, 255, 255, .015);
    --card-border-color: rgba(255, 255, 255, 0.1);
    --card-box-shadow-1: rgba(0, 0, 0, 0.05);
    --card-box-shadow-1-y: 3px;
    --card-box-shadow-1-blur: 6px;
    --card-box-shadow-2: rgba(0, 0, 0, 0.1);
    --card-box-shadow-2-y: 8px;
    --card-box-shadow-2-blur: 15px;
    --card-label-color: #FFFFFF;
    --card-icon-color: #D4D4D8;
    --card-icon-background-color: rgba(255, 255, 255, 0.08);
    --card-icon-border-color: rgba(255, 255, 255, 0.12);
    --card-shine-opacity: .1;
    --card-shine-gradient: conic-gradient(from 205deg at 50% 50%, rgba(0, 123, 255, 0) 0deg, #007bff 25deg, rgba(0, 123, 255, 0.18) 295deg, rgba(0, 123, 255, 0) 360deg);
    --card-line-color: #2A2B2C;
    --card-tile-color: rgba(0, 123, 255, 0.07);
    --card-hover-border-color: rgba(255, 255, 255, 0.2);
    --card-hover-box-shadow-1: rgba(0, 0, 0, 0.04);
    --card-hover-box-shadow-1-y: 5px;
    --card-hover-box-shadow-1-blur: 10px;
    --card-hover-box-shadow-2: rgba(0, 0, 0, 0.3);
    --card-hover-box-shadow-2-y: 15px;
    --card-hover-box-shadow-2-blur: 25px;
    --card-hover-icon-color: #34D399;
    --card-hover-icon-background-color: rgba(52, 211, 153, 0.1);
    --card-hover-icon-border-color: rgba(52, 211, 153, 0.2);
    --blur-opacity: .01;
    --focus-outline-color: #FFD700;
    --focus-outline-width: 3px;
    --focus-outline-style: solid;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #212529;
   /* color: #F8F9FA;*/
}

/* Sichtbarer Fokus-Indikator für alle interaktiven Elemente */
:focus-visible {
    outline: var(--focus-outline-width) var(--focus-outline-style) var(--focus-outline-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.3);
    z-index: 10;
}

button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, .card:focus-visible {
    outline: var(--focus-outline-width) var(--focus-outline-style) var(--focus-outline-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.3);
    z-index: 10;
}

/* KORREKTUR: Verhindert horizontales Scrollen als generelle Sicherheitsmaßnahme. */
html, body {
    overflow-x: hidden;
    width: 100%;
}

.card {
    background-color: var(--background-color);
    box-shadow: 0px var(--card-box-shadow-1-y) var(--card-box-shadow-1-blur) var(--card-box-shadow-1), 0px var(--card-box-shadow-2-y) var(--card-box-shadow-2-blur) var(--card-box-shadow-2), 0 0 0 1px var(--card-border-color);
    padding: 56px 16px 16px 16px;
    border-radius: 15px;
    cursor: pointer;
    position: relative;
    transition: box-shadow .25s;
    /* Ermöglicht Tastaturfokus */
    outline: none;
}

.card[tabindex="0"]:focus-visible {
    outline: var(--focus-outline-width) var(--focus-outline-style) var(--focus-outline-color);
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.3);
}

/* --- Banner Anpassungen --- */
.banner-section {
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 7px 9px -7px rgba(0,0,0,0.4), inset 0 -7px 9px -7px rgba(0,0,0,0.4);
}

.slogan-line {
    font-size: 2.2rem;
    font-weight: 300;
    color: #343a40;
}

.orjicloud-logo {
    max-width: 120px;
    height: auto;
}

.orjicloud-brand {
    align-items: center;
}

.orjicloud-text {
    line-height: 1;
}

/* --- Floating Hamburger Menu Button --- */
.menu-toggle-button {
    position: fixed;
    top: 10%;
    right: 10%;
    z-index: 99999; /* ensure it's above other UI elements */
    pointer-events: auto;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #007bff;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    padding: 0;
    margin: 0;
}

    .menu-toggle-button:hover {
        background-color: #0056b3;
        transform: scale(1.05);
        box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
    }

.menu-toggle-button .icon-bars,
.menu-toggle-button .icon-close {
    color: #ffffff;
    font-size: 20px;
    line-height: 1;
    display: inline-block;
}

/* Default: show bars, hide close */
.menu-toggle-button .icon-close { display: none; }

/* When ARIA-expanded or the JS-driven active class is set, swap icons */
.menu-toggle-button[aria-expanded="true"] .icon-bars,
.menu-toggle-button.is-active .icon-bars { display: none; }

.menu-toggle-button[aria-expanded="true"] .icon-close,
.menu-toggle-button.is-active .icon-close { display: inline-block; }

/* Hide any legacy three-line hamburger fallback */
.hamburger-line { display: none !important; }

/* --- Fullscreen Menu Overlay --- */
.fullscreen-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 99998; /* below the button */
    pointer-events: none; /* don't block clicks when closed */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    clip-path: circle(0% at var(--center-x, 50%) var(--center-y, 50%));
    -webkit-clip-path: circle(0% at var(--center-x, 50%) var(--center-y, 50%));
    transition: clip-path 0.7s cubic-bezier(0.4, 0, 0.2, 1), 
                -webkit-clip-path 0.7s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s ease,
                visibility 0.3s ease;
}

    .fullscreen-menu-overlay.is-open {
        opacity: 1;
        visibility: visible;
        clip-path: circle(150% at var(--center-x, 50%) var(--center-y, 50%));
        -webkit-clip-path: circle(150% at var(--center-x, 50%) var(--center-y, 50%));
        pointer-events: auto;
    }

.fullscreen-menu-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.fullscreen-menu-nav li {
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.fullscreen-menu-overlay.is-open .fullscreen-menu-nav li {
    opacity: 1;
    transform: translateY(0);
}

    .fullscreen-menu-overlay.is-open .fullscreen-menu-nav li:nth-child(1) {
        transition-delay: 0.2s;
    }

    .fullscreen-menu-overlay.is-open .fullscreen-menu-nav li:nth-child(2) {
        transition-delay: 0.25s;
    }

.fullscreen-menu-nav .menu-link {
    color: white;
    text-decoration: none;
    font-size: 2rem;
    font-weight: bold;
    position: relative;
    padding-bottom: 5px;
}

/* --- Parallax-Sektion --- */
.parallax-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('/resources/images/Banner_Parallax.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 40vh;
    color: black;
}

.problem-solution-section {
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 8px 15px -5px rgba(0, 0, 0, 0.4), inset 0 -8px 15px -5px rgba(0, 0, 0, 0.4);
}

    .problem-solution-section .btn-outline-dark:hover {
        background-color: #007bff;
        border-color: #007bff;
        color: #ffffff;
    }

/* --- Kontakt & Footer --- */
#messageTextarea {
    min-height: 150px;
    resize: none;
}

/* Dividers - black with fade in/out effect */
hr {
    border: none;
    height: 1px;
    background: linear-gradient(
        to right,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,1) 15%,
        rgba(0,0,0,1) 85%,
        rgba(0,0,0,0) 100%
    );
}

/* White dividers in footer */
.footer hr {
    background: linear-gradient(
        to right,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.3) 15%,
        rgba(255,255,255,0.3) 85%,
        rgba(255,255,255,0) 100%
    );
}

.footer .text-white.text-decoration-none:hover {
    color: #007bff !important;
    text-decoration: none !important;
}

.footer-logo {
    max-width: 200px;
    height: auto;
}

/* --- Scroll Animations --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
    will-change: opacity, transform;
}

    .animate-on-scroll.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

.fade-in {
    transform: translateY(0);
}

.animate-on-scroll.fade-in {
    transform: translateY(20px);
}

.slide-in-left {
    transform: translateX(-50px);
}

.slide-in-right {
    transform: translateX(50px);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

/* --- Responsive Anpassungen --- */
@media (max-width: 767.98px) {
    /* KORREKTUR: Passt die Position des Menü-Buttons für mobile Geräte an, um einen konsistenten Abstand zum Rand zu gewährleisten. */
    .menu-toggle-button {
        top: 20px;
        right: 20px;
        z-index: 99999; /* ensure z-index is preserved on mobile */
    }

    .contact-image {
        max-height: 250px;
        padding: 85px;
    }

    /* KORREKTUR: Deaktiviert den Parallax-Effekt auf mobilen Geräten, da er zu Performance-Problemen und Darstellungsfehlern führen kann. */
    .parallax-section {
        background-attachment: scroll;
    }
}

/* ================================================================ */
/* --- MINIMALISTISCHES COOKIE-BANNER DESIGN --- */
/* ================================================================ */

#cookieBanner {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    max-width: 380px;
    background: rgba(26, 26, 30, 0.88);
    border: none;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    text-align: center;
    animation: slideInUp 0.35s ease-out forwards;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#cookieBanner.hide-banner {
    animation: slideOutDown 0.25s ease-in forwards;
}

@keyframes slideOutDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

.cookie-banner-icon {
    font-size: 52px;
    color: #34D399;
    line-height: 1;
}

.cookie-banner-text {
    width: 100%;
}

.cookie-banner-description {
    font-size: 13px;
    color: #B0B0B0;
    margin: 0;
    line-height: 1.5;
}

.cookie-banner-description a {
    color: #60A5FA;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}

.cookie-banner-description a:hover {
    color: #93C5FD;
}

.cookie-banner-form {
    display: flex;
    gap: 12px;
    margin: 0;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
}

.btn-cookie-primary,
.btn-cookie-secondary,
.btn-cookie-settings {
    width: 44px;
    height: 44px;
    padding: 0;
    font-size: 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-cookie-primary {
    background: #34D399;
    color: #000;
}

.btn-cookie-primary:hover {
    background: #2ec98e;
}

.btn-cookie-primary:active {
    transform: scale(0.95);
}

.btn-cookie-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #B0B0B0;
}

.btn-cookie-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.btn-cookie-settings {
    background: rgba(96, 165, 250, 0.08);
    color: #60A5FA;
}

.btn-cookie-settings:hover {
    background: rgba(96, 165, 250, 0.12);
}

.cookie-banner-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: #B0B0B0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.15s ease;
    padding: 0;
}

.cookie-banner-close:hover {
    color: #ffffff;
}

.cookie-banner-close:focus-visible {
    outline: 2px solid #FFD700;
    outline-offset: 1px;
}

/* Responsive Design für kleine Bildschirme */
@media (max-width: 576px) {
    #cookieBanner {
        left: 16px;
        right: 16px;
        max-width: none;
        bottom: 16px;
        padding: 16px;
        gap: 14px;
    }
    
    .cookie-banner-icon {
        font-size: 40px;
    }
    
    .cookie-banner-description {
        font-size: 12px;
    }
    
    .cookie-banner-form {
        gap: 10px;
    }
    
    .btn-cookie-primary,
    .btn-cookie-secondary,
    .btn-cookie-settings {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* ================================================================ */
/* --- DEZENTES COOKIE-SETTINGS MODAL --- */
/* ================================================================ */

.cookie-modal-dark {
    background-color: #1a1a1e;
    color: #B0B0B0;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.cookie-modal-dark .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px;
}

.cookie-modal-dark .modal-title {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-modal-dark .modal-body {
    padding: 20px;
    color: #B0B0B0;
    line-height: 1.5;
    font-size: 0.9rem;
}

.cookie-section-box {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 14px;
    transition: all 0.15s ease;
    margin-bottom: 14px;
}

.cookie-section-box:hover {
    background-color: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.cookie-section-box h6 {
    color: #ffffff;
    font-weight: 500;
    font-size: 14px;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-info-box {
    background: rgba(96, 165, 250, 0.05);
    border-left: 3px solid #60A5FA;
    padding: 12px;
    border-radius: 6px;
    color: #B0B0B0;
    font-size: 12px;
    margin-top: 14px;
}

.cookie-info-box a {
    color: #60A5FA;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}

.cookie-info-box a:hover {
    color: #93C5FD;
}

.cookie-modal-dark .modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 14px 20px;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.cookie-btn-reject {
    border-color: rgba(255, 255, 255, 0.1);
    color: #B0B0B0;
    background: rgba(255, 255, 255, 0.04);
}

.cookie-btn-reject:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.cookie-btn-save {
    background-color: #2196f3;
    color: #fff;
    border: none;
    font-weight: 600;
}

.cookie-btn-save:hover {
    background-color: #1976d2;
}

.cookie-btn-accept {
    background: #34D399;
    color: #000;
    border: none;
    font-weight: 600;
}

.cookie-btn-accept:hover {
    background: #2ec98e;
}

/* Toggle-Switch Styling */
.switch-toggle {
    width: 44px !important;
    height: 26px !important;
    position: relative;
    -webkit-appearance: none;
    appearance: none;
    background: #3a3a42;
    border-radius: 999px;
    outline: none;
    cursor: pointer;
    transition: background-color 0.25s ease;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.switch-toggle:checked {
    background: #34D399;
}

.switch-toggle::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.25s ease;
}

.switch-toggle:checked::after {
    transform: translateY(-50%) translateX(18px);
}

.switch-toggle:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #2f2f35;
}

.switch-toggle:focus-visible {
    outline: 2px solid #FFD700;
    outline-offset: 1px;
}

/* Responsive Design für Modal */
@media (max-width: 576px) {
    .cookie-modal-dark .modal-header {
        padding: 16px;
    }
    
    .cookie-modal-dark .modal-title {
        font-size: 1.1rem;
    }
    
    .cookie-modal-dark .modal-body {
        padding: 16px;
        font-size: 0.85rem;
    }
    
    .cookie-section-box {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .cookie-modal-dark .modal-footer {
        flex-direction: column;
        gap: 8px;
        padding: 12px 16px;
    }
    
    .cookie-btn-reject,
    .cookie-btn-save,
    .cookie-btn-accept {
        width: 100%;
    }
}

/* Cookie-Einstellungen auf der Profilseite */
.cookie-settings-profile {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}

.cookie-settings-profile .cookie-section-box {
    background-color: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cookie-settings-profile .badge {
    font-size: 0.65rem;
    padding: 0.25rem 0.4rem;
}

/* ------------------------------------------------------------- */
/* --- NEUE KARTEN-ANIMATION --- */
/* ------------------------------------------------------------- */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.card {
    background-color: var(--background-color);
    box-shadow: 0px var(--card-box-shadow-1-y) var(--card-box-shadow-1-blur) var(--card-box-shadow-1), 0px var(--card-box-shadow-2-y) var(--card-box-shadow-2-blur) var(--card-box-shadow-2), 0 0 0 1px var(--card-border-color);
    padding: 56px 16px 16px 16px;
    border-radius: 15px;
    cursor: pointer;
    position: relative;
    transition: box-shadow .25s;
}

    .card::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: 15px;
        background-color: var(--card-background-color);
        pointer-events: none;
    }

    .card .icon {
        z-index: 2;
        position: relative;
        width: 64px;
        height: 64px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .card .icon::after {
            content: '';
            position: absolute;
            inset: 4.5px;
            border-radius: 50%;
            background-color: var(--card-icon-background-color);
            border: 1px solid var(--card-icon-border-color);
            backdrop-filter: blur(2px);
            transition: background-color .25s, border-color .25s;
        }

        .card .icon svg {
            position: relative;
            z-index: 1;
            display: block;
            width: 32px;
            height: 32px;
            transform: translateZ(0);
            color: var(--card-icon-color);
            transition: color .25s;
        }

    .card h4 {
        z-index: 2;
        position: relative;
        margin: 12px 0 4px 0;
        font-family: inherit;
        font-weight: 600;
        font-size: 14px;
        line-height: 2;
        color: var(--card-label-color);
    }

    .card p {
        z-index: 2;
        position: relative;
        margin: 0;
        font-size: 14px;
        line-height: 1.7;
        color: var(--text-color);
    }

    .card .shine {
        border-radius: inherit;
        position: absolute;
        inset: 0;
        z-index: 1;
        overflow: hidden;
        opacity: 0;
        transition: opacity .5s;
    }

        .card .shine:before {
            content: '';
            width: 150%;
            padding-bottom: 150%;
            border-radius: 50%;
            position: absolute;
            left: 50%;
            bottom: 55%;
            filter: blur(35px);
            opacity: var(--card-shine-opacity);
            transform: translateX(-50%);
            background-image: var(--card-shine-gradient);
        }

    .card .background {
        border-radius: inherit;
        position: absolute;
        inset: 0;
        overflow: hidden;
        -webkit-mask-image: radial-gradient(circle at 60% 5%, black 0%, black 15%, transparent 60%);
        mask-image: radial-gradient(circle at 60% 5%, black 0%, black 15%, transparent 60%);
    }

        /* === NEUE POLYGON-ANIMATION START === */
        .card .background svg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            transition: opacity .25s;
        }

            .card .background svg path {
                fill: var(--card-tile-color);
                stroke: var(--card-line-color);
                stroke-width: 0.5px;
                opacity: 0;
                animation-duration: 8s;
                animation-iteration-count: infinite;
            }

@keyframes poly-glow {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.1;
    }
}

/* === HOVER STATE FÜR POLYGONE === */
.card:hover .background svg {
    opacity: 1;
    transition-delay: .25s;
}

    .card:hover .background svg path {
        animation-name: poly-glow;
    }

        /* Animation Delays für einen zufälligen Effekt */
        .card:hover .background svg path:nth-child(1) {
            animation-delay: -0.5s;
        }

        .card:hover .background svg path:nth-child(2) {
            animation-delay: -1.0s;
        }

        .card:hover .background svg path:nth-child(3) {
            animation-delay: -1.5s;
        }

        .card:hover .background svg path:nth-child(4) {
            animation-delay: -2.0s;
        }

        .card:hover .background svg path:nth-child(5) {
            animation-delay: -2.5s;
        }

        .card:hover .background svg path:nth-child(6) {
            animation-delay: -3.0s;
        }

        .card:hover .background svg path:nth-child(7) {
            animation-delay: -3.5s;
        }

        .card:hover .background svg path:nth-child(8) {
            animation-delay: -4.0s;
        }

        .card:hover .background svg path:nth-child(9) {
            animation-delay: -4.5s;
        }

        .card:hover .background svg path:nth-child(10) {
            animation-delay: -5.0s;
        }

        .card:hover .background svg path:nth-child(11) {
            animation-delay: -5.5s;
        }

        .card:hover .background svg path:nth-child(12) {
            animation-delay: -6.0s;
        }

        .card:hover .background svg path:nth-child(13) {
            animation-delay: -6.5s;
        }

        .card:hover .background svg path:nth-child(14) {
            animation-delay: -7.0s;
        }

        .card:hover .background svg path:nth-child(15) {
            animation-delay: -7.5s;
        }

        .card:hover .background svg path:nth-child(16) {
            animation-delay: -8.0s;
        }

        .card:hover .background svg path:nth-child(17) {
            animation-delay: -8.5s;
        }

        .card:hover .background svg path:nth-child(18) {
            animation-delay: -9.0s;
        }
/* === NEUE POLYGON-ANIMATION ENDE === */

/* --- HOVER STATE --- */
.card:hover {
    box-shadow: 0px 3px 6px var(--card-hover-box-shadow-1), 0px var(--card-hover-box-shadow-2-y) var(--card-hover-box-shadow-2-blur) var(--card-hover-box-shadow-2), 0 0 0 1px var(--card-hover-border-color);
}

    .card:hover .icon::after {
        background-color: var(--card-hover-icon-background-color);
        border-color: var(--card-hover-icon-border-color);
    }

    .card:hover .icon svg {
        color: var(--card-hover-icon-color);
    }

    .card:hover .shine {
        opacity: 1;
        transition-duration: .5s;
        transition-delay: 0s;
    }
/* Einheitliche Linkfarbe für die gesamte Website (BFSG-konform, hoher Kontrast) */
a, a:visited {
/*    color: #2196f3;*/
    text-decoration: none;
    transition: color 0.2s;
}

a:hover, a:focus {
    color: #1565c0;
    text-decoration: none;
    outline: none;
}

/* Für Barrierefreiheit: sichtbarer Fokus für Links */
a:focus-visible {
    outline: 3px solid #FFD700;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.3);
}

/* Einheitliche Textfarbe für .card und .card * im Legal-Bereich */
.card, .card * {
    color: #F8F9FA;
}

/* Überschriften im Legal-Bereich etwas kräftiger */
.card h1, .card h2, .card h3, .card h4, .card h5 {
    color: #ffffff;
    font-weight: 700;
}

/* Listenpunkte und Fließtext im Legal-Bereich */
.card ol, .card ul, .card p, .card li {
    color: #F8F9FA;
}

/* Cookie-Settings Modal: heller Hintergrund, kontrastreiche Schrift, einheitliche Link- und Label-Farbe */
/* Scoped to light variant only so dark variant (cookie-modal-dark) wins */
#cookieSettingsModal .modal-content.cookie-modal-light {
    background-color: #f8f9fa;
    color: #23272b;
}
#cookieSettingsModal .modal-content.cookie-modal-light .modal-title,
#cookieSettingsModal .modal-content.cookie-modal-light label,
#cookieSettingsModal .modal-content.cookie-modal-light .form-check-label,
#cookieSettingsModal .modal-content.cookie-modal-light p {
    color: #23272b;
}
#cookieSettingsModal .modal-content.cookie-modal-light .form-check-input:checked {
    background-color: #2196f3;
    border-color: #2196f3;
}
#cookieSettingsModal .modal-content.cookie-modal-light .form-check-input:focus {
    box-shadow: 0 0 0 2px #FFD700;
}
#cookieSettingsModal .modal-content.cookie-modal-light a {
    color: #1565c0;
    text-decoration: none;
}
#cookieSettingsModal .modal-content.cookie-modal-light a:hover {
    color: #2196f3;
    text-decoration: none;
}
#cookieSettingsModal .modal-content.cookie-modal-light small.text-muted {
    color: #6c757d !important;
}
#cookieSettingsModal .modal-content.cookie-modal-light .btn-primary {
    background-color: #2196f3;
    border-color: #2196f3;
    color: #fff;
}
#cookieSettingsModal .modal-content.cookie-modal-light .btn-primary:hover {
    background-color: #1565c0;
    border-color: #1565c0;
}
#cookieSettingsModal .modal-content.cookie-modal-light .btn-secondary {
    background-color: #495057;
    border-color: #495057;
    color: #fff;
}
#cookieSettingsModal .modal-content.cookie-modal-light .btn-secondary:hover {
    background-color: #343a40;
    border-color: #343a40;
}

/* --- Modern toggle switch for cookie settings modal --- */
#cookieSettingsModal .form-check-input.switch-toggle {
    width: 48px;
    height: 28px;
    -webkit-appearance: none;
    appearance: none;
    background: #e6e9ee;
    border-radius: 999px;
    position: relative;
    outline: none;
    cursor: pointer;
    transition: background-color 0.18s ease, box-shadow 0.18s ease;
    border: 1px solid rgba(0,0,0,0.08);
}

#cookieSettingsModal .form-check-input.switch-toggle::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(16,24,40,0.18);
    transition: transform 0.18s cubic-bezier(.2,.9,.3,1);
}

#cookieSettingsModal .form-check-input.switch-toggle:checked {
    background: linear-gradient(90deg,#34D399,#10B981);
    border-color: rgba(16,24,40,0.06);
}

#cookieSettingsModal .form-check-input.switch-toggle:checked::after {
    transform: translateY(-50%) translateX(20px);
}

#cookieSettingsModal .form-check-input.switch-toggle:focus-visible {
    box-shadow: 0 0 0 4px rgba(52,211,153,0.14);
}

/* ensure disabled necessary toggle looks subdued but visible */
#cookieSettingsModal .form-check-input#necessaryToggle.switch-toggle[disabled] {
    opacity: 0.9;
    background: linear-gradient(90deg,#f1f5f9,#e9eef6);
}

/* End of cookie styles */

/* ------------------------------------------------------------------ */
/* Styles moved from Views/Website/Index.cshtml (inline -> central CSS) */
/* ------------------------------------------------------------------ */

/* Hero / Banner background moved from inline style */
#home {
    background-image: url('/resources/images/Banner.webp');
    background-size: cover;
    background-position: center;
    min-height: 60vh;
}

/* Intro section background moved from inline style */
.intro-section {
    background-color: #F7F7F7;
}

/* Contact image default constraints */
.contact-image {
    max-height: 400px;
    object-fit: cover;
}

/* Honeypot / visually hidden input for forms */
.honeypot {
    position: absolute;
    left: -5000px;
}

/* Small utility for the cookie alert icon */
.cookie-alert-icon {
    font-size: 1.25rem;
}
