/* ResqDiary Marketing-Website. Farben/Typografie aus shared/design-tokens.json (Dark-Theme). */

@font-face {
  font-family: "Quicksand";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/quicksand-variable.woff2") format("woff2");
}

:root {
  --bg: #0f172a;
  --surface: #0e273f;
  --surface-alt: #143147;
  --outline: #1f3b5a;
  --brand: #38bdf8;
  --brand-hover: #7dd3fc;
  --on-brand: #0f172a;
  --text-primary: #f2f4f7;
  --text-secondary: #aab4c0;
  --text-tertiary: #8896a8;
  --danger: #e43d3a;
  --success: #0de16f;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-xxl: 32px;
  --space-xxxl: 48px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

h1, h2, .logotype {
  font-family: "Quicksand", -apple-system, sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

a { color: var(--brand); }

img { max-width: 100%; display: block; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-xl) 0;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--text-primary);
}

.brand-mark img { height: 28px; width: auto; }

.brand-mark span {
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--text-primary);
}

.site-header nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  margin-left: var(--space-xl);
}

.site-header nav a:hover { color: var(--text-primary); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-xxxl);
  align-items: center;
  padding: var(--space-xl) 0 var(--space-xxxl);
}

.hero h1 {
  font-size: 44px;
  line-height: 1.15;
  margin: 0 0 var(--space-lg);
}

.hero .lede {
  font-size: 19px;
  color: var(--text-secondary);
  margin: 0 0 var(--space-xxl);
  max-width: 46ch;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  align-items: center;
}

.store-badges a { display: inline-block; line-height: 0; }

.store-badges img { height: 48px; width: auto; }

.hero-shot { justify-self: center; }

/* Phone frame, rein CSS, kein Bild-Asset noetig */
.phone {
  position: relative;
  width: 240px;
  border-radius: 34px;
  background: #06101f;
  padding: 10px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--outline);
}

.phone img {
  border-radius: 24px;
  width: 100%;
}

.phone::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.18);
  z-index: 1;
}

/* Section headings */
.section { padding: var(--space-xxxl) 0; border-top: 1px solid var(--outline); }

.section h2 {
  font-size: 30px;
  margin: 0 0 var(--space-sm);
}

.section .section-lede {
  color: var(--text-secondary);
  max-width: 60ch;
  margin: 0 0 var(--space-xxl);
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  color: var(--brand);
}

.feature-card h3 {
  font-size: 17px;
  margin: 0 0 var(--space-xs);
  font-weight: 600;
}

.feature-card p {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0;
}

/* Screenshot gallery */
.gallery {
  display: flex;
  gap: var(--space-xl);
  overflow-x: auto;
  padding-bottom: var(--space-md);
  scroll-snap-type: x proximity;
}

.gallery .phone { flex: 0 0 auto; width: 200px; scroll-snap-align: start; }

.gallery-caption {
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: var(--space-md);
}

/* Trust / Privacy */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.trust-item {
  padding: var(--space-lg) 0;
}

.trust-item .kicker {
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  color: var(--brand);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 var(--space-sm);
}

.trust-item p { margin: 0; color: var(--text-secondary); }

/* Crisis note */
.crisis-note {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-left: 3px solid var(--danger);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-xl);
  font-size: 14px;
  color: var(--text-secondary);
}

.crisis-note strong { color: var(--text-primary); }

/* Final CTA */
.cta-section {
  text-align: center;
}

.cta-section h2 { margin-bottom: var(--space-md); }

.cta-section .store-badges { justify-content: center; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--outline);
  padding: var(--space-xxl) 0 var(--space-xxxl);
  color: var(--text-tertiary);
  font-size: 14px;
}

.site-footer .footer-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.site-footer a { color: var(--text-secondary); }

.site-footer nav a { margin-right: var(--space-lg); }

/* Legal pages (Impressum/Datenschutz) */
.legal-page { padding: var(--space-xxl) 0 var(--space-xxxl); max-width: 720px; }

.legal-page h1 { font-size: 32px; margin-bottom: var(--space-xl); }

.legal-page h2 {
  font-size: 20px;
  margin: var(--space-xxl) 0 var(--space-sm);
}

.legal-page p, .legal-page li { color: var(--text-secondary); }

.legal-page address { font-style: normal; color: var(--text-secondary); }

.back-link { display: inline-block; margin-bottom: var(--space-xl); font-size: 15px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-shot { justify-self: start; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 var(--space-lg); }
  .hero h1 { font-size: 32px; }
  .feature-grid { grid-template-columns: 1fr; }
  .site-header { flex-direction: column; align-items: flex-start; gap: var(--space-md); }
  .site-header nav { display: flex; gap: var(--space-lg); }
  .site-header nav a { margin-left: 0; }
  .store-badges { justify-content: center; width: 100%; }
  .hero-shot { justify-self: center; }
}
