:root{
  --white:#ffffff;
  --gold:#c9a961;
  --gold-soft:#e8d6a3;
  --blue-soft:#cfe6f5;
  --text:#0b0b0b;
  --shadow:0 10px 30px rgba(0,0,0,0.08);
  --radius:14px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:"Merriweather", serif;
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 50% -10%, #ffffff 0%, #f7fbff 60%, #eef6ff 100%);
  display:flex;
  flex-direction:column;
}
a{text-decoration:none;color:inherit}
.site-header{
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:2.5vh 16px 1.5vh;
  background:linear-gradient(180deg,#ffffff 0%, #fbfbfb 100%);
  box-shadow:var(--shadow);
}
.logo-wrap{
  width:100%;
  display:flex;
  justify-content:center;
}
.site-logo{
  width:min(50vw,720px);
  height:auto;
  aspect-ratio:2/1;
  object-fit:fill;
  border:3px solid var(--gold);
  border-radius:10px;
  box-shadow:0 6px 18px rgba(201,169,97,0.25);
  background:#fff;
}
.site-title{
  font-family:"Great Vibes", cursive;
  color:var(--gold);
  font-size:clamp(28px,5vw,56px);
  margin:10px 0 0;
  text-shadow:0 1px 0 rgba(255,255,255,0.8);
}
.site-main{
  flex:1;
  width:min(1100px,92%);
  margin:2vh auto;
  background:#ffffffcc;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:22px 18px 28px;
}
.section-label{
  font-family:"Cinzel", serif;
  font-size:16px;
  letter-spacing:0.5px;
  margin:6px 0 14px;
}
.sub-label{margin-top:18px}
.menu-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:16px;
}
.menu-card{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  border:1.5px solid var(--gold-soft);
  border-radius:12px;
  padding:18px 12px;
  background:linear-gradient(180deg,#ffffff 0%, #fbfbfb 100%);
  box-shadow:0 4px 14px rgba(0,0,0,0.06);
  transition:transform .2s ease, box-shadow .2s ease;
  min-height:140px;
}
.menu-card:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 22px rgba(201,169,97,0.18);
}
.menu-icon{
  width:56px;
  height:56px;
  margin-bottom:10px;
  filter:drop-shadow(0 2px 6px rgba(201,169,97,0.35));
}
.menu-label{
  text-align:center;
  font-size:15px;
  line-height:1.35;
}
.menu-label small{
  display:block;
  font-size:12px;
  color:#444;
  margin-top:6px;
}
.site-footer{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:1.2vh 16px;
  background:linear-gradient(0deg,#ffffff 0%, #fbfbfb 100%);
  box-shadow:0 -8px 22px rgba(0,0,0,0.06);
}
.footer-text{
  font-family:"Cinzel", serif;
  font-size:clamp(12px,2.2vw,18px);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:96%;
  text-align:center;
  color:#000;
}

/* Buttons allgemein */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 16px;
  border-radius:10px;
  border:1.5px solid var(--gold);
  background:linear-gradient(180deg,#fff 0%, #fbf7ef 100%);
  color:#000;
  font-family:"Cinzel", serif;
  font-size:14px;
  cursor:pointer;
  box-shadow:0 3px 10px rgba(201,169,97,0.2);
  transition:transform .15s ease, box-shadow .15s ease;
}
.btn:hover{transform:translateY(-1px);box-shadow:0 6px 14px rgba(201,169,97,0.28)}
.btn img{width:18px;height:18px}

/* Karussell Container */
.carousel-wrap{
  width:90%;
  margin:10px auto 0;
}
.carousel-stage{
  position:relative;
  width:100%;
  aspect-ratio:16/9;
  overflow:hidden;
  border-radius:12px;
  box-shadow:0 8px 24px rgba(0,0,0,0.12);
  background:#0000;
}
.carousel-track{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
}
.carousel-segment{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  width:92%;
  height:92%;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:opacity .35s ease, transform .35s ease, filter .35s ease;
  opacity:0;
  filter:blur(2px) grayscale(0.2);
  pointer-events:none;
}
.carousel-segment.active{
  opacity:1;
  filter:none;
  z-index:5;
  transform:translate(-50%,-50%) scale(1);
  pointer-events:auto;
}
.carousel-segment.prev1{
  opacity:0.7;
  z-index:4;
  transform:translate(-50%,-50%) translateX(-18%) scale(0.92);
}
.carousel-segment.next1{
  opacity:0.7;
  z-index:4;
  transform:translate(-50%,-50%) translateX(18%) scale(0.92);
}
.carousel-segment.prev2{
  opacity:0.45;
  z-index:3;
  transform:translate(-50%,-50%) translateX(-30%) scale(0.82);
}
.carousel-segment.next2{
  opacity:0.45;
  z-index:3;
  transform:translate(-50%,-50%) translateX(30%) scale(0.82);
}
.carousel-segment.prev3{
  opacity:0.25;
  z-size:2;
  transform:translate(-50%,-50%) translateX(-42%) scale(0.70);
}
.carousel-segment.next3{
  opacity:0.25;
  z-index:2;
  transform:translate(-50%,-50%) translateX(42%) scale(0.70);
}
.carousel-segment img,
.carousel-segment video{
  width:100%;
  height:100%;
  object-fit:contain;
  border-radius:10px;
  background:#0000;
}

/* Karussell Controls – kompakte Buttons, bündig zum Karussell */
.carousel-controls{
  display:grid;
  /* 5 Spalten: links, Download, Mitte (Counter), Vergrößern, rechts */
  grid-template-columns: 1fr auto auto auto 1fr;
  align-items:center;
  gap:8px;
  margin-top:15px;
  width:90%;          /* exakt wie .carousel-wrap */
  margin-left:auto;
  margin-right:auto;
}

/* Linke und rechte Gruppe füllen den verfügbaren Platz und schließen bündig ab */
.control-group.left{
  justify-content:flex-start;
}
.control-group.right{
  justify-content:flex-end;
}

/* Buttons etwas kleiner (ca. halbe optische Größe) */
.carousel-controls .btn{
  padding:6px 10px;
  border-radius:8px;
  border:1.5px solid var(--gold);
  background:linear-gradient(180deg,#fff 0%, #fbf7ef 100%);
  color:#000;
  font-family:"Cinzel", serif;
  font-size:12px;      /* kleinere Schrift in Karussell‑Buttons */
  cursor:pointer;
  box-shadow:0 3px 10px rgba(201,169,97,0.2);
  transition:transform .15s ease, box-shadow .15s ease;
}
.carousel-controls .btn-next{
  flex-direction: row-reverse;
}
.carousel-controls .btn:hover{
  transform:translateY(-1px);
  box-shadow:0 6px 14px rgba(201,169,97,0.28);
}
.carousel-controls .btn img{
  width:14px;          /* kleinere Icons */
  height:14px;
}

/* Counter‑Box ebenfalls kompakt */
.counter-box{
  display:flex;
  align-items:center;
  gap:6px;
  padding:4px 8px;
  border:1px solid var(--gold-soft);
  border-radius:6px;
  font-family:"Cinzel", serif;
  font-size:11px;      /* kleiner */
  background:#fff;
}
.counter-box button{
  background:none;
  border:none;
  cursor:pointer;
  padding:0;
  display:flex;
  align-items:center;
  justify-content:center;
}
.counter-box button img{
  width:12px;
  height:12px;
}

/* Upload Bereich */
.upload-section{
  border:1.5px dashed var(--gold);
  border-radius:12px;
  padding:22px;
  background:linear-gradient(180deg,#ffffff 0%, #fbfbfb 100%);
  text-align:center;
  min-height:180px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:12px;
  position:relative;
}
.upload-section.dragover{
  background:#fbf7ef;
  border-color:var(--gold);
  box-shadow:inset 0 0 0 2px var(--gold-soft);
}
.upload-hint{
  font-family:"Merriweather", serif;
  font-size:14px;
  color:#333;
  max-width:420px;
}
.upload-hint img{width:80px;height:80px;opacity:0.9}
.upload-list{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:center;
  margin-top:10px;
}
.upload-item{
  width:90px;
  display:flex;
  flex-direction:column;
  align-items:center;
  font-size:11px;
  color:#444;
}
.upload-item img,
.upload-item video{
  width:70px;height:50px;object-fit:cover;border-radius:6px;border:1px solid #ddd;background:#fff;
}

/* Gästebuch */
.guestbook-wrap{
  border:1.5px solid var(--gold-soft);
  border-radius:12px;
  padding:16px;
  background:#fff;
  box-shadow:var(--shadow);
}
.guestbook-list{
  max-height:160px;
  overflow-y:auto;
  border:1px solid #eee;
  border-radius:8px;
  padding:10px;
  margin-bottom:12px;
  background:#fafafa;
}
.guestbook-entry{
  margin-bottom:10px;
  font-size:13px;
  line-height:1.35;
}
.guestbook-entry strong{display:block;margin-bottom:4px;color:#222}
.guestbook-form{
  display:grid;
  gap:10px;
}
.guestbook-form input,
.guestbook-form textarea{
  width:100%;
  padding:10px 12px;
  border-radius:8px;
  border:1px solid #ddd;
  font-family:inherit;
  font-size:14px;
}
.guestbook-form textarea{min-height:90px;resize:vertical}
.char-remaining{
  font-size:11px;
  color:#555;
  text-align:right;
}

/* Info Boxen */
.info-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:12px;
}
.info-box{
  border:1px solid var(--gold-soft);
  border-radius:10px;
  padding:12px;
  background:#fff;
  font-size:13px;
  line-height:1.45;
  box-shadow:0 3px 10px rgba(0,0,0,0.05);
}
.fairy-timer{
  position:relative;
  width:100%;
  margin-top:10px;
  padding:10px 6px 6px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
}
.herz {
    margin-top: 15px;
    color: #f4c5d4;
    font-family: Georgia, serif;
    font-size: 20px;
    text-align:center;
}

/* Obere Zeile: Tage */
.timer-main{
  display:flex;
  flex-direction:column;
  align-items:center;
  min-width:60px;
}

.timer-days{
  font-family:"Cinzel", serif;
  font-size:28px;
  font-weight:600;
  color:#c9a961; /* Gold */
  line-height:1;
  text-shadow:0 1px 0 rgba(255,255,255,0.7);
}

.timer-sub{
  font-family:"Merriweather", serif;
  font-size:10px;
  color:#0b0b0b;
  margin-top:4px;
  text-align:center;
}

/* Untere Zeile: Stunden : Minuten : Sekunden */
.timer-hms{
  font-family:"Cinzel", serif;
  font-size:16px;
  color:#0b0b0b;
  letter-spacing:1px;
}

.timer-text{
  width:100%;
  text-align:center;
  font-family:"Merriweather", serif;
  font-size:12px;
  color:#0b0b0b;
  margin-top:4px;
}

/* Funkelnde Sterne */
.timer-stars{
  position:absolute;
  inset:0;
  pointer-events:none;
  overflow:hidden;
  border-radius:10px;
}
.star{
  position:absolute;
  font-size:14px;           /* Größe der Herzen */
  color:#c9a961;            /* Goldene Farbe */
  opacity:0.7;
  animation:twinkle 2.2s infinite ease-in-out;
  line-height:1;
  text-shadow:0 0 2px rgba(255,255,255,0.8);
  background:transparent;   /* kein Kreis mehr */
  width:auto;
  height:auto;
  border-radius:0;
}
.star:nth-child(2){ animation-delay:0.4s; }
.star:nth-child(3){ animation-delay:0.8s; }
.star:nth-child(4){ animation-delay:1.2s; }
.star:nth-child(5){ animation-delay:1.6s; }

@keyframes twinkle{
  0%, 100%{ opacity:0.35; transform:scale(0.9); }
  50%     { opacity:1;    transform:scale(1.15); }
}
.info-img{
  display:block;
  max-width:100%;
  width:auto;
  height:auto;
  margin:10px auto 0;
}
.todo-list{
  width:100%;
  margin-top:8px;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.todo-item{
  display:flex;
  align-items:flex-start;
  gap:8px;
  font-size:13px;
  line-height:1.35;
}
.todo-check{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:16px;
  height:16px;
  border:1.5px solid #0b0b0b;
  border-radius:3px;
  font-size:12px;
  line-height:1;
  color:#0b0b0b;
  flex-shrink:0;
}
/* Leere Checkbox für unerledigte Aufgaben */
.todo-item:not(.done) .todo-check::before{
  content:"";
  display:block;
  width:10px;
  height:10px;
  background:#fff;
  border-radius:1px;
}
/* Grüne Checkbox mit Häkchen für erledigte Aufgaben */
.todo-item.done .todo-check{
  background:#eaffea;
  border-color:#2e7d32;
  color:#2e7d32;
}

/* Passwort Abfrage */
.password-wrap{
  border:1.5px solid var(--gold-soft);
  border-radius:12px;
  padding:16px;
  background:#fff;
  box-shadow:var(--shadow);
  max-width:520px;
  margin:0 auto;
}
.password-wrap input{
  width:100%;
  padding:10px 12px;
  border-radius:8px;
  border:1px solid #ddd;
  font-family:inherit;
  font-size:14px;
  margin:8px 0 12px;
}

/* Back Button */
.back-row{
  display:flex;
  justify-content:center;
  margin-top:18px;
}

/* Fehler / Status */
.status{
  margin-top:10px;
  font-size:13px;
  padding:8px 10px;
  border-radius:8px;
}
.status.ok{background:#eaffea;border:1px solid #c6ebc6;color:#1a5a1a}
.status.err{background:#ffeaea;border:1px solid #ebc6c6;color:#5a1a1a}

/* Responsive Feinjustierung */
@media (max-width:640px){
  /* Querformat (waagerecht) – kompakt, aber noch mit allen Buttons */
  .carousel-controls{
    grid-template-columns: 1fr auto auto auto 1fr;
    gap:6px;
  }
  .carousel-controls .btn{
    padding:5px 8px;
    font-size:11px;
  }
  .carousel-controls .btn img{
    width:12px;
    height:12px;
  }
  .counter-box{
    font-size:10px;
    padding:3px 6px;
  }
  .counter-box button img{
    width:10px;
    height:10px;
  }

  /* Hochformat (hochkant) – noch kompakter und übersichtlicher */
}
@media (max-width:640px) and (orientation:portrait){
  .carousel-controls{
    /* Zwei Zeilen: oben Navigation, unten Download + Counter + Vollbild */
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    align-items:center;
    gap:6px;
    width:90%;
    margin-left:auto;
    margin-right:auto;
  }

  /* Obere Zeile: Zurück | 10er‑Sprung | Counter | 10er‑Sprung | Vorwärts */
  .carousel-controls .control-group.left,
  .carousel-controls .control-group.right,
  .carousel-controls .counter-box{
    order:1;
  }

  /* Untere Zeile: Download | Vergrößern */
  .carousel-controls .control-group:nth-child(2),
  .carousel-controls .control-group:nth-child(4){
    order:2;
  }

  /* Buttons noch kleiner im Hochformat */
  .carousel-controls .btn{
    padding:4px 6px;
    font-size:10px;
  }
  .carousel-controls .btn img{
    width:10px;
    height:10px;
  }
  .counter-box{
    font-size:9px;
    padding:2px 4px;
  }
  .counter-box button img{
    width:9px;
    height:9px;
  }

  /* Counter‑Box in der Mitte halten */
  .carousel-controls .counter-box{
    margin:0 4px;
  }
}