/* ══════════════════════════════════════
   PRODUKTSEITEN (gemeinsam für /products/ und /products/<app>/)
   Vanilla CSS, kein Framework. Regeln: DESIGN.md Abschnitt 13.

   Zwei Ebenen:
   1. RAHMEN (Clarity360): Nav, Mobile-Menü, Maker-Band, Footer.
      Nutzt nur die Tokens aus assets/theme.css.
   2. PRODUKTFLÄCHE (.p-surface): eigenes Design pro Produkt.
      Nutzt nur die --p-Tokens, die jede Produktseite in ihrem
      eigenen <style> auf .p-surface setzt. Keine Clarity360-Tokens
      innerhalb der Produktfläche verwenden.
══════════════════════════════════════ */

:root {
  --font-display: "Inter", system-ui, sans-serif;
  --font-body: "DM Sans", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --ls-display: -0.02em;
  --ls-overline: 0.18em;
  --r-2: 8px;
  --ease-out: cubic-bezier(0.22,1,0.36,1);
  --dur-1: 120ms; --dur-2: 200ms; --dur-4: 600ms;
}

/* ── Reset & Basis ── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  background: var(--bg-canvas);
  color: var(--fg-1);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
img, svg { display: block; max-width: 100%; }
p { margin: 0; text-wrap: pretty; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .wrap { padding: 0 20px; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@keyframes zeeg-spin { to { transform: rotate(360deg); } }

.reveal { opacity: 0; transform: translateY(12px);
  transition: opacity var(--dur-4) var(--ease-out), transform var(--dur-4) var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ══════════════ 1. RAHMEN (Clarity360) ══════════════ */

.nav { position: sticky; top: 0; z-index: 50; background: var(--nav-bg-scrolled);
  border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display);
  font-weight: 800; font-size: 20px; letter-spacing: -0.01em; color: var(--fg-1); }
.brand img { width: 32px; height: 32px; }
.brand .teal { color: var(--wordmark-accent); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--fg-2); transition: color var(--dur-2) var(--ease-out); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--fg-1); }
.btn-teal { background: var(--c-teal); color: var(--c-midnight); padding: 10px 18px;
  border-radius: var(--r-2); font-weight: 600; font-size: 14px; display: inline-block;
  transition: background var(--dur-2) var(--ease-out), transform var(--dur-1); }
.btn-teal:hover { background: var(--btn-primary-hover); }
.btn-teal:active { transform: scale(0.98); }
@media (max-width: 860px) { .nav-links { display: none; } }
@media (max-width: 768px) { .nav-inner .btn-teal { display: none; } }

.theme-toggle { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--fg-2); border-radius: 8px; flex-shrink: 0; }
.theme-toggle:hover { color: var(--fg-1); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px; padding: 4px; flex-shrink: 0; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--hamburger); border-radius: 2px;
  transition: transform 300ms var(--ease-out), opacity 200ms; transform-origin: center; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 860px) { .hamburger { display: flex; } }
.mobile-menu { display: none; position: fixed; top: 0; left: 0; right: 0; z-index: 49;
  background: var(--bg-canvas); border-bottom: 1px solid var(--border); padding: 80px 20px 28px;
  flex-direction: column; gap: 4px; transform: translateY(-100%); transition: transform 350ms var(--ease-out); }
.mobile-menu.open { transform: translateY(0); }
@media (max-width: 860px) { .mobile-menu { display: flex; } }
.mobile-menu a { font-size: 17px; font-weight: 500; color: var(--fg-2); padding: 13px 4px;
  border-bottom: 1px solid var(--border); }
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu .btn-mobile-cta { margin-top: 16px; background: var(--c-teal); color: var(--c-midnight);
  padding: 14px 20px; border-radius: var(--r-2); font-weight: 600; font-size: 15px; text-align: center; border-bottom: none; }

:focus-visible { outline: 2px solid var(--teal-ink); outline-offset: 3px; }

/* Maker-Band: Brücke von der Produktfläche zurück zu Clarity360 */
.maker { border-top: 1px solid var(--border); padding: 40px 0; }
.maker-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.maker-text { display: flex; align-items: center; gap: 16px; max-width: 64ch; }
.maker-text img { width: 40px; height: 40px; flex-shrink: 0; }
.maker-text p { font-size: 15px; line-height: 1.6; color: var(--fg-2); }
.maker-text strong { color: var(--fg-1); font-weight: 600; }
.maker-links { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-outline { border: 1px solid var(--teal-ink); color: var(--teal-ink); padding: 10px 18px;
  border-radius: var(--r-2); font-weight: 600; font-size: 14px; display: inline-block;
  transition: background var(--dur-2) var(--ease-out); }
.btn-outline:hover { background: var(--c-teal-50); }

.foot { border-top: 1px solid var(--section-rule, var(--border)); padding: 28px 0; }
.foot-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 8px; font-size: 13px; color: var(--fg-3); }
.foot-inner a { color: var(--fg-3); }
.foot-inner a:hover { color: var(--fg-2); opacity: 1; }
.foot-legal { flex-basis: 100%; font-size: 12px; color: var(--fg-3); }

/* ══════════════ 2. PRODUKTFLÄCHE ══════════════
   Pflicht-Tokens je Produkt (auf .p-surface gesetzt):
   --p-bg, --p-bg-alt, --p-card, --p-border, --p-ink, --p-text, --p-muted,
   --p-accent, --p-on-accent, --p-accent-ink, --p-accent-2, --p-accent-2-ink,
   --p-glow, --p-font-head, --p-font-body, --p-radius
══════════════════════════════════════════════ */

.p-surface { background: var(--p-bg); color: var(--p-text); font-family: var(--p-font-body); }
:where(.p-surface) :is(h1, h2, h3) { font-family: var(--p-font-head); color: var(--p-ink); margin: 0; }
/* :where hält die Spezifität bei 0, damit Klassen wie .p-kicker gewinnen */
:where(.p-surface) p { color: var(--p-text); }
.p-surface :focus-visible { outline-color: var(--p-accent-ink); }

.p-kicker { font-family: var(--p-font-body); font-size: 12px; font-weight: 500; letter-spacing: var(--ls-overline);
  text-transform: uppercase; color: var(--p-accent-ink); margin: 0; }

/* Hero */
.p-hero { position: relative; overflow: hidden; padding: 40px 0 72px; }
.p-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(820px 460px at 78% 30%, var(--p-glow), transparent 65%); }
.p-hero .wrap { position: relative; }
.p-back { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500;
  color: var(--p-muted); margin-bottom: 32px; }
.p-back:hover { color: var(--p-ink); }
.p-back svg { transition: transform var(--dur-2) var(--ease-out); }
.p-back:hover svg { transform: translateX(-3px); }
.p-hero-grid { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,0.9fr); gap: 56px; align-items: center; }
.p-brandline { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.p-brandline img { width: 56px; height: 56px; border-radius: 14px; }
.p-brandline span { font-family: var(--p-font-head); font-weight: 800; font-size: 22px; color: var(--p-ink); letter-spacing: -0.01em; }
.p-hero h1 { font-weight: 800; font-size: clamp(36px, 5.2vw, 64px); line-height: 1.04; letter-spacing: var(--ls-display);
  margin-top: 14px; -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
.p-hero h1 em { font-style: normal; color: var(--p-accent-ink); }
.p-lead { font-size: 19px; line-height: 1.55; margin-top: 22px; max-width: 46ch; }
.p-cta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 32px; }
.p-store img { height: 52px; width: auto; }
.p-store { border-radius: 9px; transition: transform var(--dur-1); }
.p-store:hover { transform: translateY(-2px); }
.p-meta { font-size: 14px; color: var(--p-muted); margin-top: 16px; }
.p-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--p-accent); color: var(--p-on-accent);
  padding: 14px 24px; border-radius: var(--p-radius); font-weight: 600; font-size: 16px;
  transition: filter var(--dur-2) var(--ease-out), transform var(--dur-1); }
.p-btn:hover { filter: brightness(1.08); }
.p-btn:active { transform: scale(0.98); }
.p-btn-ghost { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--p-border);
  color: var(--p-ink); padding: 13px 22px; border-radius: var(--p-radius); font-weight: 500; font-size: 15px; }
.p-btn-ghost:hover { border-color: var(--p-accent-ink); }
.p-hero-shot { justify-self: center; width: min(340px, 100%); }
.p-hero-shot img { border-radius: 11.5% / 5.6%; }
.p-hero-shot img { width: 100%; height: auto; } /* Screenshots bringen ihren Rahmen und Schatten selbst mit */
@media (max-width: 900px) {
  .p-hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .p-hero-shot { width: min(300px, 82%); }
}

/* Hero ohne Bild, zentriert (Bild übernimmt das Video darunter) */
.p-hero.center { padding-bottom: 48px; }
.p-hero.center::before { background: radial-gradient(820px 420px at 50% 20%, var(--p-glow), transparent 65%); }
.p-hero-text { max-width: 820px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.p-hero.center .p-lead { margin-left: auto; margin-right: auto; }
.p-hero.center .p-cta-row { justify-content: center; }

/* Promo-Video direkt unter dem Hero (16:9, mit Ton, Start per Klick) */
.p-video-section { padding: 0 0 88px; }
.p-video { margin: 0 auto; max-width: 1040px; aspect-ratio: 16 / 9; border-radius: calc(var(--p-radius) + 8px);
  overflow: hidden; border: 1px solid var(--p-border); background: var(--p-card);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.55); }
.p-video video { display: block; width: 100%; height: 100%; object-fit: cover; background: #000; }
.p-video iframe { display: block; width: 100%; height: 100%; border: 0; background: #000; }
.p-video-facade { position: relative; display: block; width: 100%; height: 100%; cursor: pointer; }
.p-video-facade img { display: block; width: 100%; height: 100%; object-fit: cover; }
.p-video-facade .p-video-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); box-shadow: 0 8px 30px rgba(0,0,0,0.45); transition: transform .2s; }
.p-video-facade:hover .p-video-play, .p-video-facade:focus-visible .p-video-play { transform: translate(-50%, -50%) scale(1.08); }
.p-video-facade:focus-visible { outline: 2px solid var(--p-accent); outline-offset: -4px; }
.p-video-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: radial-gradient(600px 300px at 50% 40%, var(--p-glow), transparent 70%); }
.p-video-play { width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--p-accent); color: var(--p-on-accent); padding-left: 4px; }
.p-video-label { font-size: 13px; font-weight: 500; letter-spacing: var(--ls-overline); text-transform: uppercase; color: var(--p-muted); }
@media (max-width: 768px) { .p-video-section { padding-bottom: 60px; } .p-video-play { width: 56px; height: 56px; } }

/* Sections */
.p-section { padding: 88px 0; border-top: 1px solid var(--p-border); }
.p-section.alt { background: var(--p-bg-alt); }
.p-head { max-width: 62ch; margin-bottom: 48px; display: flex; flex-direction: column; gap: 14px; }
.p-head.center { margin-left: auto; margin-right: auto; text-align: center; align-items: center; }
.p-head h2 { font-weight: 800; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.08; letter-spacing: var(--ls-display); }
.p-head p { font-size: 17px; line-height: 1.65; }
@media (max-width: 768px) { .p-section { padding: 60px 0; } }

/* Story (Warum es das Produkt gibt) */
.p-story { max-width: 760px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; gap: 22px; align-items: center; }
.p-story .p-quote { font-family: var(--p-font-head); font-weight: 700; font-size: clamp(24px, 3vw, 34px); line-height: 1.25;
  letter-spacing: -0.01em; color: var(--p-ink); margin: 0; }
.p-story .p-quote em { font-style: normal; color: var(--p-accent-ink); }
.p-story p { font-size: 17px; line-height: 1.7; max-width: 60ch; }
.p-story .p-sign { font-size: 14px; color: var(--p-muted); }

/* Feature-Zeilen mit Screenshot */
.p-features { display: flex; flex-direction: column; gap: 96px; }
.p-feature { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 64px; align-items: center; }
.p-feature:nth-child(even) .p-feature-media { order: 2; }
.p-feature-media { justify-self: center; width: min(320px, 100%); }
.p-feature-media button { display: block; width: 100%; border-radius: 22px; overflow: hidden; cursor: zoom-in;
  border: 1px solid var(--p-border); box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5);
  transition: border-color var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out); }
.p-feature-media button:hover { border-color: var(--p-accent); transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .p-feature-media button { transition: none; } }
.p-feature-media img { width: 100%; height: auto; }
.p-feature-body { display: flex; flex-direction: column; gap: 14px; max-width: 48ch; }
.p-feature-body h3 { font-weight: 800; font-size: clamp(24px, 2.8vw, 34px); line-height: 1.12; letter-spacing: var(--ls-display); }
.p-feature-body p { font-size: 17px; line-height: 1.65; }
.p-points { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.p-points li { position: relative; padding-left: 22px; font-size: 15px; line-height: 1.6; color: var(--p-text); }
.p-points li::before { content: ""; position: absolute; left: 0; top: 11px; width: 10px; height: 2px; border-radius: 2px; background: var(--p-accent); }
@media (max-width: 860px) {
  .p-features { gap: 64px; }
  .p-feature { grid-template-columns: 1fr; gap: 32px; }
  .p-feature:nth-child(even) .p-feature-media { order: 0; }
  .p-feature-media { width: min(260px, 78%); }
}

/* Weitere Funktionen als Kachelraster */
.p-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.p-tile { background: var(--p-card); border: 1px solid var(--p-border); border-radius: calc(var(--p-radius) + 4px);
  padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.p-tile-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--p-accent) 14%, transparent); color: var(--p-accent-ink); }
.p-tile-icon svg { width: 22px; height: 22px; }
.p-tile h3 { font-weight: 700; font-size: 17px; line-height: 1.3; }
.p-tile p { font-size: 15px; line-height: 1.6; }
@media (max-width: 900px) { .p-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .p-grid { grid-template-columns: 1fr; } }

/* Vertrauensblock (Datenschutz, Offline, Herkunft) */
.p-trust { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 28px; align-items: start;
  background: var(--p-card); border: 1px solid var(--p-border); border-left: 3px solid var(--p-accent);
  border-radius: calc(var(--p-radius) + 6px); padding: 36px 40px; max-width: 920px; margin: 0 auto; }
.p-trust-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--p-accent) 14%, transparent); color: var(--p-accent-ink); }
.p-trust h2 { font-weight: 800; font-size: clamp(24px, 2.8vw, 32px); line-height: 1.15; letter-spacing: var(--ls-display); }
.p-trust p { font-size: 16px; line-height: 1.7; margin-top: 12px; }
.p-trust a { color: var(--p-accent-ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) { .p-trust { grid-template-columns: 1fr; padding: 28px 24px; gap: 18px; } }

/* Galerie (horizontal, öffnet die Lightbox) */
.p-gallery { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 220px); gap: 18px;
  overflow-x: auto; padding: 4px 4px 18px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.p-gallery button { scroll-snap-align: start; border-radius: 16px; overflow: hidden; border: 1px solid var(--p-border);
  cursor: zoom-in; transition: border-color var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out); }
.p-gallery button:hover { border-color: var(--p-accent); transform: translateY(-3px); }
.p-gallery img { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { .p-gallery button { transition: none; } }

/* FAQ (natives details, wie auf den Hauptseiten) */
.p-faq { display: flex; flex-direction: column; gap: 12px; max-width: 820px; margin: 0 auto; }
.p-faq details { background: var(--p-card); border: 1px solid var(--p-border); border-radius: calc(var(--p-radius) + 4px); overflow: hidden; }
.p-faq summary { list-style: none; cursor: pointer; padding: 20px 24px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; font-family: var(--p-font-head); font-weight: 600; font-size: 17px; color: var(--p-ink); }
.p-faq summary::-webkit-details-marker { display: none; }
.p-faq summary svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--p-accent-ink); transition: transform var(--dur-2) var(--ease-out); }
.p-faq details[open] summary svg { transform: rotate(45deg); }
.p-faq .answer { padding: 0 24px 22px; }
.p-faq .answer p { font-size: 15px; line-height: 1.7; }
.p-faq .answer a { color: var(--p-accent-ink); text-decoration: underline; text-underline-offset: 3px; }

/* Abschluss-CTA */
.p-final { text-align: center; }
.p-final .p-head { margin-bottom: 28px; }
.p-final .p-cta-row { justify-content: center; margin-top: 0; }

/* ══════════════ 3. ÜBERSICHT /products/ (Clarity360-Design) ══════════════ */
.pl-hero { padding: 56px 0 40px; text-align: center; }
.pl-hero .overline { font-size: 11px; font-weight: 500; letter-spacing: var(--ls-overline); text-transform: uppercase;
  color: var(--pink-bright); margin: 0; }
.pl-hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(36px, 5.5vw, 64px); line-height: 1.04;
  letter-spacing: var(--ls-display); margin: 16px 0 0; }
.pl-hero .lead { margin: 22px auto 0; font-size: 19px; line-height: 1.5; color: var(--fg-2); max-width: 54ch; }
.pl-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; padding-bottom: 80px; }
.pl-card { background: var(--bg-card); border: 1px solid var(--border-card); border-top: 2px solid var(--c-pink);
  border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 16px;
  transition: border-color var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out); }
a.pl-card:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.pl-card-head { display: flex; align-items: center; gap: 16px; }
.pl-card-head img { width: 56px; height: 56px; border-radius: 14px; }
.pl-card h2 { font-family: var(--font-display); font-weight: 800; font-size: 22px; margin: 0; color: var(--fg-1); }
.pl-status { display: inline-block; font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--pink-bright); background: rgba(232,65,122,0.12); padding: 3px 10px; border-radius: 999px; margin-top: 4px; }
.pl-card p { font-size: 15px; line-height: 1.65; color: var(--fg-2); }
.pl-more { font-size: 14px; font-weight: 600; color: var(--teal-ink); margin-top: auto; }
.pl-card.is-soon { border-style: dashed; border-top-style: solid; }
@media (max-width: 760px) { .pl-list { grid-template-columns: 1fr; } }
