/* Haluna – Info-Homepage (haluna.app)
   Gleiche Gestaltung wie die App: ruhiger Hintergrund, Indigo statt Schwarz,
   eine eigene Farbe je Bereich, Schrift Atkinson Hyperlegible Next (lokal eingebunden,
   keine fremden Server). */

@font-face {
  font-family: 'Atkinson';
  src: url('./fonts/atkinson-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Atkinson';
  src: url('./fonts/atkinson-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Atkinson';
  src: url('./fonts/atkinson-800.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}

:root {
  --bg: #eef0f7;
  --surface: #ffffff;
  --surface-2: #f6f7fb;
  --ink: #1e2147;
  --ink-soft: #5a5e83;
  --line: #d9dcea;
  --focus-bg: #262a5c;
  --focus-ink: #ffffff;
  --focus-soft: #c3c6ec;
  --accent: #6b4fd8;
  --accent-tint: #e7e0fb;
  --danger: #b8372f;

  --med: #138a78;
  --med-tint: #d5f0eb;
  --vertrag: #b8720a;
  --vertrag-tint: #fbebcb;
  --notiz: #6b4fd8;
  --notiz-tint: #e7e0fb;
  --tagebuch: #2667c9;
  --tagebuch-tint: #dce8fb;
  --termin: #c23a6b;
  --termin-tint: #f9dde7;
  --ablage: #3f7d20;
  --ablage-tint: #e1efd8;
  --zyklus: #c2543a;
  --zyklus-tint: #fbe4dc;
  --packen: #0b78a6;
  --packen-tint: #d7edf7;

  --radius-big: 28px;
  --radius: 18px;
  --radius-small: 12px;
  --max-w: 68rem;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15172e;
    --surface: #1f2240;
    --surface-2: #262a4c;
    --ink: #ecedf7;
    --ink-soft: #a3a7c8;
    --line: #353a63;
    --focus-bg: #2b3068;
    --focus-ink: #ffffff;
    --focus-soft: #b8bce6;
    --accent: #a996ff;
    --accent-tint: #2f2a55;
    --danger: #ff8a80;

    --med: #4fd1bb;
    --med-tint: #1b3d3d;
    --vertrag: #f2b44a;
    --vertrag-tint: #3e3322;
    --notiz: #a996ff;
    --notiz-tint: #2f2a55;
    --tagebuch: #7fb0ff;
    --tagebuch-tint: #1f2f55;
    --termin: #ff86b0;
    --termin-tint: #3f2234;
    --ablage: #9bd27a;
    --ablage-tint: #263a22;
    --zyklus: #ff9f86;
    --zyklus-tint: #422922;
    --packen: #74c8ef;
    --packen-tint: #1b3546;

    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Atkinson', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 18px;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: var(--ink);
}

.icon {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
}

/* ---------- Kopfbereich ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--notiz-tint);
  color: var(--notiz);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-mark .icon {
  width: 26px;
  height: 26px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: background 0.15s, color 0.15s;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  background: var(--surface);
  color: var(--ink);
}

.site-nav a.nav-cta {
  background: var(--notiz);
  color: #ffffff;
}

.site-nav a.nav-cta:hover {
  filter: brightness(1.08);
}

/* ---------- Grundlayout ---------- */

main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px 64px;
}

section {
  margin-top: 64px;
}

.section-head {
  max-width: 42rem;
  margin-bottom: 28px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--notiz);
  background: var(--notiz-tint);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

p {
  margin: 0 0 16px;
}

.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
}

.muted {
  color: var(--ink-soft);
}

/* ---------- Knöpfe ---------- */

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 22px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--notiz);
  color: #ffffff;
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: var(--ink-soft);
}

/* ---------- Einstieg (Hero) + Handy-Vorschau ---------- */

.hero {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
}

.hero-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--surface);
  padding: 14px 16px;
  border-radius: var(--radius-small);
  border: 1px solid var(--line);
}

.hero-points .check-badge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--med-tint);
  color: var(--med);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.hero-points .check-badge .icon {
  width: 18px;
  height: 18px;
}

/* Gezeichnetes Handy-Modell (wie in der App, veraltet nie) */

.phone-frame {
  max-width: 22rem;
  margin: 0 auto;
  background: var(--bg);
  border: 6px solid var(--ink);
  border-radius: 36px;
  padding: 18px 16px 14px;
  box-shadow: 0 20px 50px rgba(30, 33, 71, 0.14);
}

.phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-weight: 700;
}

.phone-now {
  background: var(--focus-bg);
  color: var(--focus-ink);
  border-radius: 22px;
  padding: 18px;
  margin-bottom: 12px;
}

.phone-now-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--focus-soft);
  font-weight: 700;
}

.phone-now-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 4px 0 2px;
}

.phone-now-sub {
  font-size: 0.9rem;
  color: var(--focus-soft);
  margin-bottom: 14px;
}

.phone-now-actions {
  display: flex;
  gap: 8px;
}

.phone-btn-main {
  flex: 1;
  background: #ffffff;
  color: #1e2147;
  border-radius: 10px;
  padding: 8px 12px;
  text-align: center;
  font-weight: 800;
  font-size: 0.9rem;
}

.phone-btn-snooze {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 0.85rem;
}

.phone-after {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 12px;
  display: grid;
  gap: 8px;
  font-size: 0.88rem;
}

.phone-after-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex-shrink: 0;
}
.dot.termin { background: var(--termin); }
.dot.vertrag { background: var(--vertrag); }

.phone-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.phone-tile {
  padding: 10px 12px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-tile .icon {
  width: 18px;
  height: 18px;
}

.t-med { background: var(--med-tint); color: var(--med); }
.t-notiz { background: var(--notiz-tint); color: var(--notiz); }
.t-kalender { background: var(--termin-tint); color: var(--termin); }
.t-vertrag { background: var(--vertrag-tint); color: var(--vertrag); }

.phone-mini {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.phone-mini-dot {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.phone-mini-dot .icon {
  width: 17px;
  height: 17px;
}

.t-tagebuch { background: var(--tagebuch-tint); color: var(--tagebuch); }
.t-ablage { background: var(--ablage-tint); color: var(--ablage); }
.t-zyklus { background: var(--zyklus-tint); color: var(--zyklus); }
.t-packen { background: var(--packen-tint); color: var(--packen); }

.phone-fab {
  background: var(--notiz);
  color: #ffffff;
  border-radius: 14px;
  padding: 11px;
  text-align: center;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ---------- Karten & Raster ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(21rem, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.card p:last-child {
  margin-bottom: 0;
}

.module-badge {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

/* ---------- Preise (Kostenlos & Haluna Plus) ---------- */

.price-card {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius-big);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.price-card.featured {
  border-color: var(--notiz);
  box-shadow: 0 12px 32px rgba(107, 79, 216, 0.12);
}

.price-tag {
  font-size: 2.1rem;
  font-weight: 800;
  margin: 8px 0 4px;
}

.price-unit {
  font-size: 1rem;
  font-weight: 400;
}

/* Download-Bereich (vorher Inline-Stile – wegen strenger CSP hierher) */
.download-card {
  text-align: center;
  padding: 36px 24px;
}

.download-card .lead {
  max-width: 36rem;
  margin: 0 auto 20px;
}

.download-card .btn-row {
  justify-content: center;
}

.download-note {
  margin-top: 20px;
  font-size: 0.9rem;
}

.price-sub {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  gap: 10px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.feature-list .icon {
  width: 20px;
  height: 20px;
  color: var(--med);
  margin-top: 3px;
}

.fairness-box {
  margin-top: 22px;
  background: var(--notiz-tint);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.fairness-box .icon {
  color: var(--notiz);
  margin-top: 3px;
}

/* ---------- Rechtliches & Unterseiten ---------- */

.legal-wrap {
  max-width: 48rem;
  margin: 36px auto 0;
}

.legal-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 4vw, 36px);
}

.legal-card section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.legal-card section:first-of-type {
  margin-top: 20px;
}

.legal-card h2 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.legal-card ul,
.legal-card ol {
  padding-left: 22px;
  margin: 0 0 16px;
}

.legal-card li {
  margin-bottom: 8px;
}

.info-list {
  margin: 0;
  display: grid;
  gap: 12px;
}

.info-list > div {
  background: var(--surface-2);
  border-radius: var(--radius-small);
  padding: 14px 16px;
}

.info-list dt {
  font-weight: 800;
  margin-bottom: 4px;
}

.info-list dd {
  margin: 0;
  color: var(--ink-soft);
}

.mdr-notice {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  padding: 14px 18px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

address {
  font-style: normal;
  background: var(--surface-2);
  padding: 14px 18px;
  border-radius: var(--radius-small);
  margin-bottom: 14px;
  line-height: 1.6;
}

details.faq {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  padding: 16px 20px;
  margin-bottom: 12px;
}

details.faq summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

details.faq summary::-webkit-details-marker {
  display: none;
}

details.faq summary::after {
  content: '+';
  color: var(--ink-soft);
  font-size: 1.3rem;
  line-height: 1;
  flex-shrink: 0;
}

details.faq[open] summary::after {
  content: '–';
}

details.faq p {
  margin: 12px 0 0;
  color: var(--ink-soft);
}

/* ---------- Fußbereich ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 72px;
  padding: 36px 20px 48px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  text-decoration: none;
  font-weight: 700;
}

.footer-links a:hover {
  text-decoration: underline;
}
