@font-face {
    font-family: 'lato_light_off';
    src:    url('fonts/Lato-Light.ttf') format('truetype'),
            url('fonts/lato-v24-latin-300.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
}

/* Fix for mobile viewport units */
@supports (-webkit-touch-callout: none) {
    html, body {
        height: -webkit-fill-available; /* Use available height on mobile */
    }
}

:root {
    --border-rad: 10px;
    --border-line: 1px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

html {
    font-size: max(0.85vmax, 10px);
    letter-spacing: 0.2vmax;
    font-family: 'lato_light_off', sans-serif;
    min-height: 100vh;
    max-width: 100vw;
    overflow-x: hidden;
    }
body {
    background: #222222;
    color: white;
    /* display: flex; 
    flex-direction: column;
    justify-content: center; */
    position: relative;
}

.logo-main-link {
    position: relative;
    top: 1vh; /* Abstand von oben */
    left: 1vw; /* Abstand von links */
    z-index: 1000; /* Stellen Sie sicher, dass das Logo über anderen Inhalten liegt */
}

.logo-main-fixed {
    max-width: 5vmax; /* Breite des Logos */
    aspect-ratio: 4/4; /* Höhe automatisch anpassen, um das Seitenverhältnis beizubehalten */
    object-fit: contain;
    /* border-radius: var(--border-rad);
    border: var(--border-line) solid white; */
    opacity: 1;
}

.logo-main-fixed:hover {
    opacity: 1;
    scale: 1.05;
    transition: opacity, scale 0.5s;
}

.container-impressum {
    max-width: 90vw;
    overflow-wrap: break-word;
    z-index:0;
}

.uffzaehl {
    text-align: left;
    margin-top: 1vh;
    font-size: 2.5rem;
}

.uffzaehl a {
    color: #ffffff;
    text-decoration: none;
}

.uffzaehl a:hover {
    text-decoration: underline;
}

.uffzaehl-klein {
    font-size: 1rem;
    letter-spacing: 0.05rem;
    text-align: justify;
    margin-top: 2vh;
}

.gallery-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
    padding: 20px;
    overflow-x: hidden; /* zusätzlich zur Sicherheit */
    max-width: 100%;
    box-sizing: border-box; /* ist zwar global gesetzt, aber hier nochmal zur Klarheit */
}

.gallery-container > * {
    margin: 0.5rem;
}

.gallery-container img {
    width: max(18vh, 15vw);
    aspect-ratio: 1;
    object-fit: contain;
    border-radius:  var(--border-rad);
    border: var(--border-line) solid white;
    filter: brightness(90%) saturate(90%);
    transition: filter 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.gallery-container img:hover {
    filter: brightness(100%) saturate(100%);
    /* transform: scale(1.05); */
}

.gallery-video {
    width: max(18vh, 15vw);
    object-fit: contain;
    border-radius:  var(--border-rad);
    border: var(--border-line) solid white;
    display: block;
}

.gallery-container img,
.gallery-container video {
    cursor: pointer;
}

/* .overlay {
    position: absolute;
    width: 85vw;
    height: 85vh;
    background: #222222;
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
} */

.overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;

    background: rgba(34,34,34,0.95);
    backdrop-filter: blur(10px);

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 5vw;

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;

    z-index: 9999;
}

.overlay img {
    max-width: 100%;
    max-height: 100%;
    border-radius: var(--border-rad);
    border: var(--border-line) solid white;
}

.overlay video {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--border-rad);
    border: var(--border-line) solid white;
}

.overlay.show {
    opacity: 1;
    visibility: visible;
}

.small-icon {
    aspect-ratio: 1/1;
    max-height: 15px;
}
.image-link {
    text-decoration: none;
    max-width: 100vw;
}

.image-link img {
    width: min(65vh, 65vw);
    aspect-ratio: 1/1;
    object-fit:cover;
    border-radius: var(--border-rad);
    border: var(--border-line) solid white;
    filter: brightness(100%) saturate(100%);
    transition: filter 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.image-link-popup {
    position: relative;
    opacity: 1;
    margin-top: 5px;
    background-color: #222222;
    font-size: 1.5rem;
    color: white;
    padding: 5px 10px;
    transition: opacity 0.3s ease-in-out;
}

.image-link:hover img {
    filter: brightness(100%) saturate(100%);
    
}
.image-link:hover .image-link-popup {
    opacity: 1;
    text-decoration: underline;
}

.contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #ffffff;
    border-radius: var(--border-rad);
    border: var(--border-line) solid white;
    max-height: 80vh;
    max-width: 90vw;   
    color: #222222;
    letter-spacing: 0.1vh;
    font-size: 1.5rem;
}

.contact-form h2 {
    margin-bottom: 1%;
    font-size: 2rem;
    color: #222222;
}

.contact-form label {
    text-align: left;
    width: 100%;
}

.contact-form input,
.contact-form textarea {
    width: 98%;
    margin-left: 1%;
    margin-right: 1%;
    margin-bottom: 2%;
    margin-top: 5px;
    border-radius: var(--border-rad);
    border: var(--border-line) solid rgb(0, 0, 0);
    height: 2rem;
}

.contact-form textarea {
    height: 30%;
    resize: none;
    font-size: 1.5rem;
}

.contact-form button {
    background: #222222;
    color: white;
    padding: 10px 30px;
    border-radius: var(--border-rad);
    border: var(--border-line) solid white;
    font-size: 1.5rem;
    cursor: pointer;
}

.contact-form button:hover {
    background: #ffffff;
    border: var(--border-line) solid #222222;
    color:#222222;
    transition: 0.3s;
}

.header_background {
    position:relative;
    height: 10vh;
    width: 100vw;
    background-color: #222222;
    z-index: 900;
    /* border: 1px dashed green; */
}

.main_container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 85vh;
    /* border: 1px dashed red; */
    text-align: center;
}

.footer {
    position: relative;
    /* bottom: 0; */
    width: 100%;
    height: 5vh;
    display: flex;
    align-items: center;  /* Vertikale Zentrierung */
    justify-content: center; /* Horizontale Zentrierung */
    font-size: 1rem;
    background-color: #222222;
    /* border: 1px dashed yellow; */
}

.footer a {
    text-decoration: none;
    color: #ffffff;
    margin: 0 1vw;
}

.footer a:hover {
    text-decoration: underline;
    transition: 0.2s;
}

/* Sektion PC Bildschirm */

@media (min-width: 1300px) {
    .image-link img {
        filter: brightness(80%) saturate(50%);
    }
    .image-link:hover img {
        filter: brightness(100%) saturate(100%);
        transition: filter 0.3s smooth;
    }
    .image-link-popup {
        opacity:0;
        transition: opacity 0.3s ease-in-out;
    }
    .image-link:hover .image-link-popup {
        opacity: 1;
        text-decoration: underline;
    }
    .gallery-container img,
    .gallery-container video {
        filter: brightness(80%) saturate(50%);
        transition: filter 0.3s ease-in-out, transform 0.3s ease-in-out;
    }
    .gallery-container img:hover,
    .gallery-container video:hover {
        filter: brightness(100%) saturate(100%);
        /* transform: scale(1.05); */
    }
    .small-icon {
    aspect-ratio: 1/1;
    max-height: 2vh;
    }
}
