:root {
    --primary-color: #007aff;
    --mkbhd-red: #ff0000;
    --text-color: #f5f5f7;
    --card-bg: rgba(30, 30, 30, 0.7);
    --card-border: 1px solid rgba(255, 255, 255, 0.2);
    --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --border-radius-card: 24px;
    --border-radius-button: 18px;
}

/* =======================================================
 * KORREKTUR FÜR DAS SCROLLEN
 * ======================================================= */
html {
    height: 100%;
 fix-background-image
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('glass-light-abstract-background-blue-background-3d-4000x2250-8736.jpg') no-repeat center center fixed;
    background-size: cover;
    z-index: -1;
=======
    /* Der Hintergrund ist fest mit dem Ansichtsfenster verbunden */
    background: url('https://images.hdqwalls.com/wallpapers/glass-light-abstract-background-blue-background-3d-4k-dn.jpg') no-repeat center center fixed;
    background-size: cover;
    /* Erlaubt dem Inhalt, über den Rand des Fensters hinauszuwachsen und zu scrollen */
    overflow-y: auto; 
  main
}

body {
    font-family: 'Exo 2', sans-serif;
    color: var(--text-color);
    margin: 0;
    background-color: transparent;
}

.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.app-header, .global-actions-bar, .image-card, #drop-zone {
    background: var(--card-bg);
    border: var(--card-border);
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.app-header {
    text-align: center;
    padding: 1.2rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: var(--border-radius-card);
    margin-bottom: 2rem;
}

#upload-container.hidden { display: none; }
#drop-zone {
    border-radius: var(--border-radius-card);
    padding: 2.5rem;
    cursor: pointer;
    transition: all 0.3s;
    border-style: dashed;
}
.drop-icon { font-size: 3rem; color: var(--primary-color); }

.global-actions-bar {
    padding: 1rem;
    margin: 2rem auto;
    border-radius: var(--border-radius-button);
    display: flex;
    justify-content: center;
    gap: 1rem;
    max-width: 600px;
}

#image-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }

.image-card {
    border-radius: var(--border-radius-card);
    overflow: hidden;
    position: relative;
    border: 3px solid transparent;
    transition: all 0.3s;
}

.image-card.selected {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 122, 255, 0.5);
}

.canvas-container { width: 100%; height: 220px; background-color: #000; display: flex; justify-content: center; align-items: center; }
.canvas-container canvas { width: 100%; height: 100%; object-fit: contain; }

.controls { padding: 1.2rem; }
.control-group { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.slider { -webkit-appearance: none; width: 100%; height: 8px; background: rgba(0,0,0,0.3); outline: none; border-radius: 4px; }
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; background: var(--text-color); cursor: pointer; border-radius: 50%; }

/* Stile für die neuen Aktions-Buttons in den Karten */
.style-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.style-actions .button.apply-all-btn {
    grid-column: 1 / -1; /* Nimmt die volle Breite ein */
}

.selection-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.selection-checkbox { width: 1.2rem; height: 1.2rem; }
.selection-group label { cursor: pointer; }

.button {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: var(--card-border);
    color: var(--text-color);
    padding: 0.6rem 1rem; /* Etwas kleiner für die Karten-Buttons */
    border-radius: var(--border-radius-button);
    cursor: pointer;
    font-weight: bold;
    font-size: 0.8rem;
}
.button.button-primary { background-color: var(--primary-color); border-color: transparent; }
.button:disabled { background-color: rgba(50,50,50,0.2); color: #777; cursor: not-allowed; }
