.projekte-wrapper {
    width: 100%;
    padding: 50px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    gap: 40px;
}

.projekt-box {
    max-width: 1400px;
    width: 100%;
    padding: 40px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.projekt-box-inner {
    display: flex;
    align-items: center;
    gap: 40px;
}

.projekt-image {
    flex: 0 0 500px;
    max-width: 500px;
    margin-bottom: 0 !important;
}

.projekt-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.projekt-text {
    flex: 1;
    text-align: left;
    margin-top: 0 !important;
}

.projekt-text h2 {
    margin-bottom: 20px;
    font-size: 28px;
    line-height: 1.3;
}

.projekt-text p {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

.projekt-link {
    text-align: center;
    margin-top: 25px;
}

.projekt-link a {
    display: inline-block;
    padding: 12px 30px;
    background-color: #770303;
    color: white !important;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,115,170,0.3);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.projekt-link a:hover {
    background-color: #770000;
    box-shadow: 0 6px 18px rgba(0,81,119,0.5);
}

/* Tablet */
@media (max-width: 1024px) {
    .projekt-box-inner {
        flex-direction: column;
        text-align: center;
        gap: 10px !important;
    }

    .projekt-image {
        max-width: 400px;
        margin-bottom: 0 !important;
    }

    .projekt-text {
        text-align: center;
        margin-top: 0 !important;
    }

    .projekt-text h2 {
        font-size: 26px;
        margin-bottom: 10px !important;
    }

    .projekt-text p {
        font-size: 17px;
    }
}

/* Smartphone und kleine Bildschirme (768px und kleiner) - weißer Kasten, Bild oben */
@media (max-width: 768px) {
    .projekt-box {
        max-width: 100%;
        padding: 20px;
        border-radius: 15px;
        background: #fff;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        margin: 10px 0;
    }

    .projekt-box-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px !important;
    }

    .projekt-image {
        max-width: 100%;
        width: 100%;
        flex: none;
        margin: 0 0 15px 0 !important;
        border-radius: 15px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .projekt-image img {
        border-radius: 15px;
        box-shadow: none;
        width: 100%;
        height: auto;
    }

    .projekt-text {
        flex: none;
        margin-top: 0 !important;
        padding: 0 10px;
    }

    .projekt-text h2 {
        font-size: 24px;
        margin-bottom: 15px !important;
        font-weight: 700;
        color: #222;
    }

    .projekt-text p {
        font-size: 16px;
        line-height: 1.6;
        color: #555;
        margin-bottom: 20px;
    }

    .projekt-link {
        margin-top: 10px;
    }
}

/* Extra kleine Bildschirme (unter 480px) */
@media (max-width: 480px) {
    .projekt-box {
        padding: 15px;
    }

    .projekt-text h2 {
        font-size: 20px;
    }

    .projekt-text p {
        font-size: 14px;
    }

    .projekt-link a {
        font-size: 14px;
        padding: 10px 25px;
    }
}
