@import url('https://fonts.googleapis.com/css2?family=Limelight&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

* {
    font-family: "Open Sans", sans-serif;
    font-size: 11pt;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

h1,
h2 {
    font-family: 'Limelight', cursive;
}

/* HEADER */

header {
    width: 100%;
    height: 250px;
}

/* HEADER SLIDER */

.slideshow-container {
    position: relative;
    max-width: 100%;
    height: 250px;
    margin: 0 auto;
    overflow: hidden;
}

.mySlides {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
}

.mySlides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.text {
    font-family: 'Limelight', cursive;
    color: #f2f2f2;
    font-size: 25px;
    padding: 8px 12px;
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
}

.numbertext {
    color: #f2f2f2;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
    left: 0;
}

.slider-dots {
    position: absolute;
    bottom: 80%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px 10px;
    border-radius: 20px;
    gap: 8px;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
    border: none;
    padding: 0;
}

.dot.active,
.dot:hover {
    background-color: #717171;
}

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {
        opacity: .4
    }

    to {
        opacity: 1
    }
}

/* NAV */

nav,
nav ul,
nav li {
    height: 50px;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    margin-top: 0.3em;
    gap: 3em;
}

nav ul,
nav li,
nav a {
    text-decoration: none;
    color: #275070;
    font-weight: bold;
}

.link {
    position: relative;
    width: fit-content;
    cursor: pointer;
    letter-spacing: 1px;
}

.link::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #3b79a9;
    transition: 0.35s;
}

.link:hover {
    color: #3b79a9;
}

.link:hover::before {
    width: 100%;
}

/* SECTION */

section {
    min-height: 50vh;
    border-top: solid 2px #275070;
}

/* ARTICLE */

.mreza article {
    grid-area: art;
    background-color: #d1e2ef;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.mreza article h1 {
    font-size: 2.5em;
    color: #275070;
    padding: 10px;
    margin-left: 1.95em;
    margin-top: 10px;
}

.mreza article h2 {
    font-size: 1.7em;
    color: #275070;
    padding: 10px;
    margin-left: 2.9em;
}

.mreza article p {
    padding: 10px;
    margin-left: 5em;
    width: 90%;
}

.mreza article a {
    text-decoration: none;
    color: #79a93b;
    font-weight: bold;
}

/* ASIDE */

aside {
    grid-area: side;
    background-color: #3b79a9;
    width: 330px;
    height: 575px;
    display: flex;
    flex-direction: column;
}

aside h2 {
    color: #fff;
    padding: 10px;
    margin-top: 6px;
    font-size: 1.5em;
}

aside ul,
li {
    margin: 5px 0 0 10px;
    line-height: 20px;
}

/* FOOTER */

footer {
    height: 80px;
    background-color: #275070;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
}

footer a {
    color: #79a93b;
}

/* KARTE */

.karte {
    background-color: #d1e2ef;
    display: flex;
    flex-direction: row;
}

.karte article {
    width: 100%;
}

.karte article h1 {
    font-size: 2.5em;
    color: #275070;
    padding: 10px;
    margin-left: 2.7em;
    margin-top: 8px;
}

.karte article h2 {
    font-size: 1.7em;
    color: #275070;
    padding: 10px;
    margin-left: 4em;
    margin-top: 8px;
}

.karte aside {
    width: 400px;
}

.karte aside h2 {
    font-size: 1.5em;
    margin-top: 4px;
}

.karte aside ul,
li {
    margin: 0 0 0 0.8em;
}

/* IMG */

.mreza article img {
    width: 620px;
    height: 40%;
    margin-left: auto;
    margin-right: 50px;
    margin-top: 70px;
}

.karte img {
    width: 280px;
    height: 300px;
    margin-right: 4em;
}

.img {
    display: block;
    margin-left: 2em;
    margin-top: 2em;
}

section img:hover {
    transition: .3s ease;
    transform: scale(1.1);
}

/* GRID */

.mreza {
    display: grid;
    grid-template-rows: repeat(2, 150px);
    grid:
        "art art side side"
        "art art side side";
}

/* Hamburger */
.menu-toggle {
    display: none;
}

.hamburger {
    display: none;
    width: 100%;
    cursor: pointer;
    padding: 15px;
    position: fixed;
    top: 0;
    padding-left: 90%;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.8);
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #275070;
    transition: all 0.3s ease;
}

/* MEDIA QUERY */

@media only screen and (max-width: 768px) {
    .hamburger {
        display: block;
    }

    nav {
        display: none;
        position: fixed;
        height: 240px;
        top: 55px;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.9);
        z-index: 1;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1em;
        padding: 0;
    }

    nav li {
        margin: 10px 0;
    }

    .menu-toggle:checked~nav {
        display: block;
    }

    .menu-toggle:checked+.hamburger .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle:checked+.hamburger .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle:checked+.hamburger .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* HEADER */

    header {
        height: 200px;
    }

    /* GRID, ARTICLE, ASIDE */

    .mreza {
        display: flex;
        flex-direction: column;
    }

    .mreza article {
        display: flex;
        flex-direction: column;
        order: 1;
    }

    .mreza article h1 {
        margin-left: 1.15em;
    }

    .mreza article h2 {
        margin-left: 1.7em;
    }

    .mreza article p {
        margin-left: 3em;
        width: 75%;
    }

    .mreza article img {
        width: 60%;
        height: auto;
        margin: 20px auto;
        order: 2;
    }

    .mreza img:hover {
        transition: .3s ease;
        transform: scale(1.1);
    }

    .mreza aside {
        display: flex;
        flex-direction: column;
        order: 3;
        width: 100%;
        max-height: 340px;
    }

    /* KARTE */

    .karte {
        flex-direction: column;
    }

    .karte article h1 {
        margin-left: 2em;
    }

    .karte article h2 {
        margin-left: 2.5em;
    }

    .karte article p {
        margin-left: 3em;
        width: 75%;
    }

    .karte aside {
        max-height: 320px;
        width: 100%;
        order: 1;
    }

    .karte article {
        order: 2;
    }

    .karte .img {
        display: flex;
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 2em;
        margin: 20px 10% 50px 0;
    }

    .karte img {
        width: 60%;
    }

    /* SLIDER */

    .text {
        font-size: 15px;
        position: absolute;
        bottom: 50px;
    }

    .dot{
        width: 10px;
        height: 10px;
    }

    .slider-dots {
        padding: 4px 4px;
        bottom: 78%;
    }

    .prev,
    .next {
        top: 50%;
        font-size: 11px
    }

    .mySlides img {
        height: 200px;
        object-position: 22.2%;
    }
}