body {
    font-family: 'Roboto', 'Arial', sans-serif;
    text-align: center;
    margin: 0;
    padding: 16px;
    background: #000000; /* Rein schwarz */
    color: #FFFFFF;
    min-height: 100vh;
    overflow-y: auto;
    position: relative;
    line-height: 1.6;
    -webkit-overflow-scrolling: touch;
}
canvas#particleCanvas {
    position: fixed !important; /* Verstärkte Priorität für iOS */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    will-change: transform; /* Performance-Optimierung */
}
header {
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}
.logo {
    width: 160px;
    filter: drop-shadow(0 0 8px rgba(200, 220, 255, 0.3)); /* Angepasster Schatten für Konsistenz */
}
.button-container {
    margin: 16px 0;
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    align-items: center;
    position: relative;
    z-index: 2;
}
.disney-button {
    padding: 8px;
    background-color: #2a2a2a; /* Dunkleres Grau */
    color: #FFFFFF;
    border: 1px solid rgba(200, 220, 255, 0.8); /* Dünner, weiß-bläulicher Rand */
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 4px rgba(200, 220, 255, 0.5); /* Subtiler Glow-Effekt */
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
    font-size: 1.1em;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}
.disney-button:hover, .disney-button:focus {
    background-color: rgba(200, 220, 255, 0.2); /* Leicht weiß-bläulicher Hintergrund */
    transform: scale(1.1);
    box-shadow: 0 0 6px rgba(200, 220, 255, 0.7); /* Stärkerer Glow */
}
.disney-button:active {
    transform: scale(0.95);
}
.disney-button.loading {
    background-color: #A3BFFA;
    color: #0a0514;
}
.disney-button.success {
    background-color: #A3BFFA;
    color: #0a0514;
}
.disney-button.error {
    background-color: rgba(255, 0, 0, 0.5);
    color: #0a0514;
}
.emoji-button {
    font-size: 1.3em;
}
.set-selector {
    margin: 16px 0;
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
    gap: 8px;
    padding: 8px 0;
    position: relative;
    z-index: 2;
}
.set-selector::-webkit-scrollbar {
    height: 5px;
}
.set-selector::-webkit-scrollbar-thumb {
    background-color: rgba(200, 220, 255, 0.8); /* Angepasster Scrollbar */
    border-radius: 10px;
}
.set-button {
    padding: 6px 14px;
    font-size: 0.85em;
    min-width: 48px;
    border-radius: 20px;
    background-color: #2a2a2a; /* Dunkleres Grau */
    color: #FFFFFF;
    border: 1px solid rgba(200, 220, 255, 0.8); /* Dünner, weiß-bläulicher Rand */
    box-shadow: 0 0 4px rgba(200, 220, 255, 0.5); /* Subtiler Glow-Effekt */
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.set-button:hover, .set-button:focus {
    background-color: rgba(200, 220, 255, 0.2); /* Leicht weiß-bläulicher Hintergrund */
    transform: scale(1.05);
    box-shadow: 0 0 6px rgba(200, 220, 255, 0.7); /* Stärkerer Glow */
}
.set-button:active {
    transform: scale(0.95);
}
.set-button.active {
    background-color: rgba(200, 220, 255, 0.4); /* Aktiver Zustand */
    color: #0a0514;
}
.date-section, .set-section {
    margin: 16px auto;
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(200, 220, 255, 0.8); /* Dünner, weiß-bläulicher Rand */
    border-radius: 10px;
    box-shadow: 0 0 4px rgba(200, 220, 255, 0.5); /* Subtiler Glow-Effekt */
    max-width: 100%;
    position: relative;
    z-index: 2;
}
h2, h3 {
    color: #FFFFFF;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 1.2em;
}
#priceUpdates {
    padding: 8px;
    position: relative;
    z-index: 2;
}
table {
    margin: 0 auto;
    border-collapse: collapse;
    width: 100%;
    max-width: 100%;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    font-size: 0.9em;
    position: relative;
}
th, td {
    padding: 8px;
    text-align: left;
    border: 1px solid rgba(200, 220, 255, 0.3); /* Subtiler weiß-bläulicher Tabellenrand */
    color: #FFFFFF;
}
th.fixed-column, td.fixed-column {
    position: sticky;
    left: 0;
    background-color: #2a2a2a; /* Dunkleres Grau */
    z-index: 3;
}
th {
    background-color: #2a2a2a; /* Dunkleres Grau für Kopfzeile */
    color: #FFFFFF;
    font-weight: 500;
}
tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.05);
}
tr:nth-child(even) td.fixed-column {
    background-color: #2a2a2a; /* Dunkleres Grau für gerade Zeilen */
}
p.no-data, p.loading, p.error {
    color: #FFFFFF;
    font-size: 1em;
    position: relative;
    z-index: 2;
}
small {
    font-size: 0.75em;
    opacity: 0.7;
}
@media (max-width: 768px) {
    .logo {
        width: 140px;
    }
    .disney-button {
        width: 40px;
        height: 40px;
        font-size: 1em;
    }
    .emoji-button {
        font-size: 1.2em;
    }
    .set-button {
        padding: 5px 12px;
        font-size: 0.8em;
        min-width: 48px;
    }
    table {
        font-size: 0.85em;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    th, td {
        padding: 6px;
        min-width: 50px;
    }
    th:nth-child(1), td:nth-child(1) { /* Karte */
        min-width: 80px;
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    th:nth-child(2), td:nth-child(2) { /* Nr. */
        min-width: 40px;
    }
    th:nth-child(3), td:nth-child(3) { /* Set */
        min-width: 50px;
    }
    th:nth-child(4), td:nth-child(4) { /* Foil */
        min-width: 30px;
    }
    th:nth-child(5), td:nth-child(5) { /* Preis EN */
        min-width: 50px;
    }
    th:nth-child(6), td:nth-child(6) { /* Δ EN */
        min-width: 50px;
    }
    th:nth-child(7), td:nth-child(7) { /* Preis DE */
        min-width: 50px;
    }
    th:nth-child(8), td:nth-child(8) { /* Δ DE */
        min-width: 50px;
    }
    th:nth-child(9), td:nth-child(9) { /* Verlauf */
        min-width: 60px;
    }
    th:nth-child(10), td:nth-child(10) { /* eBay EN */
        min-width: 50px;
    }
    th:nth-child(11), td:nth-child(11) { /* eBay DE */
        min-width: 50px;
    }
    h2, h3 {
        font-size: 1.1em;
    }
    .date-section, .set-section {
        padding: 10px;
        margin: 12px auto;
    }
}
@media (max-width: 480px) {
    .logo {
        width: 120px;
    }
    .disney-button {
        width: 36px;
        height: 36px;
        font-size: 0.9em;
    }
    .emoji-button {
        font-size: 1.1em;
    }
    .set-button {
        padding: 4px 10px;
        font-size: 0.75em;
        min-width: 48px;
    }
    table {
        font-size: 0.75em;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    th, td {
        padding: 5px;
        min-width: 30px;
    }
    th:nth-child(1), td:nth-child(1) { /* Karte */
        min-width: 60px;
        max-width: 60px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    th:nth-child(2), td:nth-child(2) { /* Nr. */
        min-width: 20px;
    }
    th:nth-child(3), td:nth-child(3) { /* Set */
        min-width: 35px;
    }
    th:nth-child(4), td:nth-child(4) { /* Foil */
        min-width: 20px;
    }
    th:nth-child(5), td:nth-child(5) { /* Preis EN */
        min-width: 30px;
    }
    th:nth-child(6), td:nth-child(6) { /* Δ EN */
        min-width: 30px;
    }
    th:nth-child(7), td:nth-child(7) { /* Preis DE */
        min-width: 30px;
    }
    th:nth-child(8), td:nth-child(8) { /* Δ DE */
        min-width: 30px;
    }
    th:nth-child(9), td:nth-child(9) { /* Verlauf */
        min-width: 40px;
    }
    th:nth-child(10), td:nth-child(10) { /* eBay EN */
        min-width: 30px;
    }
    th:nth-child(11), td:nth-child(11) { /* eBay DE */
        min-width: 30px;
    }
    h2, h3 {
        font-size: 1em;
    }
}