/* Stefan Brohs – technical dark theme */
:root {
  --bg:      #0d1117;
  --surface: #161b22;
  --border:  #30363d;
  --text:    #c9d1d9;
  --muted:   #8b949e;
  --green:   #3fb950;
  --blue:    #58a6ff;
  --gold:    #d29922;
  --white:   #f0f6fc;
  --radius:  6px;
  --shadow:  0 2px 12px rgba(0,0,0,.4);
  --max-w:   960px;
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── HEADER ─────────────────────────────────────────────── */
#site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.site-brand .name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  font-family: 'Courier New', monospace;
  letter-spacing: .03em;
}
.site-brand .title {
  font-size: .75rem;
  color: var(--green);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-family: 'Courier New', monospace;
}

/* ── NAV ─────────────────────────────────────────────────── */
nav ul { list-style: none; display: flex; gap: .25rem; }
nav ul li a {
  display: block;
  padding: .45rem .85rem;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: .88rem;
  font-weight: 500;
  transition: background .15s, color .15s;
}
nav ul li a:hover,
nav ul li a.active {
  background: rgba(255,255,255,.06);
  color: var(--white);
  text-decoration: none;
}
nav ul li a.active { border-bottom: 2px solid var(--green); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  color: var(--white);
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
}

/* ── HERO ────────────────────────────────────────────────── */
#hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 4rem 1.5rem 3.5rem;
  text-align: center;
}

.hero-terminal {
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.hero-terminal .prompt { color: var(--green); }
.hero-terminal .cmd    { color: var(--white); }

#hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: .5rem;
  font-family: 'Courier New', monospace;
}
#hero .tagline {
  font-size: .95rem;
  color: var(--muted);
  margin: 0 auto 1.75rem;
  max-width: 520px;
}
.hero-cta {
  display: inline-block;
  background: var(--green);
  color: var(--bg);
  font-weight: 700;
  padding: .65rem 1.8rem;
  border-radius: var(--radius);
  font-size: .95rem;
  transition: opacity .15s;
}
.hero-cta:hover { opacity: .85; text-decoration: none; }

/* ── LAYOUT ──────────────────────────────────────────────── */
#page-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

/* ── CARDS ───────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow);
  transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--green); transform: translateY(-2px); }
.card .icon { font-size: 1.75rem; margin-bottom: .75rem; }
.card h3 { font-size: .95rem; color: var(--white); margin-bottom: .4rem; }
.card p  { font-size: .85rem; color: var(--muted); }

/* ── CONTENT BOX ─────────────────────────────────────────── */
.content-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 2.5rem;
  min-height: 200px;
}
.content-box h2 {
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--green);
  font-family: 'Courier New', monospace;
}
.content-box h4 {
  font-size: 1.1rem;
  color: var(--green);
  margin: 2rem 0 .5rem;
  font-family: 'Courier New', monospace;
}
.content-box p  { margin-bottom: 1.4rem; color: var(--text); }
.content-box ul { margin: .5rem 0 1.4rem 1.5rem; }
.content-box li { margin-bottom: .5rem; color: var(--text); }
.content-box hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }
.content-box a  { color: var(--blue); }

/* ── CONTACT ─────────────────────────────────────────────── */
.label { font-weight: 600; color: var(--white); }
.text-muted { color: var(--muted); font-size: .88rem; }
.mt1 { margin-top: 1rem; }

/* ── FOOTER ──────────────────────────────────────────────── */
#site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: .85rem;
  font-family: 'Courier New', monospace;
}
#site-footer a { color: var(--muted); }
#site-footer a:hover { color: var(--white); text-decoration: underline; }
#site-footer .sep { margin: 0 .5rem; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 680px) {
  .nav-toggle { display: block; }
  nav { display: none; position: absolute; top: 64px; left: 0; right: 0;
        background: var(--surface); border-bottom: 1px solid var(--border);
        padding: .75rem 1rem; }
  nav.open { display: block; }
  nav ul { flex-direction: column; gap: 0; }
  nav ul li a { padding: .65rem .75rem; }
  .content-box { padding: 1.25rem 1rem; }
  #hero { padding: 2.5rem 1rem 2rem; }
}

/* ── UTILITY ─────────────────────────────────────────────── */
.hidden { display: none !important; }
