/* =============================================================
   marcus-belz.de — Design-Tokens
   Übernommen aus .claude/skills/di2-design/colors_and_type.css
   (DI² Design System). Abweichungen: Schrift Inter als lokales
   Subset, kein JetBrains Mono (kein Code auf der Site), Zusatz-
   Tokens für Topbar und Browser-Rahmen am Ende des :root-Blocks.
   ============================================================= */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2-variations"),
       url("../fonts/inter-latin.woff2") format("woff2");
}

:root {
  /* ── Brand · Core ──────────────────────────────────────────── */
  --di-navy:            #0F172A;   /* Slate Navy — text, dark surfaces */
  --di-blue:            #2563EB;   /* Signal Blue — primary, CTAs, links */
  --di-cyan:            #06B6D4;   /* Cyan Teal — accent, data, info */
  --di-white:           #F8FAFC;   /* Soft White — page background */
  --di-slate:           #64748B;   /* Slate Gray — secondary text */
  --di-line:            #E2E8F0;   /* Line — borders, dividers */

  /* ── Blue scale (primary) ──────────────────────────────────── */
  --di-blue-50:         #EFF6FF;
  --di-blue-100:        #DBEAFE;
  --di-blue-300:        #93C5FD;
  --di-blue-500:        #3B82F6;
  --di-blue-600:        #2563EB;   /* = --di-blue */
  --di-blue-700:        #1D4ED8;   /* hover */
  --di-blue-800:        #1E40AF;   /* active */

  /* ── Cyan scale (accent) ───────────────────────────────────── */
  --di-cyan-50:         #ECFEFF;
  --di-cyan-100:        #CFFAFE;
  --di-cyan-500:        #06B6D4;   /* = --di-cyan */
  --di-cyan-600:        #0891B2;
  --di-cyan-700:        #0E7490;

  /* ── Slate scale (neutral / text) ──────────────────────────── */
  --di-slate-50:        #F8FAFC;
  --di-slate-100:       #F1F5F9;
  --di-slate-200:       #E2E8F0;
  --di-slate-300:       #CBD5E1;
  --di-slate-400:       #94A3B8;
  --di-slate-500:       #64748B;
  --di-slate-600:       #475569;
  --di-slate-700:       #334155;
  --di-slate-800:       #1E293B;
  --di-slate-900:       #0F172A;

  /* ── Semantic · Surface & Text ─────────────────────────────── */
  --color-bg:           var(--di-slate-50);
  --color-bg-subtle:    var(--di-slate-100);
  --color-surface:      #FFFFFF;
  --color-surface-alt:  var(--di-slate-50);
  --color-surface-muted:var(--di-slate-100);
  --color-border:       var(--di-slate-200);
  --color-border-strong:var(--di-slate-300);

  --color-fg:           var(--di-slate-900);
  --color-fg-muted:     var(--di-slate-500);
  --color-fg-subtle:    var(--di-slate-400);
  --color-fg-invert:    var(--di-slate-50);

  --color-link:         var(--di-blue-600);
  --color-link-hover:   var(--di-blue-700);

  /* ── Semantic · Interaction ────────────────────────────────── */
  --color-primary:        var(--di-blue-600);
  --color-primary-hover:  var(--di-blue-700);
  --color-primary-active: var(--di-blue-800);
  --color-primary-fg:     var(--di-slate-50);

  --color-focus-ring:     var(--di-blue-500);

  --color-accent:         var(--di-cyan-500);
  --color-accent-hover:   var(--di-cyan-600);
  --color-accent-fg:      var(--di-slate-900);

  /* ── Semantic · Feedback ───────────────────────────────────── */
  --color-success:        #10B981;
  --color-success-bg:     #ECFDF5;
  --color-success-border: #A7F3D0;

  --color-warning:        #F59E0B;
  --color-warning-bg:     #FFFBEB;
  --color-warning-border: #FDE68A;

  --color-error:          #DC2626;
  --color-error-bg:       #FEF2F2;
  --color-error-border:   #FECACA;

  --color-info:           var(--di-cyan-500);
  --color-info-bg:        var(--di-cyan-50);
  --color-info-border:    var(--di-cyan-100);

  /* ── Type · Families ───────────────────────────────────────── */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* ── Type · Scale (rem) ────────────────────────────────────── */
  --text-xs:    0.75rem;   /* 12 — micro labels, env banner */
  --text-sm:    0.8125rem; /* 13 — sub-nav tabs, dense table */
  --text-base:  0.9375rem; /* 15 — body, paragraphs */
  --text-md:    1rem;      /* 16 — quick-action title */
  --text-lg:    1.0625rem; /* 17 — landing lead */
  --text-xl:    1.25rem;   /* 20 — section card title */
  --text-2xl:   1.5rem;    /* 24 — H2 small */
  --text-3xl:   1.875rem;  /* 30 — H2 medium */
  --text-4xl:   2.25rem;   /* 36 — H1 small */
  --text-5xl:   2.5rem;    /* 40 — section H2 large */
  --text-6xl:   3.5rem;    /* 56 — landing hero H1 */

  /* ── Type · Weights ────────────────────────────────────────── */
  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;

  /* ── Radius / Shadow / Motion ──────────────────────────────── */
  --radius-sm:  4px;
  --radius-md:  6px;
  --radius-lg:  8px;
  --radius-xl:  12px;
  --radius-pill: 9999px;

  --shadow-sm:  0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md:  0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg:  0 10px 24px rgba(15, 23, 42, 0.10);

  --ease:       cubic-bezier(0.2, 0.8, 0.2, 1);
  --duration:   150ms;

  /* ── Spacing scale (px) ────────────────────────────────────── */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-7:  28px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* ── Layout ────────────────────────────────────────────────── */
  --container-max: 1120px;

  /* ── Site-spezifisch (marcus-belz.de) ─────────────────────── */
  --topbar-h:    56px;     /* Höhe der klebenden Topbar */
  --footer-h:    44px;     /* Höhe des immer sichtbaren Footers (mobil zweizeilig, siehe site.css) */
  --frame-tilt:  -14deg;   /* Kipp-Eintritt der Browser-Rahmen, 0deg = flach (8° war nicht wahrnehmbar) */
  --parallax-max: 260;     /* max. Versatz des Screenshots in px, ohne Einheit */
}

/* ── Semantic typography (apply to elements) ───────────────────
   Defaults reflect the di2 Next.js + Tailwind conventions:
   `.font-sans` body via Inter, `tracking-tight` on headings,
   `text-di-navy` (via --color-fg) for headlines.
*/
:where(html) {
  font-family: var(--font-sans);
  color: var(--color-fg);
  background: var(--color-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

:where(h1) {
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--color-fg);
}
:where(h2) {
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--color-fg);
}
:where(h3) {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.01em;
  color: var(--color-fg);
}
:where(p) {
  font-size: var(--text-base);
  color: var(--di-slate-700);
}
:where(small, .di-meta) {
  font-size: var(--text-xs);
  color: var(--color-fg-muted);
}
:where(code, kbd, pre, samp) {
  font-family: var(--font-mono);
  font-size: 0.875em;
}
:where(code) {
  background: var(--color-surface-muted);
  color: var(--color-fg);
  padding: 1px 6px;
  border-radius: var(--radius-sm);
}

/* ── Kicker · the small uppercase label that introduces sections */
.di-kicker {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
}

/* ── Pill · the de-facto badge shape across the product ─────── */
.di-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  border: 1px solid var(--color-border);
  background: var(--color-surface-muted);
  color: var(--di-slate-700);
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

/* ── Focus ring ─────────────────────────────────────────────── */
*:focus-visible {
  outline: 2px solid var(--color-focus-ring);
  outline-offset: 2px;
}
