/**
 * ProductComposer - Components of Paket 3
 * Sub page intro, jump chips, safety nets, extension teaser/catalog, spotlights,
 * feature details with flow and limits, comparison table
 */

/* ===================================================
   SUB PAGE INTRO + JUMP CHIPS
   =================================================== */
.page-intro {
  padding: calc(var(--header-height) + 3.5rem) 0 2.5rem;
  text-align: center;
}

.page-intro .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

.page-title {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #ffffff;
  max-width: 900px;
}

.page-desc {
  max-width: 760px;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.chip-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass-hover);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.8rem;
  text-decoration: none;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.chip:hover {
  background: rgba(217, 70, 239, 0.15);
  border-color: rgba(217, 70, 239, 0.4);
}

.chip:focus-visible {
  outline: 2px solid var(--accent-magenta);
  outline-offset: 2px;
}

/* Shared helpers */
.section-footnote {
  max-width: 900px;
  margin: 1.75rem auto 0;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text-muted);
  text-align: center;
}

.section-cta {
  margin-top: 2rem;
  text-align: center;
}

.section-cta .btn svg {
  margin-left: 0.25rem;
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #cbd5e1;
}

.check-list li svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: #10b981;
}

/* ===================================================
   "GEBAUT FÜR DEN ERNSTFALL" – SAFETY NETS
   =================================================== */
.safety-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 1.25rem;
}

.safety-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.safety-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.safety-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
}

.safety-card h3 {
  font-size: 1.05rem;
  color: #ffffff;
}

.safety-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ===================================================
   EXTENSION CARDS: SVG ICONS, LINK CARDS, PREVIEW STATUS
   =================================================== */
.addon-icon {
  color: #c4b5fd;
}

.addon-badge-status.preview {
  background: rgba(245, 158, 11, 0.12);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.addon-card-link {
  text-decoration: none;
  color: inherit;
}

.addon-card-link:focus-visible {
  outline: 2px solid var(--accent-magenta);
  outline-offset: 3px;
}

/* ===================================================
   SPOTLIGHTS
   =================================================== */
.spotlight-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.spotlight {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2rem;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.spotlight.reverse .spotlight-visual {
  order: 2;
}

.spotlight-visual {
  min-height: 200px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 30% 30%, rgba(217, 70, 239, 0.25), transparent 60%),
    linear-gradient(135deg, rgba(121, 82, 179, 0.35), rgba(15, 23, 42, 0.6));
  border: 1px solid var(--border-glass-hover);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: #ffffff;
}

.spotlight-icon {
  width: 84px;
  height: 84px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.spotlight-name {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.spotlight-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.spotlight-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #c4b5fd;
}

.spotlight-body h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  color: #ffffff;
  line-height: 1.25;
}

.spotlight-body > p {
  color: var(--text-muted);
  line-height: 1.65;
}

.spotlight-footnote {
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--text-muted);
  border-top: 1px solid var(--border-glass);
  padding-top: 0.75rem;
}

/* ===================================================
   FEATURE DETAILS (Funktionen page)
   =================================================== */
.scope-note {
  max-width: 820px;
  margin: -1rem auto 2rem;
  text-align: center;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.feature-card h3 {
  font-size: 1.05rem;
  color: #ffffff;
}

.feature-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Process flow */
.flow {
  margin-top: 2.25rem;
  background: rgba(10, 13, 20, 0.55);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.flow-title {
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.flow-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 1rem;
  counter-reset: none;
}

.flow-step {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.flow-num {
  flex: 0 0 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent-magenta));
}

.flow-step strong {
  display: block;
  color: #ffffff;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.flow-step p {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* "Voraussetzungen und Grenzen" box */
.limits-box {
  margin-top: 1.75rem;
  border: 1px dashed var(--border-glass-hover);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.limits-box.small {
  margin-top: 0.25rem;
  padding: 0.6rem 0.85rem;
  font-size: 0.8rem;
}

.limits-box summary {
  cursor: pointer;
  font-weight: 600;
  color: #c4b5fd;
}

.limits-box summary:hover {
  color: #ffffff;
}

.limits-box summary:focus-visible {
  outline: 2px solid var(--accent-magenta);
  outline-offset: 2px;
  border-radius: 4px;
}

.limits-box ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-top: 0.6rem;
  display: grid;
  gap: 0.3rem;
}

.limits-box p {
  margin-top: 0.5rem;
}

/* ===================================================
   COMPARISON TABLE
   =================================================== */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}

.table-wrap:focus-visible {
  outline: 2px solid var(--accent-magenta);
  outline-offset: 3px;
}

.compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.9rem;
  line-height: 1.55;
}

.compare-table th,
.compare-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--border-glass);
}

.compare-table thead th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #c4b5fd;
  background: rgba(10, 13, 20, 0.5);
}

.compare-table tbody th {
  color: #ffffff;
  font-weight: 700;
  width: 26%;
}

.compare-table td {
  color: var(--text-muted);
}

.compare-table td .scope-badge {
  display: inline-block;
  margin-bottom: 0.3rem;
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: 0;
}

/* ===================================================
   EXTENSION CATALOG (Erweiterungen page)
   =================================================== */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 1.5rem;
}

.catalog-card {
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.catalog-card:target {
  border-color: rgba(217, 70, 239, 0.6);
  box-shadow: 0 0 0 2px rgba(217, 70, 239, 0.25);
}

.catalog-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.catalog-version {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 0.35rem;
  white-space: nowrap;
}

.catalog-group {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #c4b5fd;
}

.catalog-meta {
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.catalog-meta strong {
  color: #e2e8f0;
}

.better-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.better-list .chip {
  font-size: 0.75rem;
  padding: 0.15rem 0.6rem;
  margin-right: 0.25rem;
}

/* ===================================================
   RESPONSIVE / MOTION
   =================================================== */
@media (max-width: 991px) {
  .spotlight {
    grid-template-columns: 1fr;
  }

  .spotlight.reverse .spotlight-visual {
    order: 0;
  }

  .spotlight-visual {
    min-height: 150px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chip {
    transition: none;
  }
}

/* ===================================================
   TRUST, NOTICES, PROVIDER, TEXT PAGES (Paket 5)
   =================================================== */
.section-tight {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 0 0 1.5rem;
}

.fact-item {
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
}

.fact-item dt {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.fact-item dd {
  margin: 0 0 0.35rem;
  order: -1;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
}

.fact-item {
  display: flex;
  flex-direction: column;
}

.trust-text {
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.7;
  color: var(--text-muted);
  text-align: center;
}

.quality-box {
  max-width: 1000px;
  margin: 2.5rem auto 0;
  padding: 2rem;
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
}

.quality-title {
  margin: 0.75rem 0;
  font-size: 1.35rem;
}

.quality-box p {
  color: var(--text-muted);
  line-height: 1.6;
}

.quality-footnote {
  margin-top: 1rem;
  font-size: 0.8rem;
}

.notice-box {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1.75rem 2rem;
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-left-width: 4px;
  border-radius: var(--radius-md);
  background: rgba(245, 158, 11, 0.06);
}

.notice-box-data {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.06);
}

.notice-box-title {
  margin: 0 0 1rem;
  font-size: 1.3rem;
}

.notice-box p,
.notice-list {
  color: var(--text-muted);
  line-height: 1.65;
}

.notice-list {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.notice-list li {
  margin-bottom: 0.5rem;
}

.provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

.provider-item {
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
}

.provider-item dt {
  margin-bottom: 0.4rem;
  font-weight: 700;
  color: var(--text-main);
}

.provider-item dd {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.provider-item a,
.faq-answer a,
.notice-box a:not(.pillar-link),
.data-table a,
.security-report a,
.text-container a {
  color: #c4b5fd;
}

.faq-group + .faq-group {
  margin-top: 2.5rem;
}

.faq-group-title {
  max-width: 800px;
  margin: 0 auto 1rem;
  font-size: 1.15rem;
}

.text-container {
  max-width: 860px;
}

.text-container p {
  color: var(--text-muted);
  line-height: 1.7;
}

.data-table td {
  min-width: 150px;
}

.security-report {
  margin-top: 1.25rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .quality-box,
  .notice-box {
    padding: 1.25rem;
  }
}

.security-note {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid rgba(245, 158, 11, 0.6);
  background: rgba(245, 158, 11, 0.06);
  color: var(--text-muted);
  line-height: 1.6;
}

/* Legal texts (Impressum, Datenschutz, AGB) */
.legal-text h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.25rem;
  scroll-margin-top: 90px;
}

.legal-text h2:first-of-type {
  margin-top: 0.5rem;
}

.legal-text p,
.legal-text li {
  color: var(--text-muted);
  line-height: 1.7;
}

.legal-text ul,
.legal-text ol {
  margin: 0 0 1rem;
  padding-left: 1.4rem;
}

.legal-text li {
  margin-bottom: 0.4rem;
}

.legal-text a {
  color: #c4b5fd;
  overflow-wrap: anywhere;
}

.legal-stand {
  font-size: 0.85rem;
}

