:root {
    --bg: #F0F2F5;
    --text: #1C1E21;
    --text-muted: #606770;
    --card-bg: #FFFFFF;
    --border: #DADDE1;
    --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

.full-width-image {
    width: 100%;
    aspect-ratio: 30 / 10;
    overflow: hidden;
    background-color: #ddd;
}

.full-width-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.container {
    max-width: 900px; /* Leicht verbreitert für die längeren Label-Texte */
    margin: 2rem auto;
    padding: 0 1rem;
}

header {
    margin-bottom: 2.5rem;
    text-align: center;
}

header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.copyright {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

h2, h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.grid-inputs {
    display: flex;
    flex-direction: column; /* Vertikal für bessere Lesbarkeit der langen Klammertexte */
    gap: 1.25rem;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.input-group input {
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    background-color: #fcfcfc;
    width: 100%;
    max-width: 300px; /* Eingabefelder bleiben kompakt */
}

.result-card.total {
    text-align: center;
    background-color: #fcfcfc;
}

.large-number {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text);
}

.sub-values {
    display: flex;
    justify-content: center;
    gap: 3rem;
    font-size: 1rem;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    color: var(--text-muted);
}

.split-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

table {
    width: 100%;
    border-collapse: collapse;
}

td {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border);
}

tr:last-child td { border-bottom: none; }

td:first-child { color: var(--text-muted); }
td:last-child {
    text-align: right;
    font-weight: 700;
}

@media (max-width: 600px) {
    .sub-values { flex-direction: column; gap: 0.5rem; }
    .large-number { font-size: 2.5rem; }
}