    @import url('../vendor/fonts/open-sans/open-sans.css');

    :root {
        --transition-fast: all 0.2s ease;
        --transition-normal: all 0.3s ease;
        --color-primary: #4B5459;
        --color-gray: #8D939E;
        --border-radius-sm: 8px;
        --border-radius-pill: 999px;
        --hover-lift: translateY(-2px);
        color-scheme: only light;

        /* Typography Scale - basiert auf p tag mit 1.2rem */
        --font-size-base: 1.2rem;
        /* 19.2px - Standard p tag */
        --font-size-large: 1.25rem;
        /* 20px - Überschriften */
        --font-size-normal: 1rem;
        /* 16px - Normale Texte */
        --font-size-small: 0.875rem;
        /* 14px - Kleine Texte */
        --font-size-xsmall: 0.75rem;
        /* 12px - Sehr klein */
    }

    *:not(.fa):not(.fas):not(.far):not(.fab):not(.fal):not(.fad):not(.ab-icon):not(.ab-item):not([class*="dashicons"]):not([class*="wp-"]):not(#wpadminbar *) {
        font-family: Arial, sans-serif !important;
    }

    html,
    body {
        margin: 0;
        padding: 0;
        background: #fff;
    }

    #mapContainer {
        position: relative;
        width: 100vw;
        height: 100vh;
        overflow: hidden;
        touch-action: none;
        cursor: grab;
    }

    .title-heading {
        font-weight: 700;
        color: #343a40;
        font-size: 1.9rem;
        margin: 0;
    }

    .title-sub {
        display: block;
        font-weight: 400;
        font-size: 1.0rem;
        color: #8D939E;
    }

    #mapContainer.grabbing {
        cursor: grabbing;
    }

    .skip-intro-hint {
        position: fixed;
        left: 50%;
        bottom: 24px;
        transform: translateX(-50%);
        color: #b0b4ba;
        font-size: 0.95rem;
        letter-spacing: 0.02em;
        text-align: center;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.4s ease;
        z-index: 1000;
        white-space: nowrap;
        text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
        user-select: none;
    }

    .skip-intro-hint.visible {
        opacity: 1;
    }

    .skip-intro-hint kbd {
        display: inline-block;
        padding: 2px 8px;
        margin: 0 2px;
        background: #f1f3f5;
        border: 1px solid #d0d4da;
        border-bottom-width: 2px;
        border-radius: 4px;
        color: #6c757d;
        font-family: inherit;
        font-size: 0.85rem;
        line-height: 1;
    }

    @media (max-width: 768px) {
        .skip-intro-hint {
            bottom: 6%;
            font-size: 0.9rem;
        }
    }

    #lottieMap,
    #lottieMap svg {
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    .lottie-optimized {
        will-change: transform;
        transform: translateZ(0);
        backface-visibility: hidden;
    }

    .lottie-optimized svg {
        shape-rendering: optimizeSpeed;
        text-rendering: optimizeSpeed;
    }

    #lottieMap svg #Gebaeudebezeichnung>g,
    #lottieMap svg #Gebaeudebezeichnung>g * {
        pointer-events: all !important;
        cursor: pointer !important;
    }

    @keyframes float {

        0%,
        100% {
            transform: translateY(0) scale(var(--s));
        }

        50% {
            transform: translateY(-5px) scale(var(--s));
        }
    }

    #lottieMap svg g[id^="Frage-"],
    #lottieMap svg g[id="Frage"] {
        --s: 1;
        transform-box: fill-box;
        transform-origin: center;
        animation: float 4s ease-in-out infinite;
        transition: transform .3s ease, filter .3s ease;
        cursor: pointer;
    }

    #lottieMap svg g[id^="Frage-"]:hover,
    #lottieMap svg g[id="Frage"]:hover {
        --s: 1.15;
        transform: translateY(-2px);
    }



    #lottieMap svg g[id^="Button_"] {
        transform-box: fill-box;
        transform-origin: center;
        transition: transform .18s ease, filter .18s ease;
    }

    #lottieMap svg g[id^="Button_"]:hover {
        transform: translateY(-2px);
    }

    #lottieMap svg g[id^="Button_"]:active {
        transform: translateY(0);
    }

    @media (prefers-reduced-motion: reduce) {

        #lottieMap svg g[id^="Frage-"],
        #lottieMap svg g[id="Frage"],
        #lottieMap svg g[id^="Button_"] {
            animation: none;
            transition: none;
        }
    }

    /* Globaler Animations-Schalter (Einstellung "Animationen") */
    body.no-animations,
    body.no-animations *,
    body.no-animations *::before,
    body.no-animations *::after {
        animation-duration: 0.001ms !important;
        animation-delay: 0s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        transition-delay: 0s !important;
        scroll-behavior: auto !important;
    }

    body.no-animations #lottieMap svg g[id^="Frage-"],
    body.no-animations #lottieMap svg g[id="Frage"],
    body.no-animations #lottieMap svg g[id^="Button_"] {
        animation: none !important;
        transition: none !important;
    }

    /* Icon für Einstellungs-Karten (statt <img>) */
    .filter-icon-fa {
        width: 40px;
        height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #8c9b39;
        font-size: 1.4rem;
        opacity: 0.85;
    }

    .navbar,
    #footer-container,
    .entry-footer {
        display: none;
    }

    .content-area {
        margin-bottom: 0 !important;
    }

    .carousel-item {
        transition: none;
    }

    #carouselBuilding .carousel-control-prev-icon,
    #carouselBuilding .carousel-control-next-icon {
        background-color: #fff !important;
        filter: none !important;
    }

    #carouselBuilding .carousel-control-prev-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e") !important;
    }

    #carouselBuilding .carousel-control-next-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M4.646 1.646a.5.5 0 0 0 0 .708L10.293 8l-5.647 5.646a.5.5 0 0 0 .708.708l6-6a.5.5 0 0 0 0-.708l-6-6a.5.5 0 0 0-.708 0z'/%3e%3c/svg%3e") !important;
    }

    #carouselBuilding .carousel-control-prev {
        left: -25px;
    }

    #carouselBuilding .carousel-control-next {
        right: -25px;
    }

    #carouselBuilding.no-anim {
        --bs-carousel-transition-duration: 0s !important;
    }

    #carouselBuilding.no-anim .carousel-item {
        transition: none !important;
    }

    .carousel.carousel-fade .carousel-item {
        transition: opacity 1s ease-in-out;
        opacity: 0;
    }

    .carousel.carousel-fade.no-anim .carousel-item {
        transition: none !important;
    }

    .carousel.carousel-fade .carousel-item.active,
    .carousel.carousel-fade .carousel-item-next.carousel-item-start,
    .carousel.carousel-fade .carousel-item-prev.carousel-item-end {
        opacity: 1;
    }

    .offcanvas {
        --bs-offcanvas-width: 600px;
    }


    .frageModalBody {
        padding-top: 25px !important;
    }

    .info-icon-trigger {
        cursor: default;
        transition: var(--transition-normal);
        background: transparent !important;
        padding: 0 !important;
        text-align: end;
        pointer-events: none;
    }

    .info-icon-trigger .fas.fa-info-circle {
        cursor: pointer;
        pointer-events: all;
    }

    .info-icon-trigger span {
        cursor: pointer;
        pointer-events: all;
    }

    .fas.fa-info-circle:hover {
        color: #0056b3 !important;
        background: transparent !important;
    }

    .campus-info-overlay {
        position: absolute;
        top: 65px;
        right: 12px;
        z-index: 1000;
        width: 350px;
    }

    .campus-info-card {
        max-height: 400px;
        overflow-y: auto;
    }

    .campus-info-icon {
        font-size: 1.5rem;
        color: #0092c3;
    }

    .offcanvas .offcanvas-header {
        border-bottom: 1px solid #dee2e6;
        padding-bottom: 0;
    }

    .offcanvas-body {
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    /* Verhindert Abschneiden des letzten Elements durch Browser-Chrome auf Mobile */
    .offcanvas {
        max-height: 100dvh;
    }

    .content-group {
        padding: 10px;
        background: white;
        border-radius: var(--border-radius-sm);
        margin-bottom: 10px;
    }

    .toolbox-container {
        position: static;
        border-radius: 12px;
        padding: 6px 10px;
        display: flex;
        gap: 8px;
        align-items: center;
    }

    .toolbox-btn {
        background: none;
        border: none;
        color: white;
        font-size: var(--font-size-large);
        padding: 6px;
        border-radius: var(--border-radius-sm);
        transition: var(--transition-normal);
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        cursor: pointer;
    }

    .toolbox-btn:hover {
        background-color: rgba(75, 84, 89, 0.1);
        transform: var(--hover-lift);
    }

    .toolbox-btn:focus {
        outline: none;
        background-color: transparent;
    }

    .toolbox-btn:focus-visible {
        outline: 2px solid rgba(255, 255, 255, 0.5);
        outline-offset: 2px;
    }

    .fa,
    .fas {
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
    }

    .toolbox-btn .fa,
    .toolbox-btn .fas {
        color: var(--color-primary);
    }

    .btn-outline-secondary.btn-sm {
        border-radius: var(--border-radius-pill);
        padding: 4px 12px;
        font-size: var(--font-size-small);
        color: #000;
        border-color: var(--color-gray);
        background-color: transparent;
        transition: var(--transition-fast);
    }

    .btn-outline-secondary.btn-sm:hover {
        background-color: #f8f9fa;
        color: black;
        border-color: #aaa;
    }

    .btn-outline-secondary.btn-sm.active {
        background-color: var(--color-gray);
        color: black;
        border-color: var(--color-gray);
    }

    #allcontent-title {
        background: linear-gradient(rgba(255, 255, 255, .95) 75%, transparent);
        position: fixed;
        z-index: 100;
    }

    .erkundungstour-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 45px;
        padding: 0 16px;
        box-sizing: border-box;
        background-color: #fff;
        border: 1px solid var(--color-primary);
        border-radius: 20px;
        text-decoration: none;
        transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        margin: 0 auto;
        width: fit-content;
    }

    .erkundungstour-btn:hover {
        transform: var(--hover-lift);
    }

    .erkundungstour-btn p {
        margin: 0;
        font-family: system-ui, sans-serif;
        font-size: var(--font-size-small);
        font-weight: bold;
        color: var(--color-primary);
        line-height: 1;
        text-align: center;
    }

    @media (max-width: 768px) {
        #mapContainer {
            display: flex;
            align-items: center;
            justify-content: center;
            padding-top: 8vh;
        }

        #allcontent-title {
            background: linear-gradient(rgba(255, 255, 255, .95) 80%, transparent);
            position: fixed;
            z-index: 100;
        }

        #lottieMap {
            position: absolute;
            top: 45%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 100%;
            height: 100%;
        }

        .title-heading {
            font-size: 1.5rem;
        }

        .title-sub {
            font-size: 0.8rem;
        }

        .toolbox-container {
            padding: 4px;
            gap: 6px;
        }

        .toolbox-btn {
            font-size: var(--font-size-normal);
            width: 28px;
            height: 28px;
        }

        #carouselBuilding .carousel-control-prev {
            left: -10px;
        }

        #carouselBuilding .carousel-control-next {
            right: -10px;
        }
    }

    .badge-notification {
        position: fixed;
        top: 20px;
        right: 20px;
        width: 400px;
        height: 60px;
        background: #ecf0dc;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: var(--border-radius-sm);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        padding: 0 20px;
        z-index: 99999;
        font-family: Arial, sans-serif;
        color: white;
        backdrop-filter: blur(10px);
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .badge-notification:hover {
        transform: var(--hover-lift);
    }

    .badge-notification .badge-content {
        display: flex;
        align-items: center;
        gap: 12px;
        flex: 1;
        cursor: pointer !important;
    }

    .badge-notification .badge-svg {
        width: 40px;
        flex-shrink: 0;
        margin: 0 !important;
    }

    .badge-notification .badge-text {
        font-size: var(--font-size-normal);
        font-weight: 600;
        color: var(--color-primary);
    }

    .badge-notification .badge-name {
        color: #8E195A;
        ;
        font-weight: 600;
        font-size: inherit;
    }

    .badge-notification .close-btn {
        background: none;
        border: none;
        color: #212529;
        font-size: 1.125rem;
        cursor: pointer;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: var(--transition-fast);
        flex-shrink: 0;
    }

    .badge-notification .close-btn:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #212529;
    }

    /* Countdown Timer */
    .badge-notification .countdown-timer {
        position: absolute;
        bottom: 0;
        left: 0;
        height: 3px;
        background: #8c9b39;
        border-radius: 0 0 8px 8px;
        transition: width 0.1s linear;
        width: 100%;
    }

    /* Modals auf Mobile: korrekte Höhe mit dynamischem Viewport */
    @media (max-width: 767px) {
        .modal-dialog {
            max-height: 100dvh;
        }
        .modal-content {
            max-height: 100dvh;
        }
        .modal-body {
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }
    }

    /* Landscape Optimierung für Smartphones */
    @media (max-width: 896px) and (max-height: 430px) and (orientation: landscape) {
        #mapContainer {
            padding-top: 4vh !important;
        }

        #allcontent-title {
            background: linear-gradient(rgba(255, 255, 255, .95) 70%, transparent);
        }

        #allcontent-title .py-2 {
            padding-top: 0.25rem !important;
            padding-bottom: 0.25rem !important;
        }

        .title-heading {
            font-size: 1.1rem !important;
        }

        .title-sub {
            font-size: 0.65rem !important;
        }
    }

    /* Mobile Design */
    @media (max-width: 768px) {
        .badge-notification {
            top: 10px;
            right: 10px;
            /* Direkt sichtbar */
            left: 10px;
            width: auto;
            height: 50px;
            padding: 0 15px;
        }

        .badge-notification .badge-svg {
            width: 28px;
            height: 28px;
        }

        .badge-notification .badge-text {
            font-size: var(--font-size-small);
        }

        .badge-notification .countdown-timer {
            height: 2px;
        }
    }

    @media (max-width: 480px) {
        .badge-notification {
            top: 5px;
            right: 5px;
            left: 5px;
            height: 45px;
            padding: 0 12px;
        }

        .badge-notification .badge-svg {
            width: 24px;
            height: 24px;
        }

        .badge-notification .badge-text {
            font-size: var(--font-size-xsmall);
        }
    }

    .badge-card {
        background: white;
        border-radius: 16px;
        padding: 24px;
        margin-bottom: 20px;
        transition: var(--transition-normal);
        display: flex;
        align-items: center;
        gap: 20px;
        position: relative;
        overflow: hidden;
    }

    .badge-card:hover {
        transform: var(--hover-lift);
    }

    .badge-card.unlocked .badge-description {
        color: #212529 !important;
    }

    .badge-card.unlocked {
        border: 2px solid #8c9b39;
        background: #ecf0dc;
    }

    .badge-card.locked {
        background: linear-gradient(135deg, #ffffff 0%, #f5f6f7 100%);
        border: 2px solid #e0e0e0;
    }

    .badge-icon-container {
        flex-shrink: 0;
        width: 100px;
        height: 100px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    .badge-icon-container img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        transition: var(--transition-normal);
    }

    .badge-card.locked .badge-icon-container img {
        filter: grayscale(100%) brightness(1.2);
        opacity: 0.4;
    }

    .badge-card.unlocked .badge-icon-container::after {
        content: '✓';
        position: absolute;
        top: -5px;
        right: -5px;
        width: 30px;
        height: 30px;
        background: #8c9b39;
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        font-size: 1.125rem;
    }

    .badge-info {
        flex: 1;
        min-width: 0;
    }

    .badge-name {
        font-size: var(--font-size-large);
        font-weight: 700;
        color: #8E195A !important;
        margin: 0 0 8px 0;
    }

    .badge-description {
        font-size: var(--font-size-normal);
        color: #8D939E;
        margin: 0 0 12px 0;
    }

    .badge-progress {
        margin-top: 12px;
    }

    .progress-text {
        font-size: var(--font-size-small);
        font-weight: 600;
        margin-bottom: 6px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: #212529 !important;
    }

    .badge-card.unlocked .progress-text {
        color: #8c9b39;
    }

    .progress-bar-container {
        height: 8px;
        background: #e0e0e0;
        border-radius: 10px;
        overflow: hidden;
    }

    .progress-bar-fill {
        height: 100%;
        background: #8c9b39;
        border-radius: 10px;
        transition: width 0.6s ease;
    }

    .badge-card.locked .progress-bar-fill {
        background: linear-gradient(90deg, #bdbdbd 0%, #9e9e9e 100%);
    }

    .badge-date {
        font-size: var(--font-size-xsmall);
        color: #8c9b39;
        margin-top: 8px;
        font-weight: 500;
    }

    .badge-hint {
        font-size: var(--font-size-xsmall);
        color: #0092c3;
        margin-top: 8px;
        font-weight: 500;
    }

    /* Mobile Anpassungen */
    @media (max-width: 768px) {
        .badge-card {
            padding: 16px;
            gap: 16px;
        }

        .badge-icon-container {
            width: 70px;
            height: 70px;
        }

        .badge-name {
            font-size: 1.125rem;
        }

        .badge-description {
            font-size: var(--font-size-small);
        }
    }

    /* Filter Übersicht Styles */
    .filter-section {
        margin-bottom: 24px;
    }

    .filter-card {
        background: white;
        border-radius: 12px;
        padding: 10px 10px;
        margin-bottom: 12px;
        transition: all 0.2s ease;
        border: 2px solid #e0e0e0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        user-select: none;
    }

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

    .filter-card.active {
        background: linear-gradient(135deg, #ffffff 0%, #f5f6f7 100%);
    }

    .filter-card-content {
        display: flex;
        align-items: center;
        gap: 12px;
        flex: 1;
    }

    .filter-card-content img {
        margin-bottom: 0 !important;
    }


    .filter-icon {
        width: 40px;
        height: 40px;
        object-fit: contain;
        opacity: 0.6;
        transition: opacity 0.3s ease;
    }

    .filter-card.active .filter-icon {
        opacity: 1;
    }

    .filter-label-text {
        font-weight: 500;
        color: #212529;
    }

    /* Custom Toggle Switch */
    .filter-toggle {
        position: relative;
        width: 48px;
        height: 24px;
    }

    .filter-toggle input {
        opacity: 0;
        width: 0;
        height: 0;
    }

    .toggle-slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #e5e5e6;
        border-radius: 24px;
        transition: .3s;
    }

    .toggle-slider:before {
        position: absolute;
        content: "";
        height: 18px;
        width: 18px;
        left: 3px;
        bottom: 3px;
        background-color: white;
        border-radius: 50%;
        transition: .3s;
    }

    .filter-toggle input:checked+.toggle-slider {
        background-color: #8c9b39;
    }

    .filter-toggle input:checked+.toggle-slider:before {
        transform: translateX(24px);
    }

    .toggle-all-btn {
        width: 100%;
        padding: 14px;
        background: #9e9ea0;
        color: white;
        border: none;
        border-radius: 12px;
        font-weight: 600;
        cursor: pointer;
        transition: var(--transition-normal);
        margin-bottom: 20px;
    }

    .toggle-all-btn.active {
        background: #8c9b39;
    }

    .toggle-all-btn i {
        color: white;
    }

    .toggle-all-btn:hover {
        transform: var(--hover-lift);
    }

    .toggle-all-btn:active {
        transform: translateY(0);
    }

    /* Settings Section */
    .settings-section {
        margin-bottom: 30px;
    }

    .settings-section-title {
        font-size: var(--font-size-small);
        font-weight: 600;
        color: #212529;
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        text-align: center;
        position: relative;
    }

    .settings-section-title::before,
    .settings-section-title::after {
        content: '';
        flex: 1;
        height: 2px;
        background: #e0e0e0;
    }

    .settings-section-title::before {
        margin-right: 15px;
    }

    .settings-section-title::after {
        margin-left: 15px;
    }

    /* Danger Zone */
    .danger-zone {
        margin-top: 30px;
        padding: 20px;
        background: #fcdad4;
        border: none;
        border-radius: 12px;
    }

    .danger-zone-title {
        font-size: var(--font-size-normal);
        font-weight: 700;
        color: #212529;
        margin-bottom: 10px;
        display: flex;
        align-items: center;
    }

    .danger-zone-title i {
        color: #212529;
    }

    .danger-zone-description {
        font-size: var(--font-size-normal);
        color: #212529;
        margin-bottom: 15px;
        line-height: 1.5;
    }

    .danger-zone-btn {
        width: 100%;
        padding: 12px;
        background: #e4003a;
        color: white;
        border: none;
        border-radius: 8px;
        font-weight: 600;
        cursor: pointer;
        pointer-events: all;
        transition: all 0.3s ease;
    }

    .danger-zone-btn i {
        color: white;
    }

    .danger-zone-btn:hover {
        transform: translateY(-2px);
    }

    .danger-zone-btn:active {
        transform: translateY(0);
    }

    .offcanvas-title {
        color: #212529 !important;
    }

    .offcanvas-title.with-padding {
        padding-left: 5px;
    }

    .campus-accordion-close {
        display: flex;
        flex-direction: column;
        align-items: end;
        justify-content: center;
        text-align: end;
        width: 100%;
    }

    .campus-accordion-close span {
        font-size: 0.7rem;
        font-weight: bold;
        color: #212529;
        margin-top: 0;
        cursor: pointer;
    }

    /* Building Info Styles */
    .building-carousel-img {
        object-fit: cover;
        height: 300px;
        border-radius: 0.5rem;
    }

    .building-icon-img {
        max-width: 100%;
        border-radius: 0.5rem;
        margin: 0;
    }

    .building-section-container {
        background: #f8f9fa;
        border-radius: 0.5rem;
    }

    .building-hours-container {
        border-radius: 0.5rem;
    }

    .mb-0-important {
        margin-bottom: 0 !important;
    }

    /* ===== Reset-Bestätigungs-Modal ===== */
    #resetConfirmModal .modal-title {
        color: var(--color-primary);
        font-weight: 700;
    }

    #resetConfirmModal .modal-body {
        color: var(--color-primary);
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .reset-modal-list {
        padding-left: 1.2rem;
        margin: 0;
        color: #6c757d;
    }

    .reset-modal-list li {
        margin-bottom: 0.25rem;
    }

    #resetConfirmModal .btn-danger {
        background-color: #c0392b;
        border-color: #c0392b;
        font-weight: 600;
    }

    #resetConfirmModal .btn-danger:hover {
        background-color: #a73224;
        border-color: #a73224;
    }

    #resetConfirmModal .btn-outline-secondary {
        font-weight: 600;
    }

    /* ===== Quiz-Engine: Custom Multiple/Single Choice ===== */
    .quiz-container {
        padding: 0.25rem 0;
    }

    .quiz-question {
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--color-primary);
        margin-bottom: 1rem;
        line-height: 1.4;
    }

    .quiz-options {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .quiz-option {
        display: flex;
        align-items: center;
        gap: 0.85rem;
        padding: 0.85rem 1rem;
        background: #fff;
        border: 2px solid #dee2e6;
        border-radius: var(--border-radius-sm);
        cursor: pointer;
        transition: var(--transition-fast);
        user-select: none;
        margin: 0;
    }

    .quiz-option:hover:not(.locked) {
        border-color: #63b4b8;
        background: #f5fbfb;
    }

    .quiz-option input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
        width: 0;
        height: 0;
    }

    .quiz-option-marker {
        flex-shrink: 0;
        width: 26px;
        height: 26px;
        border: 2px solid #ced4da;
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: transparent;
        font-size: 0.85rem;
        transition: var(--transition-fast);
    }

    .quiz-option-text {
        flex: 1;
        color: var(--color-primary);
        font-size: 1rem;
        line-height: 1.35;
    }

    .quiz-option.selected {
        border-color: #63b4b8;
        background: #e7f4f4;
    }

    .quiz-option.selected .quiz-option-marker {
        border-color: #63b4b8;
        background: #63b4b8;
        color: #fff;
    }

    .quiz-option.locked {
        cursor: default;
        pointer-events: none;
    }

    .quiz-option.correct {
        border-color: #2e8b57;
        background: #e6f4ec;
    }

    .quiz-option.correct .quiz-option-marker {
        border-color: #2e8b57;
        background: #2e8b57;
        color: #fff;
    }

    .quiz-option.incorrect {
        border-color: #c0392b;
        background: #fbe9e7;
    }

    .quiz-option.incorrect .quiz-option-marker {
        border-color: #c0392b;
        background: #c0392b;
        color: #fff;
    }

    .quiz-feedback {
        display: none;
        padding: 0.75rem 1rem;
        border-radius: var(--border-radius-sm);
        margin-bottom: 1rem;
        font-weight: 600;
        line-height: 1.4;
    }

    .quiz-feedback.show {
        display: block;
    }

    .quiz-feedback.success {
        background: #e6f4ec;
        color: #1e5e3a;
        border: 1px solid #b6dcc5;
    }

    .quiz-feedback.error {
        background: #fbe9e7;
        color: #7a2018;
        border: 1px solid #f1c6c1;
    }

    .quiz-actions {
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .quiz-submit-btn,
    .quiz-reset-btn {
        border-radius: var(--border-radius-pill);
        padding: 0.5rem 1.5rem;
        font-weight: 600;
        font-size: var(--font-size-small);
    }

    .quiz-submit-btn {
        background-color: var(--color-primary);
        border-color: var(--color-primary);
    }

    .quiz-submit-btn:hover {
        background-color: #3a4146;
        border-color: #3a4146;
    }

    /* ===== Kreuzworträtsel ===== */
    .crossword-container {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .crossword-grid-wrapper {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .crossword-grid {
        --cw-cell-size: 38px;
        display: grid;
        gap: 2px;
        background: #cfd4da;
        padding: 2px;
        border-radius: 4px;
        width: max-content;
        margin: 0 auto;
    }

    .cw-cell {
        position: relative;
        width: var(--cw-cell-size);
        height: var(--cw-cell-size);
        background: #fff;
        border-radius: 2px;
    }

    .cw-cell-empty {
        width: var(--cw-cell-size);
        height: var(--cw-cell-size);
        background: transparent;
        border-radius: 0;
    }

    .cw-cell-number {
        position: absolute;
        top: 1px;
        left: 2px;
        font-size: 0.55rem;
        font-weight: 700;
        color: var(--color-gray);
        line-height: 1;
        pointer-events: none;
        z-index: 2;
    }

    .cw-cell-input {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        border: 0;
        margin: 0;
        padding: 0;
        background: transparent;
        text-align: center;
        text-transform: uppercase;
        font-family: inherit;
        font-size: calc(var(--cw-cell-size) * 0.55);
        line-height: 1;
        font-weight: 700;
        color: var(--color-primary);
        outline: none;
        box-sizing: border-box;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        border-radius: 2px;
    }

    .cw-cell-input:focus {
        background: #c3e4e3;
    }

    .cw-cell-active .cw-cell-input {
        background: #e7f4f4;
    }

    .cw-cell-active .cw-cell-input:focus {
        background: #c3e4e3;
    }

    .cw-clue {
        transition: var(--transition-fast);
    }

    .cw-clue:hover {
        color: #1e5e3a;
    }

    .cw-cell-correct {
        background: #e6f4ec;
    }

    .cw-cell-correct .cw-cell-input {
        color: #1e5e3a;
    }

    .cw-cell-incorrect {
        background: #fbe9e7;
    }

    .cw-cell-incorrect .cw-cell-input {
        color: #7a2018;
    }

    .crossword-clues {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        background: #f8f9fa;
        padding: 0.85rem;
        border-radius: var(--border-radius-sm);
    }

    .crossword-clues-title {
        font-size: 0.95rem;
        font-weight: 700;
        color: var(--color-primary);
        margin: 0 0 0.4rem 0;
        padding-bottom: 0.3rem;
        border-bottom: 1px solid #dee2e6;
    }

    .crossword-clue-list {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 0.3rem;
        font-size: 0.88rem;
        color: var(--color-primary);
    }

    .cw-clue {
        line-height: 1.35;
    }

    .cw-clue-num {
        font-weight: 700;
        margin-right: 0.25rem;
    }

    @media (max-width: 575px) {
        .crossword-grid {
            --cw-cell-size: 34px;
            gap: 3px;
        }
        .cw-cell-number {
            font-size: 0.5rem;
        }
        .crossword-clues {
            grid-template-columns: 1fr;
            gap: 0.7rem;
            padding: 0.6rem;
        }
        .crossword-clue-list {
            font-size: 0.82rem;
        }
    }

    /* ===== Image Hotspot ===== */
    .hotspot-container {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .hotspot-progress {
        text-align: center;
        font-weight: 600;
        color: var(--color-primary);
        font-size: 0.95rem;
    }

    .hotspot-image-wrapper {
        position: relative;
        width: 100%;
        max-width: 700px;
        margin: 0 auto;
        border-radius: var(--border-radius-sm);
        overflow: hidden;
        user-select: none;
        -webkit-user-select: none;
        background: #f1f3f5;
    }

    .hotspot-image {
        display: block;
        width: 100%;
        height: auto;
        pointer-events: none;
        -webkit-user-drag: none;
    }

    .hotspot-overlay {
        position: absolute;
        inset: 0;
        cursor: crosshair;
        touch-action: manipulation;
    }

    .hotspot-marker {
        position: absolute;
        width: 42px;
        height: 42px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 1.1rem;
        font-weight: 700;
        pointer-events: none;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        border: 3px solid #fff;
        transform: translate(-50%, -50%);
    }

    .hotspot-marker.correct {
        background: #2e8b57;
        animation: hotspot-pop 0.35s ease;
    }

    .hotspot-marker.incorrect {
        background: #c0392b;
        animation: hotspot-fade 0.85s ease forwards;
    }

    @keyframes hotspot-pop {
        0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
        60% { transform: translate(-50%, -50%) scale(1.18); opacity: 1; }
        100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    }

    @keyframes hotspot-fade {
        0% { transform: translate(-50%, -50%) scale(0.4); opacity: 0; }
        25% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
        70% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
        100% { transform: translate(-50%, -50%) scale(0.85); opacity: 0; }
    }

    @media (max-width: 575px) {
        .hotspot-marker {
            width: 34px;
            height: 34px;
            font-size: 0.95rem;
            border-width: 2px;
        }
        .hotspot-progress {
            font-size: 0.85rem;
        }
    }

    .hotspot-debug-zone {
        position: absolute;
        border: 2px dashed rgba(0, 146, 195, 0.85);
        background: rgba(0, 146, 195, 0.15);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        pointer-events: none;
    }

    /* ===== Wortsuche ===== */
    .wordsearch-container {
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
    }

    .wordsearch-grid {
        display: grid;
        gap: 2px;
        background: #e9ecef;
        padding: 4px;
        border-radius: var(--border-radius-sm);
        user-select: none;
        -webkit-user-select: none;
        touch-action: none;
        max-width: 560px;
        width: 100%;
        margin: 0 auto;
        align-self: center;
    }

    .wordsearch-cell {
        aspect-ratio: 1 / 1;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #fff;
        color: var(--color-primary);
        font-weight: 700;
        font-size: clamp(0.55rem, 2.4vw, 1.05rem);
        border-radius: 3px;
        cursor: pointer;
        transition: background-color 0.1s ease;
    }

    .wordsearch-cell.highlight {
        background: #b2dfdb;
        color: #1e4d4a;
    }

    .wordsearch-cell.found-locked {
        cursor: default;
    }

    .wordsearch-progress {
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--color-primary);
        text-align: center;
    }

    .wordsearch-words {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
        padding: 0.6rem;
        background: #f8f9fa;
        border-radius: var(--border-radius-sm);
        justify-content: center;
    }

    .wordsearch-word {
        padding: 0.25rem 0.55rem;
        background: #fff;
        border: 1px solid #dee2e6;
        border-radius: 999px;
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--color-primary);
        transition: var(--transition-fast);
        white-space: nowrap;
    }

    .wordsearch-word.found {
        text-decoration: line-through;
        opacity: 0.85;
        color: #1e4d4a;
    }

    .wordsearch-cell.hint-flash {
        position: relative;
        animation: ws-hint-pulse 0.9s ease-in-out 3;
        z-index: 5;
    }

    @keyframes ws-hint-pulse {
        0%, 100% {
            outline: 3px solid rgba(255, 193, 7, 0);
            outline-offset: 0;
        }
        50% {
            outline: 3px solid rgba(255, 193, 7, 0.95);
            outline-offset: 3px;
        }
    }

    .wordsearch-word.hint-pulse {
        animation: ws-word-pulse 0.9s ease-in-out 3;
    }

    @keyframes ws-word-pulse {
        0%, 100% {
            box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
        }
        50% {
            box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.55);
        }
    }

    @media (max-width: 575px) {
        .wordsearch-grid {
            gap: 1px;
            padding: 2px;
        }
        .wordsearch-cell {
            font-size: clamp(0.5rem, 2.8vw, 0.85rem);
        }
        .wordsearch-word {
            font-size: 0.78rem;
            padding: 0.2rem 0.45rem;
        }
        .wordsearch-progress {
            font-size: 0.82rem;
        }
    }

    /* ===== Bilder-Grid (Multi-Select mit Bildern) ===== */
    .quiz-image-grid {
        display: grid;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .quiz-option-image {
        padding: 0;
        position: relative;
        aspect-ratio: 4 / 3;
        overflow: hidden;
        gap: 0;
        background: #fff;
    }

    .quiz-option-image .quiz-option-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.25s ease;
    }

    .quiz-option-image:hover:not(.locked) .quiz-option-img {
        transform: scale(1.05);
    }

    .quiz-option-image .quiz-option-marker {
        position: absolute;
        top: 6px;
        right: 6px;
        z-index: 2;
        width: 28px;
        height: 28px;
        opacity: 0;
        transition: opacity 0.2s ease;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    }

    .quiz-option-image.selected .quiz-option-marker,
    .quiz-option-image.correct .quiz-option-marker,
    .quiz-option-image.incorrect .quiz-option-marker {
        opacity: 1;
    }

    @media (max-width: 575px) {
        .quiz-image-grid {
            gap: 0.4rem;
        }
    }

    @media (max-width: 360px) {
        .quiz-image-grid {
            grid-template-columns: repeat(2, 1fr) !important;
        }
    }

    /* ===== Sortier-Quiz (Drag & Drop) ===== */
    .sort-list {
        list-style: none;
        padding: 0;
        margin: 0 0 1rem 0;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .sort-item {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.75rem 0.85rem;
        background: #fff;
        border: 2px solid #dee2e6;
        border-radius: var(--border-radius-sm);
        cursor: grab;
        transition: var(--transition-fast);
        user-select: none;
        touch-action: none;
    }

    .sort-item:hover:not(.locked) {
        border-color: #63b4b8;
        background: #f5fbfb;
    }

    .sort-item:active {
        cursor: grabbing;
    }

    .sort-handle {
        flex-shrink: 0;
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--color-gray);
        font-size: 1rem;
    }

    .sort-text {
        flex: 1;
        color: var(--color-primary);
        font-size: 1rem;
        line-height: 1.35;
    }

    .sort-arrows {
        display: flex;
        flex-direction: column;
        gap: 4px;
        flex-shrink: 0;
    }

    .sort-arrow-btn {
        width: 32px;
        height: 28px;
        padding: 0;
        background: #f1f3f5;
        border: 1px solid #dee2e6;
        border-radius: 6px;
        color: var(--color-primary);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: var(--transition-fast);
        font-size: 0.85rem;
        touch-action: manipulation;
    }

    .sort-arrow-btn:hover:not(:disabled) {
        background: #63b4b8;
        border-color: #63b4b8;
        color: #fff;
    }

    .sort-arrow-btn:active:not(:disabled) {
        transform: scale(0.92);
    }

    .sort-arrow-btn:disabled {
        opacity: 0.35;
        cursor: not-allowed;
    }

    .sort-arrow-btn:focus-visible {
        outline: 2px solid #63b4b8;
        outline-offset: 2px;
    }

    @keyframes sort-bump {
        0% { transform: translateY(0); }
        45% { transform: translateY(-3px); background-color: #e7f4f4; }
        100% { transform: translateY(0); }
    }

    .sort-item.sort-bump {
        animation: sort-bump 0.28s ease;
    }

    .sort-ghost {
        opacity: 0.4;
        background: #e7f4f4;
        border-color: #63b4b8;
    }

    .sort-chosen {
        border-color: #63b4b8;
        background: #e7f4f4;
    }

    .sort-drag {
        cursor: grabbing;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
        transform: rotate(0.5deg);
    }

    .sort-item.locked {
        cursor: default;
    }

    .sort-item.correct {
        border-color: #2e8b57;
        background: #e6f4ec;
    }

    .sort-item.correct .sort-handle {
        color: #2e8b57;
    }

    .sort-item.incorrect {
        border-color: #c0392b;
        background: #fbe9e7;
    }

    .sort-item.incorrect .sort-handle {
        color: #c0392b;
    }

    @media (max-width: 575px) {
        .sort-item {
            padding: 0.7rem 0.55rem;
            gap: 0.5rem;
        }
        .sort-text {
            font-size: 0.92rem;
        }
        .sort-handle {
            width: 22px;
            font-size: 0.9rem;
        }
        .sort-arrow-btn {
            width: 30px;
            height: 28px;
        }
    }

    /* ===== Memory-Spiel ===== */
    .memory-status {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 0.85rem;
    }

    .memory-progress {
        font-weight: 600;
        color: var(--color-primary);
        font-size: 0.95rem;
    }

    .memory-reset-btn {
        border-radius: var(--border-radius-pill);
        font-size: var(--font-size-small);
        font-weight: 600;
    }

    .memory-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
        margin-bottom: 1rem;
        transition: opacity 0.25s ease, transform 0.25s ease;
    }

    .memory-container.shuffling .memory-grid {
        opacity: 0.2;
        transform: scale(0.96);
        pointer-events: none;
    }

    .memory-container.shuffling .memory-reset-btn i {
        animation: memory-spin 0.45s ease;
    }

    @keyframes memory-spin {
        from { transform: rotate(0); }
        to { transform: rotate(360deg); }
    }

    @media (max-width: 575px) {
        .memory-grid {
            grid-template-columns: repeat(3, 1fr);
            gap: 0.4rem;
        }
    }

    @media (max-width: 360px) {
        .memory-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    .memory-card {
        aspect-ratio: 1 / 1;
        perspective: 800px;
        cursor: pointer;
    }

    .memory-card-inner {
        position: relative;
        width: 100%;
        height: 100%;
        transition: transform 0.45s ease;
        transform-style: preserve-3d;
    }

    .memory-card.flipped .memory-card-inner {
        transform: rotateY(180deg);
    }

    .memory-card-front,
    .memory-card-back {
        position: absolute;
        inset: 0;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        border-radius: var(--border-radius-sm);
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .memory-card-front {
        background: var(--color-primary);
        color: #fff;
        font-size: 1.6rem;
        border: 2px solid var(--color-primary);
    }

    .memory-card-front i {
        opacity: 0.85;
    }

    .memory-card:hover:not(.flipped):not(.matched) .memory-card-front {
        background: #5d6970;
        border-color: #5d6970;
    }

    .memory-card-back {
        background: #fff;
        border: 2px solid #dee2e6;
        transform: rotateY(180deg);
        padding: 0.35rem;
    }

    .memory-card-back img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .memory-card.matched .memory-card-back {
        border-color: #2e8b57;
        background: #e6f4ec;
    }

    .memory-card.matched .memory-card-inner {
        animation: memory-match-pulse 0.55s ease;
    }

    @keyframes memory-match-pulse {
        0% { transform: rotateY(180deg) scale(1); }
        50% { transform: rotateY(180deg) scale(1.06); }
        100% { transform: rotateY(180deg) scale(1); }
    }