:root {
--poppy-red:       #D2262E;
--marigold-orange: #E06B21;  
--golden-yellow:   #EAAE2E;  
--peony-coral:     #E4635C;  
--dahlia-pink:     #D8709C;  
--sage-green:      #7A8342;  
--sage-green-opa:      #e06a2197;
--cornflower-blue: #33589E;
--warm-cream:      #FBF2E3;  
--sand:             #F0DFC7; 
--espresso:         #33281E;  

  --font-h1: "Sacramento", "DM Serif Display", serif;
  --font-body: "Inter", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--espresso);
  background: var(--warm-cream);
  overflow-x: hidden;
}

h1 {
  font-family: var(--font-h1);
  color: var(--poppy-red);
} 

/* ---------- Language switcher ---------- */
.lang-switch {
  position: fixed;
  top: 14px;
  right: 16px;
  z-index: 50;
  background: rgba(251, 243, 230, 0.9);
  border-radius: 999px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  box-shadow: 0 2px 8px rgba(30, 42, 68, 0.12);
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: var(--sage-green);
  opacity: 0.5;
  padding: 2px 4px;
}

.lang-btn.active { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.lang-sep { opacity: 0.4; }

/* ---------- Hero---------- */
.hero { 
  position: relative;
  z-index: 2;
  margin: 0 auto;
 }

 .hero-img { 
  width: 100%;
  height: auto;
  display: block;
 }

 /* ---------- Nav ---------- */
.nav {
  background: var(--warm-cream);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(16px, 4vw, 42px);
  padding: 2rem 0 0 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

a { 
      text-decoration: none;   
      color: var(--espresso);
      font-weight: 700;
}

a:visited {
  color: inherit;  
  color: var(--espresso);
}

a:hover { 
      color: var(--poppy-red); 
}

.link {
      text-decoration: underline;
}

/* Different Sections */
#section,  #anreise, #dresscodeundgeschenke, #kontakt {
      display: grid;
      grid-template-columns: 1fr;
      justify-items: center;
      align-items: center;
      text-align: center;
      margin: 5rem 0 5rem 0;
}

#section-text {
width: 80%;
}

.little_title {
      font-weight: bold;
      color: var(--sage-green);
}

/* Section - Eventdetails */
.eventdetails { 
  padding: 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;   
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;         
 }

.details-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  width: 85%; 
  justify-items: center; 
}

.event_row, .program_row {
  display: flex;
  justify-content: flex-start;
}

.event_row dt, .program_row dt {
  color: var(--poppy-red);
  font-weight: 600;
  margin-bottom: 0;
  min-width: 100px; 
  text-align: left;
}

 .polaroid-img { 
      width: 100%;
      max-width: 420px;
      padding: 1rem 1rem 3rem; 
      margin-top: 5rem;   
      background-color: var(--golden-yellow);
      transform: rotate(-2deg);
      box-shadow: 0 10px 24px rgba(0,0,0,0.18);
 }

  .polaroid-img-2 { 
      width: 100%;
      max-width: 420px;
      padding: 1rem 1rem 3rem;
      margin-top: 5rem;    
      background-color: var(--sage-green-opa);
      transform: rotate(2deg);
      box-shadow: 0 10px 24px rgba(0,0,0,0.18);
 }

/* Section - Unsere Location */
.ziegelhütte-img { 
      width: 50%;
      border-radius: 5px;
      box-shadow: 0 10px 24px rgba(0,0,0,0.18);
      margin: 5rem;
 }

 /* Section - Anreise */
.anreise {
      background-color: var(--sand);
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 3rem;
}

.anreise-list {
      display: grid;
      grid-template-columns: auto 1fr;
      column-gap: 1rem;
      row-gap: .25rem;
}

.übernachten {
      margin-top: 5rem;
}

 /* Isenthal Image */
.isenthal {
      width: 50%;
      border-radius: 5px;
      box-shadow: 0 10px 24px rgba(0,0,0,0.18);
      margin: 5rem;
 }

 /* Contact */
.contacts {
  display: flex;
  justify-content: center;
  gap: 2rem;          /* space between the three contacts */
  flex-wrap: wrap;    /* lets them stack on narrow screens */
}

.contacts span {
  display: block;
}

 /* Flowers */
 #flower-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  pointer-events: none; /* never blocks clicks or text selection */
  z-index: 1;
}

.deco-flower {
  position: absolute;
  height: auto;
  user-select: none;
}

/* ---------- Responsive Adjustments ---------- */
@media (max-width: 1024px) {
  .anreise {
        flex-direction: column;
        align-items: center;
        min-height: 0;
        padding: 3rem 1.5rem;
  }

  .location {
        min-height: 0;
        padding: 3rem 1.5rem;
  }

  .eventdetails {
        padding: 3rem 1.5rem;
  }

  .anreise #section-text {
        padding: 0;
  }

  .ziegelhütte-img {
        width: 90%;
        max-width: 420px;
        margin: 2rem auto;
        display: block;
  }
}

@media (max-width: 480px) {
  .lang-switch {
        top: 8px;
        right: 8px;
        padding: 4px 8px;
        font-size: 0.7rem;
        gap: 4px;
  }

  .nav {
        gap: 14px;
        padding: 14px 12px;
        font-size: 0.9rem;
  }

  .eventdetails,
  .anreise,
  .location {
        padding: 2.5rem 1.25rem;
  }

  .polaroid-img,  .polaroid-img-2 {
        padding: 0.75rem 0.75rem 2rem;
        width: 300px;
  }

  .event_row dt,
  .program_row dt {
        min-width: 110px;
  }

  #map {
        height: 260px;
  }
}