@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Poppins:wght@400;600&display=swap');

body {
    font-family: 'Poppins', sans-serif; /* Modernere Schriftart */
    background: linear-gradient(135deg, #FF6B6B 0%, #FFD93D 50%, #6BCB77 100%); /* Bunter Hintergrund-Verlauf */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    color: #333;
    overflow-x: hidden; /* Verhindert horizontale Scrollbalken durch Animationen */
}

/* Hintergrundanimation (Optional, macht es "aufgeblähter") */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, rgba(255,255,255,0.1) 0%, transparent 50%),
                radial-gradient(circle at bottom right, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: backgroundPulse 10s infinite alternate;
    z-index: -1;
}

@keyframes backgroundPulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
    100% { transform: scale(1); opacity: 1; }
}


.calculator-container {
    background: linear-gradient(160deg, #ffffff 0%, #f0f8ff 100%); /* Hellerer Verlauf für den Container */
    padding: 50px; /* Mehr Padding */
    border-radius: 25px; /* Stärkere Rundung */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25), 0 0 0 10px rgba(255, 255, 255, 0.4); /* Aufgeblähte Schatten */
    width: 100%;
    max-width: 500px; /* Breiter */
    box-sizing: border-box;
    position: relative;
    z-index: 10;
    animation: fadeInScale 1s ease-out;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

h1 {
    text-align: center;
    color: #8A2BE2; /* Kräftige Akzentfarbe */
    margin-bottom: 40px;
    font-size: 2.5rem; /* Größerer Titel */
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
    font-family: 'Montserrat', sans-serif; /* Andere Schriftart für den Titel */
    position: relative;
    padding-bottom: 15px;
}

h1::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #FF6B6B, #FFD93D); /* Farbiger Unterstrich */
    border-radius: 5px;
}


.input-group, .checkbox-group {
    margin-bottom: 25px; /* Mehr Abstand */
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700; /* Stärkerer Text */
    color: #4A4A4A;
    font-size: 1.1rem;
}

input[type="number"], select {
    width: 100%;
    padding: 15px 20px; /* Mehr Padding */
    border: 2px solid #DDA0DD; /* Lila Rand */
    border-radius: 12px; /* Stärkere Rundung */
    box-sizing: border-box;
    font-size: 1.1rem;
    transition: all 0.3s ease; /* Alle Übergänge animieren */
    background-color: #fcfcff; /* Leicht getönter Hintergrund */
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05); /* Dezenter Innenschatten */
}

input[type="number"]:focus, select:focus {
    border-color: #8A2BE2; /* Fokusfarbe Lila */
    box-shadow: 0 0 0 4px rgba(138, 43, 226, 0.3); /* Ring bei Fokus */
    outline: none;
    background-color: #fff;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.checkbox-group input[type="checkbox"] {
    width: 25px; /* Größere Checkbox */
    height: 25px;
    margin-right: 15px;
    border: 2px solid #8A2BE2;
    border-radius: 6px;
    background-color: #fcfcff;
    cursor: pointer;
    position: relative;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    transition: background-color 0.3s, border-color 0.3s;
}

.checkbox-group input[type="checkbox"]:checked {
    background-color: #8A2BE2;
    border-color: #8A2BE2;
}

.checkbox-group input[type="checkbox"]:checked::before {
    content: '✔'; /* Häkchen bei Check */
    display: block;
    color: white;
    font-size: 18px;
    text-align: center;
    line-height: 25px;
}

.checkbox-group label {
    margin-bottom: 0; /* Abstand zur Checkbox anpassen */
    cursor: pointer;
    font-weight: 600;
}


/* Button Styling */
.calculate-button {
    width: 100%;
    padding: 18px 25px; /* Mehr Padding */
    background: linear-gradient(45deg, #FF6B6B, #FFD93D); /* Starker Verlauf */
    color: white;
    border: none;
    border-radius: 15px; /* Stärkere Rundung */
    font-size: 1.3rem; /* Größerer Text */
    font-weight: 800; /* Extra fett */
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4); /* Auffälliger Schatten */
    transition: all 0.3s ease;
    letter-spacing: 1px; /* Mehr Abstand zwischen Buchstaben */
    text-transform: uppercase; /* Großbuchstaben */
}

.calculate-button:hover {
    background: linear-gradient(45deg, #FFD93D, #FF6B6B); /* Verlauf umkehren */
    box-shadow: 0 12px 25px rgba(255, 107, 107, 0.6);
    transform: translateY(-3px) scale(1.01); /* Leichter Schwebe-Effekt */
}

.calculate-button:active {
    transform: translateY(1px) scale(0.99); /* Klick-Effekt */
    box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3);
}

/* Ergebnis-Box Styling */
.result-box {
    margin-top: 40px;
    padding: 30px; /* Mehr Padding */
    border-top: none; /* Kein einfacher Strich mehr */
    background-color: #f0f8ff; /* Hintergrundfarbe für die Box */
    border-radius: 18px;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.08); /* Dezenter Innenschatten */
    position: relative;
    overflow: hidden; /* Für Pseudo-Element */
    animation: resultPopIn 0.8s ease-out forwards;
    opacity: 0; /* Startet unsichtbar */
}

@keyframes resultPopIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.result-box::before { /* Pseudo-Element als stylischer Rand */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-image: linear-gradient(45deg, #6BCB77, #FFD93D, #FF6B6B) 1;
    border-radius: 18px;
    pointer-events: none;
    z-index: 1;
}


.result-box h2 {
    color: #1E90FF; /* Helles Blau */
    text-align: center;
    margin-bottom: 25px;
    font-size: 2rem; /* Größerer Titel */
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.05);
    font-family: 'Montserrat', sans-serif;
}

.result-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px; /* Mehr Abstand zwischen den Items */
    position: relative;
    z-index: 2; /* Über dem Pseudo-Element */
}

.result-item {
    background-color: #ffffff; /* Weißer Hintergrund */
    padding: 20px; /* Mehr Padding */
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.result-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.result-item .label {
    display: block;
    font-size: 1rem; /* Größer */
    color: #6A5ACD; /* Mittel-Lila */
    margin-bottom: 8px;
    font-weight: 600;
}

.result-item .value {
    font-size: 2rem; /* Deutlich größer */
    font-weight: 800;
    color: #333;
    letter-spacing: 0.5px;
}

.result-item.net {
    background: linear-gradient(45deg, #6BCB77 0%, #A8E063 100%); /* Grüner Verlauf */
    border: 3px solid #28a745;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

.result-item.net .label {
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.result-item.net .value {
    color: #ffffff; /* Weißer Wert */
    font-size: 2.5rem; /* Noch größer */
    text-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

.result-item.deduction {
    background: linear-gradient(45deg, #FF6B6B 0%, #FFA07A 100%); /* Roter Verlauf */
    border: 3px solid #dc3545;
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
}

.result-item.deduction .label {
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.result-item.deduction .value {
    color: #ffffff; /* Weißer Wert */
    font-size: 2.2rem;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

.disclaimer {
    text-align: center;
    font-size: 0.85rem;
    color: #777;
    margin-top: 25px;
    padding: 10px 15px;
    background-color: #fff3cd; /* Warn-Farbe */
    border: 1px solid #ffeeba;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}