/* Locally hosted Google Fonts — see README §Fonts */
/* latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/fraunces-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/fraunces-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/fraunces-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/fraunces-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/fraunces-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/fraunces-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/fraunces-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/fraunces-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/fonts/inter-tight-300-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/fonts/inter-tight-300-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/inter-tight-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/inter-tight-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/inter-tight-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/inter-tight-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/inter-tight-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/inter-tight-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/*
 * Magic Morning · shared styles
 *
 * Dark, calm, monospace-leaning. Same palette as the in-app theme so the
 * website doesn't feel like a different product.
 *
 * Layout: single 720px column on every page. Topnav + footer are shared
 * across pages; page-specific content lives in <main>.
 */

:root {
  --bg: #0a0a0c;
  --bg-elev: #131318;
  --bg-card: #1a1a21;
  --border: #26262e;
  --border-soft: #1d1d24;
  --text: #ededf0;
  --text-mute: #a0a0aa;
  --text-dim: #6c6c78;
  --accent: #d4a574;
  --accent-soft: rgba(212, 165, 116, 0.12);
  --warn: #f59e80;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 720px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
}

/* Subtle grain texture (data URI, no extra HTTP request) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
}

/* Top glow accent */
body::after {
  content: '';
  position: fixed;
  top: -300px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(212, 165, 116, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* ===== Top nav (shared across pages) ===== */

.topnav {
  position: sticky;
  top: 0;
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-soft);
  z-index: 100;
  padding: 16px 0;
}

.topnav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.brand {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.brand-dot { color: var(--accent); }

.nav-actions {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav-link {
  color: var(--text-mute);
  text-decoration: none;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover { color: var(--text); background: var(--bg-elev); }

.nav-link.active {
  color: var(--text);
  background: var(--bg-elev);
}

.lang-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px;
  margin-left: 12px;
  font-size: 12px;
}

.lang-toggle button {
  background: transparent;
  color: var(--text-dim);
  border: none;
  padding: 4px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.lang-toggle button.active {
  background: var(--accent);
  color: var(--bg);
}

/* ===== Hero (landing page only) ===== */

.hero {
  padding: 140px 0 100px;
  text-align: center;
  position: relative;
}

.hero-eyebrow {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 32px;
  font-weight: 500;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(44px, 7vw, 72px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}

.hero p {
  font-size: 19px;
  color: var(--text-mute);
  max-width: 540px;
  margin: 0 auto 48px;
  line-height: 1.55;
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dim);
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-elev);
}

.hero-meta .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--warn);
}

/* ===== Landing-page link grid (replaces inline-anchor sections) ===== */

.page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  padding: 60px 0 100px;
}

.page-card {
  display: block;
  padding: 24px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.page-card:hover {
  border-color: var(--accent);
  background: var(--bg-card);
}

.page-card-eyebrow {
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 500;
}

.page-card h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.page-card p {
  font-size: 14px;
  color: var(--text-mute);
  line-height: 1.5;
}

/* ===== Legal-section base (used by privacy/terms/support/imprint/ai) ===== */

section.legal {
  padding: 80px 0;
}

section.legal h2 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
  line-height: 1.15;
}

.section-eyebrow {
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 500;
}

.section-meta {
  color: var(--text-dim);
  font-size: 13px;
  margin-bottom: 48px;
  font-style: italic;
}

section.legal h3 {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  margin: 40px 0 12px;
  color: var(--text);
  letter-spacing: -0.005em;
}

section.legal h4 {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  margin: 24px 0 8px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

section.legal p {
  color: var(--text-mute);
  margin-bottom: 16px;
  font-size: 15px;
}

section.legal strong { color: var(--text); font-weight: 600; }

section.legal ul {
  list-style: none;
  margin-bottom: 16px;
  padding-left: 0;
}

section.legal li {
  color: var(--text-mute);
  font-size: 15px;
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

section.legal li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 500;
}

section.legal a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

section.legal a:hover { border-bottom-color: var(--accent); }

/* Callout / Lawyer flag */

.callout {
  background: var(--accent-soft);
  border-left: 2px solid var(--accent);
  padding: 20px 24px;
  margin: 24px 0;
  border-radius: 0 8px 8px 0;
}

.callout p { color: var(--text); margin-bottom: 0; font-size: 14px; }

.callout-warn {
  background: rgba(245, 158, 128, 0.08);
  border-left-color: var(--warn);
}

.callout-warn p strong { color: var(--warn); }

.legal-flag {
  display: inline-block;
  background: rgba(245, 158, 128, 0.12);
  border: 1px solid rgba(245, 158, 128, 0.3);
  color: var(--warn);
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-left: 8px;
  vertical-align: middle;
}

/* FAQ (support page) */

details.faq {
  border-bottom: 1px solid var(--border-soft);
  padding: 20px 0;
}

details.faq summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
}

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

details.faq summary::after {
  content: '+';
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
  transition: transform 0.2s;
  font-weight: 300;
}

details.faq[open] summary::after { transform: rotate(45deg); }

details.faq p {
  margin-top: 16px;
  margin-bottom: 0;
}

/* Contact card */

.contact-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  margin-top: 24px;
}

.contact-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 15px;
}

.contact-row:last-child { border-bottom: none; }

.contact-label {
  color: var(--text-dim);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.contact-value { color: var(--text); }

/* Footer (shared across pages) */

footer {
  padding: 60px 0 80px;
  border-top: 1px solid var(--border-soft);
  text-align: center;
}

footer p {
  color: var(--text-dim);
  font-size: 13px;
  margin-bottom: 4px;
}

footer a { color: var(--text-mute); }

.footer-brand {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
  font-size: 18px;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 12px;
  font-size: 13px;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text-mute); }

/* Bilingual content visibility */

[data-lang="en"] .de-only { display: none; }
[data-lang="de"] .en-only { display: none; }

/* Mobile */

@media (max-width: 640px) {
  .hero { padding: 80px 0 60px; }
  .hero h1 { font-size: 40px; }
  section.legal { padding: 60px 0; }
  section.legal h2 { font-size: 28px; }
  .nav-actions .nav-link { display: none; }
  .lang-toggle { margin-left: 0; }
  .contact-card { padding: 20px; }
  .contact-row { flex-direction: column; gap: 4px; padding: 14px 0; }
  .page-grid { padding: 40px 0 60px; }
  .footer-links { flex-wrap: wrap; gap: 16px; }
}
