:root {
  --blue: #3465ae;
  --yellow: #f4ec82;
}

/* =========================
   Reset
   ========================= */

* {
  box-sizing: border-box;
  font-family: "Gambarino", serif;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background: var(--blue);
  color: var(--yellow);
  font-family: "Gambarino", serif;
}


/* =========================
   Allgemein
   ========================= */

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

a {
  color: var(--yellow);
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}


/* =========================
   Login / Startseite
   ========================= */

body.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6vw;
  text-align: center;
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
}


/* =========================
   Heading
   ========================= */

h1 {
  font-family: "Gambarino", serif;
  font-weight: 400;
  font-size: clamp(3rem, 10vw, 7rem);
  line-height: 0.95;
  margin: 0 0 1.5rem 0;
  color: var(--yellow);
  letter-spacing: 0;
}

h2 {
  font-family: "Gambarino", serif;
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 0.95;
  margin: 0;
  color: var(--yellow);
}

h3 {
  font-family: "Gambarino", serif;
  font-weight: 400;
  color: var(--yellow);
}


/* =========================
   Text
   ========================= */

p {
  font-family: "Gambarino", serif;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  max-width: 34ch;
  line-height: 1.6;
  color: var(--yellow);
  opacity: 0.85;
  margin: 0;
}


/* =========================
   Password Form
   ========================= */

.password-form {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: min(100%, 280px);
}

.password-form input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: transparent;
  border: 1px solid var(--yellow);
  color: var(--yellow);
  font-family: "Switzer-Light";
  font-size: 1rem;
  text-align: center;
  outline: none;
  border-radius: 0;
}

.password-form input::placeholder {
  color: var(--yellow);
  opacity: 0.6;
}

.password-form input:focus {
  background: rgba(244, 236, 130, 0.08);
}

.password-form button {
  padding: 0.7rem 1.5rem;
  background: var(--yellow);
  color: var(--blue);
  border: none;
  font-family: "Gambarino", serif;
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: 0;
  transition: opacity 0.2s ease;
}

.password-form button:hover {
  opacity: 0.85;
}


/* =========================
   Login Footer
   ========================= */

body.login-page footer {
  position: absolute;
  bottom: 2.5rem;
  font-family: "Gambarino", serif;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow);
  opacity: 0.65;
}


/* =========================
   Animation
   ========================= */

@media (prefers-reduced-motion: no-preference) {

  .content,
  footer {
    animation: rise 0.7s ease both;
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(8px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}


/* =========================================================
   WEDDING PAGE
   ========================================================= */

.wedding-page {
  width: 100%;
  overflow: hidden;
}


/* =========================================================
   OPENING (erste Kachel mit Hintergrundbild)
   ========================================================= */

.opening-hero {
  position: relative;
  min-height: 100vh;
  width: 100%;

  background-image: url('/static/images/DSC_0212.JPG');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  flex-direction: column;

  padding: 6vw;
}

.opening-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0) 30%,
    rgba(0, 0, 0, 0) 100%
  );
  pointer-events: none;
}

.opening-title {
  position: relative;
  z-index: 1;

  margin: 0;
  text-align: center;

  font-family: "Melodrama-Regular";
  line-height: 1;

  color: var(--blue);
  /* text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35); */
}

.opening-love {
  position: relative;
  z-index: 1;

  align-self: flex-end;
  margin-top: 1.25rem;

  font-family: "Gambarino", serif;
  font-weight: 400;
  font-size: clamp(1.1rem, 2.5vw, 1.8rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;

  color: var(--yellow);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}


/* =========================================================
   HERO
   ========================================================= */

.wedding-hero,
.hero {
  min-height: 100vh;
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 8vw 6vw;

  text-align: center;
  position: relative;
}

.hero-content {
  width: min(100%, 1100px);
  margin: 0 auto;

  display: flex;
  flex-direction: column;
  align-items: center;
}


/* kleines "Save the Date" */

.hero-kicker,
.hero-eyebrow {
  margin-bottom: 2rem;

  font-size: clamp(0.8rem, 1.5vw, 1rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;

  opacity: 0.75;
}


/* Einleitungstext im Hero */

.hero-intro {
  margin: 2rem auto 0;

  max-width: 480px;
}


/* "Scroll" Hinweis unten im Hero */

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;

  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
}

.scroll-arrow {
  font-size: 1rem;
  animation: bounce 1.6s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}


/* Namen */

.hero-title {
  margin: 0;

  font-size: clamp(4rem, 12vw, 10rem);
  line-height: 0.82;
  letter-spacing: -0.03em;

  color: var(--yellow);
}

.opening-title {
  margin: 0;

  font-size: clamp(3.5rem, 12vw, 10rem);
  line-height: 0.82;
  letter-spacing: -0.03em;
  text-align: left;

  color: var(--blue);
}


/* Datum */

.hero-date {
  margin-top: 2rem;

  max-width: none;

  font-size: clamp(1.1rem, 2vw, 1.4rem);
  letter-spacing: 0.08em;

  opacity: 1;
}


/* Ort */

.hero-location {
  margin-top: 0.5rem;

  max-width: none;

  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  letter-spacing: 0.08em;

  opacity: 0.7;
}


/* =========================================================
   COUNTDOWN
   ========================================================= */

.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;

  gap: clamp(0.6rem, 3vw, 3rem);

  margin-top: 4rem;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-number,
.countdown-item span {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
  display: block;
}

.countdown-label,
.countdown-item small {
  display: block;
  margin-top: 0.5rem;

  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;

  opacity: 0.65;
}

.countdown-separator {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
  opacity: 0.4;
}

.countdown-finished {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  letter-spacing: 0.05em;
}


/* =========================================================
   HERO BUTTON
   ========================================================= */

.hero-button {
  display: inline-block;

  margin-top: 4rem;

  padding: 0.9rem 1.6rem;

  border: 1px solid var(--yellow);

  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;

  transition:
    background 0.25s ease,
    color 0.25s ease;
}

.hero-button:hover {
  background: var(--yellow);
  color: var(--blue);
}


/* =========================================================
   SPLIT SECTIONS
   ========================================================= */

.split-section {
  width: 100%;

  display: grid;
  grid-template-columns: 1fr 1fr;

  min-height: 650px;
}


/* =========================================================
   TEXT SEITE
   ========================================================= */

.split-content {
  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: clamp(50px, 8vw, 120px);

  text-align: left;
}


/* Nummer über dem Label */

.section-number {
  margin: 0 0 0.75rem;

  max-width: none;

  font-size: 0.8rem;
  letter-spacing: 0.1em;

  opacity: 0.4;
}


/* Label über Überschrift */

.section-label {
  margin: 0 0 1.5rem;

  max-width: none;

  font-size: 0.75rem;
  line-height: 1;

  text-transform: uppercase;
  letter-spacing: 0.18em;

  opacity: 0.6;
}


/* Überschrift */

.split-content h2 {
  margin-bottom: 2rem;

  text-align: left;
}


/* Text */

.split-content p {
  max-width: 520px;

  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.7;

  opacity: 0.82;
}


/* Mehrere Absätze */

.split-content p + p {
  margin-top: 1.2rem;
}


/* =========================================================
   BILD SEITE
   ========================================================= */

.split-image {
  position: relative;

  min-height: 650px;

  overflow: hidden;
}

.split-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}


/* =========================================================
   ALTERNIERUNG
   ========================================================= */

/*
   Standard:
   Text links / Bild rechts

   .image-left:
   Bild links / Text rechts
*/

.split-section.image-left .split-image {
  order: 1;
}

.split-section.image-left .split-content {
  order: 2;
}

.split-section.image-right .split-content {
  order: 1;
}

.split-section.image-right .split-image {
  order: 2;
}

.split-section.split-reverse .split-content {
  order: 1;
}

.split-section.split-reverse .split-image {
  order: 2;
}


/* =========================================================
   BILDER / ILLUSTRATIONEN
   ========================================================= */

.split-image img {
  transition: transform 0.8s ease;
}

.split-section:hover .split-image img {
  transform: scale(1.025);
}


/* Falls statt Foto eine Illustration verwendet wird */

.split-image.illustration {
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 8vw;
}

.split-image.illustration img {
  width: 80%;
  height: 80%;

  object-fit: contain;
}


/* =========================================================
   INFO ELEMENTE
   ========================================================= */

.info-list,
.accommodation-list,
.witness-list {
  margin-top: 2.5rem;

  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-item,
.accommodation-item,
.witness {
  padding-bottom: 1.5rem;

  border-bottom: 1px solid rgba(244, 236, 130, 0.25);
}

.info-item:last-child,
.accommodation-item:last-child,
.witness:last-child {
  border-bottom: none;
}

.witness-role {
  margin: 0 0 0.5rem;

  max-width: none;

  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;

  opacity: 0.55;
}


/* =========================================================
   DRESSCODE
   ========================================================= */

.dresscode {
  margin-top: 2.5rem;

  text-align: left;
}

.dresscode-title {
  margin: 0 0 1rem;

  max-width: none;

  font-size: 1.1rem;
  opacity: 1;
}

.dresscode ul {
  margin: 0 0 1.5rem;
  padding-left: 1.2rem;

  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dresscode li {
  font-size: 0.95rem;
  opacity: 0.82;
}

.dresscode-note {
  max-width: 500px;

  font-size: 0.9rem;
  font-style: italic;
  opacity: 0.65;
}


/* =========================================================
   GESCHENKE / ZITAT
   ========================================================= */

.gift-quote {
  margin-top: 2rem;

  max-width: 420px;

  font-size: 1.1rem;
  font-style: italic;
  opacity: 0.7;
}

.info-item h3,
.accommodation-item h3,
.witness h3 {
  margin: 0 0 0.5rem;

  font-size: 1.2rem;
}

.info-item p,
.accommodation-item p,
.witness p {
  max-width: 500px;
}


/* =========================================================
   INFO GRID
   ========================================================= */

.info-grid {
  margin-top: 2.5rem;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 2rem;
}

.info-grid .info-item {
  border-bottom: none;
}


/* =========================================================
   LINKS
   ========================================================= */

.text-link {
  display: inline-block;

  margin-top: 2rem;

  padding-bottom: 0.25rem;

  border-bottom: 1px solid var(--yellow);

  font-size: 0.85rem;
  letter-spacing: 0.08em;

  transition: opacity 0.2s ease;
}

.text-link:hover {
  opacity: 0.65;
}


/* =========================================================
   TIMELINE / ABLAUF
   ========================================================= */

.timeline {
  margin-top: 2.5rem;

  display: flex;
  flex-direction: column;

  text-align: left;
}

.timeline-item {
  display: grid;

  grid-template-columns: 80px 1fr;

  gap: 1.5rem;

  padding: 1.25rem 0;

  border-bottom: 1px solid rgba(244, 236, 130, 0.25);
}

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

.timeline-item .time,
.timeline-time {
  font-size: 0.9rem;

  opacity: 0.7;
}

.timeline-item h3 {
  margin: 0 0 0.35rem;

  font-size: 1.15rem;
}

.timeline-item p {
  max-width: 450px;

  font-size: 0.9rem;
}


/* =========================================================
   FAQ
   ========================================================= */

.faq,
.faq-list {
  margin-top: 2rem;

  text-align: left;
}

.faq details,
.faq-list details {
  border-bottom: 1px solid rgba(244, 236, 130, 0.25);

  padding: 1.25rem 0;
}

.faq details:first-child,
.faq-list details:first-child {
  border-top: 1px solid rgba(244, 236, 130, 0.25);
}

.faq summary,
.faq-list summary {
  cursor: pointer;

  list-style: none;

  font-size: 1.05rem;

  padding-right: 2rem;

  position: relative;
}

.faq summary::-webkit-details-marker,
.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq summary::after,
.faq-list summary::after {
  content: "+";

  position: absolute;
  right: 0;
  top: 0;

  font-size: 1.2rem;

  opacity: 0.7;
}

.faq details[open] summary::after,
.faq-list details[open] summary::after {
  content: "−";
}

.faq details p,
.faq-list details p {
  margin-top: 1rem;

  max-width: 500px;

  font-size: 0.95rem;
}


/* =========================================================
   RSVP / ANMELDUNG
   ========================================================= */

.rsvp-form {
  margin-top: 2.5rem;

  display: flex;
  flex-direction: column;

  gap: 1rem;

  max-width: 520px;
}

.rsvp-form label,
.form-label {
  display: block;

  margin-bottom: 0.5rem;

  font-size: 0.8rem;

  letter-spacing: 0.08em;

  text-transform: uppercase;

  opacity: 0.7;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;

  margin-top: 0.5rem;

  font-size: 0.9rem;
  text-transform: none;
  letter-spacing: normal;
  opacity: 0.9;
}

.radio-option input {
  width: auto;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  width: 100%;

  padding: 0.9rem 1rem;

  background: transparent;

  border: 1px solid rgba(244, 236, 130, 0.7);

  color: var(--yellow);

  outline: none;

  border-radius: 0;
}

.rsvp-form input::placeholder,
.rsvp-form textarea::placeholder {
  color: var(--yellow);

  opacity: 0.5;
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
  background: rgba(244, 236, 130, 0.08);
}

.rsvp-form textarea {
  min-height: 130px;

  resize: vertical;
}

.rsvp-form button {
  align-self: flex-start;

  margin-top: 0.5rem;

  padding: 0.9rem 1.7rem;

  background: var(--yellow);

  color: var(--blue);

  border: none;

  border-radius: 0;

  cursor: pointer;

  font-size: 0.8rem;

  letter-spacing: 0.1em;

  text-transform: uppercase;

  transition: opacity 0.2s ease;
}

.rsvp-form button:hover {
  opacity: 0.8;
}


/* =========================================================
   CONTACT
   ========================================================= */

.contact {
  padding-bottom: 120px;
}


/* =========================================================
   WEDDING FOOTER
   ========================================================= */

.wedding-footer,
footer.footer {
  width: 100%;

  padding: 70px 24px;

  text-align: center;

  border-top: 1px solid rgba(244, 236, 130, 0.2);
}

.wedding-footer p,
footer.footer p {
  margin: 0 auto;

  max-width: none;

  font-size: 0.8rem;

  letter-spacing: 0.1em;

  text-transform: uppercase;

  opacity: 0.6;
}

.footer-names {
  font-size: 1.1rem !important;
  opacity: 1 !important;
  margin-bottom: 0.5rem !important;
}

.wedding-footer a,
.footer-link {
  display: inline-block;

  margin-top: 1rem;

  font-size: 0.75rem;

  opacity: 0.5;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 800px) {

  /* Hero */

  .wedding-hero {
    min-height: 100svh;

    padding: 80px 24px;
  }

  .hero-title {
    font-size: clamp(3.8rem, 18vw, 7rem);
  }

  .countdown {
    grid-template-columns: repeat(2, 80px);

    gap: 2rem 2.5rem;

    margin-top: 3rem;
  }


  /* Split Sections */

  .split-section {
    display: flex;

    flex-direction: column;

    min-height: 0;
  }

  .split-content,
  .split-image {
    order: initial !important;
  }

  .split-content {
    padding: 70px 24px;
  }

  .split-content h2 {
    font-size: clamp(2.8rem, 12vw, 4.5rem);

    margin-bottom: 1.5rem;
  }

  .split-image {
    min-height: 55vw;

    height: 75vw;

    max-height: 600px;
  }


  /* Bild zuerst */

  .split-section.image-left .split-image {
    order: 1 !important;
  }

  .split-section.image-left .split-content {
    order: 2 !important;
  }


  /* Text zuerst */

  .split-section.image-right .split-content {
    order: 1 !important;
  }

  .split-section.image-right .split-image {
    order: 2 !important;
  }


  /* Info */

  .info-grid {
    grid-template-columns: 1fr;

    gap: 1.5rem;
  }


  /* Timeline */

  .timeline-item {
    grid-template-columns: 65px 1fr;

    gap: 1rem;
  }
}


/* =========================================================
   KLEINE MOBILE GERÄTE
   ========================================================= */

@media (max-width: 600px) {

  body.login-page {
    padding: 8vw;
  }

  body.login-page h1 {
    font-size: clamp(3rem, 15vw, 5rem);
  }

  .password-form {
    width: min(100%, 260px);
  }

  .wedding-hero {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-kicker {
    margin-bottom: 1.5rem;

    font-size: 0.7rem;
  }

  .hero-date {
    margin-top: 1.5rem;

    font-size: 1rem;
  }

  .hero-location {
    font-size: 0.85rem;
  }

  .countdown {
    grid-template-columns: repeat(2, 70px);

    gap: 1.75rem 1.5rem;
  }

  .countdown-number {
    font-size: 2.4rem;
  }

  .countdown-label {
    font-size: 0.6rem;
  }

  .hero-button {
    margin-top: 3rem;
  }

  .split-content {
    padding: 60px 20px;
  }

  .split-image {
    height: 85vw;
  }

  .timeline-item {
    grid-template-columns: 55px 1fr;

    gap: 0.75rem;
  }

  .timeline-item .time {
    font-size: 0.8rem;
  }

  .timeline-item h3 {
    font-size: 1rem;
  }

  .timeline-item p {
    font-size: 0.85rem;
  }
}


/* =========================================================
   SEHR KLEINE GERÄTE
   ========================================================= */

@media (max-width: 380px) {

  .hero-title {
    font-size: 3.5rem;
  }

  .countdown {
    grid-template-columns: repeat(2, 65px);

    gap: 1.5rem 1rem;
  }

  .countdown-number {
    font-size: 2.1rem;
  }
}