:root {
    --primary: #0B738F;
    --text: #3D3D3D;
    --bg-light: #F8F9FA;
    --accent1: #FF4080;
    --accent2: #FCEBB7;
    --white: #ffffff;

    /* Additional brand colors */
    --primary-light: #13b0db;
    --primary-dark: #0a6983;
    --accent1-light: #ff6ba3;
    --accent1-dark: #e6396b;
    --accent2-light: #fef4d4;
    --accent2-dark: #f0d88a;
    --case-bg: #fff3cd;
    --case-border: #ffc107;

    /* Badge Colors */
    --color-bg-badge: #FFD700;
    --color-bg-badge2: #FFA500;
    --color-bg-badge3: #FF6B6B;
    --color-bg-success: #4CAF50;
    --color-bg-warning: #FF9800;
    --color-bg-danger: #F44336;
    --color-bg-info: #45B7D1;
    --color-bg-neutral: #9E9E9E;
    --color-bg-download: rgba(102, 126, 234, 0.15);
    --color-bg-download-border: rgba(102, 126, 234, 0.3);
    --color-bg-badge-default: #E3F2FD;
    --color-bg-badge-light: #E8F5E8;
    --color-bg-badge-medium: #C8E6C9;
    --color-bg-badge-moderate: #FFE0B2;
    --color-bg-badge-high: #FFCDD2;
    --color-bg-badge-continuous: #E1BEE7;
    --color-bg-badge-integrated: #B3E5FC;
    --color-bg-badge-flexible: #F8BBD9;

    /* Spacing */
    --header-height: 80px;
    --progress-height: 4px;
    --container-max-width: 1200px;
    --border-radius: 12px;
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
    /* Neue Variable für schnelle Transitions */

    /* Box Shadows */
    --shadow-standard: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-standard-hover: 0 12px 40px rgba(0, 0, 0, 0.15);
    --shadow-header: 0 2px 20px rgba(0, 0, 0, 0.1);
    --shadow-submenu: 0 8px 30px rgba(0, 0, 0, 0.15);
    --shadow-mobile-menu: 2px 0 20px rgba(0, 0, 0, 0.1);
    --shadow-primary: 0 8px 25px rgba(33, 115, 115, 0.3);
    --shadow-primary-glow: 0 0 12px rgba(33, 115, 115, 0.4);
    --shadow-accent: 0 8px 25px rgba(255, 64, 128, 0.3);
    --shadow-accent-glow: 0 0 8px rgba(255, 64, 128, 0.3);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 20px);
    /* Header height + extra padding */
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg-light);
    padding-top: var(--header-height);
    overflow-x: hidden;
}

.hidden {
    display: none;
}

a {
    color: var(--primary);
}

a:hover {
    color: var(--accent1);
}

/* Mirrored Icons vertically */
.mirrored {
    transform: scaleY(-1);
}

.not-allowed {
    cursor: not-allowed !important;
}

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

/* Floating "Nach oben" Button */
.floating-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    box-shadow: var(--shadow-standard);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.floating-top-btn:hover {
    background: var(--accent1);
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.floating-top-btn:active {
    transform: translateY(0);
}

.floating-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-top-btn svg {
    width: 24px;
    height: 24px;
}

/* Contact Form Overlay */
.contact-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.contact-overlay-content {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-standard);
    animation: overlaySlideIn 0.3s ease-out;
}

.contact-overlay-icon {
    font-size: 64px;
    margin-bottom: 20px;
    color: var(--success);
}

.contact-overlay h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 28px;
}

.contact-overlay p {
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.6;
}

.contact-overlay .btn {
    margin-top: 20px;
}

@keyframes overlaySlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Form Loading State */
.contact-form button[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--progress-height);
    background: var(--primary);
    z-index: 1001;
    opacity: 1;
}

.reading-progress-bar {
    height: 100%;
    background: var(--accent1);
    width: 0%;
    transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===================================================
   HEADER & NAVIGATION - RESPONSIVE OPTIMIERT
   =================================================== */

.header {
    position: fixed;
    top: var(--progress-height);
    left: 0;
    right: 0;
    height: calc(var(--header-height) - var(--progress-height));
    background: var(--white);
    box-shadow: var(--shadow-header);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
    flex-shrink: 0;
    white-space: nowrap;
}

.logo:hover {
    color: var(--accent1);
}

.logo-image {
    height: calc(var(--header-height) - 20px);
    max-height: 60px;
    width: auto;
    display: block;
}

.logo-text {
    color: inherit;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 800;
    font-size: 18px;
}

.nav-menu {
    display: flex;
    gap: 15px;
    list-style: none;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-item {
    position: relative;
    flex-shrink: 0;
}

/* Enhanced Navigation Styles */
.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
    border: 1px solid transparent;
    white-space: nowrap;
    display: block;
}

/* Non-active nav links hover effects */
.nav-link:hover,
.nav-link:focus {
    color: var(--primary);
    background: var(--bg-light);
    outline: none;
    border: 1px solid var(--accent1);
    box-shadow: var(--shadow-accent-glow);
    /* Light glow in accent1 color */
}

/* Active nav link styles */
.nav-link.active {
    color: var(--primary);
    background: var(--accent1);
    font-weight: bold;
    border: 1px solid var(--primary);
    box-shadow: var(--shadow-primary-glow);
    /* Glow in primary color */
}

.featured-link {
    color: var(--primary);
    background: var(--bg-light);
    outline: none;
    border: 1px dashed var(--accent1);
    box-shadow: var(--shadow-accent-glow);
    /* Light glow in accent1 color */
}

/* Navigation link with icon only */
.nav-link-icon {
    color: var(--primary);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-link-icon i {
    font-size: 1.5rem;
    color: var(--primary);
}

.nav-link-icon:hover i,
.nav-link-icon:focus i {
    color: var(--primary);
    transform: scale(1.1);
}

/* Submenu */
.submenu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-submenu);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 100;
    list-style: none;
}

/* Geöffnete Submenus */
.nav-item.open .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu-item {
    list-style: none;
}

.submenu-link {
    display: block;
    padding: 12px 20px;
    color: var(--text);
    text-decoration: none;
    transition: var(--transition-fast);
    border-bottom: 1px solid var(--bg-light);
    font-weight: normal;
}

.submenu-link:hover,
.submenu-link:focus {
    background: var(--bg-light);
    color: var(--primary);
}

.submenu-item:last-child .submenu-link {
    border-bottom: none;
}

/* Border radius für erste und letzte Submenu-Links */
.submenu-item:first-child .submenu-link:hover {
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
}

.submenu-item:last-child .submenu-link:hover {
    border-bottom-left-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
}

/* Active state management */
.nav-item.active .nav-link {
    color: var(--white);
    background: var(--accent1);
    font-weight: bold;
    border: 1px solid var(--accent1);
    box-shadow: var(--shadow-accent);
}

.nav-item.active .submenu-link {
    color: var(--text);
    font-weight: normal;
    border: 1px solid transparent;
}

.nav-item.active .submenu-link:hover {
    color: var(--primary);
    border: 1px solid var(--accent1);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--primary);
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    transition: var(--transition);
    flex-shrink: 0;
    user-select: none;
}

.mobile-menu-toggle:hover {
    color: var(--accent1);
}

.mobile-menu-toggle:focus-visible {
    outline: 2px solid var(--accent1);
    outline-offset: 2px;
}

/* ===================================================
   RESPONSIVE BREAKPOINTS
   =================================================== */

/* Large Tablets & Small Desktops (1024px - 1200px) */
@media (max-width: 1200px) {
    .nav-menu {
        gap: 10px;
    }
    
    .nav-link {
        padding: 8px 10px;
        font-size: 14px;
    }
    
    .logo-text {
        font-size: 20px;
    }
}

/* Medium Screens - KRITISCHER BEREICH (900px - 1024px) */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 8px;
    }
    
    .nav-link {
        padding: 6px 8px;
        font-size: 13px;
    }
    
    /* Optional: Logo-Text ausblenden für mehr Platz */
    .logo-text {
        display: none;
    }
}

/* Tablet Portrait - MOBILE MODUS (< 900px) */
@media (max-width: 900px) {
    .mobile-menu-toggle {
        display: block;
        z-index: 1002;
    }
    
    .logo-text {
        display: inline;
        font-size: 20px;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 280px;
        max-width: 85vw;
        height: calc(100vh - var(--header-height));
        background: var(--white);
        box-shadow: var(--shadow-mobile-menu);
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
        overflow-y: auto;
        transition: right 0.3s ease-in-out;
        z-index: 999;
        align-items: stretch;
    }
    
    .nav-menu.open {
        right: 0;
    }
    
    .nav-item {
        border-bottom: 1px solid var(--bg-light);
    }
    
    .nav-link {
        padding: 15px 20px;
        font-size: 16px;
        width: 100%;
        white-space: normal;
    }
    
    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--bg-light);
        border-radius: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .nav-item.open .submenu {
        max-height: 500px;
    }
    
    .submenu-link {
        padding: 12px 20px 12px 40px;
        font-size: 14px;
    }
    
    /* Overlay beim geöffneten Menü */
    body::before {
        content: '';
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 998;
        pointer-events: none;
    }
    
    body.menu-open::before {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    
    body.menu-open {
        overflow: hidden;
    }
}

/* Small Mobile (< 480px) */
@media (max-width: 480px) {
    .nav-container {
        padding: 0 15px;
    }
    
    .logo {
        font-size: 18px;
        gap: 8px;
    }
    
    .logo-image {
        height: 45px;
    }
    
    .nav-menu {
        width: 100%;
        max-width: 100%;
    }
}

/* Accessibility */
.nav-link:focus-visible {
    outline: 2px solid var(--accent1);
    outline-offset: 2px;
}

/* Main Content */
.main {
    min-height: calc(100vh - var(--header-height));
    width: 100%;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 5px 60px;
    /* vorher 40px */
}


.hero {
    text-align: center;
    padding: 80px 0;
    background: radial-gradient(circle, var(--primary-light) 0%, var(--primary) 60%, var(--primary-dark) 100%);
    color: var(--white);
    border: 2px solid var(--primary-dark);
    max-width: min(var(--container-max-width), calc(100% - 20px));
    margin: 10px auto 40px auto;
}

@keyframes organic {
    0% {
        border-radius: 80% 20% 70% 30% / 30% 70% 20% 80%;
    }

    25% {
        border-radius: 60% 40% 90% 10% / 50% 50% 30% 70%;
    }

    50% {
        border-radius: 90% 10% 50% 50% / 20% 80% 60% 40%;
    }

    75% {
        border-radius: 70% 30% 80% 20% / 40% 60% 50% 50%;
    }

    100% {
        border-radius: 80% 20% 70% 30% / 30% 70% 20% 80%;
    }
}

/* ##### organic blob animation ##### */
/* .blob animiert nur den border-radius, behält alle anderen Styles des Elements */
.blob {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: blobMorph 20s ease-in-out infinite;
    will-change: border-radius;
}

.blob2 {
    /* Rechteckige Blob-Animation mit extremen border-radius Werten */
    border-radius: 5% 25% 10% 20% / 15% 5% 25% 10%;
    animation: blob2Morph 30s ease-in-out infinite;
    will-change: border-radius;
}

/* Unterschiedliche Startzeiten für unabhängige Bewegung der blob2 Elemente */
.blob2:nth-child(1) {
    animation-delay: 0s;
}

.blob2:nth-child(2) {
    animation-delay: 1.5s;
}

.blob2:nth-child(3) {
    animation-delay: 3s;
}

.blob2:nth-child(4) {
    animation-delay: 4.5s;
}

.blob2:nth-child(5) {
    animation-delay: 6s;
}

.blob2:nth-child(6) {
    animation-delay: 7.5s;
}

.blob2:nth-child(7) {
    animation-delay: 9s;
}

.blob2:nth-child(8) {
    animation-delay: 10.5s;
}

/* Fallback für weitere Elemente - wiederholt das Muster */
.blob2:nth-child(9) {
    animation-delay: 0s;
}

.blob2:nth-child(10) {
    animation-delay: 1.5s;
}

.blob2:nth-child(11) {
    animation-delay: 3s;
}

.blob2:nth-child(12) {
    animation-delay: 4.5s;
}

@keyframes blobMorph {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    25% {
        border-radius: 42% 58% 63% 37% / 37% 42% 58% 63%;
    }

    50% {
        border-radius: 55% 45% 60% 40% / 40% 60% 40% 60%;
    }

    75% {
        border-radius: 40% 60% 50% 50% / 55% 45% 55% 45%;
    }

    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

/* blob2Morph - rechteckige Form mit extremen border-radius Werten für organische Seitenverformung */
@keyframes blob2Morph {
    0% {
        border-radius: 5% 25% 10% 20% / 15% 5% 25% 10%;
    }

    12.5% {
        border-radius: 25% 5% 20% 10% / 5% 25% 10% 20%;
    }

    25% {
        border-radius: 5% 30% 5% 30% / 30% 5% 30% 5%;
    }

    37.5% {
        border-radius: 30% 5% 30% 5% / 5% 30% 5% 30%;
    }

    50% {
        border-radius: 15% 15% 25% 5% / 20% 10% 5% 25%;
    }

    62.5% {
        border-radius: 10% 20% 5% 25% / 25% 5% 20% 10%;
    }

    75% {
        border-radius: 5% 25% 15% 10% / 15% 5% 25% 15%;
    }

    87.5% {
        border-radius: 20% 10% 5% 30% / 10% 20% 15% 5%;
    }

    100% {
        border-radius: 5% 25% 10% 20% / 15% 5% 25% 10%;
    }
}

@keyframes blob2Pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}


.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section {
    margin: 60px 0;
    scroll-margin-top: calc(var(--header-height) + 10px);
}

/* Alternative: scroll-margin-top für spezifische Elemente */
[id] {
    scroll-margin-top: calc(var(--header-height) + 20px);
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 40px;
    text-align: center;
}

.section-subtitle {
    font-size: 20px;
    color: var(--text);
    margin-bottom: 30px;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-standard);
    transition: var(--transition);
    /* animation: cardRadius 14s ease-in-out infinite alternate;
    will-change: border-radius; */
    /* border: 1px solid transparent;
    border-left: 6px solid var(--primary); */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-standard-hover);
    /* border-color: var(--accent1); */
}

.card.active {
    transform: translateY(-5px);
    box-shadow: var(--shadow-standard-hover);
    border-color: var(--accent1);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    font-size: 24px;
    color: var(--primary);
}

.card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary);
}

/* Handlungsfelder Grid */
.handlungsfelder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.handlungsfeld-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-standard);
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.handlungsfeld-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-standard-hover);
    border-color: var(--accent1);
}

.handlungsfeld-card .handlungsfeld-icon {
    margin: 0 auto 20px auto;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.handlungsfeld-card .handlungsfeld-icon img {
    max-height: 100%;
    width: auto;
    display: block;
}

.handlungsfeld-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary);
    text-align: center;
}

.handlungsfeld-card p {
    color: var(--text);
    line-height: 1.6;
    margin: 0;
}

.card p {
    color: var(--text);
    margin-bottom: 20px;
}

.card-border {
    border: 1px solid var(--primary);
    border-left: 6px solid var(--primary);
}

.card-border:hover {
    border-color: var(--accent1);
}

@keyframes cardRadius {
    0% {
        border-radius: var(--border-radius);
    }

    50% {
        border-radius: calc(var(--border-radius) + 8px);
    }

    100% {
        border-radius: var(--border-radius);
    }
}


/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn:hover,
.btn:focus {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
    outline: none;
}

.btn-secondary {
    background: var(--accent1);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: var(--accent1-dark);
    box-shadow: var(--shadow-accent);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover,
.btn-outline:focus {
    background: var(--primary);
    color: var(--white);
}

/* Content Sections */
.content-section {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 40px;
    margin: 30px 0;
    box-shadow: var(--shadow-standard);
}

#quickNavContainer {
    padding: 20px;
}

.content-section h3 {
    color: var(--primary);
    margin: 25px 0 15px;
    font-size: 22px;
}

.content-section p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.content-section ul,
.content-section ol {
    margin: 15px 0;
    padding-left: 20px;
}

.content-section li {
    margin-bottom: 8px;
}

/* Footer */
.footer {
    background: var(--primary);
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: 80px;
}

.footer-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--accent2);
}

.footer-link-special {
    color: var(--white);
    font-weight: bold;
    text-decoration: underline;
    transition: var(--transition);
}

.footer-link-special:hover {
    color: var(--accent1);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    opacity: 0.8;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles */
*:focus {
    outline: 2px solid var(--accent1);
    outline-offset: 2px;
}

/* Skip to main content */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--text);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    border-radius: var(--border-radius);
    z-index: 1002;
    transition: var(--transition);
}

.skip-link:focus {
    top: 6px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    .section-title {
        font-size: 28px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 20px;
    }

    .content-section {
        padding: 20px;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }

    /* Mobile table styles */
    .table-wrapper {
        margin: 15px -20px;
        padding: 0 20px;
    }

    .continuum-table {
        font-size: 14px;
    }

    .continuum-table th,
    .continuum-table td {
        padding: 10px 8px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .section-title {
        font-size: 24px;
    }

    .nav-container {
        padding: 0 15px;
    }
}

/* Print styles */
@media print {

    .header,
    .footer,
    .reading-progress {
        display: none;
    }

    body {
        padding-top: 0;
    }
}

/* Visueller Indikator für klickbare Nav-Links mit Submenu */
.nav-item:has(.submenu) .nav-link {
    position: relative;
    padding-right: 24px;
    /* Platz für Pfeil */
}

.nav-item:has(.submenu) .nav-link::after {
    content: '▼';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    transition: var(--transition-fast);
    opacity: 0.6;
}

.nav-item.open .nav-link::after {
    transform: translateY(-50%) rotate(180deg);
    opacity: 1;
}

/* Fallback für Browser ohne :has() Support */
.nav-item[data-has-submenu="true"] .nav-link {
    position: relative;
    padding-right: 24px;
}

.nav-item[data-has-submenu="true"] .nav-link::after {
    content: '▼';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    transition: var(--transition-fast);
    opacity: 0.6;
}

.nav-item.open[data-has-submenu="true"] .nav-link::after {
    transform: translateY(-50%) rotate(180deg);
    opacity: 1;
}





/* ### Slot Machine ### */

.sm_wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-light);
    /* min-height: 100vh; */
    display: flex;
    justify-content: center;
    align-items: center;
    color: #3d3d3d;
    padding: 20px;
    overflow-x: hidden;
}

.sm_slot-machine {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border: 3px solid var(--primary);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow:
        0 10px 30px rgba(33, 115, 115, 0.15),
        inset 0 1px 3px rgba(255, 255, 255, 0.8);
    width: min(100%, 780px);
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.sm_slot-machine::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary), var(--accent1), var(--primary));
    border-radius: 22px;
    z-index: -1;
    animation: borderGlow 3s ease-in-out infinite alternate;
    opacity: 0.3;
}

@keyframes borderGlow {
    0% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

.sm_title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary);
    text-shadow: 0 2px 8px rgba(33, 115, 115, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.sm_mode-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
    justify-content: center;
}

.sm_mode-btn {
    padding: 8px 14px;
    border: 2px solid var(--primary);
    background: rgba(255, 255, 255, 0.8);
    color: var(--primary);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    backdrop-filter: blur(5px);
}

.sm_mode-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(33, 115, 115, 0.3);
    transform: scale(1.05);
}

.sm_mode-btn:hover {
    background: var(--accent1);
    border-color: var(--accent1);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 64, 128, 0.3);
}

/* 3D Wheel */
.sm_machine-layout {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: clamp(20px, 4vw, 40px);
    margin: 30px 0;
}

.sm_slot-display {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
}

.sm_slot-viewport {
    width: 480px;
    max-width: 760px;
    height: 300px;
    /* height: clamp(220px, 48vw, 360px); */
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.85));
    border: 3px solid var(--accent1);
    border-radius: 20px;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.6),
        0 20px 40px rgba(33, 115, 115, 0.18);
    overflow: hidden;
    position: relative;
    perspective: 900px;
    margin: 0 auto;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.sm_slot-viewport::before,
.sm_slot-viewport::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 70px;
    pointer-events: none;
    z-index: 4;
}

.sm_slot-viewport::before {
    top: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
}

.sm_slot-viewport::after {
    bottom: 0;
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
}

.sm_slot-viewport.spinning {
    transform: translateY(-3px);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.6),
        0 28px 55px rgba(33, 115, 115, 0.28);
}

/* .sm_center-mark {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 2px dashed rgba(33, 115, 115, 0.5);
    z-index: 5;
    filter: drop-shadow(0 0 8px rgba(33, 115, 115, 0.4));
}

.sm_center-label {
    position: absolute;
    top: calc(50% + 12px);
    right: 20px;
    transform: translateY(-50%);
    font-size: 12px;
    color: rgba(33, 115, 115, 0.8);
    z-index: 5;
    text-transform: uppercase;
    letter-spacing: 1px;
} */

.sm_stage {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    display: grid;
    place-items: center;
}

.sm_wheel {
    position: absolute;
    transform-style: preserve-3d;
    will-change: transform;
}

.sm_slice {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: absolute;
    left: 50%;
    top: 50%;
    transform-style: preserve-3d;
    padding: 6px 18px;
    min-height: 70px;
    line-height: 1.2;
    white-space: normal;
    /* max-width: clamp(220px,75vw,520px); */
    width: 370px;
    color: rgba(16, 19, 32, 0.85);
    font-weight: 600;
    letter-spacing: 0.3px;
    backface-visibility: hidden;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 2px 12px rgba(33, 115, 115, 0.15);
    text-align: center;
    font-size: 16px;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.sm_slice.icon-mode {
    font-size: 34px;
}

.sm_slice.is-front {
    color: #102023;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 244, 248, 0.9));
    box-shadow:
        0 8px 24px rgba(33, 115, 115, 0.25),
        0 0 0 1.5px rgba(255, 64, 128, 1) inset;
    /* border: 1px solid var(--accent1); */
}

.sm_current {
    text-align: center;
    font-size: 15px;
    color: rgba(16, 16, 16, 0.7);
}

.sm_current strong {
    display: inline-block;
    margin-left: 6px;
    color: var(--accent1);
    font-size: 18px;
}

.sm_pull-lever {
    flex: 0 0 clamp(160px, 22vw, 220px);
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    align-self: stretch;
}

.sm_lever-button {
    width: 100%;
    max-width: 220px;
    /* aspect-ratio: 3 / 4; */
    height: 300px;
    border: 3px solid var(--primary);
    border-radius: 20px;
    padding: 24px 18px;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0)) no-repeat, linear-gradient(145deg, var(--primary), var(--primary-light));
    color: #fff;
    box-shadow:
        0 18px 35px rgba(33, 115, 115, 0.3),
        inset 0 3px 14px rgba(255, 255, 255, 0.35);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        animation: blobMorph 20s ease-in-out infinite;
        will-change: border-radius, transform;
}

.sm_lever-button .sm_lever-badge {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    text-transform: none;
    letter-spacing: 0.5px;
}

.sm_lever-button .sm_lever-emoji {
    font-size: clamp(36px, 6vw, 48px);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
}

.sm_lever-button .sm_lever-text {
    font-size: 28px;
}

.sm_lever-feedback {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 10px 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--accent1);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.25),
        0 0 0 2px rgba(255, 64, 128, 0.3);
    opacity: 0;
    pointer-events: none;
    z-index: 10;
    white-space: nowrap;
    transition:
        opacity 0.25s ease,
        transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sm_lever-feedback.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.sm_lever-feedback.turbo {
    background: linear-gradient(135deg, #ff4080, #ff6ba0);
    color: #fff;
    box-shadow:
        0 12px 32px rgba(255, 64, 128, 0.4),
        0 0 0 3px rgba(255, 255, 255, 0.5);
}




/* Milestone Pop-ups */
.sm_milestone-popup {
    /* position: fixed wird jetzt per JS gesetzt */
    font-weight: 600;
    text-align: center;
    /* padding: 20px 30px;
    border-radius: 16px; */
    color: #fff;
    /* box-shadow:
        0 16px 40px rgba(76, 175, 80, 0.5),
        0 0 0 4px rgba(255, 255, 255, 0.6); */
    opacity: 0;
    pointer-events: none;
    z-index: 10000;
    white-space: normal;
    word-wrap: break-word;
    max-width: 90%;
    transition:
        opacity 0.4s ease,
        transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    line-height: 1.4;
}

.sm_milestone-popup.show {
    opacity: 1;
}

/* Small size - für Spin-States (gentle, medium, turbo) */
.sm_milestone-popup.sm_milestone-small {
    font-size: 12px;
    padding: 6px 12px;
    border: 1px solid var(--primary);
    border-radius: 12px;
    background: transparent;
    color: var(--text);
    /* box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.25),
        0 0 0 2px rgba(255, 64, 128, 0.3); */
}

.sm_milestone-popup.sm_milestone-small.turbo {
    background: linear-gradient(135deg, #ff4080, #ff6ba0);
    color: #fff;
    box-shadow:
        0 12px 32px rgba(255, 64, 128, 0.4),
        0 0 0 3px rgba(255, 255, 255, 0.5);
}

/* Medium size - für 20 Clicks (etwas größer als gentle/medium/turbo) */
.sm_milestone-popup.sm_milestone-medium {
    font-size: 20px;
    padding: 24px 36px;
    border-radius: 18px;
    box-shadow:
        0 20px 48px rgba(76, 175, 80, 0.6),
        0 0 0 5px rgba(255, 255, 255, 0.7);
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

/* Large size - für 50 Clicks (noch größer) */
.sm_milestone-popup.sm_milestone-large {
    font-size: 28px;
    padding: 32px 48px;
    border-radius: 20px;
    box-shadow:
        0 24px 56px rgba(255, 152, 0, 0.7),
        0 0 0 6px rgba(255, 255, 255, 0.8);
    background: linear-gradient(135deg, #FF9800, #F57C00);
}

/* XLarge size - für 100 Clicks (so groß wie der Spin-Button) */
.sm_milestone-popup.sm_milestone-xlarge {
    font-size: 32px;
    padding: 40px 60px;
    border-radius: 24px;
    max-width: 300px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 32px 64px rgba(156, 39, 176, 0.8),
        0 0 0 8px rgba(255, 255, 255, 0.9);
    background: linear-gradient(135deg, #9C27B0, #7B1FA2);
    line-height: 1.5;
}

.sm_milestone-popup.sm_milestone-xlarge.show {
    box-shadow:
        0 32px 64px rgba(156, 39, 176, 0.9),
        0 0 0 8px rgba(255, 255, 255, 1);
}

.sm_lever-button:is(:hover, :focus-visible) {
    transform: translateY(-6px) scale(1.02);
    box-shadow:
        0 26px 45px rgba(255, 64, 128, 0.45),
        inset 0 3px 14px rgba(255, 255, 255, 0.45);
}

.sm_lever-button:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.7);
    outline-offset: 4px;
}

.sm_lever-button.is-pressed {
    transform: translateY(3px) scale(0.98);
    box-shadow:
        0 8px 18px rgba(255, 64, 128, 0.3),
        inset 0 3px 14px rgba(255, 255, 255, 0.35);
}

.sm_spin-btn {
    background: transparent;
    border: 2px dashed var(--primary);
    color: var(--primary);
    padding: 8px 18px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.sm_spin-btn:hover {
    background: var(--primary);
    color: #fff;
    border-style: solid;
    box-shadow: 0 8px 20px rgba(33, 115, 115, 0.35);
}

.sm_hint {
    font-size: 12px;
    color: rgba(16, 16, 16, 0.5);
}

.sm_slot-viewport .sm_jackpot-effect {
    border-radius: inherit;
}

.sm_jackpot-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0;
    animation: jackpotGlow 0.5s ease-in-out;
}

@keyframes jackpotGlow {

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

.sm_stats {
    margin-top: 30px;
    padding: 20px;
    background: rgba(33, 115, 115, 0.05);
    border: 1px solid rgba(33, 115, 115, 0.15);
    border-radius: 12px;
    font-size: 14px;
    color: #3d3d3d;
    backdrop-filter: blur(5px);
}

.sm_stats-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.sm_stats-value {
    color: var(--accent1);
    font-weight: 600;
}

.sm_reset-btn {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.sm_reset-btn:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(33, 115, 115, 0.4);
}

.sm_haptic-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 8px;
    height: 8px;
    background: #00ff00;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sm_haptic-indicator.active {
    opacity: 1;
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

@media (max-width: 900px) {
    .sm_machine-layout {
        flex-direction: column;
        align-items: center;
    }

    .sm_slot-viewport {
        height: clamp(200px, 60vw, 260px);
        width: 80vw;
    }

    .sm_slice {
        font-size: 15px;
        width: 60vw;
    }

    .sm_pull-lever {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        margin-top: 10px;
    }

    .sm_lever-button {
        max-width: 60%;
        height: 200px;
        min-height: 100px;
    }
}

@media (max-width: 480px) {
    .sm_slot-machine {
        padding: 30px 20px;
        margin: 10px;
    }

    .sm_title {
        font-size: 24px;
    }

    .sm_slot-viewport {
        height: clamp(200px, 60vw, 260px);
        width: 80vw;
    }

    .sm_slice {
        font-size: 14px;
        width: 60vw;
    }

    .sm_slice.icon-mode {
        font-size: 28px;
    }

    .sm_pull-lever {
        width: 100%;
        max-width: 100%;
    }

    .sm_lever-button {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 4 / 1;
        height: auto;
        min-height: 140px;
        padding: 16px 20px;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 10px;
    }

    .sm_lever-button .sm_lever-emoji {
        font-size: 32px;
    }

    .sm_lever-button .sm_lever-text {
        font-size: 24px;
    }

    /* Mobile Milestone Pop-ups */
    .sm_milestone-popup {
        max-width: 95%;
        padding: 16px 24px;
    }

    .sm_milestone-popup.sm_milestone-medium {
        font-size: 16px;
        padding: 18px 24px;
    }

    .sm_milestone-popup.sm_milestone-large {
        font-size: 20px;
        padding: 24px 32px;
    }

    .sm_milestone-popup.sm_milestone-xlarge {
        font-size: 22px;
        padding: 30px 40px;
        min-height: auto;
        max-height: 75vh;
    }
}




/* Zusätzliche Styles für Handlungsfelder-optimierte Darstellung */
.handlungsfeld-nav {
    position: sticky;
    top: calc(var(--header-height) + 10px);
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 20px;
    margin: 30px 0;
    box-shadow: var(--shadow-standard);
    z-index: 50;
}

.handlungsfeld-nav h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 18px;
    text-align: center;
}

.nav-pills {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-pill {
    padding: 8px 16px;
    background: var(--bg-light);
    color: var(--text);
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid transparent;
}

.nav-pill:hover,
.nav-pill.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.handlungsfeld-section {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 40px;
    margin: 40px 0;
    box-shadow: var(--shadow-standard);
    border-left: 6px solid var(--primary);
    border-top: 1px solid var(--primary);
    border-right: 1px solid var(--primary);
    border-bottom: 1px solid var(--primary);
}

.handlungsfeld-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--bg-light);
}

.handlungsfeld-icon {
    font-size: 48px;
    line-height: 1;
}

.handlungsfeld-header .handlungsfeld-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    flex-shrink: 0;
}

.handlungsfeld-header .handlungsfeld-icon img {
    max-height: 100%;
    width: auto;
    display: block;
}

.handlungsfeld-title {
    color: var(--primary);
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.handlungsfeld-subtitle {
    color: var(--text);
    font-size: 18px;
    font-style: italic;
    margin: 5px 0 0;
}




/********************************************/
/* Spezifisch für Handlungsfelder-Sektionen */
/********************************************/
.handlungsfeld-section h3 {
    margin-bottom: 25px;
}

.handlungsfeld-section h4,
.mindset-section h4 {
    color: var(--primary)
}

.handlungsfeld-section ul,
.mindset-section ul {
    padding-left: 20px;
    margin-left: 0;
    margin-bottom: 20px;
}

.handlungsfeld-section p,
.mindset-section p {
    margin-bottom: 20px;
}

.accordion-section {
    margin: 25px 0;
}

.accordion-header {
    background: var(--bg-light);
    padding: 15px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    border: 1px solid rgba(33, 115, 115, 0.1);
}

.accordion-header:hover {
    background: rgba(33, 115, 115, 0.05);
    border-color: var(--primary);
}

.accordion-header h4 {
    color: var(--primary);
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.accordion-toggle {
    color: var(--primary);
    font-size: 18px;
    transition: transform 0.3s ease;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.3s ease;
    padding: 0 20px;
}

.accordion-content.active {
    max-height: 2000px;
    padding: 20px;
}

/* Highlight Boxen für besondere Inhalte */
.highlight-box {
    background: linear-gradient(135deg, rgba(255, 64, 128, 0.05), rgba(255, 64, 128, 0.02));
    border: 1px solid rgba(255, 64, 128, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.highlight-box ol {
    padding-left: 1em;
}

.highlight-box h4 {
    color: var(--accent1);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.highlight-box h5,
.highlight-box2 h5 {
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 600;
}

.highlight-box p {
    margin: 0;
    color: var(--text-primary);
    line-height: 1.6;
}

.highlight-box2 {
    /* background: linear-gradient(135deg, rgba(255, 64, 128, 0.05), rgba(255, 64, 128, 0.02)); */
    border: 1px solid var(--primary);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.highlight-box2 h4 {
    color: var(--accent1);
    margin-top: 0;
    font-size: 1.1rem;
}

/* ===== TEAM STYLES ===== */
.team-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent1);
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.team-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent1), var(--accent1-dark));
    color: var(--white);
    font-size: 3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.team-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
    text-align: center;
}

.team-role {
    font-weight: 600;
    color: var(--primary);
    text-align: center;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.team-social {
    text-align: center;
    margin-top: auto;
}

.social-link {
    color: var(--accent1);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.social-link:hover {
    color: var(--accent1-dark);
    text-decoration: underline;
}

/* Team Card spezifische Anpassungen */
.card-grid .card {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
}

.card-grid .card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .team-photo {
        width: 100px;
        height: 100px;
        margin-bottom: 1rem;
    }

    .team-placeholder {
        font-size: 2.5rem;
    }

    .card-grid .card {
        padding: 1.5rem 1rem;
    }
}




.method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.method-card {
    background: var(--white);
    border: 1px solid var(--bg-light);
    border-radius: var(--border-radius);
    padding: 20px;
    transition: var(--transition);
}

.method-card:hover {
    box-shadow: var(--shadow-standard);
    border-color: var(--primary);
}

.method-card h6 {
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 600;
}

.stats-highlight {
    background: var(--accent2);
    color: var(--text);
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9em;
}

.info-box {
    background: linear-gradient(135deg, var(--bg-light), rgba(33, 115, 115, 0.05));
    border-radius: var(--border-radius);
    padding: 30px;
    margin: 30px 0;
    border: 1px solid rgba(33, 115, 115, 0.1);
}

.info-box h3 {
    color: var(--primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-box ul {
    padding-left: 20px;
}

@media (max-width: 768px) {
    .handlungsfeld-section {
        padding: 25px 20px;
    }

    .handlungsfeld-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .handlungsfeld-icon {
        font-size: 36px;
    }

    .handlungsfeld-title {
        font-size: 24px;
    }

    .nav-pills {
        gap: 8px;
    }

    .nav-pill {
        font-size: 12px;
        padding: 6px 12px;
    }

    .method-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== FORM STYLES ===== */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    background-color: #ffffff;
    color: #374151;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #9ca3af;
    opacity: 1;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent1);
    box-shadow: 0 0 0 3px rgba(255, 64, 128, 0.1);
    background-color: #ffffff;
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
    border-color: #9ca3af;
}

.form-input:invalid:not(:focus):not(:placeholder-shown),
.form-select:invalid:not(:focus),
.form-textarea:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #e74c3c;
    background-color: #fef2f2;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.2em 1.2em;
    padding-right: 2.2rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.form-select::-ms-expand {
    display: none;
}

.form-checkbox-group {
    margin-bottom: 1.25rem;
}

.form-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.4;
}

.form-checkbox {
    width: 1.1rem;
    height: 1.1rem;
    margin: 0;
    cursor: pointer;
    accent-color: var(--accent1);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.form-checkbox-text {
    color: var(--text-primary);
}

.form-link {
    color: var(--accent1);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.form-link:hover {
    color: var(--accent1-dark);
    text-decoration-thickness: 2px;
}

.form-help {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.2rem;
    line-height: 1.3;
}

.form-error {
    font-size: 0.75rem;
    color: #e74c3c;
    margin-top: 0.2rem;
    line-height: 1.3;
    display: none;
}

.form-error.show {
    display: block;
}

.form-actions {
    text-align: center;
    margin-top: 1.5rem;
}





/******************************/
/* ===== MINDSET STYLES ===== */
/******************************/
.mindset-nav {
    position: sticky;
    top: calc(var(--header-height) + 10px);
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 20px;
    margin: 30px 0;
    box-shadow: var(--shadow-standard);
    z-index: 50;
}

.mindset-nav h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 18px;
    text-align: center;
}

.mindset-section {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 40px;
    margin: 40px 0;
    box-shadow: var(--shadow-standard);
    border-left: 6px solid var(--primary);
    border-top: 1px solid var(--primary);
    border-right: 1px solid var(--primary);
    border-bottom: 1px solid var(--primary);
}

.mindset-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--bg-light);
}

.mindset-title {
    color: var(--primary);
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.mindset-subtitle {
    color: var(--text);
    font-size: 18px;
    font-style: italic;
    margin: 5px 0 0;
}

.case-study {
    background-color: var(--case-bg);
    /* border-left: 4px solid #ffc107; */
    border: 1px solid var(--case-border);
    border-radius: var(--border-radius);
    padding: 15px;
    margin: 20px 0;
}

.case-study ul {
    padding-left: 20px
}

.case-study h3 {
    margin-top: 0;
}

.praxis-box {
    background: var(--bg-light);
    border: 2px solid var(--color-bg-success);
    border-radius: var(--border-radius);
    padding: 20px;
    margin: 20px 0;
}

.praxis-box h5 {
    color: var(--text);
    margin-bottom: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.continuum-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-standard);
}

.continuum-table th {
    background: var(--primary);
    color: var(--white);
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.continuum-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--bg-light);
    vertical-align: top;
}

.continuum-table tr:last-child td {
    border-bottom: none;
}

/* Table wrapper for responsive horizontal scrolling */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0;
}

.table-wrapper table {
    min-width: 100%;
}

.learner-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.learner-type-card {
    background: var(--white);
    border: 1px solid var(--primary);
    border-radius: var(--border-radius);
    padding: 20px;
    transition: var(--transition);
    border-left: 4px solid var(--primary);
}

.learner-type-card:hover {
    box-shadow: var(--shadow-standard);
    border-color: var(--accent1);
}

.learner-type-card h6 {
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 600;
}

/* Spezifische Styles für Mindset-Sektionen */
.mindset-section h3 {
    margin-bottom: 25px;
}


@media (max-width: 768px) {
    .mindset-section {
        padding: 25px 20px;
    }

    .mindset-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .mindset-title {
        font-size: 24px;
    }

    .learner-types-grid {
        grid-template-columns: 1fr;
    }
}

/* Helper Class to indicate words, that need revision */
.fachbegriff {
    background-color: rgb(255, 0, 230);
}





/* =========================================
   Glossar: Zusatz-Styles
   (Ab hier spezielle Klassen nur für Glossar & Tooltips)
   ========================================= */

:root {
    /* Optionale Glossar-spezifische Variablen */
    --glossary-accent: var(--accent1);
    --glossary-tooltip-bg: #ffffff;
    --glossary-tooltip-text: var(--text);
    --glossary-tooltip-shadow: var(--shadow-standard);
}

/* Inline-Hervorhebung der Glossarbegriffe im Fließtext */
.glossary-term {
    border-bottom: 2px dotted var(--primary);
    cursor: help;
    position: relative;
    color: inherit;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.glossary-term:hover,
.glossary-term:focus-visible {
    color: var(--accent1);
    border-color: var(--primary);
}

/* Zentrales Tooltip-Overlay für Glossarbegriffe */
.glossary-tooltip {
    position: absolute;
    max-width: 320px;
    background: var(--glossary-tooltip-bg);
    color: var(--glossary-tooltip-text);
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.5;
    box-shadow: var(--glossary-tooltip-shadow);
    z-index: 9999;
    pointer-events: none;
    transform: translateY(-8px);
    opacity: 0;
    transition: opacity 0.15s ease-out, transform 0.15s ease-out;
    border: 1px solid var(--primary);
    /* border: 1px solid rgba(0, 0, 0, 0.06); */
}

.glossary-tooltip--visible {
    opacity: 1;
}

.glossary-tooltip__term {
    font-weight: 700;
    margin-bottom: 0.2rem;
    display: block;
    color: var(--primary);
}

.glossary-tooltip__alias {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-bottom: 0.35rem;
}

.glossary-tooltip__section-title {
    font-weight: 600;
    margin-top: 0.4rem;
    margin-bottom: 0.1rem;
    font-size: 0.8rem;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.glossary-tooltip__text {
    margin: 0;
}

/* Pfeil unter dem Tooltip */
.glossary-tooltip::after {
    content: none;
}

/* Fokus-Styling für Tastatur-User (basiert auf globalem Fokus-Styling) */
.glossary-term:focus-visible {
    outline: 2px solid var(--accent1);
    outline-offset: 2px;
}

/* Glossarseite – Übersicht */
.glossary-page-header {
    margin-bottom: 1.5rem;
}

.glossary-page-header p {
    margin-bottom: 0;
}

.glossary-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 1.5rem;
}

.glossary-entry-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 20px 24px;
    box-shadow: var(--shadow-accent);
    border: 1px solid var(--bg-light);
    transition: var(--transition);
}

.glossary-entry-card:hover {
    box-shadow: var(--shadow-accent);
    border-color: var(--primary);
}

.glossary-entry-term {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--primary);
    margin-bottom: 0.15rem;
}

.glossary-entry-alias {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 0.4rem;
}

.glossary-entry-definition {
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
}

.glossary-entry-example {
    font-size: 0.85rem;
    margin-top: 0.1rem;
    color: var(--text);
}

.glossary-entry-extra {
    font-size: 0.85rem;
    margin-top: 0.25rem;
    font-style: italic;
    color: var(--text);
}

@media (max-width: 768px) {
    .glossary-entry-card {
        padding: 16px 18px;
    }
}





/* =========================================
   MINDSET BUBBLES - Floating draggable sentences
   ========================================= */

.mindset-bubble {
    position: fixed;
    max-width: 280px;
    padding: 20px;
    border-radius: 14px;
    background: var(--white);
    border: 1px solid var(--primary);
    box-shadow: var(--shadow-standard);
    color: var(--text);
    font-size: 0.95rem;
    font-style: italic;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(12px);
    display: flex;
    gap: 8px;
    align-items: flex-start;
    z-index: 9999;
    transition: opacity 0.8s ease, transform 0.8s ease;
    touch-action: none;
    pointer-events: auto;
    backdrop-filter: blur(8px);
    cursor: grab;
}

.mindset-bubble.visible {
    opacity: 1;
    transform: translateY(0);
    animation: mindset-float-up linear forwards;
    animation-duration: var(--mindset-float-duration, 7s);
}

.mindset-bubble.dragging {
    animation: none !important;
    transition: opacity 0.2s ease;
    transform: translateY(0) !important;
    cursor: grabbing;
}

@keyframes mindset-float-up {
    0% { transform: translateY(0); }
    100% { transform: translateY(-40px); }
}

.mindset-bubble.fade-out {
    opacity: 0;
}

/* Reduce Motion */
@media (prefers-reduced-motion: reduce) {
    .mindset-bubble.visible {
        animation: none;
        transform: translateY(0);
    }
}

.mindset-bubble-close {
    position: absolute;
    top: -9px;
    left: -9px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 1px solid var(--primary);
    background: var(--white);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition-fast);
    z-index: 1;
}

.mindset-bubble-close:focus-visible {
    outline: 2px solid var(--accent1);
    outline-offset: 2px;
}

.mindset-bubble-close:hover {
    color: var(--white);
    /* border: 1px solid var(--white); */
    transform: scale(1.2);
    background: var(--accent1);
    box-shadow: var(--shadow-accent-glow);
}

.mindset-bubble-text {
    margin: 0;
    text-align: left;
    color: var(--text);
}

/* Toggle-Button links unten */
.mindset-bubbles-toggle {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 56px;
    height: 56px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    box-shadow: var(--shadow-standard);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 1000;
    font-size: 24px;
}

.mindset-bubbles-toggle i {
    animation: rotate-cog 20s linear infinite;
}

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

.mindset-bubbles-toggle:hover {
    background: var(--accent1);
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.mindset-bubbles-toggle:active {
    transform: translateY(0);
}

.mindset-bubbles-toggle.disabled {
    opacity: 0.5;
    background: var(--color-bg-neutral);
}

.mindset-bubbles-toggle.disabled:hover {
    background: var(--color-bg-neutral);
    transform: none;
}

/* Control Panel Modal */
.mindset-bubbles-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5000;
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mindset-bubbles-panel-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mindset-bubbles-panel {
    background: var(--white);
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    box-shadow: var(--shadow-standard);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.mindset-bubbles-panel-content {
    padding: 32px;
    overflow-y: auto;
    overflow-x: visible;
    max-height: 90vh;
}

.mindset-bubbles-panel-overlay.active .mindset-bubbles-panel {
    transform: scale(1) translateY(0);
}

.mindset-bubbles-panel-close {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--primary);
    background: var(--white);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 1010;
    padding: 0;
    line-height: 1;
    /* box-shadow: var(--shadow-standard); */
}

.mindset-bubbles-panel-close:focus-visible {
    outline: 2px solid var(--accent1);
    outline-offset: 2px;
}

.mindset-bubbles-panel-close:hover {
    color: var(--white);
    background: var(--accent1);
    border-color: var(--accent1);
    transform: scale(1.1);
    box-shadow: var(--shadow-accent-glow);
}

.mindset-bubbles-panel-header {
    margin-bottom: 24px;
    text-align: center;
}

.mindset-bubbles-panel-header h3 {
    color: var(--primary);
    font-size: 1.5em;
    margin: 0;
}

.mindset-bubbles-panel-controls {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mindset-bubbles-control {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mindset-bubbles-control label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    color: var(--text);
    font-size: 0.95em;
}

.mindset-bubbles-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
    font-size: 0.9em;
}

.mindset-bubbles-input-row {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 20px;
    padding: 10px 16px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 999px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
}

.mindset-bubbles-slider {
    width: 100%;
    accent-color: var(--accent1);
    cursor: pointer;
    appearance: none;
    background: transparent;
    height: 6px;
    border-radius: 999px;
    outline: none;
    transition: box-shadow 0.2s ease, opacity 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: pan-x;
}

.mindset-bubbles-slider:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

.mindset-bubbles-slider::-webkit-slider-thumb {
    appearance: none;
    width: 32px;
    height: 32px;
    margin-top: -13px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--accent1);
    box-shadow: 0 4px 12px rgba(20, 20, 43, 0.15);
    cursor: grab;
    transition: transform 0.1s ease, box-shadow 0.2s ease;
}

.mindset-bubbles-slider::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(20, 20, 43, 0.25);
}

.mindset-bubbles-slider::-moz-range-thumb {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--accent1);
    box-shadow: 0 4px 12px rgba(20, 20, 43, 0.15);
    cursor: grab;
    transition: transform 0.1s ease, box-shadow 0.2s ease;
}

.mindset-bubbles-slider::-moz-range-thumb:active {
    cursor: grabbing;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(20, 20, 43, 0.25);
}

.mindset-bubbles-slider::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 999px;
}

.mindset-bubbles-slider::-moz-range-track {
    height: 6px;
    border-radius: 999px;
    background: transparent;
}

.mindset-bubbles-scale {
    display: flex;
    justify-content: space-between;
    font-size: 0.8em;
    color: var(--text-light);
    margin-top: 4px;
    letter-spacing: 0.02em;
}

/* Toggle Switch */
.mindset-bubbles-toggle-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.mindset-bubbles-switch {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 28px;
    cursor: pointer;
}

.mindset-bubbles-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.mindset-bubbles-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-bg-neutral);
    transition: var(--transition);
    border-radius: 28px;
}

.mindset-bubbles-switch-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: var(--white);
    transition: var(--transition);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.mindset-bubbles-switch input:checked + .mindset-bubbles-switch-slider {
    background-color: var(--primary);
}

.mindset-bubbles-switch input:checked + .mindset-bubbles-switch-slider:before {
    transform: translateX(28px);
}

.mindset-bubbles-switch:hover .mindset-bubbles-switch-slider {
    box-shadow: 0 0 0 2px rgba(11, 115, 143, 0.2);
}

@media (max-width: 768px) {
    .mindset-bubbles-toggle {
        bottom: 30px;
        left: 30px;
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    
    .mindset-bubble {
        max-width: 240px;
        font-size: 0.9rem;
    }
    
    .mindset-bubbles-panel {
        padding: 24px;
        max-width: 95%;
    }
    
    .mindset-bubbles-panel-header h3 {
        font-size: 1.3em;
    }
}




/* === SelbstCHECK Cards === */
.selfcheck-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
    margin-top: 2rem;
}

.selfcheck-card {
    background: var(--white);
    border: 2px solid var(--primary);
    border-radius: var(--border-radius);
    padding: 1.2rem 1.4rem;
    box-shadow: var(--shadow-standard);
    cursor: pointer;
    transition: var(--transition);
}

.selfcheck-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-standard-hover);
    border: 2px solid var(--accent1);
}

.selfcheck-card.active {
    transform: translateY(-4px);
    box-shadow: var(--shadow-accent);
    border: 2px solid var(--accent1);
}

.sc-line {
    margin: 0.4rem 0;
    line-height: 1.5;
    color: var(--text);
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.sc-line .sc-icon {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 0.2em;
}

.sc-line:first-child {
    margin-top: 0;
}

.sc-line:last-child {
    margin-bottom: 0;
}

.selfcheck-result {
    margin-top: 2rem;
    text-align: center;
}

.selfcheck-thanks-message {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text);
}

.selfcheck-thanks-message i {
    font-size: 1.2rem;
    color: var(--primary);
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(11, 115, 143, 0.1);
    border: 2px solid var(--primary);
    margin-right: 10px;
    vertical-align: middle;
}

.selfcheck-selection-label {
    background: var(--accent1);
    color: var(--white);
    padding: 16px 20px;
    border-radius: var(--border-radius);
    font-size: 1.1em;
    font-weight: 600;
    margin: 0 0 1rem 0;
    box-shadow: var(--shadow-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.selfcheck-selection-label span {
    font-weight: 700;
}

.selfcheck-lh-text {
    margin-top: 0.5rem;
    padding: 16px 20px;
    border: 2px solid var(--primary);
    border-radius: var(--border-radius);
    background:
        radial-gradient(circle at 0 0,
            rgba(76, 175, 80, 0.2),
            transparent 55%),
        rgba(233, 249, 235, 0.9);
    color: var(--text);
    font-size: 1rem;
    line-height: 1.6;
}

.selfcheck-lh-text i {
    color: var(--primary);
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.hidden {
    display: none;
}






/* === Bildungsmythen-Quiz (bS GAMES) === */
/* Original-Styles aus Quiz_Bildungsmythen01.html */
:root {
    --bg: var(--bg-light, #f8f9fa);
    --card-bg: var(--white, #ffffff);
    --card-bg-muted: #eef5f7;
    --accent: var(--primary, #0b738f);
    --accent-strong: var(--accent1, #ff4080);
    --text: var(--text, #3d3d3d);
    --muted: #6b7280;
    --danger: var(--color-bg-danger, #f44336);
    --success: var(--color-bg-success, #4caf50);
    --radius-lg: 18px;
    --shadow-soft: 0 18px 45px rgba(11, 115, 143, 0.18);
    --transition-fast: 150ms ease-out;
}



.quiz-shell {
    width: 100%;
    max-width: 640px;
}

.quiz-card {
    background:
        linear-gradient(135deg,
            rgba(11, 115, 143, 0.08),
            rgba(255, 255, 255, 0)) padding-box,
        linear-gradient(135deg,
            rgba(11, 115, 143, 0.35),
            rgba(255, 64, 128, 0.35)) border-box;
    border-radius: calc(var(--radius-lg) + 1px);
    border: 1px solid transparent;
    box-shadow: var(--shadow-soft);
    padding: 1px;
    position: relative;
    overflow: hidden;
}

.quiz-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 0% 0%,
            rgba(255, 64, 128, 0.15),
            transparent 55%);
    opacity: 0.8;
    pointer-events: none;
}

.quiz-inner {
    position: relative;
    z-index: 1;
    padding: 20px 18px 18px;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, var(--card-bg), var(--card-bg-muted));
}

@media (min-width: 640px) {
    .quiz-inner {
        padding: 24px 22px 22px;
    }
}

.quiz-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.quiz-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quiz-icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 10%,
            var(--accent-strong),
            var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 20px;
    box-shadow:
        0 0 0 1px rgba(11, 115, 143, 0.35),
        0 10px 22px rgba(11, 115, 143, 0.25);
    transform: translateY(1px);
}

.quiz-title-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.quiz-title {
    font-size: 1.1rem;
    font-weight: 650;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
}

.quiz-pill {
    font-size: 0.65rem;
    padding: 2px 7px;
    border-radius: 999px;
    border: 1px solid rgba(11, 115, 143, 0.35);
    background: rgba(11, 115, 143, 0.08);
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.quiz-subtitle {
    font-size: 0.8rem;
    color: var(--muted);
}

.quiz-meta {
    text-align: right;
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.quiz-meta-strong {
    color: var(--accent);
}

.quiz-progress {
    margin-bottom: 14px;
}

.progress-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    margin-bottom: 6px;
    color: var(--muted);
}

.progress-label-row span {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
}

.progress-label-row strong {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.78rem;
}

.progress-bar-track {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(11, 115, 143, 0.08);
    border: 1px solid rgba(11, 115, 143, 0.25);
    box-shadow: inset 0 0 0 1px rgba(11, 115, 143, 0.08);
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), var(--accent-strong));
    box-shadow: 0 0 0 1px rgba(11, 115, 143, 0.1);
    transition: width 220ms cubic-bezier(0.26, 0.86, 0.44, 0.99);
}

.quiz-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.question-counter {
    font-size: 0.8rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.question-text-block {
    border-radius: 14px;
    background:
        radial-gradient(circle at 10% 0,
            rgba(11, 115, 143, 0.08),
            transparent 55%),
        linear-gradient(180deg, #fff, var(--card-bg-muted));
    padding: 14px 13px 13px;
    border: 1px solid rgba(11, 115, 143, 0.2);
    box-shadow: 0 12px 28px rgba(11, 115, 143, 0.15);
    position: relative;
    overflow: hidden;
}

@media (min-width: 640px) {
    .question-text-block {
        padding: 16px 15px 15px;
    }
}

.question-text-block::before {
    content: "❝";
    position: absolute;
    top: 6px;
    right: 12px;
    font-size: 1.7rem;
    opacity: 0.08;
    color: var(--accent-strong);
    pointer-events: none;
}

.question-text {
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 500;
}

.question-tagline {
    margin-top: 8px;
    font-size: 0.78rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.question-tagline span:first-child {
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.answer-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 2px;
}

@media (max-width: 480px) {
    .answer-row {
        grid-template-columns: 1fr;
    }
}

.answer-button {
    position: relative;
    border-radius: 999px;
    padding: 10px 14px;
    border: 1px solid rgba(11, 115, 143, 0.35);
    background:
        radial-gradient(circle at 0 0,
            rgba(11, 115, 143, 0.08),
            transparent 55%),
        rgba(255, 255, 255, 0.95);
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-fast),
        border-color var(--transition-fast),
        background 160ms ease-out,
        opacity 120ms ease-out;
    box-shadow: 0 10px 22px rgba(11, 115, 143, 0.15);
}

.answer-button-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.answer-chip {
    font-size: 0.7rem;
    padding: 1px 7px;
    border-radius: 999px;
    border: 1px solid rgba(11, 115, 143, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
}

.answer-main {
    font-size: 0.92rem;
}

.answer-icon {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    border: 1px solid rgba(11, 115, 143, 0.35);
    background: rgba(11, 115, 143, 0.08);
    color: var(--accent);
}

.answer-button:hover:not([disabled]) {
    transform: translateY(-1px) translateZ(0);
    box-shadow: 0 14px 28px rgba(11, 115, 143, 0.2);
    border-color: rgba(255, 64, 128, 0.4);
    background:
        radial-gradient(circle at 0 0,
            rgba(255, 64, 128, 0.08),
            transparent 55%);
}

.answer-button:active:not([disabled]) {
    transform: translateY(0);
    box-shadow: 0 6px 12px rgba(15, 23, 42, 0.9);
}

.answer-button[disabled] {
    cursor: default;
    opacity: 0.85;
    box-shadow: 0 8px 18px rgba(11, 115, 143, 0.15);
}

.answer-button.correct {
    border-color: rgba(76, 175, 80, 0.75);
    background:
        radial-gradient(circle at 0 0,
            rgba(76, 175, 80, 0.2),
            transparent 55%),
        rgba(233, 249, 235, 0.9);
}

.answer-button.incorrect {
    border-color: rgba(244, 67, 54, 0.75);
    background:
        radial-gradient(circle at 0 0,
            rgba(244, 67, 54, 0.16),
            transparent 55%),
        rgba(254, 232, 230, 0.95);
}

.answer-button.correct .answer-icon {
    border-color: rgba(76, 175, 80, 0.8);
    background: rgba(76, 175, 80, 0.18);
    color: rgba(76, 175, 80, 0.8);
}

.answer-button.incorrect .answer-icon {
    border-color: rgba(244, 67, 54, 0.8);
    background: rgba(244, 67, 54, 0.18);
    color: rgba(244, 67, 54, 0.9);
}

.feedback-block {
    margin-top: 10px;
    border-radius: 12px;
    padding: 10px 11px 9px;
    background: rgba(11, 115, 143, 0.05);
    border: 1px solid rgba(11, 115, 143, 0.2);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    align-items: flex-start;
}

.feedback-chip {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    padding: 2px 7px;
    border-radius: 999px;
    border: 1px solid rgba(11, 115, 143, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(11, 115, 143, 0.08);
}

.feedback-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--accent-strong);
}

.feedback-text-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 0.8rem;
}

.feedback-main {
    font-weight: 500;
}

.feedback-main.correct {
    color: var(--success);
}

.feedback-main.incorrect {
    color: var(--danger);
}

.feedback-explanation {
    color: var(--muted);
    line-height: 1.3;
}

.quiz-footer {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.quiz-hint {
    font-size: 0.7rem;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.quiz-hint span:first-child {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 1px solid rgba(11, 115, 143, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: var(--accent);
}

.primary-button {
    border-radius: 999px;
    border: none;
    padding: 7px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(120deg, var(--accent), #11b9e8);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(11, 115, 143, 0.35);
    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-fast),
        filter var(--transition-fast),
        opacity 120ms ease-out;
}

.primary-button:hover:not([disabled]) {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(255, 64, 128, 0.35);
    filter: brightness(1.03);
}

.primary-button:active:not([disabled]) {
    transform: translateY(0);
    box-shadow: 0 10px 18px rgba(11, 115, 143, 0.3);
}

.primary-button[disabled] {
    opacity: 0.6;
    cursor: default;
    box-shadow: 0 8px 18px rgba(11, 115, 143, 0.2);
}

.primary-button span {
    font-size: 0.9rem;
}

.primary-button-icon {
    font-size: 0.9rem;
}

.result-view {
    display: none;
}

.result-view.active {
    display: block;
}

.result-header {
    text-align: center;
    margin-bottom: 14px;
}

.result-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(11, 115, 143, 0.4);
    background: rgba(11, 115, 143, 0.08);
    color: var(--accent);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 8px;
}

.result-score-number {
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.result-score-number span {
    font-size: 0.95rem;
    color: var(--muted);
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-left: 4px;
}

.result-message {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.9rem;
}

.result-highlights {
    margin-top: 12px;
    border-radius: 12px;
    padding: 10px 11px;
    background: rgba(11, 115, 143, 0.05);
    border: 1px solid rgba(11, 115, 143, 0.15);
    font-size: 0.82rem;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.result-actions {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.secondary-button {
    border-radius: 999px;
    border: 1px solid rgba(11, 115, 143, 0.35);
    background: rgba(255, 255, 255, 0.95);
    color: var(--accent);
    font-size: 0.8rem;
    padding: 6px 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition:
        background var(--transition-fast),
        transform var(--transition-fast),
        box-shadow var(--transition-fast);
    box-shadow: 0 10px 22px rgba(11, 115, 143, 0.1);
}

.secondary-button:hover {
    background: rgba(11, 115, 143, 0.08);
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(11, 115, 143, 0.15);
}

.secondary-button:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(11, 115, 143, 0.1);
}

/* === Lernhaltungs-Toggle im Bildungsmythen-Quiz === */
.quiz-lernhaltung-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0 1.5rem;
}

.quiz-lh-btn {
    border-radius: var(--border-radius);
    padding: 0.45rem 0.9rem;
    font-weight: 500;
    background: var(--white);
    border: 1px solid transparent;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transition: var(--transition);
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quiz-lh-btn:hover,
.quiz-lh-btn:focus {
    color: var(--primary);
    background: var(--bg-light);
    outline: none;
    border: 1px solid var(--accent1);
    box-shadow: var(--shadow-accent-glow);
}

.quiz-lh-btn.is-active {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-primary);
    border: 1px solid var(--primary);
}

.quiz-lh-btn.is-active:focus {
    background: var(--primary);
    color: var(--white);
    border: 1px solid var(--primary);
    box-shadow: var(--shadow-primary-glow);
}

.quiz-lh-btn.is-active:hover {
    background: var(--primary-light);
    color: var(--white);
    border: 1px solid var(--primary-light);
    box-shadow: var(--shadow-primary-glow);
}

.mindset-move {
    margin-top: 1.2rem;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--primary);
    text-align: center;
}

/* === Backpack System === */

/* Backpack Button im Header */
.backpack-button {
    position: relative;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    transition: transform 0.2s ease;
    /* Erweitere die Drop-Zone mit einem größeren unsichtbaren Bereich */
    /* Nutze ::before Pseudo-Element für unsichtbare Drop-Zone */
}

.backpack-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 88px; /* 48px + 40px padding */
    height: 88px;
    z-index: -1;
}

.backpack-button:hover,
.backpack-button.drag-over {
    transform: scale(1.8);
}

.backpack-button:active {
    transform: scale(0.95);
}

.backpack-icon {
    position: absolute;
    width: 32px;
    height: 32px;
    object-fit: contain;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.backpack-icon-closed {
    opacity: 1;
    transform: scale(1);
}

.backpack-icon-open {
    opacity: 0;
    transform: scale(0.8);
}

.backpack-button:hover .backpack-icon-closed,
.backpack-button.drag-over .backpack-icon-closed {
    opacity: 0;
    transform: scale(0.8);
}

.backpack-button:hover .backpack-icon-open,
.backpack-button.drag-over .backpack-icon-open {
    opacity: 1;
    transform: scale(1);
}

.backpack-badge {
    position: absolute;
    bottom: -4px;
    left: -4px;
    background: var(--accent1);
    color: white;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    padding: 0 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.backpack-badge.has-items {
    opacity: 1;
    transform: scale(1);
}

/* Backpack Drop Zone */
.backpack-button.backpack-drop-zone {
    position: relative;
    border-radius: 8px;
    transition: transform 0.2s ease, border 0.2s ease;
}

.backpack-button.backpack-drop-zone.drag-over {
    border: 2px dashed var(--accent1);
    animation: backpack-bounce 0.3s ease;
}

@keyframes backpack-bounce {
    0%, 100% { transform: scale(1.15); }
    50% { transform: scale(1.25); }
}

/* Saveable Elements */
.saveable {
    position: relative;
    cursor: grab;
}

.saveable:active {
    cursor: grabbing;
}

.saveable::before {
    content: '';
    position: absolute;
    top: -12px;
    right: -12px;
    left: auto;
    width: 24px;
    height: 24px;
    background-image: url('img/bS_Icon_backpack-closed.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: var(--accent1);
    border: 1px solid var(--primary);
    border-radius: 50%;
    opacity: 0;
    padding: 4px;
    transform: scale(0.8);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    z-index: 10;
}

.saveable:hover::before {
    opacity: 1;
    transform: scale(1);
}

.saveable.dragging {
    opacity: 0.7;
    z-index: 1000;
    pointer-events: none; /* Lässt Events durch die Bubble hindurchgehen */
    transition: opacity 0.2s ease;
}

.saveable.dragging.over-dropzone {
    opacity: 0.4;
}

.saveable.shrinking-to-backpack {
    pointer-events: none;
}

/* Spezialfall: Slotmachine-Sätze sollen ihre absolute Position behalten,
   auch wenn sie zusätzlich als .saveable markiert werden */
.sm_slice.saveable {
    position: absolute;
}

/* Backpack Modal */
.backpack-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.backpack-overlay.active {
    opacity: 1;
    visibility: visible;
}

.backpack-modal {
    background: white;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.backpack-overlay.active .backpack-modal {
    transform: scale(1);
}

.backpack-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.backpack-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--primary);
}

.backpack-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease, color 0.2s ease;
}

.backpack-modal-close:hover {
    background: #f0f0f0;
    color: var(--accent1);
}

.backpack-modal-content {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.backpack-sentences-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.backpack-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #999;
    font-style: italic;
}

.backpack-sentence-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    border-left: 3px solid var(--primary);
    transition: box-shadow 0.2s ease;
}

.backpack-sentence-item:hover {
    box-shadow: var(--shadow-standard);
}

.backpack-sentence-number {
    font-weight: bold;
    color: var(--primary);
    min-width: 24px;
}

.backpack-sentence-text {
    flex: 1;
    margin: 0;
    line-height: 1.6;
    color: var(--text);
}

.backpack-sentence-delete {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.backpack-sentence-delete:hover {
    background: #ffebee;
    color: var(--accent1);
}

.backpack-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.backpack-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.backpack-btn-primary {
    background: var(--primary);
    color: white;
}

.backpack-btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-primary);
}

.backpack-btn-clear {
    background: #f5f5f5;
    color: var(--text);
}

.backpack-btn-clear:hover {
    background: #e0e0e0;
    transform: translateY(-1px);
}

/* Shrink Animation */
@keyframes shrink-to-backpack {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 1;
    }
    100% {
        transform: scale(0.1) translate(var(--target-x), var(--target-y));
        opacity: 0;
    }
}

/* PDF Loading Indicator */
.backpack-pdf-loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 24px 48px;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    min-width: 200px;
    font-size: 1rem;
    color: var(--text);
    font-weight: 500;
}

.backpack-pdf-loading::before {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid var(--bg-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: backpack-pdf-spin 0.8s linear infinite;
}

@keyframes backpack-pdf-spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .backpack-modal {
        width: 95%;
        max-height: 90vh;
    }

    .backpack-modal-header,
    .backpack-modal-content,
    .backpack-modal-footer {
        padding: 1rem;
    }

    .backpack-sentence-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .backpack-sentence-delete {
        align-self: flex-end;
    }
}