/* ==========================================================================
   Papersmith — Marketing-Website
   Design-System-Tokens und Komponenten nach Design-Handover (High-Fidelity).
   Keine Webfonts, keine Fremd-Requests, kein Tracking.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  color-scheme: light;

  /* Farben — Basiswerte */
  --ps-ink-900: #2A2520;    /* Tinte — Text, dunkle Flächen */
  --ps-ink-700: #55504A;
  --ps-ink-500: #7D7468;
  --ps-ink-300: #A39588;
  --ps-paper-0: #FFFDF9;    /* Karten */
  --ps-paper-50: #FAF6F0;   /* Papier — Seitengrund */
  --ps-paper-100: #F1E9DD;  /* vertiefte Flächen */
  --ps-paper-200: #E8DFD1;
  --ps-copper-600: #B0682F;
  --ps-copper-500: #C97A3D; /* Kupfer — Akzent */
  --ps-copper-200: #E5C9A8; /* Falz auf hell */
  --ps-copper-100: #F3E4D2;
  --ps-linen-500: #8C7B66;  /* Leinen — gedämpfter Zweitton */
  --ps-linen-300: #C9BCA9;  /* Falz auf dunkel */
  --ps-success: #5C7F50;
  --ps-warning: #C99B3D;
  --ps-danger: #B1503C;

  /* Farben — semantische Aliasse */
  --ps-surface-page: var(--ps-paper-50);
  --ps-surface-card: var(--ps-paper-0);
  --ps-surface-sunken: var(--ps-paper-100);
  --ps-surface-inverse: var(--ps-ink-900);
  --ps-text-primary: var(--ps-ink-900);
  --ps-text-secondary: var(--ps-ink-500);
  --ps-text-tertiary: var(--ps-ink-300);
  --ps-text-on-accent: var(--ps-paper-50);
  --ps-text-on-inverse: var(--ps-paper-50);
  --ps-accent: var(--ps-copper-500);
  --ps-accent-hover: var(--ps-copper-600);
  --ps-accent-soft: var(--ps-copper-100);
  --ps-border-subtle: #EAE1D3;
  --ps-border-strong: #D8CBB8;
  --ps-focus-ring: 0 0 0 3px rgba(201, 122, 61, 0.35);

  /* Rahmenfarbe der Geräte-Mockups auf dunklem Grund */
  --ps-device-dark: #191511;

  /* Typografie — Apples Systemschriften, kein Font-Hosting */
  --ps-font-display: -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', sans-serif;
  --ps-font-body: -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', sans-serif;
  --ps-tracking-display: -0.025em;
  --ps-tracking-micro: 0.09em;

  /* Abstände — 4er-Raster */
  --ps-space-1: 4px;  --ps-space-2: 8px;  --ps-space-3: 12px; --ps-space-4: 16px;
  --ps-space-5: 20px; --ps-space-6: 24px; --ps-space-7: 32px; --ps-space-8: 40px;
  --ps-space-9: 48px; --ps-space-10: 64px;

  /* Radien */
  --ps-radius-sm: 6px;
  --ps-radius-md: 10px;
  --ps-radius-lg: 14px;
  --ps-radius-xl: 22px;
  --ps-radius-pill: 999px;

  /* Schatten — warm getönt, nie neutralgrau */
  --ps-shadow-card: 0 2px 8px rgba(40, 30, 20, 0.08);
  --ps-shadow-float: 0 4px 12px rgba(42, 37, 32, 0.25);
  --ps-shadow-banner: 0 8px 24px rgba(42, 37, 32, 0.18);
  --ps-shadow-device: 0 18px 36px rgba(40, 30, 20, 0.14);
  --ps-shadow-device-dark: 0 24px 48px rgba(0, 0, 0, 0.4);

  /* Layout */
  --ps-container: 1140px;
  --ps-gutter: 32px;
  --ps-nav-height: 65px;
}

/* --------------------------------------------------------------------------
   2. Reset und Grundlagen
   -------------------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Sticky-Nav darf Ankerziele nicht verdecken */
  scroll-padding-top: calc(var(--ps-nav-height) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ps-surface-page);
  color: var(--ps-text-primary);
  font-family: var(--ps-font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: var(--ps-copper-500); }
a:hover { color: var(--ps-copper-600); }

img, svg { display: block; max-width: 100%; }
img { height: auto; }

button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid transparent;
  box-shadow: var(--ps-focus-ring);
  border-radius: var(--ps-radius-sm);
}

/* Sichtbarer Sprung zum Inhalt für Tastatur- und Screenreader-Nutzung */
.ps-skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: var(--ps-radius-pill);
  background: var(--ps-ink-900);
  color: var(--ps-paper-50);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease-out;
}
.ps-skip-link:focus {
  top: 12px;
  color: var(--ps-paper-50);
}

.ps-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.ps-container {
  max-width: var(--ps-container);
  margin: 0 auto;
  padding-left: var(--ps-gutter);
  padding-right: var(--ps-gutter);
  width: 100%;
}

.ps-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ps-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   3. Sprachumschaltung — beide Fassungen stehen im Markup, CSS blendet um
   -------------------------------------------------------------------------- */

.en { display: none; }
.lang-en .en { display: revert; }
.lang-en .de { display: none; }

/* --------------------------------------------------------------------------
   4. Typografische Bausteine
   -------------------------------------------------------------------------- */

.ps-eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--ps-tracking-micro);
  text-transform: uppercase;
  color: var(--ps-copper-600);
}
.ps-eyebrow--on-dark { color: var(--ps-copper-200); }

.ps-wordmark {
  font-family: var(--ps-font-display);
  font-weight: 700;
  letter-spacing: var(--ps-tracking-display);
}

.ps-h2 {
  margin: 0;
  font-family: var(--ps-font-display);
  font-weight: 700;
  font-size: 36px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}

.ps-h3 {
  margin: 0;
  font-family: var(--ps-font-display);
  font-weight: 700;
  font-size: 27px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-wrap: balance;
}

.ps-lead {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ps-ink-700);
}

/* --------------------------------------------------------------------------
   5. Komponenten
   -------------------------------------------------------------------------- */

/* 5.1 Button */
.ps-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--ps-radius-pill);
  font-family: var(--ps-font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.18s ease-out, color 0.18s ease-out,
              border-color 0.18s ease-out, transform 0.12s ease-out;
  /* Verzögerung durch Touch-Erkennung vermeiden */
  touch-action: manipulation;
}
.ps-btn:active { transform: translateY(1px); }

.ps-btn--primary {
  background: var(--ps-copper-500);
  color: var(--ps-paper-50);
}
.ps-btn--primary:hover {
  background: var(--ps-copper-600);
  color: var(--ps-paper-50);
}

.ps-btn--ghost {
  background: transparent;
  color: var(--ps-copper-500);
}
.ps-btn--ghost:hover {
  background: var(--ps-copper-100);
  color: var(--ps-copper-600);
}
/* Ghost auf dunklem Grund: Fläche würde zu hell aufreißen */
.ps-hero .ps-btn--ghost:hover {
  background: rgba(201, 122, 61, 0.14);
  color: var(--ps-copper-200);
}

.ps-btn--sm {
  min-height: 38px;
  padding: 0 18px;
  font-size: 14.5px;
}
.ps-btn--lg {
  min-height: 48px;
  padding: 0 22px;
  font-size: 16px;
}

/* 5.2 Badge */
.ps-badge {
  display: inline-flex;
  align-items: center;
  border-radius: var(--ps-radius-pill);
  background: var(--ps-copper-100);
  color: var(--ps-copper-600);
  padding: 4px 10px;
  font-family: var(--ps-font-display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
}

/* 5.3 Card */
.ps-card {
  background: var(--ps-paper-0);
  border: 1px solid var(--ps-border-subtle);
  border-radius: var(--ps-radius-lg);
  box-shadow: var(--ps-shadow-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ps-card h3 {
  margin: 0;
  font-family: var(--ps-font-display);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.ps-card h4 {
  margin: 0;
  font-family: var(--ps-font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.ps-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ps-ink-700);
}
.ps-card--tile { gap: 10px; }
.ps-card--tile p { font-size: 14.5px; line-height: 1.5; }

/* 5.4 Icons — Lucide, inline als Sprite (keine Fremd-Requests) */
.ps-icon {
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--ps-copper-500);
}
.ps-icon--19 { width: 19px; height: 19px; }
.ps-icon--22 { width: 22px; height: 22px; }
.ps-icon--26 { width: 26px; height: 26px; }

/* 5.5 Sucherklammern — Markenmotiv */
.ps-frame { position: relative; }
.ps-frame > .ps-bracket {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 0 solid var(--ps-copper-500);
  pointer-events: none;
}
.ps-frame > .ps-bracket--tl { top: 0; left: 0;  border-top-width: 4px; border-left-width: 4px;  border-top-left-radius: 14px; }
.ps-frame > .ps-bracket--tr { top: 0; right: 0; border-top-width: 4px; border-right-width: 4px; border-top-right-radius: 14px; }
.ps-frame > .ps-bracket--bl { bottom: 0; left: 0;  border-bottom-width: 4px; border-left-width: 4px;  border-bottom-left-radius: 14px; }
.ps-frame > .ps-bracket--br { bottom: 0; right: 0; border-bottom-width: 4px; border-right-width: 4px; border-bottom-right-radius: 14px; }

/* 5.6 Icon-Liste */
.ps-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 16.5px;
  line-height: 1.5;
  color: var(--ps-ink-700);
}
.ps-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.ps-list .ps-icon { margin-top: 2px; }

/* 5.7 Geräte-Mockup */
.ps-device {
  position: relative;
  flex: 0 0 auto;
  background: var(--ps-paper-50);
  border: 9px solid var(--ps-ink-900);
  border-radius: 40px;
  box-shadow: var(--ps-shadow-device);
  overflow: hidden;
  width: 280px;
  height: 580px;
}
.ps-device--on-dark {
  border-color: var(--ps-device-dark);
  box-shadow: var(--ps-shadow-device-dark);
}
.ps-device img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Scan-Linie über dem Screenshot */
.ps-scanline {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 7%;
  height: 42px;
  z-index: 6;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(to bottom,
              rgba(201, 122, 61, 0) 0%,
              rgba(201, 122, 61, 0.12) 65%,
              rgba(201, 122, 61, 0.4) 100%);
  border-bottom: 2px solid var(--ps-copper-500);
  animation: ps-scan 6s ease-in-out 1.4s infinite;
}
.ps-scanline--delay-12 { animation-delay: 1.2s; }

/* --------------------------------------------------------------------------
   6. Navigation
   -------------------------------------------------------------------------- */

.ps-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ps-paper-50);
  border-bottom: 1px solid var(--ps-border-subtle);
}
.ps-nav__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.ps-nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ps-ink-900);
  flex: 0 0 auto;
}
.ps-nav__brand img { border-radius: 7px; }
.ps-nav__brand .ps-wordmark { font-size: 19px; }

.ps-nav__spacer { flex: 1; }

.ps-nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.ps-nav__link {
  text-decoration: none;
  color: var(--ps-ink-700);
  font-size: 15px;
  transition: color 0.18s ease-out;
}
.ps-nav__link:hover { color: var(--ps-ink-900); }

/* Segmentcontrol DE / EN */
.ps-segment {
  display: flex;
  border: 1px solid var(--ps-border-strong);
  border-radius: var(--ps-radius-pill);
  overflow: hidden;
  flex: 0 0 auto;
}
.ps-segment button {
  border: none;
  cursor: pointer;
  padding: 7px 13px;
  font-family: var(--ps-font-body);
  font-size: 13px;
  font-weight: 600;
  background: transparent;
  color: var(--ps-ink-700);
  transition: background-color 0.18s ease-out, color 0.18s ease-out;
  touch-action: manipulation;
}
.ps-segment button:hover { color: var(--ps-ink-900); }
.ps-segment button[aria-pressed="true"] {
  background: var(--ps-ink-900);
  color: var(--ps-paper-50);
}
.ps-segment button:focus-visible {
  box-shadow: inset var(--ps-focus-ring);
  border-radius: 0;
}

/* Kurzfassung des CTA und Sprachschalter im Panel: erst auf schmalen Displays */
.ps-nav__cta-mini { display: none; }
.ps-nav__segment-panel { display: none; }

/* Menü-Schalter — erst unterhalb des Umbruchs sichtbar */
.ps-nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  border: 1px solid var(--ps-border-strong);
  border-radius: var(--ps-radius-md);
  background: transparent;
  color: var(--ps-ink-900);
  cursor: pointer;
  touch-action: manipulation;
}
.ps-nav__toggle .ps-icon { color: currentColor; width: 22px; height: 22px; }
.ps-nav__toggle .ps-nav__icon-close,
.ps-nav__toggle[aria-expanded="true"] .ps-nav__icon-open { display: none; }
.ps-nav__toggle[aria-expanded="true"] .ps-nav__icon-close { display: block; }

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */

.ps-hero {
  background: var(--ps-ink-900);
  color: var(--ps-paper-50);
}
.ps-hero__inner {
  padding-top: 88px;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 26px;
  overflow: hidden;
}
.ps-hero__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.ps-hero__title {
  margin: 0;
  font-family: var(--ps-font-display);
  font-weight: 700;
  font-size: 88px;
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.ps-hero__title em {
  font-style: normal;
  color: var(--ps-copper-500);
}
.ps-hero__badge { margin-bottom: 14px; }

.ps-hero__body {
  display: flex;
  gap: 64px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.ps-hero__col {
  flex: 1 1 460px;
  min-width: min(380px, 100%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  padding-bottom: 72px;
}
.ps-hero__subline {
  margin: 0;
  font-size: 20px;
  line-height: 1.55;
  color: var(--ps-linen-300);
  max-width: 44ch;
}
.ps-hero__actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.ps-hero__facts {
  margin: 0;
  font-size: 14px;
  color: var(--ps-linen-300);
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Angeschnittenes Gerät, bündig mit der Hero-Unterkante */
.ps-hero__device {
  flex: 0 0 auto;
  position: relative;
  padding: 24px 24px 0;
  align-self: flex-end;
}
.ps-hero__device > .ps-bracket { border-width: 0; }
.ps-hero__device > .ps-bracket--tl { border-top-width: 5px; border-left-width: 5px;  border-top-left-radius: 16px; }
.ps-hero__device > .ps-bracket--tr { border-top-width: 5px; border-right-width: 5px; border-top-right-radius: 16px; }
/* Der Splash ist mittig komponiert — nicht wie die App-Screenshots oben ausrichten */
.ps-device--cropped img { object-position: center; }
.ps-device--cropped {
  width: 300px;
  height: 490px;
  border: 10px solid var(--ps-device-dark);
  border-bottom: none;
  border-radius: 44px 44px 0 0;
  box-shadow: var(--ps-shadow-device-dark);
}

/* --------------------------------------------------------------------------
   8. Laufband
   -------------------------------------------------------------------------- */

.ps-marquee {
  background: var(--ps-paper-100);
  border-top: 1px solid var(--ps-border-subtle);
  overflow: hidden;
  padding: 14px 0;
}
.ps-marquee__track {
  display: flex;
  width: max-content;
  animation: ps-marquee 22s linear infinite;
}
.ps-marquee__track.is-paused { animation-play-state: paused; }
.ps-marquee:hover .ps-marquee__track,
.ps-marquee:focus-within .ps-marquee__track { animation-play-state: paused; }
.ps-marquee__set {
  display: flex;
  gap: 48px;
  padding: 0 24px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: var(--ps-tracking-micro);
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ps-copper-600);
}

/* --------------------------------------------------------------------------
   9. Motivation
   -------------------------------------------------------------------------- */

.ps-why {
  background: var(--ps-paper-0);
  border-top: 1px solid var(--ps-border-subtle);
  border-bottom: 1px solid var(--ps-border-subtle);
}
.ps-why__inner {
  padding-top: 88px;
  padding-bottom: 88px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.ps-why__intro {
  max-width: 66ch;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ps-grid--2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 20px;
}

/* --------------------------------------------------------------------------
   10. Features
   -------------------------------------------------------------------------- */

.ps-features {
  padding-top: 96px;
  padding-bottom: 96px;
  display: flex;
  flex-direction: column;
  gap: 80px;
}
.ps-features__intro {
  max-width: 60ch;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ps-split {
  display: flex;
  gap: 64px;
  align-items: center;
  flex-wrap: wrap;
}
.ps-split--reverse { flex-wrap: wrap-reverse; }
.ps-split__media { flex: 0 0 auto; }
.ps-split__text {
  flex: 1 1 420px;
  min-width: min(340px, 100%);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.ps-split__heading {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ps-note {
  margin: 0;
  font-size: 14px;
  color: var(--ps-linen-500);
}
.ps-split__intro {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ps-ink-700);
  max-width: 52ch;
}

/* Quadratischer Widget-Rahmen */
.ps-widget {
  flex: 0 0 auto;
  padding: 22px;
}
.ps-widget > .ps-bracket { width: 36px; height: 36px; }
.ps-widget__shot {
  width: 280px;
  height: 280px;
  border-radius: var(--ps-radius-xl);
  overflow: hidden;
  box-shadow: var(--ps-shadow-device);
}
.ps-widget__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ps-grid--tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 20px;
}

/* --------------------------------------------------------------------------
   11. Privacy
   -------------------------------------------------------------------------- */

.ps-privacy {
  background: var(--ps-ink-900);
  color: var(--ps-paper-50);
}
.ps-privacy__inner {
  padding-top: 96px;
  padding-bottom: 96px;
  display: flex;
  gap: 72px;
  align-items: center;
  flex-wrap: wrap;
}
.ps-privacy__col {
  flex: 1 1 480px;
  min-width: min(360px, 100%);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.ps-privacy__title {
  margin: 0;
  font-family: var(--ps-font-display);
  font-weight: 700;
  font-size: 44px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
}
.ps-privacy__lead {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ps-linen-300);
  max-width: 52ch;
}
.ps-facts {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 12px;
  font-size: 16px;
}
.ps-facts li {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* --------------------------------------------------------------------------
   12. Beta-CTA
   -------------------------------------------------------------------------- */

.ps-beta {
  padding-top: 104px;
  padding-bottom: 104px;
}
.ps-beta__frame {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px;
}
.ps-beta__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.ps-beta__body img { border-radius: 13px; }
.ps-beta__title {
  margin: 0;
  font-family: var(--ps-font-display);
  font-weight: 700;
  font-size: 38px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}
.ps-beta__text {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ps-ink-700);
  max-width: 54ch;
}
.ps-beta__cta { margin-top: 6px; }

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */

.ps-footer {
  background: var(--ps-paper-100);
  border-top: 1px solid var(--ps-border-subtle);
  margin-top: auto;
}
.ps-footer__inner {
  padding-top: 32px;
  padding-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.ps-footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ps-ink-900);
}
.ps-footer__brand img { border-radius: 6px; }
.ps-footer__brand .ps-wordmark { font-size: 16px; letter-spacing: -0.02em; }
.ps-footer__claim {
  font-size: 14px;
  color: var(--ps-linen-500);
}
.ps-footer__links {
  display: flex;
  gap: 20px;
  font-size: 14px;
}
.ps-footer__links a {
  color: var(--ps-ink-700);
  text-decoration: none;
  transition: color 0.18s ease-out;
}
.ps-footer__links a:hover { color: var(--ps-ink-900); }
.ps-footer__links a[aria-current="page"] {
  color: var(--ps-ink-900);
  font-weight: 600;
}
.ps-footer__copy {
  font-size: 13px;
  color: var(--ps-ink-300);
}

/* --------------------------------------------------------------------------
   14. Rechtliche Unterseiten
   -------------------------------------------------------------------------- */

.ps-legal {
  flex: 1;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  padding: 72px var(--ps-gutter) 96px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.ps-legal__head {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ps-legal__title {
  margin: 0;
  font-family: var(--ps-font-display);
  font-weight: 700;
  font-size: 44px;
  letter-spacing: var(--ps-tracking-display);
  line-height: 1.1;
}
.ps-legal__stand {
  margin: 0;
  font-size: 15px;
  color: var(--ps-linen-500);
}
.ps-legal section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ps-legal h2 {
  margin: 0;
  font-family: var(--ps-font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.ps-legal p {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ps-ink-700);
}
.ps-legal .ps-lead + p,
.ps-legal p + p { margin-top: 4px; }

/* Definitionslisten für Berechtigungen und Empfänger */
.ps-legal dl {
  margin: 4px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ps-legal dt {
  font-family: var(--ps-font-display);
  font-weight: 600;
  font-size: 16.5px;
  letter-spacing: -0.01em;
  color: var(--ps-ink-900);
}
.ps-legal dd {
  margin: 2px 0 0;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ps-ink-700);
}

/* Offene Felder deutlich markieren, damit vor dem Launch keines übersehen wird.
   TODO: Klasse zusammen mit dem eingesetzten Wert entfernen. */
.ps-todo {
  background: var(--ps-copper-100);
  box-shadow: inset 0 -2px 0 var(--ps-copper-500);
  border-radius: 3px;
  padding: 0 3px;
  color: var(--ps-copper-600);
  font-weight: 600;
}

.ps-footer__copy a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.18s ease-out;
}
.ps-footer__copy a:hover { color: var(--ps-ink-700); }

.ps-notfound { gap: 28px; justify-content: center; }

.ps-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: var(--ps-ink-700);
  font-size: 15px;
  transition: color 0.18s ease-out;
}
.ps-back:hover { color: var(--ps-ink-900); }
.ps-back .ps-icon { width: 17px; height: 17px; color: currentColor; }
.ps-back__short { display: none; }
@media (max-width: 560px) {
  .ps-back__long { display: none; }
  .ps-back__short { display: inline; }
}

/* --------------------------------------------------------------------------
   15. Animationen
   -------------------------------------------------------------------------- */

@keyframes ps-rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@keyframes ps-scan {
  0%   { top: 7%;  opacity: 0; }
  6%   { opacity: 0.8; }
  42%  { top: 84%; opacity: 0.8; }
  48%  { top: 88%; opacity: 0; }
  100% { top: 88%; opacity: 0; }
}
@keyframes ps-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Hero-Einstieg, gestaffelt */
.ps-rise   { animation: ps-rise 0.55s ease-out both; }
.ps-rise-1 { animation: ps-rise 0.50s ease-out 0.05s both; }
.ps-rise-2 { animation: ps-rise 0.55s ease-out 0.12s both; }
.ps-rise-3 { animation: ps-rise 0.65s ease-out 0.15s both; }
.ps-rise-4 { animation: ps-rise 0.55s ease-out 0.20s both; }
.ps-rise-5 { animation: ps-rise 0.55s ease-out 0.28s both; }

/* Scroll-Reveal — der Startzustand gilt nur mit aktivem JS,
   damit ohne JS nichts unsichtbar bleibt.
   Eine Bewegungssprache für alles: 0.55s ease-out, 18px Weg. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
  transition-delay: var(--ps-reveal-delay, 0ms);
  will-change: opacity, transform;
}
/* Richtungsvarianten — Textspalten steigen, Geräte kommen von der Seite */
.js [data-reveal="left"]  { transform: translate3d(-26px, 10px, 0); }
.js [data-reveal="right"] { transform: translate3d(26px, 10px, 0); }
.js [data-reveal="scale"] { transform: translateY(14px) scale(0.965); }

.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* Gestaffelte Kinder — Verzögerung setzt das Skript als Custom Property */
.js [data-stagger] > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  transition-delay: var(--ps-reveal-delay, 0ms);
}
.js [data-stagger].is-revealed > * {
  opacity: 1;
  transform: none;
}

/* Sanfte Tiefe: Geräte laufen beim Scrollen etwas gegen die Seite */
.js [data-parallax] {
  transform: translate3d(0, var(--ps-parallax, 0px), 0);
  will-change: transform;
}

/* Lesefortschritt — feine Kupferlinie an der Unterkante der Navigation */
.ps-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 100%;
  transform: scaleX(var(--ps-progress, 0));
  transform-origin: 0 50%;
  background: var(--ps-copper-500);
  opacity: 0.9;
  pointer-events: none;
}

/* Navigation legt beim Scrollen einen leisen Schatten an */
.ps-nav {
  transition: box-shadow 0.25s ease-out, background-color 0.25s ease-out;
}
.ps-nav.is-scrolled {
  box-shadow: 0 6px 20px rgba(40, 30, 20, 0.07);
  background: rgba(250, 246, 240, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}

/* Sucherklammern zeichnen sich aus der Ecke heraus */
.js [data-reveal] > .ps-bracket {
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.45s ease-out, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.js [data-reveal] > .ps-bracket--tl { transform-origin: top left;     transition-delay: 0.08s; }
.js [data-reveal] > .ps-bracket--tr { transform-origin: top right;    transition-delay: 0.16s; }
.js [data-reveal] > .ps-bracket--br { transform-origin: bottom right; transition-delay: 0.24s; }
.js [data-reveal] > .ps-bracket--bl { transform-origin: bottom left;  transition-delay: 0.32s; }
.js [data-reveal].is-revealed > .ps-bracket {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js [data-reveal],
  .js [data-stagger] > *,
  .js [data-reveal] > .ps-bracket { opacity: 1; transform: none; }
  .js [data-parallax] { transform: none; }
  .ps-scanline { display: none; }
  .ps-progress { display: none; }
  .ps-nav.is-scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* --------------------------------------------------------------------------
   16. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .ps-hero__title { font-size: 72px; }
  .ps-hero__body { gap: 48px; }
  .ps-privacy__inner { gap: 56px; }
}

/* Navigation klappt ein */
@media (max-width: 900px) {
  :root { --ps-gutter: 24px; }

  .ps-nav__inner { gap: 16px; }
  .ps-nav__toggle { display: inline-flex; order: 3; }

  .ps-nav__links {
    display: none;
    order: 4;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 8px 0 12px;
    border-top: 1px solid var(--ps-border-subtle);
    margin-top: 6px;
  }
  .ps-nav__inner.is-open { flex-wrap: wrap; }
  .ps-nav__inner.is-open .ps-nav__links { display: flex; }
  .ps-nav__link {
    padding: 12px 4px;
    font-size: 16px;
    border-radius: var(--ps-radius-md);
  }

  .ps-hero__inner { padding-top: 64px; }
  .ps-hero__title { font-size: 60px; }
  .ps-hero__col { padding-bottom: 56px; flex-basis: 100%; }
  /* Gestapelt: Badge unter die Headline, Gerät mittig und weiter bündig unten */
  .ps-hero__head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .ps-hero__badge { margin-bottom: 0; }
  .ps-hero__device { margin-inline: auto; }

  .ps-features { gap: 64px; }
  .ps-split { gap: 40px; }
  /* Gestapelt: Gerät und Widget mittig statt links angeschlagen */
  .ps-split__media,
  .ps-widget { margin-inline: auto; }
  .ps-privacy__title { font-size: 38px; }
}

@media (max-width: 720px) {
  .ps-hero__inner { padding-top: 52px; gap: 20px; }
  .ps-hero__head { align-items: flex-start; gap: 14px; }
  .ps-hero__title { font-size: clamp(40px, 11vw, 56px); }
  .ps-hero__badge { margin-bottom: 0; }
  .ps-hero__subline { font-size: 18px; }
  .ps-hero__col { padding-bottom: 44px; gap: 20px; }
  .ps-hero__actions { width: 100%; }
  .ps-hero__actions .ps-btn { flex: 1 1 auto; }

  .ps-why__inner { padding-top: 64px; padding-bottom: 64px; gap: 32px; }
  .ps-features { padding-top: 72px; padding-bottom: 72px; }
  .ps-privacy__inner { padding-top: 72px; padding-bottom: 72px; gap: 48px; }
  .ps-beta { padding-top: 80px; padding-bottom: 80px; }

  .ps-h2 { font-size: 30px; }
  .ps-h3 { font-size: 23px; }
  .ps-privacy__title { font-size: 32px; }
  .ps-beta__title { font-size: 30px; }
  .ps-legal { padding-top: 56px; padding-bottom: 72px; gap: 30px; }
  .ps-legal__title { font-size: 34px; }

  .ps-list { font-size: 16px; }
  .ps-card { padding: 22px; }

  .ps-beta__frame { padding: 32px 24px; }
  .ps-beta__frame > .ps-bracket { width: 30px; height: 30px; }
  .ps-beta__cta { width: 100%; }

  .ps-footer__inner { gap: 16px; }
  .ps-footer__spacer { display: none; }
  .ps-footer__links { width: 100%; }
}

/* Sehr schmale Geräte: Wortmarke, Sprachschalter und CTA müssen nebeneinander passen */
@media (max-width: 560px) {
  :root { --ps-gutter: 20px; }

  .ps-nav__inner { gap: 12px; }
  .ps-nav__brand .ps-wordmark { font-size: 17px; }
  .ps-nav__cta-full { display: none; }
  .ps-nav__cta-mini { display: inline; }
  .ps-nav .ps-btn--sm { padding: 0 14px; font-size: 14px; }
  .ps-nav__segment-inline { display: none; }
  .ps-nav__segment-panel { display: flex; align-self: flex-start; margin-top: 8px; }

  .ps-hero__device { padding: 20px 20px 0; }
  .ps-device--cropped { width: min(280px, 84vw); height: 440px; }
  .ps-hero__device > .ps-bracket { width: 34px; height: 34px; }

  .ps-device { width: min(280px, 82vw); height: auto; aspect-ratio: 280 / 580; }
  .ps-widget__shot { width: min(280px, 76vw); height: auto; aspect-ratio: 1; }
  .ps-widget { padding: 18px; }
  .ps-widget > .ps-bracket { width: 30px; height: 30px; }

  .ps-marquee__set { gap: 32px; font-size: 12px; }
  .ps-split { gap: 32px; }
  .ps-facts { gap: 10px; }
}

@media (max-width: 380px) {
  .ps-hero__title { font-size: 38px; }
  .ps-nav__brand .ps-wordmark { font-size: 16px; }
  .ps-nav .ps-btn--sm { padding: 0 12px; }
}

/* Querformat auf niedrigen Displays: Hero nicht überhoch werden lassen */
@media (max-height: 520px) and (orientation: landscape) {
  .ps-hero__inner { padding-top: 40px; }
  .ps-device--cropped { height: 360px; }
}

/* --------------------------------------------------------------------------
   17. Druck — vor allem für die rechtlichen Seiten
   -------------------------------------------------------------------------- */

@media print {
  .ps-nav, .ps-marquee, .ps-skip-link, .ps-footer__links { display: none !important; }
  body { background: #fff; color: #000; }
  .ps-legal { padding: 0; max-width: none; }
  .ps-legal p, .ps-legal h2 { color: #000; }
  a { color: #000; text-decoration: underline; }
}
