/* Website-Planer (/website-planer/): links die Auswahl, rechts die Vorschau.
   Farben der Vorschau-Stile stehen als Variablen hier oben, alles andere nutzt die Variablen aus style.css. */
:root {
  --pv-hell-bg: #ffffff; --pv-hell-surface: #f5f5f7; --pv-hell-text: #1d1d1f; --pv-hell-muted: #d2d2d7;
  --pv-dunkel-bg: #111113; --pv-dunkel-surface: #1f1f23; --pv-dunkel-text: #f5f5f7; --pv-dunkel-muted: #3a3a40;
  --pv-warm-bg: #faf6f0; --pv-warm-surface: #efe6d8; --pv-warm-text: #2b2420; --pv-warm-muted: #d9ccb8;
  --pv-kraeftig-bg: #ffffff; --pv-kraeftig-surface: #f2f2f2; --pv-kraeftig-text: #0b0b0c; --pv-kraeftig-muted: #cfcfd4;
  --pv-on-accent: #ffffff;
  --pv-serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, 'Times New Roman', serif;
  --pv-rounded: ui-rounded, 'SF Pro Rounded', 'Arial Rounded MT Bold', 'Nunito', var(--font);
}

.pl-head { padding: clamp(48px, 7vw, 96px) 0 clamp(28px, 4vw, 48px); }
.pl-title { max-width: 14ch; font-size: clamp(40px, 6vw, 72px); line-height: 1.02; letter-spacing: -0.035em; }
.pl-sub { max-width: 58ch; margin-top: 20px; color: var(--text-soft); font-size: clamp(17px, 1.5vw, 19px); }

.pl-app { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; padding-bottom: clamp(80px, 10vw, 140px); }

/* ---------- Auswahl ---------- */
.pl-panel { display: grid; gap: 10px; }
.pl-step { margin: 0; padding: 22px 22px 24px; border: 0; border-radius: var(--radius); background: var(--mist); min-width: 0; }
.pl-step legend { float: left; width: 100%; margin-bottom: 14px; padding: 0; font-size: 17px; font-weight: 600; }
.pl-step legend + * { clear: both; }
.pl-help { display: grid; gap: 8px; margin: -4px 0 14px; color: var(--text-soft); font-size: 14px; line-height: 1.5; }
.pl-help strong { color: var(--text-strong); font-weight: 600; }
.pl-fields { display: grid; gap: 12px; margin-bottom: 16px; }
.pl-field span { display: block; margin-bottom: 6px; color: var(--text-soft); font-size: 14px; font-weight: 500; }
.pl-field em { font-style: normal; }
.pl-field input {
  display: block; width: 100%; padding: 11px 14px; border: 1px solid var(--chrome-2); border-radius: 12px; background: var(--white);
  color: var(--text); font: inherit; font-size: 16px;
}
.pl-field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15); }
.pl-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.pl-choice { position: relative; }
.pl-choice input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.pl-choice span { display: block; padding: 8px 14px; border: 1px solid var(--chrome-2); border-radius: 999px; background: var(--white); font-size: 15px; transition: background 0.15s, border-color 0.15s, color 0.15s; }
.pl-choice input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--white); }
.pl-choice input:focus-visible + span, .pl-style input:focus-visible + .pl-style-card, .pl-color input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .pl-choice input:not(:checked):hover + span { border-color: var(--ink); } }

.pl-styles { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.pl-style { position: relative; display: grid; gap: 6px; cursor: pointer; }
.pl-style input { position: absolute; opacity: 0; }
.pl-style-card { display: grid; grid-template-rows: 10px 1fr 8px; gap: 6px; height: 72px; padding: 10px; border: 2px solid transparent; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }
.pl-style-card i { display: block; border-radius: 3px; }
.pl-style input:checked + .pl-style-card { box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--ink); }
.pl-style-name { font-size: 14px; font-weight: 500; }
.pl-style-hell { background: var(--pv-hell-bg); } .pl-style-hell i { background: var(--pv-hell-muted); } .pl-style-hell i:nth-child(2) { background: var(--pv-hell-surface); }
.pl-style-dunkel { background: var(--pv-dunkel-bg); } .pl-style-dunkel i { background: var(--pv-dunkel-muted); } .pl-style-dunkel i:nth-child(2) { background: var(--pv-dunkel-surface); }
.pl-style-warm { background: var(--pv-warm-bg); } .pl-style-warm i { background: var(--pv-warm-muted); } .pl-style-warm i:nth-child(2) { background: var(--pv-warm-surface); border-radius: 8px; }
.pl-style-kraeftig { background: var(--pv-kraeftig-bg); } .pl-style-kraeftig i { background: var(--pv-kraeftig-text); border-radius: 0; } .pl-style-kraeftig i:nth-child(2) { background: var(--accent); }

.pl-colors { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pl-color { position: relative; cursor: pointer; }
.pl-color input[type="radio"] { position: absolute; opacity: 0; }
.pl-color span:not(.sr-only):not(.pl-own-label) { display: block; width: 34px; height: 34px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); }
.pl-color input:checked + span { box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--ink); }
.pl-color-own { display: flex; align-items: center; gap: 6px; padding: 2px 12px 2px 2px; border: 1px solid var(--chrome-2); border-radius: 999px; background: var(--white); font-size: 14px; }
.pl-color-own input { width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.pl-color-own input::-webkit-color-swatch-wrapper { padding: 0; }
.pl-color-own input::-webkit-color-swatch { border: 0; border-radius: 50%; }
.pl-color-own.is-active { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }

.pl-send { display: grid; gap: 12px; justify-items: start; margin-top: 14px; }
.pl-reset { padding: 0; border: 0; background: none; color: var(--link); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .pl-reset:hover { text-decoration: underline; } }
.pl-note { color: var(--text-soft); font-size: 14px; line-height: 1.5; }

/* ---------- Vorschau-Rahmen ---------- */
.pl-preview-col { position: sticky; top: calc(var(--nav-h) + 16px); min-width: 0; }
.pl-preview-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.pl-preview-label { color: var(--text-soft); font-size: 14px; font-weight: 500; }
.pl-device { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--mist); }
.pl-device button { padding: 6px 14px; border: 0; border-radius: 999px; background: none; color: var(--text-soft); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.pl-close { display: none; padding: 8px 18px; border: 0; border-radius: 999px; background: var(--ink); color: var(--white); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.pl-device button[aria-pressed="true"] { background: var(--white); color: var(--text-strong); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.pl-frame { overflow: hidden; border-radius: var(--radius); background: var(--chrome); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--line); transition: max-width 300ms var(--ease-out); }
/* «Nach oben» erscheint, sobald man in der Skizze nach unten gescrollt hat */
.pl-frame { position: relative; }
.pl-top {
  position: absolute; right: 14px; bottom: 14px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px 9px 12px;
  border: 0; border-radius: 999px; background: rgba(29, 29, 31, 0.82); color: var(--white); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.45);
  animation: top-in 220ms var(--ease-out);
}
.pl-top::before { content: ''; width: 14px; height: 14px; background: currentColor; -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; transform: rotate(-90deg); }
.pl-top[hidden] { display: none; }
@keyframes top-in { from { opacity: 0; transform: translateY(6px); } }
@media (hover: hover) and (pointer: fine) { .pl-top:hover { background: var(--ink); } }
.pl-frame-bar { position: relative; display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; }
.pl-frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--chrome-2); }
.pl-url { position: absolute; left: 50%; transform: translateX(-50%); padding: 2px 16px; border-radius: 6px; background: var(--white); color: var(--muted); font-size: 12px; }
.pl-frame[data-device="mobile"] { max-width: 390px; margin-inline: auto; border-radius: 36px; padding: 12px; background: var(--device, #2c2c2e); }
.pl-frame[data-device="mobile"] .pl-frame-bar { display: none; }
/* clip-path statt border-radius: die durchscheinende Leiste (backdrop-filter) würde sonst über die runden Ecken ragen */
.pl-frame[data-device="mobile"] .pv { height: min(72vh, 640px); clip-path: inset(0 round 26px); scrollbar-width: none; }
.pl-frame[data-device="mobile"] .pv::-webkit-scrollbar { display: none; }
.pl-hint { margin-top: 14px; color: var(--text-soft); font-size: 14px; text-align: center; }

/* ---------- Die Vorschau selbst (eine kleine Website) ---------- */
.pv {
  --p-bg: var(--pv-hell-bg); --p-surface: var(--pv-hell-surface); --p-text: var(--pv-hell-text); --p-muted: var(--pv-hell-muted);
  --p-accent: var(--accent); --p-radius: 12px; --p-head: var(--font); --p-body: var(--font); --p-weight: 700;
  height: min(72vh, 680px); overflow-y: auto; clip-path: inset(0 round 0 0 var(--radius) var(--radius)); overscroll-behavior: contain; container-type: inline-size;
  background: var(--p-bg); color: var(--p-text); font-family: var(--p-body); font-size: 13px; line-height: 1.5; scrollbar-width: thin;
}
.pv[data-stil="dunkel"] { --p-bg: var(--pv-dunkel-bg); --p-surface: var(--pv-dunkel-surface); --p-text: var(--pv-dunkel-text); --p-muted: var(--pv-dunkel-muted); --p-radius: 4px; }
.pv[data-stil="warm"] { --p-bg: var(--pv-warm-bg); --p-surface: var(--pv-warm-surface); --p-text: var(--pv-warm-text); --p-muted: var(--pv-warm-muted); --p-radius: 22px; }
.pv[data-stil="kraeftig"] { --p-bg: var(--pv-kraeftig-bg); --p-surface: var(--pv-kraeftig-surface); --p-text: var(--pv-kraeftig-text); --p-muted: var(--pv-kraeftig-muted); --p-radius: 0; --p-weight: 800; }
.pv[data-schrift="klassisch"] { --p-head: var(--pv-serif); --p-weight: 600; }
.pv[data-schrift="freundlich"] { --p-head: var(--pv-rounded); --p-body: var(--pv-rounded); }
.pv * { box-sizing: border-box; }
.pv h1, .pv h2, .pv h3 { margin: 0; font-family: var(--p-head); font-weight: var(--p-weight); letter-spacing: -0.02em; line-height: 1.1; }
.pv h1 { font-size: clamp(22px, 6.4cqw, 44px); }
.pv h2 { margin-bottom: 14px; font-size: clamp(17px, 3.6cqw, 26px); }
.pv h3 { font-size: 14px; }
.pv p { margin: 0; }
.pv-wrap { padding: 0 6cqw; }
.pv-sec { padding: 7cqw 0; }
.pv-sec:nth-of-type(even) { background: var(--p-surface); }
.pv-line { display: block; height: 7px; margin-top: 7px; border-radius: 4px; background: var(--p-muted); opacity: 0.75; }
.pv-btn { display: inline-block; margin-top: 16px; padding: 8px 16px; border-radius: max(var(--p-radius), 4px); background: var(--p-accent); color: var(--pv-on-accent); font-size: 12px; font-weight: 600; white-space: nowrap; }
.pv[data-stil="kraeftig"] .pv-btn { border-radius: 0; }
.pv-img { position: relative; overflow: hidden; border-radius: var(--p-radius); background: linear-gradient(150deg, color-mix(in srgb, var(--p-accent) 55%, var(--p-surface)), color-mix(in srgb, var(--p-accent) 18%, var(--p-surface))); }
.pv-img::before { content: ''; position: absolute; right: 14%; bottom: 0; width: 46%; aspect-ratio: 1; border-radius: 50% 50% 0 0; background: color-mix(in srgb, var(--p-accent) 30%, var(--p-bg)); opacity: 0.8; }
.pv-img::after { content: ''; position: absolute; left: 10%; bottom: 0; width: 38%; height: 58%; background: color-mix(in srgb, var(--p-accent) 70%, var(--p-text)); opacity: 0.35; clip-path: polygon(0 100%, 50% 0, 100% 100%); }

/* Kopf */
.pv-nav { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 16px; padding: 12px 6cqw; background: color-mix(in srgb, var(--p-bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid color-mix(in srgb, var(--p-text) 10%, transparent); }
.pv-logo { display: flex; align-items: center; gap: 7px; font-family: var(--p-head); font-size: 14px; font-weight: var(--p-weight); white-space: nowrap; }
.pv-logo::before { content: ''; width: 16px; height: 16px; border-radius: max(4px, calc(var(--p-radius) / 2)); background: var(--p-accent); }
.pv-links { display: flex; gap: 14px; margin-left: auto; font-size: 12px; opacity: 0.8; white-space: nowrap; overflow: hidden; }
.pv-lang { font-size: 11px; font-weight: 600; opacity: 0.7; }
.pv-burger { display: none; width: 18px; height: 10px; margin-left: auto; border-block: 1.5px solid currentColor; }
.pv-nav .pv-btn { margin-top: 0; padding: 6px 12px; font-size: 11px; }

/* Intro je nach Stil */
.pv-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 6cqw; align-items: center; padding: 9cqw 6cqw; }
.pv-hero .pv-img { aspect-ratio: 4 / 3.4; }
.pv-hero p.pv-lead { margin-top: 12px; max-width: 34ch; opacity: 0.75; }
.pv[data-stil="dunkel"] .pv-hero { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 12cqw 6cqw 8cqw; }
.pv[data-stil="dunkel"] .pv-hero .pv-img { width: 100%; aspect-ratio: 21 / 8; }
.pv[data-stil="dunkel"] .pv-hero p.pv-lead { margin-inline: auto; }
.pv[data-stil="warm"] .pv-hero { position: relative; grid-template-columns: 1fr; min-height: 52cqw; padding: 0; }
.pv[data-stil="warm"] .pv-hero .pv-img { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.pv[data-stil="warm"] .pv-hero-text { position: relative; z-index: 1; margin: 6cqw; padding: 5cqw; max-width: 60%; border-radius: var(--p-radius); background: var(--p-bg); }
.pv[data-stil="kraeftig"] .pv-hero { grid-template-columns: 1fr; padding: 0; gap: 0; }
.pv[data-stil="kraeftig"] .pv-hero-text { padding: 9cqw 6cqw; background: var(--p-accent); color: var(--pv-on-accent); }
.pv[data-stil="kraeftig"] .pv-hero h1 { font-size: clamp(26px, 8.6cqw, 60px); text-transform: uppercase; letter-spacing: -0.03em; }
.pv[data-stil="kraeftig"] .pv-hero .pv-btn { background: var(--p-text); }
.pv[data-stil="kraeftig"] .pv-hero .pv-img { aspect-ratio: 21 / 6; border-radius: 0; }

/* Bereiche */
.pv-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3cqw; }
.pv-card { padding: 14px 0 0; border-top: 1px solid color-mix(in srgb, var(--p-text) 16%, transparent); }
.pv-icon { display: block; width: 26px; height: 26px; margin-bottom: 12px; border-radius: max(6px, calc(var(--p-radius) / 2)); background: color-mix(in srgb, var(--p-accent) 22%, transparent); box-shadow: inset 0 0 0 2px var(--p-accent); }
.pv-split { display: grid; grid-template-columns: 1fr 1fr; gap: 6cqw; align-items: center; }
.pv-split .pv-img { aspect-ratio: 4 / 3; }
.pv-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2cqw; }
.pv-gallery .pv-img { aspect-ratio: 1; }
.pv-gallery .pv-img:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.pv-price { text-align: left; }
.pv-price b { display: block; width: 46%; height: 16px; margin: 10px 0 4px; border-radius: 4px; background: var(--p-text); opacity: 0.85; }
.pv-price.is-main { border-top: 2px solid var(--p-accent); }
.pv-team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3cqw; text-align: center; }
.pv-avatar { display: block; width: 70%; aspect-ratio: 1; margin: 0 auto 10px; border-radius: 50%; background: linear-gradient(160deg, color-mix(in srgb, var(--p-accent) 40%, var(--p-surface)), color-mix(in srgb, var(--p-accent) 12%, var(--p-surface))); }
.pv-quote { max-width: 46ch; font-family: var(--p-head); font-size: clamp(14px, 2.8cqw, 19px); line-height: 1.35; }
.pv-quote::before { content: '«'; color: var(--p-accent); }
.pv-quote::after { content: '»'; color: var(--p-accent); }
.pv-who { margin-top: 12px; font-size: 12px; opacity: 0.7; }
.pv-news { display: grid; gap: 12px; }
.pv-news-item { display: grid; grid-template-columns: 22% 1fr; gap: 14px; align-items: center; }
.pv-news-item .pv-img { aspect-ratio: 4 / 3; }
.pv-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3cqw; }
.pv-products .pv-img { aspect-ratio: 1; margin-bottom: 8px; }
.pv-pay { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.pv-pay span { padding: 3px 8px; border-radius: 4px; background: var(--p-bg); box-shadow: 0 0 0 1px color-mix(in srgb, var(--p-text) 18%, transparent); font-size: 10px; font-weight: 700; }
.pv-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; max-width: 280px; }
.pv-cal span { aspect-ratio: 1; border-radius: max(3px, calc(var(--p-radius) / 3)); background: var(--p-bg); box-shadow: 0 0 0 1px color-mix(in srgb, var(--p-text) 10%, transparent); }
.pv-cal span.on { background: var(--p-accent); box-shadow: none; }
.pv-cal span.off { opacity: 0.35; }
.pv-faq div { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid color-mix(in srgb, var(--p-text) 12%, transparent); font-weight: 600; }
.pv-faq div::after { content: '+'; color: var(--p-accent); font-size: 16px; }
.pv-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 6cqw; }
.pv-input { display: block; height: 28px; margin-bottom: 8px; border-radius: max(4px, calc(var(--p-radius) / 2)); background: var(--p-bg); box-shadow: 0 0 0 1px color-mix(in srgb, var(--p-text) 16%, transparent); }
.pv-input.tall { height: 64px; }
.pv-map { position: relative; min-height: 120px; border-radius: var(--p-radius); background: repeating-linear-gradient(35deg, color-mix(in srgb, var(--p-muted) 60%, var(--p-bg)) 0 2px, transparent 2px 22px), repeating-linear-gradient(-55deg, color-mix(in srgb, var(--p-muted) 60%, var(--p-bg)) 0 2px, transparent 2px 30px), var(--p-surface); }
.pv-map::after { content: ''; position: absolute; left: 50%; top: 45%; width: 16px; height: 16px; border-radius: 50% 50% 50% 0; background: var(--p-accent); transform: translate(-50%, -50%) rotate(-45deg); }
.pv-social { display: flex; gap: 8px; margin-top: 14px; }
.pv-social span { width: 22px; height: 22px; border-radius: 50%; background: var(--p-text); opacity: 0.8; }
.pv-letter { display: flex; gap: 8px; margin-top: 14px; max-width: 320px; }
.pv-letter .pv-input { flex: 1; margin: 0; }
.pv-letter .pv-btn { margin: 0; }
.pv-foot { padding: 7cqw 6cqw; background: var(--p-text); color: var(--p-bg); }
.pv-foot .pv-logo::before { background: var(--p-accent); }
.pv-foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: flex-start; }
.pv-foot small { display: block; margin-top: 14px; font-size: 11px; opacity: 0.6; }
.pv-admin { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--p-bg) 14%, transparent); font-size: 10px; font-weight: 600; }

/* Kleine Breite (Handy-Ansicht oder schmaler Bildschirm) */
@container (max-width: 520px) {
  .pv { font-size: 12px; }
  .pv-links, .pv-nav .pv-btn, .pv-lang { display: none; }
  .pv-burger { display: block; }
  .pv-hero, .pv-split, .pv-contact { grid-template-columns: 1fr; }
  .pv[data-stil="warm"] .pv-hero { min-height: 110cqw; align-items: end; }
  .pv[data-stil="warm"] .pv-hero-text { max-width: none; }
  .pv-cards { grid-template-columns: 1fr; }
  .pv-team, .pv-products { grid-template-columns: repeat(2, 1fr); }
  .pv-gallery { grid-template-columns: repeat(2, 1fr); }
  .pv h1 { font-size: 26px; }
  .pv[data-stil="kraeftig"] .pv-hero h1 { font-size: 30px; }
}

/* Leiste unten mit Mini-Bild (nur Handy) */
.pl-dock { display: none; }
.pl-dock-btn {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 8px 8px 8px; border: 0; border-radius: 22px;
  background: var(--ink); color: var(--white); font: inherit; text-align: left; cursor: pointer;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.55); transition: transform 200ms var(--ease-out);
}
.pl-dock-btn.is-updated { animation: dock-pulse 700ms var(--ease-out); }
@keyframes dock-pulse { 30% { transform: scale(1.03); } }
.pl-mini { position: relative; flex: none; width: 64px; height: 76px; overflow: hidden; border-radius: 14px; background: var(--white); }
.pl-mini .pv-mini { position: absolute; flex: none; top: 0; left: 0; width: 390px; height: 464px; overflow: hidden; transform: scale(0.1641); transform-origin: 0 0; pointer-events: none; clip-path: none; }
.pl-dock-text { display: grid; flex: 1; min-width: 0; line-height: 1.3; }
.pl-dock-text strong { font-size: 16px; }
.pl-dock-sum { overflow: hidden; color: var(--on-dark-soft); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.pl-dock-cta { flex: none; padding: 9px 16px; border-radius: 999px; background: var(--white); color: var(--ink); font-size: 14px; font-weight: 600; }
html.pl-lock, html.pl-lock body { overflow: hidden; }

/* Tablets, aufgeklappte Faltgeräte und kleine Laptops: Auswahl und Vorschau nebeneinander, etwas schmaler */
@media (max-width: 1099px) {
  .pl-app { grid-template-columns: minmax(270px, 340px) minmax(0, 1fr); gap: 24px; }
  .pl-step { padding: 18px 18px 20px; }
  .pv { height: min(74vh, 640px); }
  .pl-frame[data-device="mobile"] { max-width: 360px; }
}
/* Querformat mit wenig Höhe (Handy quer, Faltgerät halb geöffnet): Vorschau nutzt die ganze Höhe */
@media (max-height: 560px) and (min-width: 760px) {
  .pv { height: calc(100dvh - var(--nav-h) - 80px); min-height: 220px; }
  .pl-hint { display: none; }
}

/* Handys und zugeklappte Faltgeräte: Die Auswahl hat den ganzen Bildschirm.
   Unten schwebt die Leiste mit dem Mini-Bild, ein Tipp öffnet die Vorschau als Vollbild. */
@media (max-width: 759px) {
  .pl-app { grid-template-columns: minmax(0, 1fr); gap: 0; padding-bottom: 120px; }
  .pl-dock { display: block; position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 40; max-width: 520px; margin-inline: auto; }
  .pl-preview-col {
    position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column;
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    background: var(--white); transform: translateY(100%); visibility: hidden;
    transition: transform 320ms var(--ease-out), visibility 0s 320ms;
  }
  .pl-preview-col.is-open { transform: none; visibility: visible; transition-delay: 0s; }
  .pl-preview-bar { margin-bottom: 10px; padding: 0 4px; }
  .pl-preview-label { color: var(--text-strong); font-size: 17px; font-weight: 600; }
  .pl-device, .pl-frame-bar, .pl-hint { display: none; }
  .pl-close { display: inline-block; }
  .pl-frame, .pl-frame[data-device="mobile"] { display: flex; flex: 1; min-height: 0; max-width: none; margin: 0; padding: 0; border-radius: 18px; background: var(--chrome); box-shadow: 0 0 0 1px var(--line); }
  .pv, .pl-frame[data-device="mobile"] .pv { flex: 1; height: auto; clip-path: inset(0 round 18px); }
}
/* Sehr schmale Aussenbildschirme (z.B. zugeklapptes Galaxy Fold) */
@media (max-width: 360px) {
  .pl-step { padding: 16px 14px 18px; }
  .pl-choice span { padding: 7px 12px; font-size: 14px; }
  .pl-dock-cta { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pl-top { animation: none; }
  .pl-preview-col { transition: none; }
  .pl-dock-btn.is-updated { animation: none; }
}
@media (prefers-reduced-motion: reduce) { .pl-frame, .pl-choice span { transition: none; } }
