@font-face {
    font-family: "Inter";
    src: url("fonts/Inter/Inter-VariableFont_opsz,wght.ttf");
    font-weight: 400;
}

@font-face {
    font-family: "Playfair_Display";
    src: url("fonts/Playfair_Display/PlayfairDisplay-Regular.ttf");
    font-weight: 300;
}

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

body {
    background: #fff;
    font-family: "Inter";
    color: #222;
}

/* HEADER UND NAVIGATION */

header {
    height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
}

nav {
    display: flex;
    gap: 35px;
}

nav a {
    font-family: "Inter", sans-serif;
    text-decoration: none;
    color: #222;
    font-size: 25px;
}

/* HOME – INDEX.HTML */

main > section {
      display: grid;
    grid-template-columns: 50% 50%;
    align-items: center;
    padding: 50px 8%;
    column-gap: 0;
    overflow: hidden;
}
main > section img {
    width: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    justify-self: stretch;
}
/* TEXT */

.intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

h1 {
    font-family: "Playfair_Display";
    font-size: 120px;
    font-weight: 300;
}

h2 {
    font-family: "Playfair_Display";
    font-size: 40px;
    font-weight: 300;
    margin-top: 10px;
}

/* FOTO IM QUERFORMAT */

figure {
    width: 100%;
    margin: 0;
}

figure img {
    display: block;
    width: 100%;
    max-width: 600px;
    height: auto;
    object-fit: contain;
}

/* RESPONSIVE DESIGN */

@media (max-width: 768px) {

    main > section {
        grid-template-columns: 1fr;
        padding: 30px 6%;
        gap: 30px;
    }

    h1 {
        font-size: 50px;
    }

    h2 {
        font-size: 30px;
    }

    figure {
        width: 100%;
    }

    figure img {
        width: 100%;
        height: auto;
    }
}
main > section {
    padding-right: 0 !important;
}

main > section img {
    width: 100%;
    max-width: none;
    margin-right: 0;
    justify-self: end;
    display: block;
}

/* BEWEGTE TEXTLEISTE */

main > section > div:last-child {
    grid-column: 1 / 3;
    display: flex;
    align-items: center;
    gap: 60px;
    white-space: nowrap;
    width: max-content;
    animation: laufband 25s linear infinite;
}

main > section > div:last-child span {
    font-family: "Inter";
    font-size: 60px;
    font-weight: 200px;
}

main > section > div:last-child span:first-child {
    display: none;
}

@keyframes laufband {
    from {
        transform: translateX(100vw);
    }
     to {
        transform: translateX(-100%);
    }
}

.ticker {
    margin-top: 40px;
}

/* ============================= */
/* MY WORK HTML */
/* ============================= */

.carousel {
    height: calc(100vh - 120px);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.carousel input {
    position: absolute;
    opacity: 0;
}

.slides {
    width: 32%;
    height: 86%;
    position: relative;
}

.slides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    display: none;
}


/* BILDER ANZEIGEN */

#slide1:checked ~ .slides .image1,
#slide2:checked ~ .slides .image2,
#slide3:checked ~ .slides .image3 {
    display: block;
}


/* BILDTEXTE */

.image-text {
    position: absolute;
    bottom: 3%;
    width: 32%;
    text-align: center;
    font-size: 12px;
}

.image-text p {
    display: none;
}

#slide1:checked ~ .image-text .text1,
#slide2:checked ~ .image-text .text2,
#slide3:checked ~ .image-text .text3 {
    display: block;
}


/* PFEILE */

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 31px;
    padding: 20px;
}

.prev {
    left: 25%;
}

.next {
    right: 25%;
}

.arrow label {
    display: none;
    cursor: pointer;
}

#slide1:checked ~ .prev .to1,
#slide1:checked ~ .next .to1,
#slide2:checked ~ .prev .to2,
#slide2:checked ~ .next .to2,
#slide3:checked ~ .prev .to3,
#slide3:checked ~ .next .to3 {
    display: block;
}


/* ============================= */
/* FOOTER */
/* ============================= */

footer {
    position: absolute;
    bottom: 25px;
    left: 25px;
    right: 25px;
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    letter-spacing: 1px;
}



/* MOBILANSICHT */

@media (max-width: 700px) {

    /* NAVIGATION */

    header {
        height: 75px;
    }

    nav {
        gap: 15px;
    }

    nav a {
        font-size: 13px;
    }


    /* STARTSEITE */

    main > section {
        grid-template-columns: 1fr;
        padding: 40px 0 40px 8%;
        gap: 30px;
    }

    h1 {
        font-size: 38px;
    }

    figure {
        height: 55vh;
    }

    main > section > div:last-child {
        grid-column: 1;
        gap: 30px;
    }

    main > section > div:last-child span {
        font-size: 30px;
    }


    /* SLIDER */

    .slides {
        width: 65%;
        height: 65%;
    }

    .image-text {
        width: 65%;
    }

    .prev,
    .next {
        left: 0;
        right: 0;
    }

    .arrow {
        font-size: 23px;
        padding: 10px;
    }

    .next {
        left: auto;
    }
}