/* =====================================
   Mitgliedsantrag Style
   Fotoklub Exakta Dresden e.V.
===================================== */


*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}


html,
body{

    width:100%;
    min-height:100%;

    background:#f4f6f8;

    font-family:Arial,sans-serif;

    overflow-x:hidden;

}


/* HEADER */

.header{

    width:calc(100% - 40px);

    margin:20px auto;

    padding:15px;

    display:flex;

    align-items:center;

    justify-content:center;

    gap:30px;

    background:#fff;

    border:1px solid #bdbdbd;

    border-radius:8px;

}


.logo img{

    max-width:120px;

    height:auto;

}


.header-title h1{

    font-size:clamp(1.5rem,4vw,2.5rem);

    color:#c40000;

    text-align:center;

}




/* HAUPTCONTAINER */

.form-container{

    width:calc(100% - 40px);

    max-width:900px;

    margin:40px auto 60px auto;

    padding:35px;

    background:#fff;

    border:1px solid #bdbdbd;

    border-radius:8px;

}



/* Überschriften */

.form-container h1{

    text-align:center;

    font-size:2.2rem;

    color:#c40000;

    margin-bottom:20px;

}


.form-container h2{

    margin-top:10px;

    margin-bottom:20px;

    padding-bottom:10px;

    border-bottom:2px solid #ff0000;

    color:#222;

}

.form-container form > p {
    margin-bottom: 50px;
}

.success-container{
    width:calc(100% - 40px);
    max-width:1100px;
    margin:40px auto 30px;
    padding:40px;
    background:#fff;
    border:1px solid #bdbdbd;
    border-radius:8px;
    text-align:center;
}

.success-text{
    font-size:22px;
    line-height:1.7;
}

.hinweis{

    text-align:center;

    color:#555;

    margin-bottom:40px;

    font-size:18px;

}




/* FORMULAR */

.form-group{

    margin-bottom:20px;

}



label{

    display:block;

    font-size:18px;

    margin-bottom:8px;

}



input[type="text"],
input[type="email"],
input[type="tel"]{


    width:100%;

    padding:12px;

    font-size:16px;

    border:1px solid #999;

    border-radius:5px;

}



input:focus{

    outline:none;

    border-color:#ff0000;

}





/* CHECKBOXEN */

.checkbox{

    margin:15px 0;

    font-size:17px;

}


.checkbox input{

    width:auto;

    margin-right:10px;

}

.checkbox label{
    display:flex;
    align-items:flex-start;
    gap:10px;
    cursor:pointer;
}

.checkbox input[type="checkbox"]{
    margin-top:3px;
    flex-shrink:0;
}

.checkbox span{
    flex:1;
    line-height:1.5;
}

/* Exakta-Logo zentiert unter Bestätigung der Übermittllung des Antrages */

.logo-center{
    width:calc(100% - 40px);
    margin:20px auto 50px;
    text-align:center;
}

.logo-center img{
    width:min(90vw, 700px);
    height:auto;
    display:block;
    margin:auto;
}

/* BUTTON */

button{

    display:block;

    margin:40px auto 0;

    padding:14px 40px;

    font-size:18px;

    background:#c40000;

    color:white;

    border:none;

    border-radius:6px;

    cursor:pointer;

}



button:hover{

    background:#ff0000;

}





/* FOOTER */

footer{

    width:calc(100% - 40px);

    margin:0 auto 20px;

    padding:20px;

    text-align:center;

    border-top:2px solid #ff0000;

}





/* ============================
   SMARTPHONE
============================ */


@media(max-width:600px){


.header{

    flex-direction:column;

    text-align:center;

}

.success-container{
    padding:25px;
}

.success-container h1{
    font-size:2rem;
}

.hinweis{
    font-size:20px;
    line-height:1.5;
}

.success-text{
    text-align:center;
    font-size:20px;
    line-height:1.7;
    margin:20px 0;
}

.logo-center{
    margin:20px auto 40px;
}

.logo-center img{
    width:90%;
    max-width:420px;
}

.form-container{

    width:calc(100% - 40px);

    padding:25px;

}



.form-container h1{

    font-size:2rem;

}


.form-container h2{

    font-size:1.3rem;

}


label{

    font-size:16px;

}


.checkbox{

    font-size:15px;

}



}

/* ============================
   TABLET
============================ */

@media (min-width:601px) and (max-width:900px){

.logo-center img{
    width:80%;
    max-width:550px;
}

}

/* ============================
   DARK MODE
============================ */


body.dark-mode{

    background:#121212;

    color:#f2f2f2;

}



body.dark-mode .header,
body.dark-mode .form-container{


    background:#1c1c1c;

    border-color:#555;

}



body.dark-mode .header-title h1,
body.dark-mode .form-container h1{

    color:#ff6666;

}



body.dark-mode .form-container h2{

    color:#f2f2f2;

}



body.dark-mode .hinweis{

    color:#ccc;

}



body.dark-mode input{


    background:#222;

    color:#fff;

    border-color:#666;

}



body.dark-mode footer{

    border-color:#ff0000;

}

