/* =====================================================================
   S2C Leitfaden-Cards + Modal · Plugin-Version
   ===================================================================== */

.s2c-lg-section {
  --lg-violet:#a78bfa;
  --lg-violet-d:#7c3aed;
  --lg-pink:#ec4899;
  --lg-emerald:#34d399;
  --lg-emerald-d:#10b981;
  --lg-yellow:#fcd34d;
  --lg-border:rgba(167,139,250,.18);
  --lg-border-hi:rgba(167,139,250,.45);
  --lg-text:#fff;
  --lg-dim:rgba(246,243,255,.82);
  --lg-mute:rgba(246,243,255,.55);
  --lg-grad:linear-gradient(120deg,#7c3aed 0%,#ec4899 100%);
  --lg-ease:cubic-bezier(.16,1,.3,1);
}

.s2c-lg-section .lg-dual {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 3vw, 40px);
}

.lg-card {
  position: relative;
  background:
    radial-gradient(900px 360px at 100% 0%, rgba(167,139,250,.10), transparent 60%),
    rgba(20,12,38,.82);
  border: 1px solid rgba(110,74,177,.5);
  border-radius: 28px;
  padding: clamp(28px, 3.5vw, 56px);
  overflow: hidden;
  transition: transform .4s var(--lg-ease), border-color .4s, box-shadow .4s;
  color: var(--lg-text);
  cursor: pointer;
}
.lg-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--lg-violet), var(--lg-pink), transparent);
  opacity: .65;
}
.lg-card[data-leitfaden="webseiten"]::before {
  background: linear-gradient(90deg, transparent, rgba(52,211,153,.85), var(--lg-violet), transparent);
}
.lg-card:hover {
  transform: translateY(-6px);
  border-color: rgba(167,139,250,.75);
  box-shadow: 0 38px 80px rgba(0,0,0,.55), 0 0 100px rgba(167,139,250,.22);
}
.lg-card[data-leitfaden="webseiten"]:hover {
  box-shadow: 0 38px 80px rgba(0,0,0,.55), 0 0 100px rgba(52,211,153,.22);
}

.lg-card__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 3.5vw, 60px);
  align-items: center;
}
@media (max-width: 880px) {
  .lg-card__inner { grid-template-columns: 1fr; gap: clamp(28px, 4vw, 48px); }
}
.lg-card__text { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.lg-card__tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
  margin-bottom: 14px;
}
.lg-card__tag--web {
  color: var(--lg-emerald);
  background: rgba(52,211,153,.10);
  border: 1px solid rgba(52,211,153,.36);
}
.lg-card__tag--lp {
  color: var(--lg-pink);
  background: rgba(236,72,153,.10);
  border: 1px solid rgba(236,72,153,.36);
}

.lg-card__title {
  font-size: clamp(28px, 1.5rem + 1.3vw, 44px);
  font-weight: 800; line-height: 1.08; letter-spacing: -.02em;
  margin: 0 0 8px; color: #fff;
}
.lg-card__title em {
  font-style: italic; font-weight: 800;
  background: linear-gradient(120deg, var(--lg-violet) 0%, var(--lg-pink) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lg-card[data-leitfaden="webseiten"] .lg-card__title em {
  background: linear-gradient(120deg, var(--lg-emerald) 0%, var(--lg-violet) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lg-card__sub {
  font-size: 17px; color: var(--lg-dim); line-height: 1.55; margin: 0;
}
.lg-card__sub strong { color: #fff; font-weight: 600; }

.lg-card__bullets {
  list-style: none; padding: 0; margin: 0;
}
.lg-card__bullets li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 16px; color: rgba(246,243,255,.86);
  padding: 11px 0; border-bottom: 1px dashed rgba(167,139,250,.18);
}
.lg-card__bullets li:last-child { border-bottom: none; }
.lg-card__bullets li::before {
  content: '★'; color: var(--lg-pink); font-size: 14px; margin-top: 3px; flex-shrink: 0;
}
.lg-card[data-leitfaden="webseiten"] .lg-card__bullets li::before { color: var(--lg-emerald); }

.lg-card__meta {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px;
}
.lg-card__meta-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; background: rgba(20,12,38,.6);
  border: 1px solid var(--lg-border); border-radius: 999px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  letter-spacing: .06em; color: rgba(246,243,255,.85);
}

.lg-card__cta {
  width: 100%; justify-content: center;
  white-space: normal; line-height: 1.25;
  padding: clamp(16px, 1.1vw, 20px) clamp(20px, 2vw, 32px);
  font-size: clamp(15px, 14px + .25vw, 17px);
  cursor: pointer;
}

/* PAGE-FAN PREVIEW · Magazine-Spread */
.lg-card__fan {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  perspective: 1400px;
  perspective-origin: 50% 35%;
}
.lg-fan {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 3 / 4.0;
  transform-style: preserve-3d;
}
.lg-fan__badge {
  position: absolute;
  top: -14px; left: -18px;
  z-index: 10;
  width: 76px; height: 76px;
  background: linear-gradient(135deg, var(--lg-violet) 0%, var(--lg-pink) 60%, var(--lg-yellow) 130%);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 800; color: #fff;
  text-align: center; line-height: 1.15; letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 14px 32px rgba(236,72,153,.55), 0 0 0 4px rgba(20,12,38,.92);
  transform: rotate(-10deg);
  animation: lgBadgePop 5s ease-in-out infinite;
}
.lg-card[data-leitfaden="webseiten"] .lg-fan__badge {
  background: linear-gradient(135deg, var(--lg-violet) 0%, var(--lg-emerald) 70%, var(--lg-yellow) 130%);
  box-shadow: 0 14px 32px rgba(52,211,153,.45), 0 0 0 4px rgba(20,12,38,.92);
}
@keyframes lgBadgePop {
  0%, 100% { transform: rotate(-10deg) scale(1); }
  50%      { transform: rotate(-6deg) scale(1.06); }
}

.lg-fan__page {
  position: absolute;
  inset: 0;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  transition: transform .6s var(--lg-ease), filter .6s, box-shadow .6s;
  transform-origin: 50% 90%;
}
.lg-fan__page img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.lg-fan__page--1 {
  z-index: 5;
  transform: rotate(-4deg);
  box-shadow: 0 30px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(0,0,0,.4), 0 0 40px rgba(167,139,250,.25);
}
.lg-fan__page--2 {
  z-index: 4;
  transform: rotate(2deg) translate(14px, -8px);
  box-shadow: 0 22px 46px rgba(0,0,0,.42), 0 0 0 1px rgba(0,0,0,.3);
  filter: brightness(.93);
}
.lg-fan__page--3 {
  z-index: 3;
  transform: rotate(7deg) translate(28px, -16px);
  box-shadow: 0 18px 38px rgba(0,0,0,.34), 0 0 0 1px rgba(0,0,0,.25);
  filter: brightness(.84);
}
.lg-fan__page--4 {
  z-index: 2;
  transform: rotate(11deg) translate(40px, -22px);
  box-shadow: 0 14px 32px rgba(0,0,0,.28), 0 0 0 1px rgba(0,0,0,.22);
  filter: brightness(.75) blur(.5px);
}
.lg-card:hover .lg-fan__page--1 { transform: rotate(-7deg) translate(-6px, 4px); }
.lg-card:hover .lg-fan__page--2 { transform: rotate(4deg) translate(22px, -10px); }
.lg-card:hover .lg-fan__page--3 { transform: rotate(10deg) translate(40px, -22px); }
.lg-card:hover .lg-fan__page--4 { transform: rotate(15deg) translate(58px, -30px); }

.lg-fan__fade {
  position: absolute;
  inset: 60% -8% -8% -2%;
  z-index: 6;
  background: linear-gradient(180deg, transparent 0%, rgba(20,12,38,.55) 35%, rgba(20,12,38,.96) 75%, rgba(20,12,38,1) 100%);
  border-radius: 0 0 10px 10px;
  pointer-events: none;
  transform: rotate(-4deg);
  transform-origin: 50% 90%;
  transition: inset .6s var(--lg-ease), transform .6s;
}
.lg-card:hover .lg-fan__fade {
  inset: 58% -8% -8% -2%;
  transform: rotate(-7deg);
}

.lg-fan__more {
  position: absolute;
  left: 50%; bottom: -2px;
  transform: translateX(-50%);
  z-index: 7;
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(11px, 12px - .1vw, 13px);
  font-weight: 800;
  letter-spacing: .05em;
  color: #fff;
  background: linear-gradient(120deg, var(--lg-violet-d) 0%, var(--lg-pink) 100%);
  padding: 9px 16px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 10px 28px rgba(236,72,153,.45), 0 0 0 2px rgba(20,12,38,.85);
}
.lg-card[data-leitfaden="webseiten"] .lg-fan__more {
  background: linear-gradient(120deg, var(--lg-emerald-d) 0%, var(--lg-violet) 100%);
  box-shadow: 0 10px 28px rgba(52,211,153,.42), 0 0 0 2px rgba(20,12,38,.85);
}

@media (max-width: 880px) {
  .lg-card__fan { min-height: 340px; margin-top: 8px; }
  .lg-fan { max-width: 300px; }
}
@media (max-width: 560px) {
  .lg-card__fan { min-height: 280px; }
  .lg-fan { max-width: 240px; }
  .lg-fan__badge { width: 60px; height: 60px; font-size: 9px; top: -10px; left: -12px; }
  .lg-fan__more { font-size: 10px; padding: 7px 12px; }
}

.lg-note {
  text-align: center;
  margin: clamp(36px, 4vw, 56px) auto 0;
  max-width: 64ch;
  font-size: 15px;
  color: var(--lg-mute);
  padding: 16px 22px;
  background: rgba(252,211,77,.06);
  border: 1px dashed rgba(252,211,77,.36);
  border-radius: 14px;
}
.lg-note strong { color: #fff; }

/* MODAL */
.lg-modal {
  position: fixed; inset: 0;
  z-index: 99500;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(16px, 4vh, 60px) clamp(12px, 3vw, 40px);
  overflow-y: auto;
}
.lg-modal.is-open {
  display: flex;
  animation: lgFadeIn .35s var(--lg-ease);
}
@keyframes lgFadeIn { from{opacity:0} to{opacity:1} }

.lg-modal__backdrop {
  position: fixed; inset: 0;
  background: rgba(10,4,20,.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}
.lg-modal__panel {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: auto;
  background: linear-gradient(180deg, rgba(34,18,64,.96) 0%, rgba(20,12,38,.98) 100%);
  border: 1px solid var(--lg-border-hi);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 48px);
  box-shadow: 0 40px 100px rgba(0,0,0,.7), 0 0 80px rgba(167,139,250,.22);
  color: #fff;
  animation: lgPanelIn .45s var(--lg-ease);
}
@keyframes lgPanelIn {
  from { opacity:0; transform:translateY(20px) scale(.98); }
  to   { opacity:1; transform:translateY(0) scale(1); }
}
.lg-modal__panel::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--lg-violet), var(--lg-pink), transparent);
  border-radius: 24px 24px 0 0;
  opacity: .85;
}

.lg-modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(167,139,250,.10);
  border: 1px solid var(--lg-border);
  color: #fff;
  font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .25s, transform .25s;
  z-index: 5;
}
.lg-modal__close:hover {
  background: var(--lg-pink);
  border-color: transparent;
  transform: rotate(90deg);
}

.lg-modal__eye {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--lg-violet); margin: 0 0 14px;
  display: inline-flex; align-items: center; gap: 8px;
}
.lg-modal__eye .star { color: var(--lg-pink); }
.lg-modal__title {
  font-size: clamp(24px, 1.4rem + 1vw, 34px);
  font-weight: 800; line-height: 1.18; letter-spacing: -.015em;
  margin: 0 0 14px; color: #fff;
}
.lg-modal__title em {
  font-style: italic;
  background: linear-gradient(120deg, var(--lg-violet) 0%, var(--lg-pink) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-weight: 800;
}
.lg-modal__sub {
  font-size: 16px; color: var(--lg-dim); line-height: 1.55;
  margin: 0 0 28px;
}
.lg-modal__sub strong { color: #fff; }

.lg-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.lg-form__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
@media (max-width: 480px) { .lg-form__grid { grid-template-columns: 1fr; } }

.lg-fg { display: flex; flex-direction: column; gap: 7px; }
.lg-fg--full { grid-column: 1 / -1; }
.lg-fg label { font-size: 14px; font-weight: 600; color: #fff; }
.lg-fg label .req { color: var(--lg-pink); margin-left: 3px; }
.lg-fg input {
  background: rgba(10,4,20,.6);
  border: 1px solid var(--lg-border);
  border-radius: 10px;
  padding: 12px 14px;
  color: #fff; font-size: 16px; font-family: inherit;
  outline: none; transition: .2s; width: 100%;
}
.lg-fg input::placeholder { color: rgba(167,139,250,.5); }
.lg-fg input:focus {
  border-color: var(--lg-violet);
  box-shadow: 0 0 0 3px rgba(167,139,250,.18);
}
.lg-fg.has-err input {
  border-color: var(--lg-pink);
  box-shadow: 0 0 0 3px rgba(236,72,153,.18);
}

.lg-consent {
  display: flex; flex-direction: column; gap: 12px;
  margin: 22px 0 26px;
}
.lg-consent__item {
  display: flex; gap: 11px; align-items: flex-start;
  cursor: pointer;
  font-size: 14px; color: var(--lg-dim); line-height: 1.5;
  padding: 12px 14px;
  background: rgba(20,12,38,.5);
  border: 1px solid var(--lg-border);
  border-radius: 12px;
  transition: border-color .25s, background .25s;
}
.lg-consent__item:hover {
  background: rgba(20,12,38,.75);
  border-color: var(--lg-border-hi);
}
.lg-consent__item input {
  margin-top: 2px; width: 18px; height: 18px;
  accent-color: var(--lg-pink);
  flex: 0 0 auto;
}
.lg-consent__item .req { color: var(--lg-pink); }
.lg-consent__item a {
  color: var(--lg-violet);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lg-consent__item strong { color: #fff; }

.lg-form__actions { display: flex; justify-content: center; margin-top: 8px; }
.lg-form__submit { width: 100%; justify-content: center; cursor: pointer; }
.lg-form__hint {
  margin: 18px 0 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: .04em;
  color: var(--lg-mute);
  text-align: center;
}
.lg-form__err {
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(236,72,153,.10);
  border: 1px solid rgba(236,72,153,.4);
  border-radius: 10px;
  color: #fca5a5;
  font-size: 14px;
  text-align: center;
}

.lg-done__icon {
  width: 72px; height: 72px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lg-violet) 0%, var(--lg-pink) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; color: #fff;
  box-shadow: 0 14px 36px rgba(236,72,153,.45);
  animation: lgPulse 2.4s ease-in-out infinite;
}
@keyframes lgPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 14px 36px rgba(236,72,153,.45); }
  50%      { transform: scale(1.06); box-shadow: 0 18px 48px rgba(236,72,153,.65); }
}
.lg-done__title {
  font-size: clamp(24px, 1.4rem + 1vw, 32px);
  font-weight: 800; line-height: 1.2; letter-spacing: -.015em;
  margin: 0 0 12px; color: #fff; text-align: center;
}
.lg-done__sub {
  font-size: 16px; color: var(--lg-dim); line-height: 1.55;
  text-align: center;
  margin: 0 0 32px;
}
.lg-done__sub strong { color: #fff; }

.lg-xsell {
  padding: 24px;
  background: linear-gradient(135deg, rgba(252,211,77,.10), rgba(124,58,237,.14));
  border: 1px solid rgba(252,211,77,.32);
  border-radius: 16px;
  text-align: center;
  margin-bottom: 22px;
}
.lg-xsell__eye {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--lg-yellow); margin: 0 0 10px;
}
.lg-xsell__title {
  font-size: clamp(18px, 1.1rem + .4vw, 22px);
  font-weight: 800; line-height: 1.2; color: #fff;
  margin: 0 0 10px;
}
.lg-xsell__title em {
  font-style: italic;
  /* Sichtbarer Fallback-Farbe — greift immer, auch wenn background-clip
   * im Modal-Kontext nicht durchgreift (Roman-Bug 2026-05-18) */
  color: #fcd34d;
  background: linear-gradient(120deg, #a78bfa, #ec4899);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lg-xsell__text {
  font-size: 15px; color: var(--lg-dim); line-height: 1.5;
  margin: 0 0 18px;
}
.lg-xsell__text strong { color: #fff; }
.lg-xsell__cta { display: inline-flex !important; margin: 0 auto !important; }

.lg-done__close {
  display: block;
  width: 100%;
  background: transparent;
  border: 1px solid var(--lg-border);
  color: rgba(246,243,255,.65);
  font-family: inherit; font-size: 14px;
  padding: 12px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color .25s, color .25s;
}
.lg-done__close:hover {
  border-color: var(--lg-border-hi);
  color: #fff;
}

.lg-modal__view--loading { text-align: center; padding: 28px 0; }
.lg-loader {
  width: 56px; height: 56px;
  margin: 0 auto 24px;
  border: 4px solid rgba(167,139,250,.18);
  border-top-color: var(--lg-violet);
  border-radius: 50%;
  animation: lgSpin .9s linear infinite;
}
@keyframes lgSpin { to { transform: rotate(360deg); } }
.lg-loading__text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px; letter-spacing: .08em;
  color: var(--lg-mute);
  margin: 0;
}

body.lg-modal-open { overflow: hidden; }

@media (max-width: 560px) {
  .lg-modal { padding: 0; align-items: stretch; }
  .lg-modal__panel {
    border-radius: 0; min-height: 100vh; max-width: 100%;
  }
  .lg-modal__panel::before { border-radius: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .lg-done__icon, .lg-loader, .lg-modal.is-open, .lg-modal__panel {
    animation: none !important;
  }
  .lg-preview__page, .lg-preview { transition: none !important; }
}
