/* Browser Reset */
* {
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
}

/*---- Root Colors ----*/
:root {
    --textblack: #141414;
    --textwhite: #fff;
    --black: #fff;
    --white: #141414;
    --grey: #fff;
}

/* Checkbox unsichtbar*/
#toggle {
    display: none;
}

/* Button */
.darkmode {
    position: absolute;
    right: 8%;
    display: inline-block;
    padding: 5px 10px;
    width: auto;
    max-width: max-content;
    color: var(--white);
    font-weight: 700;
    cursor: pointer;
}

.darkmode:hover {
    color: var(--grey);
}

#toggle:checked~.seite {
    --black: #141414;
    --white: #fff;
}

/* Basics */
body {
    font-family: "IBM Plex Sans", sans-serif;
}

a {
    text-decoration: none;
}

img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Schriften */
h1 {
    font-weight: 900;
    font-size: 5rem;
}

h2 {
    font-weight: 600;
    font-size: 2.5rem;
}

h3 {
    font-weight: 200;
    font-size: 2rem;
}

p {
    font-weight: 300;
    font-size: 1.2rem;
}

li {
    font-weight: 300;
    font-size: 1.2rem;
}

label {
    font-weight: 300;
    font-size: 1.2rem;
}

/* header */
.header {
    position: sticky;
    z-index: 3000;
    top: 0;
    background-color: var(--black);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5vh 8%;
    border-bottom: 1px solid var(--white);
}

nav ul {
    display: flex;
    gap: 30px;
}

nav ul li {
    list-style-type: none;
}

nav ul li a {
    color: var(--white);
    font-weight: 700;
}

nav ul li a:hover {
    color: var(--grey);
}

.menu-icon {
    display: none;
    cursor: pointer;
}

.menu-icon i {
    font-size: 24px;
}

.iconoir-menu-scale {
    color: var(--white);
}

.iconoir-xmark {
    color: var(--white);
}

/* Scroll */
section {
    scroll-margin-top: 90px;
}

html {
    scroll-behavior: smooth;
}

/* hero */
#startseite {
    position: relative;
    height: 100vh;
    background-image: url("../img/img_hero.jpg");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 8%;
    color: var(--white);
}

.hero-text h1 {
    margin-bottom: -8px;
}

/* Animation fade-in left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: scale(0.6);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-text {
    color: var(--textwhite);
    margin-top: 150px;
    z-index: 2;
    opacity: 0;
    animation: slideInLeft 1.5s ease-out forwards;
}

/* Über Mich */
.section-basic {
    background-color: var(--black);
    color: var(--white);
    padding: 8% 8% 8% 8%;
}

/* Grid */
.uebermich-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Bild */
.uebermich-img img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Text */
.uebermich-text h2 {
    margin-bottom: 20px;
}

.uebermich-text p {
    margin-bottom: 15px;
}

/* Galerie Tierfotografie */
.galerie {
    background-color: var(--grey);
    padding: 80px 8%;
    color: var(--textwhite);
}

/* Galerie Tierfotografie */
.tierfotografie {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 15px;
}

/* Bilder */
.tierfotografie img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

/* Galerie Landschaftsfotografie */

.landschaftsfotografie {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 15px;
}

.landschaftsfotografie img {
    width: 100%;
    height: 80vh;
}

/* Video */

.video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

#stille .video {
    width: 100%;
    margin-top: 20px;
}

.video video {
    width: 100%;
    height: auto;
    display: block;
}

/* Anmeldeformular */

#anmelden {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.formular {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

#mailButton {
    margin-top: 10px;
    padding: 12px 18px;
    border-radius: 5px;
    border: 1px solid var(--grey);
    background-color: var(--grey);
    color: var(--textwhite);
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    transition: 0.3s ease;
    width: fit-content;
}

/* Hover Effekt */
#mailButton:hover {
    background-color: transparent;
    color: var(--white);
    border: 1px solid var(--white);
    transform: translateY(-2px);
}

/* Klick Effekt */
#mailButton:active {
    transform: translateY(0px);
}

/* Footer */
#footer {
    background-color: var(--black);
    color: var(--white);
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--white);
    padding: 8vh 8%;
    align-items: flex-end;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-impressum {
    color: var(--white);
    text-decoration: none;
    font-size: 1rem;
    transition: 0.3s;
    width: fit-content;
}

.footer-impressum:hover {
    color: var(--grey);
}

/*-- Darkmode --*/
@media (prefers-color-scheme: dark) {
    :root {
        --black: #141414;
        --white: #fff;
        --textblack: #141414;
        --textwhite: white;
    }

    .darkmode {
        display: none;
    }
}

/* Impressum */

#impressum h1 {
    margin-bottom: 30px;
}

#impressum h2 {
    margin-top: 40px;
    margin-bottom: 15px;
}

#impressum p {
    max-width: 900px;
    line-height: 1.8;
}

#impressum a {
    color: var(--white);
    text-decoration: underline;
    transition: 0.3s;
}

#impressum a:hover {
    color: var(--grey);
}

/* ------------------Media Queries------------------ */
@media screen and (max-width: 1100px) {

    /* Titel und Untertitel mittig und Fadein Animation */
    #startseite {
        justify-content: center;
        text-align: center;
    }

    .hero-text {
        margin-top: 0;
        animation: fade-in 1s ease-out forwards;
    }
}

/* ------------------Media Queries------------------ */
@media screen and (max-width: 1000px) {

    /* Header anpassen */
    .header {
        justify-content: space-between;
    }

    /* Navigation verstecken */
    .header nav {
        display: none;
    }

    /* Menü sichtbar wenn Icon aktiv */
    .header.active nav {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--black);
        z-index: 100;
        justify-content: center;
        align-items: center;
    }

    /* Menü vertikal */
    .header.active nav ul {
        flex-direction: column;
        gap: 20px;
    }

    /* Menü Icon */
    .menu-icon {
        display: block;
        position: absolute;
        right: 8%;
        z-index: 101;
    }

    /* Icon wechseln */
    .menu-icon .close {
        display: none;
    }

    .header.active .menu-icon .open {
        display: none;
    }

    .header.active .menu-icon .close {
        display: block;
    }

    /* Darkmode links */
    .darkmode {
        position: absolute;
        left: 8%;
    }

    /* Schriften */
    h1 {
        font-size: 4rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    p {
        font-size: 1rem;
    }

    li {
        font-size: 1rem;
    }

    label {
        font-size: 1rem;
    }

    /* über mich */

    .uebermich-container {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .uebermich-img img {
        height: 40vh;
        object-position: center top;
    }

}

/* ------------------Media Queries------------------ */
@media screen and (max-width: 600px) {

    /* Schriften */
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.3rem;
    }


    /* Landschaftsfotografie Galerie */
    .landschaftsfotografie {
        grid-template-columns: 1fr;
    }

}