html {
    scroll-behavior: smooth;
}

body {
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;

}


body.fade-out {
    opacity: 0;
    pointer-events: none;
}

header {
    background-color: #333;
    width: 100%;
    color: white;
    padding: 10px 0;
    position: fixed; /* Fixiert die Navbar */
    top: 0;          /* Setzt die Navbar ganz oben */
    z-index: 69420;   /* Stellt sicher, dass sie über anderen Inhalten bleibt */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Optional: Fügt einen Schatten hinzu */
}

nav {
    display: flex;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 14px 20px;
    display: block;
    transition: background-color 0.6s ease, border-radius 0.3s ease; 
    border-radius: 5px; 
}

nav a:hover {
    background-color: #575757;
    border-radius: 10px; 
}

#headerbild {
    width: 50px;
    height: auto;
    z-index: 69421;
    position: fixed; /* Fixiert das Bild */
    top: 9.5px; /* Abstand vom oberen Rand */
    left: 10px; /* Abstand vom linken Rand */
}


.afangscontainer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 40px 20px;
    overflow: hidden;
}

/* Grundstyle Linien */
.line {
    position: relative;
    width: 0;                /* starten bei 0 Breite */
    height: 20px;             /* Dicke der Linie */
    background: black;
    opacity: 0;
    margin: -50px 0;          /* Abstand zum Logo */
    animation-fill-mode: forwards;
}

/* obere Linie → links nach rechts */
.top-line {
    align-self: flex-start;
    animation: growRight 1.5s ease forwards;
}

/* untere Linie → rechts nach links */
.bottom-line {
    align-self: flex-end;
    animation: growLeft 1.5s ease forwards;
    animation-delay: 0.5s;   /* kommt leicht zeitversetzt */
}

/* Animation von links nach rechts */
@keyframes growRight {
    0%   { width: 0; opacity: 0; }
    100% { width: 100%; opacity: 1; }
}

/* Animation von rechts nach links */
@keyframes growLeft {
    0%   { width: 0; opacity: 0; }
    100% { width: 100%; opacity: 1; }
}
.section {
    flex: 1; 
    text-align: center;
    padding: 20px;
    margin-top: -10px;
} 

#wilkommen {
    font-family: "Roboto", sans-serif;
    text-align: center;
    padding: 20px;
}

.animated-image {
    width: 700px;   
    height: auto;
    display: flex;
    align-self: center;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}


.animated-image.active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}


.animated-image.first-load {
    transition: opacity 2s ease, transform 2s ease;
}



.facts {
    display: flex;
    justify-content: center; 
    align-items: center; 
    width: 100%; 
    flex-wrap: wrap;
}

.sectionf {
    font-size: 20px;
    flex: 1; 
    text-align: center;
    padding: 20px;
    margin: 0px;
    background-color: #333; /* Dunkler Hintergrund für Facts-Boxen */
}

.sectionf:nth-child(1) {
    background-color: rgb(165, 165, 165); 
    border-radius: 0px;
}

.sectionf:nth-child(2) {
    background-color: rgb(209, 208, 208); 
    border-radius: 0px;
}

.sectionf:nth-child(3) {
    background-color: #dddddd; 
    border-radius: 0px;
}

.ueberuns {
    width: 100%; 
    height: auto; 
    margin: 0px auto; 
    background-color: #221e1e; 
    
}

.textueberunstop {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.textueberuns h3 {
    color: rgb(91, 94, 94);
}

.textueberuns h1 {
    color: rgb(163, 170, 170);
    width: 100%;
    text-align: center;
}

#textlangueberuns {
    width: 100%;
    font-size: larger;
    color: rgb(227, 241, 241);
    line-height: 1.7;
    text-align: center;
}

.underline {
    width: 50px;
    height: 4px;
    background-color: rgb(91, 94, 94);
    margin-bottom: 20px;
}

/* Animationen für den Über-uns Abschnitt */
.textueberuns h1, .textueberuns h3, #textlangueberuns, .underline {
    opacity: 0;
    transform: translateY(50px); /* Startposition von unten */
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.textueberuns h1.visible, .textueberuns h3.visible, #textlangueberuns.visible, .underline.visible {
    opacity: 1;
    transform: translateY(0); /* Endposition */
}


.kunden {
    width: 100%; 
    height: auto; 
    margin: 0px auto; 
    background-color: #646161; 
}

.textkundentop {
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    flex-wrap: wrap;
}

.textkunden h1{ 
    color: rgb(196, 190, 190);
    margin-left: 50px;
}

.underline2 {
    width: 120px;
    height: 4px;
    background-color: rgb(0, 0, 0);
    margin-bottom: 20px;
    margin-left: 50px;
}

.underline3 {
    width: 50px;
    height: 4px;
    background-color: rgb(0, 0, 0);
    margin-bottom: 20px;
    margin-left: 50px;
}



.haken {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.item {
    display: flex;
    align-items: center;
    font-size: 24px;
    opacity: 0; /* Startet unsichtbar */
    transform: translateY(50px); /* Startposition */
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.item.visible {
    opacity: 1;
    transform: translateY(0); /* Kommt nach oben */
}

.textkunden {
    opacity: 0; /* Startet unsichtbar */
    transform: translateY(50px); /* Startposition */
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.textkunden.visible {
    opacity: 1;
    transform: translateY(0); /* Kommt nach oben */
}

.checkmark {
    width: 50px;
    height: 50px;
    margin-right: 10px;
}

.rezension {
    width: 100%;
    height: auto;
    margin: 0px auto;
    background-color: #75681f;
}

.textrezension {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.textrezension h1 {
    color: #ffffff;
    font-size: 50px;
    opacity: 0; 
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.star {
    width: 150px;
    height: 150px;
    opacity: 0; 
    transform: scale(0.8);
    transition: opacity 0.7s ease, transform 0.7s ease;
}





#rezensionid {
    margin-left: 250px;
}

#rezensionid, #bewertung {
    opacity: 0;
    transform: translateY(50px); /* Startposition von unten */
    transition: opacity 0.7s ease, transform 0.7s ease;
}

#rezensionid.visible, #bewertung.visible {
    opacity: 1;
    transform: translateY(0); 
}

#rezensionid.hidden, #bewertung.hidden {
    opacity: 0;
    transform: translateY(-50px); /* Nach oben rausbewegen */
}


.ganzerInfocontainer {
    width: 100%;
    height: auto;
    padding-bottom: 15px;
    margin: 0px auto;
    background-color: #161615;
}

.info-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 900px; /* Stellt sicher, dass beide Boxen zusammenpassen */
    margin: 0px auto;
    gap: 30px;
}

/* Öffnungszeiten */
.map, .map-container { 
    background-color: #222;
    padding: 20px;
    text-align: center;
    color: white;
    border-radius: 10px;
    margin-top: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 400px; /* Gleiche Breite für beide Boxen */
}

.map h2 {
    font-size: 22px;
    text-transform: uppercase;
    color: rgb(211, 193, 94);
    margin-bottom: 15px;
}

.map h2::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background: rgb(211, 193, 94);
    margin: 5px auto 10px;
}

.zeiten {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tag {
    display: flex;
    justify-content: space-between;
    background: #333;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
}

.geschlossen {
    background: rgb(119, 23, 23);
    color: white;
}

/* Google Maps */

.map-container {
    height: 420px; /* Gleiche Höhe */
}

.map-container footer {
    display: flex;
    justify-content: center;
    padding: 20px;
    font-size: 15px;
    font-weight: bold;


}
.map-container h2 {
    font-size: 22px;
    text-transform: uppercase;
    color: rgb(211, 193, 94);
    margin-bottom: 15px;
}

.map-container h2::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background: rgb(211, 193, 94);
    margin: 5px auto 10px;
}

#karte {
    width: 100%; /* Sorgt dafür, dass die Map die ganze Box füllt */
    height: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.map, .map-container {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.map.visible, .map-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.zeiten {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.zeiten.visible {
    opacity: 1;
    transform: translateY(0);
}





.animated-image, .star, .textrezension h1, .item, .map, .map-container, .zeiten, .textueberuns h1, .textueberuns h3, #textlangueberuns, .underline {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

.hidden {
    opacity: 0;
    transform: translateY(-50px); /* Nach oben rausbewegen */
}


.instagram {
    width: 100%;
    padding: 35px 0px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    background-color: #c77749;
    color: white;
}


.instagram h2 {
    font-size: 50px;
    margin-bottom: 0px;
    margin-right: 0px;
}



.instagramtext, #insta-feed-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px; /* Kein zusätzlicher Abstand */
    opacity: 0;
    transform: translateY(50px); /* Startposition von unten */
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.instagramtext.visible, #insta-feed-wrapper.visible {
    opacity: 1;
    transform: translateY(0); /* Endposition */
}

.instagramtext.hidden, #insta-feed-wrapper.hidden {
    opacity: 0;
    transform: translateY(-50px); /* Nach oben rausbewegen */
}

#insta-feed-wrapper {
    border-radius: 10px;
    overflow: hidden; /* Wendet die runden Ecken auch auf das iframe an */
    width: 800px;
    max-width: 100%;
    margin: 0 auto;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); /* Optional für einen schönen Schatten */
}

#insta-feed iframe {
    width: 100%;
    height: 600px;
    border: none;
}





.instagramtext {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px; /* Kein zusätzlicher Abstand */
    opacity: 0;
    transform: translateY(50px); /* Startposition von unten */
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.instagramtext.visible {
    opacity: 1;
    transform: translateY(0); /* Endposition */
}
.underline4 {
    width: 300px;
    height: 4px;
    background-color: rgb(0, 0, 0);
    margin-bottom: -37px; /* Bewegt die Linie nach oben */
}

.underline5 {
    width: 170px;
    height: 4px;
    background-color: rgb(0, 0, 0);
    margin-top: -8px; /* Bewegt die Linie nach oben */
}

.instagramtext p {
    margin-top: -10px;
}

.impressum {
    display: flex;
    flex-direction: column;
    width: 100%; 
    height: auto; 
    margin: 0px auto; 
    margin-top: -20px;
    background-color: #252424; 
}

.impressum p {
    margin-left: 20px;
    color: #978e8e;
}

.impressum h2 {
    margin-left: 20px;
    color: #978e8e;
    margin-top: 250px;
}

@media (max-width: 768px) {

    nav a {
        color: white;
        text-decoration: none;
        font-size: 15px;
        padding: 14px 20px;
        display: block;
        transition: background-color 0.6s ease, border-radius 0.3s ease; 
        border-radius: 5px; 
    }

    #wilkommen {
        font-size: 24px; 
        font-family: "Roboto", sans-serif;
        text-align: center;
        padding: 20px;
    }

    
    #headerbild {
        width: 30px;
        height: auto;
        z-index: 69421;
        position: fixed; /* Fixiert das Bild */
        top: 0.5px; /* Abstand vom oberen Rand */
        left: 0.5px; /* Abstand vom linken Rand */
    }


    .afangscontainer {
        flex-direction: row;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: relative;
        padding: 40px 20px;
        overflow: hidden;
    }

    .line {
        position: relative;
        width: 0;                /* starten bei 0 Breite */
        height: 7px;             /* Dicke der Linie */
        background: black;
        opacity: 0;
        margin: -10px 0;          /* Abstand zum Logo */
        animation-fill-mode: forwards;
    }

    .facts {
        flex-direction: row;
        display: flex;
        justify-content: center; 
        align-items: center; 
        width: 100%; 
        flex-wrap: wrap;
    }

    

    .sectionf {
        flex: 1 1 calc(33.333% - 20px);
    }

    .section {
        margin-top: -32px;
    } 

    .animated-image {
        display: flex;
        align-self: center; 
        margin: 0 auto;
        opacity: 0;
        transform: translateY(50px);
        animation: slideUp 2s forwards;
        width: 100%;
        height: auto; /* Passt die Höhe automatisch an */
        max-width: 300px; /* Setzt eine maximale Breite von 300 Pixeln */
        
    }

    .haken {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
    }
    .item {
        display: flex;
        align-items: center;
        font-size: 24px;
        margin-right: 10px;
    }
    .checkmark {
        width: 50px;
        height: 50px;
        margin-right: 10px;
    }
    
    #rezensionid {
        margin-left: 20px;
    }

    .info-container {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        max-width: 900px; /* Stellt sicher, dass beide Boxen zusammenpassen */
        margin: 0px auto;
        gap: 30px;
    }

    
   
    
    .geschlossen {
        background: rgb(119, 23, 23);
        color: white;
    }


    .map, .map-container { 
        background-color: #222;
        padding: 20px;
        text-align: center;
        color: white;
        border-radius: 10px;
        margin-top: 20px;
        margin-left: 20px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        width: 300px; /* Gleiche Breite für beide Boxen */
    }

    #insta-feed-wrapper {
        border-radius: 10px;
        overflow: hidden; /* Wendet die runden Ecken auch auf das iframe an */
        width: 320px;
        max-width: 100%;
        margin: 0 auto;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); /* Optional für einen schönen Schatten */
    }
    
    #insta-feed iframe {
        width: 100%;
        height: 400px;
        border: none;
    }

    .instagramtext {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0px; /* Kein zusätzlicher Abstand */
        opacity: 0;
        transform: translateY(50px); /* Startposition von unten */
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    #rezensionid {
        text-align: center;
    }


}
