/* ─── Variables ─────────────────────────────────────────────── */
/* Superset of all CSS variables used across pages */
:root {
  /* ── Core palette ── change these to retheme the whole site ── */
  --bg:          #f4f1ea;   /* warm cream */
  --surface:     #ffffff;   /* white */
  --accent:      #8a6820;   /* dark bronze-gold — readable on light */
  --sec:         #b05828;   /* dark terra cotta */

  /* ── Derived / composite ──────────────────────────────────── */
  --card:        #faf8f4;
  --card-hover:  #f0ece3;
  --border:      #e3ddd0;
  --accent-dim:  #755518;
  --accent-glow: rgba(138,104,32,0.09);
  --bg-nav:      rgba(244,241,234,0.92);  /* nav bar (semi-transparent --bg) */
  --bg-drawer:   rgba(244,241,234,0.98);  /* mobile drawer (near-opaque --bg) */
  --text:        #1c1825;
  --text-muted:  #57516a;
  --text-faint:  #a09ab5;
  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   20px;
  --radius-pill: 24px;
}

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

/* ─── Base ──────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Default link style — pages using color:inherit override in their <style> block */
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Nav ───────────────────────────────────────────────────── */
/* index.html overrides this with its complex nav (logo, links, hamburger) */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 clamp(16px, 5vw, 80px);
  height: 56px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Back-link used on all sub-pages */
.nav-back {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: color 0.15s;
}
.nav-back:hover { color: var(--text); text-decoration: none; }
.nav-back svg { flex-shrink: 0; }

/* ─── Nav breadcrumb (sub-pages with multi-level nav) ───────── */
.nav-sep  { color: var(--text-faint); font-size: 0.875rem; }
.nav-title { color: var(--text); font-size: 0.875rem; font-weight: 500; }

/* ─── Hero (legal + app sub-pages) ─────────────────────────── */
/* index.html and spesenlaster/index.html define their own hero */
.hero {
  background: linear-gradient(135deg, var(--surface) 0%, var(--card) 100%);
  border-bottom: 1px solid var(--border);
  padding: clamp(40px, 8vw, 80px) clamp(16px, 5vw, 80px) clamp(32px, 6vw, 64px);
}

.hero-inner {
  max-width: 760px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 8px;
}

.hero-meta {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ─── Global card elevation (light theme needs shadow for depth) ── */
/* Use [class$="card"] (ends with) + specific overrides to avoid matching -title, -hover etc. */
[class$="card"],
[class*="card "] {
  box-shadow: 0 2px 8px rgba(28,24,37,0.07), 0 0 0 1px var(--border);
}

/* ─── Layout helpers ────────────────────────────────────── */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 32px);
}

/* ─── Footer (centered variant) ─────────────────────────────── */
/* SpesenLaster pages override with a flex space-between footer */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s;
  text-decoration: none;
}

.footer-links a:hover { color: var(--accent); text-decoration: none; }

.footer-copy {
  font-size: 0.72rem;
  color: var(--text-faint);
}

/* ─── Hero eyebrow / platform badge (accent pill) ───────────── */
/* Shared across impressum, agb, datenschutz, and apps/index.   */
/* index.html overrides .hero-eyebrow to its plain-text variant. */
.hero-eyebrow,
.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(138,104,32,0.12);
  border: 1px solid rgba(138,104,32,0.25);
  border-radius: var(--radius-pill);
  padding: 4px 16px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* ─── Section labels (index + spesenlaster pages) ───────────── */
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 32px;
  line-height: 1.25;
}

/* ─── Content wrapper (legal pages) ────────────────────────── */
.content-wrap {
  flex: 1;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 64px) clamp(16px, 5vw, 48px);
}

/* ─── Legal typography base (impressum, agb, datenschutz) ───── */
/* agb + datenschutz extend these with ul/ol/blockquote/.note   */
.legal h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 32px 0 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.legal h2:first-child { margin-top: 0; }

.legal p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

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

.legal ul,
.legal ol {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding-left: 24px;
  margin-bottom: 16px;
}

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

/* Note/callout box — uses accent-glow so it stays on-theme */
.legal .note {
  background: var(--accent-glow);
  border: 1px solid rgba(138,104,32,0.25);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 16px 0;
}

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

/* ─── Entrance animation ─────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Section padding + divider ─────────────────────────── */
section { padding: 80px 0; }

.divider {
  border: none;
  border-top: 1px solid var(--border);
}

/* ─── Tag pills (skill/technology labels) ────────────────── */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 0.8rem;
  padding: 4px 16px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 500;
}
