
/* ══════════════════════════════════════
   DESIGN TOKENS
══════════════════════════════════════ */
:root {
  /* Surface */
  --s-0:  #000000;
  --s-1:  #0c0c0c;
  --s-2:  #141414;
  --s-3:  #1c1c1c;
  --s-4:  #242424;

  --w-0:  #ffffff;
  --w-1:  #fafafa;
  --w-2:  #f5f5f5;
  --w-3:  #efefef;

  /* Text */
  --td-1: rgba(255,255,255,1.00);   /* primary dark */
  --td-2: rgba(255,255,255,0.55);   /* secondary dark */
  --td-3: rgba(255,255,255,0.28);   /* tertiary dark */

  --tl-1: #111111;
  --tl-2: #555555;
  --tl-3: #999999;

  /* Border */
  --bd:   rgba(255,255,255,0.07);
  --bl:   #e4e4e7;

  /* Accent — from logo palette */
  --a:       #0099e6;                              /* primary cyan-blue */
  --a-t:     #00ccff;                              /* bright cyan (logo highlight) */
  --a-grad:  linear-gradient(135deg, #00ccff 0%, #0066ff 100%);  /* logo gradient */

  /* Type */
  --sans: 'Inter', -apple-system, 'Helvetica Neue', sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--s-1);
  color: var(--td-1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ══════════════════════════════════════
   LAYOUT
══════════════════════════════════════ */
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ══════════════════════════════════════
   NAV
══════════════════════════════════════ */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 99;
  height: 58px;
  background: rgba(12,12,12,0.8);
  backdrop-filter: blur(16px) saturate(1.8);
  border-bottom: 1px solid var(--bd);
}

.nav .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo img {
  height: 32px;
  width: auto;
  display: block;
}

.nav-logo-text {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--td-1);
}
.nav-logo-text b { font-weight: 600; color: var(--a-t); font-style: normal; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--td-2);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color .15s;
}
.nav-links a:hover { color: var(--td-1); }

.nav-cta {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--td-1) !important;
  border: 1px solid rgba(255,255,255,0.14);
  padding: 7px 18px;
  border-radius: 6px;
  background: var(--s-3);
  transition: border-color .15s, background .15s !important;
}
.nav-cta:hover {
  border-color: rgba(255,255,255,0.26) !important;
  background: var(--s-4) !important;
}

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 88px;
  position: relative;
}

/* Subtle scanline / grid overlay */
.hero::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--bd) 1px, transparent 1px),
    linear-gradient(90deg, var(--bd) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black 30%, transparent 100%);
  z-index: 0;
}

.hero .wrap { position: relative; z-index: 1; }

.hero-kicker {
  font-size: 13px;
  font-weight: 400;
  color: var(--td-3);
  letter-spacing: 0.01em;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-kicker::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--td-3);
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(52px, 7.5vw, 96px);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: var(--td-1);
  margin-bottom: 32px;
}

.hero h1 strong {
  font-weight: 500;
}

.hero h1 .dim {
  color: var(--td-3);
  font-weight: 300;
}

.hero-sub {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--td-2);
  max-width: 560px;
  margin-bottom: 48px;
  letter-spacing: -0.01em;
}

.hero-btns {
  display: flex;
  align-items: center;
  gap: 24px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--td-1);
  border: 1px solid rgba(255,255,255,0.16);
  background: var(--s-2);
  padding: 10px 22px;
  border-radius: 7px;
  text-decoration: none;
  transition: all .15s;
}
.btn-outline:hover { background: var(--s-3); border-color: rgba(255,255,255,0.28); }

.btn-plain {
  font-size: 14px;
  font-weight: 400;
  color: var(--td-2);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color .15s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-plain:hover { color: var(--td-1); }

/* Running indicator */
.running-strip {
  position: absolute;
  bottom: 88px;
  right: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--td-3);
}

.live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; } 50% { opacity: 0.4; }
}

/* ══════════════════════════════════════
   SECTION SHARED
══════════════════════════════════════ */
.section-dark {
  background: var(--s-1);
  padding: 96px 0;
  border-top: 1px solid var(--bd);
}

.section-light {
  background: var(--w-0);
  padding: 96px 0;
  border-top: 1px solid var(--bl);
}

.section-off {
  background: var(--w-1);
  padding: 96px 0;
  border-top: 1px solid var(--bl);
}

/* Two-col intro: label col + content col */
.s-intro {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 64px;
  margin-bottom: 56px;
  align-items: start;
}

.s-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--td-3);
  padding-top: 8px;
}

.s-label.on-light { color: var(--tl-3); }

.s-head {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--td-1);
  margin-bottom: 14px;
}
.s-head strong { font-weight: 600; }
.s-head.on-light { color: var(--tl-1); }

.s-body {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--td-2);
  letter-spacing: -0.01em;
}
.s-body.on-light { color: var(--tl-2); }

/* ══════════════════════════════════════
   SERVICES — LIGHT
══════════════════════════════════════ */
.svc-table {
  width: 100%;
  border-collapse: collapse;
}

.svc-row {
  display: grid;
  grid-template-columns: 32px 220px 1fr 160px;
  gap: 40px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--bl);
}
.svc-row:first-child { border-top: 1px solid var(--bl); }

.svc-n {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--tl-3);
  padding-top: 3px;
}

.svc-name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--tl-1);
}

.svc-desc {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--tl-2);
  letter-spacing: -0.01em;
}

.svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}

.tag {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  color: var(--tl-3);
  background: var(--w-2);
  border: 1px solid var(--bl);
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

/* ══════════════════════════════════════
   PORTFOLIO — DARK
══════════════════════════════════════ */
.proj-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--bd);
  border: 1px solid var(--bd);
  border-radius: 10px;
  overflow: hidden;
}

.proj {
  background: var(--s-1);
  padding: 36px;
  transition: background .2s;
}
.proj:hover { background: var(--s-2); }
.proj.accent-slot {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Terminal block */
.term {
  background: var(--s-0);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 24px;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.65;
  overflow: hidden;
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 12px;
}
.td { width: 9px; height: 9px; border-radius: 50%; }
.td-r { background: #ff5f57; } .td-y { background: #febc2e; } .td-g { background: #28c840; }
.t-path { font-size: 10.5px; color: rgba(255,255,255,0.2); margin-left: 8px; }

.t  { color: rgba(255,255,255,0.4); margin-bottom: 1px; }
.tk { color: #79c0ff; }   /* keyword */
.ts { color: #a5d6ff; }   /* string */
.tv { color: #7ee787; }   /* value/ok */
.tm { color: rgba(255,255,255,0.18); } /* muted */
.tc { color: rgba(255,255,255,0.22); font-style: italic; } /* comment */
.tf { color: #d2a8ff; }   /* function */
.cur { display: inline-block; width: 6px; height: 12px; background: rgba(255,255,255,0.45); vertical-align: text-bottom; animation: blink 1.2s step-end infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.proj-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.proj-type {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--td-3);
}

.proj-live {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #22c55e;
  font-family: var(--mono);
}
.l-dot { width: 5px; height: 5px; background: #22c55e; border-radius: 50%; box-shadow: 0 0 4px #22c55e; }

.proj-name {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--td-1);
  margin-bottom: 8px;
}

.proj-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--td-2);
  letter-spacing: -0.01em;
}

.proj-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--td-3);
  text-decoration: none;
  margin-top: 16px;
  transition: color .15s;
  font-family: var(--mono);
}
.proj-link:hover { color: var(--td-1); }

/* ══════════════════════════════════════
   SERVER STATUS — DARK (Full docker ps)
══════════════════════════════════════ */
.server-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 56px;
}

.server-card {
  background: var(--s-0);
  border: 1px solid var(--bd);
  border-radius: 10px;
  overflow: hidden;
}

.server-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--bd);
  background: var(--s-2);
}

.server-name {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--td-2);
}

.server-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: #22c55e;
}

.server-body {
  padding: 18px 20px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 2;
}

.container-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.container-row:last-child { border-bottom: none; }

.c-name { color: rgba(255,255,255,0.75); font-weight: 500; font-size: 13px; }
.c-uptime { color: #22c55e; font-size: 12px; }
.c-image { color: rgba(255,255,255,0.25); font-size: 11px; }

/* ══════════════════════════════════════
   ABOUT — LIGHT
══════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 80px;
  align-items: start;
}

.about-aside {
  position: sticky;
  top: 80px;
}

.about-name {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--tl-1);
  margin-bottom: 6px;
}

.about-role {
  font-size: 14px;
  color: var(--tl-2);
  line-height: 1.6;
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

.about-link {
  display: block;
  font-size: 13px;
  color: var(--a);
  text-decoration: none;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.about-link:hover { text-decoration: underline; }

.about-p {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--tl-2);
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.about-p strong { color: var(--tl-1); font-weight: 500; }
.about-p em { color: var(--tl-1); }

.stack {
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid var(--bl);
}

.stack-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--tl-3);
  margin-bottom: 16px;
}

.stack-items {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.stack-item {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--tl-2);
  background: var(--w-0);
  border: 1px solid var(--bl);
  padding: 5px 11px;
  border-radius: 5px;
  letter-spacing: -0.01em;
}

/* ══════════════════════════════════════
   PROCESS — DARK
══════════════════════════════════════ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--bd);
  border: 1px solid var(--bd);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 56px;
}

.p-step {
  background: var(--s-2);
  padding: 32px 28px;
}

.p-n {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--td-3);
  margin-bottom: 20px;
  display: block;
}

.p-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--td-1);
  margin-bottom: 10px;
}

.p-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--td-2);
  letter-spacing: -0.01em;
}

/* ══════════════════════════════════════
   WRITING — LIGHT
══════════════════════════════════════ */
.writing-list {}

.writing-item {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 40px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--bl);
  text-decoration: none;
  transition: opacity .15s;
}
.writing-item:first-child { border-top: 1px solid var(--bl); }
.writing-item:hover { opacity: 0.7; }

.w-date {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--tl-3);
  white-space: nowrap;
}

.w-meta { }

.w-cat {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--a);
  margin-bottom: 3px;
}

.w-title {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--tl-1);
  margin-bottom: 3px;
  line-height: 1.3;
}

.w-excerpt {
  font-size: 14px;
  color: var(--tl-2);
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.w-arrow {
  font-size: 15px;
  color: var(--tl-3);
}

/* ══════════════════════════════════════
   CTA — DARK
══════════════════════════════════════ */
.cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  align-items: center;
}

.cta-head {
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--td-1);
  margin-bottom: 14px;
}
.cta-head strong { font-weight: 600; }

.cta-sub {
  font-size: 17px;
  color: var(--td-2);
  line-height: 1.7;
  letter-spacing: -0.01em;
  max-width: 460px;
}

.cta-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 190px;
}

.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--s-1);
  background: var(--w-0);
  padding: 11px 24px;
  border-radius: 7px;
  text-decoration: none;
  transition: opacity .15s;
}
.btn-white:hover { opacity: .88; }

.btn-border {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--td-2);
  border: 1px solid var(--bd);
  padding: 11px 24px;
  border-radius: 7px;
  text-decoration: none;
  transition: all .15s;
}
.btn-border:hover { color: var(--td-1); border-color: rgba(255,255,255,.2); }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.footer {
  background: var(--s-0);
  border-top: 1px solid var(--bd);
  padding: 44px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--td-1);
  text-decoration: none;
}
.footer-logo b { color: var(--a-t); font-weight: 600; font-style: normal; }

.footer-copy {
  font-size: 12px;
  color: var(--td-3);
  margin-top: 6px;
}

.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 13px;
  color: var(--td-3);
  text-decoration: none;
  transition: color .15s;
}
.footer-links a:hover { color: var(--td-1); }

/* ══════════════════════════════════════
   RESPONSIVE — TABLET (≤ 900px)
══════════════════════════════════════ */
@media (max-width: 900px) {
  .wrap { padding: 0 32px; }

  /* Nav */
  .nav-links li:not(:last-child) { display: none; }
  .nav-links { gap: 0; }

  /* Hero */
  .hero { min-height: 92vh; padding-bottom: 72px; }
  .running-strip { right: 32px; }

  /* Proof strip */
  .proof-4 { grid-template-columns: repeat(2, 1fr) !important; }

  /* Section intro */
  .s-intro { grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; }

  /* Services */
  .svc-row { grid-template-columns: 24px 1fr; gap: 16px; }
  .svc-tags { justify-content: flex-start; grid-column: 2; }

  /* Projects */
  .proj-grid { grid-template-columns: 1fr; }

  /* Server status */
  .server-grid { grid-template-columns: 1fr; }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-aside { position: static; }

  /* Process */
  .process-grid { grid-template-columns: repeat(2, 1fr); }

  /* CTA */
  .cta-inner { grid-template-columns: 1fr; gap: 36px; }
  .cta-btns { flex-direction: row; }
}

/* ══════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 600px)
══════════════════════════════════════ */
@media (max-width: 600px) {
  html { font-size: 15px; }
  .wrap { padding: 0 20px; }

  /* Nav */
  .nav { height: 52px; }
  .nav-links { gap: 0; }
  .nav-links li { display: none; }
  .nav-links li:last-child { display: block; }

  /* Hero */
  .hero { min-height: 88vh; padding-bottom: 80px; }
  .hero h1 { font-size: clamp(38px, 10vw, 56px); letter-spacing: -0.03em; margin-bottom: 24px; }
  .hero-sub { font-size: 16px; margin-bottom: 32px; }
  .hero-kicker { font-size: 12px; margin-bottom: 24px; }
  .hero-btns { flex-direction: column; align-items: flex-start; gap: 14px; }
  /* Running strip: unten links, nicht rechts — kein Überlapp mit Buttons */
  .running-strip { position: absolute; right: auto; left: 20px; bottom: 24px; font-size: 10px; }

  /* Proof strip */
  .proof-4 { grid-template-columns: repeat(2, 1fr) !important; }

  /* Sections */
  .section-dark, .section-light, .section-off { padding: 64px 0; }
  .s-head { font-size: clamp(24px, 6vw, 32px); }
  .s-intro { gap: 14px; margin-bottom: 32px; }

  /* Services — komplett untereinander, kein Grid-Quetschen */
  .svc-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px 0;
  }
  .svc-n { display: none; }
  .svc-name { font-size: 15px; font-weight: 600; }
  .svc-tags { justify-content: flex-start; }

  /* Projects */
  .proj { padding: 24px 20px; }
  .proj-name { font-size: 17px; }
  .term { font-size: 10.5px; padding: 12px 14px; }

  /* Server */
  .server-body { font-size: 10px; }
  .server-grid { gap: 12px; }

  /* Process */
  .process-grid { grid-template-columns: 1fr; }
  .p-step { padding: 24px 22px; }

  /* About */
  .about-grid { gap: 32px; }
  .about-p { font-size: 16px; }
  .stack-items { gap: 6px; }

  /* Writing */
  .writing-item {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 8px 16px;
  }
  .w-date { grid-column: 1; grid-row: 2; font-size: 10px; }
  .w-meta { grid-column: 1; grid-row: 1; }
  .w-arrow { grid-column: 2; grid-row: 1; align-self: center; }

  /* CTA */
  .cta-head { font-size: clamp(26px, 7vw, 38px); }
  .cta-btns { flex-direction: column; }
  .btn-white, .btn-border { text-align: center; justify-content: center; }

  /* Footer */
  .footer-inner { flex-direction: column; gap: 20px; align-items: flex-start; }
  .footer-links { flex-wrap: wrap; gap: 16px; }
}

/* ══════════════════════════════════════
   HAMBURGER NAV (Mobile)
══════════════════════════════════════ */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 4px;
  flex-direction: column;
  gap: 5px;
  z-index: 100;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--td-1);
  border-radius: 2px;
  transition: all .25s;
}
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 600px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 52px;
    left: 0; right: 0;
    background: rgba(10,10,10,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 8px 20px 20px;
    border-bottom: 1px solid var(--bd);
    gap: 0;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links li { display: block !important; }
  .nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 16px !important;
    border-bottom: 1px solid var(--bd);
    color: var(--td-1) !important;
  }
  .nav-links li:last-child a {
    border-bottom: none;
    margin-top: 8px;
    text-align: center;
  }
  .nav-cta { display: block !important; }
}

/* ══════════════════════════════════════
   ARTIKEL / BLOG-POST SEITEN
══════════════════════════════════════ */
.article-hero {
  padding: 120px 0 64px;
  border-bottom: 1px solid var(--bd);
}
.article-cat {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--a);
  margin-bottom: 20px;
}
.article-h1 {
  font-size: clamp(32px, 4.5vw, 58px);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--td-1);
  margin-bottom: 24px;
  max-width: 760px;
}
.article-h1 strong { font-weight: 600; }
.article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--td-3);
}
.article-body {
  max-width: 680px;
  padding: 64px 0 96px;
}
.article-body h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--td-1);
  margin: 48px 0 16px;
}
.article-body p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--td-2);
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.article-body p strong { color: var(--td-1); font-weight: 500; }
.article-body ul {
  margin: 0 0 20px 0;
  padding-left: 0;
  list-style: none;
}
.article-body ul li {
  font-size: 17px;
  line-height: 1.8;
  color: var(--td-2);
  padding: 4px 0 4px 20px;
  position: relative;
  letter-spacing: -0.01em;
}
.article-body ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--td-3);
}
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--td-3);
  text-decoration: none;
  font-family: var(--mono);
  margin-bottom: 48px;
  transition: color .15s;
}
.article-back:hover { color: var(--td-1); }

/* Projekte-Seite: erweitertes Grid */
.proj-full {
  padding: 36px;
  background: var(--s-1);
  border-bottom: 1px solid var(--bd);
  transition: background .2s;
}
.proj-full:hover { background: var(--s-2); }
.proj-full-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}
.proj-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
}

/* ─── NEWSLETTER ─────────────────────────────────── */
.nl-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.nl-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--a-t);
  margin-bottom: 16px;
}
.nl-head {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--td-1);
  margin-bottom: 16px;
  line-height: 1.2;
}
.nl-head strong { font-weight: 600; }
.nl-sub {
  font-size: 15px;
  line-height: 1.7;
  color: var(--td-2);
  margin: 0;
}
.nl-form { display: flex; flex-direction: column; gap: 16px; }
.nl-field-row { display: flex; gap: 8px; }
.nl-input {
  flex: 1;
  background: var(--s-3);
  border: 1px solid var(--bd);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 15px;
  color: var(--td-1);
  font-family: var(--sans);
  outline: none;
  transition: border-color .15s;
}
.nl-input::placeholder { color: var(--td-3); }
.nl-input:focus { border-color: var(--a); }
.nl-btn {
  background: var(--a);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--sans);
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .15s;
}
.nl-btn:hover { opacity: .85; }
.nl-btn:disabled { opacity: .5; cursor: not-allowed; }
.nl-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
}
.nl-consent input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--a);
  cursor: pointer;
}
.nl-consent span {
  font-size: 12px;
  line-height: 1.6;
  color: var(--td-3);
}
.nl-msg {
  font-size: 13px;
  line-height: 1.5;
  min-height: 20px;
}
.nl-ok { color: #4ade80; }
.nl-err { color: #f87171; }

@media (max-width: 768px) {
  .nl-wrap { grid-template-columns: 1fr; gap: 40px; }
  .nl-field-row { flex-direction: column; }
  .nl-btn { width: 100%; }
}
