/* Grundlegende Stile und Dark Mode */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #1a1a1a;
    color: #f0f0f0;
    overflow: hidden;
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
}

/* Oberer Balken */
.top-bar {
    background-color: #252525;
    padding: 0 24px;
    height: 65px;
    border-bottom: 1px solid #333;
    flex-shrink: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
}
.logo { height: 44px; width: auto; }
.title-container { display: flex; flex-direction: column; margin-left: 16px; }
.main-title { font-size: 1.3rem; font-weight: 600; color: white; margin: 0; }
.main-subtitle { font-size: 0.9rem; color: #a0a0a0; margin: 0; margin-top: 2px; font-weight: bold; }
.version-tag { color: #a0a0a0; font-weight: normal; margin-left: 4px; }

/* Sprach-Umschalter (neue Position) */
.lang-switcher-container {
    position: absolute;
    bottom: 104px; /* Angepasst für Footer */
    right: 24px;
    z-index: 10;
}
#lang-switcher-button {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    padding: 0;
    justify-content: center;
    gap: 0;
    background-color: #3a3a3a;
    border: 1px solid #555;
    color: #f0f0f0;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.2s;
}
#lang-switcher-button:hover {
    background-color: #4a4a4a;
    border-color: #777;
}
#lang-switcher-button svg {
    width: 24px;
    height: 24px;
}
#selected-lang-text {
    display: none;
}
.lang-options {
    bottom: 110%;
    top: auto;
    left: auto;
    right: 0;
    position: absolute;
    background-color: #3a3a3a;
    border: 1px solid #555;
    border-radius: 6px;
    padding: 4px;
    z-index: 21;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    width: 120px;
}
.lang-options.hidden {
    display: none;
}
.lang-options div {
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}
.lang-options div:hover {
    background-color: #4a4a4a;
}
.lang-options div.active {
    background-color: #3b82f6;
    color: white;
}

/* Zentraler Link in der Top-Bar */
.top-bar-center {
    flex-grow: 1;
    text-align: center;
}
.download-link {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    color: #a0a0a0;
    white-space: nowrap;
}
.download-link a {
    color: #3b82f6;
    text-decoration: none;
    transition: text-decoration 0.2s;
}
.download-link a:hover {
    text-decoration: underline;
}


/* TABS UND AKTIONEN RECHTS */
.tabs-group {
    display: flex;
    align-items: center;
}
.tabs-container {
    display: flex;
}

.tab-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #3a3a3a;
    color: #f0f0f0;
    border: 1px solid #555;
    padding: 8px 22px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    max-width: 250px;
    margin-left: -15px;
    height: 38px;
    box-sizing: border-box;
}
.tab-item:first-child {
    margin-left: 0;
}
.tab-item:hover {
    background-color: #4a4a4a;
    border-color: #777;
}
.tab-item.active {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: white;
}
.tab-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    outline: none;
}
.tab-name[contenteditable="true"] {
    background-color: #555;
    padding: 2px 4px;
    border-radius: 3px;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.5);
}

.tab-edit-btn {
    background: none;
    border: none;
    color: #a0a0a0;
    padding: 0 2px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}
.tab-item.active .tab-edit-btn {
    color: white;
}
.tab-edit-btn:hover {
    background-color: rgba(0,0,0,0.2);
}

.add-tab-btn {
    position: relative;
    background-color: #3a3a3a;
    border: 1px solid #555;
    color: #a0a0a0;
    font-size: 1.2rem;
    height: 38px;
    width: 38px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 6px;
    margin-left: -15px;
    padding-bottom: 2px;
}
.add-tab-btn:hover {
    background-color: #4a4a4a;
    border-color: #777;
    color: white;
}
.add-tab-btn:disabled {
    color: #555;
    background-color: #303030;
    border-color: #444;
    cursor: not-allowed;
}

.actions-divider {
    height: 24px;
    width: 1px;
    background-color: #444;
}

.reset-btn, .export-btn {
    background-color: #3a3a3a;
    color: #f0f0f0;
    border: 1px solid #555;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: 0;
    height: 38px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    padding: 0 16px;
}
.reset-btn:hover, .export-btn:hover {
    background-color: #4a4a4a;
    border-color: #777;
}
.export-btn {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: white;
}
.export-btn:hover {
    background-color: #2563eb;
    border-color: #2563eb;
}

.top-bar-right {
    display: flex;
    align-items: center;
}
.top-bar-right > * {
    margin-left: 16px;
}
.top-bar-right > *:first-child {
    margin-left: 0;
}

.undo-redo-group {
    display: flex;
    gap: 8px;
    margin-left: 8px; /* Spezifischer kleinerer Abstand */
}

.action-btn-icon {
    width: 38px;
    padding: 0;
    justify-content: center;
}

.action-btn-icon img {
    width: 20px;
    height: 20px;
    transition: opacity 0.2s;
}

.action-btn-icon:disabled {
    background-color: #303030;
    border-color: #444;
    cursor: not-allowed;
}

.action-btn-icon:disabled:hover {
    background-color: #303030;
    border-color: #444;
}

.action-btn-icon:disabled img {
    opacity: 0.4;
}


.main-content { display: flex; flex-grow: 1; overflow: hidden; }

.control-panel {
    width: 350px;
    background-color: #212121;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-right: 1px solid #333;
    box-sizing: border-box;
    z-index: 10;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #555 #212121;
    scrollbar-gutter: stable;
}
.control-panel > *:not(:first-child) {
    margin-top: 18px;
}
.control-panel::-webkit-scrollbar { width: 8px; }
.control-panel::-webkit-scrollbar-track { background: #212121; }
.control-panel::-webkit-scrollbar-thumb { background-color: #555; border-radius: 4px; border: 2px solid #212121; }

.sticky-toggle-container {
    position: sticky;
    top: -24px;
    z-index: 15;
    background-color: #212121; /* Wichtig, um Inhalt beim Scrollen zu überdecken */

    /* Diese zwei Zeilen entfernen die Lücke */
    margin: -28px -24px 0 -24px; /* Zieht den Container hoch und zur Seite */
    padding: 18px 24px 16px 24px; /* Fügt inneren Abstand hinzu */
}

.sticky-toggle-container + .grid-controls-section {
    margin-top: 18px !important;
}

.placement-toggle {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 38px;
    background-color: #333;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
}

.toggle-thumb {
    position: absolute;
    height: calc(100% - 6px);
    width: calc(50% - 3px);
    background-color: #3b82f6;
    border-radius: 6px;
    top: 3px;
    left: 3px;
    transition: left 0.25s ease-in-out;
}

.placement-toggle.multi-mode .toggle-thumb {
    left: 50%;
}

.toggle-label {
    flex: 1;
    text-align: center;
    z-index: 1;
    font-weight: 500;
    font-size: 0.9rem;
    color: #a0a0a0;
    transition: color 0.25s ease-in-out;
}

.toggle-label.active {
    color: white;
}


.section-title { font-size: 1.125rem; font-weight: 600; margin: 0; padding-bottom: 8px; border-bottom: 1px solid #333; flex-grow: 1; }
.grid-controls-section, .module-section { padding-top: 0; margin-top: 0 !important; }
#add-g_01-btn {
    margin-top: 16px;
}
.slider-group { margin-bottom: 16px; padding-top: 4px; }
.slider-group label { display: block; font-size: 0.9rem; margin-bottom: 8px; color: #ccc; }
.slider-wrapper { display: flex; align-items: center; gap: 12px; }
input[type="range"] { flex-grow: 1; -webkit-appearance: none; appearance: none; width: 100%; height: 6px; background: #444; border-radius: 3px; outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; background: #3b82f6; cursor: pointer; border-radius: 50%; }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; background: #3b82f6; cursor: pointer; border-radius: 50%; }

input[type="number"], .dimension-input {
    background-color: #333;
    border: 1px solid #555;
    color: white;
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 0.9rem;
    -moz-appearance: textfield;
    transition: border-color 0.2s, color 0.2s;
}
input[type="number"] {
    width: 60px;
    text-align: center;
}
input[type="number"]::-webkit-outer-spin-button, input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"].invalid-input { border-color: #ef4444; }

.dimension-input {
    width: 85px;
    text-align: left;
}
.dimension-input.invalid-dimension {
    color: #ef4444;
}

.module-section .section-title { 
    margin-bottom: 16px; 
}
.module-section > .section-title:not(:first-child) {
    margin-top: 24px;
}
.module-item { background-color: #333; padding: 8px 12px; border-radius: 8px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; transition: background-color 0.2s, box-shadow 0.2s; margin-bottom: 10px; border: 2px solid transparent; }
.module-item:hover { background-color: #4a4a4a; }
.module-item.active { border-color: #ccc; box-shadow: 0 0 8px rgba(204, 204, 204, 0.3); }

.module-item.placeholder { cursor: not-allowed; opacity: 0.6; }
.module-group { margin-bottom: 10px; }
.module-group-header { background-color: #333; padding: 12px 16px; border-radius: 8px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; transition: background-color 0.2s, border-radius 0.2s; }
.module-group-header:hover { background-color: #4a4a4a; }
.module-group-header.open { border-radius: 8px 8px 0 0; }
.group-toggle-icon { font-size: 1.5rem; font-weight: bold; transition: transform 0.3s; }
.module-group-header.open .group-toggle-icon { transform: rotate(45deg); }
.module-group-content { padding: 0; background-color: #2c2c2c; border-radius: 0 0 8px 8px; max-height: 0; overflow: hidden; transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out; box-sizing: border-box; }
.module-group-content.open { max-height: 2000px; padding: 10px; }
.module-group-content .module-item { margin-bottom: 10px; width: 100%; box-sizing: border-box; }
.module-group-content .module-item:last-child { margin-bottom: 0; }

.module-item-icon-wrapper { display: flex; align-items: center; gap: 12px; }
.module-icon {
    position: relative;
    width: 70px;
    height: 44px;
    background-color: #4a4a4a;
    border-radius: 6px;
    box-sizing: border-box;
    flex-shrink: 0;
    cursor: pointer;
    transition: box-shadow 0.2s;
}
.module-icon.module-icon-wide {
    width: 105px;
}
.module-icon:hover {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.15);
}
.module-icon-image {
    position: absolute;
    top: 6px;
    left: 6px;
    right: 24px;
    bottom: 6px;
    background-color: #fff; /* Farbe wird via JS gesetzt */
    z-index: 1;
}
#add-g_01-btn .module-icon-image {
    top: 4px;
    left: 4px;
    right: 22px;
    bottom: 4px;
}
.module-icon.module-icon-wide .module-icon-image {
    right: 27px;
}
.module-icon img {
    display: none;
}
.module-icon svg {
    position: absolute;
    top: 15px;
    right: 7px;
    width: 14px;
    height: 14px;
    color: #fff;
    opacity: 0.5;
    transition: opacity 0.2s;
    z-index: 2;
}
.module-icon.module-icon-wide svg {
    right: 7px;
}
.module-icon:hover svg {
    opacity: 1;
}
.module-name { font-weight: 500; font-size: 1rem; line-height: 1.2; }
.counter {
    background-color: #3b82f6;
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 9999px;
    text-align: center;
    display: inline-block;
    vertical-align: middle;
    height: 22px;
    min-width: 22px;
    padding: 0 7px;
    box-sizing: border-box;
    line-height: 21px;
}

/* Popups und Modals */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); display: flex; justify-content: center; align-items: center; z-index: 1000; backdrop-filter: blur(4px); }
.modal-overlay.hidden { display: none; }
.modal-content { background-color: #2a2a2a; color: #f0f0f0; padding: 24px 32px; border-radius: 12px; border: 1px solid #444; position: relative; max-width: 550px; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5); }
.modal-content h3 { margin-top: 0; font-size: 1.5rem; color: white; margin-bottom: 24px; text-align: center; }
.modal-content ul { list-style: none; padding: 0; margin: 0; }
.modal-content li { padding: 8px 0; border: none; font-size: 0.9rem; }
.modal-close-button { position: absolute; top: 12px; right: 12px; background: none; border: none; color: #888; font-size: 2rem; line-height: 1; cursor: pointer; transition: color 0.2s; }
.modal-close-button:hover { color: white; }

.instructions-modal-content {
    max-width: 850px;
}
.instruction-intro {
    padding-bottom: 12px;
    margin-bottom: 16px;
    text-align: center;
    color: #ccc;
}
.instruction-intro p {
    margin: 8px 0;
}
.instruction-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 32px;
}
.instruction-category {
    background-color: #333;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 16px;
}
.instruction-category h4 {
    margin-top: 0;
    margin-bottom: 12px;
    border-bottom: 1px solid #444;
    padding-bottom: 8px;
    color: #f0f0f0;
}
.instruction-category li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}
.instruction-key {
    color: #ccc;
    padding-right: 12px;
}
kbd {
    background-color: #3a3a3a;
    border: 1px solid #555;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.8rem;
    white-space: nowrap;
}
.highlight {
    color: #3b82f6;
    font-weight: 600;
}
.instruction-category svg {
    vertical-align: -2px;
}

.color-modal { max-width: 520px; }
.color-picker-body { display: flex; gap: 24px; margin-bottom: 24px; align-items: center; }
.color-picker-main { flex-shrink: 0; }
.color-picker-extras { display: flex; flex-direction: column; gap: 16px; align-items: center; }
.standard-colors-container { margin-top: 10px; }
#standard-colors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.color-swatch { width: 28px; height: 28px; border-radius: 50%; cursor: pointer; border: 2px solid #555; transition: transform 0.2s; }
.color-swatch:hover { transform: scale(1.1); }
#color-preview-img {
    width: 100px;
    height: 100px;
    background-color: #fff;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}
.modal-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; }
.btn-primary, .btn-secondary {
    padding: 8px 18px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    line-height: 1.3;
    text-align: center;
}
.btn-primary { background-color: #3b82f6; color: white; }
.btn-primary:hover { background-color: #2563eb; }
.btn-secondary { background-color: #4a4a4a; color: #f0f0f0; }
.btn-secondary:hover { background-color: #5a5a5a; }

/* Spezifische Modal-Anpassungen */
#export-confirm-modal .modal-content {
    max-width: 450px;
    text-align: center;
}
#export-confirm-modal h3 {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.4;
}
#export-confirm-modal .modal-actions {
    justify-content: center;
}
#export-confirm-modal .modal-loading-content.hidden {
    display: none;
}
#export-confirm-modal .modal-initial-content.hidden {
    display: none;
}

.modal-loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px 0;
    color: #ccc;
}
.loader-spinner {
    width: 32px;
    height: 32px;
    border: 4px solid #555;
    border-top-color: #f0f0f0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

.tab-menu-popup, .context-menu { position: fixed; background-color: #3a3a3a; border: 1px solid #555; border-radius: 6px; z-index: 1100; box-shadow: 0 5px 15px rgba(0,0,0,0.5); display: flex; flex-direction: column; padding: 4px; }
.tab-menu-popup.hidden, .context-menu.hidden { display: none; }
.tab-menu-popup button, .context-menu button { background: none; border: none; color: #f0f0f0; text-align: left; padding: 8px 12px; border-radius: 4px; cursor: pointer; font-size: 0.9rem; white-space: nowrap;}
.tab-menu-popup button:hover, .context-menu button:hover { background-color: #4a4a4a; }
.tab-menu-popup button.delete, .context-menu button.delete { color: #ef4444; }
.tab-menu-popup button.delete:hover, .context-menu button.delete:hover { background-color: #ef4444; color: white; }

.canvas-container { flex-grow: 1; background-color: #2a2a2a; position: relative; }
#configurator-canvas { display: block; width: 100%; height: 100%; cursor: crosshair; }
.loader-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(42, 42, 42, 0.9); display: flex; justify-content: center; align-items: center; color: white; font-size: 1.2rem; z-index: 100; transition: opacity 0.3s; }

#custom-tooltip {
    position: fixed;
    background-color: #2a2a2a;
    color: #f0f0f0;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #555;
    font-size: 0.85rem;
    pointer-events: none;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.2s;
    visibility: hidden;
}
#custom-tooltip.visible {
    opacity: 1;
    visibility: visible;
}

.info-button-canvas-rect {
    position: absolute;
    bottom: 44px; /* War 24px */
    right: 24px;
    width: 48px;
    height: 48px;
    background-color: #3a3a3a;
    border: 1px solid #555;
    border-radius: 12px;
    color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
    padding: 0;
}
.info-button-canvas-rect:hover {
    background-color: #4a4a4a;
    border-color: #777;
}
.info-button-canvas-rect svg {
    width: 24px;
    height: 24px;
}

/* =================================================================
// Icon Skalierungsanpassungen
// ================================================================= */

/* Kategorien & Status & NEUE: 15% kleiner */
#add-kat_hobby_01-btn .module-icon-image,
#add-kat_household_01-btn .module-icon-image,
#add-kat_management_01-btn .module-icon-image,
#add-kat_school_01-btn .module-icon-image,
#add-kat_studying_01-btn .module-icon-image,
#add-kat_work_01-btn .module-icon-image,
#add-stat_analysis_01-btn .module-icon-image,
#add-stat_backlog_01-btn .module-icon-image,
#add-stat_completed_01-btn .module-icon-image,
#add-stat_deployment_01-btn .module-icon-image,
#add-stat_development_01-btn .module-icon-image,
#add-stat_doing_01-btn .module-icon-image,
#add-stat_done_01-btn .module-icon-image,
#add-stat_ideas_01-btn .module-icon-image,
#add-stat_inprogress_01-btn .module-icon-image,
#add-stat_instock_01-btn .module-icon-image,
#add-stat_onhold_01-btn .module-icon-image,
#add-stat_qa_01-btn .module-icon-image,
#add-stat_reorder_01-btn .module-icon-image,
#add-stat_review_01-btn .module-icon-image,
#add-stat_testing_01-btn .module-icon-image,
#add-stat_todo_01-btn .module-icon-image,
#add-day_mon_01-btn .module-icon-image,
#add-day_tue_01-btn .module-icon-image,
#add-day_wed_01-btn .module-icon-image,
#add-day_thu_01-btn .module-icon-image,
#add-day_fri_01-btn .module-icon-image,
#add-day_sat_01-btn .module-icon-image,
#add-day_sun_01-btn .module-icon-image,
#add-misc_blank_01-btn .module-icon-image {
    transform: scale(0.85);
}

/* Kategorierahmen B & C: 5% kleiner */
#add-kr_b_01-btn .module-icon-image,
#add-kr_c_01-btn .module-icon-image {
    transform: scale(0.95);
}

/* Kategorierahmen A: 10% kleiner */
#add-kr_a_01-btn .module-icon-image {
    transform: scale(0.90);
}

/* Rahmen A, Einwurfschacht, Erweiterung, Lager, Stiftehalter: 8% kleiner */
#add-r_a_01-btn .module-icon-image,
#add-es_01-btn .module-icon-image,
#add-e_01-btn .module-icon-image,
#add-l_01-btn .module-icon-image,
#add-s_01-btn .module-icon-image {
    transform: scale(0.92);
}

/* =================================================================
// Gruppen-Layout Anpassungen
// ================================================================= */

.group-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

#kategorien-group,
#status-group,
#wochentage-group,
#sonstige-group {
    margin-left: 20px;
    width: calc(100% - 20px);
    position: relative;
}

#kategorien-group::before,
#status-group::before,
#wochentage-group::before,
#sonstige-group::before {
    content: '└';
    position: absolute;
    left: -16px;
    top: 10px;
    font-size: 1.4rem;
    font-weight: bold;
    color: #444;
}

.autofill-btn {
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 4px 12px;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
    line-height: 1.3;
}

.autofill-btn:hover {
    background-color: #2563eb;
}

/* =================================================================
// Legal Modals
// ================================================================= */

.legal-modal-content {
    max-width: 700px;
    text-align: left;
}

.legal-modal-content h3 {
    text-align: left;
    border-bottom: 1px solid #444;
    padding-bottom: 12px;
}

.legal-text {
    line-height: 1.7;
    color: #ccc;
    font-size: 0.9rem;
}

.legal-text h4 {
    color: #f0f0f0;
    margin-top: 24px;
    margin-bottom: 8px;
    font-size: 1rem;
}

.legal-text address {
    font-style: normal;
    margin-bottom: 16px;
}

.legal-text a {
    color: #3b82f6;
    text-decoration: none;
}
.legal-text a:hover {
    text-decoration: underline;
}

/* =================================================================
// Footer
// ================================================================= */

.main-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #252525; /* Gleiche Farbe wie die obere Leiste */
    padding: 8px 0;
    text-align: center;
    border-top: 1px solid #333;
    z-index: 20; /* Stellt sicher, dass er über dem Canvas liegt */
    font-size: 0.8rem;
}

.main-footer a {
    color: #a0a0a0;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.2s;
}

.main-footer a:hover {
    color: white;
}

.main-footer span {
    color: #555;
}