
html, body {
  margin: 0;
  padding: 0;
  height: 100%; 
}





.container{

  display: flex;
  flex-direction: column; /* Noitz */
  position: relative;     

  overflow: visible;

}

#Kopf {
    background-image: linear-gradient(to right,
        rgb(145, 234, 246),
        rgb(182, 245, 186),
        rgb(248, 248, 179),
        rgb(248, 213, 241)
    );

    display: flex;
    align-items: center;
    justify-content: space-between; 

    padding: 0 2rem;

    font-size: 2rem;
    min-height: 15vh;
    font-family: 'Lucida Sans', monospace;


    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}




#Logo_Kopf {
    width: 150px;
    height: auto;
}
#Email {
    text-align: right;
    font-size: 1.2rem;
}

.socials {
    display: flex;
    gap: 10rem;
    align-items: center;
}

.socials img {
    width: 70px;
    height: auto;
}


#Meuneu{
background-color: rgb(219, 216, 212);
text-align: center;
font-size: 2rem;
font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, monospace;
color: black;
word-spacing: 10%;
min-height: 10vh;

display: flex;
justify-content: center; 
align-items: center;
gap: 15rem; 
}


/* Links */
a {
  color: rgb(0, 0, 0);
}

a:visited {
  color: rgb(0, 0, 0);
}

a:hover {
  color: rgb(6, 78, 30);
}

a:active {
  color: rgb(6, 78, 30);
}
a{
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, monospace;
}




#Body {
    background-color: rgb(245, 244, 242);
    padding: 2rem;

    display: flex;
    flex-direction: column;  
    align-items: center;     
}

#Flyer {
    display: block;

    width: clamp(320px, 85%, 1000px);
    height: auto;

    margin: 2rem auto;
}
#Flyer.ersatz {
    width: clamp(320px, 85%, 1000px);
height: auto;
margin: 2rem auto;
    
    left: 0;
    right: 0;
    
}


#home_vergangenes{
 background-color: rgb(237, 234, 229);
min-height: 20vh;
}


#Haende{
 background-color: rgb(255, 255, 255);
   display: flex;
  line-height: 0;
    margin-bottom: -5px;
}

#haende{
  width: 100% ;
  height: auto;
  display: block;
  
 
}

#Fuss{
background-color: rgb(219, 216, 212);
min-height: 25vh;
text-align: center;
 margin-top: 0;
}

#Imp1{
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, monospace;
}

#Imp{
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, monospace;
  padding: 1rem;
}

#Dat{
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, monospace;
  padding: 1rem;

}
.Datenschutz{
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, monospace;
}

/*xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Vergangenes in Home xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/

.container_2{
 display: grid;
grid-template-columns: repeat(3, 1fr);
position: relative;  
padding: 1rem;
gap: 1rem;
}

.vergangenes:nth-child(3n + 1){
    border: 2px solid rgb(158, 232, 232);
    border-radius: 12px;
    box-shadow: 0 0 15px #a5e9e9;
}

.vergangenes:nth-child(3n + 2){
    border: 2px solid rgb(94, 243, 188);
    border-radius: 12px;
    box-shadow: 0 0 15px #a1efc1;
}

.vergangenes:nth-child(3n + 3){
    border: 2px solid rgb(233, 240, 136);
    border-radius: 12px;
    box-shadow: 0 0 15px #e4ecac;
}
.bild_vergangenes{
    padding: 1rem ;
    max-width: 90%;
    height: auto;
}




.text_vergangenes{
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, monospace;
}

/*xxxxxxxxxxxxxxxxxx Ueber uns xxxxxxxxxxxxxxxxxxxxxxxxxxx */

#Logo_Ueber_Uns {
    display: block;
    margin: 0 auto;
    width: clamp(250px, 40%, 400px);
    height: auto;
}


 #Ueber_uns_text {
    text-align: center;
    font-size: 2rem;
    font-family: 'Lucida Sans', monospace;
}

/* xxxxxxxxxxxxxxxxxxxxxxxx nähre beschriebung von Vergangenes xxxxxxxxxxxxxxxxxxxxxxxxx*/

#nae_bes_ueb{
  font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, monospace ;
  text-align: center;
}

#nae_bes_text{
  font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, monospace ;
  text-align: center;
}

.bild-wrapper {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap; 
}

.nae_bes_bild {
  width: 450px;
  height: 350px;
  object-fit: cover;
}
.nae_bes_bild[src=""] {
  display: none;
}


@media (max-width: 768px) {

  .container_2 {
    grid-template-columns: 1fr;
  }

  #Kopf {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    
  }

  .socials {
    display: flex;
    justify-content: center;
    gap: 1rem;
  }

  #Logo_Kopf {
    max-width: 80px;
    height: auto;
  }

  .socials img {
    width: 40px;
    height: auto;
  }

  #Email {
    font-size: 1rem;
    text-align: center;
  }

#Meuneu{
  gap: 40px;
  font-size: 1rem;
}

#Logo_Ueber_Uns{
  width: 300px;
  padding-left: 20px;
}

#bild_vergangenes{
    padding-left: 2rem ;
}

#bild_vergangenes2{
  padding: 1rem;
}

#Flyer{
  
  width: 600px;
  height: 400px;
}

#haende{
  width: 385px;
  height: 65px;
}

.nae_bes_bild {
    width: 100%;
    height: auto;
  }

}
@media (max-width: 900px) {
    #Kopf {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    #Email {
        text-align: center;
    }
    .nae_bes_bild {
    width: 45%;
    height: auto;
  }
}
