/* ===== STYLE.CSS - KOMPONENTEN & LAYOUT ===== */
/* Design Tokens werden aus design-tokens.css importiert */

/* ===== SCROLL BEHAVIOR ===== */
html {
    scroll-padding-top: 120px; /* Offset für fixe Navigation */
}

/* ===== CODE ELEMENTS - MOBILE OVERFLOW FIX ===== */
code {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: inline-block;
}

/* Mobile Code Element Fix */
@media (max-width: 480px) {
    code {
        max-width: calc(100vw - 2rem);
    }
}

/* ===== PRE ELEMENTS - MINIMAL STYLING ===== */
pre {
    display: block;
    clear: both;
    font-size: 0.7em;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin: 1rem 0;
}

/* ===== CONTENT PROTECTION SYSTEM ===== */
.protected-content.hidden {
    display: none !important;
}

.public-content.hidden {
    display: none !important;
}

.protected-content.visible {
    display: block;
}

.public-content.visible {
    display: block;
}

/* Protected section wrapper - completely neutral container */
.protected-section {
    /* Vollständig neutral - keine Spacing-Eigenschaften */
    /* keine Breitenangabe oder Textausrichtung übernehmen */
}


/* Product Access Notice */
.product-access-notice {
    background: var(--color-warning-light, #fff3cd);
    border: 1px solid var(--color-warning, #ffc107);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.access-notice-header h4 {
    margin: 0 0 1rem 0;
    color: var(--color-warning-dark, #856404);
    font-size: 1.1rem;
}

.access-description {
    margin-bottom: 1rem;
    color: var(--color-text-primary);
}

.access-benefit {
    background: var(--card-bg);
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.access-benefit i {
    color: var(--color-warning, #ffc107);
    margin-right: 0.5rem;
}

.access-action {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Product Login Form */
.product-login-form {
    background: var(--color-background-light, #f8f9fa);
    border: 1px solid var(--color-border, #dee2e6);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.login-intro {
    margin-bottom: 1.5rem;
}

.login-intro h3 {
    margin: 0 0 0.75rem 0;
    color: var(--color-primary);
    font-size: 1.1rem;
}

.login-intro i {
    margin-right: 0.5rem;
    color: var(--color-primary);
}

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

.product-access-form .form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--color-text-primary);
}

.required-indicator {
    color: var(--color-danger, #dc3545);
    font-weight: bold;
}

/* Rosa/Altrosa highlight (Karl Kratz brand color) */
.rosa {
    color: var(--color-secondary);
}

.product-access-form .form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border, #dee2e6);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.product-access-form .form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(var(--color-primary-rgb), 0.25);
}

.field-help, .btn-help {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-top: 0.25rem;
}

.product-login-btn {
    background: var(--color-primary);
    color: var(--color-text-white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.product-login-btn:hover {
    background: var(--color-primary-dark);
}

.product-login-btn:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.product-login-btn i {
    font-size: 0.875rem;
}

/* ===== BREADCRUMB NAVIGATION ===== */
.breadcrumb-container {
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.72rem;
    color: var(--color-text-secondary);
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-link {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 0.25rem 0;
}

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

.breadcrumb-link:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: 2px;
}

.breadcrumb-current {
    color: var(--color-text-primary);
    font-weight: 500;
}

.breadcrumb-separator {
    margin: 0 0.25rem;
    color: var(--color-text-secondary);
    user-select: none;
}

/* Mobile optimization */
@media (max-width: 768px) {
    .breadcrumb-list {
        font-size: 0.64rem;
    }
    
    .breadcrumb-separator {
        margin: 0 0.15rem;
    }
}

/* ===== KI-EBOOK COMPONENTS ===== */
.dimension-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.dimension-header i {
    font-size: 2rem;
    color: var(--color-primary);
}

.dimension-header h1 {
    margin: 0;
    color: var(--color-primary);
}

.dimension-header p {
    margin: 0;
    color: var(--color-text-secondary);
    font-size: 1.1rem;
}

.chapter-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.chapter-header .level-badge {
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--color-text-white);
}

.chapter-header i {
    font-size: 1.8rem;
}

.chapter-header h1 {
    margin: 0;
}

.chapter-header p {
    margin: 0;
    color: var(--color-text-secondary);
    font-size: 1.1rem;
}

.intro-section {
    margin-bottom: 3rem;
}

.intro-section p {
    font-size: 1.1rem;
    line-height: 1.6;
}

.main-content {
    line-height: 1.7;
    font-size: 1.1rem;
}

.modules-section {
    margin-bottom: 3rem;
}

.modules-title {
    color: var(--color-primary);
    margin-bottom: 2rem;
}

.dimension-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.dimension-card {
    background: var(--color-background-light);
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dimension-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-color: var(--color-primary);
}

.dimension-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.dimension-card-header i {
    font-size: 1.5rem;
    color: var(--color-primary);
}

.dimension-card-header h3 {
    margin: 0;
    color: var(--color-primary);
    font-size: 1.2rem;
}

.dimension-card .divider {
    display: none;
}

.dimension-card p {
    margin: 0 0 1rem 0;
    line-height: 1.5;
    color: var(--color-text-secondary);
}

.ribbon {
    position: absolute;
    top: 15px;
    right: -30px;
    background: var(--color-warning);
    color: var(--color-text-white);
    padding: 5px 35px;
    font-size: 0.7rem;
    font-weight: bold;
    text-align: center;
    transform: rotate(45deg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.ribbon-success {
    background: var(--color-success);
}

.submodules {
    margin-top: 1rem;
    padding-left: 1rem;
    border-left: 2px solid var(--color-border-light);
}

.submodules-label {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
}

.submodules-list {
    margin: 0;
    padding-left: 1rem;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

.learning-path-nav {
    background: var(--color-background-light);
    border-radius: 8px;
    padding: 2rem;
    margin-top: 3rem;
}

.learning-path-current {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--color-text-secondary);
}

.learning-path-current i {
    color: var(--color-primary);
}

.learning-path-next span {
    display: block;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
}

.learning-path-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.learning-path-link:hover {
    color: var(--color-primary-dark);
}

/* ===== BUTTON COMPONENTS ===== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

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

.btn-primary:hover {
    background: var(--color-primary-dark);
}

[data-theme="dark"] .btn-primary {
    background: #2d6a9f;
    color: #ffffff;
}

[data-theme="dark"] .btn-primary:hover {
    background: var(--color-primary-light, #6b9bd3);
    color: #ffffff;
}

.btn-secondary {
    background: var(--color-border-light);
    color: var(--color-text-primary);
}

.btn-secondary:hover {
    background: var(--color-border);
}

.btn-success {
    background: var(--color-success);
    color: var(--color-text-white);
}

.btn-success:hover {
    background: var(--color-success-dark);
}

/* Navigation Components */
.dimension-navigation {
    margin-top: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tool-action {
    margin-top: 1rem;
}

/* ===== UTILITY CLASSES ===== */
.hidden {
    display: none !important;
}

/* Protected Content Blur Effect */
.blur-text {
    filter: blur(3px);
    opacity: 0.6;
    user-select: none;
    pointer-events: none;
    transition: filter 0.3s ease;
}

/* Protected Section Login Form - Karl Kratz Style */
.protected-section-login {
    background: var(--color-bg-light, #f8f9fa);
    border: 1px solid var(--color-border, #e9ecef);
    border-radius: var(--border-radius, 8px);
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.protected-section-login .login-intro {
    margin-bottom: 1.5rem;
    text-align: center;
}

.protected-section-login .login-intro h3 {
    color: var(--color-primary, #007cba);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.protected-section-login .login-intro p {
    color: var(--color-text-secondary, #666);
    margin: 0;
    line-height: 1.5;
}

.protected-section-login .form-group {
    margin-bottom: 1.5rem;
}

.protected-section-login .form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-text-primary, #333);
}

.protected-section-login .form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border, #ddd);
    border-radius: var(--border-radius, 4px);
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.protected-section-login .form-input:focus {
    outline: none;
    border-color: var(--color-primary, #007cba);
    box-shadow: 0 0 0 3px var(--color-primary-alpha, rgba(0, 124, 186, 0.1));
}

.protected-section-login .field-help {
    font-size: 0.875rem;
    color: var(--color-text-secondary, #666);
    margin-top: 0.25rem;
    line-height: 1.4;
}

.protected-section-login .required-indicator {
    color: var(--color-danger, #dc3545);
    font-weight: bold;
}

.protected-section-login .protected-login-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background-color: var(--color-primary, #007cba);
    color: var(--color-text-white);
    border: none;
    border-radius: var(--border-radius, 4px);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.protected-section-login .protected-login-btn:hover {
    background-color: var(--color-primary-dark, #005a87);
    transform: translateY(-1px);
}

.protected-section-login .protected-login-btn:focus {
    outline: 2px solid var(--color-primary, #007cba);
    outline-offset: 2px;
}

.protected-section-login .btn-help {
    font-size: 0.8rem;
    color: var(--color-text-secondary, #666);
    margin-top: 0.5rem;
    text-align: center;
    line-height: 1.3;
}

.protected-section-login .motivation-box {
    background: var(--color-info-bg, #e3f2fd);
    border: 1px solid var(--color-info, #2196f3);
    border-radius: var(--border-radius, 4px);
    padding: 1rem;
    margin-top: 1.5rem;
}

.protected-section-login .motivation-box p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text-primary, #333);
    line-height: 1.4;
}

.access-notice {
    background: var(--color-warning-bg, #fff3cd);
    border: 1px solid var(--color-warning, #ffc107);
    border-radius: var(--border-radius, 4px);
    padding: 1rem;
    margin: 1.5rem 0;
}

.access-notice p {
    margin: 0.5rem 0;
    color: var(--color-text-primary, #333);
}

.access-notice p:first-child {
    font-weight: 600;
    margin-top: 0;
}

.access-notice p:last-child {
    margin-bottom: 0;
}

/* Mobile Optimierung für Protected Section Login */
@media (max-width: 768px) {
    .protected-section-login {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .protected-section-login .form-input,
    .protected-section-login .protected-login-btn {
        font-size: 16px; /* Verhindert Zoom auf iOS */
        min-height: 44px;
    }
    
    .protected-section-login .login-intro h3 {
        font-size: 1.125rem;
    }
}

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

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

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

.required-asterisk {
    color: var(--color-error);
}

/* ===== ADMIN-SPEZIFISCHE KLASSEN ===== */
.admin-file-input {
    display: none;
}

.admin-image-preview {
    max-width: 100%;
    height: auto;
}

.admin-empty-cell {
    text-align: center;
}

.admin-dark-mode-toggle {
    text-align: right;
    margin-bottom: 1rem;
}

.admin-dark-mode-label {
    cursor: pointer;
}

.admin-dark-mode-checkbox {
    margin-right: 0.5rem;
}

/* ===== GLOBALE STILE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


/* Transparente Hintergrundfarbe für Elemente im Light und Dark Mode */
section, #main-content, .content {
    background-color: var(--color-bg-primary);
}

html {
    /* Dynamische Basis-Schriftgröße */
    font-size: clamp(1rem, 2vw, 1.2rem);
}

body {
    font-family: var(--font-family-base);
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    line-height: var(--line-height-base);
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: var(--font-size-h1);
    line-height: var(--line-height-h1);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    margin-top: 2rem;
    margin-bottom: 4rem;
    text-align: center;
}

/* H1 Subtitle - smaller text within H1 headings */
h1 .h1-subtitle {
    font-size: 0.7em;
}

h2 {
    font-size: var(--font-size-h2);
    line-height: var(--line-height-h2);
    font-weight: var(--font-weight-bold);
    color: var(--color-secondary);
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    padding-top: 2ch;
    text-align: left;
}

/* Fix für H2-Margin in protected sections - MUST come after general h2 rule */
.protected-section h2 {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Extra specificity for viewport changes */
section .protected-section h2 {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Ensure it works in all media queries */
@media (max-width: 768px) {
    .protected-section h2 {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

@media (min-width: 769px) {
    .protected-section h2 {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

/* ===== SEMANTIC HEADINGS ===== */
/* Einheitliche Darstellung für Taxonomie/Struktur-Seiten */
/* Alle Headings (h2-h6) werden wie h3 formatiert */
.semantic h2,
.semantic h3,
.semantic h4,
.semantic h5,
.semantic h6 {
    font-size: var(--font-size-h3);
    line-height: var(--line-height-h3, 1.4);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    margin-top: 1rem;
    margin-bottom: 1rem;
    text-align: left;
}

.semantic h2 a,
.semantic h3 a,
.semantic h4 a,
.semantic h5 a,
.semantic h6 a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: var(--font-weight-normal);
}

.semantic h2 a:hover,
.semantic h3 a:hover,
.semantic h4 a:hover,
.semantic h5 a:hover,
.semantic h6 a:hover {
    color: var(--color-primary);
}

.semantic h2 strong,
.semantic h3 strong,
.semantic h4 strong,
.semantic h5 strong,
.semantic h6 strong {
    color: var(--color-text-primary);
    font-weight: var(--font-weight-bold);
}

p {
    font-size: var(--font-size-md);
    margin-bottom: var(--space-4);
    max-width: 90ch;
}

ul {
    list-style: square;
    padding-left: var(--space-lg, var(--space-8));
    padding-bottom: var(--space-4);
}

ol {
    padding-left: var(--space-lg, var(--space-8));
    padding-bottom: var(--space-4);
}

ul li {
    font-size: var(--font-size-md);
    margin-bottom: var(--space-2);
}

ol li {
    font-size: var(--font-size-md);
    margin-bottom: var(--space-2);
}

a {
    color: var(--color-primary);
    text-decoration: underline;
    font-weight: var(--font-weight-semibold);
}
  
a:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

.hr-spacing {
    margin-top: -1rem;
    margin-bottom: var(--space-md);
}

/* ===== FORM ELEMENTS ===== */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
textarea,
select,
button,
.button {
    border-radius: var(--radius-lg);
}

/* ===== SECTION STYLES ===== */
section {
    width: 100%;
    margin: 0;
    padding: 1rem 0;
    background-color: var(--color-bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* DB-Content Wrapper: Stack nested sections vertically */
section[data-artefakt] {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
}

/* KI-Ebook: Reduzierter Section-Abstand - alle sections in ki-ebook-content */
.ki-ebook-content section,
.ki-ebook-content .ki-ebook-content section {
    padding: 0.5rem 0;
}

/* Desktop only: Full viewport sections */
@media (min-width: 769px) and (hover: hover) {
    section {
        min-height: unset;
    }
}

/* Mobile: Natural height with generous padding */
@media (max-width: 768px) {
    section {
        padding: 1rem 0;
        min-height: auto;
    }
}

/* KI-Ebook: Mobile Section Padding Override - Live Test */
@media (max-width: 768px) {
    .ki-ebook-content section,
    .ki-ebook-content .ki-ebook-content section {
        padding: 0.5rem 0 !important;
    }
}

.content {
    width: 90ch;
    max-width: 90ch;
    padding: clamp(1rem, 5vw, 2rem);
    margin: 0;
}

/* Content text alignment - H1 bleibt immer zentriert */
.content.text-left {
    text-align: left;
}

.content.text-left h1 {
    text-align: center; /* H1 immer zentriert */
}

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

/* Page Icon über H1 */
.page-icon {
    display: block;
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    opacity: 0.85;
}

/* Kapitel-Illustration */
.chapter-illustration {
    display: block;
    width: 100%;
    max-width: 620px;
    height: auto;
    margin: 2rem auto;
}

/* H1 Abstand von oben - IMMER GLEICH */
.content h1 {
    margin-top: 0 !important;
}

/* Profile Form */
#profile-form {
    max-width: 600px;
}

/* Readonly Inputs */
input[readonly] {
    background: var(--color-bg-secondary, #f5f5f5) !important;
    color: var(--color-text-secondary, #666) !important;
    cursor: not-allowed !important;
}

[data-theme="dark"] input[readonly] {
    background: var(--color-bg-tertiary, #333) !important;
    color: var(--color-text-secondary, #999) !important;
}

/* ===== HEADER & NAVIGATION ===== */
header {
    background: var(--color-bg-primary);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 4px;
    display: flex;
    justify-content: flex-end;
    border-bottom: 1px solid var(--color-border-light);
}

.header-buttons {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 6px 20px;
}

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

.header-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

header a {
    color: var(--color-text-primary);
    text-decoration: none;
    font-size: 1rem;
    white-space: nowrap;
    font-weight: 500; /* Erhöht die Lesbarkeit */
}

a.btn,
button.btn {
    border-radius: var(--radius-lg);
    padding: 17px 10px;
    line-height: 1;
    text-align: center;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    border: none;
}

a.btn-gray,
button.btn-gray {
    background: var(--color-bg-secondary, #f8f9fa);
    border: 1px solid var(--color-border-medium, #6c757d);
    color: var(--color-text-secondary, #495057);
}

[data-theme="dark"] a.btn-gray,
[data-theme="dark"] button.btn-gray {
    background: var(--color-bg-tertiary, #333);
    border: 1px solid var(--color-border, #555);
    color: var(--color-text-primary, #d0d0d0);
}

a.btn-blue,
button.btn-blue {
    background: var(--color-info-bg, #e7f1ff);
    border: 1px solid var(--color-primary, #004085);
    color: var(--color-primary-dark, #004085);
}

a.btn-blue:hover,
button.btn-blue:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
}

a.btn-green,
button.btn-green {
    background: var(--color-success-bg, #f0f8f0);
    border: 1px solid var(--color-success-border, #155724);
    color: var(--color-success-text, #155724);
}

a.btn-red,
button.btn-red {
    background: var(--color-error-bg, #f8d7da);
    border: 1px solid var(--color-error-border, #721c24);
    color: var(--color-error-text, #721c24);
}

/* Dark Mode Support for Buttons */
[data-theme="dark"] a.btn-green,
[data-theme="dark"] button.btn-green {
    background: var(--color-success-bg-dark, #1a3a1a);
    border: 1px solid var(--color-success-border-dark, #4ade80);
    color: var(--color-success-text-dark, #4ade80);
}

[data-theme="dark"] a.btn-blue,
[data-theme="dark"] button.btn-blue {
    background: var(--color-info-bg, #1a2e35);
    border: 1px solid var(--color-info-border, #5a8bb7);
    color: var(--color-info-text, #7dc8d8);
}

[data-theme="dark"] a.btn-blue:hover,
[data-theme="dark"] button.btn-blue:hover {
    background: var(--color-primary, #4a7ba7);
    border-color: var(--color-primary, #4a7ba7);
    color: #ffffff;
}

[data-theme="dark"] a.btn-red,
[data-theme="dark"] button.btn-red {
    background: var(--color-error-bg-dark, #3a1a1a);
    border: 1px solid var(--color-error-border-dark, #f87171);
    color: var(--color-error-text-dark, #f87171);
}

a.btn-rose,
button.btn-rose {
    background: #fce4ec;
    border: 1px solid #6d4c5d;
    color: #6d4c5d; /* Dunkleres Rosa/Lila für besseren Kontrast */
}

/* Clean button for dark mode toggle - no border/background */
a.btn-clean,
button.btn-clean {
    background: transparent;
    color: var(--color-text-primary);
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

a.btn-clean:hover,
button.btn-clean:hover {
    color: var(--color-primary);
    background: transparent;
}

/* Header dark mode fixes */
header {
    background: var(--color-bg-primary) !important;
    border-bottom: 1px solid var(--color-border-light) !important;
}

header .btn {
    color: var(--color-text-primary);
}

header .btn:hover {
    color: var(--color-primary);
}


/* #level-link wird jetzt server-seitig gesteuert und sollte nicht per CSS versteckt werden */

/* ===== ANIMATED TEXT STYLES ===== */
.animated-text-container {
    height: 6em;
    line-height: 1.8em;
    
}

.typing-text {
    margin: 0;
}

.text-animation-source {
    display: none;
}

/* ===== LEVEL UP PAGE STYLES ===== */
.levelup-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 2rem 0;
}

.level-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    background-color: var(--card-bg);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 2rem;
}

.level-card.active-level {
    box-shadow: 0 0 15px rgba(40, 167, 69, 0.3);
    border-color: var(--color-success);
}

.level-card.hidden {
    display: none;
}

.level-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    position: relative;
}

.level-badge {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    color: var(--color-text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.level-card:nth-child(1) .level-badge {
    background-color: var(--color-text-secondary);
}

.level-card:nth-child(1) {
    background-color: var(--color-bg-secondary);
    border-color: var(--color-text-light);
}

.level-card:nth-child(2) .level-badge { background-color: var(--color-success); }
.level-card:nth-child(3) .level-badge { background-color: var(--color-primary); }

.level-title {
    font-size: 1.5rem;
    margin: 0;
    flex: 1;
}

.level-status {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-full);
    background-color: var(--color-bg-tertiary);
    color: var(--color-text-secondary);
    position: absolute;
    top: 0;
    right: 0;
    transition: all 0.3s ease;
    font-weight: 500;
}

.level-status.active {
    background-color: var(--color-success);
    color: var(--color-text-white);
}

.level-status.locked {
    background-color: var(--color-text-light);
    color: var(--color-text-primary);
}

.level-description {
    margin-bottom: 1rem;
}

.level-description p {
    margin: 0;
}

.level-features {
    flex: 1;
    margin-bottom: 1.5rem;
    padding-left: 1.2rem;
}

.level-features li {
    margin-bottom: 0.5rem;
    position: relative;
}

.level-features li::before {
    content: '';
    color: var(--color-primary);
    position: absolute;
    left: -1.2rem;
    font-weight: bold;
}

.active-level .level-features li::before {
    color: var(--color-success);
}

.level-action {
    margin-top: auto;
    text-align: center;
}

.level-action-message {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    font-style: italic;
}

.level-benefits {
    display: flex;
    flex-direction: column;
    margin: 2rem 0;
    gap: 1rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    background-color: var(--color-bg-secondary);
    padding: 1rem;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.benefit-item svg {
    color: var(--color-primary);
    margin-right: 1rem;
    flex-shrink: 0;
}

.benefit-item span {
    font-weight: 500;
}

.current-level-display {
    background-color: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    padding: 1rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.current-level-display strong {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background-color: var(--color-primary);
    color: var(--color-text-white);
    border-radius: var(--radius-sm);
    margin: 0 0.5rem;
}

@media (max-width: 768px) {
    header {
        padding: 4px;
        justify-content: flex-end;
    }
    
    .header-buttons {
        gap: 0.5rem;
    }
    
    header a,
    header a.btn {
        font-size: 0.7rem;
        padding: 8px 8px;
    }
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    text-align: center;
    margin: 1.5rem auto;
    display: block;
}

.logo img {
    width: 162px;
    height: 162px;
    margin: 0 auto;
    display: block;
}

/* Spezifische Größen für Logo-Varianten */
.logo-tiny img {
    width: 40px !important;
    height: 40px !important;
}

.logo-small img {
    width: 130px !important;
    height: 130px !important;
}

.logo-medium img {
    width: 162px !important;
    height: 162px !important;
}

.logo-large img {
    width: 200px !important;
    height: 200px !important;
}

/* Navigation-Logo spezifische Anpassungen */
.nav-logo {
    margin: 0 !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.nav-logo img {
    margin: 0 !important;
}

.nav-logo a {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-decoration: none !important;
}

.nav-logo span,
.nav-logo .headerbold {
    font-size: 9px !important;
    font-weight: normal !important;
    color: var(--color-text) !important;
    margin-top: 2px !important;
    display: block !important;
    text-align: center !important;
    width: 100% !important;
}

.logo a {
    text-decoration: none;
    color: inherit;
}

.logo a span {
    display: block;
    font-size: 0.8rem;
    color: var(--color-text);
}

.headerbold {
    font-weight: normal;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

/* ===== STARTSEITEN LISTE ===== */
.startseiten-liste {
    margin: 20px 0;
    padding: 15px;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
}

.startseiten-liste ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 0;
}

.startseiten-liste li {
    margin: 5px 0;
}

.startseiten-liste a {
    color: var(--color-primary);
    text-decoration: none;
}

.startseiten-liste a:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    margin-top: var(--space-xl);
    font-size: var(--font-size-sm);
}

.footer-container {
    margin-top: var(--space-xl);
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--color-border);
}

.footer-columns {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-xl);
}

.footer-column {
    margin: 0 auto;
}

.footer-column p {
    margin: 0 auto;
    text-align: center;
}

.copyright {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}

/* ===== BUTTONS & INTERAKTIVE ELEMENTE ===== */
:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 2px;
}

/* ===== PROGRESS BARS (Admin Dashboard) ===== */
.progress-container {
    width: 100%;
    height: var(--progress-height, 20px);
    background: var(--color-muted, #e0e0e0);
    margin-top: var(--space-20, 1rem);
    border-radius: var(--radius-sm, 4px);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--color-text-light);
    transition: width 0.3s ease, background 0.3s ease;
}

/* Responsive Bilder - Grundeinstellung */
img, figure, picture {
    max-width: 100%;
    height: auto;
    display: block;
}


figure {
    margin: 2rem 0;
    max-width: 100%;
}

figure img {
    max-width: 100%;
    height: auto;
    display: block;
}

figcaption {
    margin-top: 0.5rem;
    font-style: italic;
    font-size: 0.9rem;
    text-align: center;
    color: var(--color-muted);
}

.teaser-card {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
}

/* ===== UTILITY KLASSEN ===== */

/* ===== DROPDOWN STYLES ===== */
.div-selector {
    display: inline-block;
    padding: 0.6rem 1rem;
    margin: 1rem 0;
    font-size: 1rem;
    line-height: 1.4;
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    border: 1px solid var(--color-h1);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.div-selector:hover {
    border-color: var(--color-hover);
}

.div-selector:focus {
    outline: none;
    border-color: var(--color-hover);
    box-shadow: 0 0 4px rgba(102, 153, 51, 0.5);
}

.content-div {
    display: none;
}

@supports (-webkit-touch-callout: none) {
    .div-selector {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%232F6592' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 1rem center;
        background-size: 1rem;
        padding-right: 2rem;
    }
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.article-card {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    background-color: var(--color-bg-primary);
}

.article-image {
    height: var(--image-height-article);
    
    position: relative;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-marker {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: 500;
    opacity: 0.7;
    display: none;
}

#angebote-liste .article-marker {
    display: block;
}

/* Article Marker mit gemeinsamer Basis */
.article-marker {
    border: 1px solid;
}

.article-marker.ungelesen {
    background: rgba(33, 88, 143, 0.1);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.article-marker.gelesen {
    background: rgba(61, 105, 17, 0.1);
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.article-content {
    padding: 1.5rem;
}

.article-content h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
    color: var(--color-primary);
}

.article-content p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--color-text-secondary);
}

/* Neue Link-Styles für separate Bild- und Titel-Links */
.article-image-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-title-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-title-link h3 {
    transition: color 0.3s ease;
}

.article-title-link:hover h3 {
    color: var(--color-h1);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
    /* Grundlegende mobile Layout-Anpassungen */
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .main-nav ul {
        margin-top: 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-columns {
        flex-direction: column;
    }
    
    /* Hauptinhalt mit einheitlichem Rand */
    #main-content {
        width: 100%;
        padding: 0 1rem;
        box-sizing: border-box;
    }
    
    /* .content-Container mit gleichem Padding wie #main-content */
    .content {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    
    /* Content-Bilder in allen Artikeln */
    section img,
    section figure,
    section picture {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* ===== LEVEL SYSTEM STYLES ===== */
.level-cards {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .level-cards {
        gap: 1rem;
    }
    
    .level-card {
        padding: 1rem;
    }
    
    .level-header {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .level-header h2 {
        font-size: 1.25rem;
        flex-basis: 100%;
        order: 1;
    }
    
    .level-badge {
        order: 2;
    }
    
    .level-status {
        order: 3;
        margin-left: auto;
    }
    
    .level-actions {
        flex-direction: column;
    }
    
    .level-activation-form {
        padding: 1rem;
    }
}

/* ===== FORM STYLING ===== */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-text-primary);
}

.form-group input[type="email"],
.form-group input[type="text"],
.form-group input[type="password"],
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--color-border-light);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    background: var(--color-bg-primary, white);
    color: var(--color-text-primary, #333);
}

.form-group input[type="email"]:focus,
.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-success);
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.checkbox input[type="checkbox"] {
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.checkbox label {
    line-height: 1.4;
}

/* ===== MESSAGE STYLING ===== */
/* Message Styles - gemeinsame Basis */
.success-message,
.error-message {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    border: 1px solid;
}

.success-message {
    background-color: rgba(40, 167, 69, 0.1);
    border-color: var(--color-success);
    color: var(--color-success);
}

.error-message {
    background-color: rgba(220, 53, 69, 0.1);
    border-color: var(--color-error);
    color: var(--color-error);
}

/* ===== INSIGHT BOX STYLING ===== */
.insight-box {
    padding: 1rem 1.2rem;
    margin-bottom: 2rem;
    background-color: var(--color-bg-secondary);
    border-left: 4px solid var(--color-border-medium);
    text-align: left;
}

/* Farb-Varianten - nur die Border-Farbe ändert sich */
.insight-box.primary { border-color: var(--color-primary); text-align: left; }
.insight-box.success { border-color: var(--color-success); background-color: var(--color-success-bg); text-align: left; }
.insight-box.warning { border-color: var(--color-warning); text-align: left; }
.insight-box.error { border-color: var(--color-error); text-align: left; }
.insight-box.h2 { border-color: var(--color-h2); text-align: left; }
.insight-box.muted { border-color: var(--color-border-medium); text-align: left; }

.insight-box.italic,
.italic {
    font-style: italic;
}

/* Alte expandable Funktionalität entfernt - jetzt über <details> */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Details/Summary styling - für alle details Elemente */
details.insight-box summary,
details summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 10rem;
    font-weight: 600;
}

details.insight-box summary::-webkit-details-marker,
details summary::-webkit-details-marker {
    display: none;
}

details.insight-box summary::after,
details summary::after {
    content: "mehr";
    position: absolute;
    top: 0;
    right: 0;
    font-size: 0.8rem;
    font-weight: normal;
    color: var(--color-muted);
    border: 1px solid var(--color-muted);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    background: var(--color-bg);
}

details.insight-box[open] summary::after,
details[open] summary::after {
    content: "weniger";
}

details.insight-box[open] summary,
details[open] summary {
    margin-bottom: 0.5rem;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .insight-box {
        padding: 0.8rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    details.insight-box summary::after,
    details summary::after {
        right: 0.5rem;
        font-size: 0.7rem;
        padding: 0.15rem 0.4rem;
    }
    
    details.insight-box summary,
    details summary {
        padding-right: 7rem;
    }
}

/* === DARK MODE OVERRIDES === */
@media (prefers-color-scheme: dark) {
    /* Heading color overrides */
    h1 {
        color: var(--color-h1);
    }
    
    h2 {
        color: var(--color-h2);
    }
    
    h3, h4, h5, h6 {
        color: var(--color-text-primary);
    }
    
    /* Link colors */
    a {
        color: var(--color-primary);
    }
    
    a:hover {
        color: var(--color-primary-hover);
    }
    
    /* Special utility classes */
    .required-asterisk {
        color: #ff6b6b;  /* Helleres Rot für besseren Kontrast */
    }
    .required-asterisk {
        color: #ff6b6b;  /* Helleres Rot für besseren Kontrast */
    }
    
    /* Header background and styling */
    header {
        background: var(--color-bg-primary) !important;
        border-bottom-color: var(--color-border-light) !important;
        box-shadow: 0 2px 4px rgba(255,255,255,0.1) !important;
    }
    
    /* Header links */
    header a {
        color: var(--color-text-primary);
    }
    
    /* Button colors for dark mode */
    a.btn-gray,
    button.btn-gray {
        background: #2d2d2d;
        border-color: #6c757d;
        color: #e9ecef; /* Helles Grau für Dark Mode */
    }
    
    a.btn-blue,
    button.btn-blue {
        background: #1a3a52;
        border-color: #6b9bd3;
        color: #b3d7ff; /* Helles Blau für Dark Mode */
    }
    
    a.btn-green,
    button.btn-green {
        background: #1a3a1a;
        border-color: #7db33f;
        color: #a8d88a; /* Noch helleres Grün für Dark Mode */
    }
    
    a.btn-red,
    button.btn-red {
        background: #3a1a1a;
        border-color: #dc3545;
        color: #ffb3ba; /* Helleres Rot für Dark Mode */
    }
    
    /* Fix for insight boxes */
    .insight-box {
        color: var(--color-text-primary);
    }
    
    /* Fix for sections */
    section {
        color: var(--color-text-primary);
    }
    
    /* Fix for content areas */
    .content {
        color: var(--color-text-primary);
    }
    
    /* === ARTICLE DARK MODE OVERRIDES === */
    .article-card {
        box-shadow: var(--shadow-lg);
        border: 1px solid var(--color-border-light);
    }
    
    /* Article marker für Dark Mode */
    .article-marker.ungelesen {
        background: rgba(107, 155, 211, 0.2);  /* --color-primary mit Transparenz */
        border: 1px solid var(--color-primary);
        color: var(--color-primary-light);
    }
    
    .article-marker.gelesen {
        background: rgba(125, 179, 63, 0.2);  /* --color-accent mit Transparenz */
        border: 1px solid var(--color-accent);
        color: var(--color-accent-hover);
    }
    
    /* Article content text colors */
    .article-content h3 {
        color: var(--color-primary);  /* Verwendet das aufgehellte Primary aus tokens */
    }
    
    .article-content p {
        color: var(--color-text-secondary);  /* #d4d4d4 für guten Kontrast */
    }
    
    /* Article title hover */
    .article-title-link:hover h3 {
        color: var(--color-primary-hover);  /* #8bb2e0 für besseren Kontrast */
    }
    
    /* Optional: Subtle hover effect for dark mode */
    .article-card:hover {
        border-color: var(--color-border-medium);
        background-color: var(--color-bg-secondary);
    }
}

/* Error Pages */
.error-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-code {
    font-size: 8rem;
    font-weight: 700;
    color: var(--color-error, #dc3545);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.error-page h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.error-message {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--color-text-muted);
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.error-suggestions {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
}

.suggestion-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
}

.suggestion-list li {
    margin: 0.5rem 0;
}

.suggestion-list a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.suggestion-list a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

.error-details {
    background: var(--color-bg-secondary);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin: 2rem 0;
}

.error-contact {
    margin-top: 3rem;
}

.error-contact a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
}

.error-contact a:hover {
    text-decoration: underline;
}

/* Responsive Error Pages */
@media (max-width: 768px) {
    .error-code {
        font-size: 5rem;
    }
    
    .error-page h1 {
        font-size: 1.75rem;
    }
    
    .error-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 2rem auto;
    }
    
    .error-actions .button {
        width: 100%;
    }
}

/* ===== DETAILS/SUMMARY STYLES ===== */
/* Styles wurden in .insight-box integriert */

/* ===== LEVEL SELECTOR STYLES (zugangsebenen-test) ===== */
.level-selector {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0.5rem;
    border: 2px solid var(--color-primary);
    background-color: var(--color-bg-primary);
    color: var(--color-primary);
}

.level-selector:hover {
    background-color: var(--color-primary);
    color: var(--color-text-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.level-selector.active {
    background-color: var(--color-primary);
    color: var(--color-text-white);
}

/* ===== ADDITIONAL UTILITY STYLES ===== */
.leaf {
    list-style-type: none;
    position: relative;
    padding-left: 1.5rem;
}

.leaf::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}

/* User auth form styles */
.user-auth-form {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.user-auth-form h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

/* ===== ACCESS LEVELS & PROTECTED CONTENT ===== */
/* Hauptcontainer für Sections mit Zugriffseinschränkung */
.access-restricted {
    position: relative;
    margin: var(--spacing-xl) 0;
}

/* Geblurrter Text innerhalb eines Paragraphen */
.blur-text {
    filter: blur(5px);
    opacity: 0.7;
    user-select: none;
    pointer-events: none;
}

/* Access Button für eingeschränkte Inhalte */
.access-button {
    margin-top: 1rem;
    display: block;
    width: fit-content;
}

/* Container für das Anmelde-Formular in geschützten Bereichen */
.protected-section-login {
    background: var(--color-bg-secondary);
    border: 2px solid var(--color-success);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    max-width: 500px;
}

/* Form Styling */
.section-login-form {
    margin: 0;
}

.section-login-form .form-group {
    margin-bottom: 15px;
}

.section-login-form .form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--color-border-medium);
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.15s ease-in-out;
}

.section-login-form .form-control:focus {
    outline: none;
    border-color: var(--color-success);
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Checkbox Styling */
.section-login-form .form-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.section-login-form .form-check-input {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.section-login-form .form-check-label {
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
}

.section-login-form .form-check-label a {
    color: var(--color-success);
    text-decoration: underline;
}

/* Button Styling */
.section-login-form .btn-green {
    background-color: var(--color-success);
    color: var(--color-text-white);
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
    width: 100%;
    margin-top: 10px;
}

.section-login-form .btn-green:hover:not(:disabled) {
    background-color: var(--color-success-hover);
}

.section-login-form .btn-green:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Status Messages */
.form-status {
    margin-top: 15px;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
}

.form-status.success {
    background-color: var(--color-success-bg);
    border: 1px solid var(--color-success-border);
    color: var(--color-success-text);
}

.form-status.error {
    background-color: var(--color-error-bg);
    border: 1px solid var(--color-error-border);
    color: var(--color-error-text);
}

/* Responsives Design für mobile Geräte */
@media (max-width: 768px) {
    .access-restricted {
        margin: var(--spacing-lg) 0;
    }
    
    .protected-section-login {
        padding: 15px;
        margin: 15px -15px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .section-login-form .form-control {
        font-size: 16px; /* Verhindert Zoom auf iOS */
    }
}

/* ===== FONT AWESOME INTEGRATION ===== */
/* Font Face Definitions */
@font-face {
    font-family: 'Font Awesome 6 Free';
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url('../fonts/fontawesome/webfonts/fa-regular-400.woff2') format('woff2'),
         url('../fonts/fontawesome/webfonts/fa-regular-400.ttf') format('truetype');
}

@font-face {
    font-family: 'Font Awesome 6 Free';
    font-style: normal;
    font-weight: 900;
    font-display: block;
    src: url('../fonts/fontawesome/webfonts/fa-solid-900.woff2') format('woff2'),
         url('../fonts/fontawesome/webfonts/fa-solid-900.ttf') format('truetype');
}

@font-face {
    font-family: 'Font Awesome 6 Brands';
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url('../fonts/fontawesome/webfonts/fa-brands-400.woff2') format('woff2'),
         url('../fonts/fontawesome/webfonts/fa-brands-400.ttf') format('truetype');
}

/* Base Classes */
.fa,
.fas,
.far,
.fab {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}

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

.far {
    font-family: 'Font Awesome 6 Free';
    font-weight: 400;
}

.fab {
    font-family: 'Font Awesome 6 Brands';
    font-weight: 400;
}

/* Icon Definitions - Only the ones we need */
.fa-robot::before { content: "\f544"; }
.fa-users::before { content: "\f0c0"; }
.fa-gears::before { content: "\f085"; }
.fa-bullseye::before { content: "\f140"; }
.fa-globe::before { content: "\f0ac"; }
.fa-magnifying-glass::before { content: "\f002"; }
.fa-lightbulb::before { content: "\f0eb"; }
.fa-rotate::before { content: "\f2f1"; }
.fa-phone::before { content: "\f095"; }
.fa-heart::before { content: "\f004"; }

/* Size Utilities */
.fa-lg {
    font-size: 1.33333em;
    line-height: 0.75em;
    vertical-align: -.0667em;
}

.fa-xl {
    font-size: 1.5em;
    line-height: 0.66667em;
    vertical-align: -.075em;
}

.fa-2xl {
    font-size: 2em;
    line-height: 0.5em;
    vertical-align: -.1em;
}

/* Fixed Width */
.fa-fw {
    text-align: center;
    width: 1.25em;
}

/* Animation */
@keyframes fa-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.fa-spin {
    animation: fa-spin 2s infinite linear;
}

/* Custom styles for Karl Kratz site */
.challenge-option .fa {
    margin-right: 0.5rem;
    color: inherit;
}

.insight-box .fa {
    vertical-align: middle;
}

/* ===== AUTHENTICATION SECTION ===== */

/* Auth section in header */
.auth-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

/* User menu styling */
.user-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    padding: 0.25rem 0.5rem;
    background: var(--color-bg-secondary);
    border-radius: var(--radius-sm);
}

.user-info .fa {
    color: var(--color-primary);
}

/* Auth buttons */
.btn[data-auth-action="logout"] {
    padding: 0.25rem 0.5rem;
    font-size: var(--font-size-sm);
}

.btn[data-auth-forbidden="true"],
.btn[data-auth-level] {
    padding: 0.5rem 1rem;
}

/* Show login elements by default (for when auth system is disabled) */
[data-auth-required="true"],
[data-auth-level],
[data-auth-button="auth-required"],
[data-auth-button="logout"] {
    display: none;
}

[data-auth-forbidden="true"],
[data-auth-button="login"] {
    display: block;
}

/* Responsive auth section */
@media (max-width: 768px) {
    .auth-section {
        flex-direction: column;
        gap: 0.5rem;
        margin-left: 0;
        margin-top: 1rem;
    }

    .user-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .user-info {
        font-size: var(--font-size-xs);
    }
}

/* Auth status indicators */
.auth-section .btn:hover {
    transform: translateY(-1px);
    transition: transform 0.2s ease;
}

/* Loading state for auth elements */
.auth-section.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* ===== KI-EBOOK ÜBERSICHT SEITE ===== */
.dimensions-overview {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin: 3rem 0;
}

.dimension-overview-card {
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 2rem;
    background: var(--color-background-light);
    transition: all 0.3s ease;
}

.dimension-overview-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dimension-overview-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.dimension-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-top: 0.25rem;
}

.dimension-info h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.75rem;
}

.dimension-info h2 a {
    color: var(--color-text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.dimension-info h2 a:hover {
    color: var(--color-primary);
}

.dimension-description {
    color: var(--color-text-secondary);
    font-style: italic;
    margin: 0;
}

.dimension-intro {
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(var(--color-primary-rgb), 0.05);
    border-left: 4px solid var(--color-primary);
    border-radius: 0 6px 6px 0;
}

.modules-summary h3 {
    margin: 0 0 1rem 0;
    color: var(--color-text-primary);
    font-size: 1.2rem;
}

.modules-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.module-summary-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-background);
    text-decoration: none;
    transition: all 0.2s ease;
}

.module-summary-card:hover {
    border-color: var(--color-primary);
    background: rgba(var(--color-primary-rgb), 0.05);
}

.module-summary-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.module-summary-header i {
    color: var(--color-primary);
    font-size: 1.1rem;
}

.module-title {
    color: var(--color-text-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

.learning-sequence {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.sequence-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(var(--color-primary-rgb), 0.1);
    border-radius: 8px;
    flex: 1;
    min-width: 200px;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: var(--color-primary);
    color: var(--color-text-white);
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.9rem;
}

.status-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ribbon.compact, .ribbon-success.compact {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    min-width: auto;
}

.footer-nav-container {
    display: flex;
    justify-content: space-between;
}

/* ===== DECISION CALCULATOR ===== */
.container {
    max-width: 900px;
    margin: 2rem auto;
    background: var(--color-bg-primary);
    box-shadow: var(--shadow-md);
    border-radius: 8px;
    overflow: hidden;
}

.header {
    padding: 30px;
    border-bottom: 1px solid var(--color-border-light);
    background: var(--color-bg-secondary);
}

.header h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text-primary);
}

.subtitle {
    color: var(--color-text-secondary);
    font-size: 16px;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    min-height: 500px;
}

.controls {
    padding: 30px;
    border-right: 1px solid var(--color-border-light);
}

.results {
    padding: 30px;
    background: var(--color-bg-secondary);
}

.dimension {
    margin-bottom: 35px;
}

.dimension-question {
    font-size: 15px;
    color: var(--color-text-primary);
    margin-bottom: 10px;
    font-weight: 500;
}

.dimension-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
}

.dimension-title {
    font-weight: 400;
    font-size: 14px;
    color: var(--color-text-secondary);
}

.dimension-status {
    font-size: 14px;
    font-weight: 500;
    color: #343a40;
    text-align: right;
    min-width: 220px;
}

.slider-container {
    position: relative;
    margin-bottom: 8px;
}

.slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: #e9ecef;
    outline: none;
    border-radius: 3px;
    transition: background 0.3s;
}

.slider:hover {
    background: #dee2e6;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--color-border-dark);
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s;
}

.slider::-webkit-slider-thumb:hover {
    background: var(--color-bg-dark);
    transform: scale(1.2);
}

.slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--color-border-dark);
    cursor: pointer;
    border-radius: 50%;
    border: none;
    transition: all 0.2s;
}

.slider::-moz-range-thumb:hover {
    background: #343a40;
    transform: scale(1.2);
}

.scale-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--color-text-muted);
}

.recommendation {
    position: sticky;
    top: 20px;
}

.recommendation-box {
    padding: 20px;
    background: var(--color-bg-primary);
    border-radius: 4px;
    margin-bottom: 20px;
    border: 2px solid var(--color-border-light);
    transition: all 0.3s ease;
}

.recommendation-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.recommendation-subtitle {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
}

.recommendation-details {
    font-size: 14px;
    line-height: 1.8;
    list-style: none;
    padding: 0;
}

.recommendation-details li {
    margin-left: 20px;
    margin-bottom: 8px;
    position: relative;
}

.recommendation-details li:before {
    content: "•";
    position: absolute;
    left: -20px;
    color: var(--color-text-secondary);
}

.recommendation-details strong {
    color: var(--color-error);
    font-weight: 600;
}

/* Empfehlungsfarben */
.rec-planning {
    border-color: var(--color-primary);
}

.rec-planning .recommendation-title {
    color: var(--color-primary);
}

.rec-experiment {
    border-color: var(--color-success);
}

.rec-experiment .recommendation-title {
    color: var(--color-success);
}

.rec-hybrid {
    border-color: var(--color-warning);
}

.rec-hybrid .recommendation-title {
    color: var(--color-warning);
}

.score-breakdown {
    padding: 20px;
    background: var(--color-bg-primary);
    border-radius: 4px;
}

.score-breakdown-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--color-text-secondary);
}

.score-bar {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.score-label {
    font-size: 13px;
    width: 90px;
    color: var(--color-text-secondary);
    font-weight: 500;
}

.score-progress {
    flex: 1;
    height: 20px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin-right: 10px;
}

.score-fill {
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 3px;
}

.score-fill-planning {
    background: var(--color-primary);
}

.score-fill-experiment {
    background: var(--color-success);
}

.score-percentage {
    font-size: 13px;
    font-weight: 600;
    min-width: 40px;
    text-align: right;
}

/* Mobile Navigation */
.nav-dropdown {
    background: var(--color-bg-primary) !important;
    border: 1px solid var(--color-border-medium) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

.nav-dropdown-item {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: var(--color-text-primary);
    border-bottom: 1px solid var(--color-border-light);
    transition: background-color 0.2s;
}

.nav-dropdown-item:hover {
    background-color: var(--color-bg-secondary);
    text-decoration: none;
}

.nav-dropdown-item:last-child {
    border-bottom: none;
}

.nav-dropdown-item i {
    margin-right: 8px;
    width: 16px;
}

/* Dark mode specific adjustments */
@media (prefers-color-scheme: dark) {
    .nav-dropdown {
        box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
    }
}

[data-theme="dark"] .nav-dropdown {
    box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
}

@media (max-width: 768px) {
    .nav-desktop {
        display: none !important;
    }
    
    .nav-mobile {
        display: block !important;
    }
    
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .controls {
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }
    
    .recommendation {
        position: static;
    }
}

/* ===== AUSTAUSCH / FORUM COMPONENTS ===== */
.austausch-container {
    max-width: 800px;
    margin: 0 auto;
    padding: clamp(1rem, 5vw, 2rem);
}

.austausch-box {
    border: 1px solid var(--color-border-light);
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
}

.austausch-user-info-box {
    border: 1px solid var(--color-border-light);
    padding: 0.75rem;
    margin-bottom: 1rem;
    background: var(--color-bg-secondary);
    color: var(--color-text-primary);
}

.austausch-box p {
    margin: 0 0 0.5rem 0;
}

.austausch-box p:last-child {
    margin: 0;
}

.austausch-box small {
    color: var(--color-text-secondary);
}

.austausch-error-box {
    border: 1px solid var(--color-error);
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    background: var(--color-bg-secondary);
    color: var(--color-text-primary);
}

.austausch-error-box p {
    margin: 0 0 0.5rem 0;
}

.austausch-error-box p:last-child {
    margin: 0;
}

/* Austausch Forms */
.austausch-input,
.austausch-textarea {
    width: 100%;
    max-width: 500px;
    font-family: inherit;
    font-size: inherit;
    padding: 0.5rem;
    border: 1px solid var(--color-border-light);
    border-radius: 4px;
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
}

.austausch-textarea {
    resize: vertical;
}

/* Favorite star */
.favorite-star {
    cursor: pointer;
}

.favorite-star-large {
    cursor: pointer;
    font-size: 1.2em;
}

/* Reply indicator */
.reply-indicator {
    display: none;
    background: var(--color-bg-secondary);
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border-left: 3px solid var(--color-primary);
    color: var(--color-text-primary);
}

.reply-cancel-btn {
    margin-left: 1rem;
    border: none;
    background: none;
    cursor: pointer;
}

.parent-message-quote {
    background: var(--color-bg-secondary);
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border-left: 3px solid var(--color-primary);
    color: var(--color-text-primary);
}

/* ===== PROFILE PAGE COMPONENTS ===== */
.profile-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border-light);
}

.profile-section:last-of-type {
    border-bottom: none;
}

.profile-section h3 {
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    font-size: 1.25rem;
}

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

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

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

.form-group-small {
    max-width: 150px;
}

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

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border-light);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s;
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control.error {
    border-color: var(--color-error);
}

/* Dark Mode Support for form-control */
[data-theme="dark"] .form-control {
    background: var(--color-bg-secondary, #2a2a2a);
    color: var(--color-text-primary, #f5f5f5);
    border-color: var(--color-border, #404040);
}

[data-theme="dark"] .form-control:focus {
    border-color: var(--color-primary, #4a9eff);
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.2);
}

.form-help {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }
}

.profile-section-logout {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border-light);
}

/* ===== SITEMAP NAVIGATION COMPONENTS ===== */
.sitemap-navigation {
    margin-bottom: 2rem;
}

.sitemap-filter {
    width: 100%;
    max-width: 500px;
    padding: 0.75rem;
    border: 1px solid var(--color-border-light);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s;
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
}

.sitemap-filter:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.sitemap-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--color-border-light);
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
    margin-bottom: 2rem;
}

.sitemap-table thead {
    background: var(--color-bg-secondary);
}

.sitemap-table th {
    text-align: left;
    vertical-align: top;
    padding: 0.5rem;
    border: 1px solid var(--color-border-light);
    font-weight: 600;
}

.sitemap-table td {
    text-align: left;
    vertical-align: top;
    padding: 0.5rem;
    border: 1px solid var(--color-border-light);
}

.sitemap-table th.sortable {
    cursor: pointer;
    user-select: none;
}

.sitemap-table th.sortable:hover {
    background: var(--color-bg-tertiary);
}

.sitemap-table tbody tr:hover {
    background: var(--color-bg-secondary);
}

.sitemap-table a {
    color: var(--color-primary);
    text-decoration: none;
}

.sitemap-table a:hover {
    text-decoration: underline;
}

.sitemap-table tr.hidden {
    display: none;
}
/* Austausch Favorite Star */
.favorite-star {
    cursor: pointer;
    font-size: 1.2em;
    color: var(--color-text-tertiary, #ccc);
    transition: color 0.2s ease;
    user-select: none;
}

.favorite-star:hover {
    color: var(--color-warning, #f59e0b);
}

.favorite-star.favorited {
    color: var(--color-warning, #f59e0b);
}

.favorite-star-large {
    font-size: 0.9em;
}

/* ================================================
   STANDARD-TABELLEN-DESIGN
   Verwendet für Vergleiche, Metriken, strukturierte Daten
   ================================================ */

.content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.content table thead {
    background: var(--color-surface-secondary, #f8f9fa);
}

.content table th {
    border: 1px solid var(--color-border, #ddd);
    padding: 12px;
    text-align: left;
    font-weight: 600;
    background: var(--color-surface-secondary, #f4f4f4);
    color: var(--color-text-primary, #333);
}

.content table td {
    border: 1px solid var(--color-border, #ddd);
    padding: 10px 12px;
    vertical-align: top;
    line-height: 1.6;
}

.content table tbody tr:hover {
    background: var(--color-surface-hover, #f5f5f5);
}

.content table tbody tr:nth-child(even) {
    background: var(--color-surface-tertiary, #fafafa);
}

.content table tbody tr:nth-child(even):hover {
    background: var(--color-surface-hover, #f5f5f5);
}

/* Dark Mode */
[data-theme="dark"] .content table th {
    background: var(--color-surface-secondary, #2a2a2a);
    border-color: var(--color-border, #404040);
    color: var(--color-text-primary, #ffffff);
}

[data-theme="dark"] .content table td {
    border-color: var(--color-border, #404040);
}

[data-theme="dark"] .content table tbody tr:nth-child(even) {
    background: var(--color-surface-tertiary, #1e1e1e);
}

[data-theme="dark"] .content table tbody tr:hover {
    background: var(--color-surface-hover, #333);
}

/* ================================================
   KALENDER-TABELLE (KI-Gemeinschaft Termine)
   Spezifische Styles für Termin-Übersichten
   ================================================ */

.kalender-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.kalender-table thead {
    background: var(--color-surface-secondary, #f8f9fa);
}

.kalender-table th {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
    vertical-align: top;
    font-weight: 600;
    background: var(--color-surface-secondary, #f4f4f4);
    color: var(--color-text-primary, #333);
}

.kalender-table td {
    border: 1px solid #ddd;
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
    line-height: 1.6;
}

.kalender-table tbody tr:hover {
    background: var(--color-surface-hover, #f5f5f5);
}

.kalender-table tbody tr:nth-child(even) {
    background: var(--color-surface-tertiary, #fafafa);
}

.kalender-table tbody tr:nth-child(even):hover {
    background: var(--color-surface-hover, #f5f5f5);
}

/* Checkbox-Spalte zentrieren */
.kalender-table td input[type="checkbox"] {
    cursor: pointer;
}

.kalender-table td input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* Dark Mode */
[data-theme="dark"] .kalender-table th {
    background: var(--color-surface-secondary, #2a2a2a);
    border-color: var(--color-border, #404040);
    color: var(--color-text-primary, #ffffff);
}

[data-theme="dark"] .kalender-table td {
    border-color: var(--color-border, #404040);
}

[data-theme="dark"] .kalender-table tbody tr:nth-child(even) {
    background: var(--color-surface-tertiary, #1e1e1e);
}

[data-theme="dark"] .kalender-table tbody tr:hover {
    background: var(--color-surface-hover, #333);
}

/* ===== COMPARISON LIST (Claude Code vs ChatGPT) ===== */
.comparison-list {
    list-style: decimal;
    padding-left: 1.5rem;
}

.comparison-list li {
    margin-bottom: 2rem;
}

.comparison-list .problem {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.comparison-list .solution {
    display: block;
    margin-bottom: 0.5rem;
}

/* ===== RAG CHAT INTERFACE ===== */
.rag-chat-container {
    margin-top: 2rem;
}

.chat-history {
    margin-bottom: 1.5rem;
}

.chat-input-container {
    margin-bottom: 1.5rem;
}

.chat-model-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    align-items: center;
}

.chat-model-row select {
    padding: 0.5rem;
    border: 1px solid var(--color-border, #ddd);
    border-radius: var(--radius-sm, 4px);
    background-color: var(--color-bg-primary, #fff);
    color: var(--color-text-primary, #333);
}

.chat-form-row {
    display: flex;
    gap: 0.5rem;
}

.chat-form-row input[type="text"] {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--color-border, #ddd);
    border-radius: var(--radius-sm, 4px);
    font-size: 1rem;
    background-color: var(--color-bg-primary, #fff);
    color: var(--color-text-primary, #333);
}

.chat-form-row input[type="text"]::placeholder {
    color: var(--color-text-muted, #999);
}

.chat-examples ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 0.5rem 0 0 0;
}

.chat-examples li {
    margin-bottom: 0.5rem;
}

.chat-examples a {
    color: var(--color-primary);
    cursor: pointer;
}

.chat-examples a:hover {
    text-decoration: underline;
}

.chat-sources {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border, #ddd);
}

.chat-sources ul {
    margin: 0.5rem 0 0 0;
}

/* Loading Animation */
.chat-loading-dots {
    display: flex;
    gap: 0.25rem;
    font-size: 2rem;
    color: var(--color-primary);
    padding: 1rem;
    margin-bottom: 1rem;
}

.chat-loading-dots .dot {
    animation: chat-bounce 1.4s infinite ease-in-out both;
}

.chat-loading-dots .dot:nth-child(1) {
    animation-delay: -0.32s;
}

.chat-loading-dots .dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes chat-bounce {
    0%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
}

/* ===== UTILITY CLASSES - INLINE STYLE REPLACEMENTS (Task #29) ===== */

/* --- Layout Utilities --- */
.u-hidden { display: none; }
.u-block { display: block; }
.u-flex { display: flex; }
.u-flex-center { display: flex; align-items: center; justify-content: center; }
.u-flex-between { display: flex; align-items: center; justify-content: space-between; }
.u-flex-column { display: flex; flex-direction: column; }
.u-flex-grow { flex: 1 1 auto; }
.u-flex-shrink-0 { flex: 0 0 auto; }
.u-text-center { text-align: center; }
.u-text-left { text-align: left; }

/* --- Spacing Utilities --- */
.u-mt-0 { margin-top: 0; }
.u-mt-1 { margin-top: 0.5rem; }
.u-mt-2 { margin-top: 1rem; }
.u-mt-3 { margin-top: 1.5rem; }
.u-mt-4 { margin-top: 2rem; }
.u-mb-0 { margin-bottom: 0; }
.u-mb-1 { margin-bottom: 0.5rem; }
.u-mb-2 { margin-bottom: 1rem; }
.u-mb-3 { margin-bottom: 1.5rem; }
.u-mx-auto { margin-left: auto; margin-right: auto; }
.u-my-4 { margin-top: 4rem; margin-bottom: 4rem; }
.u-my-5 { margin-top: 5rem; margin-bottom: 5rem; }
.u-mb-4 { margin-bottom: 4rem; }
.u-mb-n7 { margin-bottom: -7rem; }
.u-p-0 { padding: 0; }
.u-p-1 { padding: 0.5rem; }
.u-p-2 { padding: 1rem; }
.u-p-3 { padding: 1.5rem; }
.u-pt-1 { padding-top: 1rem; }
.u-pt-15 { padding-top: 1.5rem; }
.u-pb-1 { padding-bottom: 1rem; }

/* --- Font Utilities --- */
.u-font-sm { font-size: var(--font-size-sm, 0.875rem); }
.u-font-lg { font-size: 1.2em; }

/* --- KI-Seminar Specific (Task #123) --- */
.seminar-slot-info { font-size: var(--font-size-sm, 0.875rem); margin: 0.5rem 0; }
.seminar-button-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }
.seminar-button { flex: 1; min-width: 200px; padding: 1rem; text-align: center; }
.seminar-booking-details { margin-top: 2rem; }
.seminar-price { font-size: 1.2em; margin: 1rem 0; }
.seminar-cta-wrapper { text-align: center; margin-top: 1.5rem; }
.seminar-cta-link { font-size: 1.1em; }

/* --- Ebook Tables (Task #124) --- */
.ebook-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}
.ebook-table--wide { margin: 20px 0; }
.ebook-table th,
.ebook-table td {
    border: 1px solid var(--color-border, #ddd);
    padding: 10px;
    vertical-align: top;
}
.ebook-table th {
    background: var(--color-bg-secondary, #f4f4f4);
}
.ebook-table th--half { width: 50%; }
.ebook-table__list {
    margin: 0;
    padding-left: 20px;
}

/* --- Ebook Interactive Canvas (Task #124) --- */
.searchlight-container {
    position: relative;
    width: 100%;
    height: 600px;
    background: #2c2c2c;
    overflow: hidden;
    cursor: none;
}
.searchlight-canvas {
    display: block;
    width: 100%;
    height: 100%;
}
.searchlight-info-panel {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--color-overlay-dark);
    padding: 20px;
    border-radius: 8px;
    max-width: 300px;
    z-index: 10;
    backdrop-filter: blur(10px);
}
.searchlight-info-panel__title {
    font-size: 18px;
    margin: 0 0 10px 0;
    color: #ffffff;
    font-weight: 600;
}
.searchlight-info-panel__text {
    font-size: 14px;
    line-height: 1.5;
    color: #cccccc;
    margin: 0;
}
.searchlight-instruction {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-overlay-dark);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    color: #cccccc;
    z-index: 10;
    backdrop-filter: blur(10px);
    transition: opacity 0.5s;
}

@media (max-width: 768px) {
    .searchlight-container { height: 400px; }
    .searchlight-info-panel {
        max-width: 200px;
        padding: 15px;
    }
    .searchlight-info-panel__title { font-size: 16px; }
    .searchlight-info-panel__text { font-size: 12px; }
    .searchlight-instruction {
        font-size: 12px;
        padding: 8px 16px;
    }
}

/* --- Header Component (Sticky) --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--color-bg-primary, white);
    border-bottom: 1px solid var(--color-border, #eee);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    width: 100%;
}

.site-header__logo {
    flex: 0 0 auto;
    order: 1;
}

.site-header__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex: 1 1 auto;
    order: 2;
}

.site-header__nav-text {
    font-weight: 400;
    color: var(--color-text-primary);
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    order: 3;
}

.nav-desktop {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- User Navigation --- */
.user-navigation {
    padding: 15px 0;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--color-border, #e0e0e0);
    text-align: center;
}

/* --- Form Elements --- */
.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border, #d1d5db);
    border-radius: 4px;
    font-size: 1rem;
    background: var(--color-bg-primary, #fff);
    color: var(--color-text-primary, #333);
}

.form-input--code {
    font-size: 1.5rem;
    font-family: 'Courier New', Monaco, monospace;
    letter-spacing: 0.5rem;
    text-align: center;
}

.form-message {
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
}

.form-message--error {
    background: var(--color-error-bg, #fee);
    border: 1px solid var(--color-error-border, #fcc);
    color: var(--color-error, #dc2626);
}

.form-message--success {
    background: var(--color-success-bg, #efe);
    border: 1px solid var(--color-success-border, #cfc);
    color: var(--color-success, #16a34a);
}

/* --- Angebots-Übersicht Grid --- */
.angebote-grid {
    margin: 40px 0;
}

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

.angebote-header {
    text-align: center;
    margin-bottom: 30px;
}

.angebote-card {
    margin: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.angebote-card__icon {
    text-align: center;
    margin-bottom: 15px;
}

.angebote-card__icon i {
    font-size: 40px;
    color: var(--color-success, #28a745);
    margin-bottom: 10px;
}

.angebote-card__title {
    margin: 0;
    font-size: 18px;
    color: var(--color-text-primary, #333);
}

.angebote-card__desc {
    text-align: center;
    font-size: 14px;
    color: var(--color-text-secondary, #666);
    margin-bottom: 15px;
}

.angebote-card__features {
    margin: 0 0 15px 20px;
    padding: 0;
    font-size: 14px;
    flex-grow: 1;
}

.angebote-card__features li {
    margin-bottom: 5px;
}

.angebote-card__price {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    color: var(--color-success, #28a745);
    margin: 15px 0;
}

.angebote-card__cta {
    text-align: center;
    margin-top: auto;
}

/* --- Button Utilities --- */
.btn--inline {
    display: inline-block;
    text-decoration: none;
}

.btn--block {
    display: block;
    width: 100%;
}

/* --- Ebook Download Component --- */
.ebook-download {
    text-align: center;
}

.ebook-download p {
    margin: 0 0 10px 0;
}

.ebook-download__status {
    margin-top: 10px;
    font-style: italic;
    color: var(--color-text-secondary, #666);
}

/* --- Product Access Notice Utilities --- */
.product-notice {
    max-width: 600px;
    margin: 2rem auto;
}

.product-notice__benefits {
    text-align: left;
    margin-left: 1.5rem;
}

.product-notice__cta {
    margin-top: 2rem;
}

.product-notice__cta .btn {
    font-size: 1.1rem;
    padding: 1rem 2rem;
}

.product-notice__footer {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--color-text-secondary, #666);
}

/* --- KI-Seminar CTA Buttons --- */
.cta-btn--primary {
    display: inline-block;
    padding: var(--space-2, 0.5rem) var(--space-4, 1rem);
    background: var(--color-primary);
    color: var(--color-text-white);
    text-decoration: none;
    border-radius: var(--border-radius-md, 4px);
    margin-top: var(--space-2, 0.5rem);
}

.cta-btn--success {
    display: inline-block;
    padding: var(--space-2, 0.5rem) var(--space-4, 1rem);
    background: var(--color-success);
    color: var(--color-text-white);
    text-decoration: none;
    border-radius: var(--border-radius-md, 4px);
    margin-top: var(--space-3, 0.75rem);
}

/* --- JS Toggle Utility (for display:none controlled by JS) --- */
.js-hidden { display: none; }

/* --- Ebook Download Generic Component --- */
.ebook-download-generic {
    text-align: center;
    margin: 30px 0;
}

.ebook-download-generic .btn {
    margin-top: 15px;
}

/* --- Canvas Responsive Utility --- */
.canvas-responsive {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ===== PURCHASE FORMS - Task #122 ===== */

/* --- Form Layout Utilities --- */
.purchase-form-section {
    margin-bottom: 20px;
}

.purchase-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.purchase-form-grid--plz-city {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 15px;
    margin-bottom: 20px;
}

.purchase-form-instructions {
    margin-bottom: 20px;
    color: var(--color-text-secondary, #555);
}

/* --- Honeypot Field (spam protection) --- */
.honeypot-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

/* --- Checkbox Row --- */
.checkbox-row {
    margin-top: 10px;
    display: flex;
    align-items: center;
}

.checkbox-row input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-row label {
    font-size: 14px;
    cursor: pointer;
}

/* --- Conditional Container (JS-toggled) --- */
.conditional-container {
    margin-top: 15px;
}

/* --- Help Text --- */
.form-help-text {
    color: var(--color-text-secondary, #555);
    display: block;
    margin-top: 5px;
    font-size: 0.875rem;
}

/* --- Required Indicator --- */
.required-star {
    color: var(--color-error, #dc3545);
}

/* --- Calendar Components --- */
.calendar-wrapper {
    margin-bottom: 30px;
}

.calendar-grid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .calendar-grid-container {
        grid-template-columns: 2fr 1fr;
    }
}

.calendar-view {
    border: 1px solid var(--color-border, #ddd);
    border-radius: 4px;
    padding: 15px;
    background: var(--color-bg-primary, white);
}

.calendar-months-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.calendar-month-header {
    font-weight: bold;
    text-align: center;
    margin-bottom: 8px;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-bottom: 3px;
}

.calendar-weekday {
    text-align: center;
    font-weight: bold;
    color: var(--color-text-secondary, #666);
    padding: 3px 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
}

.calendar-day {
    padding: 8px;
    text-align: center;
    border: 1px solid var(--color-border-light, #eee);
    border-radius: 3px;
    background: var(--color-bg-primary, white);
    min-height: 32px;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.calendar-day--empty {
    padding: 8px;
}

.calendar-day--past {
    background: var(--color-bg-tertiary, #f5f5f5);
}

.calendar-day--available {
    border-color: var(--color-success, #28a745);
    background: var(--color-success-bg, #e8f5e9);
    cursor: pointer;
}

.calendar-day--available:hover {
    background: var(--color-success-hover, #c8e6c9);
}

.calendar-day--selected {
    background: var(--color-success-active, #a5d6a7);
    border-color: var(--color-success-dark, #1e7e34);
}

/* --- Timeslots View --- */
.timeslots-view {
    border: 1px solid var(--color-border, #ddd);
    border-radius: 4px;
    padding: 15px;
    background: var(--color-bg-primary, white);
}

.timeslots-header {
    font-weight: bold;
    text-align: center;
    margin-bottom: 8px;
}

.timeslots-label {
    text-align: center;
    font-weight: bold;
    color: var(--color-text-secondary, #666);
    padding: 3px 0;
    margin-bottom: 8px;
}

.timeslots-container {
    display: block;
}

.timeslot {
    padding: 8px;
    border: 1px solid var(--color-success, #28a745);
    border-radius: 3px;
    cursor: pointer;
    text-align: center;
    background: var(--color-success-bg, #e8f5e9);
    transition: all 0.2s ease;
    margin-bottom: 4px;
    min-height: 32px;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeslot:hover {
    background: var(--color-success-hover, #c8e6c9);
}

.timeslot--selected {
    border-color: var(--color-success-dark, #1e7e34);
    background: var(--color-success-active, #a5d6a7);
}

/* --- No Selection Placeholder --- */
.no-selection-placeholder {
    text-align: center;
    color: var(--color-text-muted, #999);
    padding: 40px 20px;
}

.no-selection-placeholder i {
    font-size: 40px;
    opacity: 0.3;
    margin-bottom: 10px;
    display: block;
}

.no-selection-placeholder p {
    margin: 0;
}

/* --- Date Picker (Seminar) --- */
.date-picker-wrapper {
    margin-bottom: 30px;
}

.date-picker-label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 16px;
}

.date-slot {
    padding: 15px;
    margin-bottom: 10px;
    border: 2px solid var(--color-border, #ddd);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--color-bg-primary, white);
}

.date-slot:hover {
    border-color: var(--color-primary, #007bff);
    background: var(--color-primary-bg, #f0f8ff);
}

.date-slot--selected {
    border-color: var(--color-success, #28a745);
    background: var(--color-success-bg, #e8f5e9);
}

.date-slot__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.date-slot__date {
    font-size: 18px;
    font-weight: bold;
    color: var(--color-text-primary, #333);
}

.date-slot__time {
    color: var(--color-text-secondary, #666);
    font-size: 14px;
}

.date-slot__places {
    text-align: right;
}

.date-slot__badge {
    display: inline-block;
    padding: 5px 10px;
    background: var(--color-success, #28a745);
    color: var(--color-text-white);
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
}

/* --- Form Validation Errors --- */
.datetime-selection-error {
    margin-top: 10px;
}

.datetime-selection-error p {
    color: var(--color-error, #dc3545);
    font-weight: bold;
}

.date-selection-error {
    margin-top: 10px;
}

.date-selection-error p {
    color: var(--color-error, #dc3545);
    font-weight: bold;
}

/* --- Field Error States (JS-applied) --- */
.field-error {
    border: 2px solid var(--color-error, #dc3545) !important;
    background: var(--color-error-bg, #fff5f5) !important;
}

.error-message-text {
    display: block;
    color: var(--color-error, #dc3545);
    font-weight: bold;
    margin-top: 5px;
}

/* --- Email Link in Forms --- */
.form-email-link {
    color: var(--color-primary, #007bff);
    font-weight: bold;
}

/* ===== MODULE NOT AVAILABLE COMPONENT ===== */
.module-card-spacing {
    margin-top: var(--space-6, 1.5rem);
}

.module-card-spacing--sm {
    margin-top: var(--space-4, 1rem);
}

.module-content-block {
    margin: var(--space-3, 0.75rem) 0;
}

.module-list {
    margin-left: var(--space-4, 1rem);
    margin-bottom: var(--space-3, 0.75rem);
}

.btn-cta {
    display: inline-block;
    padding: var(--space-2, 0.5rem) var(--space-4, 1rem);
    color: var(--color-text-white);
    text-decoration: none;
    border-radius: var(--border-radius-md, 4px);
    border: none;
    cursor: pointer;
}

.btn-cta--success {
    background: var(--color-success, #28a745);
    margin-top: var(--space-3, 0.75rem);
}

.btn-cta--primary {
    background: var(--color-primary, #007bff);
    margin-top: var(--space-2, 0.5rem);
}

.btn-cta--primary-offset {
    background: var(--color-primary, #007bff);
    margin: var(--space-3, 0.75rem) 0 0 var(--space-3, 0.75rem);
}

/* ===== DATA TABLE UTILITIES ===== */
/* Task #125: Replacing inline styles for table cells */

/* Standard data table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

/* Table cell with standard padding and border */
.data-cell {
    padding: 0.5rem;
    border: 1px solid var(--color-border, #ddd);
}

/* Compact table cell variant */
.data-cell--compact {
    padding: 0.3rem;
    border: 1px solid var(--color-border, #ddd);
}

/* Table cell with left text alignment */
.data-cell--left {
    padding: 0.5rem;
    border: 1px solid var(--color-border, #ddd);
    text-align: left;
}

/* Table header cell */
.data-cell--header {
    padding: 0.5rem;
    border: 1px solid var(--color-border, #ddd);
    font-weight: bold;
    background: var(--color-background-alt, #f5f5f5);
}

/* ===== SPACING UTILITIES ===== */
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mt-30 { margin-top: 30px; }
.m-30 { margin: 30px 0; }

/* ===== TEXT UTILITIES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-error { color: var(--color-error, red); }

/* ===== HORIZONTAL RULE UTILITIES ===== */
.hr-light {
    margin: 30px 0;
    border: none;
    border-top: 1px solid var(--color-border, #ddd);
}

/* ===== FORM UTILITIES ===== */
.form-input-full {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--color-border, #ccc);
    border-radius: 4px;
    font-size: 16px;
}

/* ===== BLOCK LABEL ===== */
.block-label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

/* ===== FORM CONTAINER UTILITIES ===== */
/* Task #125: Form containers and page wrappers */

.page-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
}

.page-container--narrow {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
}

.page-container--wide {
    max-width: 1000px;
    margin: 50px auto;
    padding: 20px;
}

/* Form styling */
.form-card {
    background: var(--color-bg-secondary, #f9f9f9);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--color-border, #ddd);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.form-row--uneven {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 15px;
    margin-bottom: 20px;
}

/* Form input (full width with standard styling) */
.form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--color-border, #ccc);
    border-radius: 4px;
    font-size: 16px;
    background: var(--color-bg-primary, #fff);
    color: var(--color-text-primary, #333);
}

/* Form select (matching input style) */
.form-select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--color-border, #ccc);
    border-radius: 4px;
    font-size: 16px;
    background: var(--color-bg-primary, #fff);
    color: var(--color-text-primary, #333);
}

/* Form helper text */
.form-helper {
    color: var(--color-text-muted, #666);
    font-size: 14px;
    margin-top: 5px;
}

.form-helper--left {
    color: var(--color-text-muted, #666);
    font-size: 14px;
    margin-left: 30px;
}

/* Required field indicator */
.required {
    color: var(--color-error, red);
}

/* Checkbox container */
.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-input {
    margin-right: 10px;
    width: 20px;
    height: 20px;
}

/* Form section divider */
.form-divider {
    margin: 30px 0;
    border: none;
    border-top: 1px solid var(--color-border, #ddd);
}

/* Submit button (primary action) */
.btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--color-success, #28a745);
    color: var(--color-text-white);
    border: none;
    border-radius: 4px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: var(--color-success-hover, #218838);
}

/* Product details box */
.product-details {
    background: var(--color-bg-primary, #fff);
    padding: 15px;
    border-radius: 4px;
    border: 1px solid var(--color-border, #ddd);
    margin-bottom: 20px;
}

.product-description {
    margin: 0;
    color: var(--color-text-muted, #666);
}

.product-price {
    margin: 10px 0 0 0;
    font-size: 24px;
    font-weight: bold;
    color: var(--color-success, #28a745);
}

.product-price-suffix {
    font-size: 14px;
    color: var(--color-text-muted, #666);
}

/* Info footer box */
.info-footer {
    margin-top: 30px;
    text-align: center;
    padding: 20px;
    background: var(--color-bg-secondary, #f0f0f0);
    border-radius: 4px;
}

/* ===== LIST UTILITIES ===== */
/* Task #125: List styling utilities */

.list-unstyled {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.list-inline {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ===== SYS-EBOOK COVER ===== */
.sys-ebook-cover h1 {
    font-size: 1.8rem !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    color: #666 !important;
    font-family: Georgia, 'Times New Roman', serif !important;
    font-weight: 400 !important;
    text-align: center !important;
}

/* ===== SYSEBOOK FEEDBACK COMPONENT ===== */
/* Feedback-Komponente für E-Book Kapitel */

.sysebook-feedback {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--color-bg-secondary, #f8f9fa);
    border: 1px solid var(--color-border, #e0e0e0);
    border-radius: var(--radius-lg, 8px);
}

.sysebook-feedback__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-primary, #333);
    margin: 0 0 1.25rem 0;
}

/* === Rating Section === */
.sysebook-feedback__ratings {
    margin-bottom: 1.5rem;
}

.sysebook-feedback__rating-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border-light, #eee);
    gap: 1rem;
}

.sysebook-feedback__rating-row:last-child {
    border-bottom: none;
}

.sysebook-feedback__rating-label {
    font-size: 0.95rem;
    color: var(--color-text-primary, #333);
}

.sysebook-feedback__rating-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

/* Rating buttons - kompakt, texthoch, inline */
.sysebook-feedback__rating-btn.btn {
    padding: 0.15em 0.5em;
    font-size: 0.85rem;
    font-weight: normal;
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    min-width: 70px;
}

/* Active state für ausgewählte Bewertungen - Standard Grün */
.sysebook-feedback__rating-btn.btn.active {
    background: var(--color-success, #28a745);
    border-color: var(--color-success, #28a745);
    color: #fff;
    font-weight: bold;
}

/* === Comment Section === */
.sysebook-feedback__comment {
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border, #e0e0e0);
}

.sysebook-feedback__comment-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-primary, #333);
    margin-bottom: 0.5rem;
}

.sysebook-feedback__comment-textarea.austausch-textarea {
    max-width: 100%;
    min-height: 100px;
}

.sysebook-feedback__comment-submit.btn {
    margin-top: 0.75rem;
}

/* === Messages === */
.sysebook-feedback__message {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg, 6px);
    font-size: 0.9rem;
    margin-top: 0.75rem;
}

.sysebook-feedback__message--success {
    background: var(--color-success-bg, #d4edda);
    color: var(--color-success-text, #155724);
    border: 1px solid var(--color-success, #28a745);
}

.sysebook-feedback__message--error {
    background: var(--color-error-bg, #f8d7da);
    color: var(--color-error-text, #721c24);
    border: 1px solid var(--color-error, #dc3545);
}

/* === Login Notice === */
.sysebook-feedback__login-notice {
    text-align: center;
    padding: 1rem;
    color: var(--color-text-muted, #666);
    font-size: 0.95rem;
}

.sysebook-feedback__login-notice a {
    color: var(--color-primary, #21588F);
    text-decoration: underline;
}

/* === Responsive === */
@media (max-width: 600px) {
    .sysebook-feedback {
        padding: 1rem;
    }

    .sysebook-feedback__rating-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .sysebook-feedback__rating-buttons {
        justify-content: flex-start;
    }

    .sysebook-feedback__rating-btn.btn {
        min-width: auto;
        flex: 1;
    }
}

/* ===== SYSEBOOK GIFT COMPONENT ===== */
/* Geschenk-Link Komponente für E-Book Kapitel */

.sysebook-gift {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: var(--color-bg-secondary, #f8f9fa);
    border: 1px solid var(--color-border, #e0e0e0);
    border-radius: var(--radius-lg, 8px);
}

.sysebook-gift__intro {
    font-size: 0.9rem;
    color: var(--color-text-primary, #333);
    margin: 0 0 0.75rem 0;
    line-height: 1.5;
}

.sysebook-gift__btn.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.sysebook-gift__count {
    font-size: 0.85em;
    opacity: 0.8;
}

/* Gift URL Display */
.sysebook-gift__url-display {
    display: none;
    margin-top: 1rem;
    padding: 0.75rem;
    background: var(--color-bg-primary, #fff);
    border: 1px solid var(--color-border, #e0e0e0);
    border-radius: var(--radius-lg, 6px);
}

.sysebook-gift__url-row {
    display: flex;
    gap: 0.5rem;
}

.sysebook-gift__url-input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-border-medium, #ccc);
    border-radius: var(--radius-lg, 4px);
    font-family: monospace;
    font-size: 0.85rem;
    background: var(--color-bg-secondary, #f8f9fa);
    color: var(--color-text-primary, #333);
}

.sysebook-gift__copy-btn.btn {
    white-space: nowrap;
}

.sysebook-gift__validity {
    font-size: 0.8rem;
    color: var(--color-text-muted, #666);
    margin-top: 0.5rem;
}

/* Gift Messages */
.sysebook-gift__message {
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-lg, 6px);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.sysebook-gift__message--error {
    background: var(--color-error-bg, #f8d7da);
    color: var(--color-error-text, #721c24);
}

@media (max-width: 600px) {
    .sysebook-gift__url-row {
        flex-direction: column;
    }

    .sysebook-gift__copy-btn.btn {
        width: 100%;
    }
}

/* ===== REFLECTION CARD (FLIP CARD) ===== */
/* Reflexionsfragen als umdrehbare Karten */
/* Technik: CSS Grid Stacking für auto-height basierend auf längstem Content */

/* Container für 2 Karten nebeneinander (Desktop) */
.reflection-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.reflection-card {
    perspective: 1000px;
    cursor: pointer;
    border: 3px solid var(--color-h2, #966489);
    border-radius: var(--radius-lg, 8px);
    background: var(--color-bg-primary, #fff);
    transition: border-color 0.3s ease;
}

.reflection-card.flipped {
    border-color: var(--color-h1, #2F6592);
}

.reflection-card__inner {
    display: grid;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.reflection-card.flipped .reflection-card__inner {
    transform: rotateY(180deg);
}

/* Grid Stacking: Beide Seiten übereinander, Höhe = max(front, back) */
.reflection-card__front,
.reflection-card__back {
    grid-area: 1 / 1;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    background: var(--color-bg-primary, #fff);
    border-radius: calc(var(--radius-lg, 8px) - 3px);
}

.reflection-card__front {
    color: var(--color-text-primary, #333);
}

.reflection-card__back {
    color: var(--color-text-primary, #333);
    transform: rotateY(180deg);
}

.reflection-card__title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.75rem 0;
}

.reflection-card__front .reflection-card__title {
    color: var(--color-h2, #966489);
}

.reflection-card__back .reflection-card__title {
    color: var(--color-h1, #2F6592);
}

.reflection-card__question {
    font-size: 1.05rem;
    line-height: 1.5;
    margin: 0;
    font-weight: 500;
    color: var(--color-text-primary, #333);
}

.reflection-card__answer {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    color: var(--color-text-primary, #333);
}

.reflection-card__hint {
    font-size: 0.8rem;
    margin-top: auto;
    padding-top: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--color-text-muted, #666);
}

/* Hover/Focus State */
.reflection-card:hover {
    border-color: var(--color-secondary-hover, #7a536f);
}

.reflection-card.flipped:hover {
    border-color: var(--color-primary, #21588F);
}

.reflection-card:focus {
    outline: 2px solid var(--color-primary-light, #4a8bc2);
    outline-offset: 2px;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .reflection-card {
        background: var(--color-bg-tertiary, #2a2a2a);
        border-color: var(--color-secondary-light, #b57aa5);
    }

    .reflection-card.flipped {
        border-color: var(--color-primary-light, #4a8bc2);
    }

    .reflection-card__front,
    .reflection-card__back {
        background: var(--color-bg-tertiary, #2a2a2a);
    }

    .reflection-card__front .reflection-card__title {
        color: var(--color-secondary-light, #b57aa5);
    }

    .reflection-card__back .reflection-card__title {
        color: var(--color-primary-light, #4a8bc2);
    }

    .reflection-card__question,
    .reflection-card__answer {
        color: var(--color-text-primary, #e0e0e0);
    }
}

/* Responsive: Mobile untereinander */
@media (max-width: 768px) {
    .reflection-cards {
        grid-template-columns: 1fr;
    }

    .reflection-card__question {
        font-size: 1rem;
    }

    .reflection-card__answer {
        font-size: 0.9rem;
    }
}

/* Reflection Card Wrapper für Checkbox */
.reflection-card-wrapper {
    display: flex;
    flex-direction: column;
}

.reflection-card-checkbox {
    margin-top: 0.5rem;
    padding-left: 0.25rem;
}

.reflection-card-checkbox label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--color-text-secondary, #666);
}

.reflection-card-checkbox input[type="checkbox"] {
    cursor: pointer;
    accent-color: var(--color-primary, #966489);
}

/* ==========================================================================
   Chapter Dividers - Animierte H3-Trenner
   ========================================================================== */

.chapter-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    height: 80px;
}

.chapter-divider__canvas {
    width: 180px;
    height: 72px;
}

/* ==========================================================================
   Animation Gallery Styles
   ========================================================================== */

.animation-category {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    background: var(--color-primary-light, rgba(138, 96, 124, 0.1));
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    margin-bottom: 0.5rem;
}

.animation-description {
    color: var(--color-text-muted);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.animation-code {
    margin: 1.5rem 0;
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    overflow: hidden;
}

.animation-code summary {
    padding: 0.75rem 1rem;
    background: var(--color-bg-alt, #f5f5f5);
    cursor: pointer;
    font-weight: 500;
    user-select: none;
}

.animation-code summary:hover {
    background: var(--color-bg-hover, #eee);
}

.animation-code pre {
    margin: 0;
    padding: 1rem;
    overflow-x: auto;
    font-size: 0.8rem;
    line-height: 1.5;
    background: var(--color-bg-code, #1e1e1e);
    color: var(--color-text-code, #d4d4d4);
}

.animation-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.animation-tags .tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: var(--color-bg-alt, #f0f0f0);
    color: var(--color-text-muted);
    border-radius: 1rem;
    transition: background 0.2s, color 0.2s;
}

.animation-tags .tag:hover {
    background: var(--color-primary);
    color: var(--color-text-white);
}

.animation-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.animation-category-section {
    border-top: 2px solid var(--color-primary-light, rgba(138, 96, 124, 0.2));
    margin-top: 3rem;
    padding-top: 2rem;
}

/* =============================================================================
   NAVIGATION STYLES
   Moved from header.php inline styles for better caching
   ============================================================================= */

/* Navigation Icon Styles (inline SVG with stroke) */
.nav-icon {
    width: 18px;
    height: 18px;
    vertical-align: -3px;
    margin-right: 4px;
    stroke: currentColor;
}

/* Desktop Navigation - visible by default */
.nav-desktop {
    display: flex;
    align-items: center;
}

/* Navigation Link Styles */
.nav-link {
    color: var(--color-text-primary, #333333);
    text-decoration: none;
    padding: 8px 16px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Mobile Navigation Styles */
.nav-mobile {
    display: none;
    position: relative;
}

.mobile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    background-color: var(--color-background, #ffffff);
    border: 1px solid var(--color-border, #e0e0e0);
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--color-shadow, rgba(0,0,0,0.1));
    z-index: 1001;
    padding: 8px 0;
    display: none;
}

.mobile-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    color: var(--color-text-primary, #333333);
    text-decoration: none;
    border-bottom: 1px solid var(--color-border, #e0e0e0);
    transition: background-color 0.2s ease;
    font-size: 1rem;
}

.mobile-dropdown .nav-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.mobile-dropdown a:last-child {
    border-bottom: none;
}

.mobile-dropdown a:hover {
    background-color: var(--color-surface-hover, #f5f5f5);
}

.mobile-menu-toggle {
    background-color: transparent;
    color: var(--color-text-primary, #333333);
    border: 1px solid var(--color-border, #e0e0e0);
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.mobile-menu-toggle:hover {
    background-color: var(--color-surface-hover, #f5f5f5);
}

/* Auth Button Mobile Modifications */
.auth-btn .desktop-text {
    display: inline;
}

.auth-btn .mobile-icon {
    display: none;
}

/* Navigation Media Queries */
@media screen and (max-width: 768px) {
    .nav-desktop {
        display: none;
    }

    .nav-mobile {
        display: flex;
    }

    .auth-btn .desktop-text {
        display: none;
    }

    .auth-btn .mobile-icon {
        display: inline;
    }
}

@media screen and (min-width: 769px) {
    .nav-desktop {
        display: flex;
    }

    .nav-mobile {
        display: none;
    }
}

/* Navigation Dark Mode */
[data-theme="dark"] .mobile-dropdown {
    background-color: var(--color-background, #1a1a1a);
    border-color: var(--color-border, #404040);
    box-shadow: 0 4px 12px var(--color-shadow, rgba(0,0,0,0.3));
}

[data-theme="dark"] .mobile-dropdown a {
    color: var(--color-text-primary, #ffffff);
    border-bottom-color: var(--color-border, #404040);
}

[data-theme="dark"] .mobile-dropdown a:hover {
    background-color: var(--color-surface-hover, #2a2a2a);
}

[data-theme="dark"] .mobile-menu-toggle {
    color: var(--color-text-primary, #ffffff);
    border-color: var(--color-border, #404040);
}

[data-theme="dark"] .mobile-menu-toggle:hover {
    background-color: var(--color-surface-hover, #2a2a2a);
}

/* =============================================================================
   GIFT BANNER STYLES
   ============================================================================= */

.gift-banner {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-bottom: 2px solid var(--color-success, #4caf50);
    padding: 0.75rem 1rem;
    text-align: center;
    position: relative;
    z-index: 100;
}

.gift-banner__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.gift-banner__icon {
    color: var(--color-success, #4caf50);
    font-size: 1.25rem;
}

.gift-banner__text {
    color: var(--color-text-primary, #333);
    font-size: 1rem;
    margin: 0;
}

.gift-banner__text strong {
    color: var(--color-success-dark, #2e7d32);
}

.gift-banner__date {
    font-size: 1rem;
    color: var(--color-text-muted, #666);
}

[data-theme="dark"] .gift-banner {
    background: linear-gradient(135deg, #1b3b1e 0%, #263d28 100%);
    border-bottom-color: var(--color-success, #4caf50);
}

[data-theme="dark"] .gift-banner__text {
    color: var(--color-text-primary, #e0e0e0);
}

[data-theme="dark"] .gift-banner__text strong {
    color: var(--color-success, #81c784);
}

[data-theme="dark"] .gift-banner__date {
    color: var(--color-text-muted, #aaa);
}

@media (max-width: 480px) {
    .gift-banner__inner {
        flex-direction: column;
        gap: 0.25rem;
    }
}
