/* (Unverändert - gleicher Code wie zuvor) */
.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}
.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.1em;
    color: #7289da;
    background: #181a1b;
    border-radius: 6px;
    padding: 4px 10px;
    box-shadow: 0 1px 4px #23272a44;
}
#langSelect {
    background: #23272a;
    color: #fff;
    border: 1.5px solid #7289da;
    border-radius: 4px;
    font-size: 1em;
    padding: 2px 8px;
    outline: none;
}
#langSelect:focus {
    border: 1.5px solid #43b581;
}
#skinSuggestions {
    background: #23272a;
    border: 2px solid #7289da;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 320px;
    overflow-y: auto;
    position: absolute;
    z-index: 20;
    width: 100%;
    left: 0;
    box-shadow: 0 2px 8px rgba(67,181,129,0.12);
    display: none;
}
#skinSuggestions .suggestion {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    cursor: pointer;
    color: #fff;
    font-size: 1em;
    border-bottom: 1px solid #2c2f33;
    transition: background 0.15s;
    font-weight: bold;
}
#skinSuggestions .suggestion:last-child {
    border-bottom: none;
}
#skinSuggestions .suggestion:hover {
    background: #7289da;
    color: #23272a;
}
#skinSuggestions .skin-img {
    width: 96px;
    height: 72px;
    min-height: 72px;
    object-fit: contain;
    border-radius: 5px;
    background: #181a1b;
    border: 1.5px solid #23272a;
}
#skinSuggestions .skin-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
#skinSuggestions .skin-name {
    font-size: 1em;
    font-weight: bold;
    color: #fff;
}
#skinSuggestions .skin-float {
    font-size: 0.95em;
    color: #43b581;
    font-weight: normal;
}
#skinSearch {
    width: 100%;
    height: 56px;
    font-size: 1.18em;
    padding: 12px 14px;
    border-radius: 7px 7px 0 0;
    border: 2px solid #7289da;
    background: #23272a;
    color: #fff;
    margin-bottom: 0;
    box-sizing: border-box;
    outline: none;
    font-weight: bold;
    letter-spacing: 1px;
    margin-top: 2px;
}
#skinSearch:focus {
    border: 2px solid #43b581;
}
#skinSuggestions {
    background: #23272a;
    border: 2px solid #7289da;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 220px;
    overflow-y: auto;
    position: absolute;
    z-index: 20;
    width: 100%;
    left: 0;
    box-shadow: 0 2px 8px rgba(67,181,129,0.12);
    display: none;
}
#skinSuggestions .suggestion {
    padding: 8px 12px;
    cursor: pointer;
    color: #fff;
    font-size: 1em;
    border-bottom: 1px solid #2c2f33;
    transition: background 0.15s;
    font-weight: bold;
}
#skinSuggestions .suggestion:last-child {
    border-bottom: none;
}
#skinSuggestions .suggestion:hover {
    background: #7289da;
    color: #23272a;
}
.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    gap: 10px;
}
.tab-btn {
    background: linear-gradient(90deg, #23272a 60%, #2c2f33 100%);
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 10px 10px 0 0;
    font-size: 1.1em;
    cursor: pointer;
    outline: none;
    border-bottom: 3px solid transparent;
    transition: background 0.2s, border-bottom 0.2s, color 0.2s;
    letter-spacing: 1px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.tab-btn.active {
    background: linear-gradient(90deg, #181a1b 60%, #23272a 100%);
    border-bottom: 3px solid #43b581;
    color: #43b581;
}
.tab-content {
    display: block;
    background: #181a1b;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    padding: 32px 26px 18px 26px;
    margin-bottom: 20px;
    font-size: 1.18em;
}
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #23272a 0%, #181a1b 100%);
    color: #f1f1f1;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}
.container {
    max-width: 700px;
    margin: 40px auto;
    background: #23272a;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.45);
    padding: 48px 56px 32px 56px;
    border: 1.5px solid #43b58133;
}
h1 {
    text-align: center;
    margin-bottom: 32px;
    font-size: 2.7em;
    color: #43b581;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px #23272a;
}
h2 {
    margin-top: 28px;
    font-size: 1.15em;
    color: #7289da;
    letter-spacing: 1px;
}
label {
    color: #b9bbbe;
    font-size: 1.13em;
    margin-top: 10px;
    display: block;
}
#floatInputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}
input[type="number"], select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 5px;
    border: 1.5px solid #444;
    background: #2c2f33;
    color: #f1f1f1;
    font-size: 1.18em;
    margin-bottom: 8px;
    box-sizing: border-box;
    transition: border 0.2s;
}
input[type="number"]:focus, select:focus {
    border: 1.5px solid #43b581;
    outline: none;
}
button {
    background: linear-gradient(90deg, #7289da 60%, #43b581 100%);
    color: #fff;
    border: none;
    padding: 11px 20px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
    font-size: 1.05em;
    font-weight: bold;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(67,181,129,0.08);
    transition: background 0.2s, color 0.2s;
}
button:hover {
    background: linear-gradient(90deg, #5b6eae 60%, #43b581 100%);
    color: #23272a;
}
#avgResult, #finalFloatResult, #maxAvgResult {
    margin-top: 10px;
    font-weight: bold;
    color: #43b581;
    font-size: 1.08em;
    text-shadow: 0 1px 4px #23272a;
}
#selectedSkinImg {
    width: 72px;
    height: 56px;
    min-height: 56px;
    object-fit: contain;
    border-radius: 7px;
    display: none;
    background: #181a1b;
    border: 2px solid #23272a;
}
/* Zusätzliche Stile für Filter */
.filter-button {
    background: #43b581;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
    font-size: 0.9em;
}

.filter-button:hover {
    background: #3a9c6d;
}

.filter-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #23272a;
    border: 2px solid #7289da;
    border-radius: 8px;
    padding: 20px;
    z-index: 1000;
    width: 80%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.filter-popup h3 {
    margin-top: 0;
    color: #43b581;
    border-bottom: 1px solid #43b581;
    padding-bottom: 10px;
}

.filter-section {
    margin-bottom: 20px;
}

.filter-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    max-height: 200px;
    overflow-y: auto;
    padding: 10px;
    background: #2c2f33;
    border-radius: 4px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-option input[type="checkbox"] {
    margin: 0;
}

.collection-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 3px;
}

.filter-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.filter-buttons button {
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
}

#applyFilters {
    background: #43b581;
    color: white;
    border: none;
}

#resetFilters {
    background: #7289da;
    color: white;
    border: none;
}

#closeFilterPopup {
    background: #f04747;
    color: white;
    border: none;
}

.skin-rarity {
    font-size: 0.8em;
    font-weight: bold;
    margin-right: 8px;
}

.search-container {
    display: flex;
    align-items: center;
    gap: 10px;
}
/* Zusätzliche Stile für Filter und Skin-Info */
.skin-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.skin-collection {
    font-size: 0.75em;
    color: #b9bbbe;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.collection-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 3px;
    margin-right: 6px;
}

.filter-option label {
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    display: flex;
    gap: 6px;
}
