/* ==========================================================================
   MuCode — mucode.de
   Handgeschriebenes CSS, kein Build-Step, keine externen Requests.
   Marken-Identität: Design 1e „Klammer" (claude.ai/design) —
   Space Grotesk, Palette Lime (#A3E635) auf Anthrazit (#101318).
   ========================================================================== */

/* --- Space Grotesk (Variable Font, selbst gehostet, SIL OFL —
       s. fonts/spacegrotesk-OFL.txt) --- */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/spacegrotesk-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;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/spacegrotesk-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;
}

:root {
  --ink: #101318; /* Anthrazit — Marke, dunkle Flächen */
  --lime: #a3e635; /* Akzent — Klammer, Rule, Fills, Underline */
  --lime-ink: #101318; /* Textfarbe auf Lime-Flächen */

  --bg: #ffffff;
  --surface: #f3f4f2;
  --text: #16181c;
  --text-secondary: #5b6470;
  --border: #e3e4e8;

  --t-display: 2.125rem;
  --t-heading: 1.75rem;
  --t-title: 1.4375rem;
  --t-section: 1.25rem;
  --t-body: 1.0625rem;
  --t-subhead: 1.0625rem;
  --t-callout: 1rem;
  --t-caption: 0.875rem;

  --radius: 12px;
  --maxw: 760px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101318;
    --surface: #181b21;
    --text: #e7e9ec;
    --text-secondary: #9aa1ab;
    --border: #2a2e36;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  font-size: var(--t-body);
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
/* Link-Behandlung aus dem Design: Text bleibt Textfarbe, Lime nur als Underline */
a {
  color: var(--text);
  text-decoration-color: var(--lime);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--text-secondary);
}
:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
  border-radius: 3px;
}
h1,
h2,
h3 {
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 10;
  background: var(--bg);
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

/* --- Wortmarke MU[C]ODE (Design 2a „Klammer", geschärft) ----------------- */
/* Liegt immer auf dem Anthrazit-Band → Negativ-/Farbversion (off-white + lime). */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #f2f4f6;
  text-decoration: none;
}
.brand:hover {
  color: #f2f4f6;
}
.brand-logo {
  width: 24px;
  height: 24px;
  flex: none;
  color: #f2f4f6; /* Ring = currentColor, Akzentquadrat = lime */
}
.wordmark {
  font-weight: 600;
  font-size: var(--t-section);
  letter-spacing: -0.005em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}
/* 2a: das C sitzt in einem exakt vermessenen Quadrat auf der Grundlinie */
.wordmark .c {
  display: inline-block;
  overflow: hidden;
  vertical-align: baseline;
  box-sizing: border-box;
  width: 0.86em;
  height: 0.86em;
  border: 0.05em solid var(--lime);
  margin: 0 0.065em 0 0.075em;
  transform: translateY(0.08em);
}
.wordmark .c > span {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}
.wordmark .c i {
  line-height: 0;
  font-style: normal;
  transform: translate(-0.01em, 0.02em);
}

/* --- Kopf- und Fußzeile ------------------------------------------------- */
/* Durchgehender Anthrazit-Streifen (Claude-Design-Base #101318), volle Breite;
   Logo + Menü liegen als Negativversion darauf. In beiden Farbmodi gleich. */
.site-header {
  background: #101318;
  border-bottom: 1px solid #24282f; /* trennt das Band vom dunklen Body im Dark Mode */
}
.site-header .wrap,
.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
}
.site-header .wrap {
  min-height: 60px;
}
.nav {
  display: flex;
  gap: 20px;
  font-size: var(--t-callout);
  font-weight: 500;
}
.nav a {
  color: #9aa1ab;
  text-decoration: none;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: #f2f4f6;
  text-decoration: underline;
  text-decoration-color: var(--lime);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 64px;
  padding: 26px 0 40px;
  font-size: var(--t-caption);
  color: var(--text-secondary);
}
.site-footer a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
}
.site-footer a:hover {
  color: var(--text);
}
.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* --- Startseite --------------------------------------------------------- */
.hero {
  padding: 72px 0 8px;
}
.hero h1 {
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.hero p {
  font-size: var(--t-title);
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 38ch;
}
.rule {
  width: 64px;
  height: 5px;
  background: var(--lime);
  margin-bottom: 26px;
}

section {
  padding: 44px 0;
}
.section-title {
  font-size: var(--t-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.section-intro {
  color: var(--text-secondary);
  margin-bottom: 26px;
  max-width: 56ch;
}
.text-block p + p {
  margin-top: 14px;
}

.project {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  background: var(--surface);
  text-decoration: none;
  color: inherit;
}
.project:hover {
  border-color: var(--lime);
  color: inherit;
}
.project-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.project-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  flex: none;
}
.project h3 {
  font-size: var(--t-section);
  font-weight: 700;
}
.project .tag {
  display: block;
  font-size: var(--t-caption);
  font-weight: 500;
  color: var(--text-secondary);
}
.project p {
  font-size: var(--t-callout);
  color: var(--text-secondary);
}
.project .more {
  display: inline-block;
  margin-top: 14px;
  font-size: var(--t-callout);
  font-weight: 600;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--lime);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.contact {
  border: 1px solid var(--border);
  border-left: 4px solid var(--lime);
  border-radius: 10px;
  padding: 20px 22px;
  background: var(--surface);
}
.contact h2 {
  font-size: var(--t-section);
  font-weight: 700;
  margin-bottom: 6px;
}
.contact p {
  font-size: var(--t-callout);
  color: var(--text-secondary);
}

/* --- Rechtstexte -------------------------------------------------------- */
.prose {
  padding: 44px 0 8px;
}
.prose h1 {
  font-size: var(--t-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.prose .meta {
  color: var(--text-secondary);
  font-size: var(--t-caption);
  margin-bottom: 32px;
}
.prose h2 {
  font-size: var(--t-section);
  font-weight: 700;
  margin: 34px 0 10px;
}
.prose h3 {
  font-size: var(--t-subhead);
  font-weight: 600;
  margin: 22px 0 6px;
}
.prose p,
.prose li {
  font-size: var(--t-callout);
}
.prose p + p {
  margin-top: 12px;
}
.prose ul {
  margin: 8px 0 0;
  padding-left: 22px;
}
.prose li {
  margin-bottom: 6px;
}
.prose .box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  margin-top: 16px;
}
.address {
  font-style: normal;
  font-size: var(--t-callout);
  line-height: 1.8;
}
