/* Farben und Typografie sind aus der App gespiegelt:
   conjuru_flutter/lib/app/theme/app_theme.dart (ConjuColors.light/.dark). */

@font-face {
  font-family: 'Manrope';
  src: url('/fonts/Manrope-var.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: 'Spectral';
  src: url('/fonts/Spectral-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  --bg: #f4efe6;
  --panel: #fbf8f1;
  --card: #ffffff;
  --ink: #241f18;
  --soft: #7a7065;
  --line: #e3dccd;
  --accent: #c0512f;
  --accent-soft: #f3e0d8;
  --shadow: 0 18px 40px -22px rgba(60, 40, 20, 0.45);

  --sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Spectral', Georgia, 'Times New Roman', serif;

  --measure: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161310;
    --panel: #1f1b16;
    --card: #26211a;
    --ink: #f1e9da;
    --soft: #a89b88;
    --line: #352e25;
    --accent: #e07a4e;
    --accent-soft: #3a261d;
    --shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.7);
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Kopfzeile ─────────────────────────────────────────────── */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.05em;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.wordmark em {
  font-style: normal;
  color: var(--accent);
}

.lang-switch {
  display: flex;
  gap: 0.9rem;
  font-size: 0.9rem;
}

.lang-switch a {
  color: var(--soft);
  text-decoration: none;
}

.lang-switch a:hover {
  color: var(--ink);
}

.lang-switch a.active {
  color: var(--ink);
  font-weight: 700;
}

/* ── Hero ──────────────────────────────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  padding: 3.5rem 0 4rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.lead {
  margin: 1.25rem 0 0;
  max-width: 34em;
  font-size: 1.15rem;
  color: var(--soft);
}

/* ── Store-Buttons ─────────────────────────────────────────── */

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1.2rem;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  line-height: 1.2;
}

.store-badge svg {
  flex: none;
}

.store-badge .small {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
}

.store-badge .big {
  display: block;
  font-size: 1rem;
  font-weight: 700;
}

.store-badge.primary {
  background: var(--accent);
  color: #fff;
}

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

.store-badge.muted {
  background: transparent;
  border-color: var(--line);
  color: var(--soft);
  cursor: default;
}

/* ── Karten-Mock im Hero ───────────────────────────────────── */

.card-mock {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 2.25rem 2rem;
  text-align: center;
}

.card-mock .verb {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 2.6rem;
  line-height: 1.1;
}

.card-mock .meta {
  margin-top: 0.35rem;
  color: var(--soft);
  font-size: 0.95rem;
}

.card-mock .chip {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
}

.card-mock .answer {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--line);
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 600;
}

/* ── Features ──────────────────────────────────────────────── */

.features {
  padding: 1rem 0 4rem;
}

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

.feature {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem;
}

.feature h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.feature p {
  margin: 0;
  color: var(--soft);
  font-size: 0.95rem;
}

/* ── Screenshots (Platzhalter) ─────────────────────────────── */

.shots {
  padding: 0 0 4.5rem;
}

.shots h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 2rem;
  margin: 0 0 1.75rem;
}

.shot-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.shot {
  aspect-ratio: 9 / 19;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  background: var(--panel);
}

.shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Fußzeile ──────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 3rem;
  color: var(--soft);
  font-size: 0.9rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 0.75rem;
}

.site-footer a {
  color: var(--soft);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* ── Rechtstexte ───────────────────────────────────────────── */

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 1rem 0 4rem;
}

.legal h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 2.1rem;
  line-height: 1.2;
}

.legal h2 {
  font-size: 1.25rem;
  margin-top: 2.2rem;
}

.legal h3 {
  font-size: 1.05rem;
  margin-top: 1.6rem;
}

.legal table {
  border-collapse: collapse;
  width: 100%;
  margin: 1rem 0;
  font-size: 0.95rem;
}

.legal th,
.legal td {
  border: 1px solid var(--line);
  padding: 0.5rem 0.65rem;
  text-align: left;
  vertical-align: top;
}

.legal th {
  background: var(--panel);
}

.legal hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

.legal blockquote {
  margin: 1rem 0;
  padding: 0.6rem 1rem;
  border-left: 4px solid var(--line);
  background: var(--panel);
}

.legal code {
  background: var(--panel);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

/* Platzhalter, die vor dem Livegang ersetzt werden müssen. */
.legal mark {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0.05em 0.3em;
  border-radius: 4px;
  font-weight: 700;
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 2rem;
  }
}
