/* ============================================================
   hardani.de WordPress-Plugin-Seiten (/add-to-cart-text/, /ipermission/,
   /ispam/, /wp-mobily/) — Ergänzungen zum Designsystem.
   Baut auf /css/style.css auf und nutzt nur dessen Tokens
   (hell und dunkel automatisch). Präfix pl- für alle neuen Klassen.
   ============================================================ */

/* ---------------- Kopfbereich ---------------- */

.pl-sub .subhero-title { font-size: clamp(34px, 4.8vw, 64px); max-width: 1000px; }

.pl-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; list-style: none; margin: 0; padding: 0; }
.pl-crumbs li + li::before { content: "/"; color: var(--dim); margin-right: 10px; }
.pl-crumbs a { color: var(--muted); transition: color 0.2s ease; }
.pl-crumbs a:hover { color: var(--txt); }
.pl-crumbs [aria-current] { color: var(--accent-strong); }

.pl-icon { display: block; width: 76px; height: 76px; border: 1px solid var(--line2); margin-bottom: 26px; }

.pl-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
a.btn-primary { text-decoration: none; }
.pl-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 23px;
  border: 1px solid var(--line2);
  color: var(--txt);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.pl-btn-ghost:hover { border-color: var(--accent-strong); color: var(--accent-strong); }

/* Steckbrief unter dem Kopf */
.pl-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 56px 0 0;
}
.pl-facts > div { background: var(--bg); padding: 22px 24px 24px; }
.pl-facts dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong);
}
.pl-facts dd { margin: 9px 0 0; color: var(--txt); font-size: 16px; line-height: 1.45; }

/* ---------------- Inhalt ---------------- */

.pl-main code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 1px 5px;
  color: var(--txt);
  overflow-wrap: anywhere;
}

/* Funktionen als Karten (ohne Link), immer drei Spalten, damit neun Karten aufgehen */
.cards.pl-features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .cards.pl-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pl-features .card:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (max-width: 680px) { .cards.pl-features { grid-template-columns: 1fr; } }
.pl-features .card { min-height: 0; padding: 30px 28px 32px; }
.pl-features .card:hover { background: var(--bg); }
.pl-features .card h3 { font-size: 20px; }
.pl-features .card-tag { color: var(--dim); }

.pl-hinweis {
  margin-top: 32px;
  border-left: 2px solid var(--accent);
  padding: 6px 0 6px 22px;
  color: var(--muted);
  max-width: 820px;
}
.pl-hinweis strong { color: var(--txt); font-weight: 500; }

/* Bildschirmfotos */
.pl-shots { align-items: start; }
.pl-shots.single { grid-template-columns: minmax(0, 820px); }
.pl-shots.zwei { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pl-shots figure { margin: 0; }

/* Installation: Schritte ohne Pfeil */
.pl-steps .row-item { grid-template-columns: 90px 1fr; }

/* Häufige Fragen */
.pl-faq { border-top: 1px solid var(--line); max-width: 980px; }
.pl-faq details { border-bottom: 1px solid var(--line); }
.pl-faq summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 24px 64px 24px 8px;
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 500;
  line-height: 1.3;
  color: var(--txt);
  transition: background 0.25s ease;
}
.pl-faq summary::-webkit-details-marker { display: none; }
.pl-faq summary:hover { background: var(--bg2); }
.pl-faq summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 1px solid var(--line2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--muted);
}
.pl-faq details[open] summary::after { content: "−"; background: var(--txt); border-color: var(--txt); color: var(--bg); }
.pl-answer { padding: 0 64px 26px 8px; }
.pl-answer p { color: var(--muted); max-width: 760px; }
.pl-answer p + p, .pl-answer p + ol, .pl-answer ol + p { margin-top: 0.8em; }
.pl-answer ol { color: var(--muted); padding-left: 22px; max-width: 760px; }
.pl-answer li + li { margin-top: 4px; }

/* Änderungen der aktuellen Version */
.pl-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.pl-list li {
  position: relative;
  padding: 13px 8px 13px 30px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}
.pl-list li::before { content: ""; position: absolute; left: 8px; top: 1.45em; width: 10px; height: 1px; background: var(--accent-strong); }
.pl-list li b { color: var(--txt); font-weight: 500; }

/* Plugin-Karten mit Symbol */
.pl-cards .card-logo { height: 52px; width: 52px; max-width: none; border: 1px solid var(--line2); }

/* ---------------- Übersicht /cms-plugins/ ---------------- */

/* Feste Spalten; jede Karte trägt ihren eigenen Rahmen, damit kurze Reihen keine grauen Lücken zeigen */
.cards.pl-plattform { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; background: none; border: none; }
.pl-plattform .card { border: 1px solid var(--line); margin: 0 -1px -1px 0; }
.pl-geplant:hover { background: var(--bg); }
.pl-status { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.pl-version { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.pl-facts dt .badge { letter-spacing: 0.12em; }
.pl-facts.pl-legende { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 680px) { .pl-facts.pl-legende { grid-template-columns: 1fr; } }
.pl-hinweis a { color: var(--txt); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.pl-hinweis a:hover { color: var(--accent-strong); }
@media (max-width: 1000px) { .cards.pl-plattform { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .cards.pl-plattform { grid-template-columns: 1fr; } }

/* ---------------- Responsive ---------------- */

@media (max-width: 680px) {
  .pl-faq summary { padding-right: 56px; }
  .pl-answer { padding-right: 8px; }
  .pl-actions a { width: 100%; justify-content: space-between; }
  .pl-steps .row-item { grid-template-columns: 1fr; gap: 10px; }
  .pl-facts { margin-top: 40px; }
  .pl-shots, .pl-shots.zwei, .pl-shots.single { grid-template-columns: 1fr; }
  .pl-icon { width: 64px; height: 64px; }
}
