/* ============================================================
   GRUNDLAGEN
   ============================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--farbe-braun);
  line-height: 1.5;
  background-color: var(--farbe-seite);
  background-image: url("hintergrund.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,0.34), transparent 16%),
    radial-gradient(circle at 88% 22%, rgba(255,255,255,0.28), transparent 13%),
    radial-gradient(circle at 78% 75%, rgba(255,255,255,0.20), transparent 18%);
}

button,
input,
textarea {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.serif {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 400;
}

/* ============================================================
   BÜHNE
   ============================================================ */

.buehne {
  width: min(calc(100vw - 28px), 390px);
  min-height: 100svh;
  margin: 0 auto;
  padding: 20px 14px 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 1;
}

/* ============================================================
   KARTEN
   ============================================================ */

.karte {
  position: relative;
  width: 100%;
  border-radius: 26px;
  background: linear-gradient(145deg, var(--farbe-karte-hell), var(--farbe-karte));
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: 0 22px 55px var(--farbe-schatten), 0 5px 15px rgba(70,42,20,0.08);
  overflow: hidden;
}

.kopf {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  color: var(--farbe-gold-dunkel);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

/* ============================================================
   EINLADUNG
   ============================================================ */

.einladung {
  padding: 20px 16px 24px;
}

.portrait-rahmen {
  position: relative;
  margin: 16px -16px 0;
  height: clamp(245px, 56vw, 300px);
  overflow: hidden;
  background: #d8c5ae;
}

.portrait-rahmen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  display: block;
}

.portrait-rahmen::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(to top, rgba(247,239,226,0.78), transparent);
}

.portrait-bogen {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -50px;
  height: 104px;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(145deg, var(--farbe-karte-hell), var(--farbe-karte));
  z-index: 2;
}

.goldlinie {
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: 30px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--farbe-gold), transparent);
  z-index: 3;
  transform: rotate(-3deg);
  opacity: 0.86;
}

.goldlinie-zwei {
  bottom: 24px;
  opacity: 0.48;
  transform: rotate(-2deg);
}

.zweig {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 54px;
  height: 54px;
  z-index: 4;
  border-right: 1.4px solid rgba(198,154,75,0.9);
  transform: rotate(38deg);
}

.zweig::before,
.zweig::after {
  content: "";
  position: absolute;
  right: 0;
  width: 24px;
  height: 12px;
  border: 1.2px solid rgba(198,154,75,0.8);
  border-left: none;
  border-bottom: none;
  border-radius: 100% 0;
}

.zweig::before {
  top: 14px;
  transform: rotate(-30deg);
}

.zweig::after {
  top: 32px;
  transform: rotate(-16deg);
}

.headline-block {
  text-align: center;
  padding: 30px 4px 0;
}

.headline-oben {
  color: var(--farbe-gold);
  font-size: clamp(32px, 8.8vw, 38px);
  line-height: 0.9;
  font-style: italic;
  margin-bottom: -2px;
}

.headline-gross {
  color: var(--farbe-braun);
  font-size: clamp(48px, 14vw, 58px);
  line-height: 0.92;
  letter-spacing: -0.02em;
}

.headline-unten {
  margin-top: 15px;
  color: var(--farbe-gold-dunkel);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.eckdaten {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.eckdaten-zeile {
  display: grid;
  grid-template-columns: 32px 68px 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dotted var(--farbe-linie);
}

.eckdaten-zeile:last-child {
  border-bottom: none;
}

.icon {
  width: 25px;
  height: 25px;
  color: var(--farbe-gold);
}

.icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eckdaten-label {
  color: var(--farbe-braun-weich);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.eckdaten-wert {
  text-align: right;
  color: var(--farbe-braun);
  font-size: 15px;
  font-weight: 600;
}

.eckdaten-wert strong {
  display: block;
  font-weight: 700;
}

.eckdaten-wert span {
  display: block;
  color: var(--farbe-braun-weich);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
}

.einladung-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
}

.btn,
.btn-senden {
  border-radius: 999px;
  min-height: 52px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.btn:active,
.btn-senden:active,
.pill:active,
.musik-note:active {
  transform: scale(0.97);
}

.btn-primaer {
  color: #fffaf0;
  background: linear-gradient(135deg, #D9AF60, #B98535);
  box-shadow: 0 10px 22px rgba(185,133,53,0.22);
}

.btn-sekundaer {
  color: var(--farbe-braun);
  background: rgba(255,255,255,0.24);
  border-color: rgba(198,154,75,0.72);
}

.btn.aktiv-zusage,
.btn.aktiv-absage {
  box-shadow: 0 0 0 4px rgba(198,154,75,0.16);
}

.musik-note {
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.55);
  background: linear-gradient(135deg, #D9AF60, #A8752F);
  color: #fffaf0;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 26px rgba(70,42,20,0.22);
  cursor: pointer;
  z-index: 6;
}

.musik-note svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.musik-note.spielt {
  animation: pulsieren 1.6s ease-in-out infinite;
}

@keyframes pulsieren {
  0%, 100% { box-shadow: 0 14px 26px rgba(70,42,20,0.22), 0 0 0 0 rgba(198,154,75,0.5); }
  50%      { box-shadow: 0 14px 26px rgba(70,42,20,0.22), 0 0 0 10px rgba(198,154,75,0); }
}

/* ============================================================
   FORMULAR
   ============================================================ */

.formular {
  padding: 20px 16px 24px;
}

.formular.versteckt {
  display: none;
}

.trennlinie {
  height: 1px;
  margin: 16px 0 26px;
  background: linear-gradient(to right, transparent, var(--farbe-gold), transparent);
  opacity: 0.7;
}

.formular-titel {
  text-align: center;
  margin-bottom: 24px;
}

.formular-titel-oben {
  color: var(--farbe-gold-dunkel);
  font-size: 22px;
  line-height: 1.1;
}

.formular-titel-gross {
  color: var(--farbe-braun);
  font-size: 36px;
  line-height: 1.05;
}

.felder {
  display: flex;
  flex-direction: column;
  gap: 17px;
}

.feld-label {
  display: block;
  margin-bottom: 8px;
  color: var(--farbe-braun-weich);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.feld input,
.feld textarea {
  width: 100%;
  border: 1px solid rgba(155,113,50,0.28);
  border-radius: 15px;
  background: rgba(255,255,255,0.34);
  color: var(--farbe-braun);
  outline: none;
  padding: 14px 16px;
  font-size: 15px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.feld textarea {
  min-height: 96px;
  resize: vertical;
}

.feld input::placeholder,
.feld textarea::placeholder {
  color: rgba(109,89,69,0.55);
}

.feld input:focus,
.feld textarea:focus {
  border-color: rgba(198,154,75,0.8);
  background: rgba(255,255,255,0.55);
  box-shadow: 0 0 0 4px rgba(198,154,75,0.12);
}

.begleitung {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.pill {
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(155,113,50,0.28);
  background: rgba(255,255,255,0.26);
  color: var(--farbe-braun);
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.pill.aktiv {
  background: rgba(198,154,75,0.22);
  border-color: rgba(198,154,75,0.62);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.32);
}

.btn-senden {
  width: 100%;
  margin-top: 24px;
  color: #F7EFE2;
  background: linear-gradient(135deg, #4B321E, #2E1E12);
  box-shadow: 0 12px 25px rgba(52,35,21,0.22);
}

.herztrenner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--farbe-gold);
  margin-top: 24px;
}

.herztrenner span {
  width: 42px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--farbe-gold));
}

.herztrenner span:last-child {
  background: linear-gradient(to left, transparent, var(--farbe-gold));
}

.herztrenner b {
  font-size: 23px;
  font-weight: 400;
}

.bestaetigung {
  display: none;
  text-align: center;
  padding: 44px 16px 28px;
}

.bestaetigung.sichtbar {
  display: block;
  animation: einblenden 0.5s ease;
}

.bestaetigung-haken {
  width: 62px;
  height: 62px;
  margin: 0 auto 22px;
  border-radius: 50%;
  border: 1px solid rgba(198,154,75,0.62);
  display: grid;
  place-items: center;
}

.bestaetigung-haken svg {
  width: 25px;
  height: 25px;
  stroke: var(--farbe-gold-dunkel);
  fill: none;
  stroke-width: 1.7;
}

.bestaetigung-titel {
  color: var(--farbe-braun);
  font-size: 40px;
  margin-bottom: 8px;
}

.bestaetigung-text {
  color: var(--farbe-braun-weich);
  font-size: 15px;
}

@keyframes einblenden {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.copyright {
  text-align: center;
  color: rgba(52,35,21,0.52);
  font-size: 12px;
  padding: 2px 0 18px;
}

/* ============================================================
   RESPONSIVE - Handy zuerst sauber begrenzen
   ============================================================ */

@media (max-width: 430px) {
  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  body {
    background-attachment: scroll;
    background-position: center top;
  }

  .buehne {
    width: calc(100vw - 18px);
    max-width: 330px;
    min-height: auto;
    padding: 10px 0 18px;
    gap: 13px;
  }

  .karte {
    border-radius: 21px;
    box-shadow: 0 14px 34px rgba(70,42,20,0.16), 0 3px 10px rgba(70,42,20,0.08);
  }

  .einladung,
  .formular {
    padding: 14px 13px 18px;
  }

  .kopf {
    font-size: 8.5px;
    letter-spacing: 0.2em;
  }

  .portrait-rahmen {
    margin: 12px -13px 0;
    height: clamp(218px, 66vw, 246px);
  }

  .portrait-rahmen img {
    object-fit: cover;
    object-position: center 34%;
  }

  .portrait-bogen {
    bottom: -48px;
    height: 88px;
  }

  .goldlinie {
    bottom: 22px;
  }

  .goldlinie-zwei {
    bottom: 18px;
  }

  .zweig {
    right: 14px;
    bottom: 18px;
    width: 39px;
    height: 39px;
  }

  .headline-block {
    padding: 24px 2px 0;
  }

  .headline-oben {
    font-size: clamp(25px, 8vw, 30px);
  }

  .headline-gross {
    font-size: clamp(37px, 11.8vw, 44px);
    line-height: 0.94;
  }

  .headline-unten {
    margin-top: 10px;
    font-size: 8.6px;
    letter-spacing: 0.17em;
  }

  .eckdaten {
    margin-top: 14px;
  }

  .eckdaten-zeile {
    grid-template-columns: 21px 43px 1fr;
    gap: 6px;
    padding: 8px 0;
  }

  .icon {
    width: 18px;
    height: 18px;
  }

  .eckdaten-label {
    font-size: 8px;
    letter-spacing: 0.15em;
  }

  .eckdaten-wert {
    font-size: 11.2px;
    line-height: 1.2;
  }

  .eckdaten-wert span {
    font-size: 9.4px;
  }

  .einladung-buttons {
    gap: 8px;
    margin-top: 14px;
  }

  .btn,
  .btn-senden {
    min-height: 40px;
    font-size: 9px;
    letter-spacing: 0.14em;
  }

  .musik-note {
    width: 40px;
    height: 40px;
    right: -4px;
    bottom: -6px;
  }

  .musik-note svg {
    width: 18px;
    height: 18px;
  }

  .trennlinie {
    margin: 12px 0 18px;
  }

  .formular-titel {
    margin-bottom: 16px;
  }

  .formular-titel-oben {
    font-size: 16px;
  }

  .formular-titel-gross {
    font-size: 26px;
  }

  .felder {
    gap: 12px;
  }

  .feld-label {
    margin-bottom: 6px;
    font-size: 8.3px;
    letter-spacing: 0.17em;
  }

  .feld input,
  .feld textarea {
    padding: 10px 11px;
    border-radius: 13px;
    font-size: 13px;
  }

  .feld textarea {
    min-height: 70px;
  }

  .begleitung {
    gap: 7px;
  }

  .pill {
    min-height: 34px;
    font-size: 12px;
  }

  .btn-senden {
    margin-top: 17px;
  }

  .herztrenner {
    margin-top: 18px;
  }
}

@media (max-width: 360px) {
  .buehne {
    width: calc(100vw - 14px);
    max-width: 312px;
  }

  .portrait-rahmen {
    height: 205px;
  }

  .headline-gross {
    font-size: 36px;
  }

  .headline-oben {
    font-size: 24px;
  }

  .headline-unten {
    font-size: 8px;
  }

  .eckdaten-zeile {
    grid-template-columns: 19px 39px 1fr;
  }

  .eckdaten-wert {
    font-size: 10.4px;
  }

  .eckdaten-wert span {
    font-size: 8.8px;
  }
}

@media (min-width: 431px) and (max-width: 759px) {
  .buehne {
    width: calc(100vw - 28px);
    max-width: 370px;
    padding-top: 18px;
  }

  .portrait-rahmen {
    height: 270px;
  }

  .portrait-rahmen img {
    object-position: center 34%;
  }
}

@media (min-width: 760px) {
  .buehne {
    width: min(100%, 390px);
    padding-top: 42px;
  }
}
