/* Seiten-Ebene für pixmop.com.
   glass.css liefert Palette, Typografie und Karten-Material aus der App; hier
   kommt nur dazu, was eine Website braucht und eine App nicht.

   Zwei Leitplanken, an denen sich alles unten orientiert:
   - Typografie: Tracking und Leading sind größenabhängig, nie ein Wert für
     alles. Große Schrift will negatives Tracking und enges Leading, Fließtext
     das Gegenteil.
   - Bewegung: nur auf der Startseite. Datenschutz und Support sind Seiten, auf
     denen jemand etwas nachschlägt — dort ist eine Einblendung reine Verzögerung
     zwischen Frage und Antwort. */

:root {
  /* Die eingebauten CSS-Kurven sind zu weich; diese haben den nötigen Zug. */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --site-max: 54rem;
  --site-pad: max(1.25rem, env(safe-area-inset-left));
}

/* Die App-Screens sind bildschirmfüllend und beginnen mit einem Zurück-Button.
   Beides ergibt im Browser keinen Sinn. */
.screen { min-height: 0; padding: 0; }
.screen > .btn:first-child { display: none; }
.screen > div[style*="overflow"] { overflow: visible !important; }

body { min-height: 100dvh; display: flex; flex-direction: column; }

/* ---------- Kopfzeile: schwebendes Material, Inhalt läuft darunter ---------- */

.site-head {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding: 0.85rem var(--site-pad);
  background: var(--glass-strong);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  /* Weicher Auslauf statt 1px-Kante: die Trennung entsteht dort, wo das
     schwebende Material den Inhalt überlappt, nicht durch einen Strich. */
  mask-image: linear-gradient(to bottom, #000 calc(100% - 0.75rem), transparent);
}
.site-head > * { max-width: var(--site-max); }

.brand {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.01em;
  color: var(--text); text-decoration: none;
}
.brand img { border-radius: 0.45rem; display: block; }

.site-head nav { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.site-head nav a {
  color: var(--text-dim); text-decoration: none;
  font-size: 0.875rem; font-weight: 500; letter-spacing: 0.005em;
  /* Nur Farbe, keine Bewegung: diese Links sieht man auf jeder Seite. */
  transition: color 150ms ease;
}
.site-head nav a:hover { color: var(--text); }
.site-head nav a[aria-current="page"] { color: var(--accent-ink); }

/* ---------- Rumpf ---------- */

.site-main {
  flex: 1; width: 100%; max-width: var(--site-max); margin: 0 auto;
  padding: 1rem var(--site-pad) 3rem;
}

.site-foot {
  width: 100%; max-width: var(--site-max); margin: 0 auto;
  padding: 1.5rem var(--site-pad) calc(1.75rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--glass-border);
  font-size: 0.8125rem; line-height: 1.8; color: var(--text-dim);
}
.site-foot a { color: var(--text-dim); }
.site-foot a:hover { color: var(--text); }

.page { display: flex; flex-direction: column; gap: 1.15rem; }

/* ---------- Startseite ---------- */

.hero { text-align: center; padding: 2rem 0 0.5rem; }
.hero-icon {
  border-radius: 1.375rem; display: block; margin: 0 auto 1.15rem;
  /* Größere Fläche liest sich als dickeres Material: tieferer Schatten. */
  box-shadow: 0 1.25rem 2.5rem -0.75rem rgb(0 0 0 / 45%);
}
.hero h1 {
  font-size: clamp(2.25rem, 7vw, 3.25rem);
  font-weight: 800;
  line-height: 1.04;            /* eng, weil groß */
  letter-spacing: -0.028em;     /* negativ, weil groß */
  margin-bottom: 0.35rem;
}
.claim {
  font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.01em;
  color: var(--accent-ink); margin-bottom: 0.9rem;
}
.lede {
  font-size: 1rem; line-height: 1.7; letter-spacing: 0;  /* Fließtext: kein Tracking */
  color: var(--text-dim); max-width: 52ch; margin: 0 auto;
}

.cards { display: grid; gap: 0.75rem; grid-template-columns: 1fr; }
@media (min-width: 41rem) { .cards { grid-template-columns: 1fr 1fr; } }

.card {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 1rem; padding: 1.15rem;
}
.card h2, .card h3 {
  font-size: 1rem; font-weight: 700; letter-spacing: -0.005em; margin-bottom: 0.4rem;
}
.card p { font-size: 0.875rem; line-height: 1.7; color: var(--text-dim); }
.card a { color: var(--accent-ink); }
.contact p + p { margin-top: 0.65rem; }
.hint { font-size: 0.8125rem; }
.faq-head { font-size: 0.9375rem; font-weight: 700; margin-top: 0.9rem; }
.note { font-size: 0.8125rem; color: var(--text-dim); text-align: center; margin-top: 0.4rem; }

h1, h2, h3 { color: var(--text); }

/* ---------- Rückmeldung auf den Druck, nicht auf das Loslassen ---------- */

a { -webkit-tap-highlight-color: transparent; }
.brand:active, .site-head nav a:active, .site-foot a:active, .card a:active {
  opacity: 0.6;
  transition: opacity 60ms ease-out;
}

/* ---------- Bewegung: ausschließlich Startseite ---------- */

@media (prefers-reduced-motion: no-preference) {
  /* Bewusst innerhalb der Query definiert: ohne sie greift keine Animation und
     der Inhalt steht sofort da, statt unsichtbar auf ein Keyframe zu warten. */
  .hero > *, .cards > .card, .note {
    animation: rise 520ms var(--ease-out) both;
  }
  .hero > *:nth-child(1) { animation-delay: 0ms; }
  .hero > *:nth-child(2) { animation-delay: 45ms; }
  .hero > *:nth-child(3) { animation-delay: 90ms; }
  .hero > *:nth-child(4) { animation-delay: 135ms; }
  .cards > .card:nth-child(1) { animation-delay: 170ms; }
  .cards > .card:nth-child(2) { animation-delay: 200ms; }
  .cards > .card:nth-child(3) { animation-delay: 230ms; }
  .cards > .card:nth-child(4) { animation-delay: 260ms; }
  .note { animation-delay: 300ms; }

  /* Nur transform und opacity - alles andere kostet Layout oder Paint. */
  @keyframes rise {
    from { opacity: 0; transform: translate3d(0, 0.75rem, 0); }
    to   { opacity: 1; transform: none; }
  }
}

/* ---------- Zugänglichkeit ---------- */

@media (prefers-reduced-transparency: reduce) {
  .site-head {
    background: var(--bg-a);
    backdrop-filter: none; -webkit-backdrop-filter: none;
    mask-image: none; border-bottom: 1px solid var(--glass-border);
  }
}

@media (prefers-contrast: more) {
  .card { background: var(--bg-a); border-color: var(--text-dim); }
  .site-head nav a, .lede, .card p, .site-foot { color: var(--text); }
}

/* ---------- Demo-Video ---------- */

.demo { margin: 0.25rem 0 0; }
.demo-video {
  display: block; width: 100%; height: auto;
  border-radius: 1.25rem;
  background: var(--bg-a);
  /* Gleiches Gewicht wie das App-Icon darüber: größere Fläche, tieferer
     Schatten — sonst schwebt das Video vor einem Hintergrund, zu dem es
     nicht gehört. */
  box-shadow: 0 1.5rem 3rem -1rem rgb(0 0 0 / 50%);
}
.demo figcaption {
  margin-top: 0.7rem; text-align: center;
  font-size: 0.8125rem; color: var(--text-dim);
}
