* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background-color: #000;
    overflow-y: auto;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./res/hochschule.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(8px);
    z-index: -1;
    background-color: #000;
}

.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
    max-width: 100%;
    min-height: 100vh;
    padding: 10px;
}

.box {
    --start-color: #ff7f50;
    --end-color: #ff6347;
    background: linear-gradient(135deg, var(--start-color), var(--end-color));
    color: white;
    padding: 20px;
    border-radius: 8px;
    width: 400px;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.box img {
    width: 75%;
    height: 75%;
    object-fit: contain;
    margin-bottom: 20px;
    align-self: center;
}

.box h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.box p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.box:hover {
    transform: scale(1.05);
}

.box:active {
    transform: scale(1);
}

@media screen and (max-width: 840px) {
    .container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: min-content;
        gap: 20px;
        justify-content: center;
        align-content: center;
        width: 100%;
        max-width: 95%;
        min-height: 100vh;
    }

    .box {
        width: 100%;
        height: 300px;
        padding: 15px;
    }

    .box img {
        width: 75%;
        height: 75%;
    }

    .box h3 {
        font-size: 1.3rem;
    }

    .box p {
        font-size: 0.9rem;
    }
}


@media screen and (max-width: 400px) {
    .container {
        grid-template-columns: 1fr;
    }
}
