@import url('https://fonts.googleapis.com/css2?family=Abril+Fatface&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');

:root {
    --door-rose: #C04E61;
    --door-lemon: #9DBF9E;
    --door-moss: #A09383;
    --door-sky: #89ABE3;
    --door-sun: #FFD580;

    --font-size-lg: 88px;

    --md-bp: 1000px;
}

body {
  background-color: #fff;
  height: 100%;
}

.hero {
  position: relative;
  font-family: 'Inter', sans-serif;
  background: #FFFFFF url('img/header-background.svg') no-repeat bottom;
  background-size: cover;
  margin: -8px -8px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px 132px;
  flex-wrap: wrap;
  overflow: hidden;
}

.hero__lebkuchen {
  position: absolute;
  bottom: -130px;
  right: -10px;
}

.hero__logo {
  max-width: 120px;
  margin-bottom: 12px;
}

.hero__title {
  font-size: 32px;
  font-weight: 400;
  margin: 0;
  text-align: center;
  line-height: 120%;
  color: #00BCB1;
  font-family: 'Abril Fatface', sans-serif;
}

.hero__intro {
  font-size: 16px;
  font-weight: 400;
  margin: 8px 0;
  text-align: center;
  line-height: 140%;
  font-family: 'Inter', sans-serif;
}

.hero__intro a,
.hero__intro a:hover,
.hero__intro a:focus,
.hero__intro a:visited {
  color: #545572;
}

footer {
  text-align: center; /* Center-align the content */
  padding: 20px 0 80px; /* Add some padding for spacing */
  color: #545572; /* Dark text color for contrast */
  font-size: 1rem; /* Slightly smaller font size */
  font-family: 'Inter', sans-serif; /* Font family */
  bottom: 0;
  width: 100%;
}

footer a {
  color: #545572; /* Choose a color that matches your site's theme */
  text-decoration: none; /* Remove the underline */
  margin: 0 10px; /* Add horizontal spacing between links */
}

footer a:hover {
  text-decoration: underline; /* Underline on hover for a traditional link feel */
}

.overlay {
  display: none; /* Hidden by default */
  position: fixed; /* Position it relative to the viewport */
  top: 0; left: 0; right: 0; bottom: 0; /* Cover the whole screen */
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
  z-index: 1000; /* Ensure it's above other elements */
}

.overlay-text {
  position: absolute;
  top: 50%; /* Center vertically */
  left: 50%; /* Center horizontally */
  transform: translate(-50%, -50%); /* Adjust for exact centering */
  color: white; /* Text color */
  font-size: 1.5rem; /* Text size */
  font-family: 'Inter', sans-serif; /* Font family */
}

button {
    cursor: pointer;
    margin: 0;
    padding: 0;
    border: 0;
}

.grid {
  display: grid;
  /*height: 100vh;*/
  grid-template-columns: repeat(5, 20% [col-start]);
  grid-template-rows: repeat(12, 100px [row-start]);
  justify-content: center;
  align-content: center;
  
  @media ((screen) and (min-width: var(--md-bp))) {
    grid-template-columns: repeat(10, 100px [col-start]);
    grid-template-rows: repeat(6, 100px [row-start]);
  }
}

.grid__item {
  position: relative;
  font-family: 'Abril Fatface', sans-serif;
  font-size: 32px;
  background: #fff;
    
  &::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    box-shadow:  inset -2px -2px 2px 2px rgba(0, 0, 0, 0.2);
    background-color: #EB424C;
  }
  
  &:hover .grid__item-door,
  &:focus .grid__item-door {
    transform: rotateY(28deg);
    transform-style: preserve-3d;
  }
 
    &:hover .grid__item-shadow,
    &:focus .grid__item-shadow {
    transform: translateZ(0) rotate(4deg) translateX(0px) translateY(0px) skewX(3deg) skewY(3deg) scaleX(0.89) scaleY(0.7);
    transform-origin: bottom left;
        opacity: 1;
        transition: all .5s ease-in-out; 
    }
}

.grid__item.grid__item--18::before {
  border-radius: 0 50px 0 0;
}

.grid__item.grid__item--13::before {
  border-radius: 50px 0 0 0;
}

.grid__item.grid__item--4::before {
  border-radius: 0 0 0 50px;
}

.grid__item.grid__item--10::before {
  border-radius: 0 0 50px 0;
}

.grid__item-door {
    z-index: 2;
    transition: transform .5s ease-in-out;
    position: absolute;
    top: -1px;
    bottom: 0;
    left: -1px;
    right: 0;
    background: linear-gradient(to bottom, #01D6C9, #00C8BC);
    border: 3px dashed #fff;
    color: #fff;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 16px;
    perspective: 0;
    transform-origin: bottom left;
}

.grid__item-door--bottomleft {
  border-radius: 0 0 0 50px;
}

.grid__item-door--bottomright {
  border-radius: 0 0 50px 0;
}

.grid__item-door--topleft {
  border-radius: 50px 0 0 0;
}

.grid__item-door--topright {
  border-radius: 0 50px 0 0;
}

.grid__item-shadow {
    position: absolute;
    z-index: 1;
    top: 0;
    bottom: 0;
    left: 0;
    right: 16px;
    border-radius: 600px 0 0 0;
    transition: opacity 0.2s ease-in 0.2s, -webkit-transform .2s linear;
    transition: transform .2s linear, opacity 0.2s ease-in 0.2s;
    transition: transform .2s linear, opacity 0.2s ease-in 0.2s, -webkit-transform .2s linear;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.4) 100%);
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.4);
    backface-visibility: hidden;
    transform: translateZ(0) rotate(0deg) translateX(0px) translateY(0) skewX(0) skewY(0) scaleY(0.9);
    transform-origin: bottom left;
    transform-style: preserve-3d;
    opacity: 0;
}

.grid__item--lg {
    font-size: var(--font-size-lg);
}

.grid__item--moss .grid__item-door {
    background-color: var(--door-moss);
}

.grid__item--sky .grid__item-door {
    background-color: var(--door-sky);
}

.grid__item--sun .grid__item-door {
    background-color: var(--door-sun);
}

.grid__item--rose .grid__item-door {
    background-color: var(--door-rose);
}

.grid__item--1 {
  grid-area: 7 / 1 / span 2 / span 2;
    .grid__item-door {
        z-index: 8;
    }
    
    .grid__item-shadow {
        z-index: 7;
    }     
}

.grid__item--2 {
  grid-area: 4 / 4 / span 2 / span 2;

    .grid__item-door {
        z-index: 12;
    }
    
    .grid__item-shadow {
        z-index: 11;
    }
}

.grid__item--3 {
  grid-area: 8 / 4 / span 2 / span 2;
    
    .grid__item-door {
        z-index: 6;
    }
    
    .grid__item-shadow {
        z-index: 5;
    }
}

.grid__item--4 {
  grid-area: 11 / 1 / span 2 / span 2;
}

.grid__item--5 {
  grid-area: 2 / 3 / span 2 / span 1;

    .grid__item-door {
        z-index: 14;
    }
    
    .grid__item-shadow {
        z-index: 13;
    }
}

.grid__item--6 {
  grid-area: 2 / 4 / span 2 / span 2;

    .grid__item-door {
        z-index: 14;
    }
    
    .grid__item-shadow {
        z-index: 13;
    }
}

.grid__item--7 {
  grid-area: 4 / 1 / span 1 / span 1;

    .grid__item-door {
        z-index: 12;
    }
    
    .grid__item-shadow {
        z-index: 11;
    }
}

.grid__item--8 {
  grid-area: 9 / 1 / span 1 / span 2;
    
    .grid__item-door {
        z-index: 6;
    }
    
    .grid__item-shadow {
        z-index: 5;
    }     
}

.grid__item--9 {
  grid-area: 1 / 3 / span 1 / span 2;

    .grid__item-door {
        z-index: 16;
    }
    
    .grid__item-shadow {
        z-index: 15;
    }
}

.grid__item--10 {
  grid-area: 12 / 4 / span 1 / span 2;
}

.grid__item--11 {
  grid-area: 8 / 3 / span 2 / span 1;
   
  .grid__item-door {
        z-index: 6;
    }
    
    .grid__item-shadow {
        z-index: 5;
    }   
}

.grid__item--12 {
  grid-area: 6 / 4 / span 1 / span 2;

    .grid__item-door {
        z-index: 10;
    }
    
    .grid__item-shadow {
        z-index: 9;
    }
}

.grid__item--13 {
  grid-area: 1 / 1 / span 2 / span 2;

    .grid__item-door {
        z-index: 16;
    }
    
    .grid__item-shadow {
        z-index: 15;
    }
}

.grid__item--14 {
  grid-area: 10 / 2 / span 1 / span 2;
    
   .grid__item-door {
        z-index: 4;
    }
    
    .grid__item-shadow {
        z-index: 3;
    } 
}

.grid__item--15 {
  grid-area: 7 / 5 / span 1 / span 1;

    .grid__item-door {
        z-index: 8;
    }
    
    .grid__item-shadow {
        z-index: 7;
    }
}

.grid__item--16 {
  grid-area: 4 / 2 / span 1 / span 2;

    .grid__item-door {
        z-index: 12;
    }
    
    .grid__item-shadow {
        z-index: 11;
    }
}

.grid__item--17 {
  grid-area: 5 / 3 / span 2 / span 1;

    .grid__item-door {
        z-index: 10;
    }
    
    .grid__item-shadow {
        z-index: 9;
    }
}

.grid__item--18 {
  grid-area: 1 / 5 / span 1 / span 1;

    .grid__item-door {
        z-index: 16;
    }
    
    .grid__item-shadow {
        z-index: 15;
    }
}

.grid__item--19 {
  grid-area: 10 / 1 / span 1 / span 1;
    
    .grid__item-door {
        z-index: 4;
    }
    
    .grid__item-shadow {
        z-index: 3;
    } 
}

.grid__item--20 {
  grid-area: 7 / 3 / span 1 / span 2;
    
    .grid__item-door {
        z-index: 8;
    }
    
    .grid__item-shadow {
        z-index: 7;
    }  
}

.grid__item--21 {
  grid-area: 10 / 4 / span 2 / span 2;
    
    .grid__item-door {
        z-index: 4;
    }
    
    .grid__item-shadow {
        z-index: 3;
    } 
}

.grid__item--22 {
  grid-area: 3 / 1 / span 1 / span 2;

    .grid__item-door {
        z-index: 14;
    }
    
    .grid__item-shadow {
        z-index: 13;
    }
}

.grid__item--23 {
  grid-area: 11 / 3 / span 2 / span 1;
}

.grid__item--24 {
  grid-area: 5 / 1 / span 2 / span 2;

    .grid__item-door {
        z-index: 10;
    }
    
    .grid__item-shadow {
        z-index: 9;
    }
}

@media ((screen) and (min-width: var(--md-bp))) {
  .grid__item--1 {
    grid-area: 1 / 6 / span 2 / span 2;
          
    .grid__item-door {
        z-index: 8;
    }
    
    .grid__item-shadow {
        z-index: 7;
    }
  }

  .grid__item--2 {
    grid-area: 4 / 4 / span 2 / span 2;
          
    .grid__item-door {
        z-index: 4;
    }
    
    .grid__item-shadow {
        z-index: 3;
    }
  }

  .grid__item--3 {
    grid-area: 2 / 9 / span 2 / span 2;
          
    .grid__item-door {
        z-index: 6;
    }
    
    .grid__item-shadow {
        z-index: 5;
    }
  }

  .grid__item--4 {
    grid-area: 5 / 6 / span 2 / span 2;
    
      .grid__item-door {
        z-index: 2;
    }
    
    .grid__item-shadow {
        z-index: 1;
    }
  }

  .grid__item--5 {
    grid-area: 2 / 3 / span 2 / span 1;
          
    .grid__item-door {
        z-index: 6;
    }
    
    .grid__item-shadow {
        z-index: 5;
    }
  }

  .grid__item--6 {
    grid-area: 2 / 4 / span 2 / span 2;
      
    .grid__item-door {
        z-index: 6;
    }
    
    .grid__item-shadow {
        z-index: 5;
    }
  }

  .grid__item--7 {
    grid-area: 4 / 1 / span 1 / span 1;
      
          
    .grid__item-door {
        z-index: 4;
    }
    
    .grid__item-shadow {
        z-index: 3;
    }
  }

  .grid__item--8 {
    grid-area: 3 / 6 / span 1 / span 2;
          
    .grid__item-door {
        z-index: 6;
    }
    
    .grid__item-shadow {
        z-index: 5;
    }
  }

  .grid__item--9 {
    grid-area: 1 / 3 / span 1 / span 2;
          
    .grid__item-door {
        z-index: 8;
    }
    
    .grid__item-shadow {
        z-index: 7;
    }
  }

  .grid__item--10 {
    grid-area: 6 / 9 / span 1 / span 2;

    .grid__item-door {
        z-index: 2;
    }
    
    .grid__item-shadow {
        z-index: 1;
    }
  }

  .grid__item--11 {
    grid-area: 2 / 8 / span 2 / span 1;
      
    .grid__item-door {
        z-index: 6;
    }
    
    .grid__item-shadow {
        z-index: 5;
    }
  }

  .grid__item--12 {
    grid-area: 6 / 4 / span 1 / span 2;
      
    .grid__item-door {
        z-index: 2;
    }
    
    .grid__item-shadow {
        z-index: 1;
    }
  }

  .grid__item--13 {
    grid-area: 1 / 1 / span 2 / span 2;
      
    .grid__item-door {
        z-index: 8;
    }
    
    .grid__item-shadow {
        z-index: 7;
    }
  }

  .grid__item--14 {
    grid-area: 4 / 7 / span 1 / span 2;
          
    .grid__item-door {
        z-index: 4;
    }
    
    .grid__item-shadow {
        z-index: 3;
    }
  }

  .grid__item--15 {
    grid-area: 1 / 10 / span 1 / span 1;
          
    .grid__item-door {
        z-index: 8;
    }
    
    .grid__item-shadow {
        z-index: 7;
    }
  }

  .grid__item--16 {
    grid-area: 4 / 2 / span 1 / span 2;
          
    .grid__item-door {
        z-index: 4;
    }
    
    .grid__item-shadow {
        z-index: 3;
    }
  }

  .grid__item--17 {
    grid-area: 5 / 3 / span 2 / span 1;
    .grid__item-door {
        z-index: 2;
    }
    
    .grid__item-shadow {
        z-index: 1;
    }
  }

  .grid__item--18 {
    grid-area: 1 / 5 / span 1 / span 1;
          
    .grid__item-door {
        z-index: 8;
    }
    
    .grid__item-shadow {
        z-index: 7;
    }
  }

  .grid__item--19 {
    grid-area: 4 / 6 / span 1 / span 1;
          
    .grid__item-door {
        z-index: 4;
    }
    
    .grid__item-shadow {
        z-index: 3;
    }
  }

  .grid__item--20 {
    grid-area: 1 / 8 / span 1 / span 2;
          
    .grid__item-door {
        z-index: 8;
    }
    
    .grid__item-shadow {
        z-index: 7;
    }
  }

  .grid__item--21 {
    grid-area: 4 / 9 / span 2 / span 2;
      
    .grid__item-door {
        z-index: 4;
    }
    
    .grid__item-shadow {
        z-index: 3;
    }
  }

  .grid__item--22 {
    grid-area: 3 / 1 / span 1 / span 2;
      
          
    .grid__item-door {
        z-index: 6;
    }
    
    .grid__item-shadow {
        z-index: 5;
    }
  }

  .grid__item--23 {
    grid-area: 5 / 8 / span 2 / span 1;

    .grid__item-door {
        z-index: 2;
    }
    
    .grid__item-shadow {
        z-index: 1;
    } 
  }

  .grid__item--24 {
    grid-area: 5 / 1 / span 2 / span 2;
      
    .grid__item-door {
        z-index: 2;
    }
    
    .grid__item-shadow {
        z-index: 1;
    }
  }
}

/* DAY */

.lottie-animation {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
}


.heute {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #fff;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  display: none;
}

.navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.nav-arrow {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #4A4B68;
}

.nav-arrow svg {
  margin-right: 8px;
}

.header-logo {
  width: 100px;
  height: 100px;
}

.day-indicator {
  position: relative;
  text-align: center;
  margin: 20px 0;
}

.calendar-icon {
  width: 120px;
  height: auto;
}

.day-number {
  font-family: 'Abril Fatface', sans-serif;
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  font-size: 1.4rem;
  color: #545572;
}

.main-title {
  font-family: 'Inter', sans-serif;
  text-align: center;
  margin: 20px 0;
  color: #545572;
  font-size: 2rem;
}

.content-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 24px;
}

.content-text {
  text-align: center;
  margin: 20px 0;
  color: #545572;
  line-height: 140%;
  font-size: 18px;
  font-family: 'Inter', sans-serif;
}

.email-subscription {
  text-align: center;
  margin: 20px 0;
  font-family: 'Inter', sans-serif;
}

.email-subscription input {
  width: 100%;
  padding: 18px 12px;
  margin: 0 0 10px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  font-size: 1.2rem;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
}

.participation-button {
  width: 100%;
  padding: 15px;
  border: none;
  background-color: #2CB9B0;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 24px;
  font-family: 'Inter', sans-serif;
}

.section-headline {
  text-align: center;
  font-size: 1.5rem;
  color: #545572;
  margin: 20px 0;
  font-family: 'Inter', sans-serif;
}

.raffle-description {
  text-align: center;
  line-height: 150%;
  color: #545572;
  margin: 0 0 20px;
  font-family: 'Inter', sans-serif;
}

.success-message {
  text-align: center;
  color: green;
  display: none;
  line-height: 150%;
  margin-top: 20px;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* Aspect ratio of 16:9 */
  height: 0;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

@media (max-width: 768px) {
  .container {
      padding: 10px;
  }

  .grid__item.grid__item--18::before {
    border-radius: 0;
  }
  
  .grid__item.grid__item--13::before {
    border-radius: 0;
  }
  
  .grid__item.grid__item--4::before {
    border-radius: 0;
  }
  
  .grid__item.grid__item--10::before {
    border-radius: 0;
  }

  .grid__item-door--bottomleft {
    border-radius: 0;
  }
  
  .grid__item-door--bottomright {
    border-radius: 0;
  }
  
  .grid__item-door--topleft {
    border-radius: 0;
  }
  
  .grid__item-door--topright {
    border-radius: 0;
  }
}

@media (max-width: 480px) {
  .day-indicator {
      margin: 10px 0;
  }
}

@media (min-width: 768px) {
  .hero {
    justify-content: start;
    padding: 24px 132px 110px;
    flex-wrap: nowrap;
  }

  .hero__logo {
    max-width: 180px;
    margin-right: 42px;
    margin-bottom: 0;
  }
  
  .hero__title {
    font-size: 48px;
    font-weight: 400;
    margin: 0;
    text-align: left;
  }
  
  .hero__intro {
    font-size: 20px;
    font-weight: 400;
    margin: 28px 0 0;
    text-align: left;
  }

  .hero__lebkuchen {
    position: absolute;
    bottom: -130px;
    right: 120px;
  }
}

#shareButton {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: #EB424C;
  color: #fff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 1000;
  width: 240px;
  text-align: center;
  padding: 20px 0 12px;
}

#shareButton p {
  line-height: 140%;
  margin: 0;
}

/* Modal styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
}

.modal-content {
    background-color: #fff;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 30px;
    border: 1px solid #ccc;
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    font-family: 'Inter', sans-serif;
    color: #545572;
    text-align: center;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: #545572;
    text-decoration: none;
}

#modal-text {
    font-size: 1.2rem;
    line-height: 1.5;
    margin-top: 20px;
}
