/* ============================================
   Tokens
   ============================================ */
:root {
  --mustard: #f2d980;       /* helles Senfgelb – Hintergrund */
  --mustard-deep: #e0bf55;  /* für Ränder / Hover */
  --charcoal: #2a2723;      /* fast schwarz, warmer Unterton */
  --charcoal-soft: #4a453e; /* für Fließtext, etwas weicher */
  --cream: #fbf6e9;         /* Kartenflächen */
  --olive: #4b5a2f;         /* Akzent: Weizen-/Erntegrün */
  --olive-dark: #384322;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Karla", "Helvetica Neue", Arial, sans-serif;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 2rem;
  --space-4: 4rem;
  --space-5: 6rem;

  --radius: 4px;
  --max-width: 900px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--mustard);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* img { max-width: 100%; display: block; } */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--olive-dark);
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}
/* .wrap {
  width: min(100%, var(--max-width));
  margin-inline: auto;
  padding-inline: var(--space-3);
} */

.infowrap {
  max-width: 70%;
  margin: 0 auto;
  padding: 0 var(--space-3);
}

/* .borderdiv {
  border-style: dotted;
  border-width: 2px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
  margin-bottom: 2rem;
} */

.borderdiv {
  border-style: dotted;
  border-width: 2px;
  border-radius: 12px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-3);
  margin-bottom: 2rem;
}

/* ============================================
   Trauzeugenbox
   ============================================ */
/* .trauzeugenbox {
  margin-top: 3rem;
  border-style: solid;
  border-width: 2px;
  border-radius: 12px;
  padding: var(--space-3);
  min-width: 300px;
}

.trauzeugen-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
} */

.trauzeugen-container {
    padding-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.trauzeugenbox {
    border: 2px solid;
    border-radius: 12px;
    padding: var(--space-3);
    width: 320px;
    box-sizing: border-box;
}

/* Mobilgeräte */
@media (max-width: 768px) {
    .trauzeugen-container {
        gap: 1.5rem;
    }

    .trauzeugenbox {
        width: 100%;
        max-width: 400px;
        border: 2px solid;
        border-radius: 12px;
    }
}

/* ============================================
   Weizen-Signatur (SVG Divider, wiederkehrend)
   ============================================ */
.wheat-divider {
  display: flex;
  justify-content: center;
  margin: var(--space-3) 0;
  color: var(--olive);
}
.wheat-divider svg { height: 28px; width: auto; }

/* ============================================
   Countdown
   ============================================ */
.countdown {
  background: var(--charcoal);
  color: var(--cream);
  padding: var(--space-3) 0;
  position: relative;
  z-index: 1;
}

.countdown__inner {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  text-align: center;
}

.countdown__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 4.5rem;
}

.countdown__value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  line-height: 1;
  color: var(--mustard);
  font-variant-numeric: tabular-nums;
}

.countdown__label {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #d8d2c4;
}

.countdown__sep {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: var(--mustard-deep);
  align-self: flex-start;
  margin-top: 0.1em;
}

.countdown__done {
  display: none;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  margin: 0;
}

@media (max-width: 560px) {
  .countdown__sep { display: none; }
  .countdown__inner { gap: var(--space-2) var(--space-3); }
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  padding: var(--space-5) var(--space-3) var(--space-4);
  text-align: center;
  overflow: hidden;
}

.hero__field {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 120px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='120' viewBox='0 0 60 120'%3E%3Cg stroke='%234b5a2f' stroke-width='2' fill='none' opacity='0.25'%3E%3Cpath d='M10 120 L10 40'/%3E%3Cpath d='M10 40 Q4 30 8 20 Q10 15 10 10'/%3E%3Cpath d='M10 40 Q16 30 12 20 Q10 15 10 10'/%3E%3Cpath d='M40 120 L40 55'/%3E%3Cpath d='M40 55 Q34 45 38 35 Q40 30 40 25'/%3E%3Cpath d='M40 55 Q46 45 42 35 Q40 30 40 25'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: bottom;
  pointer-events: none;
}

.hero__eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--olive-dark);
  font-weight: 700;
}

.hero__names {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 8vw, 5rem);
  margin: var(--space-2) 0 0;
  line-height: 1.05;
}

.hero__names span.amp {
  font-style: italic;
  font-weight: 400;
  color: var(--olive-dark);
  padding: 0 0.15em;
}

.hero__date {
  margin-top: var(--space-2);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.hero__intro {
  max-width: 42ch;
  margin: var(--space-2) auto 0;
  color: var(--charcoal-soft);
}

/* .hero-image {
  width: 80%;
  height: 400px;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  margin: 2rem auto;
} */

.hero-image {
  display: block;
  width: 50%;
  max-width: 100%;
  height: auto;
  margin: 2rem auto;
  border-radius: 50px;
}

.hero-image-schluss {
  display: block !important;
  width: 50% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 2rem auto !important;
}

.hero-image-papageien {
  display: block;
  width: 30%;
  max-width: 100%;
  height: auto;
  margin: 2rem auto;
}

.hero-image-verlobung {
  display: block;
  width: 50%;
  max-width: 100%;
  height: auto;
  margin: 2rem auto;
  border-radius: 50px;
}

.hero-image-titelbild {
  display: block;
  width: 50%;
  max-width: 100%;
  height: auto;
  margin: 2rem auto;
  border-radius: 50px;
}

.bild-container {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.bild-container img {
  position: absolute;
  bottom: 0;
  left: 0;
}

/* ============================================
   Sections generisch
   ============================================ */
section {
  padding: var(--space-4) 0;
  /* white-space: pre-line;
  white-space: pre-wrap; */
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 600;
  margin: 0 0 var(--space-2);
  text-align: center;
  /* white-space: pre-line;
  white-space: pre-wrap; */
}

.section__lede {
  max-width: 58ch;
  margin: 0 auto var(--space-3);
  text-align: center;
  color: var(--charcoal-soft);
  /* white-space: pre-line;
  white-space: pre-wrap; */
}

.section__subtitle {
  font-family: var(--font-display);
  text-align: left;
}

.section__address {
  font-family: 'Courier New', Courier, monospace;
  text-align: center;
  margin-bottom: 2rem;
}

.section__subsubtitle {
  font-weight: bold;
}

.section__texttab {
  padding-left: 2rem;
  text-align: left;
  color: var(--charcoal-soft);
}

.section__text {
  text-align: left;
  color: var(--charcoal-soft);
}

/* .textgroup {
  white-space: pre-line;
  white-space: pre-wrap;
}

.textgroup li {
  position: relative;
  padding: 0 0 var(--space-3) var(--space-3);
} */

.infotext {
  padding: 1rem 0;
}

.anreise {
  padding: 5rem 0;
}

.anreise .textgroup {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  position: relative;
}

.anreise .textgroup::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-accent, #c9a86a);
  border-radius: 999px;
}

.anreise .textgroup li {
  position: relative;
  margin-bottom: 2.5rem;
  padding: 0 0 0 3rem;
}

.anreise .textgroup li:last-child {
  margin-bottom: 0;
}

/* Kreis auf der Linie */
.anreise .textgroup li::before {
  content: "";
  position: absolute;
  left: 0.45rem;
  top: 0.45rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--color-accent, #c9a86a);
  box-sizing: border-box;
}

/* Karte */
.anreise .timeline__title,
.anreise .timeline__text {
  background: #faf8f4;
}

.anreise .timeline__title {
  margin: 0;
  padding: 1rem 1.25rem 0.3rem;
  font-size: 1.25rem;
  font-weight: 600;
  border-radius: 12px 12px 0 0;
}

.anreise .timeline__text {
  margin: 0;
  padding: 0 1.25rem 1.2rem;
  border-radius: 0 0 12px 12px;
  white-space: pre-line;
  line-height: 1.7;
  color: #555;
  box-shadow: 0 4px 12px rgba(0,0,0,.05);
}

/* ============================================
   Ablauf / Timeline (Reihenfolge = echte Info)
   ============================================ */
.timeline {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 640px;
  border-left: 2px solid var(--olive);
}

.timeline li {
  position: relative;
  padding: 0 0 var(--space-3) var(--space-3);
}

.timeline li:last-child { padding-bottom: 0; }

.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  background: var(--mustard);
  border: 2px solid var(--olive);
  border-radius: 50%;
}

.timeline__time {
  font-weight: 700;
  color: var(--olive-dark);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.timeline__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 0.15em 0 0.1em;
}

.timeline__ort {
  font-weight: 700;
  font-size: 0.95rem;
}

.timeline__text {
  color: var(--charcoal-soft);
  margin: 0.2em 0 0;
}

/* ============================================
   Location card
   ============================================ */
.card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: var(--space-3);
  max-width: 640px;
  margin: 0 auto;
  border: 1px solid var(--mustard-deep);
}

.card h3 {
  font-family: var(--font-display);
  margin-top: 0;
  font-size: 1.5rem;
}

.card__meta {
  color: var(--charcoal-soft);
  margin-bottom: var(--space-2);
}

.btn-link {
  display: inline-block;
  font-weight: 700;
  border-bottom: 2px solid var(--olive);
  padding-bottom: 2px;
  text-decoration: none;
}
.btn-link:hover { color: var(--olive); }

/* ============================================
   RSVP Formular
   ============================================ */
.rsvp {
  background: var(--charcoal);
  color: var(--cream);
}

.rsvp .section__title,
.rsvp .section__lede {
  color: var(--cream);
}

.rsvp .section__lede { color: #d8d2c4; }

.rsvp-form {
  /* max-width: 560px; */
  width: 100%;
  margin: 0 auto;
  display: grid;
  gap: var(--space-2);
}

.field {
  display: grid;
  margin-bottom: 1rem;
  gap: 0.4rem;
  /* margin-bottom: 0rem;
  gap: 0.1rem; */
}

.field-within {
  display: grid;
  /* gap: 0.4rem; */
  margin-bottom: 0rem;
  gap: 0.1rem;
}

.field label,
.field-within label {
  font-size: 0.85rem;
  font-weight: 700;
  /* text-transform: uppercase; */
  letter-spacing: 0.06em;
}

.field input,
.field select,
.field textarea,
.field-within input,
.field-within select,
.field-within textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius);
  border: 1px solid #635c4f;
  background: #35312a;
  color: var(--cream);
}

.field input::placeholder,
.field textarea::placeholder,
.field-within input::placeholder,
.field-within textarea::placeholder {
  color: #948c78;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.field-within input:focus,
.field-within select:focus,
.field-within textarea:focus {
  outline: 3px solid var(--mustard);
  outline-offset: 1px;
  border-color: var(--mustard);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}

@media (max-width: 540px) {
  .field-row { grid-template-columns: 1fr; }
}

/* Bedingte Gruppen (Anreise, Übernachtung): bleiben sichtbar,
   werden im inaktiven Zustand nur ausgegraut + deaktiviert */
.conditional-group {
  transition: opacity 0.15s ease;
}

.conditional-group.is-inactive {
  opacity: 0.45;
}

.conditional-group.is-inactive legend,
.conditional-group.is-inactive label {
  cursor: not-allowed;
}

.field input:disabled,
.field select:disabled,
.field textarea:disabled,
.radio-group input:disabled {
  cursor: not-allowed;
}

fieldset {
  border: 1px solid #635c4f;
  border-radius: var(--radius);
  padding: var(--space-2);
  margin-bottom: 0.5rem;
}

fieldset legend {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0 0.4em;
}

.radio-group {
  display: flex;
  /* gap: var(--space-3); */
  gap: var(--space-0);
  flex-wrap: wrap;
}

.radio-group label {
  /* display: flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  font-size: 1rem; */

  font-size: 0.85rem;
  font-weight: 700;
  /* text-transform: uppercase;  */
  letter-spacing: 0.06em;
  padding: 0 0.4em;
}

.submit-btn {
  justify-self: start;
  background: var(--mustard);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  padding: 0.9rem 2rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.submit-btn:hover {
  background: var(--mustard-deep);
}

.submit-btn:focus-visible {
  outline: 3px solid var(--cream);
  outline-offset: 2px;
}

.rsvp-note {
  font-size: 0.85rem;
  color: #b8b09b;
}

.form-success,
.form-error {
  display: none;
  padding: var(--space-2);
  border-radius: var(--radius);
  font-weight: 700;
}
.form-success { background: var(--olive); color: var(--cream); }
.form-error { background: #7a2f2f; color: var(--cream); }

/* ============================================
   Footer
   ============================================ */
footer {
  text-align: center;
  padding: var(--space-3) 0 var(--space-4);
  color: var(--charcoal-soft);
  font-size: 0.9rem;
}

.monogram {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--olive-dark);
  margin-bottom: var(--space-1);
}

/* ============================================
   Mobile Optimierung
   ============================================ */

@media (max-width: 600px) {

  /* Mehr Platz auf kleinen Bildschirmen nutzen */
  .wrap {
    max-width: 100%;
    padding: 0 1rem;
  }

  .infowrap {
    max-width: 100%;
    padding: 0 1rem;
  }

  .borderdiv {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    padding: 1rem;
  }


  /* Bilder auf volle Breite bringen */
  .hero-image,
  .hero-image-schluss,
  .hero-image-verlobung,
  .hero-image-titelbild {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    margin: 1.5rem 0;
    border-radius: 20px;
  }

  /* Papageien-Bild ebenfalls grösser */
  .hero-image-papageien {
    width: 90%;
    max-width: none;
    margin: 1.5rem auto;
  }


  /* Titelbild darf wirklich den ganzen Bildschirm nutzen */
  .hero {
    padding-left: 0;
    padding-right: 0;
  }

  .hero__intro,
  .hero__date,
  .hero__eyebrow,
  .hero__names {
    padding-left: 1rem;
    padding-right: 1rem;
  }


  /* Grössere Schrift auf Handy vermeiden, aber lesbar halten */
  body {
    font-size: 1rem;
  }


  /* Abschnitte weniger Abstand */
  section {
    padding: 2.5rem 0;
  }


  /* Karten nutzen mehr Breite */
  .card {
    max-width: 100%;
    padding: 1.2rem;
    margin: 0 0.5rem;
  }


  /* Timeline besser für Handy */
  .timeline {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
  }


  /* Formular nutzt volle Breite */
  .rsvp-form {
    width: 100%;
  }

}