﻿body {
    font-family: 'Arial', sans-serif;
    background: url('image00015.png') no-repeat center center fixed;
    background-size: cover;
    color: #fff;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

header {
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    text-align: center;
}

h1 {
    margin: 0;
}

h1, h2, h3, h4, h5, h6, p {
    cursor: default;
}

main {
    display: block;
    text-align: left;
    flex: 1;
    max-width: 800px;
    margin: 15px auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

/* Buttons */
.donate-button,
.boxing-button,
.close-button {
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.donate-button {
    background-color: #2E8B57;
    color: #fff;
    padding: 3% 5%;
    margin: 1%;
    font-size: 16px;
}

    .donate-button:hover {
        background-color: #1E5D39;
        transform: scale(1.05);
    }

.boxing-button {
    background-color: #2E8B57;
    color: #fff;
    padding: 15px 50px;
    height: 60px;
    font-size: 20px;
    font-weight: bold;
    margin: 0 20px 20px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

    .boxing-button:hover {
        transform: scale(1.2);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    }

    .boxing-button:active {
        transform: scale(0.95);
    }

.close-button {
    background-color: #1b9925;
    color: #fff;
    padding: 10px 20px;
    font-size: 16px;
    margin-top: 10px;
}

    .close-button:hover {
        background-color: #1E5D39;
        transform: scale(1.05);
    }

    .close-button:active {
        transform: scale(0.95);
    }

/* Layout */
.donation,
.instagram-gallery {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 20px;
    margin-top: 2%;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.donation-input {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.left-column {
    flex-direction: column;
    width: 65%;
    gap: 20px;
    text-align: center;
}

.main-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 20px;
}

/* Bilder */
.instabild {
    width: 35%;
    padding: 2% 2% 2% 2%;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    margin: 1%;
    position: relative;
}

.page-layout {
    display: flex;
    position: relative;
    align-items: center; /* vertikal mittig */
    /*justify-content: center; /* zentriert die Gesamtgruppe */
    /* min-height: calc(100vh - 160px); */
    margin: 40px auto;
    gap: 50px; /* Abstand zwischen Statistik und Main */
}

/* Statistikbox bleibt normal im Flow */
.stats-box {
    background: rgba(0, 0, 0, 0.5);
    position: absolute;
    left: -40%;
    top: 5%;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    max-width: 250px;
    flex-shrink: 0; /* verhindert, dass sie kleiner wird */
    justify-items: left;
    justify-content: left;
    color: #fff;
}


    .stats-box h2 {
        margin-top: 0;
        margin-bottom: 15px;
        font-size: 20px;
        text-align: center;
        padding-bottom: 10px;
        padding-inline: 10%;
    }

    .stats-box ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .stats-box li {
        margin-bottom: 15px;
        font-size: 18px;
        text-align: left;
    }


    .stats-box span {
        font-size: 18px;
        text-align: center;
    }

    .stats-box .stat-pair {
        display: grid; /* jedes <span> nimmt eine Spalte ein */
    }

oda {
    margin-top: -5px;
}

footer {
    padding: 1rem;
}

/* Mobile Ansicht */
@media (max-width: 768px) {
    .page-layout {
        flex-direction: column;
        align-items: center;
        margin: 2% 0 0 0;
        gap: 0;
    }

    .stats-box {
        position: static;
        transform: none;
        width: 100%; /* Box geht über die volle Breite */
        padding: 3%;
        height: 11%;
        max-width: none; /* maximale Breite aufheben */
        display: flex; /* Inhalte nebeneinander */
        flex-wrap: wrap; /* wenn zu eng -> umbrechen */
        justify-content: space-around; /* gleichmäßig verteilen */
        text-align: center; /* Texte mittig im Mobile */
    }

        .stats-box h4 {
            flex-basis: 100%; /* Überschrift bleibt oben */
            margin-bottom: 10px;
            margin-top: auto;
        }

        .stats-box ul {
            display: grid;
            flex-wrap: wrap;
            justify-content: center;
            justify-items: center;
            gap: 10px 15px; /* Zeilen- und Spaltenabstand */
            grid-template-columns: repeat(4, 1fr); /* 4 Spalten */
        }

        .stats-box .stat-pair {
            display: contents; /* jedes <span> nimmt eine Spalte ein */
        }

    .title {
        margin-right: 0;
    }

    .stats-box li {
        margin-bottom: 0; /* unnötig im flex Layout */
    }

    .stats-box span {
        font-size: 14px;
        text-align: center;
    }

}



.instapic {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.instaquote {
    height: 100%;
    width: auto;
}

.mobile-instapic {
    display: none;
    width: 100%;
    height: 300px;
    background: url('instapic.png') no-repeat center center;
    background-size: cover;
}

/* Galerien */
.instagram-gallery {
    text-align: start;
    margin-top: 10px;
}

.instagram-posts {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.icon {
    text-align: center;
    margin: 0 10px;
    transition: all 0.4s ease;
    width: 50%;
}

    .icon:hover {
        transform: scale(1.5);
    }

/* Formulare */
input[type="number"] {
    padding: 12px 15px;
    width: 100px;
    margin-right: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
    outline: none;
}

    input[type="number"]:focus {
        border-color: #2E8B57;
    }

/* Feedback */
.thank-you {
    display: inline-block;
    text-align: start;
    padding: 20px;
    background: rgba(0, 255, 0, 0.3);
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    width: fit-content;
}

.error-message {
    color: #ff4d4d;
    background-color: rgba(255, 0, 0, 0.1);
    padding: 10px;
    margin-left: 10px;
    border: 1px solid #ff4d4d;
    border-radius: 5px;
    text-align: center;
    font-size: 14px;
    display: none;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 400px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Footer */
.footer {
    text-align: center;
    padding: 10px 0;
    background: rgba(0, 0, 0, 0.3);
    width: 100%;
}

/* Responsive */
@media (max-width: 600px) {

    .left-column {
        width: 100%;
    }

    .main-content {
        flex-direction: column;
        height: auto;
    }

    .instabild, .instapic {
        display: none;
    }

    .mobile-instapic {
        display: block;
    }

    .donate-button {
        width: 100%;
        padding: 10px;
    }

    input[type="number"] {
        width: 80%;
    }

    body {
        background: url('Instapic.png') no-repeat center center fixed;
        background-size: cover;
    }

    .footer {
        margin-top: 5px;
        padding: 5px 0;
        background: rgba(0, 0, 0, 0.5);
    }

    .donation, .instagram-gallery {
        padding: 10px;
        text-align: center;
    }

    .donation-input {
        margin: 2%;
        align-items: unset;
    }
}

@media (min-width: 601px) and (max-width: 1024px) {
    main {
        padding: 15px;
    }

    .main-content {
        flex-direction: row;
    }

    .left-column {
        width: 60%;
    }
}

@media (min-width: 1024px) and (max-width: 1700px) {
    main {
        max-width: 1200px;
    }
}
