@import url('https://fonts.googleapis.com/css2?family=Boston+Angel&family=Birthstone&display=swap');

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Boston Angel", cursive;
  font-style: normal;
  font-size: 18px;
  /* Hintergrundbild für alle Seiten */
  background: #f4f4f4 url("../img/hintergrund.jpg") no-repeat center center fixed;
  background-size: cover;
}

/* Fixed top navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  background-color: #00340c;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  z-index: 1100;
}

/* Page content spacing (below fixed navbar) */
main, .accordion, .form-section {
  margin-top: 64px; /* equal to nav height */
  padding-top: 0; /* h1 sits directly under navbar */
}

/* Headings */
main h1,
main h2 {
  margin-top: 0;
}

main h1 {
  margin-bottom: 1.5rem;
}

h1 {
  font-size: 3rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

h2 {
  font-size: 2.5rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Responsive headings for mobile */
@media (max-width: 768px) {
  body {
    font-size: 20px;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 2rem;
  }
  
  /* Use Birthstone on mobile */
  body {
    font-family: "Birthstone", cursive;
    font-style: normal;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }
  h2 {
    font-size: 1.25rem;
  }
}


#pinForm {
  background: #00340c;
  color: #ffffff;
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  display: inline-block;
  min-width: 260px;
}
#pinForm label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}
#pinForm input[type="password"] {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
#pinForm button {
  padding: 8px 12px;
  border: none;
  background: #850101;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
}
#pinForm button:hover {
  background: #007914;
}

.hidden {
  display: none;
}

/* Navbar responsive menu (mobile) */
@media (max-width: 800px) {
  nav {
    flex-direction: column;
  }
  .navbar .navbar-collapse {
    background: #0b3d2e;
    padding: 12px 18px;
  }
  .navbar .navbar-nav {
    width: 100%;
  }
  .navbar .navbar-nav .nav-link {
    color: #ffffff !important;
    padding: 10px 0;
  }
}

/* Full-page overlay with background image */
#siteOverlay {
  position: fixed;
  inset: 0;
  background-image: url("../img/overlay.png");
  background-size: cover;
  background-position: center center;
  /* hide by default to avoid flash before JS runs; shown by JS with display:flex */
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  transition: transform 0.7s ease, opacity 0.4s ease;
  transform: translateX(0);
}

/* when overlay is dismissed (slide out to right) */
.overlay-slide-out {
  transform: translateX(110%);
  opacity: 0;
}

.overlay-inner {
  max-width: 360px;
  width: 90%;
  background: rgba(255, 255, 255, 0.85);
  color: #00340c;
  border-radius: 8px;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
}

#pinInput {
  font-size: 1.125rem;
  letter-spacing: 0.2rem;
}

/* Landscape overlay on wide screens */
@media (min-aspect-ratio: 1/1) {
  #siteOverlay {
    background-image: url("../img/overlay_quer.png");
    background-size: cover;
    background-position: center center;
  }
}
/* Hero image (discoerdbeere) */
.hero-image {
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 2rem;
}
.hero-image img.discoerdbeere {
  width: 70px; /* briefmarkengroß */
  height: auto;
  display: inline-block;
  vertical-align: middle;
}

/* einfacher Funkel-Effekt mittels CSS-Overlay */
.sparkle {
  position: relative;
  display: inline-block;
}
.sparkle::after {
  content: "";
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  pointer-events: none;
  filter: blur(0.6px);
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.95) 0, rgba(255,255,255,0) 22%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.9) 0, rgba(255,255,255,0) 18%);
  opacity: 0;
  animation: sparkle 2.8s linear infinite;
}

/* Accordion styles for FAQ */
.accordion {
  /* ensure accordion-scoped CSS variables override Bootstrap's defaults */
  --bs-accordion-btn-focus-border-color: #9fe6c7;
  --bs-accordion-btn-bg: #ffffff;
  --bs-accordion-btn-active-bg: #116a44;
  --bs-accordion-btn-color: #000000;
  --bs-accordion-icon-color: #000000;
  --bs-accordion-icon-active-color: #ffffff;
  max-width: 800px;
  margin: 1.5rem auto;
  text-align: left;
}
.accordion-item + .accordion-item { margin-top: 8px; }

/* Ensure the accordion button focus uses our light-green color */
.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem var(--bs-accordion-btn-focus-border-color);
  border-color: var(--bs-accordion-btn-focus-border-color);
}
/* Use more specific selectors (scoped under .accordion) to override Bootstrap without !important */
.accordion .accordion-button {
  background-color: var(--bs-accordion-btn-bg);
  color: var(--bs-accordion-btn-color);
  border: 1px solid rgba(0,0,0,0.06);
}
.accordion .accordion-button:not(.collapsed) {
  background-color: var(--bs-accordion-btn-active-bg);
  color: #ffffff;
  box-shadow: none;
}
.accordion .accordion-button:hover {
  background-color: #0b3d2e;
  color: #ffffff;
}
.accordion .accordion-button::after {
  /* ensure chevron color contrasts when using dark background */
  filter: invert(1);
}

/* Responsive map embed */
.map-responsive { position: relative; overflow: hidden; padding-bottom: 56.25%; height: 0; }
.map-responsive iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.accordion-panel p { margin: 12px 0; }

@keyframes sparkle {
  0%   { opacity: 0; transform: scale(0.95); }
  8%   { opacity: 1; transform: scale(1.02); }
  18%  { opacity: 0; transform: scale(0.98); }
  60%  { opacity: 0; }
  100% { opacity: 0; }
}

/* Strong override to ensure our custom dark green navbar wins over Bootstrap defaults */
nav.navbar, .navbar.bg-custom {
  background-color: #00340c !important;
  background-image: none !important;
}
.navbar-bg-collapse, .navbar.bg-custom .navbar-nav {
  background-color: #00340c !important;
}
.navbar.bg-custom .nav-link, .navbar.bg-custom .navbar-brand {
  color: #ffffff !important;
}

/* Disabled nav links (greyed out and not clickable) */
.nav-link.disabled, .nav-link[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
  color: #bdbdbd !important;
  cursor: default;
}

/* Ablauf: gezeichneter Pfad */
.timeline-wrapper {
  position: relative;
  width: min(520px, 92vw);
  height: clamp(640px, 120vh, 980px);
  margin: 0 auto 90px;
}
.timeline-canvas {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.journey-path {
  fill: none;
  stroke: url(#pathGradient);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  filter: url(#glow);
  animation: drawPath 3.5s ease-in-out forwards;
}
@keyframes drawPath {
  to { stroke-dashoffset: 0; }
}
@media (max-width: 540px) {
  .timeline-wrapper { height: clamp(520px, 140vh, 820px); }
  .journey-path { stroke-width: 6; }
}

/* DIY / Briefpapier-Style für Anreise-Seite */

/* Polaroid-Effekt für Content-Bereiche */
.polaroid-section {
  background: #fefefe;
  padding: 2rem 2.5rem;
  margin: 2rem auto;
  max-width: 700px;
  box-shadow: 
    0 4px 6px rgba(0,0,0,0.1),
    0 1px 3px rgba(0,0,0,0.08);
  border: 1px solid #e8e8e8;
  position: relative;
  transform: rotate(-0.5deg);
}

.polaroid-section:nth-child(even) {
  transform: rotate(0.5deg);
}

.polaroid-section h2 {
  margin-bottom: 1rem;
  color: #00340c;
}

/* Handgezeichnete Trennlinie */
.divider-sketch {
  margin: 2rem auto;
  max-width: 600px;
  height: 3px;
  background: none;
  border: none;
  position: relative;
  overflow: visible;
}

.divider-sketch::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 3px,
    #850101 3px,
    #850101 8px,
    transparent 8px,
    transparent 12px
  );
  opacity: 0.6;
  transform: scaleY(1.5);
  filter: blur(0.3px);
}

/* Washi Tape für Google Maps */
.map-wrapper {
  position: relative;
  max-width: 700px;
  margin: 2rem auto;
}

.washi-tape {
  position: relative;
  background: #fefefe;
  padding: 1.5rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  transform: rotate(-1deg);
}

.washi-tape::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 10%;
  width: 25%;
  height: 25px;
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 182, 193, 0.7),
    rgba(255, 182, 193, 0.7) 10px,
    rgba(255, 192, 203, 0.7) 10px,
    rgba(255, 192, 203, 0.7) 20px
  );
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transform: rotate(-5deg);
}

.washi-tape::after {
  content: '';
  position: absolute;
  top: -12px;
  right: 15%;
  width: 30%;
  height: 25px;
  background: repeating-linear-gradient(
    -45deg,
    rgba(144, 238, 144, 0.6),
    rgba(144, 238, 144, 0.6) 10px,
    rgba(152, 251, 152, 0.6) 10px,
    rgba(152, 251, 152, 0.6) 20px
  );
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transform: rotate(3deg);
}

/* Newsticker / Blog Section */
.news-section {
  max-width: 700px;
  margin: 4rem auto 2rem;
  padding: 0 1rem;
}

.news-section h2 {
  font-size: 2.5rem;
  color: #00340c;
  margin-bottom: 2rem;
  text-align: center;
}

.news-item {
  background: #fefefe;
  border-left: 4px solid #850101;
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 
    0 2px 4px rgba(0,0,0,0.08),
    0 4px 8px rgba(0,0,0,0.05);
  border-radius: 4px;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-item:hover {
  transform: translateX(4px);
  box-shadow: 
    0 4px 8px rgba(0,0,0,0.12),
    0 6px 12px rgba(0,0,0,0.08);
}

.news-date {
  font-size: 0.9rem;
  color: #850101;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-content h3 {
  font-size: 1.5rem;
  color: #00340c;
  margin-bottom: 0.5rem;
  margin-top: 0;
}

.news-content p {
  font-size: 1.1rem;
  color: #333;
  margin: 0;
  line-height: 1.6;
}

.news-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  margin-top: 1rem;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-image:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 3000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
  animation: zoomIn 0.3s ease;
}

.lightbox-content img {
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  z-index: 3001;
  transition: transform 0.2s ease;
}

.lightbox-close:hover {
  transform: scale(1.2);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .news-section h2 {
    font-size: 2rem;
  }
  
  .news-item {
    padding: 1.2rem 1.5rem;
  }
  
  .news-content h3 {
    font-size: 1.3rem;
  }
  
  .news-content p {
    font-size: 1rem;
  }
}
