/* Programm-Detailseiten im Stil der App-Seiten (Brainoku/Pixoku).
   Gilt nur fuer <body class="pd">. Nutzt die Theme-Variablen aus theme-overrides.css,
   damit Hell und Dunkel gleichermassen funktionieren. */

.pd { --pd-surface: rgba(var(--fg-rgb, 255,255,255), 0.03); --pd-line: var(--border, rgba(255,255,255,.08)); }

/* ---------- Hero: Text links, Programmfenster rechts ---------- */
.pd .hero.pd-hero { padding: 28px 0 56px; text-align: left; position: relative; }
.pd .hero.pd-hero::before {
  content: ""; position: absolute; top: -60px; right: -10%; width: 760px; height: 560px; max-width: 100%;
  background: radial-gradient(circle, rgba(var(--accent-rgb, 59,130,246), .20), rgba(var(--accent-2-rgb, 255,159,67), .07) 45%, transparent 70%);
  pointer-events: none; z-index: -1;
}
.pd .pd-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.pd .pd-back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .88rem; margin-bottom: 26px; transition: color .2s; }
.pd .pd-back:hover { color: var(--accent); }
.pd .pd-app { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.pd .pd-app img { width: 64px; height: 64px; border-radius: 16px; object-fit: contain; padding: 8px;
  background: rgba(var(--fg-rgb, 255,255,255), .05); border: 1px solid var(--pd-line); }
.pd .pd-app strong { display: block; font-size: 1.15rem; line-height: 1.2; }
.pd .pd-app span { color: var(--muted); font-size: .85rem; }
.pd .hero.pd-hero .hero-badge { margin-bottom: 18px; font-size: .7rem; padding: 5px 12px; letter-spacing: .12em; font-weight: 700;
  border-color: rgba(var(--accent-rgb, 59,130,246), .3); background: rgba(var(--accent-rgb, 59,130,246), .12); color: var(--accent-text, var(--accent)); }
.pd .hero.pd-hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.5rem); margin-bottom: 18px; }
.pd .hero.pd-hero h1 span { background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* Ueberschrift aus mehreren Teilen: nur der letzte Teil farbig */
.pd .hero.pd-hero h1 span:not(:last-of-type) { background: none; -webkit-text-fill-color: currentColor; color: var(--text); }
.pd .hero.pd-hero p { margin: 0 0 28px; max-width: 54ch; font-size: 1.05rem; color: var(--text); opacity: .9; }
.pd .hero.pd-hero .hero-actions { justify-content: flex-start; }
.pd .hero.pd-hero .btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--on-accent-text, #fff);
  box-shadow: 0 10px 30px rgba(var(--accent-rgb, 59,130,246), .3); }
.pd .hero.pd-hero .btn-secondary { border-color: rgba(var(--fg-rgb, 255,255,255), .18); }
.pd .hero.pd-hero .version-info { justify-content: flex-start !important; margin-top: 18px !important; }
.pd .hero.pd-hero .hero-subtext { margin-top: 10px; }

/* Programmfenster mit zweitem Fenster dahinter */
.pd .pd-visual { position: relative; padding: 44px 0 0 0; }
.pd .pd-window { border-radius: 14px; overflow: hidden; background: #0d0d12; border: 1px solid rgba(var(--fg-rgb, 255,255,255), .10);
  box-shadow: 0 30px 70px rgba(0,0,0,.45), 0 0 0 1px rgba(var(--accent-rgb, 59,130,246), .10); }
.pd .pd-window .pd-bar { height: 26px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: rgba(255,255,255,.06); }
.pd .pd-window .pd-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.22); display: block; }
.pd .pd-window .pd-bar i:first-child { background: #ff5f57; } .pd .pd-window .pd-bar i:nth-child(2) { background: #febc2e; } .pd .pd-window .pd-bar i:nth-child(3) { background: #28c840; }
.pd .pd-window img { display: block; width: 100%; height: auto; }
.pd .pd-window.pd-front { position: relative; z-index: 2; width: 92%; box-shadow: 0 30px 80px rgba(var(--accent-rgb, 59,130,246), .28), 0 20px 50px rgba(0,0,0,.4); }
.pd .pd-window.pd-behind { position: absolute; z-index: 1; width: 74%; right: 0; top: 0; opacity: .55; }
.pd .pd-visual.pd-single { padding: 0; }

/* Vertrauens-Chips */
.pd .trust { justify-content: flex-start; gap: 10px; padding: 0 0 56px; }
.pd .trust > span { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--pd-line);
  background: var(--pd-surface); font-size: .85rem; color: var(--text); }
.pd .trust .dot { background: var(--accent); }

/* ---------- Abschnitte ---------- */
.pd main > section, .pd body > section:not(.hero) { border-top: 1px solid var(--pd-line); }
.pd .section-head { text-align: left; padding: 64px 0 28px; }
.pd .section-head .label { font-size: .78rem; font-weight: 700; letter-spacing: .14em; color: var(--accent-2, var(--accent)); margin-bottom: 12px; }
.pd .section-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.15; }
.pd .section-head p { margin: 0; max-width: 60ch; }
.pd #features, .pd #screenshots, .pd #privacy, .pd .steps, .pd .faq, .pd #pricing { border-top: 1px solid var(--pd-line); }

/* Funktionen als kompakte Kacheln: Symbol und Titel in einer Zeile */
.pd .features-grid { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 14px; padding-bottom: 64px; }
.pd .feature-card { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: center;
  background: var(--pd-surface); border: 1px solid var(--pd-line); border-radius: 16px; padding: 18px 20px; }
.pd .feature-card:hover { border-color: rgba(var(--accent-rgb, 59,130,246), .4); }
.pd .feature-card .feature-icon { width: 40px; height: 40px; margin: 0; border-radius: 12px; font-size: 20px; background: rgba(var(--accent-rgb, 59,130,246), .12); }
.pd .feature-card h3 { margin: 0; font-size: 1rem; font-weight: 700; }
.pd .feature-card p { grid-column: 1 / -1; margin-top: 10px; }

/* Screenshots wie eine Galerie mit Bildunterschrift */
.pd .screens-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr)); gap: 22px; padding-bottom: 64px; }
.pd .screen-card { background: none; border: 0; padding: 0; overflow: visible; }
.pd .screen-card img { width: 100%; height: auto; display: block; border-radius: 14px; border: 1px solid var(--pd-line);
  box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.pd .screen-card-label { padding: 12px 2px 0; font-weight: 600; font-size: .92rem; color: var(--text); background: none; border: 0; text-align: left; }

/* Datenschutz-Hinweis */
.pd .callout { margin-bottom: 64px; border-radius: 20px; border: 1px solid rgba(var(--accent-rgb, 59,130,246), .25);
  background: linear-gradient(135deg, rgba(var(--accent-rgb, 59,130,246), .08), rgba(var(--accent-2-rgb, 255,159,67), .05)); }

/* Schritte als Karten nebeneinander */
.pd .steps-grid { grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 14px; padding-bottom: 24px; }
.pd .step { text-align: left; background: var(--pd-surface); border: 1px solid var(--pd-line); border-radius: 16px; padding: 20px; }
.pd .step-num { margin: 0 0 14px; width: 38px; height: 38px; font-size: 1rem; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }

/* Fragen */
.pd .faq { padding-bottom: 64px; }
.pd .faq-item { border-radius: 14px; background: var(--pd-surface); border: 1px solid var(--pd-line); margin-bottom: 10px; }

/* ---------- Kleinere Bildschirme ---------- */
@media (max-width: 900px) {
  .pd .pd-grid { grid-template-columns: 1fr; gap: 40px; }
  .pd .pd-visual { max-width: 640px; }
}
@media (max-width: 560px) {
  .pd .screens-grid { grid-template-columns: 1fr; }
  .pd .pd-window.pd-front { width: 100%; }
  .pd .hero.pd-hero { padding-top: 16px; }
  .pd .pd-window.pd-behind { display: none; }
  .pd .pd-visual { padding: 0; }
  .pd .hero.pd-hero .hero-actions .btn { width: 100%; justify-content: center; }
  .pd .trust > span { font-size: .8rem; }
}

/* lange Pfade/Befehle (z. B. hosts-Datei) auf schmalen Bildschirmen umbrechen */
.pd code { overflow-wrap: anywhere; word-break: break-word; }

/* Einzeln gebaute Seiten (IsuTube, Media Player, isuPlayer) */
.pd .hero.pd-hero .hero-cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-start; }
.pd .hero.pd-hero .lead { text-align: left; margin-left: 0; }
.pd .hero.pd-hero .hero-icon { display: none; }
/* Ueberschrift mit ausdruecklich markiertem Farbwort: nur dieses Wort farbig */
.pd .hero.pd-hero h1:has(.gradient) span:not(.gradient) { background: none; -webkit-text-fill-color: currentColor; color: var(--text); }
.pd .hero.pd-hero h1 span.gradient { background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.pd .hero.pd-hero > .trust { padding: 36px 0 0; }

/* Icon-Buehne, wenn es keinen Programm-Screenshot gibt */
.pd .pd-iconstage { display: grid; place-items: center; padding: 20px 0; }
.pd .pd-icontile { width: min(320px, 70vw); aspect-ratio: 1; border-radius: 28%; display: grid; place-items: center;
  background: linear-gradient(145deg, rgba(var(--fg-rgb, 255,255,255), .07), rgba(var(--fg-rgb, 255,255,255), .02));
  border: 1px solid rgba(var(--fg-rgb, 255,255,255), .10);
  box-shadow: 0 40px 90px rgba(var(--accent-rgb, 59,130,246), .28), 0 20px 50px rgba(0,0,0,.35); }
.pd .pd-icontile img { width: 62%; height: auto; filter: drop-shadow(0 12px 30px rgba(253, 67, 141, .35)); }
@media (max-width: 900px) { .pd .pd-iconstage { padding: 0; } .pd .pd-icontile { width: min(220px, 60vw); } }
