/* SPANDL.ai – Komponenten
 * Wiederverwendbare UI-Bausteine: Buttons, Inputs, Badges, Karten, Nav-Pills, Marken-Mark.
 * Lädt nach tokens.css und base.css.
 */

/* ---------------- Marken-Mark ---------------- */
.brand-mark {
  width: 24px; height: 24px;
  border-radius: 6px;
  background: var(--emerald);
  display: grid; place-items: center;
}
.brand-mark::after {
  content: "";
  width: 10px; height: 10px;
  border-radius: 999px;
  background: var(--ink-900);
}

/* ---------------- Buttons ---------------- */
.btn {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  transition: background .15s, color .15s, border-color .15s, transform .1s, box-shadow .15s;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
}
.btn:focus-visible { outline: none; box-shadow: var(--focus); }
.btn:active { transform: translateY(1px); }

/* Primary – einzige Quelle der Aktion. Eckiger Pill-Radius (6 px) statt voller Pille,
 * passend zur Serif-Sans-Brand. Mit Arrow-Icon-Slot (gap 10 px). */
.btn-primary {
  background: var(--emerald);
  color: #fff;
  padding: 16px 28px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  gap: 10px;
}
.btn-primary:hover { background: var(--emerald-hi); transform: translateY(-1px); }

/* Ghost – sekundär */
.btn-ghost {
  background: rgba(245, 245, 244, 0.06);
  color: var(--text);
  padding: 14px 24px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
}
.btn-ghost:hover { background: rgba(245, 245, 244, 0.12); }

/* Outline – tertiär. Hellere Border-Farbe, damit's nicht zu hart wirkt. */
.btn-outline {
  background: transparent;
  color: var(--text);
  padding: 14px 24px;
  border-radius: 6px;
  border: 1.5px solid rgba(245, 245, 244, 0.25);
  font-size: 15px;
  font-weight: 600;
  gap: 10px;
}
.btn-outline:hover { border-color: var(--text); }

/* Text-Link-Button */
.btn-text {
  background: transparent;
  color: var(--emerald-hi);
  padding: 10px 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.btn-text:hover { color: var(--text); }

/* Kreis – Play/Control */
.btn-circle {
  width: 56px; height: 56px;
  border-radius: var(--radius-full);
  background: var(--emerald);
  color: #fff;
  display: inline-grid; place-items: center;
  box-shadow: 0 6px 16px rgba(15, 118, 110, 0.4);
  cursor: pointer;
  border: 0;
  transition: transform .15s, background .15s;
}
.btn-circle:hover { background: var(--emerald-hi); transform: scale(1.05); }
.btn-circle svg { width: 22px; height: 22px; }

/* ---------------- Input ---------------- */
.input-wrap {
  position: relative;
  width: 100%;
  max-width: 380px;
}
.input {
  width: 100%;
  background: var(--ink-900);
  border: 0;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  padding: 12px 16px 12px 44px;
  border-radius: var(--radius-full);
  box-shadow: inset 0 0 0 1px rgba(245, 245, 244, 0.12);
  outline: none;
  transition: box-shadow .15s;
}
.input::placeholder { color: var(--text-faint); }
.input:focus {
  box-shadow:
    inset 0 0 0 1px var(--emerald-hi),
    var(--focus);
}
.input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
}

/* ---------------- Badges ---------------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
  text-transform: capitalize;
}
.badge-emerald { background: rgba(15, 118, 110, 0.18); color: var(--emerald-hi); }
.badge-amber   { background: rgba(245, 165,  36, 0.16); color: var(--amber); }
.badge-red     { background: rgba(229,  72,  77, 0.16); color: var(--red); }
.badge-mute    { background: rgba(245, 245, 244, 0.08); color: var(--text-mute); }
.badge-solid   { background: var(--emerald); color: #fff; }
.badge-dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; }

/* Sektions-Tag: "Kicker"-Badge mit Pulse-Dot + Smaragd-Border.
 * Pattern aus den Refs – kommt in jeder Sektion als Header-Tag. */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--emerald);
  background: rgba(15, 118, 110, 0.06);
  font-size: 12px;
  font-weight: 600;
  color: var(--emerald-hi);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.tag::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--emerald-hi);
  box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.5);
  animation: tag-pulse 2.4s ease-in-out infinite;
}
@keyframes tag-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(20, 184, 166, 0); }
  100% { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .tag::before { animation: none; }
}
.tag--on-light {
  background: transparent;
  color: var(--emerald);
}
.tag--on-light::before { background: var(--emerald); }

/* ---------------- Karte (Demo / Content) ---------------- */
.card {
  background: var(--ink-700);
  border-radius: var(--radius-standard);
  overflow: hidden;
  box-shadow: var(--shadow-med);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-heavy); }
.card-art {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #0F766E 0%, #14B8A6 100%);
  position: relative;
}
.card-art::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(80% 50% at 30% 30%, rgba(255, 255, 255, 0.18), transparent 60%);
}
.card-body { padding: 14px 14px 16px; }
.card-title { font-weight: 700; font-size: 14px; }
.card-meta  { font-size: 12px; color: var(--text-faint); margin-top: 4px; }

/* ---------------- Panel (Container für strukturierte Inhalte) ---------------- */
.panel {
  background: var(--ink-800);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-comfortable);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}
.panel-foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border-dark);
  font-size: 12px;
  color: var(--text-faint);
  font-family: var(--mono);
}

/* ---------------- Pill-Navigation ---------------- */
.nav-preview {
  display: flex; align-items: center; gap: 6px;
  padding: 10px;
  background: var(--ink-900);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-dark);
}
.nav-pill {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  color: var(--text-mute);
  cursor: pointer;
  background: transparent;
  border: 0;
  font-family: inherit;
  transition: background .15s, color .15s;
}
.nav-pill:hover { color: var(--text); }
.nav-pill.active {
  background: var(--ink-800);
  color: var(--text);
  font-weight: 700;
}

/* ---------------- Consent-Embed (Zwei-Klick-Einbindung) ---------------- */
/* Bindet externe Dienste (z. B. Calendly) erst nach aktivem Klick ein.
   Vor dem Klick wird keine Verbindung zum Drittanbieter aufgebaut (DSGVO).
   Nutzung: <div class="consent-embed" data-embed-src="..." data-embed-title="..."
   data-embed-height="720"> mit .consent-embed__text + .consent-embed__btn.
   Logik in app.js (initConsentEmbeds). */
.consent-embed {
  padding: var(--space-5, 24px);
  border-radius: 10px;
  background: rgba(15, 118, 110, 0.06);
  border: 1px dashed rgba(15, 118, 110, 0.25);
  text-align: center;
}
.consent-embed__text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-on-light-mute);
  margin: 0 0 14px;
  text-align: left;
}
.consent-embed__text a {
  color: var(--emerald);
  text-decoration: underline;
}
.consent-embed iframe {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 10px;
}
.consent-embed.is-loaded {
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  overflow: hidden;
}
