body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f9f9f9;
    margin: 0;
    padding: 0;
    color: #333;
}

header {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px;
}

header h1 { margin: 0; font-size: 2em; }
header p { margin: 5px 0 0; font-size: 1em; }

.controls {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.controls input, .controls select {
    padding: 5px 8px;
    font-size: 1em;
}

table {
    width: 90%;
    max-width: 1000px;
    margin: 30px auto;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

th, td {
    padding: 12px 10px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

th {
    background: #3498db;
    color: white;
    position: sticky;
    top: 0;
}

tbody tr:hover { background: #f1f1f1; }

.bar {
    height: 20px;
    background: #3498db;
    text-align: right;
    color: white;
    padding-right: 5px;
    border-radius: 4px;
}

.edelmetall .bar {
    background: linear-gradient(90deg, #ffd700, #ffcc00);
}

.chart-cell { width: 200px; height: 50px; }

@media screen and (max-width: 768px) {
    table, thead, tbody, th, td, tr { display: block; }
    th { top: auto; }
    td {
        position: relative;
        padding-left: 50%;
        border: none;
        border-bottom: 1px solid #eee;
    }
    td::before {
        position: absolute;
        top: 12px;
        left: 10px;
        width: 45%;
        font-weight: bold;
        white-space: nowrap;
    }
    td:nth-of-type(1)::before { content: "Metall"; }
    td:nth-of-type(2)::before { content: "Preis €/kg"; }
    td:nth-of-type(3)::before { content: "Visualisierung"; }
    td:nth-of-type(4)::before { content: "Verlauf"; }
    td:nth-of-type(5)::before { content: "Aktualisierung"; }
}