/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Lato', sans-serif;
}

body {
    color: #333;
    background-color: #f4f4f9;
    line-height: 1.6;
    text-align: center;
}

.container {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #2b2e4a, #903749);
    color: #fff;
    padding: 100px 0;
    text-align: center;
    position: relative;
}

header h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 2px;
}

header p {
    font-size: 1.4rem;
    margin-top: 10px;
    color: #f9f9f9;
}

/* Banner Logo */
header .banner-logo {
    width: 60px;
    height: auto;
    margin-top: 20px;
}

/* Section Styles */
section {
    padding: 40px 0;
    text-align: center;
}

/* Textbox color background for project section */
.colored-text-box {
    background-color: rgba(43, 46, 74, 0.8); /* Dunkler farbiger Hintergrund */
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    max-width: 1200px;
    text-align: justify; /* Blocksatz */
    margin-left: auto;
    margin-right: auto;
}

/* Increased gap between text and image */
.text-image-block {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Ensures top alignment */
    gap: 50px; /* Increased gap between text and image */
    background: linear-gradient(135deg, rgba(43, 46, 74, 0.7), rgba(144, 55, 73, 0.7));
    margin: 10px 0;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    padding: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    color: #fff;
    text-align: justify; /* Blocksatz */
}

/* Image Placeholder */
.image-placeholder {
    flex: 1;
    min-width: 33%; /* Set minimum width to 1/3 of the text block */
    max-width: 300px; /* Set a maximum width */
}

/* Larger image placeholders for SwissCity Marathon and BSOW */
#swisscity-marathon .image-placeholder,
#bsow .image-placeholder {
    max-width: 400px; /* Larger size for these specific sections */
}

.image-placeholder img {
    border-radius: 8px;
    width: 100%;
    height: auto;
    display: block; /* Ensure the image is displayed */
}

/* Align text at the top in the "Spenden Sie jetzt!" section */
.top-align-text {
    align-self: flex-start;
}

/* Subtitle Styles */
.subtitle {
    font-size: 1.8rem;
    color: #f1c40f;
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.subtitle::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 4px;
    background-color: #d64161;
    bottom: 0;
    left: 0;
}

/* Smaller logo in project section */
.small-banner-logo {
    width: 60px;
    height: auto;
    display: block;
    margin: 20px auto 0 auto;
}

/* Blockquote Styles */
blockquote {
    font-size: 1.2rem;
    font-style: italic;
    color: #f1c40f;
    margin: 20px 0;
}

/* QR Code smaller */
.super-small-qr {
    width: 60px; /* Noch kleiner dargestellt */
    height: auto;
    border: 2px solid #d64161;
    padding: 5px;
    border-radius: 10px;
}

/* Section Heading Styles */
h2 {
    font-size: 2.2rem;
    color: #f1c40f;
    position: relative;
    padding-bottom: 10px;
    display: inline-block;
    margin-bottom: 20px;
}

h2::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 4px;
    background-color: #d64161;
    bottom: 0;
    left: 0;
}

/* Footer */
footer {
    background: #2b2e4a;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
}

footer p {
    font-size: 0.9rem;
}

/* Responsive */
@media only screen and (max-width: 768px) {
    .container {
        width: 95%;
    }

    header h1 {
        font-size: 2.5rem;
    }

    .text-image-block {
        flex-direction: column;
    }

    .text-image-block.reverse {
        flex-direction: column;
    }

    .text {
        padding-right: 0;
        margin-bottom: 20px;
    }

    .image-placeholder {
        max-width: 100%; /* Adjust for mobile */
        min-width: 100%; /* Ensure image takes full width on mobile */
    }
}

/* QR-Code kleiner machen */
.super-small-qr {
    width: 100px;
    height: auto;
    border: 2px solid #d64161;
    padding: 5px;
    border-radius: 10px;
}

/* Twint Payment Link */
.twint-payment-link {
    display: none; /* Standardmäßig nicht sichtbar */
    background-color: #f1c40f;
    color: #333;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.2rem;
    margin-top: 10px;
}

/* Anzeige des Links für mobile Geräte */
@media only screen and (max-width: 768px) {
    .super-small-qr {
        display: none; /* QR-Code auf mobilen Geräten ausblenden */
    }

    .twint-payment-link {
        display: inline-block; /* Zeige den Twint-Link auf mobilen Geräten */
    }
}
