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

:root {
  --accent: #ff0000;
  --card-bg: rgba(255, 255, 255, 0.08);
  --blur: 25px;
  --radius: 33px;
  --text: #e9efff;
  --muted: #b7c0d9;
}
  
*{box-sizing:border-box}
html,body{height:100%}
  body {
    margin: 0;
    font-family: 'Nunito', sans-serif;
    color: var(--text);
    background: linear-gradient(to bottom, 
      #1e8fff 0%, 
      #00bfff 20%, 
      #006400 100%
    );
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
    background-size: 100% 100vh;
    background-repeat: no-repeat;
  }
  
  body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    pointer-events: none;
    z-index: -1;
  }
  
  body::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40vh;
    background: linear-gradient(to top, rgba(0, 100, 0, 0.4) 0%, transparent 100%);
    pointer-events: none;
    z-index: -1;
  }
  
  .wrap{
    width: min(1200px, 92vw);
    margin: 0 auto;
    padding: clamp(18px,2vw,28px);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
  }
  .hero{
    backdrop-filter: blur(var(--blur));
    background: rgba(0, 0, 0, 0.5);
    border-radius: 99px;
    padding: calc(clamp(10px,2vw,20px) + 5px) clamp(16px,3vw,32px) clamp(10px,2vw,20px);
    margin: 8px 0;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: center;
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero .title {
    margin: 0 0 10px 0;
    padding: 0;
    line-height: 1.2;
  }

  .countdown-container {
    backdrop-filter: blur(var(--blur));
    background: var(--card-bg);
    border-radius: 99px;
    padding: 10px 20px;
    margin: 10px 0 0 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 90%;
    box-sizing: border-box;
    font-size: 2rem;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  }

  .countdown-container #countdown {
    font-weight: bold;
    color: #ffd700;
  }

  .message-container {
    text-align: center;
    margin: 25px auto;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    max-width: 80%;
    font-size: 1.9rem;
    color: #fff;
  }
  
  .message-container p {
    margin: 0;
    padding: 0;
    line-height: 1.4;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    font-weight: bold;
  }
  

  
  @keyframes floatUpDown {
    0%, 100% {
      transform: translateY(0px);
    }
    50% {
      transform: translateY(-10px);
    }
  }

  .featured-images {
    display: flex;
    gap: 24px;
    margin: 40px 0;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .featured-image {
    flex: 1;
    min-width: 300px;
    max-width: 45%;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: floatUpDown 4s ease-in-out infinite, pulseBorder 4s infinite;
    position: relative;
  }
  
  /* Individuelle Verzögerung für jedes Bild */
  .featured-image:nth-child(1)  { animation-delay: 1.7s; }
  .featured-image:nth-child(2)  { animation-delay: 0.4s; }
  .featured-image:nth-child(3)  { animation-delay: 3.2s; }
  .featured-image:nth-child(4)  { animation-delay: 2.6s; }
  .featured-image:nth-child(5)  { animation-delay: 0.9s; }
  .featured-image:nth-child(6)  { animation-delay: 3.8s; }
  .featured-image:nth-child(7)  { animation-delay: 0.1s; }
  .featured-image:nth-child(8)  { animation-delay: 2.3s; }
  .featured-image:nth-child(9)  { animation-delay: 1.4s; }
  .featured-image:nth-child(10) { animation-delay: 3.5s; }
  
  .featured-image:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    animation-play-state: paused;
  }
  
  .featured-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
    border-radius: var(--radius);
  }
  
  .audio-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 12px 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s ease;
    z-index: 2;
    min-width: 160px;
    box-shadow: 0 0px 25px rgba(255, 119, 0, 0.9);
  }
  
  .audio-btn:hover {
    background: rgba(255, 162, 0, 0.9);
    box-shadow: 0 6px 20px rgba(255, 89, 0, 1);
    border-color: rgba(255, 255, 255, 0.3);
  }
  
  .audio-btn:active {
    transform: translateX(-50%) translateY(0);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  }
  
  .audio-btn.playing {
    background: rgba(255, 162, 0, 0.95);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
  }
  
  @keyframes pulseBorder {
    0% {
      box-shadow: 0 0 0 0 rgba(0, 255, 183, 0.5);
    }
    70% {
      box-shadow: 0 0 0 25px rgba(255, 255, 255, 0);
    }
    100% {
      box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
  }
  
  .featured-image:hover img {
    transform: scale(1.05);
  }
  
  .title{
    margin: 0 0 8px;
    font-size: clamp(28px, 3.6vw, 50px);
    line-height: 1.1;
    letter-spacing: 0.3px;
    white-space: nowrap;
    padding: 0 20px;
    display: block;
  }
  .name{ color: white; text-shadow: 0 0 30px rgb(255, 162, 0); }
  
  .subtitle{
    margin:0;
    color: var(--muted);
    font-size: clamp(14px,1.6vw,18px);
  }
  
  /* Galerie */
  .gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 40px auto 80px;
    padding: 0 40px;
    max-width: 1000px;
    width: 100%;
    align-items: start;
  }
  
  .featured-images {
    grid-column: 1 / -1;
    display: flex;
    gap: 24px;
    margin: 20px 0 0 0;
  }

  .time-info-container {
    grid-column: 1 / -1;
    text-align: center;
    margin: 120px 0 80px 0;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    transform: scale(1.75);
    transform-origin: top center;
  }
  
  .time-info {
    font-size: 24px;
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    margin: 0;
    padding: 10px 24px;
    line-height: 1.3;
    background: var(--card-bg);
    backdrop-filter: blur(var(--blur));
    border-radius: 99px;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: inline-block;
  }

  #current-time {
    color: #ffa200;
    font-weight: bold;
    text-shadow: 0 0 15px rgba(255, 162, 0, 0.8);
  }
  /* Hervorgehobenes Hauptbild */
  .card.featured {
    grid-column: 1 / -1;
    position: relative;
    margin: 30px auto;
    width: 95%;
    max-width: 1200px;
    display: inline-block;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 50px;
    overflow: hidden;
    line-height: 0;
    margin-bottom: 80px;
    height: 600px;
  }

  .card.featured img {
    display: block;
    max-width: 100%;
    border-radius: calc(var(--radius));
    box-shadow: 0 0 15px rgba(138, 125, 255, 0.3);
    transition: all 0.3s ease;
  }
  
  /* Sara's Bild */
  .card.featured .sara-image {
    position: absolute;
    top: 341px;
    left: 187px;
    transform: translate(-50%, -50%);
    width: 375px;
    height: 520px;
    z-index: 2;
    border-radius: 0 !important;
    box-shadow: none !important;
    animation: floatSara 6s ease-in-out infinite;
  }
  
  /* Yannik's Bild */
  .card.featured .yannik-image {
    position: absolute;
    top: 311px;
    left: 850px;
    transform: translate(-50%, -50%);
    width: 415px;
    height: 590px;
    z-index: 1;
    border-radius: 0 !important;
    box-shadow: none !important;
    animation: floatYannik 6s ease-in-out infinite;

  }
  
  .card.featured img:last-child {
    z-index: 1;
    filter: brightness(1);
    animation: zoomInOut 6s infinite ease-in-out;
    transform: scale(1.5);
    transform-origin: center;
  }
  
  @keyframes zoomInOut {
    0%, 100% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.075);
    }
  }
  
  @keyframes floatSara {
    0%, 100% {
      transform: translate(-50%, -50%) translateX(-10px);
    }
    50% {
      transform: translate(-50%, -50%) translateX(0px);
    }
  }
  
  @keyframes floatYannik {
    0%, 100% {
      transform: translate(-50%, -50%) translateX(10px);
    }
    50% {
      transform: translate(-50%, -50%) translateX(0px);
    }
  }
  
  /* Stil für das blaue Herz */
  .heart-emoji {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 150px;
    z-index: 3;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
    animation: heartbeat 3s infinite;
    line-height: 1;
  }
  
  @keyframes heartbeat {
    0% { transform: translate(-50%, -50%) scale(1); }
    25% { transform: translate(-50%, -50%) scale(1.1); }
    50% { transform: translate(-50%, -50%) scale(1); }
    75% { transform: translate(-50%, -50%) scale(1.05); }
    100% { transform: translate(-50%, -50%) scale(1); }
  }

  .card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.03);
    transition: transform 0.3s ease, box-shadow 1.5s ease;
    box-shadow: 0 0 0 rgba(255, 162, 0, 0);
  }
  
  .card:hover {
    transform: translateY(-3px) scale(1.002);
    box-shadow: 0 0px 300px rgb(0, 255, 255);
  }

  .card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    opacity: 0;
    transform: scale(1.01);
    border-radius: calc(var(--radius) + 2px);
    transition: all 0.4s cubic-bezier(0.2, 0, 0.1, 1);
  }
  .card img.loaded {
    opacity: 1;
    transform: none;
  }
  
  /* Skeleton shimmer */
  .skel {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.05), rgba(255,255,255,0.12), rgba(255,255,255,0.05));
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
  }
  @keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
  
  /* Lightbox */
  .lightbox {
    position: fixed;
    inset: 0;
    background: rgba(10, 12, 18, 0.92);
    display: grid;
    place-items: center;
    padding: clamp(8px, 2vw, 24px);
    z-index: 999;
  }
  .lightbox[hidden]{ display:none; }
  .lightbox img{
    max-height: 86vh;
    border-radius: 33px;
  }
  
  .lb-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    width: 52px;
    height: 52px;
    border-radius: 33px;
    display: grid;
    place-items: center;
    font-size: 36px;
    line-height: 0;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
  }
  .lb-prev{ left: clamp(8px,2vw,18px); }
  .lb-next{ right: clamp(8px,2vw,18px); }
  .lb-close {
    top: clamp(16px, 4vw, 24px);
    right: clamp(16px, 4vw, 24px);
    transform: none;
    font-size: 30px;
    width: 44px;
    height: 44px;
  }
  
  /* Brand Badge */
  .brand-badge {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 33px;
    padding: 10px 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
    pointer-events: auto;
  }
  
  .brand-badge a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #eaf2ff;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.2px;
  }
  
  .brand-badge a span {
    opacity: 0.95;
  }
  
  /* Hover-Effekt (dezent) */
  .brand-badge:hover {
    transform: translateY(-2px) scale(1.02);
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 14px 36px rgba(0,0,0,0.32);
  }

  @media (max-width: 800px) {
    body * {
      display: none !important;
    }
    
    body::after {
      content: "Lädt ..." !important;
      display: block !important;
      color: white !important;
      text-align: center !important;
      padding: 40px 20px !important;
      margin-top: 60% !important;
      font-size: 18px !important;
    }
  }
  