/* Joculus Studios — wiki-werbung.css
   Spielbare Werbung: Demo-Spieler im Handyformat und Kartenraster der Übersicht.
   <div class="ad-demo">
     <div class="ad-phone" data-demo="https://…/playables/x.html"> <button class="ad-start">…</button> </div>
     <div class="ad-info">…</div>
   </div>
   Die Demo lädt erst auf Klick (js/wiki-werbung.js). */

/* ---------- Spieler ---------- */
.ad-demo { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 30px; align-items: start; margin: 4px 0 34px; }
.ad-phone {
  position: relative; width: 100%; aspect-ratio: 9 / 17; overflow: hidden;
  border: 1px solid var(--border-strong); border-radius: 30px; background: #05070e;
  box-shadow: var(--shadow-card), 0 0 0 6px rgba(21, 27, 51, 0.9);
}
.ad-phone iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; background: #05070e; }
.ad-phone.is-loading::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 3px solid var(--border-strong); border-top-color: var(--accent); border-radius: 50%;
  animation: ad-spin 0.8s linear infinite; pointer-events: none;
}
@keyframes ad-spin { to { transform: rotate(360deg); } }
.ad-start {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  width: 100%; padding: 24px; border: 0; cursor: pointer; text-align: center; text-decoration: none;
  font: inherit; color: var(--text);
  background: radial-gradient(ellipse 90% 60% at 50% 30%, rgba(139, 123, 255, 0.32), transparent 70%), #0c1022;
}
.ad-start img { width: 88px; height: 88px; border-radius: 22px; border: 1px solid var(--border-strong); box-shadow: var(--shadow-glow); }
.ad-start b { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.2; }
.ad-play {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 11px 22px; border-radius: 999px;
  background: var(--gradient-brand); color: #0a0d18; font-family: var(--font-display); font-weight: 700;
  transition: transform 0.18s ease, filter 0.18s ease;
}
.ad-start:hover .ad-play, .ad-start:focus-visible .ad-play { transform: translateY(-2px); filter: brightness(1.12); }
.ad-start:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; border-radius: 30px; }
.ad-start small { color: var(--text-faint); font-size: 0.78rem; }

/* ---------- Text neben dem Spieler ---------- */
.ad-info { min-width: 0; }
.wiki-content .ad-lead { font-size: 1.08rem; color: var(--text); }
.ad-info .wiki-facts { margin-top: 0; }
.ad-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 18px 0 0; }
.ad-tools .btn { padding: 11px 18px; font-size: 0.95rem; }
.wiki-content .ad-tools .btn-primary { color: #0a0d18; text-decoration: none; }
.wiki-content .ad-tools .btn-ghost { color: var(--text); }
.ad-link { font-size: 0.92rem; }
.ad-tools [hidden] { display: none; }
.ad-tools .btn-primary.is-pulsing { animation: ad-pulse 0.9s ease-in-out 3; }
@keyframes ad-pulse { 50% { transform: scale(1.06); filter: brightness(1.2); } }
.wiki-content .ad-store-hint { margin: 12px 0 0; font-size: 0.86rem; color: var(--text-faint); }

/* ---------- Übersicht ---------- */
.ad-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; margin: 16px 0 30px; }
.ad-card {
  position: relative; display: flex; gap: 14px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-elevated); transition: border-color 0.18s ease, transform 0.18s ease;
}
.ad-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.ad-card img { width: 56px; height: 56px; flex: none; border-radius: 14px; border: 1px solid var(--border-strong); }
.wiki-content .ad-card h3 { margin: 0 0 4px; font-size: 1.05rem; }
.wiki-content .ad-card h3 a { color: var(--text); }
.wiki-content .ad-card p { margin: 0 0 8px; font-size: 0.9rem; line-height: 1.5; }
.ad-card-play { font-size: 0.82rem; font-weight: 600; color: var(--accent); }

@media (max-width: 760px) {
  .ad-demo { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .ad-phone { max-width: 360px; margin: 0 auto; aspect-ratio: 9 / 16; }
}
