@font-face {
  font-family: 'headerFont';
  src: url('Loubag-Thin.ttf') format('truetype');
}
@font-face {
  font-family: 'brotFont';
  src: url('Helixa-Book.ttf') format('truetype');
}
a {text-decoration: none;color:#533}
h1 { font-family: 'headerFont', sans-serif;
     font-size: 2.6vw;
     display:block;margin:0 0 10px 0;
     text-transform: uppercase;color:#533}
    h2 {font-family: 'brotFont';color:silver;font-weight: bold;}
.frei {
  margin:1.5vw 0;
  font-family:Arial;
  font-weight:bold;
  color:#533; 
  text-transform: uppercase;
  font-size:1.5vw}
p { 
  line-height:170%;
  font-family: 'brotFont', sans-serif;
  text-transform: uppercase; 
  color:#533;
  font-size: 1.3vw}

body, html {background-color:#333;margin: 0;padding: 0;}
.container {display: grid; gap: 5px; padding: 5px;}
#k1 { background: linear-gradient(to bottom, #EFE3CD, #AF9680);}
#k2 { background: linear-gradient(to bottom, #BED2EA, #6783C6);}
#k3 { background: linear-gradient(to bottom, #FCC298, #FABFA5);}
#k4 { background: linear-gradient(to bottom, #B0A779, #69854E);}
#ld {display: flex;
  flex-direction: column;
  justify-content: flex-end;}
.insta {display:none;background: linear-gradient(to bottom, #eee, #aaa);}
.insta img {width:100%}
.kalender { 
  background: linear-gradient(to bottom, #ddd, #999);}
.ort,.termin {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family:Arial;
  color:#533;
  height:3vw;
  background-color:rgba(255,255,255,0.35);
  padding:10px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1); 
  border-radius:8px;}
.text {font-size: 1.7vw;font-weight:bold;}
.subtext {font-size: 1vw;font-weight:normal;font-style:italic ;}
.cal,.ort img {
  cursor:pointer;
  width:2.3vw;}  
.qr {width:30px;position:absolute;left:1vw;top:2px}
.bg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  opacity:.9
}
.logo {
  position: absolute;
  top: 1vw;
  right: 1vw;
  width: 7vw;
}
.tile {
  background-color: #444;
  color: white;
  position:relative;
  font-size: 1.2em;
  padding: 1.5vw;
  aspect-ratio: 1 / 1.1; /* Festes Seitenverhältnis 1:1 */
  border-radius: 10px;
}
footer {
  font-size: 1vw;
  font-family:Arial;
  position: fixed;
  height: 2.5vw;
  bottom: 0;
  width: 100%;
  background-color: #333;
  color: silver;
  padding: 5px 10px;
  text-align: center;
}


@media (min-width: 700px) {
  .container { grid-template-columns: 1fr 1fr; }
}


.calendar {
  width: 100%;
  margin: auto; /* Zentriert den Kalender */
}

.month-title {
  font-size: 1.5em;
  margin-bottom: 10px;
}

.days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.day {
  padding: 10px;
  border: 1px dotted #333;
  text-align: center;
  min-height: 5vw;
  position: relative;
  color:#999;
  font-weight:bold;
  font-size:4vw;
  font-family: Arial;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  background-color:#666}

.empty {
  border: none;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0.1);
  background-color: transparent;
}

.today {
  border: 1px solid red;
  }

.event {
  padding: 2px;
  font-size: 1vw;
  margin-top: 5px;
  display: block;
  position:absolute;
  color:black;
  font-weight:normal;
  white-space: nowrap;      /* Verhindert Zeilenumbruch */
  overflow: hidden;         /* Versteckt den überlaufenden Text */
  text-overflow: ellipsis;
  width: 100%;
  bottom: 0;
  left: 0;
}

.moon-phase {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 32px;
  height: 32px;
}
.leaflet-control-attribution {
  display:none
}


.custom-tooltip {
  background-color: rgba(33,33,33, 0.8);
  padding: 0;
  opacity:0.9;
  border-radius:6px;  
  color:white;
  width:16vw;
  border-radius: 3px;
  box-shadow: 3px 2px 5px rgba(0, 0, 0, 0.3);
  text-align: center;
  font-size: 1vw;
}

.custom-tooltip img {
 
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

@media (max-width: 699px) {
  .container { grid-template-columns: 1fr; }
  h1 {font-size:6vw}
  p {font-size:2.5vw}
  .text {font-size: 4vw;} 
  .subtext {font-size: 2.5vw;}
  .footer {font-size:5vw}
  .cal  {width:6vw;}
  .logo {width:11vw}
  .ort img {width:5vw;}
  .frei {margin:1.5vw 0;font-family:Arial;font-weight:bold;color:#533; text-transform: uppercase;font-size:3vw}
  .ort,.termin {height:10vw;color:#555}
  .tile {aspect-ratio: 1 / 1.15; }
 .custom-tooltip {
  
    width:30vw;
   
    font-size: 2vw;
  }
}