/* Browser Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family:
    system-ui,
    -apple-system,
    sans-serif;
  line-height: 1.5;
  color: #333;
  background: linear-gradient(to bottom right, #e8d0e8, #fef4f8); /* Zacht roze achtergrond */
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

main {
  flex: 1;
}

/* Kleurenschema */
:root {
  --soft-red: #e8a0a0;
  --purple: #b895d1;
  --pink: #f0c8d8;
  --dark: #333;
  --light: #f8e8f0;
}

header {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  display: grid;
  grid-template-rows: repeat(2, auto);
  align-items: center;
  justify-items: center;
  min-height: 6rem;
  padding: 0.75rem 0;
  background-color: transparent;
  overflow: hidden;
}

header::before,
header::after {
  content: "♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥";
  white-space: nowrap;
  overflow: hidden;
  font-size: clamp(1.25rem, 3vw, 1.9rem);
  line-height: 1.1;
  letter-spacing: 0.6rem;
  color: var(--soft-red);
}

header::before {
  grid-row: 1;
}

header::after {
  grid-row: 2;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  padding: 0;
  overflow: hidden;
  display: block;
  background: linear-gradient(to bottom right, #ac849b, #f8d8ec);
  margin-bottom: 2rem;
}

.hero h2 {
  display: block;
  width: 100%;
  max-width: none;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  line-height: 1;
  color: var(--purple);
  padding: 0.75rem 0;
  overflow: hidden;
  white-space: nowrap;
}

.hero-marquee-track {
  display: inline-block;
  white-space: nowrap;
  animation: hero-scroll 25s linear infinite;
}

@keyframes hero-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

main {
  padding: 2rem 0;
  text-align: center;
}

.page-heading {
  font-family: "Monoton", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 6em;
  text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.6);
  width: 100%;
  letter-spacing: 0.1em;
}

.pt-sans-regular {
  font-family: "PT Sans", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.pt-sans-bold {
  font-family: "PT Sans", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.pt-sans-regular-italic {
  font-family: "PT Sans", sans-serif;
  font-weight: 400;
  font-style: italic;
}

.pt-sans-bold-italic {
  font-family: "PT Sans", sans-serif;
  font-weight: 700;
  font-style: italic;
}

.monoton-regular {
  font-family: "Monoton", sans-serif;
  font-weight: 400;
  font-style: normal;
}

main p,
p {
  width: fit-content;
  margin: 0 auto 1rem;
  color: var(--dark);
  background: linear-gradient(to bottom right, rgba(225, 205, 220, 0.9), rgba(255, 242, 252, 0.9));
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  font-size: clamp(1.05rem, 2.1vw, 1.4rem);
  font-weight: 700;
}

main p a,
p a {
  color: inherit;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}

main p a:hover,
p a:hover {
  text-decoration-style: solid;
}

.countdown {
  width: fit-content;
  margin: 0 auto 1rem;
  background: linear-gradient(to bottom right, rgba(225, 205, 220, 0.9), rgba(255, 242, 252, 0.9));
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  font-weight: 700;
  font-size: clamp(1.05rem, 2.1vw, 1.4rem);
}

.festive-details {
  width: fit-content;
  margin: 0 auto 1rem;
  background: linear-gradient(to bottom right, rgba(225, 205, 220, 0.9), rgba(255, 242, 252, 0.9));
  color: var(--dark);
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  font-size: clamp(1.05rem, 2.1vw, 1.4rem);
  font-weight: 700;
  cursor: pointer;
  border: 2px solid rgba(180, 140, 160, 0.35);
  transition: border-color 0.2s;
}

.festive-details:hover {
  border-color: rgba(180, 140, 160, 0.7);
}

.festive-details summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.festive-details summary::after {
  content: '▼';
  font-size: 0.75em;
  opacity: 1;
  display: inline-block;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.festive-details[open] summary::after {
  transform: rotate(180deg);
}

.festive-details summary::-webkit-details-marker {
  display: none;
}

.festive-content {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(180, 140, 160, 0.4);
  font-size: 0.8em;
  font-weight: 400;
  line-height: 1.5;
  max-width: 40ch;
  color: var(--dark);
}

.festive-content strong {
  font-weight: 700;
}

footer {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  padding: 2rem 0;
  text-align: center;
  color: var(--dark);
  background: linear-gradient(to bottom right, rgba(205, 118, 118, 0.9), rgba(250, 188, 188, 0.9));
  border-radius: 0;
}

footer p {
  margin: 0;
  background-color: transparent;
  padding: 0;
  max-width: none;
}

.page-heading {
  margin: 2rem auto 1rem;
  text-align: center;
  color: var(--light);
  font-size: clamp(2rem, 4vw, 3rem);
}

/* Responsive */
@media (max-width: 768px) {
  body {
    padding: 0 0.5rem;
  }
}

p.date-time {
  font-size: clamp(1.3125rem, 2.625vw, 1.75rem);
}

/* RSVP call-to-action link — inverted colors */
p.rsvp-cta {
  background: linear-gradient(to bottom right, var(--purple), var(--soft-red));
  color: #fff;
}

p.rsvp-cta a {
  color: #fff;
}

/* RSVP Form */
.rsvp-section {
  width: min(100%, 480px);
  margin: 2rem auto;
  background: linear-gradient(to bottom right, rgba(225, 205, 220, 0.9), rgba(255, 242, 252, 0.9));
  padding: 2rem;
  border-radius: 1rem;
  text-align: left;
}

.rsvp-section h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--dark);
  background: none;
  padding: 0;
  border-radius: 0;
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.rsvp-honeypot {
  display: none;
}

.rsvp-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.rsvp-field label {
  font-weight: 700;
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  color: var(--dark);
}

.rsvp-required {
  color: var(--soft-red);
}

.rsvp-field input,
.rsvp-field select {
  padding: 0.65rem 0.9rem;
  border: 2px solid rgba(180, 140, 160, 0.45);
  border-radius: 0.6rem;
  background: rgba(255, 248, 252, 0.95);
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  font-family: inherit;
  color: var(--dark);
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.rsvp-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23b895d1' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.rsvp-field input:focus,
.rsvp-field select:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(184, 149, 209, 0.25);
}

.rsvp-error {
  font-size: 0.85em;
  color: #c0392b;
  font-weight: 400;
  min-height: 1.2em;
}

.rsvp-submit {
  margin-top: 0.25rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(to bottom right, var(--purple), var(--soft-red));
  color: #fff;
  border: none;
  border-radius: 0.75rem;
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  align-self: stretch;
}

.rsvp-submit:hover {
  opacity: 0.88;
}

.rsvp-submit:active {
  transform: scale(0.98);
}

.rsvp-thankyou {
  text-align: center;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

/* Donatie section */
.donatie-section {
  width: min(100%, 540px);
  margin: 0 auto 3rem;
  background: linear-gradient(135deg, rgba(232, 160, 160, 0.2), rgba(255, 242, 252, 0.9));
  border: 2px solid rgba(232, 160, 160, 0.5);
  padding: 2rem;
  border-radius: 1.25rem;
  text-align: center;
}

.donatie-header {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.donatie-logo-link {
  display: inline-block;
}

.donatie-logo {
  max-width: 180px;
  height: auto;
  display: block;
}

.donatie-section h2 {
  font-size: clamp(1.3rem, 2.8vw, 1.7rem);
  font-weight: 700;
  color: var(--dark);
  margin: 0;
  background: none;
  padding: 0;
  border-radius: 0;
}

.donatie-intro {
  font-size: clamp(0.95rem, 1.9vw, 1.1rem);
  font-weight: 400;
  margin: 0 0 1.5rem;
  background: none;
  padding: 0;
  border-radius: 0;
  line-height: 1.6;
  text-align: center;
  width: 100%;
  color: var(--dark);
}

.donatie-intro a {
  color: #c0392b;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}

.donatie-intro a:hover {
  text-decoration-style: solid;
}

.donatie-bank {
  background: rgba(255, 248, 252, 0.95);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(180, 140, 160, 0.3);
  text-align: left;
}

.donatie-bank-intro {
  font-weight: 700;
  font-size: clamp(0.9rem, 1.8vw, 1rem);
  margin: 0 0 0.75rem;
  background: none;
  padding: 0;
  border-radius: 0;
  width: 100%;
  color: var(--dark);
}

.donatie-bank-details {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.donatie-bank-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.5rem;
  align-items: baseline;
}

.donatie-bank-row dt {
  font-weight: 700;
  color: var(--purple);
  font-size: clamp(0.85rem, 1.7vw, 0.95rem);
}

.donatie-bank-row dd {
  font-size: clamp(0.9rem, 1.8vw, 1rem);
  font-family: 'Courier New', Courier, monospace;
  color: var(--dark);
  letter-spacing: 0.03em;
}

.donatie-collect-note {
  font-size: clamp(0.8rem, 1.5vw, 0.9rem);
  font-weight: 400;
  color: #777;
  font-style: italic;
  margin: 0;
  background: none;
  padding: 0;
  border-radius: 0;
  width: 100%;
  line-height: 1.5;
}

.donatie-charity-link {
  display: inline-block;
  padding: 0.7rem 1.75rem;
  background: linear-gradient(to bottom right, #e85a5a, #c0392b);
  color: #fff;
  text-decoration: none;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  transition: opacity 0.2s, transform 0.1s;
}

.donatie-charity-link:hover {
  opacity: 0.88;
}

.donatie-charity-link:active {
  transform: scale(0.98);
}

.dynamic-bg-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}
.dynamic-bg-image {
  position: absolute;
  width: 400px;
  height: 400px;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  filter: brightness(0.8);
}
