body {
      height: auto;
      line-height: 1.6;
      margin: 0;
      background-color: rgb(253, 253, 213);
    }
    main {
      height: auto;
      margin: 0 auto;
      width: 90%;
      background: white;
      padding: 20px;
      border-radius: 8px;
    }

p {
    font-family: "Comic Neue", Arial, serif;
    font-size: 20px;
}
html {
  scroll-behavior: smooth;
}
.infotext {
  text-align: center;
  object-fit: contain;
  font-family: "Comic Neue", Arial, serif;
  font-size: 20px;
}

.info-liste {
  align-items: left;
  text-align: left;
  object-fit: contain;
  font-family: "Comic Neue", Arial, serif;
  font-size: 20px;
}
.info-liste li {
  text-align: left;
  list-style-position: inside;
}
.info-header {
  text-align: center;
  font-family: "Comic Neue", Arial, serif;
  font-size: 22px;
  font-weight: bold;
  margin-top: 20px;
  margin-bottom: 10px;
}

article {
  margin: 20px auto;    /* Center horizontally and add vertical space */
  padding: 10px;
  width: 70%;           /* Or 100% for full width */
  align-items: center;
  display: flex;        /* If you want content inside to be flex-aligned */
  flex-direction: column; /* Stack children vertically */
}

h1 {
      text-align: center;
      color: #333;
      font-size: 3em;
      margin-bottom: 10px;
}

h2 {
      color: #333;
}

nav {
  background: #ffa19d;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  padding: 12px 24px;
  margin: 20px auto;
  width: 90%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  font-family: "Merriweather", cursive;
}

.nav-home {
  flex: 2;
  text-align: center;
  font-size: 2em;
  font-weight: bold;
}
.nav-slot {
  flex: 1;
}
.nav-slot, .nav-home {
  text-decoration: none;
  color: #fff;
  background: #ff6f61;
  padding: 8px 18px;
  border-radius: 6px;
  margin: 0 6px;
  font-weight: bold;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.nav-slot:hover, .nav-home:hover {
  background: #ff3b2e;
  transform: translateY(-2px) scale(1.05);
}

article {
  margin-bottom: 20px;
  padding: 10px;
}


    h1, h2 {
  font-family: 'Kalam', Arial, sans-serif;
}
.timer-label {
  font-size: 30px;
}
.timer-value {
  font-size: 50px;
}

#countdown-timer {
    font-size: 2em;
    text-align: center;
    margin-top: 20px;
    color: #333;
    background-color: rgb(252, 252, 252);
    border: gray 15px solid;
    width: 35%;
    border-radius: 10px;
    margin: 50px auto;
    justify-content: center;
    font-family: "Orbitron", Arial, sans-serif;
    display: block;
    margin: 50px auto;
}

.steckbrief-card {
  background: white;
  padding: 20px;
  display: flex;
  flex: 1;
  justify-content: space-between;
  gap: 20px;
  min-height: unset;
  box-shadow: none;
  font-family: 'Merriweather', cursive;
  margin-bottom: 20px;
  align-items: center;
}

.steckbrief-image {
  flex: 1;
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}
#map {
  width: 85%;
  margin: 0 auto;
  margin-bottom: 20px;
  @media (max-width: 700px) {
  #map {
    width: 100%;
  }
}
}

.notizzettel {
  background: #fffbe6;
  border: 2px dashed #d4b26a;
  padding: 2rem;
  max-width: 650px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transform: rotate(-1deg);
  position: relative;
}

.notizzettel::before {
  content: "";
  width: 60px;
  height: 60px;
  background: url('https://upload.wikimedia.org/wikipedia/commons/thumb/4/4a/Red_pushpin.svg/64px-Red_pushpin.svg.png') no-repeat center center;
  background-size: contain;
  position: absolute;
  top: -30px;
  left: calc(50% - 30px);
}

.malin {
    height: auto;
    width: 400px;
}
@media (max-width: 700px) {
  .steckbrief-card {
    flex-direction: column;
    gap: 10px;
    padding: 10px;
  }
  .notizzettel {
    max-width: 100%;
    padding: 1rem;
  }
  .malin,
  .steckbrief-image {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: block;
  }
  #countdown-timer {
    width: 98%;
    font-size: 1em;
    padding: 10px 0;
    border-width: 6px;
    margin: 30px auto;
  }
  .website_arbeit img {
    width: 250%;
    height: auto;
  }
  .website_arbeit {
    width: 100%;
    height: auto;
    position: relative;
  }

  .website_arbeit h3 {
    font-size: clamp(1em, 5vw, 2em);
    padding: 5px 10px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 98vw;
    width: 98vw;
    box-sizing: border-box;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
  }
  nav {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 6px;
    padding: 6px 2px;
    width: 100%;
    overflow-x: auto;
  }
  .nav-slot, .nav-home {
    font-size: clamp(0.7em, 3vw, 1em);
    padding: 6px 8px;
    margin: 0 2px;
    min-width: 0;
    width: auto;
    flex-shrink: 1;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
  }
  article {
    font-size: 0.95em; /* or try 0.9em or 14px for even smaller text */
  }
}

.notebook-container {
  position: relative;
  width: 90%;           /* Match your main/body width */
  min-height: 8s00px;
  margin: 100px auto 0 auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.notebook {
  width: 100%;          /* Fill the container */
  height: auto;
  background: #fffbe6;
  border: 6px solid #d4b26a;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12), inset 8px 0 16px -8px #e0c97f;
  padding: 48px 32px 32px 32px;
  min-height: 800px;
  position: relative;
  z-index: 1;
}

.notebook-tabs {
  position: absolute;
  top: -54px;      /* Increase this value if you need more space from the nav */
  left: 32px;
  display: flex;
  gap: 8px;
  z-index: 10;
  overflow-x: auto;
  flex-wrap: nowrap;
  scrollbar-width: thin;
}

.bookmark {
  border: none;
  border-radius: 8px 8px 0 0;
  padding: 10px 18px 8px 18px;
  font-family: 'Kalam', Arial, sans-serif;
  font-size: clamp(0.7em, 2vw, 1.1em);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  position: relative;
  top: 0;
  transition: filter 0.2s, top 0.2s;
  outline: none;
  opacity: 0.92;
  border-bottom: 3px solid #d4b26a;
  min-width: 60px;
  max-width: 30vw;
  /* Allow text to wrap */
  white-space: normal;
  text-overflow: unset;
  overflow: visible;
  flex-shrink: 1;
  text-align: center;
  line-height: 1.2;
  word-break: break-word;
}
.bookmark.active {
  filter: brightness(1.1) drop-shadow(0 2px 8px rgba(0,0,0,0.10));
  z-index: 3;
  opacity: 1;
  top: 0;
  border-bottom: 6px solid #fffbe6;
}

.notebook-page {
  width: 100%;
  min-height: 320px;
  border: none;
  background: transparent;
  font-family: 'Comic Neue', 'Kalam', Arial, sans-serif;
  font-size: 1.2em;
  resize: vertical;
  outline: none;
  color: #333;
  line-height: 1.7;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 24px;
  z-index: 999;
  background: #ffd166;
  color: #333;
  border: none;
  border-radius: 50px;
  padding: 12px 20px;
  font-size: 1.3em;
  font-family: 'Kalam', Arial, sans-serif;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
#back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

.danksagung {
  background: #fff0f0;
  border: 2px solid #ffb3b3;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.danksagung img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}

.danksagung p {
  font-size: 1.1em;
  line-height: 1.6;
  color: #333;
  text-align: center;
  margin-top: 15px;
}

.niklas_malin_bild {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 10px;
  margin-top: 15px;
}

@media (max-width: 1100px) {
  .notebook-container {
    width: 98%;
    max-width: 100vw;
    margin: 20px auto 0 auto;
    padding: 0;
  }
  .notebook {
    padding: 38px 2vw 18px 2vw;
    min-height: 350px;
    border-width: 4px;
  }
  .notebook-tabs {
    left: 2vw;
    top: -36px; /* slightly higher for smaller tabs */
    gap: 2px;
  }
  .bookmark {
    font-size: clamp(0.6em, 2.5vw, 0.85em); /* shrink more */
    padding: 6px 2vw 4px 2vw;               /* less padding */
    min-width: 28px;
    max-width: 22vw;
  }
}
@media (max-width: 700px) {
  .notebook-container {
    width: 950vw;
    max-width: 95vw;
    margin: 110px 0 0 0; /* Increase top margin to make space for bookmarks and nav */
    padding: 0;
  }
  .notebook {
    padding: 24px 2vw 12px 2vw;
    min-height: 180px;
    border-width: 3px;
  }
  .notebook-tabs {
    left: 2vw;
    top: -59px; /* Bookmarks stay above the notebook */
    gap: 4px;
  }
  .bookmark {
    font-size: clamp(0.7em, 2vw, 1em);
    padding: 8px 4vw 6px 4vw;
    min-width: 40px;
    max-width: 38vw;
  }
  .infotext,
  .info-header,
  .info-liste {
    font-size: 12px;
  }
  main {
    padding: 8px 2vw;
    width: 95vw;
    box-sizing: border-box;
  }
}

.vermissen-liste {
  margin: 1em 0 2em 0;
  padding-left: 1.2em;
  font-size: 1.1em;
  line-height: 1.6;
}
.vermissen-liste li {
  margin-bottom: 0.4em;
}

/* Optional: horizontal scroll for bookmarks if too many */
.notebook-tabs {
  overflow-x: auto;
  flex-wrap: nowrap;
  scrollbar-width: thin;
}

/* Gallery grid */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 16px 0;
}

/* Responsive columns */

@media (max-width: 900px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}
/*
@media (max-width: 600px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}
*/

/* Gallery images */
.gallery-img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}
.gallery-img:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  inset: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}
.modal-content {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 16px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.3);
}
.close {
  position: absolute;
  top: 32px;
  right: 48px;
  color: #fff;
  font-size: 2.5em;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
}

/* Pfeile */
.arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 2;
  font-size: 48px; line-height: 1;
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 0; color: #fff; background: rgba(0,0,0,.4);
  cursor: pointer;
}
.arrow.left  { left: 20px; }
.arrow.right { right: 20px; }

/* Schließen-Button */
.close {
  position: absolute; top: 16px; right: 20px;
  z-index: 3;
  font-size: 36px; line-height: 1;
  width: 44px; height: 44px; border-radius: 50%;
  border: 0; color: #fff; background: rgba(0,0,0,.4);
  cursor: pointer;
}

.arrow:focus, .close:focus { outline: 2px solid #fff; outline-offset: 2px; }


/* Sanfter Fade fürs große Bild im Modal */
#modal-img {
  max-width:90vw; max-height:90vh;
  display: block;
  z-index: 1;
  opacity: 1;
  transition: opacity 250ms ease-in-out;
  will-change: opacity;
}

/* Während des Bildwechsels auf 0 ausblenden */
#modal-img.fading {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  #modal-img { transition: none; }
}

.inhalt_verzeichnis ol {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.inhalt_verzeichnis li {
  background: #ffd166;
  border-radius: 8px;
  padding: 10px 18px;
  font-family: 'Kalam', Arial, sans-serif;
  font-size: 1.05em;
  color: #333;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.inhalt_verzeichnis li:hover {
  background: #ffe9a0;
  transform: scale(1.03);
  color: #118ab2;
  text-decoration: underline;
}

.inhalt_verzeichnis a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.shock-entry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 24px 0;
}

.shock-entry-box {
  background: #fffbe6;
  border: 2px solid #d4b26a;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  padding: 18px 14px;
  font-family: 'Merriweather', cursive;
  font-size: 1.05em;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 120px;
}

/* Responsive: 2 per row on tablet, 1 per row on mobile */
@media (max-width: 900px) {
  .shock-entry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .shock-entry-grid {
    grid-template-columns: 1fr;
  }
  .shock-entry-box {
    font-size: 0.95em;
    padding: 12px 6px;
  }
}
.guestbook-bar {
  background-color: rgb(219, 143, 255);
}