/* Event starten — Marketing (Create-Modus), Apple-inspiriert, feste Copy */

body[data-ce-mode="create"] .ceEditHeader {
  display: none;
}

.ceMarketingShell {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.ceMarketingShell[hidden] {
  display: none !important;
}

.ceMarketingShell__inner {
  width: 100%;
  max-width: min(920px, 94vw);
  margin: 0 auto;
  padding: clamp(12px, 2.5vw, 32px) clamp(16px, 3vw, 28px) clamp(24px, 4vh, 48px);
  box-sizing: border-box;
}

/* ---- Reveal (Intersection Observer setzt .ceMktReveal--visible) ---- */
[data-ce-mkt-reveal] {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-ce-mkt-reveal].ceMktReveal--visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  [data-ce-mkt-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---- Hero ---- */
.ceMktHero {
  margin-bottom: clamp(48px, 8vw, 96px);
}

.ceMktHero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(16px, 2.5vw, 28px);
  align-items: center;
}

@media (max-width: 1024px) {
  .ceMktHero__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.ceMktHero__headline {
  margin: 0 0 clamp(14px, 2vw, 22px);
  font-size: clamp(28px, 3.6vw, 48px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: rgba(255, 255, 255, 0.96);
  text-wrap: balance;
}

.ceMktHero__sub {
  margin: 0 0 12px;
  max-width: 38rem;
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.58);
}

.ceMktHero__support {
  margin: 0 0 clamp(24px, 3.5vw, 36px);
  max-width: 34rem;
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.45);
}

.ceMktHero__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.ceMktHero__ctaHint {
  margin: 0;
  max-width: 26rem;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.38);
}

/* Hero-Bild ohne Kasten (kein Rand / keine abgerundete Box) */
.ceMktHero__banner {
  border-radius: 0;
  overflow: visible;
  min-height: clamp(200px, 22vw, 320px);
  border: none;
  background: transparent;
  box-shadow: none;
}

.ceMktHero__bannerInner {
  width: 100%;
  height: 100%;
  min-height: inherit;
  min-width: 0;
}

.ceMktHero__bannerImg {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  border-radius: 18px; /* wie .ceMktCard */
  object-fit: cover;
  /* Vertikal näher zur Mitte – weniger Leerraum oben, Motiv wirkt zentrierter */
  object-position: center 48%;
}

/* ---- Visuelles Banner (CTA-Block oder .ceMktOutro am Seitenende) ---- */
.ceMktVisual {
  text-align: center;
}

.ceMktFinal__banner.ceMktVisual {
  margin: 0;
  width: 100%;
  max-width: 100%;
}

.ceMktVisual__caption {
  margin: 0 0 clamp(16px, 2vw, 24px);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 600;
}

.ceMktVisual__frame {
  margin: 0 auto;
  max-width: 100%;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  aspect-ratio: 21 / 9;
  min-height: 200px;
  background: rgba(255, 255, 255, 0.02);
}

.ceMktVisual__ph {
  width: 100%;
  height: 100%;
  min-height: 200px;
  background:
    radial-gradient(ellipse 70% 90% at 50% 50%, rgba(255, 255, 255, 0.06), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.2));
}

.ceMktVisual__img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center center;
}

/* ---- 5 Kernpunkte: 3 + 2 ---- */
.ceMktPoints {
  margin-bottom: clamp(48px, 8vw, 96px);
}

.ceMktPoints__row {
  display: grid;
  gap: clamp(10px, 1.5vw, 16px);
  margin-bottom: clamp(10px, 1.5vw, 16px);
}

.ceMktPoints__row--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Zwei Kacheln: gleiche Breite wie eine Spalte der 3er-Zeile, zentriert */
.ceMktPoints__row--2 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 0;
}

.ceMktPoints__row--2 .ceMktCard {
  flex: 0 0 calc((100% - 2 * clamp(10px, 1.5vw, 16px)) / 3);
  max-width: calc((100% - 2 * clamp(10px, 1.5vw, 16px)) / 3);
  min-width: 0;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .ceMktPoints__row--3 {
    grid-template-columns: 1fr;
  }
  .ceMktPoints__row--2 {
    flex-direction: column;
    align-items: stretch;
  }
  .ceMktPoints__row--2 .ceMktCard {
    flex: 1 1 auto;
    max-width: none;
    width: 100%;
  }
}

.ceMktCard {
  padding: clamp(20px, 2.5vw, 28px);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.ceMktCard:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .ceMktCard {
    transition: none;
  }
  .ceMktCard:hover {
    transform: none;
  }
}

.ceMktCard__title {
  margin: 0 0 10px;
  font-size: clamp(16px, 1.25vw, 18px);
  font-weight: 600;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: -0.02em;
}

.ceMktCard__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.52);
}

/* ---- Final: Banner + CTA (unten, ohne äußeren Kasten) ---- */
.ceMktFinal {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(14px, 2.2vw, 22px);
  padding: clamp(24px, 4vw, 40px) 0 clamp(8px, 2vw, 16px);
  max-width: 100%;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ceMktFinal__headline {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.96);
}

.ceMktFinal__sub {
  margin: 0 auto;
  max-width: 28rem;
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.5);
}

/* ---- Buttons (bestehende Marke) ---- */
.ceMarketingCta {
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  padding: 14px 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 62, 76, 0.98), rgba(210, 38, 54, 0.98));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14) inset,
    0 12px 36px rgba(255, 30, 45, 0.26),
    0 4px 14px rgba(0, 0, 0, 0.32);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, opacity 0.2s ease;
}

.ceMarketingCta:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18) inset,
    0 16px 44px rgba(255, 30, 45, 0.32),
    0 6px 18px rgba(0, 0, 0, 0.38);
}

.ceMarketingCta:active:not(:disabled) {
  transform: translateY(0);
}

.ceMarketingCta:disabled {
  opacity: 0.55;
  cursor: wait;
}

.ceMarketingCta--final {
  padding: 15px 32px;
  font-size: 15px;
}

@media (prefers-reduced-motion: reduce) {
  .ceMarketingCta {
    transition: opacity 0.2s ease;
  }
  .ceMarketingCta:hover:not(:disabled) {
    transform: none;
  }
}

.ceMarketingShell__error {
  margin: 0 0 20px !important;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fecaca !important;
}

/* =============================================================================
   Create-Modus: One-Pager ohne Scroll — kompakte Typo & Abstände (vh-skalierend)
   ============================================================================= */
body[data-ce-mode="create"] .ceMarketingShell {
  flex: 1;
  min-height: 0;
  width: 100%;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Begrenzte Breite, zentriert — fluchtet mit Topbar-Text („Event …“ bis „Zurück“) */
body[data-ce-mode="create"] .ceMarketingShell__inner {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* Freiraum zwischen Hero → Kacheln → CTA → Outro verteilen, nicht als Block unten */
  justify-content: space-between;
  gap: clamp(12px, 1.8vh, 24px);
  padding: clamp(8px, 1.2vh, 16px) 0 clamp(12px, 1.8vh, 22px);
  width: 100%;
  max-width: min(1040px, 100%);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

body[data-ce-mode="create"] [data-ce-mkt-reveal] {
  opacity: 1;
  transform: none;
  transition: none;
}

body[data-ce-mode="create"] .ceMktHero {
  margin-bottom: 0;
  padding-bottom: 0;
  flex-shrink: 0;
}

body[data-ce-mode="create"] .ceMktHero__grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px 18px;
  align-items: center;
}

@media (max-width: 720px) {
  body[data-ce-mode="create"] .ceMktHero__grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

body[data-ce-mode="create"] .ceMktHero__headline {
  margin: 0 0 10px;
  font-size: clamp(24px, 4vh, 42px);
  line-height: 1.08;
}

body[data-ce-mode="create"] .ceMktHero__sub {
  margin: 0 0 8px;
  font-size: clamp(14px, 2vh, 18px);
  line-height: 1.45;
  max-width: none;
}

body[data-ce-mode="create"] .ceMktHero__support {
  margin: 0 0 10px;
  font-size: clamp(13px, 1.75vh, 16px);
  line-height: 1.45;
  max-width: none;
}

body[data-ce-mode="create"] .ceMktHero__cta {
  gap: 7px;
}

body[data-ce-mode="create"] .ceMktHero__ctaHint {
  font-size: 10px;
  line-height: 1.35;
  max-width: 22rem;
}

body[data-ce-mode="create"] .ceMktHero__banner {
  min-height: 0;
  height: clamp(110px, 22vh, 200px);
  border-radius: 0;
  border: none;
  background: transparent;
  overflow: visible;
  box-shadow: none;
}

body[data-ce-mode="create"] .ceMktHero__bannerImg {
  min-height: 0;
  border-radius: 14px; /* wie body[data-ce-mode="create"] .ceMktCard */
}

/* Banner + Caption nur noch im Abschluss-Block */
body[data-ce-mode="create"] .ceMktFinal__banner {
  flex-shrink: 0;
  width: 100%;
}

body[data-ce-mode="create"] .ceMktFinal__banner .ceMktVisual__caption {
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: 100%;
  margin: clamp(14px, 2.2vh, 26px) auto;
  padding: 0 clamp(4px, 1.5vw, 12px);
  font-size: clamp(11px, 1.35vh, 14px);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-transform: none;
  text-align: center;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body[data-ce-mode="create"] .ceMktFinal__banner .ceMktVisual__frame {
  border-radius: 14px; /* wie .ceMktCard */
  aspect-ratio: auto;
  height: clamp(48px, 8.5vh, 86px);
  min-height: 0;
  width: 100%;
  max-width: min(840px, 88%);
  margin-left: auto;
  margin-right: auto;
  border: none;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

body[data-ce-mode="create"] .ceMktFinal__banner .ceMktVisual__img {
  min-height: 0;
  border-radius: 14px;
}

/* Etwas „knackiger“ wirken (Kontrast); translateZ oft bessere Skalierung auf GPU */
body[data-ce-mode="create"] .ceMktHero__bannerImg,
body[data-ce-mode="create"] .ceMktFinal__banner .ceMktVisual__img {
  filter: contrast(1.06) saturate(1.03);
  transform: translateZ(0);
  backface-visibility: hidden;
}

body[data-ce-mode="create"] .ceMktBottomGroup {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 100%;
  flex-shrink: 0;
  min-height: 0;
}

body[data-ce-mode="create"] .ceMktOutro {
  flex-shrink: 0;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Kacheln unter Hero, CTA darunter; kein flex-grow → keine künstliche Leerfläche */
body[data-ce-mode="create"] .ceMktPoints {
  margin-top: clamp(14px, 2.4vh, 30px);
  margin-bottom: 0;
  padding: 0;
  flex: 0 0 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
}

body[data-ce-mode="create"] .ceMktPoints__row {
  gap: clamp(8px, 1.1vh, 14px);
  margin-bottom: clamp(8px, 1.1vh, 14px);
}

body[data-ce-mode="create"] .ceMktPoints__row--2 {
  margin-bottom: 0;
}

body[data-ce-mode="create"] .ceMktPoints__row--2 .ceMktCard {
  flex: 0 0 calc((100% - 2 * clamp(8px, 1.1vh, 14px)) / 3);
  max-width: calc((100% - 2 * clamp(8px, 1.1vh, 14px)) / 3);
}

body[data-ce-mode="create"] .ceMktCard {
  padding: clamp(14px, 1.8vh, 20px) clamp(16px, 2vw, 22px);
  border-radius: 14px;
  min-height: clamp(72px, 12vh, 112px);
}

body[data-ce-mode="create"] .ceMktCard:hover {
  transform: translateY(-1px);
}

body[data-ce-mode="create"] .ceMktCard__title {
  margin: 0 0 6px;
  font-size: clamp(14px, 1.85vh, 17px);
  line-height: 1.22;
}

body[data-ce-mode="create"] .ceMktCard__text {
  font-size: clamp(12px, 1.5vh, 14px);
  line-height: 1.4;
}

@media (max-width: 900px) {
  body[data-ce-mode="create"] .ceMktBottomGroup {
    display: contents;
  }
  body[data-ce-mode="create"] .ceMktHero {
    order: 1;
  }
  body[data-ce-mode="create"] .ceMktFinal {
    order: 2;
    margin-top: 6px;
  }
  body[data-ce-mode="create"] .ceMktPoints {
    order: 3;
  }
  body[data-ce-mode="create"] .ceMktOutro {
    order: 4;
  }
  body[data-ce-mode="create"] .ceMktPoints__row--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body[data-ce-mode="create"] .ceMktPoints__row--2 {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
  }
  body[data-ce-mode="create"] .ceMktPoints__row--2 .ceMktCard {
    flex: 0 0 calc((100% - clamp(8px, 1.1vh, 14px)) / 2);
    max-width: calc((100% - clamp(8px, 1.1vh, 14px)) / 2);
  }
}

@media (max-width: 520px) {
  body[data-ce-mode="create"] .ceMktPoints__row--3 {
    grid-template-columns: 1fr;
  }
  body[data-ce-mode="create"] .ceMktPoints__row--2 {
    flex-direction: column;
    align-items: stretch;
  }
  body[data-ce-mode="create"] .ceMktPoints__row--2 .ceMktCard {
    flex: 1 1 auto;
    max-width: none;
    width: 100%;
  }
}

body[data-ce-mode="create"] .ceMktFinal {
  width: 100%;
  padding: clamp(8px, 1.2vh, 16px) 0 0;
  border-radius: 0;
  flex-shrink: 0;
  margin-top: clamp(-12px, -1.4vh, -4px);
  margin-bottom: 0;
  gap: clamp(8px, 1.2vh, 14px);
}

body[data-ce-mode="create"] .ceMktFinal__headline {
  margin: 0;
  font-size: clamp(20px, 2.9vh, 28px);
  line-height: 1.12;
}

body[data-ce-mode="create"] .ceMktFinal__sub {
  margin: 0 auto;
  font-size: clamp(13px, 1.65vh, 15px);
  line-height: 1.4;
}

body[data-ce-mode="create"] .ceMarketingCta {
  padding: 10px 22px;
  font-size: 13px;
}

body[data-ce-mode="create"] .ceMarketingCta--final {
  padding: 11px 26px;
  font-size: 13.5px;
}

.ceWizardModeModal__card {
  width: min(620px, calc(100vw - 32px));
  border-radius: 18px;
}

.ceWizardModeModal__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ceWizardModeModal__lead {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.5;
}

.ceWizardModeModal__hint {
  margin: 0;
}

.ceWizardModeModal__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 6px;
}

.ceWizardModeBtn {
  appearance: none;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 14px;
  text-align: left;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.35;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

.ceWizardModeBtn--primary {
  background: linear-gradient(180deg, rgba(255, 62, 76, 0.96), rgba(210, 38, 54, 0.94));
  border-color: rgba(255, 90, 102, 0.9);
}

.ceWizardModeBtn--secondary {
  background: rgba(255, 255, 255, 0.04);
}

.ceWizardModeBtn:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.36);
}

.ceWizardModeBtn:disabled {
  cursor: wait;
  opacity: 0.56;
}

@media (prefers-reduced-motion: reduce) {
  .ceWizardModeBtn {
    transition: opacity 0.2s ease;
  }

  .ceWizardModeBtn:hover:not(:disabled) {
    transform: none;
  }
}

@media (max-height: 700px) {
  body[data-ce-mode="create"] .ceMarketingShell__inner {
    justify-content: flex-start;
    gap: clamp(10px, 1.5vh, 18px);
    padding: clamp(6px, 1vh, 12px) 0 clamp(8px, 1.2vh, 14px);
  }
  body[data-ce-mode="create"] .ceMktHero__banner {
    height: clamp(80px, 16vh, 140px);
  }
  body[data-ce-mode="create"] .ceMktFinal__banner .ceMktVisual__frame {
    height: clamp(36px, 7vh, 64px);
  }
  body[data-ce-mode="create"] .ceMktPoints {
    padding: 0;
    margin-top: clamp(8px, 1.6vh, 18px);
  }
  body[data-ce-mode="create"] .ceMktCard {
    padding: 10px 12px;
    min-height: clamp(56px, 9vh, 88px);
  }
  body[data-ce-mode="create"] .ceMktFinal {
    margin-top: clamp(-8px, -1vh, -3px);
    padding: 2px 0 0;
    gap: clamp(4px, 0.8vh, 8px);
  }
  body[data-ce-mode="create"] .ceMktFinal__banner .ceMktVisual__caption {
    margin: clamp(8px, 1.4vh, 16px) auto;
  }
}
