/* ==========================================================
   NIC Funnel IMMO × DINE (go.nussbaumerinvestmentclub.com/immoxdine)
   Baut auf style.css, funnel.css und circle.css auf. Eigene Bausteine mit Präfix dx-.
   Wie eine Einladung: Deep Navy, Anthrazit, Off-White, Gold nur für Linien und Akzente. Mobile first.
   ========================================================== */

/* ---------- Hero: Text links, Blick in den Salon rechts (Handy: Bild als Hintergrund) ---------- */
.dx-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); min-height: 100vh; min-height: 100svh; background: var(--navy); color: var(--paper); isolation: isolate; }
.dx-hero__text { grid-column: 1; grid-row: 1; align-self: center; padding: 130px clamp(24px, 6vw, 96px) 64px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); max-width: 780px; }
.dx-hero__media { grid-column: 2; grid-row: 1; position: relative; margin: 0; overflow: hidden; }
.dx-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; animation: dx-settle 2.4s var(--ease-slow) both; }
.dx-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy) 0%, rgba(18, 23, 34, .35) 22%, rgba(18, 23, 34, 0) 45%); pointer-events: none; }
.dx-hero__media figcaption { position: absolute; right: 22px; bottom: 20px; z-index: 1; font-size: .6rem; letter-spacing: .26em; text-transform: uppercase; color: rgba(244, 239, 232, .7); }
.dx-hero h1 { font-size: clamp(2.3rem, 4.6vw, 4.3rem); line-height: 1.04; margin: 0 0 .5em; color: var(--paper); }
.dx-hero h1 em { display: block; color: var(--ci-gold); }
.dx-nw { white-space: nowrap; }
@keyframes dx-settle { from { transform: scale(1.06); opacity: .4; } to { transform: none; opacity: 1; } }

/* Termin, Ort, Beitrag (nur Modus „Termin steht fest“) */
.dx-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; margin: 0 0 30px; border-top: 1px solid var(--line-light); max-width: 620px; }
.dx-facts > div { padding: 14px 18px 14px 0; border-bottom: 1px solid var(--line-light); }
.dx-facts dt { font-size: .6rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--ci-gold); margin-bottom: 4px; }
.dx-facts dd { margin: 0; font-family: var(--serif); font-size: 1.12rem; line-height: 1.3; color: var(--paper); }
.dx-facts--center { margin: 6px auto 8px; width: 100%; text-align: left; }
.dx-facts--form { border-top-color: var(--line); margin: 0 0 22px; }
.dx-facts--form > div { border-bottom-color: var(--line); }
.dx-facts--form dt { color: var(--gold-text); }
.dx-facts--form dd { color: var(--ink); font-size: 1rem; }

/* ---------- Das Erlebnis ---------- */
.dx-lines p:first-child { font-family: var(--serif); font-size: clamp(1.25rem, 1.9vw, 1.65rem); line-height: 1.4; color: var(--ink); }
.dx-points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 64px); border-top: 1px solid var(--line); padding-top: clamp(32px, 4vw, 52px); }
.dx-points h3 { font-size: clamp(1.25rem, 1.6vw, 1.5rem); margin: 18px 0 .5em; }
.dx-points p { margin: 0; color: var(--muted); }

/* ---------- Der Abend in Bildern ---------- */
.dx-look__grid { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.dx-look__film { max-width: none; }
.dx-gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(8px, 1vw, 14px); }
.dx-gallery button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: zoom-in; overflow: hidden; }
.dx-gallery img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; opacity: .9; transition: transform 1.4s var(--ease-slow), opacity .5s; }
.dx-gallery button:hover img, .dx-gallery button:focus-visible img { transform: scale(1.04); opacity: 1; }
.dx-gallery button:focus-visible { outline: 1px solid var(--ci-gold); outline-offset: 3px; }
.dx-look__line { margin: clamp(56px, 7vw, 96px) 0 0; text-align: center; font-family: var(--serif); font-size: clamp(1.7rem, 3.2vw, 2.8rem); color: var(--paper); }
.dx-look__line em { color: var(--ci-gold); }
.dx-look .ci-cta--center { margin-top: 28px; }

/* ---------- Gastgeber ---------- */
.dx-hosts__key { font-family: var(--serif); font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.45; color: var(--paper); padding-left: 20px; border-left: 1px solid var(--ci-gold); }
.dx-proof { margin-top: clamp(32px, 4vw, 48px); }

/* ---------- Für wen ---------- */
.dx-who__close { max-width: 46em; margin: clamp(40px, 5vw, 64px) 0 0; font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--muted); }
.dx-who__close em { display: block; margin-top: 6px; font-family: var(--serif); font-size: clamp(1.25rem, 1.8vw, 1.55rem); line-height: 1.4; color: var(--burgundy); }

/* ---------- Abschluss und Fragen (dunkel) ---------- */
.dx-final .ci-eyebrow { margin-bottom: 22px; }
.dx-faq { width: 100%; max-width: 720px; margin-top: clamp(56px, 7vw, 88px); text-align: left; }
.dx-faq details { border-top: 1px solid var(--line-light); }
.dx-faq details:last-child { border-bottom: 1px solid var(--line-light); }
.dx-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 24px; padding: 20px 0; font-family: var(--serif); font-size: clamp(1.08rem, 1.4vw, 1.25rem); color: var(--paper); }
.dx-faq summary::-webkit-details-marker { display: none; }
.dx-faq summary::after { content: "+"; color: var(--ci-gold); font-family: var(--sans); font-weight: 300; font-size: 1.5rem; line-height: 1; transition: transform .4s var(--ease); }
.dx-faq details[open] summary::after { transform: rotate(45deg); }
.dx-faq summary:focus-visible { outline: 1px solid var(--ci-gold); outline-offset: 4px; }
.dx-faq p { margin: 0; padding: 0 40px 22px 0; color: rgba(244, 239, 232, .74); }

/* ---------- Formular ---------- */
.dx-opt { font-weight: 300; font-size: .82em; color: var(--muted); margin-left: 4px; }
.dx-choice { margin-top: 6px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dx-choice legend, .dx-choice .fn-error { grid-column: 1 / -1; }
.dx-choice label { margin: 0; padding: 10px 12px; font-size: .9rem; align-items: center; }
.dx-dialog textarea { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid var(--line); background: #fff; resize: vertical; }
.dx-done { text-align: center; }
.dx-done .fn-final__ornament { justify-content: center; }
.dx-done__note { margin: 0 auto 14px; max-width: 30em; padding: 12px 16px; border-left: 2px solid var(--burgundy); text-align: left; font-size: .92rem; color: var(--ink); background: var(--paper); }
.dx-done__mail { font-size: .88rem; color: var(--muted); }
.dx-done .ci-btn { margin-top: 10px; }

/* ---------- Handy und Tablet ---------- */
@media (max-width: 960px) {
  .dx-hero { display: block; min-height: 0; }
  .dx-hero__media { position: absolute; inset: 0; z-index: -1; }
  .dx-hero__media img { top: -18%; height: 118%; object-position: 50% 50%; }
  .dx-hero__media::after { background: linear-gradient(180deg, rgba(18, 23, 34, .55) 0%, rgba(18, 23, 34, .15) 22%, rgba(18, 23, 34, .45) 50%, rgba(18, 23, 34, .85) 68%, rgba(18, 23, 34, .96) 100%); }
  .dx-hero__media figcaption { display: none; }
  .dx-hero__text { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 120px var(--gutter) 40px; }
  .dx-points { grid-template-columns: 1fr; gap: 28px; }
  .dx-look__grid { grid-template-columns: 1fr; }
  .dx-look__film { max-width: 250px; justify-self: center; }
  /* Am Handy: Bilder waagrecht wischen statt untereinander, die nächste Aufnahme ist angeschnitten sichtbar */
  .dx-gallery { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; scroll-padding: 0 var(--gutter); scrollbar-width: none; }
  .dx-gallery::-webkit-scrollbar { display: none; }
  .dx-gallery li { flex: 0 0 58%; scroll-snap-align: start; }
}
@media (max-width: 720px) {
  .dx-hero h1 { font-size: clamp(2.1rem, 9vw, 2.6rem); }
  .dx .ci-btn { white-space: nowrap; justify-content: center; letter-spacing: .06em; font-size: .64rem; gap: 10px; padding: 16px 14px; }
  .dx .ci-cta .ci-btn { width: 100%; }
  .dx .ci-cta { align-items: stretch; }
  .dx .ci-cta__note { text-align: center; }
  .dx-facts { grid-template-columns: 1fr 1fr; }
  .dx-faq p { padding-right: 0; }
}
@media (max-width: 350px) { .dx .ci-btn { white-space: normal; text-align: center; } }
@media (prefers-reduced-motion: reduce) {
  .dx-hero__media img { animation: none; }
  .dx-gallery img { transition: none; }
}
