/* ===========================================================
   Purrlock – Onepager Styles
   Farbpalette: warme Pastelltöne mit Purpur/Violett-Akzenten
   Dark Mode via prefers-color-scheme
   =========================================================== */

:root {
  /* Light theme – warme Amber/Orange-Palette passend zum App-Icon */
  --bg: #fffaf0;
  --bg-elev: #ffffff;
  --bg-soft: #fff4de;
  --surface: #ffffff;
  --border: #f5e6c3;
  --border-strong: #edd49a;

  --text: #2a1d08;
  --text-muted: #6b5636;
  --text-soft: #9d8c6a;

  --primary: #f29f05;
  --primary-hover: #ffbb3a;
  --primary-soft: #fff1d6;
  --accent: #ffbb3a;
  --accent-2: #f29f05;

  --success: #2bb673;
  --danger: #e8556f;

  --shadow-sm: 0 1px 2px rgba(120, 70, 0, 0.08);
  --shadow-md: 0 8px 24px -8px rgba(180, 110, 0, 0.22);
  --shadow-lg: 0 30px 60px -20px rgba(180, 110, 0, 0.28);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --maxw: 1120px;
  --pad: clamp(1rem, 3vw, 2rem);

  --font-sans:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1207;
    --bg-elev: #221810;
    --bg-soft: #2a1f12;
    --surface: #201609;
    --border: #3a2a18;
    --border-strong: #513a20;

    --text: #fdf6e8;
    --text-muted: #c5b599;
    --text-soft: #8a7a60;

    --primary: #ffbb3a;
    --primary-hover: #f29f05;
    --primary-soft: #3a2808;
    --accent: #ffbb3a;
    --accent-2: #f29f05;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 10px 30px -8px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, var(--primary-soft), transparent 70%),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(255, 187, 58, 0.22), transparent 70%);
  background-attachment: fixed;
}

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

h1, h2, h3, h4 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  color: var(--text);
}

h1 { font-size: clamp(2.2rem, 5vw + 1rem, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 2.5vw + 1rem, 2.5rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 650; }

p { margin: 0 0 1em; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); text-decoration: underline; }

code, kbd {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 0.1em 0.45em;
  border-radius: 6px;
}

kbd {
  box-shadow: 0 1px 0 var(--border-strong);
  font-weight: 600;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
  text-decoration: none;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad);
  width: 100%;
}
.container.narrow { max-width: 760px; }
.center { text-align: center; }

section {
  padding-block: clamp(3.5rem, 8vw, 7rem);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin: 0 0 1rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-block: 0.75rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.brand-mark img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}
.nav-list {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  padding: 0;
  margin: 0 auto 0 1rem;
}
.nav-list a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-list a:hover { color: var(--text); text-decoration: none; }

@media (max-width: 720px) {
  .nav-list { display: none; }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.lang-switch {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
}
.lang-switch:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.4rem;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease,
    background-color 0.2s ease, color 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--primary-hover); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--bg-soft); color: var(--text); }

.btn-sm { padding: 0.55rem 1rem; font-size: 0.9rem; }
.btn-lg { padding: 1.05rem 1.8rem; font-size: 1.1rem; }

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(2.5rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 7vw, 6rem);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
}

.hero-copy h1 {
  background: linear-gradient(135deg, var(--text) 35%, var(--primary) 115%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  font-size: clamp(1.1rem, 1.3vw + 0.8rem, 1.3rem);
  color: var(--text-muted);
  max-width: 52ch;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}
.hero-meta {
  margin-top: 1.2rem;
  font-size: 0.85rem;
  color: var(--text-soft);
}

/* Mock window */
.hero-visual {
  position: relative;
}
.mock-window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: rotate(-0.4deg);
  position: relative;
}
.mock-titlebar {
  display: flex;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.dot {
  width: 12px; height: 12px; border-radius: 50%;
  display: inline-block;
}
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.mock-menubar {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.55rem 1rem;
  background: color-mix(in srgb, var(--bg-elev) 85%, var(--primary-soft));
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
}
.mock-menubar.inset {
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.mock-apple { font-weight: 700; }
.mock-app { font-weight: 600; color: var(--text); }
.mock-spacer { flex: 1; }
.mock-icon {
  font-size: 1rem;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
}
.mock-icon img,
.mock-icon svg { display: block; height: 18px; width: auto; }
.mock-icon { color: var(--text); }
.mock-apple svg { display: block; }

.mock-icon-active,
.mock-window[data-anim="on"] .mock-icon-purrlock {
  background: var(--primary-soft);
  box-shadow: 0 0 0 1px var(--primary);
}
.mock-icon-purrlock {
  transition: background 220ms ease, box-shadow 220ms ease;
}
@media (prefers-color-scheme: dark) {
  /* Auf dunklem Hintergrund müssen die schwarzen SF-Glyphen invertiert werden */
  .mock-icon img { filter: invert(1); }
}
.mock-clock { font-variant-numeric: tabular-nums; }

.mock-content {
  padding: 2rem 1.5rem 4rem;
  min-height: 280px;
  position: relative;
}

/* Stilisierte Tastatur am unteren Rand */
.mock-keyboard {
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 3.4rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  background: linear-gradient(180deg, var(--bg-soft), var(--border));
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 2px 6px rgba(0, 0, 0, 0.08);
}
.mock-kb-row {
  display: flex;
  gap: 4px;
  justify-content: center;
}
.mock-kb-row span {
  flex: 1 1 0;
  height: 14px;
  background: linear-gradient(180deg, #fff, #e8e2d4);
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}
.mock-kb-row .kb-wide { flex: 1.6 1 0; }
.mock-kb-row .kb-space { flex: 6 1 0; }
@media (prefers-color-scheme: dark) {
  .mock-keyboard {
    background: linear-gradient(180deg, #2a2520, #1a1612);
    border-color: #3a342c;
  }
  .mock-kb-row span {
    background: linear-gradient(180deg, #3a342c, #25201a);
    border-color: #4a4238;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
  }
}
.mock-typing {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text);
  word-break: break-all;
  min-height: 1.4rem;
  max-height: 5.8rem;
  overflow: hidden;
}
.mock-typed { white-space: pre-wrap; }
.mock-cursor {
  display: inline-block;
  width: 2px;
  height: 1.05rem;
  background: var(--text);
  vertical-align: text-bottom;
  margin-left: 1px;
  animation: cursor-blink 1.06s steps(2, start) infinite;
}
@keyframes cursor-blink {
  to { visibility: hidden; }
}
.mock-cat {
  position: absolute;
  left: 1.5rem;
  bottom: 7.4rem;
  font-size: 2.2rem;
  z-index: 2;
  animation: strut 11s ease-in-out infinite;
}
@keyframes strut {
  0%   { left: 1.5rem;                 transform: rotate(-3deg) scaleX(-1); }
  45%  { left: calc(100% - 4.5rem);    transform: rotate(3deg)  scaleX(-1); }
  50%  { left: calc(100% - 4.5rem);    transform: rotate(-3deg) scaleX(1); }
  95%  { left: 1.5rem;                 transform: rotate(3deg)  scaleX(1); }
  100% { left: 1.5rem;                 transform: rotate(-3deg) scaleX(-1); }
}
.mock-banner {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: rgba(32, 22, 8, 0.9);
  color: #fff;
  text-align: center;
  padding: 0.65rem 1rem;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 240ms ease, transform 240ms ease;
  pointer-events: none;
}
.mock-window[data-anim="on"] .mock-banner {
  opacity: 1;
  transform: translateY(0);
}
.mock-banner.big {
  position: static;
  border-radius: var(--radius);
  font-size: 1rem;
  padding: 1rem 1.5rem;
}

.placeholder-note {
  font-size: 0.78rem;
  color: var(--text-soft);
  margin-top: 0.8rem;
  text-align: center;
  font-style: italic;
}
.placeholder-note.center { text-align: center; }

/* ---------- Problem ---------- */
.problem {
  background: var(--bg-elev);
  border-block: 1px solid var(--border);
}
.problem h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}
.problem p {
  font-size: 1.15rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 60ch;
  margin-inline: auto;
}
.problem .solution {
  color: var(--text);
  font-weight: 500;
  margin-top: 1.5rem;
}

/* ---------- Features ---------- */
.feature-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    border-color 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.feature-card h3 {
  margin-bottom: 0.4rem;
}
.feature-card p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.97rem;
}

/* ---------- How ---------- */
.how { }
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  counter-reset: step;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  position: relative;
}
.step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 0.9rem;
}
.step h3 { margin-bottom: 0.35rem; }
.step p { color: var(--text-muted); margin: 0; }

/* Inline-Icon im Fließtext (z. B. SF-Symbol als PNG) */
.inline-icon {
  display: inline-block;
  height: 1em;
  width: auto;
  vertical-align: -0.15em;
  margin: 0 0.15em;
}
@media (prefers-color-scheme: dark) {
  .inline-icon { filter: invert(1); }
}

/* ---------- Legal (Impressum, Datenschutz) ---------- */
.legal h1 { margin-bottom: 0.4rem; }
.legal h2 { margin-top: 2rem; margin-bottom: 0.6rem; font-size: 1.15rem; }
.legal address {
  font-style: normal;
  margin: 1rem 0 0;
  line-height: 1.6;
}
.legal p { color: var(--text-muted); margin: 0.4rem 0; }
.legal a { color: var(--text); }

/* ---------- Install / Callout ---------- */
.install {
  background: var(--bg-elev);
  border-block: 1px solid var(--border);
}

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  margin-top: 2rem;
  box-shadow: var(--shadow-sm);
}
.callout h3 { margin-top: 0; }
.callout ol { padding-left: 1.2rem; }
.callout li { margin-bottom: 0.7rem; }
.muted { color: var(--text-muted); }
.muted.small { font-size: 0.85rem; margin-top: 1rem; }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  margin-bottom: 0.8rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq details[open] {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--primary);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  content: "−";
}
.faq details p {
  margin: 0.9rem 0 0;
  color: var(--text-muted);
}

/* ---------- CTA Final ---------- */
.cta-final {
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, var(--primary-soft), transparent 70%),
    var(--bg-elev);
  border-top: 1px solid var(--border);
  text-align: center;
}
.cta-final h2 { margin-bottom: 0.6rem; }
.cta-final p { color: var(--text-muted); margin-bottom: 2rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  padding-block: 2rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-nav a:hover { color: var(--text); }
