@font-face {
    font-family: Ruda;
    src: url('fonts/Ruda-Regular.ttf');
}

@font-face {
    font-family: Ruda;
    font-weight: bold;
    src: url('fonts/Ruda-Bold.ttf');
}

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

html {
    font-family: 'Ruda', sans-serif;
    font-size: 16pt;
    text-align: center;
}

body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 2rem;
    background: #3c697f;
}

section {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
}

h1 {
    font-size: 2rem;
    margin: 0 auto;
    margin-bottom: 1rem;
}

h2 {
    margin-bottom: 1rem;
}

p {
    max-width: 20rem;
}

.title {
    color: white;
    grid-column: span 2;
    text-align: center;

    p {
        color: #ccc;
        margin: 0 auto;
    }
}

.card {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 2rem;
    border-radius: 20px;
    overflow: hidden;
    background-position: center 64vh;
    background-size: 65%;
    background-repeat: no-repeat;
    text-decoration: none;
    transition: all 0.3s ease-in-out;

    p {
        text-align: center;
    }

    button {
        color: white;
        appearance: none;
        border: none;
        text-decoration: none;
        font-size: 1rem;
        text-transform: uppercase;
        padding: 0.5rem 1rem;
        border-radius: 2px;
        margin-top: 1.5rem;
        font-family: inherit;
    }

    &.card-dietel {
        background-color: #2c2c2c;
        color: white;

        &:hover {
            background-color: #292525;
            filter: contrast(1.1)
        }

        button {
            background-color: #e71923;
        }

        p {
            color: #ccc;
        }
    }

    &.card-ifa {
        background-color: #efefef;
        color: #2c2c2c;

        &:hover {
            background-color: #ffffff;
            filter: contrast(1.3)
        }

        button {
            background-color: #363184;
        }

        p {
            color: #333;
        }
    }

    .logo {
        height: 100px;
        width: auto;
        margin-bottom: 2rem;
    }
}

footer {
    padding-bottom: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    color: #ccc;
    text-transform: uppercase;
    font-size: .8em;
    letter-spacing: .05em;

    :link, :active, :hover, :visited {
        color: #ccc;
    }
}

.data-protection-link,
.imprint-link {
    text-decoration: none;

    &:hover {
        text-decoration: underline;
    }
}

.imprint-link {
    text-align: right;
}

.data-protection-link {
    text-align: left;
}

@media screen and (min-width: 700px) {
    html {
        font-size: 20pt;
    }
}

@media screen and (min-width: 1200px) {
    body {
        display: grid;
        padding: 3rem;
        grid-template-columns: repeat(2, 1fr);
    }

    .card {
        height: 100%;
        width: 100%;
        min-height: 60vh;

        .logo {
            height: 150px;
        }
    }

    .card-ifa {
        background-image: url('img/tires.png');
    }

    .card-dietel {
        background-image: url('img/catalogue.png');
    }

    footer {
        grid-column: span 2;
    }
}

@media screen and (min-width: 1700px) {
    body {
        grid-template-columns: 550px repeat(2, 1fr);
        padding: 3rem;

        .title {
            grid-column: inherit;
            text-align: left;

            h1 {
                font-size: 3rem;
            }

            p {
                margin-left: 0;
                margin-right: 0;
            }
        }

        .card {
            padding: 3rem;
            background-position: center 64vh;
            background-size: 80%;
        }
    }

    footer {
        position: absolute;
        padding-bottom: 0;
        justify-content: flex-start;
        bottom: 3rem;
        left: 3rem;
    }
}
