/* ══════════════════════════════════════════════════════════════
   QPM Picture Organizer – Produkt- und Kaufseite
   Adresse: /picture-organizer/kaufen (fest in der Windows-App)
   Baut auf css/base.css auf (Farben, .btn/.btn-o, .rv-Reveal,
   .cta-sec). Mobile First: xs Default · 480 · 768 · 1025.
   ══════════════════════════════════════════════════════════════ */

/* ── Grundgerüst ── */
.po-sec{padding:56px 20px}
@media(min-width:768px){.po-sec{padding:80px 40px}}
@media(min-width:1025px){.po-sec{padding:96px 60px}}
.po-sec.gray{background:var(--qpm-gray-light)}
.po-wrap{max-width:1200px;margin:0 auto}
.po-wrap.narrow{max-width:900px}
/* Nur für Screenreader sichtbar */
.po-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

.po-head{margin-bottom:32px}
@media(min-width:768px){.po-head{margin-bottom:44px}}
.po-head.c{text-align:center}
.po-badge{display:inline-block;font-size:.72rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--qpm-red);margin-bottom:12px}
.po-h2{font-size:clamp(1.5rem,3.4vw,2.4rem);font-weight:700;color:var(--qpm-dark);line-height:1.18;letter-spacing:-.02em;margin-bottom:12px}
.po-lead{font-size:1rem;color:var(--qpm-gray);line-height:1.7;max-width:640px}
.po-head.c .po-lead{margin:0 auto}

/* Sichtbarer Tastatur-Fokus (Barrierefreiheit) */
.po-page a:focus-visible,
.po-page summary:focus-visible,
.po-page .po-gal:focus-visible{outline:2px solid var(--qpm-red);outline-offset:3px;border-radius:4px}
.po-dark a:focus-visible{outline-color:var(--qpm-white)}

/* ── 1 · HERO (60/40) ── */
.po-hero{padding:112px 20px 48px;background:var(--qpm-white)}
@media(min-width:768px){.po-hero{padding:132px 40px 64px}}
@media(min-width:1025px){.po-hero{padding:150px 60px 88px}}
.po-hero-grid{max-width:1200px;margin:0 auto;display:grid;grid-template-columns:1fr;gap:36px;align-items:center}
@media(min-width:1025px){.po-hero-grid{grid-template-columns:3fr 2fr;gap:56px}}

.po-eyebrow{display:inline-flex;align-items:center;gap:10px;font-size:.72rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--qpm-red);margin-bottom:16px}
.po-eyebrow::before{content:'';width:24px;height:2px;background:var(--qpm-red)}

.po-h1{font-size:28px;font-weight:700;line-height:1.14;letter-spacing:-.025em;color:var(--qpm-dark);margin-bottom:16px}
@media(min-width:768px){.po-h1{font-size:36px}}
@media(min-width:1025px){.po-h1{font-size:48px;margin-bottom:20px}}
.po-h1 em{font-style:normal;color:var(--qpm-red)}

.po-sub{font-size:1rem;line-height:1.7;color:var(--qpm-gray);max-width:560px;margin-bottom:24px}
@media(min-width:1025px){.po-sub{font-size:1.1rem;margin-bottom:32px}}

.po-act{display:flex;flex-direction:column;gap:12px}
.po-act .btn,.po-act .btn-o{justify-content:center}
@media(min-width:480px){.po-act{flex-direction:row;flex-wrap:wrap}}

.po-facts{display:flex;flex-wrap:wrap;gap:6px 16px;margin-top:18px;font-size:.84rem;font-weight:500;color:var(--qpm-gray)}
.po-facts span{display:inline-flex;align-items:center;gap:6px}
.po-facts svg{width:15px;height:15px;color:var(--qpm-red);flex-shrink:0}

.po-visual{background:var(--qpm-dark);border-radius:8px;padding:8px;box-shadow:0 24px 60px rgba(0,0,0,.18),0 4px 14px rgba(0,0,0,.08)}
.po-visual img{width:100%;height:auto;display:block;border-radius:5px}

/* ── 2 · STATS-STRIP ── */
.po-stats{background:var(--qpm-gray-light);padding:28px 20px}
@media(min-width:768px){.po-stats{padding:36px 40px}}
@media(min-width:1025px){.po-stats{padding:40px 60px}}
.po-stats-grid{max-width:1200px;margin:0 auto;display:grid;grid-template-columns:repeat(2,1fr);gap:20px 16px}
@media(min-width:1025px){.po-stats-grid{grid-template-columns:repeat(4,1fr);gap:24px}}
.po-stat{border-left:3px solid var(--qpm-red);padding:2px 0 2px 14px}
.po-stat-n{font-size:clamp(1.15rem,3.6vw,1.6rem);font-weight:700;color:var(--qpm-dark);line-height:1.2;letter-spacing:-.01em}
.po-stat-l{font-size:.82rem;font-weight:500;color:var(--qpm-gray);margin-top:2px;line-height:1.4}

/* ── 3 · FEATURE-CARDS ── */
.po-cards{display:grid;grid-template-columns:1fr;gap:16px}
@media(min-width:768px){.po-cards{grid-template-columns:repeat(2,1fr);gap:20px}}
@media(min-width:1025px){.po-cards{grid-template-columns:repeat(3,1fr);gap:24px}}
.po-card{background:var(--qpm-white);border:1px solid var(--qpm-border);border-radius:8px;padding:24px;transition:transform .25s ease-out,box-shadow .25s ease-out}
@media(min-width:768px){.po-card{padding:28px}}
.po-card:hover{transform:translateY(-3px);box-shadow:0 8px 24px rgba(0,0,0,.08)}
.po-card-ico{width:48px;height:48px;display:block;margin-bottom:16px}
.po-card h3{font-size:1.08rem;font-weight:700;color:var(--qpm-dark);line-height:1.3;margin-bottom:8px}
.po-card p{font-size:.92rem;line-height:1.65;color:var(--qpm-gray)}

/* ── 4 · SCREENSHOT-GALERIE ── */
/* xs/sm: horizontaler Swipe mit Scroll-Snap */
.po-gal{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;margin:0 -20px;padding:4px 20px 14px;scrollbar-width:thin}
.po-shot{flex:0 0 84%;scroll-snap-align:start;margin:0}
@media(min-width:480px){.po-shot{flex-basis:70%}}
/* ab md: umbrechendes Raster, letzte Reihe zentriert */
@media(min-width:768px){
  .po-gal{flex-wrap:wrap;justify-content:center;overflow:visible;margin:0;padding:0;gap:24px}
  .po-shot{flex:0 1 calc(50% - 12px)}
}
@media(min-width:1025px){.po-shot{flex-basis:calc(33.333% - 16px)}}

.po-shot-frame{position:relative;aspect-ratio:16/10;border-radius:8px;overflow:hidden;background:var(--qpm-dark);border:1px solid var(--qpm-border)}
.po-shot-frame img{width:100%;height:100%;object-fit:cover;display:block}

/* Klickbares Vorschaubild → Vergrösserung */
.po-shot-open{position:absolute;inset:0;display:block;width:100%;height:100%;padding:0;border:0;background:none;cursor:zoom-in}
.po-shot-open img{transition:transform .35s ease-out}
.po-shot-zoom{position:absolute;right:12px;bottom:12px;width:40px;height:40px;border-radius:50%;background:rgba(26,26,26,.72);color:var(--qpm-white);display:flex;align-items:center;justify-content:center;opacity:.9;transition:background .25s,transform .25s}
.po-shot-zoom svg{width:20px;height:20px}
/* Hover nur auf Geräten mit Maus – auf Touch bleibt der Zustand sonst nach dem Tippen hängen */
@media(hover:hover){
  .po-shot-open:hover img{transform:scale(1.03)}
  .po-shot-open:hover .po-shot-zoom{background:var(--qpm-red);transform:scale(1.06)}
}
.po-shot-open:focus-visible{outline:3px solid var(--qpm-red);outline-offset:-3px}

/* ── Vergrösserte Ansicht (<dialog>) ── */
.po-lb{padding:0;border:0;margin:0;width:100vw;height:100vh;max-width:none;max-height:none;background:transparent;color:var(--qpm-white)}
.po-lb::backdrop{background:rgba(10,10,10,.97)}
.po-lb[open]{display:block;animation:po-lb-in .25s ease-out}
@keyframes po-lb-in{from{opacity:0}to{opacity:1}}
body.po-lb-open{overflow:hidden}
.po-lb-inner{position:relative;width:100%;height:100%;display:flex;align-items:center;justify-content:center;padding:64px 12px 24px}
@media(min-width:768px){.po-lb-inner{padding:72px 88px 32px}}
.po-lb-fig{margin:0;display:flex;flex-direction:column;align-items:center;max-width:100%;max-height:100%}
.po-lb-img{display:block;max-width:min(1460px,100%);max-height:calc(100vh - 170px);width:auto;height:auto;border-radius:8px;box-shadow:0 24px 80px rgba(0,0,0,.5);cursor:default}
.po-lb-cap{margin-top:14px;text-align:center;max-width:720px;padding:0 8px}
.po-lb-cap b{display:block;font-size:1.02rem;font-weight:700}
.po-lb-cap span{display:block;font-size:.88rem;color:rgba(255,255,255,.72);margin-top:2px;line-height:1.5}
.po-lb-cap small{display:block;font-size:.75rem;color:rgba(255,255,255,.55);margin-top:6px;letter-spacing:.06em}

.po-lb-btn{position:absolute;width:48px;height:48px;border-radius:50%;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.08);color:var(--qpm-white);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background .2s,border-color .2s}
.po-lb-btn svg{width:22px;height:22px}
@media(hover:hover){.po-lb-btn:hover{background:var(--qpm-red);border-color:var(--qpm-red)}}
.po-lb-btn:active{background:var(--qpm-red);border-color:var(--qpm-red)}
.po-lb-btn:focus-visible{outline:2px solid var(--qpm-white);outline-offset:3px}
.po-lb-close{top:12px;right:12px}
.po-lb-prev,.po-lb-next{top:50%;transform:translateY(-50%)}
.po-lb-prev{left:12px}
.po-lb-next{right:12px}
/* Handy: Blätter-Knöpfe unten statt seitlich über dem Bild */
@media(max-width:767px){
  .po-lb-prev,.po-lb-next{top:auto;bottom:16px;transform:none}
  .po-lb-prev{left:calc(50% - 60px)}
  .po-lb-next{right:calc(50% - 60px)}
  .po-lb-inner{padding-bottom:84px}
  .po-lb-img{max-height:calc(100vh - 230px)}
}
/* Platzhalter, solange der echte Screenshot fehlt */
/* Weiss statt gray-light: die Galerie steht auf grauem Grund, sonst verschwimmt das Panel */
.po-shot-ph{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:var(--qpm-white)}
.po-shot-ph img{width:48px;height:48px;object-fit:contain;opacity:.55}
.po-shot figcaption{padding:12px 2px 0}
.po-shot figcaption b{display:block;font-size:.98rem;font-weight:700;color:var(--qpm-dark)}
.po-shot figcaption span{display:block;font-size:.86rem;color:var(--qpm-gray);line-height:1.5;margin-top:2px}
.po-swipe-hint{text-align:center;font-size:.78rem;color:var(--qpm-gray);margin-top:6px}
@media(min-width:768px){.po-swipe-hint{display:none}}

/* ── 5 · SO FUNKTIONIERT ES ── */
.po-steps{display:grid;grid-template-columns:1fr;gap:28px;list-style:none;margin:0;padding:0}
@media(min-width:1025px){.po-steps{grid-template-columns:repeat(3,1fr);gap:32px;position:relative}}
.po-step{position:relative;padding-left:60px}
@media(min-width:1025px){.po-step{padding-left:0;padding-top:64px}}
.po-step-n{position:absolute;left:0;top:0;width:44px;height:44px;border-radius:50%;background:var(--qpm-red);color:var(--qpm-white);font-weight:700;font-size:1.05rem;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 16px rgba(208,2,27,.28)}
/* Verbindungslinie zwischen den Schritten */
.po-step:not(:last-child)::after{content:'';position:absolute;left:21px;top:52px;bottom:-24px;width:2px;background:var(--qpm-border)}
@media(min-width:1025px){.po-step:not(:last-child)::after{left:56px;right:-24px;top:21px;bottom:auto;width:auto;height:2px}}
.po-step h3{font-size:1.08rem;font-weight:700;color:var(--qpm-dark);margin-bottom:6px;line-height:1.3}
.po-step p{font-size:.92rem;line-height:1.65;color:var(--qpm-gray)}

/* ── 6 · KAUF-BLOCK (dunkel, full-bleed) ── */
.po-dark{background:var(--qpm-dark);color:var(--qpm-white);position:relative;overflow:hidden}
.po-dark::before{content:'';position:absolute;right:-220px;top:-220px;width:640px;height:640px;border-radius:50%;background:radial-gradient(circle,rgba(208,2,27,.16) 0%,transparent 65%);pointer-events:none}
.po-buy-grid{position:relative;max-width:1100px;margin:0 auto;display:grid;grid-template-columns:1fr;gap:32px;align-items:center}
@media(min-width:1025px){.po-buy-grid{grid-template-columns:1.1fr .9fr;gap:64px}}
.po-dark .po-h2{color:var(--qpm-white)}
.po-dark .po-lead{color:rgba(255,255,255,.72)}
.po-incl{list-style:none;display:grid;gap:12px;margin-top:24px}
.po-incl li{display:flex;gap:12px;align-items:flex-start;font-size:.95rem;line-height:1.5;color:rgba(255,255,255,.88)}
.po-incl svg{width:20px;height:20px;color:var(--qpm-red);flex-shrink:0;margin-top:1px}

.po-price-card{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.14);border-radius:8px;padding:28px 24px;text-align:center;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
@media(min-width:768px){.po-price-card{padding:40px 36px}}
.po-price-label{font-size:.72rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:rgba(255,255,255,.66);margin-bottom:10px}
.po-price{font-size:clamp(2.6rem,9vw,3.6rem);font-weight:700;line-height:1;letter-spacing:-.03em;color:var(--qpm-white)}
.po-price small{font-size:.42em;font-weight:600;letter-spacing:0;margin-right:.25em;vertical-align:.35em;color:rgba(255,255,255,.8)}
.po-terms{margin:14px auto 26px;font-size:.84rem;line-height:1.7;color:rgba(255,255,255,.72);max-width:320px}
.po-price-card .btn{width:100%;justify-content:center;font-size:1rem;min-height:52px}
.po-pay{margin-top:14px;font-size:.78rem;line-height:1.55;color:rgba(255,255,255,.62)}
.po-pay a{color:var(--qpm-white);font-weight:600;text-decoration:underline;text-underline-offset:2px}

/* ── WEITEREMPFEHLEN ── */
.po-share-sec .po-head{margin-bottom:24px}
.po-share-btns{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
@media(min-width:768px){.po-share-btns{display:flex;flex-wrap:wrap;justify-content:center;gap:12px}}
.po-share-btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:48px;padding:12px 18px;
  background:var(--qpm-white);border:1.5px solid var(--qpm-border);border-radius:8px;
  font-family:inherit;font-size:.9rem;font-weight:600;color:var(--qpm-dark);cursor:pointer;
  transition:border-color .2s,color .2s,transform .2s,box-shadow .2s}
.po-share-btn[hidden]{display:none}
/* xs: kompakter, damit «Link kopieren» in der halben Breite einzeilig bleibt */
@media(max-width:479px){.po-share-btn{padding:12px 10px;gap:7px;font-size:.86rem;white-space:nowrap}}
.po-share-btn svg{width:19px;height:19px;flex-shrink:0}
@media(hover:hover){.po-share-btn:hover{border-color:var(--qpm-red);color:var(--qpm-red);transform:translateY(-2px);box-shadow:0 6px 18px rgba(0,0,0,.07)}}
.po-share-btn:focus-visible{outline:2px solid var(--qpm-red);outline-offset:3px}
/* Geräte-Teilen auf dem Handy: volle Breite, da wichtigster Weg */
@media(max-width:767px){.po-share-btn.is-native{grid-column:1/-1;border-color:var(--qpm-red);color:var(--qpm-red)}}
/* Bestätigung in CI-Dunkel (Grün hätte auf hellem Grund den AA-Kontrast verfehlt) */
.po-share-btn.is-done{border-color:var(--qpm-dark);color:var(--qpm-dark)}
.po-share-status{min-height:1.4em;margin-top:12px;text-align:center;font-size:.86rem;font-weight:600;color:var(--qpm-dark)}
.po-share-note{text-align:center;font-size:.78rem;color:var(--qpm-gray);margin-top:4px;line-height:1.6}

/* ── 7 · VERGLEICH ── */
.po-table-wrap{overflow-x:auto;border:1px solid var(--qpm-border);border-radius:8px;background:var(--qpm-white)}
/* Passt ohne Seitwärts-Scrollen auch auf 375 px; der Wrapper scrollt nur im Notfall */
.po-table{width:100%;border-collapse:collapse;font-size:.84rem}
.po-table th,.po-table td{padding:12px 10px;text-align:left;border-bottom:1px solid var(--qpm-border);vertical-align:middle;hyphens:auto;-webkit-hyphens:auto}
@media(min-width:480px){.po-table{font-size:.9rem}.po-table th,.po-table td{padding:14px 16px}}
@media(min-width:768px){.po-table th,.po-table td{padding:16px 24px}}
.po-table tbody tr:last-child th,.po-table tbody tr:last-child td{border-bottom:none}
.po-table thead th{font-size:.72rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--qpm-gray);background:var(--qpm-gray-light)}
.po-table tbody th{font-weight:600;color:var(--qpm-dark)}
.po-table td{color:var(--qpm-gray);width:28%}
.po-table .full{background:rgba(208,2,27,.035);color:var(--qpm-dark);font-weight:600}
.po-table thead .full{color:var(--qpm-red);background:rgba(208,2,27,.06)}
.po-yes{display:inline-flex;align-items:center;gap:6px}
.po-yes svg{width:16px;height:16px;color:var(--qpm-red);flex-shrink:0}
/* xs: nur Häkchen zeigen (Text bleibt für Screenreader), Kopfzeile ohne Laufweite */
@media(max-width:479px){
  .po-table thead th{letter-spacing:0;font-size:.66rem}
  .po-yes svg{width:18px;height:18px}
  .po-yes-t{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
}
.po-table-note{font-size:.82rem;color:var(--qpm-gray);margin-top:12px;line-height:1.6}

/* ── 8 · FAQ (natives <details> – per Tastatur bedienbar) ── */
.po-faq{max-width:840px;margin:0 auto;border-top:1px solid var(--qpm-border)}
.po-faq details{border-bottom:1px solid var(--qpm-border)}
.po-faq summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 2px;min-height:44px;font-size:1rem;font-weight:600;color:var(--qpm-dark);line-height:1.45}
.po-faq summary::-webkit-details-marker{display:none}
.po-faq summary:hover{color:var(--qpm-red)}
.po-faq-ico{flex-shrink:0;width:28px;height:28px;border-radius:50%;border:1.5px solid var(--qpm-border);position:relative;transition:transform .25s ease-out,border-color .25s,background .25s}
.po-faq-ico::before,.po-faq-ico::after{content:'';position:absolute;left:50%;top:50%;width:10px;height:2px;background:var(--qpm-dark);transform:translate(-50%,-50%);border-radius:1px}
.po-faq-ico::after{transform:translate(-50%,-50%) rotate(90deg);transition:opacity .2s}
.po-faq details[open] .po-faq-ico{background:var(--qpm-red);border-color:var(--qpm-red)}
.po-faq details[open] .po-faq-ico::before{background:var(--qpm-white)}
.po-faq details[open] .po-faq-ico::after{opacity:0}
.po-faq-a{padding:0 44px 22px 2px;font-size:.94rem;line-height:1.75;color:var(--qpm-gray)}
.po-faq-a p+p{margin-top:10px}
.po-faq-a a{color:var(--qpm-red);font-weight:600}

/* ── 9 · ABSCHLUSS-CTA (ergänzt .cta-sec aus base.css) ── */
/* Selektor mit .cta-sec, damit er «.cta-sec p» aus base.css überstimmt */
.cta-sec .po-cta-meta{margin:18px auto 0;font-size:.8rem;color:rgba(255,255,255,.6)}

/* Bewegung reduzieren, wenn im System so eingestellt */
@media(prefers-reduced-motion:reduce){
  .po-card,.po-faq-ico,.po-shot-open img,.po-share-btn{transition:none}
  .po-card:hover,.po-shot-open:hover img{transform:none}
  .po-lb[open]{animation:none}
}
