/* --- Globale Variablen & Grundstile --- */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --background-color: #1e1e1e; /* Dunkler Hintergrund */
    --surface-color: #2a2a2a; /* Etwas hellere Oberfläche für Controls */
    --text-color: #e0e0e0; /* Heller Text */
    --text-muted-color: #a0a0a0; /* Gedämpfter Text */
    --border-color: #444;
    --success-color: #28a745;
    --error-color: #dc3545;
    --warning-color: #ffc107;
    --accent-color: #ff8c00; /* Akzentfarbe für Highlights */
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--surface-color);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

h1, h2, h3 {
    color: var(--primary-color);
    margin-top: 0;
}

h1 {
    text-align: center;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

h2 {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.4em;
}
h3 {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: var(--accent-color);
}

/* --- Icons --- */
.icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-right: 0.4em;
    vertical-align: -0.15em;
    background-repeat: no-repeat;
    background-size: contain;
    filter: invert(90%) sepia(10%) saturate(100%) hue-rotate(180deg) brightness(100%) contrast(90%); /* Default für hellen Text auf dunklem Grund */
}
.icon-sparkle { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 2l2.3 7.2H22l-6 4.4 2.3 7.2L12 16.4 5.7 20.8l2.3-7.2L2 9.2h7.7L12 2z"/></svg>'); }
.icon-smile { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-4-6c.78 2.34 3.06 4 5.76 4s4.98-1.66 5.76-4H8.24zM9.5 9.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5-1.5-.67-1.5-1.5.67-1.5 1.5-1.5zm5 0c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5-1.5-.67-1.5-1.5.67-1.5 1.5-1.5z"/></svg>'); }
.icon-gear { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.12-.22-.39-.3-.61-.22l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65C14.46 2.18 14.25 2 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1c-.23-.09-.49 0-.61.22l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98s.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.12.22.39.3.61.22l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1c.23.09.49 0 .61-.22l2-3.46c.12-.22.07-.49-.12-.64l-2.11-1.65zM12 15.5c-1.93 0-3.5-1.57-3.5-3.5s1.57-3.5 3.5-3.5 3.5 1.57 3.5 3.5-1.57 3.5-3.5 3.5z"/></svg>'); }
.icon-folder { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z"/></svg>'); }
.icon-resize { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M10 4h4v2h-4V4zM4 8h4v2H4V8zm12 0h4v2h-4V8zM8 18h8v2H8v-2zM6 14v-2h12v2H6z"/></svg>'); }
.icon-pixels { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M3 3h2v2H3zm0 4h2v2H3zm0 4h2v2H3zm0 4h2v2H3zm4-12h2v2H7zM7 7h2v2H7zm0 4h2v2H7zm0 4h2v2H7zm10-8h2v2h-2zm0 4h2v2h-2zm-4-4h2v2h-2zm4 4h2v2h-2zm-4 4h2v2h-2zm-4 0h2v2H9zm8 0h2v2h-2zm-4-8h2v2h-2zm4-4h2v2h-2z"/></svg>'); } /* Approximated icon */
.icon-slider { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M4 9h4v6H4zm6 0h4v6h-4zm6 0h4v6h-4z"/></svg>'); } /* Approximated icon */
.icon-star { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"/></svg>'); }
.icon-tag { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M17.63 5.84C17.27 5.33 16.67 5 16 5L5 5.01C3.9 5.01 3 5.91 3 7v10c0 1.1.9 1.99 2 1.99L16 19c.67 0 1.27-.33 1.63-.84L22 12l-4.37-6.16zM15 11.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5z"/></svg>'); }
.icon-play { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M8 5v14l11-7z"/></svg>'); }
.icon-image { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"/></svg>'); }
.icon-lock { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1v2z"/></svg>'); }
.icon-heart { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></svg>'); }
.icon-info { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"/></svg>'); }
.icon-info-circle { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/></svg>'); }
.icon-warning { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"/></svg>'); filter: invert(75%) sepia(89%) saturate(3300%) hue-rotate(359deg) brightness(103%) contrast(106%);} /* Gelb/Orange */
.icon-download { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"/></svg>'); }
.icon-upload { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M9 16h6v-6h4l-7-7-7 7h4v6zm-4 2h14v2H5v-2z"/></svg>'); width: 2em; height: 2em;}
.icon-zip { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M14 2H6C4.9 2 4 .9 4 4v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V8l-6-6zm-1 14h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V6h2v2zm4 8h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2v-2h2v2z"/></svg>'); } /* Simple zip icon */
.icon-edit { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/></svg>'); }
.icon-shield { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11v8.8z"/></svg>'); }
.icon-orientation { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M16.63 5.84C17.27 5.33 17.97 5 18.71 5c.74 0 1.44.33 2.08.84l1.38 1.03c.19.14.3.38.3.63s-.11.49-.3.63l-1.38 1.03c-.64.51-1.34.84-2.08.84s-1.44-.33-2.08-.84L15.25 8.8c-.19-.14-.3-.38-.3-.63s.11-.49.3-.63l1.38-1.03zM4.29 5.84C4.93 5.33 5.63 5 6.37 5s1.44.33 2.08.84l1.38 1.03c.19.14.3.38.3.63s-.11.49-.3.63L8.45 9.17c-.64.51-1.34.84-2.08.84s-1.44-.33-2.08-.84L2.91 8.14c-.19-.14-.3-.38-.3-.63s.11-.49.3-.63l1.38-1.04zm7.71 14.32c.74 0 1.44-.33 2.08-.84l1.38-1.03c.19-.14.3-.38.3-.63s-.11-.49-.3-.63l-1.38-1.03c-.64-.51-1.34-.84-2.08-.84s-1.44.33-2.08.84l-1.38 1.03c-.19.14-.3.38-.3.63s.11.49.3.63l1.38 1.03c.64.5 1.34.83 2.08.83z"/></svg>'); } /* Approximated orientation icon */
.icon-file { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z"/></svg>'); }
.icon-file-code { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm-1.06 13.54L10.5 17l-3.06-1.46L9.4 13.5l1.04 2.1 1.52-1.06zM16.6 15.5l-1.04-2.09-1.52 1.06 1.06 2.04L14.5 17l3.06-1.5zM13 9V3.5L18.5 9H13z"/></svg>'); }
.icon-preview { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5C21.27 7.61 17 4.5 12 4.5zm0 13c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"/></svg>'); }
.icon-format { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M5 17h14v2H5zm7-12L5.33 15h13.34L12 5zm0 3.6l2.93 5.4H9.07L12 8.6z"/></svg>'); } /* Approximated icon */

.clickable-icon { cursor: pointer; transition: transform 0.2s ease-in-out; }
.clickable-icon:hover { transform: scale(1.2); }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* --- Mode Umschalter & Controls --- */
.mode-switcher {
    text-align: center;
    margin-bottom: 25px;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 6px;
}
.mode-switcher label {
    margin: 0 15px;
    cursor: pointer;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}
.mode-switcher input[type="radio"] {
    display: none; /* Verstecke den Radio-Button */
}
.mode-switcher input[type="radio"]:checked + span { /* Styling für Text neben checked Radio */
    /* Funktioniert so nicht direkt, besser Label stylen */
}
.mode-switcher input[type="radio"]:checked + label {
    background-color: var(--primary-color);
    color: white;
}

.controls {
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

/* Standardmäßig sind beide Control-Sets versteckt, JS schaltet das passende ein */
#easy-mode-controls, #pro-mode-controls {
    display: none;
}
body.easy-mode-active #easy-mode-controls {
    display: block;
}
body.pro-mode-active #pro-mode-controls {
    display: block;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-muted-color);
}
input[type="text"],
input[type="number"],
input[type="file"],
select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--background-color);
    color: var(--text-color);
    box-sizing: border-box; /* Verhindert Überlaufen durch Padding */
}
input[type="range"] {
    width: 75%; /* Range Slider nicht volle Breite */
    vertical-align: middle;
}
.slider-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}
.slider-container span {
    min-width: 40px; /* Platz für Wert */
    text-align: right;
    font-variant-numeric: tabular-nums;
}


input:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-color);
}

/* Checkbox Styling */
.checkbox-label {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-weight: normal;
    cursor: pointer;
    color: var(--text-color); /* Normaler Text für Checkbox-Label */
}
.checkbox-label input[type="checkbox"] {
    width: auto; /* Checkbox nicht volle Breite */
    margin-right: 10px;
    margin-bottom: 0;
    accent-color: var(--primary-color); /* Färbt die Checkbox selbst */
}

.preset-group {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}
.preset-group label {
    font-weight: normal;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    cursor: pointer;
}
.preset-group input[type="radio"] {
    width: auto;
    margin-right: 5px;
    margin-bottom: 0;
    accent-color: var(--primary-color);
}

.process-button, .button-like-label, .small-button {
    display: inline-block; /* Damit Icons korrekt angezeigt werden */
    background-color: var(--primary-color);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s, opacity 0.3s;
    text-align: center;
}
.process-button:hover, .button-like-label:hover, .small-button:hover {
    background-color: #0056b3;
}
.process-button:disabled, .small-button:disabled {
    background-color: var(--secondary-color);
    opacity: 0.7;
    cursor: not-allowed;
}
.process-button .icon {
     filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%); /* Weißes Icon */
}

.small-button {
    padding: 6px 12px;
    font-size: 0.9em;
}

/* --- Drag & Drop Zone --- */
.drop-zone {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s, border-color 0.3s;
}
.drop-zone.drag-over {
    background-color: rgba(0, 123, 255, 0.1);
    border-color: var(--primary-color);
}
.drop-zone p {
    margin: 10px 0;
    color: var(--text-muted-color);
}
.button-like-label {
    margin-top: 10px;
}
.file-input-hidden {
    display: none; /* Versteckt die tatsächlichen File-Inputs */
}
.file-info-display {
    display: block;
    margin-top: 15px;
    font-size: 0.9em;
    color: var(--text-muted-color);
}

/* --- Rename Group --- */
.rename-group {
    display: flex;
    gap: 10px;
    margin-bottom: 5px;
}
.rename-group input[type="text"] {
    flex-grow: 1;
    margin-bottom: 0;
}
.rename-group input[type="number"] {
    width: 80px;
    flex-shrink: 0;
    margin-bottom: 0;
    text-align: center;
}
small {
    display: block;
    font-size: 0.85em;
    color: var(--text-muted-color);
    margin-top: -10px; /* Näher an das Element darüber */
    margin-bottom: 15px;
}
.tooltip {
    cursor: help;
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted var(--text-muted-color);
    margin-left: 5px;
}
.tooltip:before {
    content: attr(title);
    position: absolute;
    bottom: 125%; /* Position über dem Element */
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8em;
    white-space: nowrap;
    visibility: hidden; /* Standardmäßig unsichtbar */
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 10;
}
.tooltip:hover:before {
    visibility: visible; /* Sichtbar beim Hover */
    opacity: 1;
}


/* --- Pro Mode Specific --- */
.options-group {
    border: 1px solid var(--border-color);
    border-radius: 5px;
    margin-bottom: 15px;
    background-color: rgba(0, 0, 0, 0.1);
}
.options-group summary {
    padding: 10px 15px;
    cursor: pointer;
    font-weight: bold;
    color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 5px 5px 0 0;
    list-style: none; /* Standard-Marker entfernen */
    display: flex;
    align-items: center;
}
.options-group summary::-webkit-details-marker { display: none; } /* Chrome/Safari Marker entfernen */
.options-group summary::before { /* Eigener Marker */
    content: '▶';
    display: inline-block;
    margin-right: 8px;
    transition: transform 0.2s;
    font-size: 0.8em;
}
.options-group[open] summary::before {
    transform: rotate(90deg);
}
.options-group > div {
    padding: 15px;
    border-top: 1px solid var(--border-color);
}

/* Preview adjustments slider styling */
.options-group[open] .preview-value {
    display: inline-block;
    min-width: 40px;
    text-align: right;
    font-size: 0.9em;
    color: var(--text-muted-color);
}
#resetPreviewFilters {
    margin-top: 10px;
}

/* --- Ergebnisse --- */
#results {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap; /* Umbruch bei kleinen Bildschirmen */
    gap: 10px;
}
.results-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}
.small-label {
    font-size: 0.9em;
    margin-bottom: 0 !important; /* Override default margin */
}

#results-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Responsive Grid */
    gap: 20px;
}
.result-item {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}
.result-item img {
    max-width: 100%;
    height: auto;
    margin-top: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    /* CSS-Filter für die Vorschau (wird durch JS gesteuert) */
    filter: brightness(1) contrast(1) saturate(1);
    transition: filter 0.3s ease;
}
.result-item h3 {
    word-break: break-all; /* Lange Dateinamen umbrechen */
    font-size: 1em;
}
.result-item p {
    margin: 5px 0;
    font-size: 0.9em;
    word-break: break-word;
}
.result-item .size-info span {
    font-weight: bold;
    color: var(--success-color);
}
.result-item .size-info {
    color: var(--text-muted-color);
}

.result-item a { /* Download Button */
    display: block; /* Block-Level für volle Breite */
    background-color: var(--success-color);
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    margin-top: 15px;
    transition: background-color 0.3s;
}
.result-item a:hover {
    background-color: #218838;
}
.result-item a .icon {
    filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%); /* Weißes Icon */
}

/* Metadaten-Bereich */
.metadata-container {
    margin-top: 10px;
    font-size: 0.85em;
}
.metadata-toggle {
    cursor: pointer;
    color: var(--accent-color);
    text-decoration: underline;
    display: inline-flex; /* Für Icon Alignment */
    align-items: center;
}
.metadata-details {
    max-height: 150px;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 8px;
    margin-top: 5px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.95em;
    display: none; /* Standardmäßig versteckt */
    word-break: break-all;
    line-height: 1.4;
}
.metadata-details.visible {
    display: block;
}
.metadata-details strong {
    color: var(--text-muted-color);
}

/* Result Checkbox */
.result-item .result-checkbox-label {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px;
    border-radius: 3px;
    z-index: 5; /* Über dem Bild */
}
.result-item .result-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}
/* Positionierung für Checkbox - muss eventuell angepasst werden */
.result-item {
     position: relative; /* Damit absolute Positionierung der Checkbox funktioniert */
}

/* --- Fehleranzeige --- */
.error {
    color: var(--error-color);
    font-weight: bold;
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid var(--error-color);
    padding: 10px;
    border-radius: 4px;
    margin-top: 5px;
}
.global-error {
    margin-bottom: 20px;
    text-align: center;
}

/* --- Hilfsklassen --- */
.hidden {
    display: none !important;
}

/* --- Erklärungsbereich --- */
.explanation-section {
    margin-top: 40px;
    padding: 20px;
    background-color: rgba(0, 123, 255, 0.05);
    border: 1px solid var(--primary-color);
    border-radius: 6px;
}
.explanation-section h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}
.explanation-section ul {
    padding-left: 20px;
    margin-bottom: 0;
}
.explanation-section li {
    margin-bottom: 10px;
}
.explanation-section ul ul {
    margin-top: 5px;
    padding-left: 15px;
}
.explanation-section ul ul li {
    margin-bottom: 5px;
    font-size: 0.95em;
}
.explanation-section strong .icon {
    vertical-align: -0.2em; /* Bessere Ausrichtung mit Text */
}


/* --- Easter Egg Nachricht --- */
#easter-egg-message {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background-color: var(--accent-color);
    color: var(--background-color);
    border-radius: 5px;
}
#easter-egg-message .icon {
     filter: invert(10%) sepia(10%) saturate(100%) hue-rotate(180deg) brightness(100%) contrast(90%); /* Dunkles Icon auf hellem Grund */
}
.code-font {
    font-family: monospace;
    background-color: rgba(0, 0, 0, 0.1);
    padding: 2px 5px;
    border-radius: 3px;
}

/* --- Prominente lokale Info --- */
.local-info.prominent {
    text-align: center;
    font-size: 1.1em;
    padding: 10px;
    background-color: rgba(40, 167, 69, 0.1);
    border: 1px solid var(--success-color);
    color: var(--success-color);
    border-radius: 5px;
    margin-bottom: 25px;
}
.local-info.prominent .icon {
    filter: invert(65%) sepia(33%) saturate(808%) hue-rotate(81deg) brightness(98%) contrast(86%); /* Grünes Icon */
    vertical-align: -0.2em;
}
.local-info.prominent strong {
    color: var(--success-color); /* Macht den Fettgedruckten Teil auch grün */
}

/* --- Footer --- */
footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.9em;
    color: var(--text-muted-color);
}
.footer-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Umbruch bei kleinen Bildschirmen */
    gap: 10px;
}
.footer-nav a {
    color: var(--text-muted-color);
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}
.footer-nav a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}
.disclaimer {
    font-style: italic;
    flex-basis: 100%; /* Nimmt volle Breite im Umbruch */
    margin-top: 10px;
}

/* --- Modals --- */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}
.modal-content {
    background-color: var(--surface-color);
    padding: 30px;
    border-radius: 8px;
    max-width: 800px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}
.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2em;
    font-weight: bold;
    color: var(--text-muted-color);
    cursor: pointer;
    transition: color 0.3s;
}
.modal-close:hover {
    color: var(--error-color);
}
.modal h2 {
    margin-top: 0;
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}
.modal p {
    margin-bottom: 15px;
    line-height: 1.7;
}
.modal h3 {
    color: var(--accent-color);
    margin-top: 20px;
    margin-bottom: 10px;
}
.modal a {
    color: var(--primary-color);
    text-decoration: none;
}
.modal a:hover {
    text-decoration: underline;
}

/* --- Cookie Consent Banner --- */
.consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--surface-color);
    border-top: 1px solid var(--border-color);
    padding: 15px;
    box-sizing: border-box;
    z-index: 1100;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}
.consent-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.consent-content p {
    margin: 0;
    flex-basis: 100%; /* Text nimmt volle Breite auf kleinen Screens */
    font-size: 0.9em;
}
@media (min-width: 768px) {
     .consent-content p {
        flex-basis: auto;
        margin-right: 20px;
     }
}
.consent-buttons {
    display: flex;
    gap: 10px;
}
.consent-buttons button {
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    font-size: 0.9em;
}
#consentAccept {
    background-color: var(--success-color);
    color: white;
}
#consentAccept:hover { background-color: #218838; }
#consentDecline {
    background-color: var(--secondary-color);
    color: white;
}
#consentDecline:hover { background-color: #5a6268; }