/* ============================================================
   erstgespraech.css · Seite „Kostenloses Erstgespräch" (nur /concepts/).
   Lädt nach base.css + overview.css, nutzt deren Tokens (Hell/Dunkel).
   Präfix .eg-.
   ============================================================ */

.eg-page { background: var(--bg); }
.eg-page .ll-nav { position: sticky; top: 0; }
.eg-page main > * { width: 100%; max-width: none; margin-left: 0; margin-right: 0; }
.eg-page h1, .eg-page h2 { text-wrap: balance; }
.eg-page p { text-wrap: pretty; }

.eg-konzept { position: fixed; left: 14px; bottom: 14px; z-index: 60; display: inline-flex; gap: 10px; align-items: center; padding: 8px 14px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); font-size: .78rem; color: var(--text-muted); }
.eg-konzept b { color: var(--accent); font-weight: 800; }
.eg-konzept a { color: var(--text); font-weight: 700; text-decoration: none; }

.eg-main { position: relative; overflow: hidden; padding: clamp(36px, 6vw, 88px) 0 clamp(64px, 8vw, 112px);
  background: radial-gradient(900px 480px at 12% 0%, var(--accent-2-soft), transparent 70%), var(--bg); }
.eg-wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }

/* ── Links ── */
.eg-intro { position: sticky; top: calc(var(--ll-nav-h) + 28px); }
.eg-intro h1 { margin: 0; font-size: var(--fs-display); line-height: 1.02; letter-spacing: -0.03em; }
.eg-intro h1 em { font-style: italic; color: var(--accent); }
.eg-sub { margin: 16px 0 0; max-width: 40ch; font-size: var(--fs-lead); line-height: 1.55; color: var(--text-muted); }
.eg-points { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 16px; }
.eg-points li { display: flex; gap: 14px; align-items: flex-start; }
.eg-points b { display: block; color: var(--text); font-size: 1.02rem; }
.eg-points li > span:last-child { color: var(--text-muted); font-size: var(--text-sm); line-height: 1.5; }
.eg-ico { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); }
.eg-ico svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.eg-person { margin-top: 30px; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-sm); max-width: 420px; }
.eg-avatar { width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--panel); color: var(--panel-eyebrow); font-family: var(--font-serif); font-size: 1.3rem; box-shadow: 0 0 0 3px var(--accent-2-soft); }
.eg-person b { display: block; color: var(--text); }
.eg-person span:last-child { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.4; }
.eg-direct { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.eg-direct > span { font-size: var(--text-sm); font-weight: 700; color: var(--text-faint); margin-right: 4px; }
.eg-direct a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--border-strong); color: var(--text); font-weight: 800; font-size: var(--text-sm); text-decoration: none; transition: border-color .2s var(--ease-out), color .2s var(--ease-out), transform .1s var(--ease-out); }
.eg-direct a:hover { border-color: var(--accent); color: var(--accent); }
.eg-direct a:active { transform: scale(.97); }
.eg-direct svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }

/* ── Rechts: Karte ── */
.eg-card { position: relative; padding: 8px; border-radius: 32px; background: var(--fill-subtle); border: 1px solid var(--border); }
.eg-step-pick, .eg-step-done { padding: clamp(20px, 3vw, 34px); border-radius: 25px; background: var(--card); box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, var(--shadow-md); }
.eg-card-title { margin: 0 0 18px; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); letter-spacing: -0.02em; line-height: 1.1; }
.eg-block + .eg-block, .eg-form .eg-block:first-child { margin-top: 22px; }
.eg-label { margin: 0 0 10px; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.eg-label + .eg-days, .eg-label + .eg-times, .eg-label + .eg-kanal { margin-top: 0; }
.eg-times + .eg-state, .eg-days + .eg-label { margin-top: 18px; }

.eg-days { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.eg-day { all: unset; box-sizing: border-box; cursor: pointer; display: grid; justify-items: center; gap: 2px; padding: 10px 4px 11px; border-radius: 16px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text); text-align: center; transition: border-color .2s var(--ease-out), background .2s var(--ease-out), transform .1s var(--ease-out); }
.eg-day small { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); }
.eg-day b { font-family: var(--font-serif); font-weight: 500; font-size: 1.55rem; line-height: 1; }
.eg-day span { font-size: .72rem; color: var(--text-muted); }
.eg-day:hover { border-color: var(--border-accent); }
.eg-day:active { transform: scale(.96); }
.eg-day:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.eg-day[aria-checked="true"] { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.eg-day[aria-checked="true"] small, .eg-day[aria-checked="true"] span { color: var(--on-accent); opacity: .85; }

.eg-times { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.eg-time { all: unset; box-sizing: border-box; cursor: pointer; text-align: center; padding: 11px 6px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--surface); font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text); transition: border-color .2s var(--ease-out), background .2s var(--ease-out), transform .1s var(--ease-out); }
.eg-time:hover { border-color: var(--border-accent); }
.eg-time:active { transform: scale(.96); }
.eg-time:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.eg-time[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--text); box-shadow: 0 0 0 1px var(--accent) inset; }

.eg-skel { display: block; height: 76px; border-radius: 16px; background: linear-gradient(90deg, var(--fill-subtle), var(--fill), var(--fill-subtle)); background-size: 200% 100%; animation: eg-shimmer 1.2s linear infinite; }
.eg-skel-sm { height: 44px; border-radius: 12px; }
@keyframes eg-shimmer { to { background-position: -200% 0; } }

.eg-state { padding: 14px 16px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--border); color: var(--text-muted); font-size: var(--text-sm); line-height: 1.5; }
.eg-state b { color: var(--text); display: block; margin-bottom: 2px; }
.eg-state a { color: var(--accent); font-weight: 800; text-decoration: none; margin-right: 12px; }

.eg-kanal { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.eg-kanal label { position: relative; cursor: pointer; }
.eg-kanal input { position: absolute; opacity: 0; pointer-events: none; }
.eg-kanal span { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 46px; padding: 8px 6px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--surface); font-weight: 800; font-size: .84rem; color: var(--text); text-align: center; transition: border-color .2s var(--ease-out), background .2s var(--ease-out); }
.eg-kanal svg { width: 17px; height: 17px; flex: none; fill: none; stroke: var(--text-muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.eg-kanal label:hover span { border-color: var(--border-accent); }
.eg-kanal input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.eg-kanal input:checked + span svg { stroke: var(--accent); }
.eg-kanal input:focus-visible + span { outline: 3px solid var(--focus-ring); outline-offset: 2px; }

.eg-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.eg-in { display: grid; gap: 6px; }
.eg-in-wide { grid-column: 1 / -1; }
.eg-in > span { font-size: .84rem; font-weight: 800; color: var(--text); }
.eg-in em { font-style: normal; font-weight: 600; color: var(--text-faint); margin-left: 4px; }
.eg-in input, .eg-in textarea { font: inherit; color: var(--text); background: var(--surface); border: 1.5px solid var(--border-strong); border-radius: 12px; padding: 11px 13px; min-height: 46px; box-sizing: border-box; width: 100%; transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out); }
.eg-in textarea { resize: vertical; min-height: 64px; line-height: 1.45; }
.eg-in input::placeholder, .eg-in textarea::placeholder { color: var(--text-faint); }
.eg-in input:focus, .eg-in textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus); }
.eg-in input[aria-invalid="true"] { border-color: var(--danger); }
.eg-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.eg-err { margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; background: rgba(192,54,44,.08); border: 1px solid rgba(192,54,44,.3); color: var(--danger); font-weight: 700; font-size: var(--text-sm); }

.eg-summary { margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 12px 12px 18px; border-radius: 18px; background: var(--panel); color: var(--panel-text); }
.eg-summary-when small { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--panel-text-muted); }
.eg-summary-when b { display: block; font-family: var(--font-serif); font-weight: 500; font-size: 1.12rem; line-height: 1.25; color: var(--panel-text); }
.eg-summary-when b.is-set { color: var(--panel-eyebrow); }
.eg-submit { flex: none; }
.eg-submit:disabled, .eg-submit[aria-disabled="true"] { opacity: .55; cursor: not-allowed; box-shadow: none; }
.eg-missing { margin: 10px 0 0; min-height: 1.2em; font-size: .82rem; font-weight: 700; color: var(--text-faint); text-align: right; }
.eg-fine { margin: 8px 0 0; font-size: .8rem; line-height: 1.5; color: var(--text-faint); }
.eg-fine a { color: var(--text-muted); font-weight: 700; }

/* ── Erledigt ── */
.eg-step-done { text-align: center; padding-top: clamp(34px, 5vw, 56px); padding-bottom: clamp(34px, 5vw, 56px); outline: none; }
.eg-done-ico { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); box-shadow: 0 0 0 10px var(--accent-soft); }
.eg-done-ico svg { width: 36px; height: 36px; fill: none; stroke: var(--on-accent); stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; }
.eg-step-done:not([hidden]) .eg-done-ico { animation: eg-pop .5s var(--ease-spring) both; }
.eg-step-done:not([hidden]) .eg-done-ico svg { animation: eg-draw .5s var(--ease-out) .25s forwards; }
@keyframes eg-pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes eg-draw { to { stroke-dashoffset: 0; } }
.eg-done-when { margin: 0; font-family: var(--font-serif); font-size: 1.3rem; color: var(--accent); }
.eg-done-text { margin: 12px auto 0; max-width: 42ch; color: var(--text-muted); line-height: 1.55; }
.eg-done-actions { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.eg-page .button.outline { color: var(--text); background: transparent; border: 1.5px solid var(--border-strong); }
.eg-page .button.outline:hover { border-color: var(--accent); color: var(--accent); }

/* ── Responsive ── */
@media (max-width: 960px) {
  /* Formular direkt nach Überschrift und Satz, Details danach */
  .eg-wrap { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .eg-intro { display: contents; }
  .eg-intro h1 { order: 1; }
  .eg-sub { order: 2; margin-bottom: 26px; }
  .eg-card { order: 3; }
  .eg-points { order: 4; margin-top: 36px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .eg-points li { flex-direction: column; gap: 10px; }
  .eg-person { order: 5; }
  .eg-direct { order: 6; }
}
@media (max-width: 640px) {
  .eg-intro h1 { font-size: clamp(2.2rem, 10vw, 3rem); }
  .eg-points { grid-template-columns: 1fr; }
  .eg-points li { flex-direction: row; }
  .eg-days { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .eg-times { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .eg-kanal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eg-fields { grid-template-columns: 1fr; }
  .eg-summary { flex-direction: column; align-items: stretch; text-align: center; padding: 14px; }
  .eg-submit { width: 100%; }
  .eg-missing { text-align: center; }
  .eg-konzept { left: 8px; bottom: 8px; font-size: .72rem; }
}
@media (prefers-reduced-motion: reduce) {
  .eg-skel, .eg-step-done:not([hidden]) .eg-done-ico, .eg-step-done:not([hidden]) .eg-done-ico svg { animation: none; }
  .eg-done-ico svg { stroke-dashoffset: 0; }
}


/* ── Der Brief aus dem Konfigurator ───────────────────────────
   Er kommt von links herein, liegt neben dem Formular und geht beim
   Absenden sichtbar raus. Die Auswahl steht nicht im Nachrichtenfeld:
   dort gehoert hin, was der Besucher selbst schreiben will. */

.eg-brief {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 1.25rem;
  padding: 0.95rem 1.1rem;
  border: 1px solid rgba(240, 168, 64, 0.38);
  border-radius: 0.9rem;
  background: rgba(240, 168, 64, 0.08);
  opacity: 0;
  transform: translateX(-2.5rem) rotate(-2deg);
  transition: opacity 620ms cubic-bezier(0.22, 0.75, 0.12, 1),
              transform 720ms cubic-bezier(0.22, 0.75, 0.12, 1);
}

.eg-brief.is-da { opacity: 1; transform: none; }

.eg-brief.is-weg {
  opacity: 0;
  transform: translateX(45vw) rotate(9deg) scale(0.82);
  transition-duration: 560ms;
}

.eg-brief__mark {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.7rem;
  background: rgba(240, 168, 64, 0.16);
  color: #c06028;
}

.eg-brief__mark svg { width: 1.3rem; height: 1.3rem; }

.eg-brief__text { display: grid; gap: 0.15rem; }
.eg-brief__text b { font-size: 0.98rem; }
.eg-brief__text span { font-size: 0.86rem; line-height: 1.45; opacity: 0.8; }

.eg-brief__mehr {
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(240, 168, 64, 0.45);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.eg-brief__mehr:hover { background: rgba(240, 168, 64, 0.14); }

@media (max-width: 620px) {
  .eg-brief { grid-template-columns: auto 1fr; }
  .eg-brief__mehr { grid-column: 2; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  .eg-brief { transition: none; opacity: 1; transform: none; }
}


/* ── Die Seite ansehen ────────────────────────────────────────
   Nicht die Aufschluesselung, sondern die Seite selbst. Sie kommt aus
   dem Konfigurator im reinen Vorschaumodus. */

.eg-schau {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 1.25rem;
  gap: 0.9rem;
  background: rgba(6, 9, 18, 0.9);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms cubic-bezier(0.22, 0.75, 0.12, 1);
}

.eg-schau.is-da { opacity: 1; pointer-events: auto; }

.eg-schau__kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 76rem;
  width: 100%;
  margin: 0 auto;
  color: #f4f1e9;
}

.eg-schau__kopf b { font-size: 1.05rem; }

.eg-schau__zu {
  padding: 0.45rem 1rem;
  border: 1px solid rgba(244, 241, 233, 0.24);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}

.eg-schau__zu:hover { background: rgba(244, 241, 233, 0.1); }

.eg-schau iframe {
  width: min(100%, 76rem);
  height: 100%;
  margin: 0 auto;
  border: 1px solid rgba(244, 241, 233, 0.14);
  border-radius: 0.9rem;
  background: #090d1a;
  transform: scale(0.985);
  transition: transform 380ms cubic-bezier(0.22, 0.75, 0.12, 1);
}

.eg-schau.is-da iframe { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .eg-schau, .eg-schau iframe { transition: none; }
}
