/* Reset basic styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Rubik", sans-serif;
    font-weight: lighter;
    background-color: #fff;
    color: #000;
}

html {
    scroll-behavior: smooth;
}

/* If the above doesn't work, you can also try adding scroll-padding-top to account for any fixed headers */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 20px;
}

.mainframe {
    margin: 0px 0px 200px 0px;
    text-align: center;
}

.TitlePicture {
    background-image: url("resources/ankerfix.jpg");
    background-size: cover;
    background-position: 50% 85%;
    height: 800px;
    width: 100%;
    display: flex;
    align-items: flex-end; /* fallback for flex children */
    position: relative;    /* enable absolute positioning for children */
}

.TitleText {
    color: black;
    text-align: left;
    font-size: 1.5em;
    font-weight: bold;
    line-height: 1;
    background-color: white;
    padding: 40px;
    border-radius: 0px 60px 0px 60px;
    position: absolute;
    left: 50%;
    bottom: 0;
}

.TableofContents{
    margin: 50px auto;
    width: 90%;
    max-width: 1200px;
    background-color: rgb(240, 240, 240);
    border-radius: 60px;
    padding: 40px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;
}

.toc-item {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    text-align: left;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.toc-item:hover {
    opacity: 0.8;
}

.toc-number {
    background-color: #000000;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    flex-shrink: 0;
}

.toc-text h3 {
    color: #333;
    font-size: 1em;
    font-weight: bold;
    margin: 0;
    line-height: 1.2;
    text-transform: uppercase;
}
.contentContainer{
    padding: 50px 0px;
    display: flex;
    width: 100%;
    background-color: rgb(240, 240, 240);
    align-items: center;
    vertical-align: middle;
    
}
.contentContainer > video {
    width: 40%;
    margin: 0px 50px 0px 50px;
    border-radius: 50px;
}
.contentContainer > img {
    width: 40vw;
    height: 40vw;
    object-fit: cover;
    object-position: center;
    margin: 0px 50px 0px 50px;
    border-radius: 50px;
    aspect-ratio: 1 / 1;
}

.contentTextContainer {
    text-align: left;
    display: block;
    padding: 0px 40px;
    line-height: 1.5;
    font-size: 1.2em;
}

.bullet-points {
    padding-left: 20px;
    margin: 20px 0;
    list-style-type: disc;
}

.textPoints{
    border-style: none none none solid;
    padding-left: 20px;
    margin-bottom: 20px;
}

/* FAQ Dropdown Styles */
/* FAQ Section H1 alignment */
#faq {
    align-items: flex-start !important;
    padding-top: 50px;
}

#faq h1 {
    margin-top: 15px;
    margin-bottom: 40px;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    background-color: #f8f9fa;
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    transition: background-color 0.3s ease;
    user-select: none;
}

.faq-question:hover {
    background-color: #e9ecef;
}

.faq-arrow {
    transition: transform 0.3s ease;
    transform: rotate(-90deg);

    font-size: 14px;
}

.faq-question.active .faq-arrow {
    transform: rotate(0deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: white;
}

.faq-answer.active {
    max-height: 200px;
    padding: 20px;
}

.faq-answer p {
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 960px) {

    .mainframe {
        margin: 0;
        width: 100vw;
        box-sizing: border-box;
        padding-left: 0;
        padding-left: 0;
        padding-right: 0;
    }
  	.TitlePicture{
		height: 90vh;

	}
    
    .TableofContents {
        width: 90%;
        flex-direction: column;
        gap: 25px;
        padding: 40px 30px;
        margin: 30px auto;
    }
    
    .toc-item {
        justify-content: flex-start;
        align-items: center;
        gap: 20px;
        text-align: left;
        width: 100%;
    }
    
    .toc-text h3 {
        font-size: 1.1em;
    }
    
    .TitleText {

        left: 40%;
    }
    .contentContainer {
        flex-direction: column;
        align-items: stretch;
        width: 100vw;
        margin: 0;
        padding-left: 0;
        padding-right: 0;
        box-sizing: border-box;
    }
    .contentContainer > video {
        width: 100%;
        padding: 10px;
        margin: 0px;
        border-radius: 50px 0px 50px 0px;
    }
    .contentTextContainer {
        padding: 20px;
    }
    .contentContainer > img {
        width: 80vw;
        height: 80vw;
        object-fit: cover;
        object-position: center;
        margin: 0px 0px 0px 10px;
        border-radius: 50px;
        aspect-ratio: 1 / 1;
    }
}

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px 30px 20px;
}

.popup-content {
    background: white;
    border-radius: 10px;
    padding: 30px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    text-align: left;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.popup-header h2 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #333;
}

/* Anmelden Button Styles */
.anmelden-btn {
    background-color: #000;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.anmelden-btn:hover {
    background-color: #333;
}

/* Form Styles for Popup */
.popup-content form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popup-content label {
    font-weight: bold;
    color: #333;
}

.popup-content input,
.popup-content select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.popup-content input:focus,
.popup-content select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.geschlecht-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toggle-buttons {
    display: flex;
    gap: 5px;
}

.toggle-buttons button {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
}

.toggle-buttons button.active {
    background-color: #000;
    color: white;
    border-color: #000;
}

.toggle-buttons button:hover {
    background-color: #f0f0f0;
}

.toggle-buttons button.active:hover {
    background-color: #333;
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

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

.labeltelnumber {
    font-weight: normal !important;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

.submit-button {
    background-color: #000;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #333;
}

@media (max-width: 600px) {
    html, body {
        width: 100vw;
        overflow-x: hidden;
        margin: 0 !important;
        padding: 0 !important;
    }
    .mainframe,
    .TitlePicture {
        width: 100vw !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box;
    }

    .popup-content {
        max-height: 85vh;

        box-sizing: border-box;
    }
    
    .popup-header h2 {
        font-size: 1.2rem;
    }
    
    .toggle-buttons {
        flex-direction: column;
    }
    .popup-overlay{
                padding: 10px 10px 10px 10px;

    }
    .bullet-points {
        padding-left: 20px !important;
        margin: 20px 0 !important;
        list-style-type: disc;
    }
}

