	/* Webfont: Estave */@font-face {
    font-family: 'Estave';
    src: url('../fonts/Estave.eot'); /* IE9 Compat Modes */
    src: url('../fonts/Estave.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('../fonts/Estave.woff') format('woff'), /* Modern Browsers */
         url('../fonts/Estave.ttf') format('truetype'); /* Safari, Android, iOS */
             font-style: normal;
    font-weight: normal;
    text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-family: Estave; Arial, sans-serif;
  background: url("../images/background/Hintergrund2.jpg") no-repeat center center fixed;
  background-size: cover;
  color: #333;
  text-align: center; 
}
.close {font-weight: bold; font-size: 3em; float: right;}

.agb {color: #eee; text-decoration: none}




	@media (orientation: portrait),
           (-webkit-min-device-pixel-ratio: 1.5),
           (min-resolution: 144dpi) {
      
      body {
        background-image: url(../images/background/Hintergrund2.jpg);
      }
	 .controls {
       margin-bottom: 20px;
       margin-top: 0px;
       background-color: #fff;
}
	 #logo1 {display:none;}
   	 #logo2 {display:block}
    }






    @media (min-width: 640px) and (orientation: landscape) {
      body {
        background-image: url(../images/background/Hintergrund2.jpg);
      }
	 .controls {
       margin-bottom: 20px;
       margin-top: 0px;
       background-color: #fff;
}
	 #logo2 {display:none;}
   	 #logo1 {display:block}
    }




    @media (min-width: 640px) and (orientation: portrait) {
      body {
        background-image: url(images/background/Hintergrund2.jpg);
      }
   			   .controls {
  margin-bottom: 20px;
	margin-top: 0px;
	background-color: #fff;
    }
		 #logo2 {display:none;}
   	 #logo1 {display:block}
    }




    @media (min-width: 640px) and (-webkit-min-device-pixel-ratio: 1.5),
           (min-width: 640px) and (min-resolution: 144dpi) {
      
      body {
        background-image: url(../images/background/Hintergrund2.jpg);
      }
   			   .controls {
  margin-bottom: 20px;
	margin-top: 0px;
	background-color: #fff;
    }
	 #logo2 {display:none;}
   	 #logo1 {display:block}
    }			   
	




			   
    @media (min-width: 1280px)  and (orientation: landscape) {
      body {
        background-image: url(../images/background/Hintergrund2.jpg);
      }
	 .controls {
       margin-bottom: 20px;
       margin-top: 0px;
       background-color: #fff;
}
	 #logo2 {display:none;}
   	 #logo1 {display:block}
    }




    @media (min-width: 1280px)  and (orientation: portrait) {
      body {
        background-image: url(../images/background/Hintergrund2.jpg);
      }
			 #logo2 {display:none;}
   	 #logo1 {display:block}

}		
		
		
		
    @media (min-width: 1280px) and (-webkit-min-device-pixel-ratio: 1.5),
           (min-width: 1280px) and (min-resolution: 144dpi) {
      
      body {
        background-image: url(../images/background/Hintergrund2.jpg);
      }
		 #logo2 {display:none;}
   	 #logo1 {display:block}
    }

    



    @media (min-width: 2560px)  and (orientation: landscape) {
      body {
        background-image: url(../images/background/Hintergrund2.jpg);
      }
		 #logo2 {display:none;}
   	 #logo1 {display:block}
    }




h1 {font-size: clamp(1.5em, 5vw, 4em); color: #e00046; background-color: #fff; display: inline-block; padding: 3px; width: 100%; border-radius: 8px;}

/*h2 {font-size: 2em; color: #e00046; margin-bottom: -30px; margin-top: -20px; }*/

h2 {display: flex; /* Oder display: grid; */
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  background-color: #e00046;
  border-radius: 50%;
  color: white;
  font-size: 24px;
  font-weight: bold;
	text-align: center;
	z-index: 100;
margin-top: -2px;
margin-left: 20px;}


.calendar {
  max-width: 1000px;
  margin: 40px auto;
  padding: 20px;
  background: rgba(224, 0, 70, 1);
  border-radius: 12px;

}

.controls {
  margin-bottom: 20px;
	margin-top: -10px;
	background-color: #fff;
}

.controls button {
  margin: 5px;
  padding: 10px 15px;
  font-size: 1em;
  border: none;
  border-radius: 8px;
  background: #620420;
  cursor: pointer;
  transition: background 0.3s;
  color: #fff;
}

.controls button:hover {
  background: #BE9B79;
}

#calendar-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
  margin-top: 20px;
}

.door {
  padding: 25px;
  background: #e00046;
  text-align: center;
  font-size: 2em;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s;
  color: #ffffff;
	border: 1px solid #620420;
	background: #e00046;
}

.door:hover {
  transform: scale(1.05);
	color: #fff;
	font-weight: bold;
	font-size: 2.5em;
	border: 1px solid #fff;
}

.door.locked {
  background: #bbb;
  cursor: not-allowed;
  color: #ffffff;
}

.modal {
  display: none;
 position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  justify-content: center;
  align-items: center;
  padding: 10px;
}

.modal-content {
    background: white;
	padding: 10px;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;   /* Fenster darf maximal 80% der Höhe haben */
    overflow-y: auto;   /* Scrollen aktivieren */
    position: relative;
}

.modal-content .close {
    position: sticky;
    top: 0;
    background: white;
    display: inline-block;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
}
/*

.modal-content {
  background: white;
  padding: 10px;
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
}
*/


#snow-container {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1000;
}

.snowflake {
  position: absolute;
  top: -20px;
  color: white;
  font-size: 1em;
  user-select: none;
  z-index: 1000;
  transition: transform linear;
}

@keyframes fall {
  to {
    transform: translateY(calc(100vh - 20px));
  }
}

@media (max-width: 900px) {
  #calendar-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  }

@media (max-width: 600px) {
  #calendar-grid {
    grid-template-columns: repeat(3, 1fr);}
	  
}

@media (max-width: 400px) {
  #calendar-grid {
    grid-template-columns: repeat(2, 1fr);}  
}
  

.tor {margin-top: 0px;
hyphens: auto;
padding-bottom: 30px;
font-size: 0.9em;
line-height: 22px;
padding-left: 20px;
padding-right: 20px;
font-family: Verdana, Arial, "sans-serif";
	}

.bild2 {width: 100%;}


        /* CSS-Styling für den Layer */
        .overlay {
            /* Positionierung des Layers: fest über der gesamten Seite */
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            /* Hintergrund mit leichter Transparenz */
            background-color: rgba(0, 0, 0, 0.7);
            /* Stellt sicher, dass der Layer über anderen Elementen liegt */
            z-index: 9999;
            /* Zentrierung des Inhalts (optional) */
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .layer-content {
            background-color: white;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            text-align: center;
        }

        /* Klasse zum Ausblenden des Layers */
        .hidden {
            display: none;
        }