/*
 * privacy.css — EF Growth Systems
 * Styles fuer: Consent Modal, Trust Page, Handout Generator
 * Kein einziger Farbwert hardcoded — nur CSS-Variablen aus theme.css
 */

/* ─────────────────────────────────────────────
   CONSENT MODAL
───────────────────────────────────────────── */
#modal-consent {
  display: none;
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  left: 65px;
  right: 65px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
  background: transparent;
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
#modal-consent.open {
  display: flex;
}

/* Topbar ausblenden wenn Consent Modal offen */
body:has(#modal-consent.open) #section-nav-trigger,
body:has(#modal-consent.open) #topbar-menu-icon {
  display: none !important;
}

/* Dimm-Effekt auf Stage wenn Consent Modal offen */
#modal-consent.open ~ * .app-main::after,
body:has(#modal-consent.open) .app-main::after {
  content: '';
  position: absolute;
  inset: 1px;
  background: var(--surface-page);
  opacity: 0.8;
  z-index: 35;
  pointer-events: auto;
}
.consent-modal {
  background: var(--glass-bg-fallback);
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  animation: consentCardIn 160ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@supports (backdrop-filter: blur(1px)) {
  .consent-modal {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
}

@keyframes consentCardIn {
  from { opacity: 0; transform: scale(0.97) translateY(-6px); }
  to   { opacity: 1; transform: scale(1)    translateY(0);    }
}

.consent-modal-inner {
  overflow-y: auto;
  padding: var(--space-4);
  flex: 1;
}
.consent-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 8px;
}
.consent-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.consent-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}
.consent-block {
  background: var(--surface-soft);
  border: 1px solid var(--border-subtle);
  padding: 16px 18px;
}
.consent-block-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.consent-block-body {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}
.consent-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
@media (max-width: 520px) {
  .consent-choices { grid-template-columns: 1fr; }
}
.consent-choice {
  border: 2px solid var(--border-strong);
  padding: 18px;
  cursor: pointer;
  transition: border-color 0.15s;
  position: relative;
}
.consent-choice:hover {
  border-color: var(--surface-accent);
}
.consent-choice--sync {
  border-color: var(--surface-accent);
}
.consent-choice-badge {
  position: absolute;
  top: -1px;
  right: -1px;
  background: var(--surface-accent);
  color: var(--text-on-accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 3px 8px;
  text-transform: uppercase;
}
.consent-choice-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.consent-choice-body {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}
.consent-choice-btn {
  width: 100%;
  padding: 10px;
  border: 1.5px solid var(--text-primary);
  background: transparent;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .04em;
  transition: background 0.15s, color 0.15s;
}
.consent-choice--sync .consent-choice-btn {
  background: var(--surface-accent);
  border-color: var(--surface-accent);
  color: var(--text-on-accent);
}
.consent-choice-btn:hover {
  background: var(--text-primary);
  color: var(--surface-page);
}
.consent-choice--sync .consent-choice-btn:hover {
  opacity: .9;
}
.consent-hint {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

/* ─────────────────────────────────────────────
   SETTINGS — Sync-Reihe
───────────────────────────────────────────── */
.settings-sync-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0 12px;
  border-bottom: 1px solid var(--border-subtle);
}
.settings-sync-info {
  flex: 1;
  min-width: 0;
}
.settings-sync-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.settings-sync-status {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
}

.settings-row--sub {
  padding-left: 16px;
  padding-top: 8px;
  padding-bottom: 8px;
  border-top: none;
}
.settings-trust-link {
  display: inline-block;
  font-size: 12px;
  color: var(--surface-accent);
  cursor: pointer;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
.settings-trust-link:hover {
  border-bottom-color: var(--surface-accent);
}

/* ─────────────────────────────────────────────
   TRUST PAGE
───────────────────────────────────────────── */
.trust-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0;
}
@media (max-width: 640px) {
  .trust-cards { grid-template-columns: 1fr; }
}
.trust-card {
  background: var(--surface-soft);
  border: 1px solid var(--border-subtle);
  padding: 20px 22px;
}
.trust-card-icon {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  color: var(--surface-accent);
  margin-bottom: 10px;
}
.trust-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.trust-card-body {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}
.trust-flow {
  margin: 32px 0;
}
.trust-flow-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 14px;
  border: 1px solid var(--border-subtle);
}
.trust-flow-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
}
.trust-flow-step:last-child { border-bottom: none; }
.trust-flow-num {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  color: var(--surface-accent);
  min-width: 24px;
  padding-top: 1px;
}
.trust-flow-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}
.trust-flow-text strong { color: var(--text-primary); }
.trust-compare {
  margin: 32px 0;
}
.trust-compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 13px;
}
.trust-compare-table th {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 2px solid var(--border-strong);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.trust-compare-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}
.trust-compare-table tr:last-child td {
  color: var(--text-primary);
  font-weight: 600;
}
.trust-check { color: #2ecc71 !important; font-weight: 700; }
.trust-cross  { color: #c0392b   !important; }
.trust-privacy-link {
  font-size: 13px;
  color: var(--surface-accent);
  cursor: pointer;
  text-decoration: none;
}
.trust-privacy-link:hover { text-decoration: underline; }

/* ── Live Data Status Block ── */
.trust-status {
  margin: 32px 0;
}
.trust-status-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.trust-status-sub {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 16px;
}
.trust-status-rows {
  border: 1px solid var(--border-subtle);
}
.trust-status-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
}
.trust-status-row:last-child { border-bottom: none; }
.trust-status-row-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  min-width: 130px;
  padding-top: 2px;
  flex-shrink: 0;
}
.trust-status-row-right {
  flex: 1;
  text-align: right;
}
.trust-status-row-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.trust-status-row-sub {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 3px;
}
.trust-status-footer {
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 12px;
  line-height: 1.5;
}

/* ─────────────────────────────────────────────
   HANDOUT — Summary-Sektion
───────────────────────────────────────────── */
.handout-section {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 2px solid var(--border-strong);
}
.handout-wrap {
  max-width: 100%;
}
.handout-header {
  margin-bottom: 20px;
}
.handout-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.handout-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}
/* Progress */
.handout-progress-bar {
  height: 4px;
  background: var(--border-strong);
  margin-bottom: 8px;
  overflow: hidden;
}
.handout-progress-fill {
  height: 100%;
  transition: width 0.4s ease;
}
.handout-progress-text {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.handout-missing {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
  font-family: monospace;
}
.handout-generate-btn {
  margin-top: 8px;
}
.handout-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}
/* Cached bar */
.handout-cached-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-soft);
  border: 1px solid var(--border-subtle);
  padding: 10px 16px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--text-muted);
}
/* Loading */
.handout-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 0;
  color: var(--text-muted);
  font-size: 14px;
}
.handout-loading-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-strong);
  border-top-color: var(--surface-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}
/* Result Blocks */
.handout-result {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.handout-block {
  border: 1px solid var(--border-subtle);
  padding: 22px 24px;
}
.handout-block-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
/* Positioning */
.handout-positioning {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.45;
  margin-bottom: 12px;
}
/* Hooks */
.handout-hooks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 4px;
}
@media (max-width: 640px) {
  .handout-hooks { grid-template-columns: 1fr; }
}
.handout-hook-card {
  background: var(--surface-soft);
  padding: 14px 16px;
  border: 1px solid var(--border-subtle);
}
.handout-hook-type {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--surface-accent);
  margin-bottom: 6px;
}
.handout-hook-headline {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 4px;
}
.handout-hook-subline {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 10px;
}
/* Landing Page */
.handout-lp-sections {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.handout-lp-card {
  background: var(--surface-soft);
  padding: 14px 16px;
  border-left: 3px solid var(--surface-accent);
}
.handout-lp-section-tag {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--surface-accent);
  margin-bottom: 6px;
}
.handout-lp-headline {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 6px;
}
.handout-lp-body {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 10px;
}
/* Video Script */
.handout-script {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.handout-script-line {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.handout-script-line:last-of-type { border-bottom: none; }
.handout-script-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--surface-accent);
  min-width: 130px;
  padding-top: 1px;
  flex-shrink: 0;
}
.handout-script-text {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.55;
}
/* Objections */
.handout-objections {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.handout-objection-card {
  background: var(--surface-soft);
  padding: 14px 16px;
  border: 1px solid var(--border-subtle);
}
.handout-objection-q {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.handout-objection-a {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}
/* Copy Button klein */
.btn-copy-small {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  padding: 4px 10px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.btn-copy-small:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}
.btn-copy-small.copied {
  border-color: #2ecc71;
  color: #2ecc71;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ─────────────────────────────────────────────
   NEXT STEPS — Handout-Hinweis
───────────────────────────────────────────── */
.nextsteps-handout-hint {
  display: flex;
  gap: 20px;
  background: var(--border-accent);
  border: 1px solid var(--border-accent);
  padding: 24px;
  margin-bottom: 8px;
  align-items: flex-start;
}
.nextsteps-handout-hint-icon {
  font-size: 20px;
  color: var(--surface-accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.nextsteps-handout-hint-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.nextsteps-handout-hint-body {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}
