 /* Outer container für den nicht interaktiven Hintergrund */


/* Modal Background Overlay */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 20;
    box-sizing: border-box;
}

/* Container für den Funnel */
.f-container {
    position: relative;
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 360px;
    box-sizing: border-box;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 25;
    height: 800px; /* Maximal 90% der Bildschirmhöhe */
    overflow-y: auto; /* Falls nötig, Scrollen innerhalb des Containers ermöglichen */
    overflow-x: hidden;
}

.f-header {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 20px 0;
    position: sticky;
    top: 0;
    background: white;
}

.f-header h1 {
    font-size: 24px;
    margin: 0;
}

.close-btn {
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background-color: white;
    padding: 20px 0;
    position: sticky;
    top: 60px;
}

.progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(to right, #00354d, #11b96b);
}

.form-step{
    padding: 20px;
    border: solid 1px silver;
}

.form-step {
    display: none;
}
.form-step.active {
    display: block;
}

.question {
    font-size: 20px;
    margin-bottom: 20px;
}

.options {
    margin-bottom: 20px;
}

.options textarea{
    width: 100%;
    height: 120px;
    box-sizing: border-box;
    display: none;
}

.options input[type="checkbox"] {
    margin-bottom: 0px;
  }

.options input[type="text"],
.options input[type="tel"]{
    margin: 15px 0;
    box-sizing: border-box;
}

.options input[type="email"]{
    box-sizing: border-box;
    margin: 15px 0;
}

.options img{
    height: 35px;
    padding-right: 10px;
}

.icon-hobi{
    width: 60px;
}

.options label{
    display: flex;
    font-weight: bold;
    align-items: center;
    padding: 20px 0;
}

#charCount{
    font-size: 10px;
    margin-top: 7px;
    float: right;
}

.border-b{
    border-bottom: solid 1px silver;
}

.border-t{
    border-top: solid 1px silver;
}

.options label span{
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 20px 0 0 ;
}

.next-btn{
    width: 100%;
    max-width: 300px;
    height: 40px;
    background: #00354d;
    color: white;
    font-weight: bold;
    letter-spacing: 1px;
    border-radius: 5px;
    margin: 20px 0;
    cursor: pointer;
}

.next-btn:hover{
    background: #00567e;
}

.next-btn[disabled], .submit-btn[disabled] {
    opacity: 0.5;
    pointer-events: none;
}

.prev-btn{
    width: 100%;
    max-width: 300px;
    height: 40px;
    background: #ebebeb;
    color: #00354d;
    font-weight: bold;
    letter-spacing: 1px;
    border-radius: 5px;
    cursor: pointer;
}

.prev-btn:hover{
    background: #c2c2c2;
}

.submit-btn {
    padding: 10px 20px;
    background-color: grey;
    color: white;
    border: none;
    border-radius: 5px;
    margin: 20px 0 0 0;
    box-sizing: border-box;
    width: 100%;
    font-weight: bold;
}

.submit-btn {
    background-color: #002088;
    cursor: pointer; /* Cursor ändern, wenn der Button aktiv ist */
}

.submit-btn:hover {
    background-color: #011b70;
}

.hide {
    display: none;
}

#funnelContainer {
    display: none; /* Funnel ist initial versteckt */
}

/* Button zum Öffnen des Funnels */
.open-funnel-btn {
    padding: 10px 20px;
    background-color: #feda00;
    color: Black;
    border: none;
    border-radius: 35px;
    cursor: pointer;
    margin: 20px 0;
    font-weight: bold;
}

.open-funnel-btn:hover {
    background-color: black;
    color: white;
    cursor: pointer;
}

#funnelForm{
    padding: 20px;
    box-sizing: border-box;
}

.textarea-optional textarea{
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 20px;
    height: 100px;
}


/* Für mobile Endgeräte: Volle Breite und Höhe */
@media (max-width: 768px) {
    .f-container {
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        transform: none; /* Entfernen der Zentrierung */
        border-radius: 0; /* Keine abgerundeten Ecken für die volle Bildschirmbreite */
    }
    
    .modal-overlay {
        display: none; /* Overlay auf mobilen Geräten ausblenden */
    }
}