/* ═══════════════════════════════════════════════════════════════════
   SMART COMPASS — Static Pages
   Shared styles for about.html, blog/index.html, blog/*.html
   ═══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;0,700;1,400;1,600&family=DM+Sans:wght@300;400;500;600;700&display=swap');

/* ─── TOKENS ─────────────────────────────────────────────────────── */

:root {
  /* Brand */
  --navy:         #0F2A44;
  --navy-dark:    #08213A;

  --teal:         #1A7A8A;
  --teal-hover:   #156775;
  --teal-soft:    #E8F4F6;
  --teal-border:  rgba(26, 122, 138, 0.28);

  --green:        #4CAF50;
  --green-soft:   #EDF8EF;

  /* Neutral */
  --bg:           #F7F6F2;
  --bg-subtle:    #FBFAF7;
  --white:        #FFFFFF;

  --border:       #E2E0D8;
  --border-strong: #C9C6BA;

  --text:         #24313F;
  --text-soft:    #6B6860;
  --text-muted:   #8A867C;

  /* Typography */
  --font-sans:    'DM Sans', sans-serif;
  --font-serif:   'Lora', serif;
  --font-mono:    'JetBrains Mono', 'Fira Mono', monospace;

  --text-xs:      11px;
  --text-sm:      13px;
  --text-base:    15px;
  --text-md:      17px;
  --text-lg:      20px;
  --text-xl:      24px;
  --text-2xl:     32px;
  --text-3xl:     42px;
  --text-hero:    clamp(42px, 5vw, 68px);

  --line-tight:   1.15;
  --line-normal:  1.5;
  --line-relaxed: 1.7;

  /* Spacing */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* Radius */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   14px;
  --radius-xl:   18px;
  --radius-2xl:  24px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-sm:    0 6px 18px rgba(15, 42, 68, 0.04);
  --shadow-md:    0 4px 16px rgba(15, 42, 68, 0.12);
  --shadow:       0 12px 36px rgba(15, 42, 68, 0.06);
  --shadow-hover: 0 20px 56px rgba(15, 42, 68, 0.10);
  --shadow-lg:    0 28px 80px rgba(15, 42, 68, 0.14);
}

/* ─── RESET ──────────────────────────────────────────────────────── */

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

html { -webkit-font-smoothing: antialiased; }

body {
  background: var(--bg);
  font-family: var(--font-sans);
  color: var(--text);
  line-height: 1.6;
}

/* ─── GRADIENT BAND ──────────────────────────────────────────────── */

.topbar {
  height: 3px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--teal) 55%, var(--green) 100%);
}

/* ─── NAV ────────────────────────────────────────────────────────── */

.nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 clamp(24px, 5vw, 80px);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
  user-select: none;
}

.nav-logo-text {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
}

.nav-logo-text em {
  color: var(--teal);
  font-style: normal;
}

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

.nav-plain-link {
  font-size: 14px;
  color: var(--navy);
  text-decoration: none;
  opacity: 0.65;
  font-weight: 500;
}

.nav-plain-link:hover {
  opacity: 1;
}

/* ─── LAYOUT ─────────────────────────────────────────────────────── */

.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 28px 80px;
}

/* ─── BACK LINK ──────────────────────────────────────────────────── */

.back {
  color: var(--teal);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  display: block;
  margin-bottom: 32px;
  transition: color 0.15s;
}

.back:hover { color: var(--teal-hover); }

/* ─── EYEBROW ────────────────────────────────────────────────────── */

.eyebrow {
  font-size: 11px;
  color: var(--teal);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* ─── HEADINGS ───────────────────────────────────────────────────── */

h1 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 32px;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 40px;
}

/* ─── CONTENT SECTIONS ───────────────────────────────────────────── */

.section { margin-bottom: 32px; }

.section-heading {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 11px;
  color: var(--navy);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
  border-left: 3px solid var(--teal);
  padding-left: 12px;
}

.section-text {
  font-size: 15px;
  color: var(--text);
  line-height: 1.8;
  padding-left: 15px;
}

.section-text p + p { margin-top: 12px; }

/* ─── FOOTER BLOCK (about page) ──────────────────────────────────── */

.footer-block {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 8px;
}

.footer-block p {
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 8px;
}

.footer-block a { color: var(--teal); font-weight: 600; }

.footer-block .license {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

/* ─── BLOG POST LIST ─────────────────────────────────────────────── */

.posts { display: flex; flex-direction: column; gap: 16px; }

.post-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.post-meta {
  font-size: 11px;
  color: var(--teal);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.post-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 20px;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 10px;
}

.post-summary {
  font-size: 14px;
  color: var(--text);
  line-height: 1.75;
}

.post-cta {
  margin-top: 14px;
  font-size: 12px;
  color: var(--teal);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ─── BLOG ARTICLE ───────────────────────────────────────────────── */

.references {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.references p {
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 4px;
  font-style: italic;
}

.copy-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ─── FOOTER ─────────────────────────────────────────────────────── */

footer {
  background: var(--navy);
  padding: 14px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 48px;
}

footer .copy {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.03em;
}

footer .copy a { color: rgba(255, 255, 255, 0.6); }

footer .legal { display: flex; gap: 20px; }

footer .legal a {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.15s;
}

footer .legal a:hover { color: rgba(255, 255, 255, 0.7); }

/* ─── LANGUAGE TOGGLE ────────────────────────────────────────────── */

[lang-de] { display: none; }
[lang-en] { display: none; }
