@font-face{
    font-family:"Open Sans";
    src:url("fonts/open-sans-v44-latin-regular.woff2") format("woff2");
    font-weight:400;
    font-style:normal;
    font-display:swap;
}

@font-face{
    font-family:"Open Sans";
    src:url("fonts/open-sans-v44-latin-600.woff2") format("woff2");
    font-weight:600;
    font-style:normal;
    font-display:swap;
}

@font-face{
    font-family:"Open Sans";
    src:url("fonts/open-sans-v44-latin-700.woff2") format("woff2");
    font-weight:700;
    font-style:normal;
    font-display:swap;
}

@font-face{
    font-family:"Poppins";
    src:url("fonts/poppins-v24-latin-regular.woff2") format("woff2");
    font-weight:400;
    font-style:normal;
    font-display:swap;
}

@font-face{
    font-family:"Poppins";
    src:url("fonts/poppins-v24-latin-500.woff2") format("woff2");
    font-weight:500;
    font-style:normal;
    font-display:swap;
}

@font-face{
    font-family:"Poppins";
    src:url("fonts/poppins-v24-latin-600.woff2") format("woff2");
    font-weight:600;
    font-style:normal;
    font-display:swap;
}

@font-face{
    font-family:"Poppins";
    src:url("fonts/poppins-v24-latin-700.woff2") format("woff2");
    font-weight:700;
    font-style:normal;
    font-display:swap;
}

/* ==========================================================
   MeinKinderPlan.de
   style.css
   Version 2.0
========================================================== */


/* ==========================================================
   Grundeinstellungen
========================================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{

    scroll-behavior:smooth;

}

body{

    font-family:"Open Sans",sans-serif;
    background:#f5f8fb;
    color:#334155;
    line-height:1.7;

}

img{

    max-width:100%;
    display:block;

}

.container{

    width:min(1200px,92%);
    margin:auto;

}



/* ==========================================================
   Farben
========================================================== */

:root{

    --gruen:#39A853;
    --gruen-dunkel:#2F8A47;

    --blau:#1E3A5F;

    --hell:#ffffff;

    --hintergrund:#f5f8fb;

    --text:#334155;

    --hellgrau:#e7edf3;

    --radius:22px;

    --schatten:
    0 15px 35px rgba(0,0,0,.08);

}

.logo-mein{
    color:#2e7d32 !important;
}

.logo-kinder{
    color:#f39c12 !important;
}

.logo-plan{
    color:#2e7d32 !important;
}

/* ==========================================================
   Navigation
========================================================== */

header{

    position:fixed;

    top:0;
    left:0;

    width:100%;

    background:rgba(255,255,255,.95);

    backdrop-filter:blur(10px);

    z-index:999;

    box-shadow:0 5px 20px rgba(0,0,0,.05);

}

.navbar{

    height:90px;

    display:flex;

    justify-content:space-between;

    align-items:center;

}

.logo{

    font-family:"Poppins",sans-serif;

    font-size:34px;

    font-weight:700;

    color:var(--gruen);

}

.nav-links{

    display:flex;

    list-style:none;

    gap:35px;

}

.nav-links a{

    text-decoration:none;

    color:var(--text);

    font-weight:600;

    transition:.3s;

}

.nav-links a:hover{

    color:var(--gruen);

}



/* ==========================================================
   Buttons
========================================================== */

.button-nav,
.button-main{

    display:inline-block;

    background:var(--gruen);

    color:white;

    text-decoration:none;

    border:none;

    border-radius:50px;

    cursor:pointer;

    transition:.35s;

    font-weight:700;

}

.button-nav{

    padding:15px 30px;

}

.button-main{

    padding:18px 45px;

    font-size:19px;

}

.button-nav:hover,
.button-main:hover{

    background:var(--gruen-dunkel);

    transform:translateY(-3px);

}



/* ==========================================================
   Hero
========================================================== */

.hero{

    min-height:100vh;

    background-image:url("Bilder/Familie-Hero.jpg");

    background-position:center center;

    background-size:cover;

    background-repeat:no-repeat;

    position:relative;

    display:flex;

    justify-content:center;

    align-items:center;

    text-align:center;

}

.hero-overlay{

    position:absolute;

    inset:0;

    background:linear-gradient(
        rgba(255,255,255,0.78),
        rgba(255,255,255,0.72)
    );

}

.hero-content{

    position:relative;

    z-index:2;

    max-width:900px;

    width:100%;

    margin:0 auto;

    text-align:center;

}

.hero h2{

    font-family:"Poppins";

    font-size:30px;

    color:var(--gruen);

    margin-bottom:20px;

}

.hero h1{

    font-family:"Poppins";

    font-size:70px;

    line-height:1.15;

    margin-bottom:30px;

    color:#1f2937;

}

.hero p{

    font-size:24px;

    margin-bottom:45px;

}



/* ==========================================================
   Allgemeine Bereiche
========================================================== */

section{

    padding:120px 0;

}

section h2{

    text-align:center;

    font-family:"Poppins";

    font-size:48px;

    margin-bottom:35px;

    color:#1f2937;

}

.einleitung{

    max-width:900px;

    margin:0 auto 70px;

    text-align:center;

    font-size:21px;

    color:#4b5563;

}



/* ==========================================================
   Karten
========================================================== */

.cards{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:35px;

}

.card{

    background:white;

    border-radius:var(--radius);

    padding:45px;

    text-align:center;

    box-shadow:var(--schatten);

    transition:.35s;

}

.card:hover{

    transform:translateY(-8px);

}

.icon{

    font-size:52px;

    margin-bottom:20px;

}

.card h3{

    font-family:"Poppins";

    margin-bottom:20px;

    font-size:25px;

}

.card p{

    color:#64748b;

}

/* ==========================================================
   Leistungsübersicht
========================================================== */

.leistung-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:35px;

}

.leistung-box{

    background:white;

    border-radius:var(--radius);

    padding:40px;

    box-shadow:var(--schatten);

    transition:.3s;

}

.leistung-box:hover{

    transform:translateY(-8px);

}

.leistung-box h3{

    font-family:"Poppins";

    color:var(--gruen);

    font-size:28px;

    margin-bottom:25px;

}

.leistung-box ul{

    list-style:none;

}

.leistung-box li{

    padding:12px 0;

    border-bottom:1px solid #edf2f7;

}

.leistung-box li:last-child{

    border-bottom:none;

}

.center{

    text-align:center;

    margin-top:60px;

}



/* ==========================================================
   Fragebogen
========================================================== */

.fragebogen{

    background:#eef3f8;

}

#wizard{

    max-width:900px;

    margin:auto;

}

.step{

    display:none;

    background:white;

    border-radius:25px;

    padding:55px;

    box-shadow:var(--schatten);

    animation:einblenden .45s ease;

}

.step.active{

    display:block;

}

.step h3{

    text-align:center;

    font-family:"Poppins";

    font-size:34px;

    margin-bottom:40px;

    color:#1f2937;

}

.frage-hinweis{

    margin-top:18px;

    padding:16px;

    background:#f6f6f6;

    border-left:4px solid #2f855a;

    border-radius:8px;

    font-size:0.95rem;

    color:#555;

    line-height:1.6;

}

/* ==========================================================
   Auswahlkarten
========================================================== */

.step label{

    display:block;

    background:white;

    border:2px solid #dbe3ea;

    border-radius:18px;

    padding:22px 24px;

    margin-bottom:18px;

    cursor:pointer;

    transition:.25s;

    font-size:20px;

}

.step label:hover{

    border-color:var(--gruen);

    transform:translateX(8px);

    box-shadow:0 10px 25px rgba(0,0,0,.08);

}

.step input[type="radio"],
.step input[type="checkbox"]{

    margin-right:16px;

    transform:scale(1.35);

    accent-color:var(--gruen);

}



/* ==========================================================
   Eingabefelder
========================================================== */

.step input[type="text"],
.step input[type="email"],
.step input[type="tel"],
.step textarea{

    width:100%;

    padding:18px;

    margin-bottom:22px;

    border-radius:15px;

    border:2px solid #dbe3ea;

    font-size:18px;

    transition:.25s;

}

.step textarea{

    resize:vertical;

    min-height:150px;

}

.step input:focus,
.step textarea:focus{

    outline:none;

    border-color:var(--gruen);

    box-shadow:0 0 12px rgba(57,168,83,.25);

}



/* ==========================================================
   Fortschritt
========================================================== */

.progress{

    max-width:900px;

    margin:40px auto 20px;

    height:18px;

    background:#dde5ec;

    border-radius:30px;

    overflow:hidden;

}

#progressBar{

    width:16%;

    height:100%;

    background:linear-gradient(90deg,#56d06f,#2F8A47);

    transition:.5s;

}

#progressText{

    text-align:center;

    font-weight:700;

    font-size:19px;

    margin-bottom:45px;

}



/* ==========================================================
   Navigation
========================================================== */

.wizard-buttons{

    display:flex;

    justify-content:flex-end;

    gap:20px;

    margin-top:40px;

}

#zurueck{

    background:#9ca3af;

}

#zurueck:hover{

    background:#6b7280;

}

#absenden{

    display:none;

}



/* ==========================================================
   Animation
========================================================== */

@keyframes einblenden{

    from{

        opacity:0;

        transform:translateY(30px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

/* ==========================================================
   Persönliche Auswertung
========================================================== */

.auswertung-box{

    background:#ffffff;

    border-radius:22px;

    padding:35px;

    margin-bottom:30px;

    box-shadow:var(--schatten);

}

.auswertung-kopf{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:20px;

    min-height:40px;

}

.auswertung-kopf{

    display:flex;

    align-items:center;

    justify-content:space-between;

    width:100%;

    margin-bottom:18px;

    gap:15px;

}

.score-balken{

    width:100%;

    height:18px;

    background:#dbe3ea;

    border-radius:30px;

    overflow:hidden;

    margin-bottom:15px;

}

#gesundheitBar,
#sicherheitBar,
#zukunftBar{

    width:0%;

    height:100%;

    border-radius:30px;

    transition:width 1.5s ease;

}

#gesundheitBar{

    background:linear-gradient(90deg,#4fd36b,#2F8A47);

}

#sicherheitBar{

    background:linear-gradient(90deg,#ffd54d,#d4a100);

}

#zukunftBar{

    background:linear-gradient(90deg,#59a9ff,#2563eb);

}

.prozent{

    text-align:right;

    font-size:30px;

    font-weight:700;

    margin-bottom:18px;

    color:#1f2937;

}

.auswertung-box p{

    font-size:18px;

    line-height:1.8;

}



/* ==========================================================
   Informationsbox
========================================================== */

.info-box{

    margin-top:40px;

    background:#eef9ef;

    border-left:8px solid var(--gruen);

    border-radius:20px;

    padding:35px;

    box-shadow:var(--schatten);

}

.info-box h4{

    font-family:"Poppins";

    color:var(--gruen);

    font-size:28px;

    margin-bottom:20px;

}

.info-box p{

    font-size:18px;

    line-height:1.9;

}

const gesundheit =
document.querySelector('input[name="gesundheit"]:checked');

const hinweis =
document.getElementById("gesundheitHinweis");

if(gesundheit &&
   (gesundheit.value==="Ja" ||
    gesundheit.value==="Unsicher")){

    hinweis.style.display="block";

}else{

    hinweis.style.display="none";

}

/* ==========================================================
   Empfehlung
========================================================== */

.empfehlung-box{

    margin-top:40px;

    background:#ffffff;

    border-radius:22px;

    padding:35px;

    box-shadow:var(--schatten);

}

.empfehlung-box h4{

    font-family:"Poppins";

    color:var(--gruen);

    font-size:30px;

    margin-bottom:20px;

}

.empfehlung-box ul{

    list-style:none;

    margin-top:20px;

    padding:0;

}

.empfehlung-box li{

    padding:12px 0;

    border-bottom:1px solid #eceff3;

}

.empfehlung-box li:last-child{

    border-bottom:none;

}

.empfehlung-box li::before{

    content:"✔ ";

    color:var(--gruen);

    font-weight:bold;

}



/* ==========================================================
   Beratung
========================================================== */

.beratung-box{

    margin-top:40px;

    background:white;

    border-radius:22px;

    padding:35px;

    box-shadow:var(--schatten);

}

.beratung-box h4{

    font-family:"Poppins";

    font-size:30px;

    margin-bottom:20px;

}

.beratung-box ul{

    list-style:none;

    padding:0;

}

.beratung-box li{

    padding:12px 0;

    border-bottom:1px solid #eceff3;

}

.beratung-box li:last-child{

    border-bottom:none;

}

.beratung-box li::before{

    content:"✔ ";

    color:var(--gruen);

    font-weight:bold;

}



/* ==========================================================
   Hinweis
========================================================== */

.hinweis-box{

    margin-top:40px;

    background:#eef7ff;

    border-left:8px solid #3b82f6;

    border-radius:20px;

    padding:35px;

}

.hinweis-box h3{

    font-family:"Poppins";

    margin-bottom:20px;

}

.hinweis-box p{

    font-size:18px;

    line-height:1.8;

}



/* ==========================================================
   Über mich
========================================================== */

.uebermich{

    background:white;

}

.uebermich-box{

    display:grid;

    grid-template-columns:320px 1fr;

    gap:60px;

    align-items:center;

    margin-top:60px;

}

.uebermich-bild img{

    border-radius:25px;

    box-shadow:var(--schatten);

}

.uebermich-text h3{

    font-family:"Poppins";

    color:var(--gruen);

    font-size:34px;

    margin-bottom:25px;

}

.uebermich-text p{

    margin-bottom:20px;

    font-size:18px;

}



/* ==========================================================
   Kontakt
========================================================== */

.kontakt{

    background:#eef3f8;

}

.kontakt-box{

    max-width:700px;

    margin:auto;

    background:white;

    padding:45px;

    border-radius:22px;

    text-align:center;

    box-shadow:var(--schatten);

}

.kontakt-box p{

    margin:20px 0;

    font-size:22px;

}



/* ==========================================================
   Footer
========================================================== */

footer{

    background:#243443;

    color:white;

    padding:45px 0;

    text-align:center;

}

footer a{

    color:white;

    text-decoration:none;

}

footer a:hover{

    color:#b7f0c5;

}



/* ==========================================================
   Responsive
========================================================== */

@media(max-width:1000px){

.cards,
.leistung-grid,
.uebermich-box{

    grid-template-columns:1fr;

}

.nav-links{

    display:none;

}

.hero h1{

    font-size:48px;

}

}

@media(max-width:700px){

.hero h1{

    font-size:36px;

}

.hero p{

    font-size:18px;

}

.step{

    padding:30px;

}

.step h3{

    font-size:28px;

}

.button-main,
.button-nav{

    width:100%;

    text-align:center;

}

.wizard-buttons{

    flex-direction:column;

}

section{

    padding:80px 0;

}

}

/* ==========================================================
   Hero-Vorteile
========================================================== */

.hero-vorteile{

    margin-top:35px;

    display:flex;

    justify-content:center;

    gap:35px;

    flex-wrap:wrap;

}

.hero-vorteil{

    background:rgba(255,255,255,.75);

    backdrop-filter:blur(6px);

    padding:14px 22px;

    border-radius:30px;

    font-size:17px;

    font-weight:600;

    color:#334155;

    box-shadow:0 8px 20px rgba(0,0,0,.08);

    transition:.3s;

}

.hero-vorteil:hover{

    transform:translateY(-3px);

    box-shadow:0 12px 25px rgba(0,0,0,.12);

}



@media(max-width:700px){

.hero-vorteile{

    flex-direction:column;

    align-items:center;

    gap:15px;

}

.hero-vorteil{

    width:100%;

    max-width:320px;

    text-align:center;

}

}

.auswertung-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:30px;

    margin-bottom:45px;

}

@media(max-width:900px){

.auswertung-grid{

    grid-template-columns:1fr;

}

}

/* ==========================================================
   Rechtliche Seiten
========================================================== */

.recht-hero{

    padding:170px 0 70px;

    background:#eef3f8;

    text-align:center;

}

.recht-hero h1{

    font-family:"Poppins";

    font-size:52px;

    color:#1f2937;

    margin-bottom:25px;

}

.recht-hero p{

    max-width:900px;

    margin:auto;

    font-size:20px;

}

.recht{

    padding:80px 0;

}

.recht-box{

    background:#ffffff;

    border-radius:22px;

    padding:40px;

    margin-bottom:35px;

    box-shadow:var(--schatten);

}

.recht-box h2{

    text-align:left;

    font-family:"Poppins";

    font-size:30px;

    margin-bottom:20px;

    color:var(--gruen);

}

.recht-box p{

    margin-bottom:18px;

    line-height:1.8;

}

.recht-box ul{

    margin:20px 0 20px 25px;

}

.recht-box li{

    margin-bottom:10px;

    line-height:1.8;

}

.hinweis-bu {

    margin-top: 20px;
    padding: 12px 16px;

    background: #f4f8fc;
    border-left: 4px solid #1b6ec2;
    border-radius: 8px;

    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;

}