/* Echtwert Analytics | Sonar-Reihe Master-Stylesheet V1.2 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@700&family=Roboto:wght@400&display=swap');

.calculator-container {
    font-family: 'Roboto', sans-serif;
    color: white;
    background-color: #212121;
    border-radius: 8px;
    padding: 40px;
    width: 100%;
    max-width: 690px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin: 40px auto;
}

/* === HEADLINES & TEXTE === */
.suite-name {
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    color: #9e9e9e;
    text-align: center;
    margin: 0 0 5px 0;
    padding: 0;
}
.calculator-container h3.calculator-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 34px;
    margin: 0 0 10px 0;
    text-align: center;
    color: #FFFFFF !important;
}
.calculator-container .calculator-subtitle {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #DADCE0;
    margin: 0 0 30px 0;
    text-align: center;
}

/* === EINGABEFELDER === */
.input-section-wert-leck,
.input-section-roi {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}
.input-section-reifegrad {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}
.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #DADCE0;
    line-height: 1.5;
}
.input-group input, .input-group select {
    width: 100%;
    padding: 12px;
    background-color: #FFFFFF;
    border: 1px solid #ced4da;
    border-radius: 4px;
    color: #212529;
    font-size: 16px;
    box-sizing: border-box;
}

/* === BUTTONS & AKTIONEN === */
.action-section {
    text-align: center;
}
.cta-button {
    background-color: #E65100 !important; /* Standard Orange */
    color: #FFFFFF !important;
    text-decoration: none;
    border: none !important;
    padding: 15px 30px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: inline-block;
}
.cta-button:hover {
    background-color: #E66000 !important; /* Dunkleres Orange */
}
.final-cta-button {
    display: none;
}

/* === OUTPUT & ERGEBNIS-ANZEIGE === */
.output-section {
    display: none;
    margin-top: 40px;
    text-align: center;
    border-top: 1px solid #424242;
    padding-top: 30px;
}
.output-headline {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: #DADCE0 !important;
    margin-bottom: 10px;
}
.calculator-container .output-title-reifegrad,
.calculator-container .output-title-roi {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: #FFFFFF !important;
    margin-bottom: 10px;
}
.output-title-reifegrad { font-size: 24px; }
.output-title-roi { font-size: 20px; }

.output-value { /* Nur für Wert-Leck-Sonar */
    font-family: 'Inter', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #E65100;
    margin-bottom: 20px;
}
.output-description-reifegrad,
.output-description-roi {
    font-size: 16px;
    color: #DADCE0;
    max-width: 500px;
    margin: 0 auto 30px auto;
    line-height: 1.6;
}

/* === DIAGRAMME === */
.chart-wrapper { /* Wert-Leck-Sonar */
    position: relative;
    height: 100px;
    width: 100%;
    margin-bottom: 20px;
}
/* ### ÄNDERUNG: TACHO VERGRÖSSERT ### */
.chart-wrapper-reifegrad,
.chart-wrapper-roi { /* Wirkungsgrad & ROI */
    position: relative;
    width: 250px;  /* Von 200px erhöht */
    height: 125px; /* Von 100px erhöht */
    margin: 20px auto 20px auto;
}
/* ### ÄNDERUNG: TACHO-TEXT VERGRÖSSERT ### */
.chart-text-reifegrad,
.chart-text-roi {
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Inter', sans-serif;
    font-size: 40px; /* Von 32px erhöht */
    font-weight: 700;
    color: white;
}

/* =============================================== */
/* == MOBILE OPTIMIERUNGEN (BREAKPOINTS)        == */
/* =============================================== */

@media (max-width: 600px) {

    /* Ändert das 2-spaltige Layout in ein 1-spaltiges auf Mobile */
    .input-section-wert-leck,
    .input-section-roi {
        grid-template-columns: 1fr;
    }

    /* Sorgt dafür, dass Buttons nicht überlaufen und Text umbricht */
    .cta-button {
        padding: 15px 20px; /* Reduziertes Padding für kleinere Bildschirme */
        white-space: normal; /* Erlaubt Textumbruch im Button explizit */
        width: 100%; /* Nimmt die volle Breite des Containers ein */
        box-sizing: border-box; /* Stellt sicher, dass Padding die Breite nicht sprengt */
    }

    /* Optionale Anpassung der Schriftgrößen für bessere Lesbarkeit */
    .calculator-title {
        font-size: 28px;
    }
    .output-value {
        font-size: 42px;
    }
    .output-title-reifegrad,
    .output-title-roi {
        font-size: 20px;
    }
}
/* ======================================================= */
/* == RESPONSIVE OPTIMIERUNGEN (FINAL V4.0 - TOUCH FIRST) == */
/* ======================================================= */

/* Diese Regel zielt auf ALLE Geräte, die primär über Touch bedient werden (Tablets & Smartphones),
   unabhängig von ihrer Auflösung oder Ausrichtung. */
@media (hover: none) and (pointer: coarse) {

    /* Stellt sicher, dass die 2-spaltigen Input-Grids auf Touch-Geräten immer untereinander laufen */
    .input-section-wert-leck,
    .input-section-roi {
        grid-template-columns: 1fr;
    }

    /* Stellt sicher, dass ALLE CTA-Buttons im Sonar die volle Breite einnehmen und nicht ausbrechen */
    .calculator-container .cta-button {
        white-space: normal; /* Erlaubt Textumbruch, falls nötig */
        width: 100%;         /* Zwingt den Button auf volle Breite */
        box-sizing: border-box;
    }
}
