* {
  box-sizing: border-box;
}  
  
:root {
  --brown: #5A3A29;
  --cream: #F5F1E8;
  --paper: #FBF8F2;
  --sage: #9CAF88;
  --bordeaux: #6B1F2A;
  --gold: #C6A75E;
  --blue: #869ADC
}

@font-face {
  font-family: 'Minnadrop';
  src: url('fonts/Minnadrop-Regular.otf') format('opentype');
}

@font-face {
  font-family: 'Quicksand';
  src: url('fonts/Quicksand-VariableFont_wght.ttf') format('truetype');
  font-weight: 300 700; /* Variable Range */
  font-style: normal;
}

body {
  margin: 0;
  background-color: var(--cream);
}

.content {
  display: flex;
  justify-content: center;
}

/* TYPO */
h1 {
  color: var(--bordeaux);
  font-family: 'Minnadrop', cursive;
  font-size: 4.2rem;
  text-align: center;
  margin: 0;
}

h2 {
  font-family: 'Minnadrop', cursive;
  font-size: 3rem;
  color: var(--bordeaux);
  margin-bottom: 30px;
  text-align: center;
}

h3 {
  font-family: 'Minnadrop', cursive;
  color: var(--bordeaux);
  font-size: 1.85rem;

}

p {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.2rem;
  line-height: 1.2;
  color: var(--brown);
}

h2:after{
  content: "";
  display: block;
  width: 80%;
  height: 2px;
  margin: 12px auto 0 auto;
  background: linear-gradient(
    90deg,
    transparent,
    var(--gold),
    transparent
  );
}

/* ==========================
   Umschlag
========================== */
.hero {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 5;
  transition: opacity 0.8s ease, transform 1s ease;
}

.hero div{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px; /* Abstand zwischen Umschlag und Text */
}

.hero p{
  animation: float 3s ease-in-out infinite;
}

/* Hero einklappen 
.hero {
  transition: 
    min-height 1.2s ease,
    opacity 0.8s ease;
}

.hero.hidden {
  opacity: 0;
  transform: translateY(-80px);
  pointer-events: none;
  position: absolute;
  width: 100%;
}*/
  
/* Umschlag */
.envelope {
  width: 650px;
  max-width: 100%;
  cursor: pointer;
  animation: float 3s ease-in-out infinite;
  transition: opacity 0.6s ease;
  z-index: 3;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

.envelope.fade {
  transform: translateY(-120px) scale(0.9);
  opacity: 0;
  filter: blur(3px);
  transition: 
    transform 1.8s cubic-bezier(.65,0,.35,1),
    opacity 1s ease,
    filter 1s ease;
}

/* ==========================
   DOPPELTER RAHMEN
========================== */

/* Außen Bordeaux */
.letter-frame {
  padding: 10px;
  background: var(--bordeaux);
  border-radius: 500px 500px 10px 10px;

  box-shadow:
    0 60px 120px rgba(0,0,0,0.18),
    0 25px 50px rgba(0,0,0,0.10);

  transform: translateY(200px) scale(0.92);
  transition: transform 1.4s cubic-bezier(.77,0,.18,1),
              opacity 0.8s ease;
}
  
.letter-frame.compact {
  margin-top: 40px;
}

/* Sichtbar */
.letter-frame.show {
  margin-top: 140px;
  transform: translateY(-60px) scale(1);
  opacity: 1;
  z-index: 4;
}

/* Innen Gold */
.letter {
  width: min(820px, 92vw);
  padding: 120px 80px;

  /* Papierfarbe + Textur */
  background:
    url("paper-texture.png"),
    var(--paper);

  background-size: 500px 500px;
  background-repeat: repeat;

  border: 4px solid var(--gold);
  border-radius: 500px 500px 10px 10px;

  position: relative;
}

/* ==========================
   MINI POLAROID BILD
========================== */

.mini-polaroid {
  display: block;
  width: 320px;
  margin: -40px auto 80px auto; /* leicht in den Halbkreis ziehen */

  box-shadow:
    0 25px 50px rgba(0,0,0,0.18),
    0 8px 20px rgba(0,0,0,0.08);

  transform: rotate(-5deg);
}  

/* ==========================
   HEADLINE BEREICH
========================== */

.headline {
  text-align: center;
}

.subtitle {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--bordeaux);
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.subtitle::after {
  content: "";
  display: block;
  width: 80%;
  height: 2px;
  margin: 12px auto 0 auto;
  background: linear-gradient(
    90deg,
    transparent,
    var(--gold),
    transparent
  );
}

/* ==========================
   DATUM BLOCK
========================== */

.wedding-date {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 30px 0 50px 0;
  text-align: center;
}

.date-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
}

.date-label {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 2px;
  color: var(--bordeaux);
}

.date-line {
  width: 70px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--gold),
    transparent
  );
}

.date-center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.month {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 2px;
  color: var(--bordeaux);
  margin-bottom: 5px;
}

.day {
  font-family: 'Quicksand', cursive;
  font-size: 4rem;
  color: var(--bordeaux);
  line-height: 1;
}

.year {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 3px;
  color: var(--bordeaux);
  margin-top: 5px;
}

/* ==========================
   Einladungstext
========================== */

#greeting{
  color: var(--bordeaux);
}

.invitation-text {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

/* ==========================
   LOCATION SECTION
========================== */

.location-section {
  text-align: center;
  margin: 90px 0 80px 0;
}

.location-title:after {
  content: "";
  display: block;
  width: 80%;
  height: 2px;
  margin: 12px auto 0 auto;
  background: linear-gradient(
    90deg,
    transparent,
    var(--gold),
    transparent
  );
}

.location-name {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--bordeaux);
  margin-bottom: 8px;
}

.location-address {
  font-family: 'Quicksand', sans-serif;
  color: var(--brown);
  font-size: 1rem;
}

.map-wrapper {
position: relative;
max-width: 900px;
margin: 20px auto;
}

.map-image {
max-width: 596px;
display: block;
border: 2px solid var(--gold);
box-shadow: 0 10px 10px rgba(0,0,0,0.15); 
border-radius: 20px;
overflow: hidden;  
margin: auto;
}

/* PIN GRUNDSTIL */
.map-pin {
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transform: translate(-50%, -100%);
}
/* Spitze des Pins */
.map-pin::after {
  content: "";
  position: absolute;
  bottom: -8px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 12px solid;
}

/* PIN FARBEN */
/* Parkplatz */
.pin-parking {
  background: var(--blue);
  top: 51%;
  left: 15%;
}
.pin-parking::after {
  border-top-color: var(--blue);
}
/* Bus */
.pin-bus {
  background: var(--bordeaux);
  top: 33%;
  left: 75%;
}
.pin-bus::after {
  border-top-color: var(--bordeaux);
}
/* Location */
.pin-location {
  background: var(--gold);
  top: 12%;
  left: 61%;
}
.pin-location::after {
  border-top-color: var(--gold);
}
/* Hover */
.map-pin:hover {
transform: translate(-50%, -105%) scale(1.1);
}

/* INFO BOX */

.map-info {
max-width: 600px;
margin: 40px auto;
}

.info-card {
display: none;
background: var(--paper);
border: 2px solid var(--gold);
border-radius: 20px;
}

.info-card.active {
display: block;
}

.info-card img{
  width: 100%;
  border-radius: 20px;
}

.location-button {
  display: inline-block;
  padding: 12px 28px;
  background: var(--gold);
  color: white;
  text-decoration: none;
  font-family: 'Quicksand', sans-serif;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.location-button:hover {
  border: 1px solid var(--gold);
  color: var(--bordeaux);
  background-color: transparent;
}

/* ==========================
   TIMELINE
========================== */

.schedule-section{
margin:100px 0;
}

.timeline{
position:relative;
max-width:820px;
}
.timeline::before{
  content:"";
  position:absolute;
  left:50%;
  top:70px;
  bottom:65px;
  transform:translateX(-50%);
  width:2px;
  background:var(--gold);
}

/* Timeline Item */
.timeline-item{
display:flex;
align-items:center;
margin:50px 0;
position:relative;
}

/* Icon Kreis */
.timeline-icon{
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gold);

  display: flex;
  align-items: center;
  justify-content: center;

  position: absolute;
  left: 50%;
  transform: translateX(-50%);

  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  padding: 10px; /* wichtig für Abstand zum Rand */
}
.timeline-icon img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Content */
.timeline-content{
width:50%;
padding:0 70px 0 0;
text-align:right;
}
.timeline-content h3{
  margin: 0;
  word-break: break-word;
}
.timeline-content p{
  margin: 5px 0;
}

.timeline-item:nth-child(even) .timeline-content{
margin-left: 50%;
text-align:left;
padding: 0 0 0 70px;
}

/* Zeit */
.timeline-time{
font-family:'Minnadrop';
font-size:1.6rem;
color:var(--bordeaux);
display:block;
margin: 0 0 5px 0;
}

/* ==========================
   DRESSCODE
========================== */
.dresscode-text {
  max-width: 600px;
  margin: 0 auto 40px auto;
}

.dresscode-colors {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 30px;
}

.color-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.color-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: block;
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.color-label {
  font-family: 'Quicksand', sans-serif;
  color: var(--brown);
}

.color-circle.sage {
  background: var(--sage);
}
.color-circle.bordeaux {
  background: var(--bordeaux);
}
.color-circle.brown {
  background: var(--brown);
}
.color-circle.gold {
  background: var(--gold);
}

/* ==========================
   Geschenke
========================== */
.geschenke-section {
  margin: 100px 0 90px;
}
.geschenke-text{
  margin: 0 auto 40px auto;
  max-width: 600px;
}

/* ==========================
   MOBILE OPTIMIERUNG
========================== */

@media (max-width: 768px) {

  .letter-frame {
    width: 92%;
    margin: 80px auto 120px auto;
  }

  .letter {
    width: 100%;
    padding: 80px 25px;
  }

  .mini-polaroid {
    width: 220px;
    margin: -20px auto 50px auto;
  }

  .letter h1 {
    font-size: 2.7rem;
  }

h2 {
  font-size: 2.2rem;
}

h3 {
  font-size: 1.4rem;

}

p {
  font-size: 1.1rem;
}

  .invitation-text {
    font-size: 1rem;
  }

  .letter,
  .letter-frame {
    border-radius: 280px 280px 10px 10px;
  }

.names {
  font-size: 3rem;
}

.subtitle {
  font-size: 1rem;
}
  
.section-title {
    font-size: 2.2rem;
  }

.location-section {
    margin: 60px 0;
  }
  
.map-image {
    width: 100%;
  }

}