/* nimmit.css - Webseite nimmit.app
   Tokens 1:1 aus dem App-Designsystem (warme Papier-Neutrale + ein Grün) */

/* ── Schrift: Nunito selbst gehostet (keine Daten an Google) ─ */
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/nunito-500.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/nunito-600.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/nunito-700.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 800; font-display: swap; src: url('/fonts/nunito-800.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 900; font-display: swap; src: url('/fonts/nunito-900.woff2') format('woff2'); }

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --bg: #F4F2EC;
  --surface: #FFFFFF;
  --surface-alt: #FBFAF6;
  --text: #23211C;
  --muted: #736F65;
  --faint: #A8A498;
  --accent: #1F8A5B;
  --accent-deep: #197A4F;
  --accent-soft: rgba(31, 138, 91, 0.12);
  --on-accent: #FFFFFF;
  --danger: #D8392B;
  --divider: rgba(35, 33, 28, 0.09);
  --chip-bg: #EDEAE1;
  --shadow: 0 10px 34px rgba(40, 36, 28, 0.14);
  --shadow-soft: 0 4px 16px rgba(40, 36, 28, 0.08);
  --font: "Nunito", -apple-system, system-ui, sans-serif;
  --mono: "SF Mono", ui-monospace, "Cascadia Mono", Menlo, monospace;
  --radius: 22px;
  --radius-sm: 14px;
}

html[data-theme="dark"] {
  --bg: #15140F;
  --surface: #211F1A;
  --surface-alt: #2A2823;
  --text: #F3F1EA;
  --muted: #A09D92;
  --faint: #6F6C62;
  --accent: #3BAE78;
  --accent-deep: #2E9866;
  --accent-soft: rgba(59, 174, 120, 0.18);
  --on-accent: #0C1410;
  --danger: #FF6B5C;
  --divider: rgba(255, 255, 255, 0.08);
  --chip-bg: #2A2823;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 4px 14px rgba(0, 0, 0, 0.3);
}

/* ── Basis ──────────────────────────────────────────────── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s ease, color 0.25s ease;
}
::selection { background: var(--accent-soft); }
a { color: var(--accent); text-decoration: none; font-weight: 700; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
p { text-wrap: pretty; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  display: flex; align-items: center; gap: 20px;
  max-width: 1080px; margin: 0 auto;
  padding: 22px 24px;
}
.brand {
  display: flex; align-items: center; gap: 11px;
  font-size: 22px; font-weight: 900; letter-spacing: -0.02em;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand svg { display: block; border-radius: 9px; box-shadow: var(--shadow-soft); }
.site-nav { display: flex; gap: 22px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.site-nav a { color: var(--muted); font-weight: 700; font-size: 15.5px; white-space: nowrap; }
.site-nav a:hover { color: var(--text); text-decoration: none; }
.site-nav a.active { color: var(--accent); }
.header-actions { display: flex; gap: 10px; align-items: center; }

.lang-switch {
  display: flex; background: var(--chip-bg); border-radius: 99px; padding: 3px;
}
.lang-switch button {
  border: none; background: transparent; font-family: var(--font);
  font-weight: 800; font-size: 13px; color: var(--muted);
  padding: 5px 11px; border-radius: 99px; cursor: pointer;
}
.lang-switch button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-soft); }

.theme-btn {
  width: 38px; height: 38px; border-radius: 50%; border: none;
  background: var(--chip-bg); color: var(--muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.theme-btn:hover { color: var(--text); }
.theme-btn svg { display: block; }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px;
  align-items: center; padding: 56px 0 84px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-soft); color: var(--accent);
  font-weight: 800; font-size: 14px;
  padding: 7px 15px; border-radius: 99px; margin-bottom: 22px; white-space: nowrap;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero h1 {
  font-size: clamp(38px, 5.2vw, 58px);
  line-height: 1.08; letter-spacing: -0.025em;
  font-weight: 900; margin: 0 0 20px;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub {
  font-size: 19px; color: var(--muted); font-weight: 600;
  margin: 0 0 32px; max-width: 480px;
}

/* E-Mail-Form */
.notify-form { display: flex; gap: 10px; max-width: 460px; }
.notify-form input {
  flex: 1; min-width: 0;
  font-family: var(--font); font-size: 16px; font-weight: 600;
  color: var(--text); background: var(--surface);
  border: 1.5px solid var(--divider); border-radius: 99px;
  padding: 14px 22px; outline: none;
  transition: border-color 0.15s;
}
.notify-form input::placeholder { color: var(--faint); }
.notify-form input:focus { border-color: var(--accent); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 800; font-size: 16px;
  background: var(--accent); color: var(--on-accent);
  border: none; border-radius: 99px; padding: 14px 26px;
  cursor: pointer; white-space: nowrap;
  transition: background 0.15s, transform 0.1s;
}
.btn:hover { background: var(--accent-deep); }
.btn:active { transform: scale(0.97); }
.btn-ghost { background: var(--chip-bg); color: var(--text); }
.btn-ghost:hover { background: var(--divider); }
.notify-note { font-size: 14px; color: var(--faint); font-weight: 600; margin-top: 12px; }
.notify-ok {
  display: flex; align-items: center; gap: 10px;
  background: var(--accent-soft); color: var(--accent);
  font-weight: 800; font-size: 16px;
  padding: 14px 22px; border-radius: 99px; max-width: 460px;
}

/* ── Demo-Zettel ────────────────────────────────────────── */
.demo-col { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.demo-note {
  width: 100%; max-width: 400px;
  background: var(--surface); border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 8px 0 12px;
  overflow: hidden;
}
.demo-head {
  display: flex; align-items: baseline; gap: 10px;
  padding: 16px 24px 10px;
}
.demo-head h3 { margin: 0; font-size: 22px; font-weight: 900; letter-spacing: -0.02em; }
.demo-head span { font-size: 13px; color: var(--faint); font-weight: 700; }
.demo-list { min-height: 200px; }
.demo-item {
  display: flex; align-items: center; gap: 14px;
  padding: 0 24px; min-height: 56px;
  cursor: pointer; user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.demo-item.new { animation: item-in 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes item-in {
  from { transform: translateY(8px); }
  to { transform: none; }
}
.demo-item + .demo-item { border-top: 1px solid var(--divider); }
.demo-check {
  width: 27px; height: 27px; border-radius: 50%; flex-shrink: 0;
  border: 2.5px solid var(--faint);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.18s ease;
}
.demo-item.done .demo-check { border-color: var(--accent); background: var(--accent); }
.demo-check svg { opacity: 0; transition: opacity 0.15s; }
.demo-item.done .demo-check svg { opacity: 1; }
.demo-item .nm {
  flex: 1; font-weight: 700; font-size: 17.5px; letter-spacing: -0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color 0.18s;
}
.demo-item .qty { font-size: 13.5px; font-weight: 700; color: var(--muted); white-space: nowrap; flex-shrink: 0; }
.demo-item.done .nm, .demo-item.done .qty { color: var(--faint); text-decoration: line-through; }

/* Diktat-Vorschau */
.demo-dictate {
  display: none; margin: 6px 20px 2px;
  background: var(--accent-soft); border-radius: var(--radius-sm);
  padding: 12px 16px; font-weight: 700; font-size: 15.5px; color: var(--accent);
  min-height: 22px;
}
.demo-dictate.on { display: block; }
.demo-dictate .cursor {
  display: inline-block; width: 2px; height: 1em; background: var(--accent);
  vertical-align: text-bottom; margin-left: 2px;
  animation: blink 0.9s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* QuickAddBar */
.demo-bar {
  display: flex; gap: 10px; align-items: center;
  padding: 12px 16px 6px;
}
.demo-bar .field {
  flex: 1; display: flex; align-items: center; gap: 10px;
  background: var(--bg); border-radius: 99px; padding: 0 8px 0 18px;
  height: 50px;
}
.demo-bar .field svg { flex-shrink: 0; color: var(--faint); }
.demo-bar input {
  flex: 1; min-width: 0; border: none; background: transparent; outline: none;
  font-family: var(--font); font-size: 16px; font-weight: 700; color: var(--text);
}
.demo-bar input::placeholder { color: var(--faint); font-weight: 600; }
.mic-btn {
  width: 50px; height: 50px; border-radius: 50%; border: none; flex-shrink: 0;
  background: var(--accent); color: var(--on-accent); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  transition: background 0.15s, transform 0.1s;
}
.mic-btn:hover { background: var(--accent-deep); }
.mic-btn:active { transform: scale(0.94); }
.mic-btn.listening::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 2.5px solid var(--accent);
  animation: mic-pulse 1.2s ease-out infinite;
}
@keyframes mic-pulse {
  0% { transform: scale(0.88); opacity: 0.9; }
  100% { transform: scale(1.25); opacity: 0; }
}
.demo-caption {
  font-family: var(--mono); font-size: 12.5px; color: var(--faint);
  text-align: center;
}

/* ── Sektionen ──────────────────────────────────────────── */
.section { padding: 72px 0; }
.section-title {
  font-size: clamp(30px, 3.6vw, 42px); font-weight: 900;
  letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 14px;
  text-wrap: balance;
}
.section-lead { font-size: 18px; color: var(--muted); font-weight: 600; max-width: 560px; margin: 0 0 44px; }

/* 4 Versprechen */
.promises { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.promise {
  background: var(--surface); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow-soft);
}
.promise .ico {
  width: 48px; height: 48px; border-radius: 16px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.promise h3 { margin: 0 0 8px; font-size: 19px; font-weight: 900; letter-spacing: -0.01em; }
.promise p { margin: 0; font-size: 15px; color: var(--muted); font-weight: 600; line-height: 1.55; }

/* Bewusst-nicht-Chips */
.nope-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 36px; }
.nope-label { font-size: 14.5px; font-weight: 800; color: var(--faint); margin-right: 4px; }
.nope {
  display: inline-flex; align-items: center; gap: 7px;
  background: transparent; border: 1.5px dashed var(--divider);
  color: var(--faint); font-weight: 700; font-size: 14.5px;
  padding: 7px 15px; border-radius: 99px;
  text-decoration: line-through; text-decoration-thickness: 1.5px;
}

/* Teilen / E2E-Teaser */
.share-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 36px; }
.share-step {
  background: var(--surface); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-soft);
  position: relative;
}
.share-step .num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent);
  font-weight: 900; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.share-step h3 { margin: 0 0 8px; font-size: 18px; font-weight: 900; }
.share-step p { margin: 0; font-size: 15px; color: var(--muted); font-weight: 600; line-height: 1.55; }
.code-pill {
  display: inline-block; font-family: var(--mono); font-size: 13px;
  background: var(--bg); border-radius: 8px; padding: 3px 8px;
  color: var(--text); margin-top: 10px; word-break: break-all;
}
.code-pill .key { color: var(--accent); font-weight: 700; }

/* Bottom-Band */
.band {
  background: var(--surface); border-radius: 32px;
  padding: 56px 48px; box-shadow: var(--shadow-soft);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
  margin-bottom: 72px;
}
.band h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 900; letter-spacing: -0.02em; margin: 0 0 12px; }
.band p { color: var(--muted); font-weight: 600; margin: 0; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--divider); padding: 40px 0 56px; }
.footer-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 24px;
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 14.5px; font-weight: 700; }
.footer-links a:hover { color: var(--text); text-decoration: none; }
.footer-brand { display: flex; align-items: center; gap: 9px; font-weight: 900; font-size: 16px; color: var(--muted); }
.footer-note {
  width: 100%; font-size: 14px; color: var(--faint); font-weight: 600; margin-top: 4px;
}
.footer-note strong { color: var(--muted); }

/* ── Unterseiten (Artikel-Layout) ───────────────────────── */
.page { padding: 32px 0 80px; }
.page h1 { font-size: clamp(32px, 4.4vw, 46px); font-weight: 900; letter-spacing: -0.02em; line-height: 1.12; margin: 0 0 14px; text-wrap: balance; }
.page .lead { font-size: 19px; color: var(--muted); font-weight: 600; margin: 0 0 40px; }
.page h2 { font-size: 24px; font-weight: 900; letter-spacing: -0.01em; margin: 44px 0 12px; }
.page p, .page li { color: var(--muted); font-weight: 600; font-size: 16.5px; }
.page p strong, .page li strong { color: var(--text); }
.page h3 { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; margin: 26px 0 8px; color: var(--text); }
.page ul { padding-left: 22px; }
.page li { margin-bottom: 8px; }
.page code { font-family: var(--mono); font-size: 0.9em; background: var(--chip-bg); border-radius: 6px; padding: 2px 6px; word-break: break-word; }
.callout {
  background: var(--accent-soft); border-radius: var(--radius-sm);
  padding: 18px 22px; margin: 24px 0;
}
.callout p { margin: 0; color: var(--text); font-weight: 600; font-size: 15.5px; }
.callout.warn { background: rgba(216, 57, 43, 0.08); }
html[data-theme="dark"] .callout.warn { background: rgba(255, 107, 92, 0.12); }

/* E2E-Diagramm */
.e2e-diagram {
  display: grid; grid-template-columns: 1fr auto 1.1fr auto 1fr; gap: 12px;
  align-items: stretch; margin: 36px 0 12px;
}
.e2e-node {
  background: var(--surface); border-radius: var(--radius);
  padding: 20px 18px; box-shadow: var(--shadow-soft); text-align: center;
}
.e2e-node .who { font-size: 13.5px; font-weight: 800; color: var(--faint); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.e2e-node .what { font-weight: 800; font-size: 16px; color: var(--text); }
.e2e-node .what.cipher { font-family: var(--mono); font-size: 13px; color: var(--muted); font-weight: 600; word-break: break-all; }
.e2e-node .sub { font-size: 13px; color: var(--faint); font-weight: 700; margin-top: 8px; }
.e2e-arrow { display: flex; align-items: center; color: var(--faint); }
.diagram-caption { font-family: var(--mono); font-size: 12.5px; color: var(--faint); text-align: center; margin-bottom: 24px; }

/* Join-Seite */
.join-stage { min-height: calc(100vh - 180px); display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.join-card {
  background: var(--surface); border-radius: 32px; box-shadow: var(--shadow);
  max-width: 480px; width: 100%; padding: 48px 40px; text-align: center;
}
.join-card h1 { font-size: 28px; font-weight: 900; letter-spacing: -0.02em; margin: 24px 0 10px; }
.join-card p { color: var(--muted); font-weight: 600; margin: 0 0 8px; }
.store-badges { display: flex; gap: 12px; justify-content: center; margin: 28px 0 20px; flex-wrap: wrap; }
.store-badge {
  display: flex; align-items: center; gap: 10px;
  background: var(--chip-bg); border-radius: 14px; padding: 10px 18px;
  color: var(--muted); font-weight: 700; font-size: 14px; text-align: left;
  cursor: default;
}
.store-badge .big { display: block; font-size: 15px; font-weight: 900; color: var(--text); }
.store-badge small { font-size: 11.5px; font-weight: 700; color: var(--faint); }
.join-privacy {
  font-size: 13.5px; color: var(--faint); font-weight: 600;
  border-top: 1px solid var(--divider); padding-top: 18px; margin-top: 24px;
}

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(80px);
  background: var(--text); color: var(--bg);
  font-weight: 800; font-size: 15px; padding: 12px 22px; border-radius: 99px;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s;
  z-index: 999;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 44px; padding: 32px 0 64px; }
  .promises { grid-template-columns: repeat(2, 1fr); }
  .share-grid { grid-template-columns: 1fr; }
  .band { grid-template-columns: 1fr; padding: 40px 28px; }
  .e2e-diagram { grid-template-columns: 1fr; }
  .e2e-arrow { justify-content: center; transform: rotate(90deg); }
}
@media (max-width: 600px) {
  .promises { grid-template-columns: 1fr; }
  .site-nav { gap: 14px; }
  .site-nav a { font-size: 14px; }
  .notify-form { flex-direction: column; }
  .notify-form .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-item.new { animation: none; }
  .mic-btn.listening::after { animation: none; opacity: 0.5; }
  html { scroll-behavior: auto; }
}

/* ── Produktion: Zustände, die der Design-Prototyp nicht hat ──────────────── */
[hidden] { display: none !important; }

/* Primärbutton in voller Breite (Snapshot „In Nimmit öffnen", /j-Deep-Link) */
.btn-block { display: flex; width: 100%; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* ── Snapshot einer geteilten Liste (#s=<payload>) + Fehler-View ─────────── */
.snapshot-stage {
  min-height: calc(100vh - 220px);
  display: flex; align-items: center; justify-content: center;
  padding: 48px 0;
}
.snapshot-card {
  background: var(--surface); border-radius: 32px; box-shadow: var(--shadow);
  max-width: 480px; width: 100%; padding: 40px 32px; text-align: center;
}
.snap-hint {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--accent-soft); color: var(--accent);
  font-weight: 800; font-size: 13.5px;
  padding: 6px 14px; border-radius: 99px; margin-bottom: 18px;
}
.snapshot-card .card-icon {
  width: 72px; height: 72px; border-radius: 22px;
  background: var(--accent-soft); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 22px;
}
.snapshot-card h1 {
  font-size: 26px; font-weight: 900; letter-spacing: -0.02em; line-height: 1.2;
  margin: 0 0 6px; overflow-wrap: anywhere;
}
.snap-sub { font-size: 15px; color: var(--muted); font-weight: 600; margin: 0 0 22px; }
.snap-list { list-style: none; padding: 0; margin: 0 0 24px; text-align: left; }
.snap-item {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 4px; border-bottom: 1px solid var(--divider);
  font-size: 16.5px; font-weight: 700;
}
.snap-item:last-child { border-bottom: none; }
.snap-check {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  border: 2.5px solid var(--faint);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 900; color: transparent;
}
.snap-item.checked .snap-check { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.snap-name { overflow-wrap: anywhere; }
.snap-item.checked .snap-name { color: var(--muted); text-decoration: line-through; }
.snap-empty { font-size: 15px; color: var(--muted); font-weight: 600; padding: 12px 0 4px; margin: 0 0 24px; }
.snap-store-hint { font-size: 14px; line-height: 1.6; color: var(--muted); font-weight: 600; }
.snap-privacy {
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--divider);
  font-size: 13px; color: var(--faint); font-weight: 600; line-height: 1.5;
}

/* ── 404 ─────────────────────────────────────────────────────────────────── */
.error-stage { text-align: center; padding: 72px 0 64px; }
.error-icon {
  width: 80px; height: 80px; border-radius: 24px;
  background: var(--accent-soft); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 26px;
}
.error-code {
  font-size: clamp(3.5rem, 12vw, 5rem); font-weight: 900; line-height: 1;
  letter-spacing: -2px; color: var(--accent); margin: 0 0 14px;
}
.error-stage h1 { font-size: clamp(26px, 5vw, 34px); font-weight: 900; letter-spacing: -0.02em; margin: 0 0 14px; }
.error-sub { font-size: 16px; color: var(--muted); font-weight: 600; max-width: 420px; margin: 0 auto 32px; line-height: 1.6; }
