/* =====================================================
   Steffi & David — Wedding Website Styles
   Fonts: Dancing Script (headings) + Cinzel (body)
   ===================================================== */

/* ----- Reset & Base --------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --white:        #ffffff;
  --bg:           #fdfdfc;
  --bg-tint:      #f2f5f2;
  --text:         #3a3a3a;
  --text-light:   #6b6b6b;
  --sage:         #505D52;
  --sage-dark:    #3d4a3f;
  --sage-pale:    #e5eae5;
  --pink:         #d4a0a0;
  --pink-pale:    #f7ecec;
  --divider:      #d5dbd5;
  --card-border:  #dce1dc;
  --radius:       10px;
  --font-script:  'Dancing Script', cursive;
  --font-serif:   'Raleway', sans-serif;
  --shadow:       0 2px 16px rgba(61, 74, 63, 0.10);
  --shadow-sm:    0 1px 6px rgba(61, 74, 63, 0.08);
}

html { scroll-behavior: smooth; font-size: 18px; }

body {
  font-family: var(--font-serif);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--sage-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

address { font-style: normal; }

/* ----- Layout --------------------------------------- */
.page-wrapper {
  display: grid;
  grid-template-columns: 1fr 210px;
  max-width: 1080px;
  margin: 0 auto;
  align-items: start;
}

.main-content { min-width: 0; }

/* ----- Sections ------------------------------------- */
.section {
  padding: 4rem 3rem 3rem;
  border-bottom: 1px solid var(--divider);
}

.section--last { border-bottom: none; }

.section-inner { max-width: 680px; }

.section-title {
  font-family: var(--font-script);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--sage-dark);
  margin-bottom: 1.6rem;
  line-height: 1.1;
}

.section-divider {
  display: none;
}

.section-intro {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 1.8rem;
  max-width: 580px;
}

.subsection-title {
  font-family: var(--font-serif);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin: 2rem 0 0.8rem;
}

.prose p {
  margin-bottom: 1rem;
}

/* ----- Hero Section --------------------------------- */
.section--hero {
  position: relative;
  padding: 5rem 3rem 4rem;
  border-bottom: 1px solid var(--divider);
  overflow: hidden;
  text-align: center;
}

/* Fixed botanical corner decorations */
.botanical-corner {
  position: fixed;
  pointer-events: none;
  user-select: none;
  z-index: 900;
}

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

.botanical-corner--top-right {
  top: 0;
  right: 0;
  width: 30%;
  /* transform: rotate(20deg); */
  transform-origin: top right;
}

.botanical-corner--bottom-left {
  bottom: 0;
  left: 0;
  width: 25%;
  /* transform: rotate(20deg); */
  transform-origin: bottom left;
}

@media (max-width: 960px) {
  .botanical-corner--top-right  { width: 240px; }
  .botanical-corner--bottom-left { width: 260px; }
}

@media (max-width: 640px) {
  .botanical-corner { display: none; }
}

.hero-content { position: relative; z-index: 1; }

.hero-names {
  font-family: var(--font-script);
  font-size: clamp(3.2rem, 8vw, 5.5rem);
  font-weight: 700;
  color: var(--sage-dark);
  line-height: 1.05;
  margin-bottom: 0.4rem;
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1.4rem;
}

.hero-date {
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

.hero-location {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
}

/* ----- Timeline ------------------------------------- */
.timeline { display: grid; gap: 0.5rem; margin-bottom: 1.8rem; }

.timeline-item {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--divider);
}

.timeline-item:last-child { border-bottom: none; }

.timeline-time {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--sage-dark);
  letter-spacing: 0.04em;
}

.timeline-event {
  font-size: 1rem;
  color: var(--text);
}

/* ----- Info Box ------------------------------------- */
.info-box {
  background: var(--bg-tint);
  border-left: 3px solid var(--sage);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.9rem 1.2rem;
  margin: 1.5rem 0;
  font-size: 1.2rem;
  color: var(--text);
}

.info-box .btn-primary {
  display: inline-block;
  margin-top: 0.75rem;
}

.info-box--subtle {
  background: var(--pink-pale);
  border-left-color: var(--pink);
}

/* ----- Contact Cards -------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
}

.contact-card strong {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-bottom: 0.25rem;
}

/* ----- Location Cards ------------------------------- */
.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.location-card {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.location-card__badge {
  display: inline-block;
  background: var(--sage-pale);
  color: var(--sage-dark);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  margin-bottom: 0.8rem;
}

.location-card__name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--sage-dark);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}

.location-card__address {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 0.6rem;
}

.location-card__maps-link {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--sage-dark);
  margin-bottom: 1rem;
  font-weight: 500;
}

.location-card__parking {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--divider);
  font-size: 0.82rem;
  color: var(--text-light);
}

/* ----- Details / Directions ------------------------- */
.directions {
  margin: 0.5rem 0;
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  overflow: hidden;
}

.directions summary {
  padding: 0.65rem 1rem;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--sage-dark);
  background: var(--bg-tint);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.directions summary::-webkit-details-marker { display: none; }

.directions summary::after {
  content: '›';
  font-size: 1rem;
  transition: transform 0.2s;
}

.directions[open] summary::after { transform: rotate(90deg); }

.directions p {
  padding: 0.8rem 1rem;
  font-size: 0.83rem;
  color: var(--text);
  white-space: pre-line;
  background: var(--white);
}

/* ----- Card Photos (inside location cards) ---------- */
.card-photos {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--divider);
}

.card-photos--stack {
  flex-direction: column;
}

.card-photo-figure {
  flex: 1;
  min-width: 100px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.card-photos--stack .card-photo-figure {
  flex: none;
}

.lb-trigger {
  display: block;
  overflow: hidden;
  border-radius: 6px;
}

.card-photo {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: transform 0.2s, opacity 0.15s;
}

.lb-trigger:hover .card-photo {
  transform: scale(1.03);
  opacity: 0.9;
}

.card-photo-caption {
  font-size: 0.78rem;
  color: #666;
  line-height: 1.4;
}

/* ----- Lightbox ------------------------------------- */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

#lightbox.is-open { display: flex; }

#lightbox-img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  cursor: default;
}

#lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.4rem;
  transition: color 0.15s;
}

#lightbox-close:hover { color: #fff; }

/* ----- Outfit Section ------------------------------- */
.dresscode-label {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-dark);
  background: var(--sage-pale);
  padding: 0.35rem 1rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}

.outfit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.outfit-card {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow-sm);
}

.outfit-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--sage-dark);
  margin-bottom: 0.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.outfit-card p { font-size: 0.88rem; white-space: pre-line; }

/* ----- Weather Widget ------------------------------- */
.weather-widget {
  margin-top: 0.8rem;
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  box-shadow: var(--shadow-sm);
}

.weather-inner {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.weather-icon {
  font-size: 2.6rem;
  line-height: 1;
  flex-shrink: 0;
}

.weather-main { flex: 1; min-width: 120px; }

.weather-condition {
  font-weight: 600;
  font-size: 1rem;
  color: var(--sage-dark);
}

.weather-temp {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.weather-temp-min {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-light);
}

.weather-details {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.82rem;
  color: var(--text-light);
}

.weather-source {
  margin-top: 0.9rem;
  font-size: 0.72rem;
  color: var(--text-light);
  letter-spacing: 0.03em;
}

.weather-placeholder {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.weather-placeholder-icon {
  font-size: 2rem;
  flex-shrink: 0;
  opacity: 0.5;
}

.weather-placeholder strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.weather-placeholder p {
  font-size: 0.8rem;
  color: var(--text-light);
  margin: 0;
}

/* ----- Updates List (Neuigkeiten) ------------------- */
.updates-list { display: grid; gap: 1rem; }

.update-entry {
  padding: 1rem 1.2rem;
  background: var(--white);
  border: 1px solid var(--card-border);
  border-left: 3px solid var(--sage);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-sm);
}

.update-date {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-bottom: 0.3rem;
}

.update-entry p { font-size: 0.88rem; }

/* ----- Contact Form Embed --------------------------- */
.form-embed {
  margin-top: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
}

.form-embed iframe { display: block; }

.btn-primary {
  display: inline-block;
  background: var(--sage-dark);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-top: 0.5rem;
  transition: background 0.2s;
}

.btn-primary:hover { background: var(--sage); text-decoration: none; }

/* ----- Footer --------------------------------------- */
.site-footer {
  padding: 2rem 3rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-light);
  letter-spacing: 0.04em;
  border-top: 1px solid var(--divider);
}

/* ----- Desktop TOC Sidebar -------------------------- */
.toc-sidebar {
  position: sticky;
  top: 2rem;
  padding: 5rem 1.5rem 2rem 1rem;
  align-self: start;
}

#toc { font-size: 0.8rem; }

.toc-heading {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

#toc ul { list-style: none; display: grid; gap: 0.1rem; }

.toc-link {
  display: block;
  padding: 0.35rem 0.6rem;
  color: var(--text-light);
  border-left: 2px solid transparent;
  border-radius: 0 4px 4px 0;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  letter-spacing: 0.03em;
}

.toc-link:hover {
  color: var(--sage-dark);
  text-decoration: none;
  background: var(--bg-tint);
}

.toc-link.active {
  color: var(--sage-dark);
  border-left-color: var(--sage);
  font-weight: 600;
  background: var(--bg-tint);
  text-decoration: none;
}

/* ----- Hamburger Button ----------------------------- */
#hamburger {
  display: none;
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 200;
  background: var(--white);
  border: 1.5px solid var(--card-border);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  padding: 0;
}

#hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--sage-dark);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

#hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#hamburger.is-open span:nth-child(2) { opacity: 0; }
#hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----- Mobile Menu ---------------------------------- */
#mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 260px;
  background: var(--white);
  z-index: 300;
  padding: 4rem 2rem 2rem;
  box-shadow: -4px 0 30px rgba(0,0,0,0.12);
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.is-open { transform: translateX(0); }

#close-menu {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-light);
  padding: 0.4rem;
  line-height: 1;
}

.mobile-menu-title {
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: var(--sage-dark);
  margin-bottom: 1.5rem;
}

#mobile-menu ul { list-style: none; display: grid; gap: 0.15rem; }

#mobile-menu a {
  display: block;
  padding: 0.6rem 0.5rem;
  font-size: 0.88rem;
  color: var(--text);
  border-bottom: 1px solid var(--divider);
  letter-spacing: 0.04em;
}

#mobile-menu a:hover { color: var(--sage-dark); text-decoration: none; }

#mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 250;
}

#mobile-overlay.is-visible { display: block; }

/* ----- Login Page ----------------------------------- */
html { height: 100%; }

.login-page {
  min-height: 100vh;
  background: var(--bg-tint);
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.login-wrapper {
  width: 100%;
  max-width: 420px;
}

.login-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2.5rem 2.5rem 2rem;
  box-shadow: 0 4px 40px rgba(90, 124, 90, 0.13);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.login-botanical {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 140px;
  opacity: 0.55;
  transform: scaleX(-1);
  pointer-events: none;
}

.login-botanical img { width: 100%; height: auto; }

.login-names {
  font-family: var(--font-script);
  font-size: 2.8rem;
  color: var(--sage-dark);
  margin-bottom: 0.2rem;
}

.login-date {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin-bottom: 0.2rem;
}

.login-tagline {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 2rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
}

.login-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
}

.login-input {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--bg-tint);
  color: var(--text);
  width: 100%;
  transition: border-color 0.2s;
  letter-spacing: 0.1em;
}

.login-input:focus {
  outline: none;
  border-color: var(--sage);
}

.login-btn {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--sage-dark);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 0.8rem;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 0.25rem;
}

.login-btn:hover { background: var(--sage); }

.login-error {
  color: #b34040;
  font-size: 0.82rem;
  margin-top: 0.75rem;
  padding: 0.6rem 0.8rem;
  background: #fdf0f0;
  border-radius: var(--radius);
  border: 1px solid #e8c4c4;
}

.login-hint {
  margin-top: 1.5rem;
  font-size: 0.78rem;
  color: var(--text-light);
  letter-spacing: 0.03em;
}

/* ----- Responsive Breakpoints ----------------------- */
@media (max-width: 960px) {
  .page-wrapper { grid-template-columns: 1fr; }
  .toc-sidebar { display: none; }
  #hamburger { display: flex; }
}

@media (max-width: 640px) {
  .section { padding: 2.5rem 1.25rem 2rem; }
  .section--hero { padding: 3.5rem 1.25rem 3rem; }
  .section-title { font-size: 2.1rem; }
  .hero-names { font-size: 3rem; }
  .hero-botanical--left,
  .hero-botanical--right { width: 130px; }
  .location-grid { grid-template-columns: 1fr; }
  .outfit-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .site-footer { padding: 1.5rem 1.25rem; }
}

@media (max-width: 380px) {
  .hero-botanical--left,
  .hero-botanical--right { display: none; }
}

/* Mobile: button-style affordance for tappable contact links */
@media (max-width: 960px) {
  .contact-card a[href^="tel:"],
  .contact-card a[href^="mailto:"] {
    display: block;
    margin-top: 0.4rem;
    padding: 0.55rem 1rem;
    background: var(--bg-tint);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    text-align: center;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--sage-dark);
    letter-spacing: 0.01em;
    transition: background 0.15s;
  }

  .contact-card a[href^="tel:"]:hover,
  .contact-card a[href^="mailto:"]:hover {
    background: var(--sage-pale);
    text-decoration: none;
  }
}
