/* Grundlayout (ersetzt das WordPress-Theme Twenty Twenty-Five) */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; line-height: 1.6; color: #1e1e1e; background: #fff; }
.site-header { padding: 16px 24px; }
.site-header a { color: inherit; text-decoration: none; font-weight: 600; }
main { margin-top: 24px; }
.start-intro { max-width: 800px; margin: 0 auto; padding: 0 16px; text-align: center; }

/* ============================ */
/* STARTSEITE: Adventstürchen */
/* ============================ */
#advent-buttons {
display: flex;
flex-wrap: wrap;
gap: 15px;
max-width: 800px;
margin: 40px auto;
justify-content: center;
}

.advent-btn {
color: #fff;
border: none;
border-radius: 15px;
padding: 20px;
font-size: 22px;
font-weight: bold;
cursor: pointer;
width: 120px;
height: 120px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
box-shadow: 0 6px 12px rgba(0,0,0,0.25);
transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.advent-btn:hover {
transform: translateY(-4px);
box-shadow: 0 10px 16px rgba(0,0,0,0.3);
}

.advent-btn span.motif {
font-size: 28px;
margin-top: 6px;
}

.advent-btn-special {
  border: 3px solid gold;
  font-weight: bold;
}
/* ============================ */
/* STARTSEITE: 25. Dezember */
/* ============================ */
/* 25. Türchen mittig unter den anderen */
.door-25-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

/* Türchen Optik */
.door-25 {
  width: 120px;
  height: 120px;
  background: #b30000;
  color: white;
  font-size: 32px;
  font-weight: bold;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

/* Popup Overlay */
.overlay-25 {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.popup-25 {
  background: white;
  padding: 30px;
  border-radius: 12px;
  max-width: 400px;
  width: 100%;
  text-align: center;
}

.password-hint-25 {
  font-family: monospace;
  margin-bottom: 15px;
}

.popup-25 input {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  margin-bottom: 10px;
}

.popup-25 button {
  margin-top: 10px;
  padding: 8px 16px;
}

/* Fehler */
.error-25 {
  color: red;
  margin-top: 5px;
}

/* Utility */
.hidden {
  display: none;
}



/* ============================ */
/* PERGAMENTROLLEN: Storyseiten */
/* ============================ */
.story-container {
  max-width: 1300px;
  height: 1950px; /* gesamte Pergamentrolle */
  margin: 50px auto;
  background: url('../media/Pergamentrolle_lang.png') no-repeat center center;
  background-size: 1300px auto;
  background-position: center;
  position: relative;
}

/* Überschrift oben fixiert */
.story-header {
  position: absolute; /* immer oben */
  top: 50px;
  left: 0;
  right: 0;
  height: 150px;      /* Höhe des Headerblocks */
  line-height: 150px; /* vertikal zentriert */
  text-align: center;
  color: #5a3e2b;
  z-index: 2;
}

.story-header h2 {
  font-family: 'Georgia', serif; /* Schrift wie im Text */
  font-size: 2em;                /* Größe der Überschrift */
  margin: 0;                      /* Abstand oben/unten entfernen */
}

/* Scrollbarer Textbereich unterhalb der Überschrift */
.story-text {
  position: absolute;
  top: 150px; /* beginnt unterhalb der Überschrift */
  left: 0;
  right: 0;
  height: 1600px; /* Höhe des Textblocks */
  max-width: 1010px;
  margin: 0 auto; /* horizontal zentriert */
  padding: 0 100px;
  font-family: 'Georgia', serif;
  color: #5a3e2b;
  line-height: 1.7;
  text-align: justify;
  overflow-y: auto; /* nur das Textfeld scrollt */
  box-sizing: border-box;
}
.story-text strong {
  font-weight: bold !important;
}
/* Scrollbar */
.story-text::-webkit-scrollbar {
  width: 6px;
}

.story-text::-webkit-scrollbar-thumb {
  background: rgba(90, 62, 43, 0.25);
  border-radius: 3px;
}

.story-text::-webkit-scrollbar-track {
  background: transparent;
}

/* ============================ */
/* Popup-Fenster für Rätsel */
/* ============================ */
.popup-overlay {
  display: none; /* Wird per JS eingeblendet */
  position: fixed;
  inset: 0;
  /*background: rgba(0,0,0,0.2); /* leicht transparent */
  z-index: 999999; /* sicher über allen anderen Elementen */
  justify-content: center;
  align-items: center;
}

.popup-content {
  position: relative; /* wichtig für Popup-Letter */
  background: #fffdf5;
  padding: 30px 40px;
  border-radius: 12px;
  width: 90%;
  max-width: 450px;
  text-align: center;
  font-family: Georgia, serif;
  color: #5a3e2b;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  animation: popupFadeIn 0.3s ease;
}

.popup-letter {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 20px;
  font-weight: bold;
  color: #2e7d32;
}

.popup-letter .icon {
  margin-left: 5px;
  font-size: 16px;
}

@keyframes popupFadeIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.popup-buttons {
  margin-top: 25px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.popup-buttons button {
  flex: 1;
  padding: 10px;
  font-size: 16px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: bold;
}

#popupClose {
  background: #bdbdbd;
  color: #333;
}
#popupClose:hover {
  background: #9e9e9e;
}

#popupStartseite {
  background: #2e7d32;
  color: white;
}
#popupStartseite:hover {
  background: #1b5e20;
}

/* ============================ */
/* RÄTSELBEREICH: Tag 1 */
/* ============================ */
#day1-rätsel {
  text-align: center;
  margin-top: 40px;
  z-index: auto; /* sicherstellen, dass Popup darüber liegt */
}

.rätsel-container {
  max-width: 320px;
  margin: 40px auto;
  padding: 20px;
  background: #fdf6e3;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  text-align: center;
  z-index: auto; /* Sicherheit für Popup */
  position: relative;
}

.schneekugel-text {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 20px;
  color: #5a3e2b;
  font-family: "Georgia", serif;
}

#schneekugel-tag1 {
  width: 120px;
  height: 130px;
  margin: 0 auto 20px auto;
  background: url('../media/Schneekugel.png') no-repeat center center;
  background-size: cover;
  cursor: pointer;
  border-radius: 10px;
  transform-origin: center center;
  transition: transform 0.3s ease;
  z-index: auto; /* sicherstellen, dass Popup darüber liegt */
  position: relative;
}

#resetBtn {
  padding: 10px 25px;
  font-size: 16px;
  border-radius: 5px;
  border: none;
  background-color: #c62828;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#resetBtn:hover {
  background-color: #b71c1c;
}

/* ============================ */
/* RÄTSELBEREICH: Tag 2 */
/* ============================ */
#sternbild-raetsel {
  text-align: center;
  margin-top: 40px;
  z-index: auto; /* sicherstellen, dass Popup darüber liegt */
}

.sternbild-auswahl {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.sternbild-auswahl img {
  width: 120px;
  height: auto;
  border: 4px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
  z-index: auto; /* verhindern, dass ausgewähltes Bild über Popup liegt */
}

.sternbild-auswahl img.selected {
  border-color: black;
  transform: scale(1.08);
  z-index: auto; /* Sicherheit für Popup */
}

#sternbild-confirm {
  padding: 12px 20px;
  background: #6b4f2f;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
}

#sternbild-confirm:hover {
  background: #836647;
}

/* ============================ */
/* RÄTSELBEREICH: Tag 3 */
/* ============================ */

#stein-raetsel {
  text-align: center;
  margin-top: 40px;
  z-index: auto; /* sicherstellen, dass Popup darüber liegt */
}
.stone-choice-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px auto;
  max-width: 300px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.7);
  border: 2px solid #ccc;
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.radio-option:hover {
  border-color: #7a5b36;
  background: rgba(255,255,255,0.9);
}

.radio-option input[type="radio"] {
  transform: scale(1.2);
  cursor: pointer;
}


/* Gedicht zentriert */
.centered-poem {
  text-align: center;
  font-style: italic;
  white-space: pre-line;
}

/* Bild der Steine */
.stone-image {
  display: block;
  max-width: 80%;
  margin: 20px auto;
}
/* ============================ */
/* RÄTSELBEREICH: Tag 4 */
/* ============================ */

#tannenglanz-raetsel {
  text-align: center;
  margin-top: 40px;
}

.tannenglanz-map {
  display: block;
  max-width: 85%;
  margin: 20px auto;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0,0,0,0.3);
}

.address-input-box {
  margin: 20px auto;
  padding: 20px;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 15px;
  box-shadow: 0 0 8px rgba(0,0,0,0.15);
}

.address-input-box label {
  display: block;
  margin-top: 10px;
  font-weight: bold;
}

.address-input-box input {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border-radius: 10px;
  border: 2px solid #ccc;
  font-size: 16px;
}

.address-input-box input:disabled {
  background: #e8e8e8;
}

.address-input-box button {
  margin-top: 15px;
  width: 100%;
  padding: 12px;
  background: #6b4f2f;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
}

.address-input-box button:hover {
  background: #836647;
}

/* ============================ */
/* RÄTSELBEREICH: Tag 5 */
/* ============================ */
/* Sprechblasen */
/* Sprechblasen mit links/rechts-Layout */
.speech-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 25px;
}
#tag5-raetsel h3 {
  text-align: center;
  line-height: 1.6;
  margin-bottom: 20px;
}

.speech-bubble {
  max-width: 300px;
  padding: 15px 20px;
  border-radius: 20px;
  font-family: Georgia, serif;
  color: #5a3e2b;
  position: relative;
  background: #f0f0f0;
}

.speech-bubble.left {
  align-self: flex-start;
}

.speech-bubble.right {
  align-self: flex-end;
  background: #d9f0d9;
}

/* Pfeile an den Sprechblasen */
.speech-bubble.left::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 20px;
  border-width: 10px 10px 0;
  border-style: solid;
  border-color: #f0f0f0 transparent transparent transparent;
}

.speech-bubble.right::after {
  content: "";
  position: absolute;
  bottom: -10px;
  right: 20px;
  border-width: 10px 10px 0;
  border-style: solid;
  border-color: #d9f0d9 transparent transparent transparent;
}

/* Eingabefelder als Kacheln in einer Zeile */
.solution-inputs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: nowrap; /* alle in einer Reihe */
}

.word-input {
  width: 120px;
  padding: 12px;
  border-radius: 12px;
  border: 2px solid #bdbdbd;
  font-size: 16px;
  text-align: center;
  font-family: Georgia, serif;
  transition: border-color 0.2s, background-color 0.2s;
}

.word-input:focus {
  outline: none;
  border-color: #2e7d32;
  background-color: #f5fff5;
}

/* Prüfen Button */
#submit-word {
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 8px;
  border: none;
  background-color: #2e7d32;
  color: white;
  cursor: pointer;
  transition: background-color 0.2s;
}

#submit-word:hover {
  background-color: #1b5e20;
}

/* ============================ */
/* RÄTSELBEREICH: Tag 6 */
/* ============================ */
/* Rätselbereich 6. Dezember – Bild + Frage */
#tannbaum-farm-raetsel {
  text-align: center; /* Zentriert alles innerhalb des Containers */
  margin-top: 40px;
}

#tannbaum-farm-raetsel h3 {
  margin-bottom: 20px; /* Abstand zwischen Frage und Bild */
  font-family: Georgia, serif;
  color: #5a3e2b;
  font-size: 1.5em;
}

.farm-img {
  max-width: 80%;
  height: auto;
  margin-bottom: 15px; /* Abstand zwischen Bild und Buttons */
}

.farm-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.farm-buttons button {
  padding: 10px 15px;
  font-size: 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  background-color: #6b4f2f;
  color: white;
}

.farm-buttons button:hover {
  background-color: #836647;
}

.solution-input {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.solution-input input {
  padding: 8px 12px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.solution-input button {
  padding: 8px 14px;
  font-size: 16px;
  border-radius: 6px;
  border: none;
  background-color: #2e7d32;
  color: white;
  cursor: pointer;
}

.solution-input button:hover {
  background-color: #1b5e20;
}
/* ============================ */
/* RÄTSELBEREICH: Tag 7 */
/* ============================ */
/* Introbereich */
.tunnel-intro {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  margin-bottom: 25px;
  flex-wrap: wrap; /* Für mobile Ansicht */
}

.intro-img {
  width: 180px;
  border-radius: 10px;
}

.intro-text {
  max-width: 400px;
}

/* Großes Bild */
.tunnel-img {
  width: 90%;
  max-width: 700px;
  display: block;
  margin: 0 auto 20px auto;
}

/* Auswahlbuttons */
.tunnel-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.tunnel-choice {
  padding: 12px 22px;
  font-size: 18px;
  border-radius: 10px;
  border: 2px solid #444;
  background-color: #ddd;
  cursor: pointer;
  transition: 0.2s;
}

.tunnel-choice:hover {
  background-color: #bbb;
}

/* ============================ */
/* RÄTSELBEREICH: Tag 8 */
/* ============================ */
#rohrnetz-raetsel {
  text-align: center;
  margin-top: 40px;
}

.rohrnetz-img {
  max-width: 80%;
  margin-bottom: 20px;
}

.rohrnetz-buttons {
  display: grid;
  grid-template-columns: repeat(3, 80px);
  gap: 15px;
  justify-content: center;
  margin-bottom: 20px;
}

.ventil-btn {
  padding: 15px;
  font-size: 18px;
  border-radius: 10px;
  border: 2px solid #555;
  background-color: #ddd;
  cursor: pointer;
  transition: 0.2s;
}

.ventil-btn.active {
  background-color: #4caf50;
  color: white;
  border-color: #2e7d32;
}

.check-btn {
  padding: 10px 18px;
  font-size: 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background-color: #2e7d32;
  color: white;
}

.check-btn:hover {
  background-color: #1b5e20;
}


/* ============================ */
/* RÄTSELBEREICH: Tag 9 */
/* ============================ */

#raetsel-tag9 {
    margin: 20px auto;
    max-width: 600px;
    text-align: center;
}

#raetsel-tag9 p {
    font-size: 18px;
    margin-bottom: 20px;
}

.tone-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.tone-buttons button {
    padding: 12px 20px;
    font-size: 18px;
    border-radius: 8px;
    background: #3d8af7;
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.tone-buttons button:hover {
    background: #1e73e5;
}
/* ============================ */
/* RÄTSELBEREICH: Tag 10 */
/* ============================ */
#raetsel-tag10 {
    margin: 20px auto;
    max-width: 600px;
    text-align: center;
}

#raetsel-tag10 h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.rezept-titel {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    text-decoration: underline;
}

#geheimrezept {
    background: #f3efe2;
    padding: 20px;
    border-radius: 8px;
    font-size: 18px;
    white-space: pre; /* Leerzeichen & Zeilenumbrüche bleiben exakt erhalten */
    border: 1px solid #ccc;
    margin: 0 auto 25px auto; /* Zentriert den Block */
    text-align: left; /* ► Text bleibt linksbündig */
    display: inline-block; /* Sorgt dafür, dass der Block sich an den Inhalt anpasst */
}

.zutaten-inputs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.zutaten-inputs input {
    padding: 8px 12px;
    font-size: 16px;
    border: 1px solid #aaa;
    border-radius: 6px;
    width: 70%;
}

.zutaten-inputs button {
    margin-top: 10px;
    padding: 10px 20px;
    font-size: 18px;
    background: #3d8af7;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.zutaten-inputs button:hover {
    background: #1e73e5;
}
/* ============================ */
/* RÄTSELBEREICH: Tag 11 */
/* ============================ */
#raetsel-tag11 {
    max-width: 700px;
    margin: 30px auto;
    text-align: center;
}

.falt-anleitung {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.falt-seite h3 {
    margin-bottom: 10px;
}

.falt-seite img {
    max-width: 300px;
    border: 2px solid #555;
    border-radius: 8px;
}
.download-container {
    margin: 20px 0;
}

#download-faltraetsel {
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 6px;
    border: none;
    background-color: #f57c00;
    color: white;
    cursor: pointer;
    transition: background 0.2s;
}

#download-faltraetsel:hover {
    background-color: #e65100;
}
.druck-hinweis {
    font-size: 16px;
    margin: 10px auto 25px;
    max-width: 600px;
    color: #444;
    background: #fff8e1;
    border-left: 4px solid #ffb300;
    padding: 10px 15px;
    border-radius: 6px;
}

.hinweis {
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
}

.frage {
    font-weight: bold;
    margin-bottom: 15px;
}

.eingabe-container input {
    padding: 10px;
    font-size: 16px;
    width: 60px;
    text-align: center;
    margin-right: 10px;
}

.eingabe-container button {
    padding: 10px 18px;
    font-size: 16px;
    border-radius: 6px;
    border: none;
    background-color: #2e7d32;
    color: white;
    cursor: pointer;
    transition: background 0.2s;
}

.eingabe-container button:hover {
    background-color: #1b5e20;
}
/* ============================ */
/* RÄTSELBEREICH: Tag 12 */
/* ============================ */

#raetsel-tag12 {
    margin: 30px auto;
    max-width: 700px;
    text-align: center;
}

#raetsel-tag12 h3 {
    margin-bottom: 20px;
    font-size: 22px;
}

.girlanden-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px; /* vorher 15px → mehr Platz in der Mitte */
    justify-items: center;
    margin-bottom: 20px;
}

.girlanden-grid img {
    width: 150%;
    max-width: 450px;
    border-radius: 10px;
}

.solution-input {
    margin-top: 15px;
}

.solution-input label {
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
}

.solution-input input {
    padding: 10px;
    font-size: 16px;
    width: 70%;
    max-width: 300px;
}

.solution-input button {
    margin-top: 12px;
    padding: 10px 20px;
    font-size: 16px;
    background: #3d8af7;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.solution-input button:hover {
    background: #1e73e5;
}

/* ============================ */
/* RÄTSELBEREICH: Tag 13 */
/* ============================ */
#raetsel-tag13 {
    margin: 30px auto;
    max-width: 600px;
    text-align: center;
}

#raetselCanvas {
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    cursor: pointer;
}

#raetsel-tag13 p {
    font-size: 14px;
    margin-bottom: 20px;
}

/* ============================ */
/* RÄTSELBEREICH: Tag 14 */
/* ============================ */

#hinweise-list {
    display: flex;
    flex-direction: column;
    align-items: center; /* Hinweis-Boxen zentrieren */
    gap: 10px; /* Abstand zwischen den Boxen */
    margin-bottom: 20px;
    padding: 0;
}

#hinweise-list li {
    width: 80%; /* Breite der Boxen */
    background-color: #f9e79f; /* hellgelb, hervorhebend */
    padding: 12px 15px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    font-size: 15px;
    color: #2c3e50;
    text-align: left; /* Text linksbündig */
    list-style-type: none; /* keine Bulletpoints */
    line-height: 1.4;
    transition: transform 0.2s;
}

#hinweise-list li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

#raetsel-tag14 p {
    text-align: center; /* Einleitung mittig */
}

#auswahl p {
	margin-bottom: 5px; 
} 
#submit-btn { 
	margin-top: 10px; 
	padding: 5px 15px; 
	font-size: 14px; 
	cursor: pointer; 
}

/* ============================ */
/* RÄTSELBEREICH: Tag 15 */
/* ============================ */
#raetsel-tag15 {
    margin: 30px auto;
    max-width: 700px;
    text-align: center;
    position: relative;
}

/* Schneekugel */
.schneekugel-container {
    margin: 20px auto;
    width: 200px;
    height: 200px;
    position: relative;
    z-index: 1;
}

#schneekugel-tag15 {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    transition: transform 0.2s ease;
    z-index: 1;
}

/* Buttons */
#raetsel-tag15 button {
    background-color: #ff5a5f;
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 10px 5px 0 5px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    z-index: 2; /* Button über der Schneekugel */
    position: relative;
}
#start-morse {
    margin-top: 40px !important;
}

#raetsel-tag15 button:hover {
    background-color: #ff8085;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.3);
}

/* Eingabefeld */
#raetsel-tag15 input[type="text"] {
    padding: 8px 12px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #ccc;
    width: 60%;
    max-width: 300px;
    margin-right: 5px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

/* Eingabe-Container */
#raetsel-tag15 .eingabe-loesung {
    margin-top: 20px;
}

/* Animationen größer unterscheiden */
@keyframes schuettern-kurz {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(20deg); }
    50% { transform: rotate(-20deg); }
    75% { transform: rotate(20deg); }
    100% { transform: rotate(0deg); }
}

@keyframes schuettern-lang {
    0% { transform: rotate(0deg); }
    20% { transform: rotate(40deg); }
    40% { transform: rotate(-40deg); }
    60% { transform: rotate(40deg); }
    80% { transform: rotate(-40deg); }
    100% { transform: rotate(0deg); }
}

.schuetteln-kurz {
    animation: schuettern-kurz 0.5s ease;
}

.schuetteln-lang {
    animation: schuettern-lang 1s ease;
}

/* ============================ */
/* RÄTSELBEREICH: Tag 16 */
/* ============================ */
#raetsel-tag16 {
    max-width: 900px;
    margin: 30px auto;
    text-align: center;
}

/* Raster */
#dorfplatz {
    display: grid;
    grid-template-columns: repeat(11, 50px);
    grid-template-rows: repeat(7, 50px);
    gap: 2px;
    margin: 20px auto;
    justify-content: center;
}

.feld {
    width: 50px;
    height: 50px;
    background: #f2f2f2;
    border: 1px solid #ccc;
    cursor: pointer;
}

/* Objekte */
.objekte {
    margin-top: 30px;
}

.objekt {
    display: inline-block;
    padding: 8px 12px;
    margin: 5px;
    background: #ff5a5f;
    color: white;
    border-radius: 8px;
    cursor: pointer;
}

.objekt.aktiv {
    background: #c7373b;
}

/* Platzierte Objekte */
.platziert {
    background: #ffd966;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Steuerung */
.steuerung {
    margin: 15px 0;
}

.steuerung button {
    margin: 5px;
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    background: #444;
    color: white;
    cursor: pointer;
}

/* Hinweise */
.hinweise {
    text-align: left;
    max-width: 700px;
    margin: 30px auto;
}
/* ============================ */
/* RÄTSEL TAG 17 */
/* ============================ */

#raetsel-tag17 {
    max-width: 700px;
    margin: 40px auto;
    text-align: center;
}

#raetsel-tag17 .raetsel-text {
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Bild */
.wurzel-bild-container {
    margin: 20px auto;
}

#wurzelbild {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

/* Eingabe */
#raetsel-tag17 .eingabe-loesung {
    margin-top: 25px;
}

#raetsel-tag17 input[type="text"] {
    padding: 10px 14px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #ccc;
    width: 200px;
    margin-right: 8px;
}

#raetsel-tag17 button {
    background-color: #ff5a5f;
    color: white;
    border: none;
    padding: 10px 18px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#raetsel-tag17 button:hover {
    background-color: #ff8085;
    transform: translateY(-2px);
}
/* ============================ */
/* RÄTSEL TAG 18 */
/* ============================ */

#raetsel-tag18 {
    max-width: 700px;
    margin: 40px auto;
    text-align: center;
}

#raetsel-tag18 h3 {
    margin-bottom: 20px;
}

.schluessel-bild-container {
    margin: 20px auto;
}

#schluesselbild {
    max-width: 260px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}

#raetsel-tag18 .frage-text {
    font-size: 18px;
    margin: 20px 0;
}

/* Eingabe */
#raetsel-tag18 .eingabe-loesung {
    margin-top: 20px;
}

#raetsel-tag18 input[type="text"] {
    padding: 10px 14px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #ccc;
    width: 220px;
    margin-right: 8px;
}

#raetsel-tag18 button {
    background-color: #ff5a5f;
    color: white;
    border: none;
    padding: 10px 18px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#raetsel-tag18 button:hover {
    background-color: #ff8085;
    transform: translateY(-2px);
}
/* BILD-ZOOM OVERLAY */
.bild-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    cursor: zoom-out;
}

.bild-overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

/* Bild klickbar machen */
#schluesselbild {
    cursor: zoom-in;
}

/* ============================ */
/* RÄTSEL TAG 19 */
/* ============================ */
/* Container bleibt 400x400, relativ für Kind-Positionierung */
/* Container */
#lock-puzzle {
  position: relative;
  width: 400px;
  height: 400px;
  margin: 0 auto;
  background: #fafafa;
  border: 2px solid #ccc;
  border-radius: 12px;

  /* global center variables (default: middle of container) */
  --center-x: 50%;
  --center-y: 50%;
}

/* Schlüsselloch defines the true center */
.keyhole {
  --offset-x: 0px;
  --offset-y: 0px;
  position: absolute;
  top: var(--center-y);
  left: var(--center-x);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #222 0 12px, #111 12px 36px);
  box-shadow: 0 0 0 2px #555 inset, 0 2px 6px rgba(0,0,0,0.4);
  transform: translate(calc(-50% + var(--offset-x)),
                       calc(-50% + var(--offset-y)));
}

/* Symbolring uses the same global center */
.symbols-ring {
  position: absolute;
  top: var(--center-y);
  left:var(--center-x);
  --offset-x: -25px;
  --offset-y: -25px;
  transform: translate(calc(-50% + var(--offset-x)),
                       calc(-50% + var(--offset-y)));
  width: 0;
  height: 0;
}

.symbol {
  position: absolute;
  top: 0;
  left: 0;
  --radius: 150px;
  --sector: 51.428571deg; /* 360/7 */
  transform:
    rotate(calc(var(--i) * var(--sector)))
    translateY(calc(-1 * var(--radius)))
    rotate(calc(-1 * var(--i) * var(--sector)));
  transform-origin: 0 0;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
}

.symbol svg {
  width: 100%;
  height: 100%;
  fill: #333;
}

/* Schlüssel also uses the same global center */
.key-wrapper {
  --offset-x: 0px;
  --offset-y: 0px;
  --key-length: 140px;
  --rotation: 0deg;
  position: absolute;
  top: var(--center-y);
  left: var(--center-x);
  width: var(--key-length);
  height: var(--key-length);
  transform: translate(calc(-50% + var(--offset-x)),
                       calc(-50% + var(--offset-y)))
             rotate(var(--rotation));
  transform-origin: 50% 50%;
}

.key {
  position: absolute;
  width: 6px;
  height: var(--key-length);
  left: 50%;
  top: 50%;
  background: linear-gradient(#777, #444);
  border-radius: 3px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.35);
  transform: translate(-50%, -50%);
  transform-origin: 50% 50%;
}
/* Neuer Punkt am oberen Ende 
.key::after {
  content: "";
  position: absolute;
  top: 0;             
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: #222;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
*/
/* Steuerung */
.controls {
  position: absolute;
  bottom: -70px; /* Abstand unterhalb des Containers */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
}

.controls button {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: #eee;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  font-size: 28px;
  cursor: pointer;
}
.controls button#reset-lock {
  width: auto;
  padding: 0 18px;
  border-radius: 28px;
  font-size: 16px;
  font-weight: 600;
  background: #f4eaea;
}

/* ============================ */
/* RÄTSEL TAG 20 */
/* ============================ */

#raetsel-tag20 {
    text-align: center;
}

#notizbuch-bereich {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

#notizbuch {
    display: flex;
    align-items: center;
    gap: 10px;
}

#notizbuch img {
    width: 400px;
    height: auto;
}

#notizbuch button {
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
}

#zusatz-notiz img {
    width: 400px;
    height: auto;
}

#eingabe-bereich {
    max-width: 400px;
    margin: 0 auto;
}

#eingabe-bereich textarea {
    width: 100%;
    height: 24px;          /* eine Zeile */
    line-height: 24px;
    margin-bottom: 4px;
    resize: none;
    font-size: 14px;
}


#submit-notiz {
    margin-top: 10px;
    padding: 6px 16px;
    cursor: pointer;
}

/* ============================ */
/* RÄTSEL TAG 21 – PUZZLE */
/* ============================ */

#raetsel-tag21 {
    text-align: center;
    width: 100%;
    height: 100vh;               /* ganzer Viewport für vertikale Zentrierung */
    display: flex;
    flex-direction: column;
    justify-content: center;      /* vertikal zentrieren */
    align-items: center;          /* horizontal zentrieren */
}
	#raetsel-tag21 h2 {
	margin-top: 100px;
}

/* Wrapper für Skalierung */
#puzzle-wrapper {
    overflow: hidden;
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

/* Puzzle Raster */
#puzzle-grid {
    display: grid;
    grid-template-columns: repeat(5, 240px);
    grid-template-rows: repeat(5, 159px);
    gap: 2px;
    transform-origin: top center;
}

/* Einzelnes Puzzlefeld */
.puzzle-feld {
    width: 240px;
    height: 159px;
    background-color: rgba(255, 255, 255, 0); /* transparent */
    border: 1px solid #444;
    cursor: pointer;
    box-sizing: border-box;
}

/* Alternativ: weißer Hintergrund */
.puzzle-feld.white-bg {
    background-color: #ffffff;
}

/* Aktives Feld */
.puzzle-feld.aktiv {
    outline: 3px solid gold;
    outline-offset: -3px;
}

/* Puzzle Bild */
.puzzle-feld img {
    width: 100%;
    height: 100%;
    display: block;
}

/* Steuerung */
#steuerung {
    margin-top: 8px;
}

#steuerung button {
    font-size: 18px;
    padding: 6px 12px;
    margin: 2px;
    cursor: pointer;
}

/* ============================ */
/* RESPONSIVE SKALIERUNG */
/* ============================ */

@media (max-width: 1250px) {
    #puzzle-grid {
        transform: scale(0.9);
    }
}

@media (max-width: 1100px) {
    #puzzle-grid {
        transform: scale(0.8);
    }
}

@media (max-width: 950px) {
    #puzzle-grid {
        transform: scale(0.7);
    }
}

@media (max-width: 800px) {
    #puzzle-grid {
        transform: scale(0.6);
    }
}

@media (max-width: 650px) {
    #puzzle-grid {
        transform: scale(0.5);
    }
}

/* ============================ */
/* RÄTSEL TAG 22  */
/* ============================ */
#baum-container {
    position: relative;
    display: block;
    width: fit-content;   /* oder feste Breite */
    margin: 0 auto;
}
#baum-container h2{
	text-align: center; 
}

#baum {
    width: 100%;
    height: auto;
}

/* Punkte */
.punkt {
    position: absolute;
    width: 24px;
    height: 24px;
    background: rgba(196, 30, 58, 0.7); /* warmes Rot */
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 10;
}

/* Deko */
.deko {
    width: 60px;
    cursor: pointer;
}

.deko.fixed {
    position: absolute;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.deko.auswahl {
    position: static;
}

.deko.selected {
    outline: 3px solid red;
    border-radius: 5px;
}

#deko-auswahl {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
}

/* X zum Entfernen */
#remove-x {
    font-size: 32px;
    cursor: pointer;
    padding: 5px;
    user-select: none;
}

#remove-x.selected {
    outline: 3px solid red;
    border-radius: 5px;
}
/* Check-Button */
#check-btn {
    display: block;
    margin: 30px auto 0;          /* zentriert + Abstand nach oben */
    padding: 12px 28px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;

    background-color: #a63c2b; /* warmes Rot, wie Weihnachtsdeko */
    color: #fff;
    border: none;
    border-radius: 8px;

    transition: background-color 0.2s ease, transform 0.1s ease;
}

/* ============================ */
/* RÄTSEL TAG 23 – REDUZIERT */
/* ============================ */

/* Wrapper alles zentrieren */
#tunnel-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 40px;
}

/* Tunnelbereich zentriert mit fixierter Breite */
#tunnel-view {
  width: 760px; /* kann angepasst werden */
  background: #5a5a5a;
  padding: 30px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-radius: 10px;
}

.slot {
  width: 200px;
  height: 300px;

  background: #777;
  object-fit: cover;
  cursor: pointer;

  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.slot:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 18px rgba(0,0,0,0.7);
}


#controls {
  text-align: center;
  margin-top: 30px;
}

#controls button {
  background: #333;
  color: #eee;

  border: none;
  border-radius: 6px;

  padding: 10px 22px;
  margin: 0 12px;

  font-size: 16px;
  cursor: pointer;

  box-shadow: 0 3px 6px rgba(0,0,0,0.6);
  transition: background 0.2s ease, transform 0.2s ease;
}

#controls button:hover {
  background: #444;
  transform: translateY(-1px);
}


#backBtn {
  position: relative;
}

#backBtn::after {
  content: attr(data-tooltip);
  position: absolute;

  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);

  max-width: 260px;
  background: rgba(30,30,30,0.95);
  color: #eee;

  font-size: 13px;
  line-height: 1.4;
  padding: 8px 10px;

  border-radius: 6px;
  text-align: center;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 50;
}

#backBtn:hover::after {
  opacity: 1;
}

/* ============================ */
/* Karten Popup */
/* ============================ */

#mapPopup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  background: #111;
  padding: 15px;

  border-radius: 8px;
  box-shadow: 0 0 40px rgba(0,0,0,0.8);
  z-index: 2000;
}

#mapPopup img {
  max-width: 600px;
  max-height: 80vh;
  display: block;
}

#closeMapBtn {
  position: absolute;
  top: 6px;
  right: 6px;

  background: #222;
  color: #fff;
  border: none;

  font-size: 16px;
  padding: 4px 7px;
  cursor: pointer;
  border-radius: 4px;
}

#closeMapBtn:hover {
  background: #444;
}

/* ============================ */
/* Utility */
/* ============================ */

.hidden {
  display: none;
}

/* ============================ */
/* Zoom Animation */
/* ============================ */

.zoom-in {
  animation: zoomIn 0.35s forwards;
}

.zoom-out {
  animation: zoomOut 0.35s forwards;
}

@keyframes zoomIn {
  from { transform: scale(1); opacity: 1; }
  to   { transform: scale(1.15); opacity: 0; }
}

@keyframes zoomOut {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* ============================ */
/* RÄTSEL TAG 24  */
/* ============================ */
#raetsel-tag24 {
    text-align: center;
}

#raetsel-tag24 h2 {
    margin-bottom: 25px;
}

/* Bilder oben */
#bilder-pool {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.erinnerung {
    width: 120px;
    height: auto;
    cursor: pointer;
    border: 2px solid transparent;
}

.erinnerung.aktiv {
    border-color: #d33;
}

/* Slots unten */
#slots_24-container {
    display: grid;
    grid-template-columns: repeat(5, 120px);
    gap: 15px;
    justify-content: center;
}

.slot_24 {
    width: 120px;
    height: 80px;
    border: 2px dashed #aaa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slot_24 img {
    width: 100%;
    height: auto;
}
#hinweis-btn {
    margin-top: 25px;
    padding: 6px 14px;
    font-size: 14px;
    cursor: pointer;
}

#hinweis-text {
    margin-top: 15px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-size: 14px;
    background: #f5f5f5;
    padding: 10px 15px;
    border-radius: 6px;
}

.versteckt {
    display: none;
}
