/**
 * ProductComposer - Components of the "Shop-Zentrale" page
 * Skip link, hero footnotes, problem cards, pillars with scope badges, personas, "less fit" box
 */

/* ===================================================
   SKIP LINK (visible on keyboard focus only)
   =================================================== */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 2000;
  background: var(--primary);
  color: #ffffff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* ===================================================
   HERO ADDITIONS
   =================================================== */
.hero-compat {
  color: #a78bfa;
  font-size: 0.8rem;
  font-weight: 600;
}

.footnote-ref {
  margin-left: 0.1em;
  color: var(--text-muted);
  text-decoration: none;
}

/* Text only for screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.hero-footnotes {
  margin-top: 1rem;
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.hero-footnotes p + p {
  margin-top: 0.25rem;
}

/* ===================================================
   "KENNEN SIE DAS?" – PROBLEM CARDS
   =================================================== */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

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

.problem-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(217, 70, 239, 0.12);
  color: var(--accent-magenta);
}

.problem-card h3 {
  font-size: 1.15rem;
  color: #ffffff;
}

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

/* ===================================================
   "EIN BACKEND STATT PLUGIN-SAMMLUNG" – FOUR PILLARS
   =================================================== */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color var(--transition-normal);
}

.pillar-card:hover {
  border-color: var(--border-glass-hover);
}

.pillar-head {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.pillar-icon {
  flex: 0 0 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(121, 82, 179, 0.35), rgba(217, 70, 239, 0.25));
  color: #ffffff;
}

.pillar-card h3 {
  font-size: 1.25rem;
  color: #ffffff;
}

.pillar-menus {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.pillar-benefit {
  color: var(--text-main);
  font-size: 0.98rem;
  line-height: 1.6;
}

.pillar-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pillar-list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Scope badges: Kern / Kern – integriertes Modul / Erweiterung */
.scope-badge {
  flex: 0 0 auto;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid;
  white-space: nowrap;
  margin-top: 0.12rem;
}

.scope-core {
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.12);
}

.scope-module {
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.12);
}

.scope-ext {
  color: #c4b5fd;
  border-color: rgba(167, 139, 250, 0.35);
  background: rgba(167, 139, 250, 0.12);
}

/* Collapsible "Voraussetzungen und Grenzen" / "Gut zu wissen" */
.pillar-limits,
.persona-details {
  border-top: 1px solid var(--border-glass);
  padding-top: 0.75rem;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.pillar-limits {
  margin-top: auto;
}

.pillar-limits summary,
.persona-details summary {
  cursor: pointer;
  font-weight: 600;
  color: #c4b5fd;
  list-style-position: inside;
}

.pillar-limits summary:hover,
.persona-details summary:hover {
  color: #ffffff;
}

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

.pillar-limits p,
.persona-details p {
  margin-top: 0.6rem;
}

.pillar-link {
  color: #c4b5fd;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.pillar-link:hover {
  color: #ffffff;
}

.pillar-catalog {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.95rem;
  text-align: center;
}

.pillar-catalog a {
  color: #c4b5fd;
  font-weight: 600;
  text-decoration: none;
}

.pillar-catalog a:hover {
  color: #ffffff;
}

/* ===================================================
   "FÜR WEN" – PERSONAS AND LIMITS
   =================================================== */
.persona-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

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

.persona-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(121, 82, 179, 0.25);
  color: #ffffff;
}

.persona-card h3 {
  font-size: 1.15rem;
  color: #ffffff;
}

.persona-situation {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.6;
}

.persona-helps {
  color: var(--text-main);
  font-size: 0.92rem;
  line-height: 1.6;
}

.persona-message {
  margin-top: auto;
  font-weight: 700;
  color: #f0abfc;
  font-size: 0.95rem;
}

.lessfit-box {
  margin-top: 2rem;
  border: 1px dashed var(--border-glass-hover);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
}

.lessfit-box h3 {
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.lessfit-box ul {
  list-style: disc;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.35rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 991px) {
  .problem-grid,
  .pillar-grid,
  .persona-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .pillar-card {
    padding: 1.5rem;
  }

  .pillar-list li {
    flex-direction: column;
    gap: 0.3rem;
  }
}

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

/* Keyboard access to the demo cards: visible only while focused */
.sr-only-focusable:not(:focus-visible) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.card-open-btn:focus-visible {
  margin-top: 0.5rem;
  width: 100%;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(121, 82, 179, 0.1);
  border: 0;
  border-radius: 6px;
  padding: 0.35rem 0.5rem;
  outline: 2px solid var(--accent-magenta);
  outline-offset: 2px;
}
