
@import url('https://fonts.googleapis.com/css2?family=Yanone+Kaffeesatz:wght@200..700&display=swap');

.yanone-kaffeesatz-unique {
    font-family: "Yanone Kaffeesatz", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

body {
    background-image: url(img/background1.jpg);

    background-position: center center;
    position: relative;
    background-size: cover;
    font-family: "Yanone Kaffeesatz";
    font-weight: 400;
    font-style: normal;
    line-height: 160%;
    font-size: 120%;
    background-color: #4C4349;
    color: #362C35;
    width: 60%;
    max-width: 1200px;
    margin: 0 20%;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: auto;
    grid-template-areas:
        "nav nav nav nav nav nav"
        "header header header header header header"
        "main main main main main main"
        "aside aside aside aside aside aside"
        "footer footer footer footer footer footer";
    gap: 20px;
}

h1 {
    font-size: 1.6em;
    font-weight: 700;
    color: #4C4349;
}

h3 {
    font-size: 1.3em;
    line-height: 120%;
    font-weight: normal;
    margin: auto;
    color: #eee;
    text-align: center;
}

logo {
    grid-area: logo;
    justify-content: center;
}

logo img {
    height: 5em;
    padding: 1em;
}

nav {
    grid-area: nav;
    padding: 2em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5em 2em;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

nav ul li {
    padding: 1em 0;
    font-size: 1.6em;
}

a {
    text-decoration: none;
    color: #4C4349;
    font-weight: 600;
    padding: 10px 20px;
    transition: color 0.3s ease-in-out;
}


nav a:hover {
    color: #E35F54;
}

header {
    grid-area: header;
    height: 250px;
    display: flex;
    justify-content: right;
}

header img {
    max-height: 100%;
    width: auto;
    margin-right: 70px;
}

header .redback {
    background-color: #E35F54;
    position: absolute;
    left: 1em;
    top: 300px;
    padding: 0 1em;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.bigletter {
    font-size: 2em;
    line-height: 120%;
    color: #f8f6e9;
}


main {
    background-color: #fff;
    grid-area: main;
    display: flex;
    color: #362C35;
    justify-content: space-between;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

main section {
    padding: 25px;
    width: 45%
}


main .impressum {
    padding: 25px;
    width: auto;
}

aside {
    display: flex;
    grid-area: aside;
    justify-content: space-evenly;
    margin-top: 30px;
}

aside section {
    width: 100%;
    text-align: center;
}

aside a {
    font-size: 0.8em;
    padding: 0;
}


.linkbox:hover {
    background-color: #99b06a;
    box-shadow: 0 0 10px 2px #f4decb;
    transform: scale(1.05);
    color: #fff;
}


.linkbox img {
    display: block;
    transition: transform 0.3s ease;
}

.linkbox:hover img {
    transform: scale(1.1);
}

.linkbox:hover p,
linkbox:visited p {
    color: #eee;
    text-decoration: none;
}

#quiz {
    display: flex;
    background-color: transparent;
    border: none;
    box-shadow: none;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

#quiz section:first-child,
#quiz section:last-child {
    background-color: transparent;
    box-shadow: none;
    text-align: center;
    width: 90%;
    padding: 25px;
}

#quiz section {
    background-color: #99b06a;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    text-align: left;
    width: 25%;
    margin: 0;
    padding: 25px;
    font-size: 0.9em;
    line-height: 140%;
}

#quiz button {
    border: none;
    background-color: #d3baa4;
    color: #000;
    font-weight: 600;
    text-decoration: none;
    padding: 12px;
    border-radius: 3px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.25);
}

#quiz button:hover,
button:focus {
    cursor: pointer;
    opacity: 0.75;
}

/*Footer*/
footer {
    grid-area: footer;
    margin: 2em 0 0 0;
    min-height: 45px;
    text-align: center;
}

footer a {
    font-size: 1em;
}

.linkbox {
    width: 100px;
    padding: 2em 2em 1em 2em;
    font-size: 1.5em;
}

.linkbox img {
    width: 100%;
}


@media (max-width: 1300px) {

    body {
        width: 86%;
        margin: 0 7%;
    }

    .bigletter {
        font-size: 1.5em;
        line-height: 120%;
        color: #f8f6e9;
    }

    main section {
        padding: 25px;
        width: auto;
    }

    aside section {
        justify-content: center;
    }

    .linkbox {
        width: 100px;

    }

    #quiz {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
    }

    #quiz section:first-child,
    #quiz section:last-child {
        width: 80%;
        margin: 0 auto;
    }

    #quiz section {
        width: auto;
        margin: 0 0 20px;
    }

}

.CAFE {
    color: brown;
}

.row {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: auto;
    padding-top: 0;
    padding-bottom: 20px 0;
}

.grid {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    padding: 30px;
    gap: 30px;
    width: auto;
}

.imageC {
    flex: 1;
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.imageC img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}

.text {
    flex: 1;
}

@media (max-width: 500px) {
    .grid {
        flex-direction: column;
    }

    .imageC,
    .text {
        width: 100%;
    }

    .imageC img {
        height: auto;
    }
}


.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
    max-width: none;
    padding: 0 20px;
    box-sizing: border-box;
}

.Teilung {
    margin-top: 20px;
    padding: 20px;
    border-radius: 8px;
    text-align: left;
    width: 90%;
}

.full-width {
    grid-column: 1/-1;
    padding: 20px;
    width: 100%;
    margin-bottom: 10px;
}

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

@media (max-width: 750px) {
    body {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    main {
        display: block;
    }

    nav,
    nav ul {
        text-align: center;
        display: block;
    }

    nav ul li {
        padding: 1em 0;
        text-align: center;
    }

    header {
        display: block;
        text-align: center;
        margin: 0;
    }

    header img {
        position: absolute;
        width: 30%;
        right: 15px;
        top: 325px;
        margin-right: 0;
    }


    header .redback {
        position: static;
        text-align: center;
        padding: 1em;
    }

    .linkbox {
        margin-bottom: 5px;
        margin: 5px auto;
        padding: 2em;
    }

    aside {
        display: block;
    }

    aside section {
        width: 100%;
        margin-bottom: 10px;
    }

    #quiz {
        display: block;
        width: 100%;
    }

    #quiz section {
        width: auto;
        margin-bottom: 10px;
    }
}

@media (max-width: 430px) {
    header img {
        display: none;
    }
}

.fontsize h1 {
    font-size: 2.5rem;
    /* Überschrift größer */
}

.fontsize p {
    font-size: 1.5rem;
    /* Absatz größer */
}