:root {
    --primary: #00008f; 
    --cta-bg: #007AC9;  
    --primary-light: #e6e6f4;
    --danger: #e53935;  
    --success: #00008f; 
    --bg-color: #f7f9fc;
    --card-bg: #ffffff;
    --text-main: #333333;
    --text-muted: #666666;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Source Sans Pro', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    padding: 20px;
    display: flex;
    justify-content: center;
}

.app-wrapper { width: 100%; max-width: 900px; }

/* Logo Container */
.logo-container {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 30px;
}
.logo-container img {
    max-height: 45px;
    width: auto;
}

.app-header { text-align: center; margin-bottom: 30px; }
.app-header h1 { font-size: 32px; color: var(--primary); margin-bottom: 10px; }

/* Geteilter Hero-Bereich - 100px HÖHER GESTELLT */
.hero-container {
    display: flex;
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    min-height: 350px; /* <--- Hier von 250px auf 350px erhöht */
}

.hero-image {
    flex: 2;
    position: relative;
    background-color: #eef1f6;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0; left: 0;
    transition: opacity 0.4s ease-in-out;
}
.img-fade { opacity: 0; }

/* CTA Box */
.hero-cta {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--cta-bg); 
    color: #ffffff;
}

.hero-cta h3 {
    font-size: 22px; /* Leicht vergrößert, da Box nun höher ist */
    color: #ffffff;
    margin-bottom: 15px;
    border-bottom: none;
    padding-bottom: 0;
}

.hero-cta p {
    font-size: 15px;
    color: #ffffff;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* "Ghost"-Button */
.btn-termin {
    display: inline-block;
    background-color: transparent; 
    color: #ffffff; 
    text-decoration: none;
    font-weight: 600;
    padding: 10px 18px; 
    border-radius: 4px;
    text-align: center;
    border: 3px solid #ffffff; 
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.btn-termin:hover {
    background-color: #ffffff;
    color: var(--cta-bg); 
}

/* Auf mobilen Geräten untereinander stapeln */
@media (max-width: 650px) {
    .hero-container { flex-direction: column; }
    .hero-image { min-height: 280px; } /* Auf Mobile auch etwas höher (vorher 200px) */
    .hero-cta { text-align: center; }
}

/* Restliches Modul Styling bleibt identisch... */
.calc-module {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    overflow: hidden;
}

.module-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
}

@media (max-width: 768px) {
    .module-content { grid-template-columns: 1fr; gap: 30px; padding: 25px; }
}

h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text-main);
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 10px;
}

.input-group { margin-bottom: 30px; }
.input-group label { display: block; font-weight: 600; margin-bottom: 12px; }
.highlight-text { color: var(--primary); font-size: 18px; }
.subtext { font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.mt-2 { margin-top: 20px; }

.segment-control { display: flex; background: var(--primary-light); border-radius: 8px; overflow: hidden; }
.segment-control input { display: none; }
.segment-control label { flex: 1; text-align: center; padding: 12px; margin: 0; cursor: pointer; font-weight: 600; color: var(--primary); transition: 0.3s; }
.segment-control input:checked + label { background: var(--primary); color: #fff; }

.modern-slider { -webkit-appearance: none; width: 100%; height: 8px; background: var(--primary-light); border-radius: 4px; outline: none; margin-top: 10px; }
.modern-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--primary); cursor: pointer; box-shadow: 0 3px 6px rgba(0,0,143,0.3); transition: 0.2s; }
.modern-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
.slider-labels { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-muted); margin-top: 8px; padding: 0 5px; }

.chart-container { display: flex; align-items: center; gap: 30px; }
@media (max-width: 500px) { .chart-container { flex-direction: column; } }

.donut-chart { position: relative; width: 160px; height: 160px; border-radius: 50%; background: conic-gradient(var(--success) var(--p), var(--danger) 0); display: flex; justify-content: center; align-items: center; }
.donut-inner { width: 120px; height: 120px; background: var(--card-bg); border-radius: 50%; display: flex; flex-direction: column; justify-content: center; align-items: center; box-shadow: inset 0 2px 10px rgba(0,0,0,0.05); }
.donut-title { font-size: 12px; color: var(--text-muted); }
.donut-value { font-size: 20px; font-weight: 700; color: var(--text-main); }

.legend { flex: 1; }
.legend-item { display: flex; align-items: flex-start; margin-bottom: 15px; }
.dot { width: 14px; height: 14px; border-radius: 50%; margin-right: 12px; margin-top: 3px; }
.dot.kasse { background-color: var(--success); }
.dot.luecke { background-color: var(--danger); }
.leg-title { display: block; font-size: 13px; color: var(--text-muted); }
.leg-val { font-size: 18px; font-weight: 700; }
.luecke-text { color: var(--danger); }

.longterm-card { background: #fff5f5; border: 1px solid #ffdcd9; padding: 30px; border-radius: 12px; text-align: center; }
.longterm-card h4 { color: var(--text-main); font-size: 16px; margin-bottom: 10px; }
.huge-value { font-size: 38px; font-weight: 700; margin-bottom: 15px; }

.stacked-bar-container { display: flex; height: 30px; border-radius: 15px; overflow: hidden; }
.stacked-bar { display: flex; align-items: center; justify-content: center; color: white; font-size: 12px; font-weight: 600; transition: width 0.5s ease-in-out; }
.stacked-bar.kasse { background: var(--success); }
.stacked-bar.luecke { background: var(--danger); }

.disclaimer-box { background: #eef1f6; padding: 25px; border-radius: 12px; border-left: 5px solid #aeb8cc; font-size: 13px; color: #555; line-height: 1.6; }
.disclaimer-box h4 { margin-bottom: 10px; color: #333; font-size: 15px; }
.disclaimer-box p { margin-bottom: 10px; }
.disclaimer-box p:last-child { margin-bottom: 0; }

.app-footer { text-align: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid #e2e8f0; }
.app-footer a { color: var(--text-muted); text-decoration: none; font-size: 14px; margin: 0 15px; transition: color 0.3s ease; }
.app-footer a:hover { color: var(--primary); }