@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400..700;1,9..144,400..700&display=swap');

:root {
  /* Phase 13 · Premium SaaS Design-Tokens */
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --surface-2: #F5F5F2;
  --ink: #1A1A1A;
  --ink-muted: #6B6660;
  --ink-soft: #8C8680;
  --hairline: #E8E5E0;
  --hairline-strong: #D4CFC6;

  --accent: #C9B98A;
  --accent-hover: #B8A570;
  --accent-bg: #F5F0E0;
  --accent-soft: rgba(201, 185, 138, 0.16);

  --ok: #1F6B30;
  --warn: #C9871E;
  --err: #B53D3D;
  --ok-bg: rgba(31, 107, 48, 0.10);
  --warn-bg: rgba(201, 135, 30, 0.12);
  --err-bg: rgba(181, 61, 61, 0.10);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Fraunces', 'Georgia', serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 200ms var(--ease);

  /* Backward-Compat Aliases (Phase-1-Apple-Tokens — bleiben für unangetastete Pages) */
  --bg-primary: var(--bg);
  --bg-secondary: var(--surface);
  --text-primary: var(--ink);
  --text-secondary: var(--ink-muted);
  --accent-gold: var(--accent);
  --border-light: var(--hairline);
  --shadow-card: 0 2px 20px rgba(0, 0, 0, 0.04);
  --radius-card: var(--radius-md);
  --radius-button: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

/* ---------- Fortschrittsbalken ---------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  z-index: 100;
}
.progress-bar {
  height: 100%;
  width: 10%;
  background: var(--accent-gold);
  transition: width var(--transition);
}

/* ---------- Slide-Flow ---------- */
.slides {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding-top: 2px;
  padding-bottom: 90px;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  padding: 40px 24px 110px;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity var(--transition), transform var(--transition);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
}
.slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.slide-inner {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.slide-label {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  letter-spacing: 0.02em;
}

.slide-headline {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  color: var(--text-primary);
}
.slide-headline.large {
  font-size: 40px;
}

.slide-text {
  font-size: 17px;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.55;
}

.slide-image-wide {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  height: 240px;
  object-fit: cover;
}

.slide-image-round {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto;
  box-shadow: var(--shadow-card);
}
.slide-image-round.small { width: 90px; height: 90px; }

.image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.image-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-card);
}

.mini-circles {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}
.mini-circle { text-align: center; }
.mini-circle img { margin: 0 auto 8px; }
.mini-circle span {
  font-size: 13px;
  color: var(--text-secondary);
  display: block;
}

/* ---------- Checklist ---------- */
.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}
.checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  color: var(--text-primary);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  background: var(--bg-secondary);
  padding: 14px 18px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.checklist li.visible {
  opacity: 1;
  transform: translateY(0);
}
.check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-gold);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-button);
  padding: 14px 22px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: opacity var(--transition), transform var(--transition);
  text-decoration: none;
  width: 100%;
  text-align: center;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--text-primary);
  color: #fff;
}
.btn-primary:hover { opacity: 0.9; }
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--text-primary);
}
.btn-secondary:hover { background: var(--text-primary); color: #fff; }
.btn-whatsapp {
  background: #25D366;
  color: #fff;
}
.btn-whatsapp:hover { opacity: 0.92; }
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-light);
}

.cta-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

/* ---------- Navigation unten ---------- */
.nav-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  padding: 14px 20px env(safe-area-inset-bottom) 20px;
  padding-bottom: calc(14px + env(safe-area-inset-bottom));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  z-index: 90;
}
.nav-btn {
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-button);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  font-family: inherit;
  min-width: 90px;
}
.nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.nav-counter {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ---------- Form-Page ---------- */
.page {
  min-height: 100vh;
  padding: 40px 24px;
}
.page-inner {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.page-headline {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}
.page-subtext {
  font-size: 16px;
  color: var(--text-secondary);
}

.field-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-card);
  padding: 16px 18px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field-card label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
}
.field-card input {
  font-size: 17px;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  color: var(--text-primary);
  padding: 4px 0;
}

.message-preview {
  background: var(--bg-primary);
  border-radius: var(--radius-card);
  padding: 16px 18px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
  border: 1px solid var(--border-light);
}
.message-preview-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  display: block;
}

/* ---------- Danke / Empfaenger / Austragen ---------- */
.center-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px 60px;
}
.center-inner {
  max-width: 540px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}
.hero-wide {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  height: 280px;
  object-fit: cover;
  margin-bottom: 24px;
}
.icon-check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  margin: 8px auto;
}
.info-box {
  background: var(--bg-secondary);
  border-radius: var(--radius-card);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
  text-align: left;
}
.info-box strong { display: block; margin-bottom: 4px; font-size: 14px; }
.info-box span { color: var(--text-secondary); font-size: 15px; }

.opt-out-hint {
  margin-top: 40px;
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
}
.opt-out-hint a {
  color: var(--text-secondary);
  text-decoration: underline;
}

/* Vorlagen-Grid (empfehlen.html) */
.vorlagen-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.vorlage-kachel {
  background: var(--bg-secondary);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
  text-align: center;
  font-family: inherit;
}
.vorlage-kachel:active { transform: scale(0.98); }
.vorlage-kachel.selected {
  border-color: var(--text-primary);
  background: #fafafc;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}
.vorlage-kachel .icon {
  font-size: 28px;
  line-height: 1;
}
.vorlage-kachel .titel {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.25;
}
.vorlage-skel {
  background: linear-gradient(90deg, #ececef 25%, #f5f5f7 50%, #ececef 75%);
  background-size: 200% 100%;
  animation: vorlage-skel-shimmer 1.2s ease-in-out infinite;
  border-radius: var(--radius-card);
  height: 92px;
}
@keyframes vorlage-skel-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@media (min-width: 720px) {
  .vorlagen-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-button);
  font-size: 14px;
  z-index: 200;
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}
.toast.show { opacity: 1; }

/* ---------- Desktop ---------- */
@media (min-width: 768px) {
  .slide-headline { font-size: 40px; }
  .slide-headline.large { font-size: 52px; }
  .slide-image-wide { height: 360px; max-height: 50vh; }
  .slide-image-round { width: 280px; height: 280px; }
  .slide { padding: 60px 40px 110px; }
  .page-headline { font-size: 36px; }
}

/* PHASE 14 - Praesentation Emotional Activation */

body[data-page="index"] {
  --ed-bg: #FAF8F5;
  --ed-bg-dark: #16110C;
  --ed-ink: #1A1A1A;
  --ed-ink-soft: #4A4540;
  --ed-muted: #8C8680;
  --ed-champagne: #C9B98A;
  --ed-ease: cubic-bezier(0.22, 1, 0.36, 1);
  background: var(--ed-bg);
  color: var(--ed-ink);
}

body[data-page="index"] .progress { height: 1px; }
body[data-page="index"] .progress-bar {
  background: var(--ed-champagne);
  transition: width 500ms var(--ed-ease);
}

body[data-page="index"] .slides {
  padding-bottom: 110px;
}

body[data-page="index"] .slide {
  padding: 56px 0 110px;
  transform: translateY(12px);
  transition: opacity 500ms var(--ed-ease), transform 600ms var(--ed-ease);
  justify-content: flex-start;
  align-items: stretch;
}
body[data-page="index"] .slide.active {
  transform: translateY(0);
}

body[data-page="index"] .slide-inner {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 0 28px;
  gap: 28px;
}

body[data-page="index"] .ed-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ed-champagne);
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 600ms var(--ed-ease) 0ms, transform 600ms var(--ed-ease) 0ms;
}

body[data-page="index"] .ed-headline {
  font-family: 'Fraunces', 'Georgia', serif;
  font-weight: 500;
  font-size: clamp(28px, 5.5vw, 44px);
  line-height: 1.13;
  letter-spacing: -0.015em;
  color: var(--ed-ink);
  text-align: center;
  font-variation-settings: "opsz" 96, "SOFT" 50;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 600ms var(--ed-ease) 120ms, transform 600ms var(--ed-ease) 120ms;
}
body[data-page="index"] .ed-headline.xl {
  font-size: clamp(38px, 8vw, 60px);
  line-height: 1.06;
}
body[data-page="index"] .ed-headline.xs {
  font-size: clamp(16px, 2.2vw, 18px);
  font-weight: 400;
  color: var(--ed-muted);
  font-style: italic;
  letter-spacing: 0;
}
body[data-page="index"] .ed-headline em {
  font-style: italic;
  font-weight: 400;
}

body[data-page="index"] .ed-body {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ed-ink-soft);
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 600ms var(--ed-ease) 240ms, transform 600ms var(--ed-ease) 240ms;
}

body[data-page="index"] .slide.active .ed-eyebrow,
body[data-page="index"] .slide.active .ed-headline,
body[data-page="index"] .slide.active .ed-body,
body[data-page="index"] .slide.active .ed-image,
body[data-page="index"] .slide.active .ed-quotes,
body[data-page="index"] .slide.active .ed-cta-stack,
body[data-page="index"] .slide.active .ed-signature {
  opacity: 1;
  transform: translateY(0);
}

body[data-page="index"] .ed-image {
  width: 100%;
  height: clamp(220px, 38vh, 420px);
  object-fit: cover;
  filter: grayscale(85%) contrast(0.95) brightness(1.02) sepia(0.06);
  border-radius: 2px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 800ms var(--ed-ease) 0ms, transform 800ms var(--ed-ease) 0ms;
}
body[data-page="index"] .ed-image-wide {
  width: 100vw;
  height: clamp(240px, 42vh, 480px);
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: 8px;
}

body[data-page="index"] .ed-quotes {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 600ms var(--ed-ease) 320ms, transform 600ms var(--ed-ease) 320ms;
}
body[data-page="index"] .ed-quote {
  font-family: 'Fraunces', 'Georgia', serif;
  font-style: italic;
  font-size: 20px;
  line-height: 1.5;
  color: var(--ed-ink);
  text-align: center;
  padding: 16px 0;
}
body[data-page="index"] .ed-quote + .ed-quote {
  border-top: 1px solid var(--ed-champagne);
}

body[data-page="index"] .ed-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
body[data-page="index"] .ed-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--ed-champagne);
  font-family: 'Fraunces', 'Georgia', serif;
  font-size: 19px;
  color: var(--ed-ink);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 500ms var(--ed-ease), transform 500ms var(--ed-ease);
}
body[data-page="index"] .ed-list li:last-child {
  border-bottom: 1px solid var(--ed-champagne);
}
body[data-page="index"] .ed-list li.visible {
  opacity: 1;
  transform: translateY(0);
}
body[data-page="index"] .ed-list-mark {
  color: var(--ed-champagne);
  font-size: 18px;
  font-family: 'Fraunces', serif;
  flex-shrink: 0;
  width: 16px;
  text-align: center;
}

body[data-page="index"] .slide.ed-cover {
  position: relative;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}
body[data-page="index"] .slide.ed-cover .ed-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(70%) contrast(0.95) brightness(0.7);
  z-index: 0;
}
body[data-page="index"] .slide.ed-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22,17,12,0.5), rgba(22,17,12,0.7));
  z-index: 1;
}
body[data-page="index"] .slide.ed-cover .slide-inner {
  position: relative;
  z-index: 2;
  padding: 80px 28px 130px;
}
body[data-page="index"] .slide.ed-cover .ed-eyebrow {
  color: var(--ed-champagne);
}
body[data-page="index"] .slide.ed-cover .ed-headline,
body[data-page="index"] .slide.ed-cover .ed-headline.xs {
  color: #FAF8F5;
}

body[data-page="index"] .slide.ed-bg-soft .ed-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) brightness(1.15) contrast(0.9);
  opacity: 0.22;
  z-index: 0;
  pointer-events: none;
}
body[data-page="index"] .slide.ed-bg-soft .slide-inner {
  position: relative;
  z-index: 1;
}

body[data-page="index"] .ed-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
body[data-page="index"] .ed-portrait {
  display: flex;
  justify-content: center;
}
body[data-page="index"] .ed-portrait img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(100%) contrast(0.95) brightness(1.02);
  border: 1px solid var(--ed-champagne);
  padding: 8px;
}
body[data-page="index"] .ed-letter {
  font-family: 'Fraunces', 'Georgia', serif;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ed-ink);
  text-align: center;
  font-style: italic;
  max-width: 480px;
  margin: 0 auto;
}
body[data-page="index"] .ed-letter p + p { margin-top: 14px; }
body[data-page="index"] .ed-signature {
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--ed-champagne);
  font-size: 16px;
  text-align: center;
  margin-top: 18px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 600ms var(--ed-ease) 360ms, transform 600ms var(--ed-ease) 360ms;
}

body[data-page="index"] .ed-microline {
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--ed-champagne);
  font-size: 15px;
  text-align: center;
  letter-spacing: 0.02em;
  margin-top: -8px;
}
body[data-page="index"] .ed-cta-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 600ms var(--ed-ease) 320ms, transform 600ms var(--ed-ease) 320ms;
}
body[data-page="index"] .ed-btn {
  display: block;
  text-decoration: none;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 18px 24px;
  border-radius: 4px;
  transition: background 200ms var(--ed-ease), color 200ms var(--ed-ease), border-color 200ms var(--ed-ease);
}
body[data-page="index"] .ed-btn-primary {
  background: var(--ed-ink);
  color: #FAF8F5;
  border: 1px solid var(--ed-ink);
}
body[data-page="index"] .ed-btn-primary:hover {
  background: transparent;
  color: var(--ed-ink);
  border-color: var(--ed-champagne);
}
body[data-page="index"] .ed-btn-secondary {
  background: transparent;
  color: var(--ed-ink);
  border: 1px solid var(--ed-champagne);
}
body[data-page="index"] .ed-btn-secondary:hover {
  border-color: var(--ed-ink);
}

body[data-page="index"] .nav-bar {
  background: var(--ed-bg);
  border-top: 1px solid var(--ed-champagne);
  padding-top: 16px;
}
body[data-page="index"] .nav-btn {
  border-color: var(--ed-champagne);
  color: var(--ed-ink);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
  min-height: 44px;
  min-width: 100px;
}
body[data-page="index"] .nav-btn:disabled { opacity: 0.25; }
body[data-page="index"] .nav-counter {
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--ed-muted);
  font-size: 14px;
}

@media (min-width: 768px) {
  body[data-page="index"] .ed-split {
    grid-template-columns: 240px 1fr;
    gap: 56px;
    text-align: left;
  }
  body[data-page="index"] .ed-portrait img {
    width: 220px;
    height: 220px;
  }
  body[data-page="index"] .ed-split .ed-letter {
    text-align: left;
    margin: 0;
  }
  body[data-page="index"] .ed-split .ed-signature {
    text-align: left;
  }
  body[data-page="index"] .ed-quote { font-size: 22px; }
  body[data-page="index"] .ed-list li { font-size: 21px; padding: 18px 0; }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="index"] .slide,
  body[data-page="index"] .ed-eyebrow,
  body[data-page="index"] .ed-headline,
  body[data-page="index"] .ed-body,
  body[data-page="index"] .ed-image,
  body[data-page="index"] .ed-quotes,
  body[data-page="index"] .ed-cta-stack,
  body[data-page="index"] .ed-signature,
  body[data-page="index"] .ed-list li,
  body[data-page="index"] .progress-bar {
    transition: opacity 200ms linear !important;
    transform: none !important;
  }
}

/* PHASE 16 - Globale Skeleton-Loader (Stripe/Linear-Standard) */

.skel {
  background: linear-gradient(
    90deg,
    var(--surface-2, #F5F5F2) 25%,
    rgba(248, 246, 240, 0.8) 50%,
    var(--surface-2, #F5F5F2) 75%
  );
  background-size: 200% 100%;
  animation: skel-shimmer 1.4s ease-in-out infinite;
  border-radius: 4px;
  display: block;
}
@keyframes skel-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .skel { animation: none; opacity: 0.6; }
}

.skel-line     { height: 14px; width: 100%; }
.skel-line.w60 { width: 60%; }
.skel-line.w40 { width: 40%; }
.skel-line.w80 { width: 80%; }
.skel-line.lg  { height: 28px; }
.skel-line.xl  { height: 40px; }

.skel-circle { width: 36px; height: 36px; border-radius: 50%; }
.skel-circle.lg { width: 64px; height: 64px; }

.skel-block { height: 120px; width: 100%; border-radius: var(--radius-md, 10px); }

.skel-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline, #E8E5E0);
}
.skel-row:last-child { border-bottom: 0; }
.skel-row .skel-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.skel-row .skel-body .skel-line:nth-child(1) { width: 55%; }
.skel-row .skel-body .skel-line:nth-child(2) { width: 35%; height: 10px; }
.skel-row .skel-tail { width: 60px; height: 22px; border-radius: 999px; }

.skel-card {
  background: var(--surface, #FFFFFF);
  border: 1px solid var(--hairline, #E8E5E0);
  border-radius: var(--radius-lg, 14px);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.skel-card .skel-line:nth-child(1) { width: 40%; height: 11px; }
.skel-card .skel-line:nth-child(2) { width: 80%; height: 22px; }
.skel-card .skel-line:nth-child(3) { width: 60%; height: 14px; }

.skel-funnel-row {
  display: grid;
  grid-template-columns: 110px 1fr 40px 44px;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
}
.skel-funnel-row .skel-track { height: 6px; border-radius: 3px; }

/* PHASE 19 - Cmd+K Quick-Search */

.cmdk-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.5);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
}
.cmdk-overlay[hidden] { display: none; }

.cmdk-panel {
  width: 100%;
  max-width: 620px;
  margin: 0 16px;
  background: var(--surface, #fff);
  border: 1px solid var(--hairline, #E8E5E0);
  border-radius: var(--radius-lg, 14px);
  box-shadow: 0 32px 80px -10px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  max-height: 70vh;
  overflow: hidden;
}

.cmdk-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--hairline, #E8E5E0);
}
.cmdk-icon { display: inline-flex; color: var(--ink-soft, #8C8680); }
.cmdk-input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--ink, #1A1A1A);
}
.cmdk-input::placeholder { color: var(--ink-soft, #8C8680); }
.cmdk-kbd {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  padding: 3px 8px;
  background: var(--surface-2, #F5F5F2);
  border: 1px solid var(--hairline, #E8E5E0);
  border-radius: 4px;
  color: var(--ink-muted, #6B6660);
}

.cmdk-list {
  flex: 1;
  overflow-y: auto;
  padding: 6px;
}
.cmdk-item {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  width: 100%;
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm, 6px);
  cursor: pointer;
  text-align: left;
  font-family: 'Inter', sans-serif;
  color: var(--ink, #1A1A1A);
}
.cmdk-item.active {
  background: var(--accent-soft, rgba(201, 185, 138, 0.16));
}
.cmdk-item-icon { display: inline-flex; color: var(--ink-muted, #6B6660); justify-content: center; }
.cmdk-item.active .cmdk-item-icon { color: var(--accent-hover, #B8A570); }
.cmdk-item-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cmdk-item-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink, #1A1A1A);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cmdk-item-sub {
  font-size: 12px;
  color: var(--ink-soft, #8C8680);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cmdk-item-kind {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft, #8C8680);
}

.cmdk-empty {
  padding: 32px;
  text-align: center;
  color: var(--ink-soft, #8C8680);
  font-size: 14px;
}

.cmdk-footer {
  display: flex;
  gap: 18px;
  padding: 10px 16px;
  border-top: 1px solid var(--hairline, #E8E5E0);
  font-size: 11px;
  color: var(--ink-soft, #8C8680);
}
.cmdk-footer kbd {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  padding: 2px 6px;
  background: var(--surface-2, #F5F5F2);
  border: 1px solid var(--hairline, #E8E5E0);
  border-radius: 3px;
  margin-right: 4px;
}

body.cmdk-open { overflow: hidden; }

@media (max-width: 540px) {
  .cmdk-overlay { padding-top: 4vh; }
  .cmdk-item-kind { display: none; }
  .cmdk-footer { gap: 12px; font-size: 10px; }
}
