@font-face {
    font-family: "Poppins";
    src: url("fonts/Poppins/Poppins-Regular.woff2") format("woff2");
    font-weight: 400;
}

@font-face {
    font-family: "PoppinsBold";
    src: url("fonts/Poppins/Poppins-Bold.woff2") format("woff2");
    font-weight: 700;
}

@font-face {
    font-family: "bups20";
    src: url("Fonts/bups20-Regular.woff2") format("woff2");
    font-weight: 700;
}

body {
    margin: 0;
    scroll-behavior: smooth;
}

h2,
h3,
h4,
h5,
h6,
b,
strong {
    font-family: "PoppinsBold", sans-serif;
    font-weight: 700;
    hyphens: auto; /* Worttrennung */
}

h1 {
    font-family: "bups20", sans-serif;
    font-weight: 700;
    hyphens: auto; /* Worttrennung */
}

p,
button,
li,
input,
textarea {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
}

/* Überschriften nach typescale einstellen */

h1 {
    font-size: 3em;
} /* 80px */
h2 {
    font-size: 2.8em;
} 
h3 {
    font-size: 1.9em;
} /* 47px */
h4 {
    font-size: 2.25em;
} /* 36px */
small {
    font-size: 0.75em;
} /* 12px */

/* Einstellungen zum Gestaltungsraster/Layoutgrid */

.flex,
.grid {
    margin: 0 auto;
    max-width: var(--maxWidth);
    padding: 0 10px;
}

.flex {
    display: flex;
}

.grid {
    display: grid;
}

/* Voreinstellungen */

img {
    display: block;
    max-width: 100%;
}

.btn {
    display: flex;
    width: fit-content;
    text-decoration: none;
    padding: 8px 16px;
    text-transform: uppercase;
    border-radius: 30px;
}

.paragraph {
    font-size: 1em;
    line-height: 160%;
    hyphens: auto; /* Worttrennung */
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 0;

    background-color: rgba(22, 89, 86, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 3;
}

nav .flex {
    align-items: center;
    justify-content: space-between;
}

nav .logo {
    height: 60px;
}

nav ul {
    position: fixed;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);

    width: 100%;
    height: calc(100dvh - 80px);
    padding: 40px;
    box-sizing: border-box;

    left: 0;
    top: 80px;

    margin: 0;
    border: 0;

    list-style: none;
    text-decoration: none;
}

nav ul:popover-open {
    display: flex;
    flex-direction: column;
    justify-content: center;

    gap: 10px;
}

nav ul a {
    display: flex;
    align-items: center;
    gap: 10px;
}

nav button {
    border: 0;
    padding: 0;
    background-color: transparent;
}

html {
    height: 100%;
}

body {
    min-height: 100vh; /* statt height: 100% */
    margin: 0;
    overflow-x: hidden; /* verhindert horizontalen Scroll bei manchen Layouts */
    /* overflow-y: auto;         ← nur wenn du ihn wirklich brauchst */
    scroll-behavior: smooth;
}

.header {
    position: relative;
    width: 100%;
    height: 100vh; /* volle Höhe des Viewports */
    overflow: hidden;
}

.header-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: -1; /* Video hinter dem Inhalt */
    object-fit: cover; /* Video füllt den Header und behält Seitenverhältnis */
}

.header-content {
    position: relative;
    z-index: 1;
    color: white; /* Textfarbe */
    text-align: center;
    padding: 20px;
    top: 50%;
    transform: translateY(-50%);
}

#ueber img {
    padding-top: 50px;
}

.ueber {
    align-items: center;
    text-align: center;
    padding: 20px;
}

.ueber p {
    max-width: 65ch;
}

.icons {
    display: flex;
    justify-content: center; /* mittig ausrichten */
    gap: 15px; /* Abstand zwischen Icons */
    margin-top: 20px;
    flex-wrap: wrap; /* in mehrere Reihen umbrechen, falls nötig */
    padding-bottom: 30px;
}

.icons img {
    width: 40px;
}

/* ---- Galerie ---- */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    padding: 20px;
}

.gallery a {
    display: block;
    overflow: hidden;
    position: relative;
}

.gallery img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
    cursor: pointer;
}

#kontakt {
    background-color: #bf75a8;
    color: white;
    text-align: center;
}

/* Hover Zoom */
@media screen and (hover: hover) {
    .gallery img:hover {
        transform: scale(1.1);
    }
}

/* Vollbild Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 9999;
}

.overlay:target {
    opacity: 1;
    pointer-events: auto;
}

.overlay img {
    max-width: 90%;
    max-height: 90%;
    transform: scale(1);
    transition: transform 0.3s ease;
}

/* Hover Zoom im Overlay */
.overlay img:hover {
    transform: scale(1.05);
}

/* Close Button */
.overlay a.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 30px;
    text-decoration: none;
}

@media screen and (min-width: 576px) {
}

@media screen and (min-width: 922px) {
    h1 {
        font-size: 7em;
    } /* 80px */
    
    h2 {
    font-size: 3.8em;
} /* 61px */

    nav button {
        display: none;
    }

    nav ul {
        position: static;
        display: flex;
        height: auto;
        width: auto;
        padding: 0;
        background: none;
        backdrop-filter: none;

        gap: 30px;
    }

    nav ul a {
        color: white;
        font-weight: 500;
        text-decoration: none;
    }

    nav ul[popover] {
        display: flex;
    }

    .ich img {
        align-items: center;
        max-width: 600px;
    }

    .ueber {
        text-align: left;
    }

    .ich {
        display: flex;
        padding: 50px;
        align-content: space-between;
    }

    /* Icons Container */
    .icons {
        display: flex;
        gap: 20px;
        margin-top: 30px;
        flex-wrap: wrap;
        overflow: visible;
        padding-bottom: 50px;
    }

    .icons img {
        width: 60px;
        opacity: 0;
        transition:
            opacity 0.6s ease,
            transform 0.6s ease;
    }

    .icons img.bounce {
        opacity: 1;
        transform: translateY(0);
        animation: bounceIn 0.8s ease both;
    }

    /* Bounce Animation Keyframes */
    @keyframes bounceIn {
        0% {
            transform: translateY(50px);
        }
        50% {
            transform: translateY(-10px);
        }
        70% {
            transform: translateY(5px);
        }
        100% {
            transform: translateY(0);
        }
    }

    .gallery {
        grid-template-columns: repeat(3, 1fr);
    }

    #kontakt {
        text-align: center;
        padding: 50px;
    }
}
