/* ==========================================================================
   ZugFeRD Service – produktspezifische Ergänzungen
   Baut auf routenfuchs-style.css auf (Basis-Tokens, Hero, Glass, Modal, Buttons)
   ========================================================================== */

:root {
  --zf: #22d3ee;
  --zf-deep: #0891b2;
  --zf-glow: rgba(34, 211, 238, 0.16);
  --zf-ok: #4ade80;
  --zf-err: #ef4444;
}

/* Nav / Footer Logo Icon */
.zf-nav-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--zf), var(--zf-deep));
  color: #04252c;
  font-size: 1.1rem;
}

/* Hero accent */
.zf-glow {
  background: radial-gradient(circle, var(--zf-glow) 0%, transparent 70%) !important;
}
.text-gradient.zf-gradient {
  background: linear-gradient(120deg, var(--zf), #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.zf-hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 26px;
}
.zf-hero-trust span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.zf-hero-trust i {
  color: var(--zf);
  margin-right: 6px;
}
.feature-icon.zf-icon {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(8, 145, 178, 0.12));
  color: var(--zf);
}

/* ---------- Prüfbericht-Mockup ---------- */
.zf-report {
  padding: 0;
  overflow: hidden;
  max-width: 420px;
  margin-left: auto;
  border-radius: var(--radius);
}
.zf-report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: rgba(34, 211, 238, 0.06);
  border-bottom: 1px solid var(--border);
}
.zf-report-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.zf-report-title > i {
  font-size: 1.5rem;
  color: var(--zf);
}
.zf-report-name {
  font-weight: 700;
  font-size: 0.98rem;
}
.zf-report-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.zf-report-status {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  white-space: nowrap;
}
.zf-report-status.ok {
  background: rgba(74, 222, 128, 0.14);
  color: var(--zf-ok);
}
.zf-report-status.err {
  background: rgba(239, 68, 68, 0.14);
  color: var(--zf-err);
}
.zf-report-body {
  padding: 8px 12px;
  min-height: 232px;
}
.zf-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.zf-row.show {
  opacity: 1;
  transform: none;
}
.zf-row:last-child {
  border-bottom: none;
}
.zf-row-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.zf-row-val {
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 7px;
}
.zf-row.ok .zf-row-val {
  color: var(--zf-ok);
}
.zf-row.err .zf-row-val {
  color: var(--zf-err);
}
.zf-row .diff {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
}
.zf-report-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
}
.zf-report-foot i {
  color: var(--zf);
  margin-right: 5px;
}

/* ---------- Schritte ---------- */
.zf-steps-section {
  padding-top: 0;
}
.zf-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.zf-step {
  padding: 30px 26px;
  position: relative;
}
.zf-step-num {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  background: linear-gradient(135deg, var(--zf), var(--zf-deep));
  color: #04252c;
  margin-bottom: 16px;
}
.zf-step h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}
.zf-step p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ---------- 3-Tier Preiskacheln ---------- */
.zf-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
  max-width: 1000px;
  margin: 0 auto;
}
.zf-plan {
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  border-radius: var(--radius);
}
.zf-plan.popular {
  border: 1px solid rgba(74, 222, 128, 0.5);
  box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.15), 0 20px 50px rgba(0, 0, 0, 0.45);
}
.zf-popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #04250f;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  white-space: nowrap;
}
.zf-plan-head h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}
.zf-plan-price {
  display: flex;
  align-items: flex-start;
  gap: 2px;
  margin-bottom: 10px;
}
.zf-plan-price .currency {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 6px;
}
.zf-plan-price .amount {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
}
.zf-plan-price .cents {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 4px;
}
.zf-plan-price .period {
  font-size: 0.9rem;
  color: var(--text-muted);
  align-self: flex-end;
  margin-bottom: 6px;
  margin-left: 4px;
}
.zf-plan-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  min-height: 42px;
  margin-bottom: 4px;
}
.zf-plan-features {
  margin: 22px 0 26px;
  flex: 1;
}
.zf-plan-features li {
  margin-bottom: 12px;
}
.zf-plan-features li.zf-muted {
  color: var(--text-muted);
}
.zf-plan-features li.zf-muted i {
  color: var(--text-muted);
}

/* ---------- DocuWare Add-on Hinweis ---------- */
.zf-addon-note {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1000px;
  margin: 28px auto 0;
  padding: 18px 22px;
  border-radius: var(--radius);
  border: 1px dashed rgba(34, 211, 238, 0.35);
}
.zf-addon-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(8, 145, 178, 0.12));
  color: var(--zf);
}
.zf-addon-note strong { color: var(--text-primary); }
.zf-addon-note span { color: var(--text-secondary); font-size: 0.9rem; display: block; margin-top: 2px; }

/* ---------- DocuWare Checkbox im Checkout-Modal ---------- */
.zf-docuware-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  cursor: pointer;
  transition: var(--transition);
}
.zf-docuware-option:hover { border-color: rgba(34, 211, 238, 0.4); }
.zf-docuware-option input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--zf);
  cursor: pointer;
  flex-shrink: 0;
}
.zf-docuware-text span { font-weight: 600; font-size: 0.95rem; }
.zf-docuware-text span i { color: var(--zf); margin-right: 6px; }
.zf-docuware-text small { display: block; color: var(--text-muted); font-size: 0.82rem; margin-top: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .zf-steps,
  .zf-pricing-grid {
    grid-template-columns: 1fr;
  }
  .zf-report {
    margin: 30px auto 0;
  }
  .zf-plan.popular {
    order: -1;
  }
}
