

:root {

    --color-bg: #f4f4f7;
    --color-text: #333;
    --card-bg: #fff;
    --card-border: #ddd;
}

/*//////////////////////////////////////////////////////////////////
[ FONT MONTSERRAT]*/

@font-face {
    font-family: montserrat-Regular;
    src: url('Fonts/montserrat-v25-latin-regular.woff2');
}

@font-face {
    font-family: montserrat-Medium;
    src: url('Fonts/montserrat-v25-latin-regular.woff2');
}

@font-face {
    font-family: montserrat-Bold;
    src: url('Fonts/montserrat-v25-latin-700.woff2');
}

@font-face {
    font-family: montserrat-SemiBold;
    src: url('Fonts/montserrat-v25-latin-regular.woff2');
}

/*From Utils - padding Klassen */

.p-t-27 {padding-top: 27px;}
.p-t-90 {padding-top: 90px;}
.p-b-34 {padding-bottom: 34px;}


/*[ TEXT ]
///////////////////////////////////////////////////////////
*/
/* ------------------------------------ */
.text-white {color: white;}
.text-black {color: black;}

.text-hov-white:hover {color: white;}

/* ------------------------------------ */
.text-up {text-transform: uppercase;}

/* ------------------------------------ */
.text-center {text-align: center;}
.text-left {text-align: left;}
.text-right {text-align: right;}
.text-middle {vertical-align: middle;}


/*//////////////////////////////////////////////////////////////////
[ RESTYLE TAG ]*/



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

body, html {
    height: 100%;
    font-family: montserrat-Regular, sans-serif;
}

/*---------------------------------------------*/
a {
    font-family: montserrat-Regular;
    font-size: 14px;
    line-height: 1.7;
    color: #666666;
    margin: 0px;
    transition: all 0.4s;
    -webkit-transition: all 0.4s;
    -o-transition: all 0.4s;
    -moz-transition: all 0.4s;
}

a:focus {
    outline: none !important;
}

a:hover {
    text-decoration: none;
    color: #fff;
}

/*---------------------------------------------*/
h1,h2,h3,h4,h5,h6 {
    margin: 0px;
}

p {
    font-family: montserrat-Regular;
    font-size: 14px;
    line-height: 1.7;
    color: #666666;
    margin: 0px;
}

ul, li {
    margin: 0px;
    list-style-type: none;
}


/*---------------------------------------------*/
input {
    outline: none;
    border: none;
}

textarea {
    outline: none;
    border: none;
}

textarea:focus, input:focus {
    border-color: transparent !important;
}

input:focus::-webkit-input-placeholder { color:transparent; }
input:focus:-moz-placeholder { color:transparent; }
input:focus::-moz-placeholder { color:transparent; }
input:focus:-ms-input-placeholder { color:transparent; }

textarea:focus::-webkit-input-placeholder { color:transparent; }
textarea:focus:-moz-placeholder { color:transparent; }
textarea:focus::-moz-placeholder { color:transparent; }
textarea:focus:-ms-input-placeholder { color:transparent; }

input::-webkit-input-placeholder { color: #fff;}
input:-moz-placeholder { color: #fff;}
input::-moz-placeholder { color: #fff;}
input:-ms-input-placeholder { color: #fff;}

textarea::-webkit-input-placeholder { color: #fff;}
textarea:-moz-placeholder { color: #fff;}
textarea::-moz-placeholder { color: #fff;}
textarea:-ms-input-placeholder { color: #fff;}

label {
    margin: 0;
    display: block;
}

/*---------------------------------------------*/
button {
    outline: none !important;
    border: none;
    background: transparent;
}

button:hover {
    cursor: pointer;
}

iframe {
    border: none !important;
}


/*//////////////////////////////////////////////////////////////////
[ Utility ]*/
.txt1 {
    font-family: montserrat-Regular;
    font-size: 13px;
    color: #e5e5e5;
    line-height: 1.5;
    text-decoration: none;
}



.download-link {
    display: inline;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #fff;
    font-size: 15px;
    text-decoration: underline;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.download-link .pdf-icon {
    font-size: 20px;
}

.download-link:hover {
    color: #fff;
    transform: scale(1.03);
    text-decoration: underline;

}




/*//////////////////////////////////////////////////////////////////
[ login.php ]*/

.limiter {
    width: 100%;
    margin: 0 auto;
}

.container-login {
    display: grid;
    grid-template-rows: auto auto; /* Login + Downloadbereich */
    justify-items: center;          /* horizontal zentrieren */
    align-items: center;            /* vertikal zentrieren */
    row-gap: 40px;
    min-height: 100vh;
    width: 100%;
    padding-top: 10vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    z-index: 1;
}




.container-login::before {
    content: "";
    display: block;
    position: absolute;
    z-index: -1;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(255,255,255,0.65);
}

.wrap-login {
    width: 100%;
    max-width: 700px;
    border-radius: 10px;
    overflow: hidden;
    padding: 55px 55px 37px 55px;

    background: linear-gradient(to bottom, var(--color-primary), var(--color-secondary));


}

.inline-inputs {
    display: flex;
    gap: 10px; /* Abstand zwischen den Feldern */
}

.recaptcha {
    display: flex;
    justify-content: center;

}

.wrap-input.no-bottom-border {
    border-bottom: none !important;
}
/* Entfernt border-bottom nur bei diesem speziellen Wrapper */
.no-bottom-border .focus-input::before {
    display: none !important;
}

.select2-container .select2-selection--single {
    height: 40px;
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.24);
    border-radius: 4px;
}


/* Grundlegender Stil für das ausgewählte Element */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #fff !important;         /* Textfarbe weiß */
    padding-left: 30px;
    line-height: 40px !important;   /* Vertikales Ausrichten */
}

.select2-container--default .select2-selection--single .select2-selection__rendered .select2-selection__placeholder {
    color: #fff;
    line-height: 40px;
}

/* Pfeil immer weiß */
.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: white transparent transparent transparent !important;
}



.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: white transparent transparent transparent !important;
}


/* Wir nehmen einfach an, dass der Container immer den weißen Rahmen haben soll */
.select2-container--default .select2-selection--single {
    border-color: rgba(255, 255, 255, 0.24); /* Standardfarbe */
    transition: border-color 0.3s ease;
}

/* Wenn geöffnet (Dropdown sichtbar), also quasi aktiv */
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: white !important;
    box-shadow: 0 0 3px white;
}









/*------------------------------------------------------------------
[ Form ]*/

.login-form {
    width: 100%;
}
.login-form-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px; /* Adjust the height as needed */
    width: 100px; /* Adjust the width as needed */
    border-radius: 50%; /* Creates a circular shape */
    overflow: hidden; /* Ensures the image doesn't overflow */
    margin: 0 auto; /* Center the logo horizontally */
    background-color: white; /* Adjust the background color as needed */
}

.loginLogo {
    max-width: 100%;        /* Ensures the image width doesn't exceed its container */
    max-height: 100%;       /* Ensures the image height doesn't exceed its container */
    width: 90px;            /* Allows the width to adjust automatically to maintain aspect ratio */
    height: auto;           /* Allows the height to adjust automatically to maintain aspect ratio */
    object-fit: contain;    /* Ensures the image maintains its aspect ratio and fits inside the container */
    margin: auto;           /* Center the logo within the container */
    display: block;         /* Ensure it's a block-level element, enabling centering with margin */
}

.login-form-title {
    font-family: montserrat-Medium;
    font-size: 30px;
    color: #fff;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;

    display: block;
}


/*------------------------------------------------------------------
[ Input ]*/

/* Auge rechts */
.toggle-password {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: white;
    user-select: none;           /* modern */
    -webkit-user-select: none;   /* Safari iOS */
    -moz-user-select: none;
    -ms-user-select: none;

    -webkit-touch-callout: none; /* iOS: kein „Kopieren“ beim langen Drücken */
}

.toggle-password:active,
.toggle-password:focus {
    color: white;
}

.wrap-input {
    width: 100%;
    position: relative;
    border-bottom: 2px solid rgba(255,255,255,0.24);
    margin-bottom: 30px;
}

.input {
    font-family: montserrat-Regular;
    font-size: 16px;
    color: #fff;
    line-height: 1.2;

    display: block;
    width: 100%;
    height: 40px;
    background: transparent;
    padding: 0 5px 0 38px;
}

.error-msg {
    position: absolute;
    bottom: -18px; /* unterhalb der Border */
    left: 0;
    color: #FFCCCC;
    font-size: 0.8em;
    width: 100%;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/*---------------------------------------------*/
.focus-input {
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.focus-input::before {
    content: "";
    display: block;
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;

    -webkit-transition: all 0.4s;
    -o-transition: all 0.4s;
    -moz-transition: all 0.4s;
    transition: all 0.4s;

    background: #fff;
}

.focus-input::after {
    font-family: Material-Design-Iconic-Font;
    font-size: 22px;
    color: #fff;

    content: attr(data-placeholder);
    display: block;
    width: 100%;
    position: absolute;
    top: 6px;
    left: 0;
    padding-left: 5px;

    -webkit-transition: all 0.4s;
    -o-transition: all 0.4s;
    -moz-transition: all 0.4s;
    transition: all 0.4s;
}

.input:focus {
    padding-left: 38px;
}



.input:focus + .focus-input::before {
    width: 100%;
}



.has-val.input + .focus-input::before {
    width: 100%;
}

.has-val.input {
    padding-left: 38px;
}


/*==================================================================
[ Restyle Checkbox Radio Buttons]*/

.wrap-input.validate-input {
    display: flex;
    flex-direction: column;
    gap: 6px;
}


.input-label {
    color: white;

}

/* Gruppe der beiden Switches */
.switch-group {
    display: flex;
    gap: 10px;
}

/* Einzelner Switch-Button */
.switch-option {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1.5px solid #ccc;
    border-radius: 8px;
    padding: 8px 0;
    cursor: pointer;
    user-select: none;
    transition: all 0.25s ease;
    font-size: 14px;
    background-color: #fff;
}

/* Hover-Effekt */
.switch-option:hover {
    border-color: var(--color-primary, #007bff);
}

/* Versteckte Radiobuttons */
.switch-option input {
    display: none;
}

/* Aktiver Zustand */
.switch-option input:checked + span {
    color: white;
}

.switch-option input:checked ~ span {
    color: white;
}

.switch-option input:checked ~ * {
    background-color: var(--color-primary, #007bff);
    border-color: var(--color-primary, #007bff);
}

.switch-option:has(input:checked) {
    background-color: var(--color-primary, #007bff);
    border-color: var(--color-primary, #007bff);
    color: #fff;
    font-weight: 600;
}


/* Vertrag Checkbox */
.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 10px; /* gleichmäßiger Abstand */
    font-size: 16px;
    color: white;
    cursor: pointer;
    line-height: 1.4; /* gleiche Text-Höhe wie Inputs */
    user-select: none;
}

/* Checkbox-Styling */
.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 1px solid #ccc;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    top: 0; /* perfekt mittig */
    vertical-align: middle;
    transition: all 0.2s ease;
}

/* Checked-Zustand */
.checkbox-label input[type="checkbox"]:checked {
    background-color: var(--color-primary, #007bff);
    border-color: var(--color-primary, #007bff);
}

/* Haken anzeigen */
.checkbox-label input[type="checkbox"]:checked::after {
    content: '✔';
    color: white;
    font-size: 13px;
    position: absolute;
    top: 1px;
    left: 3px;
}






/*------------------------------------------------------------------
[ Button ]*/
.container-login-form-btn {
    width: 100%;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    flex-wrap: wrap;
    padding: 1rem;
    justify-content: center;
}

.login-form-btn {
    font-family: montserrat-Medium;
    font-size: 16px;
    color: #555555;
    line-height: 1.2;

    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    min-width: 120px;
    height: 50px;
    border-radius: 25px;



    background: linear-gradient(to bottom, var(--color-primary), var(--color-primary));

    position: relative;
    z-index: 1;

    -webkit-transition: all 0.4s;
    -o-transition: all 0.4s;
    -moz-transition: all 0.4s;
    transition: all 0.4s;
}

.login-form-btn::before {
    content: "";
    display: block;
    position: absolute;
    z-index: -1;
    width: 100%;
    height: 100%;
    border-radius: 25px;
    background-color: #fff;
    top: 0;
    left: 0;
    opacity: 1;

    -webkit-transition: all 0.4s;
    -o-transition: all 0.4s;
    -moz-transition: all 0.4s;
    transition: all 0.4s;
}

.login-form-btn:hover {
    color: #fff;
}

.login-form-btn:hover:before {
    opacity: 0;
}


.error {
    color: black;
    font-weight: bold;
    animation: fadeOut 7s ease-in-out; /* Adjust the duration (5s) as needed */
    animation-fill-mode: forwards;
    text-align: center;
    margin: 0 auto;
}

@keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

.subText {
    color: white;
    text-align: center;
    padding-bottom: 20px;
}


.subText2 {
    color: white;
    text-align: center;
    padding-bottom: 30px;

}

.material-symbols-outlined {
    font-size: 80px;
    display: flex;
    justify-content: center;
    color: white;
}




/*------------------------------------------------------------------
[ Responsive ]*/

@media (max-width: 576px) {
    .wrap-login {
        padding: 55px 15px 37px 15px;
    }
    #errorContainer {
        padding-top: 0 !important;
    }
}



/*------------------------------------------------------------------
[ Alert validate ]*/

.validate-input {
    position: relative;
}

.alert-validate::before {
    content: attr(data-validate);
    position: absolute;
    max-width: 70%;
    background-color: #fff;
    border: 1px solid #c80000;
    border-radius: 2px;
    padding: 4px 25px 4px 10px;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    transform: translateY(-50%);
    right: 0px;
    pointer-events: none;

    font-family: montserrat-Regular;
    color: #c80000;
    font-size: 13px;
    line-height: 1.4;
    text-align: left;

    visibility: hidden;
    opacity: 0;

    -webkit-transition: opacity 0.4s;
    -o-transition: opacity 0.4s;
    -moz-transition: opacity 0.4s;
    transition: opacity 0.4s;
}

.alert-validate::after {
    content: "\f12a";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;

    font-size: 16px;
    color: #c80000;

    display: block;
    position: absolute;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    transform: translateY(-50%);
    right: 5px;
}



.alert-validate:hover:before {
    visibility: visible;
    opacity: 1;
}



.card {
    border: 2px solid white;
    border-radius: 8px;
    padding: 16px;
    margin: 16px;
    background-color: #d3d3d369;
}

.card-item {
    margin-bottom: 12px;
    padding-left: 80px;
}

.input-label {
    font-weight: bold;
    #display: block;
    margin-bottom: 4px;
}

.input-value {
    display: block;
}

.inverted-btn {
    background-color: var(--color-primary);
    color: white;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: bold;
    border: none;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.inverted-btn:hover {
    background-color: var(--color-secondary);
    color: white;

}

.modal-footer {
    border: none;
    justify-content: center;
}



@media (max-width: 992px) {
    .alert-validate::before {
        visibility: visible;
        opacity: 1;
    }
}


/*
Download Area
 */
.doc-container {
    width: 100%;
    max-width: 900px;  /* für Desktop */
    padding: 15px;      /* etwas kompakter */
    background: #A4C7D550;
    border-radius: 12px;

    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
}

#doc-grid {
    padding-top: 15px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* kleinere Cards für Desktop */
    gap: 15px;
    width: 100%;
}

.doc-card {
    background: var(--card-bg);
    padding: 15px;       /* kleineres Padding */
    border-radius: 8px;
    border: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease;
    font-size: 14px;      /* kleinere Schrift */
}



.doc-icon {
    font-size: 25px;      /* kleineres Icon */
    color: var(--color-primary);
    margin-bottom: 8px;
}

.doc-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 6px;
}

.doc-desc {
    font-size: 12px;
    margin-bottom: 10px;
    color: #555;
}

.doc-subgroup + .doc-subgroup {
    margin-top: 10px;
}



.download-item:hover {
    background: rgba(255,255,255,0.85);
    color: var(--color-primary);
    transform: translateY(-1px);
    font-family: montserrat-Bold;
}

.download-item:active {
    transform: translateY(0);
    box-shadow: none;
}


.download-item {
    display: flex;
    align-items: center;
    gap: 8px;

}

#contractWrap {
    margin-bottom: 15px;
}


/* Mobile Anpassungen */
@media (max-width: 576px) {
    .doc-grid {
        grid-template-columns: 1fr; /* Karten untereinander */
        gap: 10px;
    }

    .doc-card {
        padding: 12px;
        font-size: 13px;
    }

    .doc-icon {
        font-size: 25px;
    }

    .doc-title {
        font-size: 15px;
    }

    .doc-desc {
        font-size: 12px;
    }

    .doc-container h2 {
        font-size: 20px;
    }

}

