/* Shop (Verkaufsseiten) und Mitgliederbereich – nutzt die CI-Variablen aus Branding::publicCss() */
:root { --pt-radius: 14px; --pt-shadow: 0 1px 2px rgba(16,24,40,.05), 0 6px 24px rgba(16,24,40,.06); --pt-ink: var(--brand-ink, var(--brand)); }
[hidden] { display: none !important; }
.pt-muted { color: var(--muted); }
.pt-warn { color: #8d5b00; background: #fef7e0; border: 1px solid #f7df9c; border-radius: 8px; padding: 8px 10px; }
.btn.pt-btn-lg, .btn.sp-btn-lg { padding: 13px 22px; font-size: 16px; font-weight: 650; }
body.public .btn-primary { color: var(--brand-contrast, #fff); }

/* ============================================================ Shop-Katalog */
.shop-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 8px 0 26px; flex-wrap: wrap; }
.shop-head h1 { font-size: 32px; margin: 0 0 6px; letter-spacing: -.01em; }
.shop-intro { color: var(--muted); max-width: 640px; margin: 0; font-size: 16px; }
.shop-empty { padding: 40px; text-align: center; color: var(--muted); }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.shop-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--pt-radius); overflow: hidden; box-shadow: var(--pt-shadow); color: var(--text); text-decoration: none !important; transition: transform .15s, box-shadow .15s; }
.shop-card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(16,24,40,.12); }
.shop-media { position: relative; aspect-ratio: 16 / 9; background: color-mix(in srgb, var(--brand) 14%, white); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.shop-media img { width: 100%; height: 100%; object-fit: cover; }
.shop-media-fallback, .pt-media-fallback { font-size: 54px; font-weight: 800; color: var(--pt-ink); opacity: .45; font-family: var(--font-head, inherit); }
.shop-type { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.94); color: #111; font-size: 12px; font-weight: 650; padding: 3px 10px; border-radius: 999px; }
.shop-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.shop-card-body h2 { font-size: 19px; margin: 0 0 6px; line-height: 1.3; }
.shop-sub { color: var(--muted); font-size: 14px; margin: 0 0 16px; flex: 1; }
.shop-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.shop-price { font-weight: 750; font-size: 17px; color: var(--text); }
.shop-meta { font-size: 13px; color: var(--muted); }

/* ============================================================ Verkaufsseite */
.sp-draft { background: #fef7e0; border: 1px solid #f7df9c; color: #7a4f01; border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; font-size: 14px; }
.sp-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 40px; box-shadow: var(--pt-shadow); margin-bottom: 26px; position: relative; overflow: hidden; }
.sp-hero::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 6px; background: var(--brand); }
.sp-hero-noimg { grid-template-columns: 1fr; }
.sp-back { font-size: 13px; color: var(--muted) !important; display: inline-block; margin-bottom: 14px; }
.sp-kicker { display: block; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; font-weight: 700; color: var(--pt-ink); margin-bottom: 10px; }
.sp-hero h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.12; margin: 0 0 12px; letter-spacing: -.02em; }
.sp-sub { font-size: 18px; color: #4b5563; margin: 0 0 22px; max-width: 620px; }
.sp-hero-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.sp-hero-price { font-size: 20px; font-weight: 750; }
.sp-instructor { margin: 18px 0 0; color: var(--muted); font-size: 14px; }
.sp-hero-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; display: block; box-shadow: 0 12px 34px rgba(16,24,40,.18); }

.sp-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 26px; align-items: start; }
.sp-main { grid-column: 1; grid-row: 1; min-width: 0; }
.sp-aside { grid-column: 2; grid-row: 1; position: sticky; top: 20px; scroll-margin-top: 20px; }
.sp-card { background: #fff; border: 1px solid var(--line); border-radius: var(--pt-radius); padding: 28px; margin-bottom: 20px; box-shadow: var(--pt-shadow); }
.sp-card h2 { font-size: 22px; margin: 0 0 16px; }
.sp-benefits { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.sp-benefits li { position: relative; padding-left: 30px; line-height: 1.45; }
.sp-benefits li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: color-mix(in srgb, var(--brand) 16%, white); color: var(--pt-ink); font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.sp-prose, .pt-prose { font-size: 16px; line-height: 1.7; color: #1f2937; overflow-wrap: anywhere; }
.sp-prose h2, .pt-prose h2 { font-size: 22px; margin: 22px 0 10px; }
.sp-prose h3, .pt-prose h3 { font-size: 18px; margin: 18px 0 8px; }
.sp-prose > :first-child, .pt-prose > :first-child { margin-top: 0; }
.sp-prose p, .pt-prose p { margin: 0 0 14px; }
.sp-prose ul, .sp-prose ol, .pt-prose ul, .pt-prose ol { padding-left: 24px; margin: 0 0 14px; }
.sp-prose li, .pt-prose li { margin-bottom: 4px; }
.sp-prose blockquote, .pt-prose blockquote { border-left: 4px solid var(--brand); margin: 0 0 14px; padding: 4px 16px; color: #4b5563; background: #fafafa; border-radius: 0 8px 8px 0; }
.sp-prose a, .pt-prose a { color: var(--pt-ink); text-decoration: underline; }

.sp-outline details { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
.sp-outline summary { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; list-style: none; background: #fafbfc; font-weight: 600; }
.sp-outline summary::-webkit-details-marker { display: none; }
.sp-outline summary::after { content: "▾"; margin-left: 8px; color: var(--muted); transition: transform .15s; }
.sp-outline details[open] summary::after { transform: rotate(180deg); }
.sp-mnum, .pt-mnum { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; border-radius: 8px; background: var(--brand); color: var(--brand-contrast, #fff); font-size: 13px; font-weight: 750; }
.sp-mtitle { flex: 1; }
.sp-mcount { font-size: 13px; color: var(--muted); font-weight: 500; }
.sp-outline ul { list-style: none; margin: 0; padding: 4px 0; }
.sp-outline li { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding: 9px 16px; border-top: 1px solid #f1f2f4; font-size: 15px; }
.sp-licon { width: 24px; height: 24px; border-radius: 50%; background: #f3f4f6; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; color: #4b5563; flex: 0 0 24px; }
.sp-ltitle { flex: 1 1 140px; min-width: 0; }
.sp-preview { font-size: 13px; font-weight: 600; white-space: nowrap; }
.sp-ldur { font-size: 13px; color: var(--muted); white-space: nowrap; }
.sp-faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.sp-faq details:last-child { border-bottom: 0; }
.sp-faq summary { font-weight: 600; cursor: pointer; }
.sp-faq details div { margin-top: 8px; color: #4b5563; }
.sp-bundle { display: grid; gap: 10px; }
.sp-bundle-item { display: flex; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 10px; color: var(--text) !important; text-decoration: none !important; }
.sp-bundle-item img { width: 96px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 6px; }
.sp-bundle-item span { display: flex; flex-direction: column; }
.sp-bundle-item small { color: var(--muted); }
.sp-final { text-align: center; }
.sp-final p { font-size: 18px; font-weight: 650; }

.sp-box { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; box-shadow: 0 10px 34px rgba(16,24,40,.10); border-top: 5px solid var(--brand); }
.sp-price { font-size: 30px; font-weight: 800; letter-spacing: -.01em; line-height: 1.15; }
.sp-price-note { color: var(--muted); font-size: 14px; margin-top: 4px; }
.sp-features { list-style: none; padding: 0; margin: 18px 0 20px; }
.sp-features li { padding: 6px 0 6px 26px; position: relative; font-size: 14px; border-bottom: 1px dashed #eceef1; }
.sp-features li::before { content: "✓"; position: absolute; left: 2px; color: var(--pt-ink); font-weight: 800; }
.sp-form .form-row { margin-bottom: 12px; }
.sp-consent { font-size: 13px; line-height: 1.45; margin-bottom: 12px; color: #374151; }
.sp-consent a { text-decoration: underline; }
.sp-fine { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; line-height: 1.45; }
.sp-guarantee { margin: 14px 0 0; font-size: 13px; text-align: center; color: #374151; }
.sp-have { color: var(--ok); font-weight: 650; }
.sp-login { text-align: center; }
.sp-mobilebar { display: none; }

.sp-thanks { max-width: 640px; margin: 20px auto; padding: 44px 36px; text-align: center; }
.sp-thanks h1 { font-size: 28px; margin: 0 0 12px; }
.sp-thanks-icon { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: color-mix(in srgb, var(--brand) 16%, white); color: var(--pt-ink); display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 800; }
.sp-thanks-wait { background: #fef7e0; color: #8d5b00; }
.sp-thanks-lead { font-size: 17px; color: #374151; margin-bottom: 24px; }
.sp-mailhint { text-align: left; background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; padding: 18px; line-height: 1.6; }

@media (max-width: 960px) {
  .sp-hero { grid-template-columns: 1fr; padding: 28px 22px; gap: 22px; }
  .sp-hero-media { order: -1; }
  .sp-body { grid-template-columns: 1fr; }
  .sp-aside { grid-column: 1; grid-row: auto; position: static; }
  .sp-main { grid-row: auto; }
  .sp-benefits { grid-template-columns: 1fr; }
  .sp-card { padding: 22px 18px; }
  .sp-mobilebar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--line); padding: 10px 16px; gap: 12px; align-items: center; justify-content: space-between; box-shadow: 0 -6px 20px rgba(0,0,0,.08); font-weight: 750; }
  .sp { padding-bottom: 70px; }
  .shop-head h1 { font-size: 26px; }
}
@media (max-width: 860px) {
  body.public:has(.sp) .pub-wrap, body.public:has(.shop) .pub-wrap { padding: 20px 16px; }
  .sp-thanks { padding: 32px 20px; margin: 0; }
}

/* ============================================================ Mitgliederbereich */
body.portal { background: var(--page-bg, #f6f7f9); min-height: 100vh; display: flex; flex-direction: column; }
.pt-top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.pt-top-inner { max-width: 1180px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 18px; }
.pt-brand { display: flex; align-items: center; gap: 12px; text-decoration: none !important; color: var(--text); min-width: 0; }
.pt-brand img { max-height: 38px; max-width: 160px; width: auto; display: block; }
.pt-brand-name { font-weight: 750; font-size: 17px; font-family: var(--font-head, inherit); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-brand-sub { font-weight: 600; font-size: 14px; color: var(--muted); border-left: 1px solid var(--line); padding-left: 12px; }
.pt-nav { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.pt-nav a { padding: 8px 12px; border-radius: 8px; color: #374151; font-weight: 550; text-decoration: none !important; font-size: 15px; }
.pt-nav a:hover { background: #f3f4f6; }
.pt-nav a.on { color: var(--pt-ink); background: color-mix(in srgb, var(--brand) 10%, white); }
.pt-burger { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 11px; font-size: 18px; cursor: pointer; }
.pt-adminbar { background: #111827; color: #e5e7eb; font-size: 13px; text-align: center; padding: 7px 12px; }
.pt-adminbar a { color: #fff; text-decoration: underline; }
.pt-previewbar { background: color-mix(in srgb, var(--brand) 10%, white); border: 1px solid color-mix(in srgb, var(--brand) 30%, white); border-radius: 12px; padding: 10px 14px; margin-bottom: 18px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; font-size: 14px; }
.pt-main { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 28px 20px 60px; }
.pt-footer { text-align: center; color: var(--page-fg, var(--muted)); font-size: 13px; padding: 20px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.pt-footer a { color: inherit; }
.pt-card { background: #fff; border: 1px solid var(--line); border-radius: var(--pt-radius); padding: 24px; box-shadow: var(--pt-shadow); }
.pt-empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.pt-crumbs { color: var(--muted); margin-bottom: 10px; }
.pt-crumbs a { color: var(--muted); }
.pt-section { font-size: 19px; margin: 36px 0 14px; }

/* Login */
.pt-auth { max-width: 460px; margin: 4vh auto 0; }
.pt-auth-card { padding: 34px 32px; text-align: center; }
.pt-auth-card h1 { font-size: 24px; margin: 0 0 10px; }
.pt-auth-card .pt-form { text-align: left; margin-top: 22px; }
.pt-auth-icon { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; background: color-mix(in srgb, var(--brand) 14%, white); display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--pt-ink); }
.pt-switch { margin: 16px 0 0; }
.pt-auth-foot { text-align: center; color: var(--muted); margin-top: 16px; }

/* Dashboard */
.pt-hello h1 { font-size: 28px; margin: 0 0 4px; }
.pt-hello { margin-bottom: 22px; }
.pt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.pt-grid-sm { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.pt-course { background: #fff; border: 1px solid var(--line); border-radius: var(--pt-radius); overflow: hidden; box-shadow: var(--pt-shadow); display: flex; flex-direction: column; color: var(--text); text-decoration: none !important; }
.pt-course-media { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; background: color-mix(in srgb, var(--brand) 14%, white); overflow: hidden; }
.pt-course-media img { width: 100%; height: 100%; object-fit: cover; }
.pt-ribbon { position: absolute; right: 12px; top: 12px; background: var(--ok); color: #fff; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 10px; }
.pt-course-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pt-course-body h2 { font-size: 18px; margin: 0 0 6px; line-height: 1.3; }
.pt-course-body h2 a { color: var(--text); }
.pt-course-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.pt-next { margin: 4px 0 0; }
.pt-course-sm .pt-course-body { padding: 14px 16px; }
.pt-progress { height: 8px; background: #eceef1; border-radius: 999px; overflow: hidden; }
.pt-progress span { display: block; height: 100%; background: var(--brand); border-radius: 999px; transition: width .3s; }
.pt-progress-lg { height: 10px; margin-top: 18px; }
.pt-progress-label { display: flex; justify-content: space-between; margin-top: 6px; }
.pt-list { display: grid; gap: 10px; }
.pt-list-row { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }

/* Kursseite */
.pt-course-hero { display: grid; grid-template-columns: 1fr 340px; gap: 30px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px; box-shadow: var(--pt-shadow); margin-bottom: 24px; }
.pt-course-hero h1 { font-size: 30px; margin: 0 0 6px; letter-spacing: -.01em; }
.pt-course-hero .btn { margin-top: 18px; }
.pt-course-hero-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; }
.pt-modules { display: grid; gap: 16px; }
.pt-module { background: #fff; border: 1px solid var(--line); border-radius: var(--pt-radius); overflow: hidden; box-shadow: var(--pt-shadow); }
.pt-module-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: #fafbfc; border-bottom: 1px solid var(--line); }
.pt-module-head h2 { font-size: 17px; margin: 0; flex: 1; }
.pt-lessons { list-style: none; margin: 0; padding: 0; }
.pt-lessons li { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid #f1f2f4; }
.pt-lessons li:last-child { border-bottom: 0; }
.pt-lessons li.locked { color: var(--muted); background: #fcfcfd; }
.pt-lstate { width: 26px; height: 26px; border-radius: 50%; background: #f3f4f6; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; color: #4b5563; flex: 0 0 26px; }
li.done > .pt-lstate { background: var(--ok); color: #fff; font-size: 13px; font-weight: 800; }
.pt-ltitle { flex: 1; color: var(--text); font-weight: 500; }
a.pt-ltitle:hover { color: var(--pt-ink); }
.pt-lmeta { font-size: 13px; color: var(--muted); white-space: nowrap; }

/* Lektion */
.pt-lesson-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 26px; align-items: start; }
.pt-outline { position: sticky; top: 84px; background: #fff; border: 1px solid var(--line); border-radius: var(--pt-radius); box-shadow: var(--pt-shadow); max-height: calc(100vh - 110px); overflow: auto; }
.pt-outline-toggle { display: none; }
.pt-outline-body { padding: 18px; }
.pt-outline-title { display: block; font-weight: 750; color: var(--text) !important; margin-bottom: 10px; line-height: 1.3; }
.pt-outline-pr { margin: 6px 0 4px; }
.pt-outline-mod { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; color: var(--muted); margin: 16px 0 6px; }
.pt-outline ul { list-style: none; margin: 0; padding: 0; }
.pt-outline li { display: flex; gap: 9px; align-items: flex-start; padding: 6px 8px; border-radius: 8px; font-size: 14px; line-height: 1.35; }
.pt-outline li .pt-lstate { width: 20px; height: 20px; flex-basis: 20px; font-size: 10px; margin-top: 1px; }
.pt-outline li a { color: #374151; flex: 1; }
.pt-outline li.current { background: color-mix(in srgb, var(--brand) 10%, white); }
.pt-outline li.current a { color: var(--pt-ink); font-weight: 650; }
.pt-outline li.locked { color: #9ca3af; }
.pt-lesson { min-width: 0; }
.pt-lesson h1 { font-size: 28px; margin: 0 0 18px; letter-spacing: -.01em; }
.pt-video { position: relative; aspect-ratio: 16 / 9; background: #0b0d12; border-radius: 14px; overflow: hidden; margin-bottom: 24px; box-shadow: 0 10px 30px rgba(16,24,40,.18); }
.pt-video iframe, .pt-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.pt-video-consent { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1f2937, #111827); color: #e5e7eb; }
.pt-consent-box { text-align: center; padding: 20px; max-width: 440px; }
.pt-consent-box p { margin-bottom: 14px; }
.pt-consent-remember { display: flex; gap: 6px; justify-content: center; align-items: center; margin-top: 12px; font-weight: 400; color: #cbd5e1; }
.pt-prose { background: #fff; border: 1px solid var(--line); border-radius: var(--pt-radius); padding: 26px 28px; box-shadow: var(--pt-shadow); margin-bottom: 22px; }
.pt-downloads { background: #fff; border: 1px solid var(--line); border-radius: var(--pt-radius); padding: 20px 24px; box-shadow: var(--pt-shadow); margin-bottom: 22px; }
.pt-downloads h2 { font-size: 17px; margin: 0 0 10px; }
.pt-downloads ul { list-style: none; margin: 0; padding: 0; }
.pt-downloads a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; color: var(--text); text-decoration: none !important; }
.pt-downloads a:hover { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 5%, white); }
.pt-dl-icon { width: 32px; height: 32px; border-radius: 8px; background: color-mix(in srgb, var(--brand) 14%, white); color: var(--pt-ink); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.pt-dl-name { flex: 1; font-weight: 550; overflow-wrap: anywhere; }
.pt-locked { text-align: center; padding: 40px 24px; margin-bottom: 22px; }
.pt-locked h2 { font-size: 20px; }
.pt-lesson-foot { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 8px; }
.pt-nav-next { text-align: right; }
.pt-complete { margin: 0; }
.pt-done-btn { color: var(--ok); border-color: #b7dfc3; background: #e6f4ea; }

/* Konto */
.pt-account { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.pt-account h2 { font-size: 18px; }
.pt-account-wide { grid-column: 1 / -1; }

@media (max-width: 960px) {
  .pt-lesson-layout { grid-template-columns: 1fr; gap: 16px; }
  .pt-outline { position: static; max-height: none; }
  .pt-outline-toggle { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 10px; background: none; border: 0; padding: 14px 16px; font: inherit; font-weight: 650; cursor: pointer; color: var(--text); }
  .pt-outline-body { display: none; border-top: 1px solid var(--line); }
  .pt-outline.open .pt-outline-body { display: block; }
  .pt-course-hero { grid-template-columns: 1fr; padding: 22px; }
  .pt-course-hero-img { order: -1; }
  .pt-account { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .pt-burger { display: block; }
  .pt-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px 12px 12px; box-shadow: 0 10px 20px rgba(0,0,0,.06); }
  .pt-nav.open { display: flex; }
  .pt-top-inner { position: relative; padding: 10px 16px; }
  .pt-main { padding: 20px 16px 48px; }
  .pt-lesson h1 { font-size: 23px; }
  .pt-hello h1 { font-size: 23px; }
  .pt-prose { padding: 20px 18px; }
  .pt-video { border-radius: 10px; margin-left: -4px; margin-right: -4px; }
  .pt-lesson-foot { grid-template-columns: 1fr 1fr; }
  .pt-complete { grid-column: 1 / -1; grid-row: 1; }
  .pt-complete .btn { width: 100%; }
  .pt-auth-card { padding: 26px 20px; }
  .pt-brand-sub { display: none; }
  .pt-list-row { flex-direction: column; align-items: flex-start; }
}

/* Dunkler Seitenhintergrund (CI): Texte direkt auf dem Hintergrund hell darstellen */
.pt-dark .pt-hello h1, .pt-dark .pt-section, .pt-dark .pt-lesson > h1, .pt-dark .pt-main > h1,
.pt-dark .shop-head h1, .pt-dark.shop .shop-head h1 { color: #fff; }
.pt-dark .pt-hello .pt-muted, .pt-dark .pt-crumbs, .pt-dark .pt-crumbs a, .pt-dark .pt-auth-foot,
.pt-dark .shop-intro, .pt-dark.shop .shop-intro { color: #cbd5e1; }
.pt-dark .pt-auth-foot a { color: #fff; text-decoration: underline; }
.pt-dark .pt-lesson-foot { border-top-color: rgba(255,255,255,.18); }
.pt-dark .pt-footer { color: #9ca3af; }

/* ============================================================ Communities im Mitgliederbereich */
.pt-section-h { font-size: 19px; margin: 6px 0 12px; }
.pt-communities { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-bottom: 26px; }
.pt-community { display: flex; align-items: center; gap: 12px; color: var(--text) !important; text-decoration: none !important; padding: 14px 16px; }
.pt-community img, .pt-community-mark { width: 44px; height: 44px; border-radius: 11px; object-fit: cover; flex: none; }
.pt-community-mark { background: var(--brand); color: var(--brand-contrast, #fff); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; }
