/* =================================================================
   Geburtstags-Einladung — Genusswochenende in Straden
   Steiermark-Genussgut-Ästhetik · Mobile-first · iPad-optimiert
   ================================================================= */

/* ---------- Design Tokens ---------- */
:root {
  /* Farben */
  --burgundy:      #5a1f2b;   /* tiefes Bordeaux — Wein */
  --burgundy-deep: #44161f;
  --cream:         #f6efe3;   /* warmes Creme — Hintergrund */
  --cream-soft:    #faf6ee;
  --sand:          #e8dcc6;
  --olive-green:   #5e6a4f;   /* Salbei/Oliv — Akzent */
  --olive-soft:    #828d70;
  --charcoal:      #2b2724;   /* Anthrazit — Text */
  --charcoal-soft: #4a443d;
  --brass:         #b08d57;   /* Messing/Gold — Highlight */
  --brass-light:   #c9a86f;
  --line:          rgba(43, 39, 36, 0.14);
  --white:         #ffffff;

  /* Typografie */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --script:"Dancing Script", "Brush Script MT", cursive;

  /* Maße */
  --maxw: 1080px;
  --maxw-narrow: 720px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 4px 18px rgba(43, 39, 36, 0.08);
  --shadow-md: 0 14px 40px rgba(43, 39, 36, 0.12);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--charcoal);
  background-color: var(--cream);
  line-height: 1.75;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.12; }

p { margin: 0 0 1.1em; }

/* =================================================================
   Layout-Helfer
   ================================================================= */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: 24px;
}
.container--narrow { max-width: var(--maxw-narrow); }

.section {
  padding-block: clamp(64px, 11vw, 128px);
  position: relative;
}

.center { text-align: center; }

/* Papier-Textur auf creme-farbenen Sektionen */
.section--paper {
  background-color: var(--cream);
  background-image:
    radial-gradient(rgba(176, 141, 87, 0.05) 1px, transparent 1px),
    radial-gradient(rgba(94, 106, 79, 0.04) 1px, transparent 1px);
  background-size: 22px 22px, 34px 34px;
  background-position: 0 0, 11px 11px;
}

/* =================================================================
   Typo-Bausteine
   ================================================================= */
.eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.9rem;
}

.section__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  color: var(--burgundy);
  letter-spacing: 0.01em;
  margin-bottom: 0.5em;
}

.section__lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  color: var(--olive-green);
  margin-bottom: 1.6em;
}

.script { font-family: var(--script); }

.heart { color: var(--burgundy); }

/* =================================================================
   1. HERO
   ================================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  color: var(--cream-soft);
  overflow: hidden;

  /* Platzhalter-Verlauf bis ein echtes Foto eingesetzt wird.
     Echtes Bild später so einsetzen:
     background-image: url('hero-weinberg.jpg');
     background-size: cover; background-position: center; */
  background-color: var(--burgundy-deep);
  background-image:
    linear-gradient(160deg, rgba(68, 22, 31, 0.45), rgba(43, 39, 36, 0.65)),
    url('pictures/straden.jpg');
  background-size: cover;
  background-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 35%, rgba(43, 39, 36, 0.45) 100%);
  pointer-events: none;
}

.hero__content { position: relative; z-index: 2; max-width: 760px; }

.hero__eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(0.85rem, 2vw, 1rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: 1.4rem;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3.2rem, 12vw, 6.5rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}

.hero__rule {
  width: 78px;
  height: 2px;
  margin: 1.8rem auto;
  background: linear-gradient(90deg, transparent, var(--brass-light), transparent);
}

.hero__subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 3.4vw, 1.9rem);
  line-height: 1.5;
  color: var(--cream-soft);
}

.hero__date {
  margin-top: 1.8rem;
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(0.82rem, 2vw, 1rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-soft);
  padding: 10px 22px;
  border: 1px solid rgba(201, 168, 111, 0.6);
  border-radius: 999px;
  background: rgba(43, 39, 36, 0.18);
}

.hero__signature {
  position: absolute;
  bottom: clamp(86px, 14vh, 130px);
  z-index: 2;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  color: var(--cream-soft);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}
.hero__signature .heart { color: var(--brass-light); }

/* Scroll-Indikator */
.scroll-indicator {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--cream-soft);
  opacity: 0.85;
}
.scroll-indicator__text {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.scroll-indicator__arrow {
  width: 22px;
  height: 22px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  -webkit-animation: bob 2s var(--ease) infinite;
  animation: bob 2s var(--ease) infinite;
}
@-webkit-keyframes bob { 0%,100%{transform:rotate(45deg) translate(0,0);} 50%{transform:rotate(45deg) translate(5px,5px);} }
@keyframes bob { 0%,100%{transform:rotate(45deg) translate(0,0);} 50%{transform:rotate(45deg) translate(5px,5px);} }

/* =================================================================
   2. STORY
   ================================================================= */
.story { text-align: center; }
.story__text {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
  line-height: 1.75;
  color: var(--charcoal-soft);
  margin-top: 1.2rem;
}
.story__text p { margin-bottom: 1.4em; }

/* Ornamentaler Divider */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 2.6rem;
  color: var(--brass);
}
.divider__line {
  height: 1px;
  width: clamp(60px, 18vw, 150px);
  background: linear-gradient(90deg, transparent, var(--brass));
}
.divider__line:last-child { background: linear-gradient(90deg, var(--brass), transparent); }
.divider__mark { font-size: 1rem; letter-spacing: 0.1em; }

/* =================================================================
   3. WEEKEND
   ================================================================= */
.weekend {
  background-color: var(--olive-green);
  color: var(--cream-soft);
  background-image: linear-gradient(165deg, #5e6a4f 0%, #4c573f 100%);
}
.weekend .eyebrow { color: var(--brass-light); }
.weekend .section__title { color: var(--cream-soft); }
.weekend .section__lead { color: var(--sand); }
.weekend__text {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: rgba(246, 239, 227, 0.92);
  max-width: 620px;
  margin-inline: auto;
}

/* =================================================================
   4. STAY — Karte
   ================================================================= */
.stay-card {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: 2.5rem;
  border: 1px solid var(--line);
}
.stay-card__media {
  position: relative;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  background-color: var(--olive-soft);
  background-image: linear-gradient(135deg, #828d70 0%, #5e6a4f 100%);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.stay-card__media-label { opacity: 0.85; }
.stay-card__media { padding: 0; }
.stay-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.stay-card__body { padding: clamp(28px, 5vw, 48px); }
.stay-card__title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--burgundy);
  margin-bottom: 0.3rem;
}
.stay-card__tag {
  font-family: var(--serif);
  font-style: italic;
  color: var(--olive-green);
  font-size: 1.25rem;
  margin-bottom: 1.2rem;
}
.stay-card__text { color: var(--charcoal-soft); }
.stay-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.stay-card__features li {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--olive-green);
  border: 1px solid var(--line);
}
.stay-card__address {
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 1rem;
}
.stay-card__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* =================================================================
   Buttons
   ================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  background: var(--burgundy);
  color: var(--cream-soft);
  border: 1.5px solid var(--burgundy);
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn--ghost {
  background: transparent;
  color: var(--burgundy);
  border-color: var(--burgundy);
}
.btn--light {
  background: var(--cream-soft);
  color: var(--burgundy);
  border-color: var(--cream-soft);
}
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); background: var(--burgundy-deep); }
  .btn--ghost:hover { background: var(--burgundy); color: var(--cream-soft); }
  .btn--light:hover { background: var(--white); }
}
.btn:active { transform: translateY(0) scale(0.98); }

/* =================================================================
   5. PLAN — Timeline
   ================================================================= */
.plan__hint {
  max-width: 640px;
  margin-inline: auto;
  margin-top: -1rem;
}

.plan__day {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 640px;
  margin: 3.5rem auto 0.5rem;
}
.plan__day:first-of-type { margin-top: 3rem; }
.plan__day-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brass-light));
}
.plan__day-line:last-child { background: linear-gradient(90deg, var(--brass-light), transparent); }
.plan__day-label {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--burgundy);
  white-space: nowrap;
}

.timeline {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  position: relative;
}
.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 64px 36px 1fr;
  column-gap: 16px;
  padding-bottom: 32px;
  align-items: start;
}
/* durchgehende Linie */
.timeline__item::before {
  content: "";
  position: absolute;
  left: calc(64px + 16px + 17px);
  top: 30px;
  bottom: -6px;
  width: 2px;
  background: linear-gradient(180deg, var(--brass-light), var(--line));
}
.timeline__item:last-child::before { display: none; }

.timeline__time {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--burgundy);
  text-align: right;
  padding-top: 6px;
  white-space: nowrap;
}
.timeline__dot {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-soft);
  border: 2px solid var(--brass-light);
  box-shadow: 0 0 0 5px var(--cream);
  font-size: 1rem;
}
.timeline__dot--optional {
  border-style: dashed;
  border-color: var(--olive-soft);
}
.timeline__card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
@media (hover: hover) {
  .timeline__card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
}
.timeline__card--optional {
  background: repeating-linear-gradient(
    -45deg,
    rgba(130, 141, 112, 0.06),
    rgba(130, 141, 112, 0.06) 10px,
    transparent 10px,
    transparent 20px
  ), var(--cream-soft);
  border: 1.5px dashed var(--olive-soft);
}
.timeline__station {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--charcoal);
  margin-bottom: 0.15rem;
}
.timeline__meta-line {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--olive-green);
  margin-bottom: 0.5rem;
}
.timeline__note { color: var(--charcoal-soft); margin-bottom: 0; font-size: 0.98rem; }

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--olive-soft);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 0.7rem;
}
.badge--soft {
  background: var(--brass);
  color: var(--white);
}

/* Info-Box Gehstrecke */
.infobox {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 620px;
  margin: 1.5rem auto 0;
  padding: 22px 28px;
  border-radius: var(--radius);
  background: var(--burgundy);
  color: var(--cream-soft);
  box-shadow: var(--shadow-md);
}
.infobox__icon { font-size: 1.8rem; }
.infobox__text { margin: 0; font-size: 1.02rem; }
.infobox__text strong { color: var(--brass-light); }

/* =================================================================
   6. CONTACTS
   ================================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 2.5rem;
}
.contact-card {
  position: relative;
  display: block;
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
  .contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brass-light); }
}
.contact-card:active { transform: scale(0.99); }
.contact-card--accent { border-color: var(--brass-light); background: var(--cream-soft); }
.contact-card__name {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--burgundy);
  margin-bottom: 0.1rem;
}
.contact-card__role {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--olive-green);
  margin-bottom: 0.7rem;
}
.contact-card__phone {
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--charcoal);
  margin: 0;
}

/* =================================================================
   7. TAXI
   ================================================================= */
.taxi { background-color: var(--cream); }
.taxi-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  background: var(--charcoal);
  background-image: linear-gradient(150deg, #2b2724, #44161f);
  color: var(--cream-soft);
  padding: clamp(28px, 5vw, 44px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.taxi-box__icon { font-size: 2.4rem; }
.taxi-box__title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--cream-soft);
  margin-bottom: 0.5rem;
}
.taxi-box__text { color: rgba(246, 239, 227, 0.88); margin-bottom: 1.4rem; }

/* =================================================================
   8. MAP
   ================================================================= */
.map-frame {
  margin-top: 2.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
  background: var(--sand);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-frame #routemap { width: 100%; height: 100%; }
.map__hint { text-align: center; margin-top: 1.5rem; }

/* Nummerierte Karten-Marker */
.station-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--burgundy);
  color: var(--cream-soft);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid var(--cream-soft);
  box-shadow: 0 2px 8px rgba(43, 39, 36, 0.4);
}
.station-marker--opt {
  background: var(--olive-green);
  border-style: dashed;
}

/* Leaflet-Popups im Seitenstil */
.leaflet-popup-content {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--charcoal);
  line-height: 1.5;
}
.leaflet-popup-content strong { color: var(--burgundy); font-family: var(--serif); font-size: 1.15rem; }

/* Legende unter der Karte */
.map-legend {
  list-style: none;
  margin: 1.6rem auto 0;
  padding: 0;
  max-width: 760px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px 24px;
}
.map-legend li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.98rem;
  color: var(--charcoal-soft);
}
.map-legend__num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--burgundy);
  color: var(--cream-soft);
  font-weight: 700;
  font-size: 0.82rem;
}
.map-legend__num--opt { background: var(--olive-green); }

@media (min-width: 600px) {
  .map-legend { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .map-legend { grid-template-columns: repeat(3, 1fr); }
}

/* =================================================================
   9. CLOSING
   ================================================================= */
.closing {
  background-color: var(--cream);
  padding-block: clamp(90px, 16vw, 180px);
}
.closing__title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  color: var(--burgundy);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.closing__text {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  color: var(--charcoal-soft);
  margin-bottom: 2rem;
}
.closing__signature {
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  color: var(--burgundy);
}

/* =================================================================
   Footer
   ================================================================= */
.footer {
  background: var(--burgundy-deep);
  color: var(--sand);
  padding-block: 36px;
}
.footer__text {
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
  opacity: 0.85;
}
.footer__top {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--brass-light);
}

/* =================================================================
   Scroll-Reveal Animationen
   ================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reduzierte Bewegung respektieren */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-indicator__arrow { -webkit-animation: none; animation: none; }
}

/* =================================================================
   Responsive — Tablet / iPad / Desktop
   ================================================================= */

/* iPad Portrait (~810px) und größer */
@media (min-width: 760px) {
  body { font-size: 19px; }

  .stay-card {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
  .stay-card__media { min-height: 100%; }

  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .timeline__item { grid-template-columns: 84px 40px 1fr; column-gap: 22px; }
  .timeline__item::before { left: calc(84px + 22px + 19px); }
  .timeline__dot { width: 40px; height: 40px; }

  .taxi-box {
    flex-direction: row;
    align-items: center;
  }
}

/* iPad Landscape (~1180px) und Desktop */
@media (min-width: 1024px) {
  body { font-size: 20px; }

  .contact-grid { grid-template-columns: repeat(3, 1fr); }

  /* Zentrierte, alternierende Timeline auf großen Screens */
  .timeline { max-width: 920px; margin-inline: auto; }
}

/* iPad Retina / hochauflösende Displays — Bilder scharf halten */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Hier ggf. @2x-Bildvarianten referenzieren, wenn echte Fotos gesetzt sind. */
  .hero { background-attachment: scroll; } /* fixed verursacht auf iOS Ruckeln */
}
