/* 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;
}


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

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

.TitleText {
    z-index: 2; /* ensure text is above the background */
    color: white;
    text-align: left;
    font-size: 1.5em;
    font-weight: bold;
    line-height: 1;
    text-align: center;
}

.contentContainer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
}

.donation-intro {
    text-align: center;
    margin-bottom: 80px;
}

.donation-intro h1 {
    font-size: 3em;
    margin-bottom: 30px;
    font-weight: 400;
}

.donation-intro p {
    font-size: 1.2em;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    color: #333;
}

.donation-methods {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 80px;
    flex-wrap: wrap;
}

.donation-card {
    flex: 1;
    min-width: 350px;
    max-width: 500px;
    background-color: #f8f8f8;
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.donation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.donation-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    color: #000;
}

.donation-icon svg {
    width: 100%;
    height: 100%;
}

.paypal-icon {
    color: #0070ba;
}

.donation-card h2 {
    font-size: 2em;
    margin-bottom: 30px;
    font-weight: 500;
}

.donation-details {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    text-align: left;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    gap: 20px;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 500;
    color: #666;
    flex-shrink: 0;
}

.detail-value {
    font-weight: 500;
    color: #000;
    text-align: right;
    word-break: break-all;
}

.donation-description {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.round-button {
    border: 2px solid black;
    color: black;
    background-color: transparent;
    padding: 12px 40px;
    border-radius: 50px;
    font-size: 1em;
    cursor: pointer;
    transition: 0.5s ease;
    font-family: "Rubik", sans-serif;
}

.round-button:hover {
    background-color: black;
    color: white;
}

.copy-button {
    background-color: white;
}

.donation-footer {
    text-align: center;
    padding: 40px;
    background-color: #f8f8f8;
    border-radius: 20px;
}

.donation-footer p {
    font-size: 1em;
    line-height: 1.8;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

.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;
}

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

.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(180deg);
}

.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;
}

/* 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,
.familienstand-section,
.lifegrouplocation {
    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;
}

.toggle-buttons.small button {
    padding: 8px 12px;
    font-size: 0.9rem;
}

.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;
}

/* Age groups list styling */
.age-groups {
    padding-left: 20px;
    margin: 20px 0;
    list-style-type: disc;
}


@media (max-width: 960px) {

    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;
    }

    .TitleText {

        left: 20%;
    }

    .contentContainer {
        padding: 40px 15px;
    }

    .donation-intro h1 {
        font-size: 2em;
    }

    .donation-intro p {
        font-size: 1em;
    }

    .donation-methods {
        flex-direction: column;
        gap: 30px;
    }

    .donation-card {
        min-width: 100%;
        padding: 40px 30px;
    }

    .donation-card h2 {
        font-size: 1.6em;
    }

    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .detail-value {
        text-align: left;
        font-size: 0.9em;
    }

    .donation-footer {
        padding: 30px 20px;
    }

    .donation-footer p {
        font-size: 0.9em;
    }

    .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;
    }

    .contentTextContainer {
        padding: 20px;
    }
    
    /* Mobile popup styles */
    .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;
    }
    
    .age-groups {
        padding-left: 20px !important;
        margin: 20px 0 !important;
        list-style-type: disc;
    }
}


