/* pascal-kozlowski.de — hybrid IT services landing page.
   Self-hosted fonts, no cookies, no trackers. Light/dark via data-theme. */

@font-face {
  font-family: 'Sora';
  src: url('../fonts/sora-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 800;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

:root {
  --bg: #f8f7f3;
  --surface: #fffefb;
  --ink: #1c2227;
  --muted: #5a6066;
  --line: #e4e1d8;
  --infra: #0e5a6d;   /* petrol — infrastructure */
  --dev: #1d5c45;     /* pine — development */
  --infra-soft: #e3eef1;
  --dev-soft: #e4ede7;
  --shadow: 0 2px 12px rgba(28, 34, 39, 0.06);
  color-scheme: light;
}

[data-theme='dark'] {
  --bg: #10161a;
  --surface: #1a2228;
  --ink: #e9e7e0;
  --muted: #9aa3a8;
  --line: #2c363d;
  --infra: #4cc3dc;
  --dev: #5fc99a;
  --infra-soft: #14313a;
  --dev-soft: #15302a;
  --shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.65 'IBM Plex Sans', sans-serif;
  transition: background-color 200ms ease, color 200ms ease;
}

h1, h2, h3 { font-family: 'Sora', sans-serif; letter-spacing: -0.01em; }

a { color: var(--infra); }

.wrap { max-width: 66rem; margin: 0 auto; padding: 0 1.5rem; }

/* ── header ─────────────────────────────────────────────── */
header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

header.site .wrap {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 0.5rem 1rem;
  z-index: 99;
}
.skip:focus { left: 0; }

.wordmark {
  font: 700 17px 'Sora', sans-serif;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.wordmark span { color: var(--infra); }
.wordmark img { display: block; border-radius: 6px; }

:focus-visible {
  outline: 2px solid var(--infra);
  outline-offset: 2px;
}

nav.main { display: flex; gap: 1.1rem; }
nav.main a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}
nav.main a:hover { color: var(--ink); }

.switches { display: flex; align-items: center; gap: 0.6rem; }
.lang { font-size: 13px; color: var(--muted); text-decoration: none; }
.lang:hover { color: var(--ink); }
#theme-toggle {
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  width: 34px; height: 34px;
  cursor: pointer;
  color: var(--ink);
  font-size: 15px;
  line-height: 1;
}

/* ── hero ───────────────────────────────────────────────── */
.hero { padding: 4.5rem 0 3.5rem; }
.hero .wrap { display: flex; gap: 2.5rem; align-items: center; }
.avatar-wrapper { position: relative; display: inline-block; flex-shrink: 0; }
.avatar-wrapper::after {
  content: '';
  position: absolute; bottom: 8px; right: 8px;
  width: 16px; height: 16px;
  background: #2e9e63;
  border-radius: 50%;
  border: 3px solid var(--bg);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46, 158, 99, 0.45); }
  50% { box-shadow: 0 0 0 7px rgba(46, 158, 99, 0); }
}
.hero img.portrait {
  width: 132px; height: 132px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--surface);
  box-shadow: var(--shadow);
  display: block;
}
.hero h1 {
  font-size: clamp(27px, 4vw, 38px);
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin: 0 0 0.6rem;
  max-width: 21ch;
}
.hero .claim {
  font-size: clamp(17px, 2.4vw, 21px);
  color: var(--muted);
  margin: 0 0 1.1rem;
}
.hero .claim strong { color: var(--ink); font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.5rem; }
.chip {
  font: 600 11px/1 'Sora', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--surface);
}

.cta-row { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 0.7rem 1.25rem;
  border-radius: 7px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface);
  transition: transform 150ms ease-out, background-color 150ms ease-out;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary {
  background: var(--infra);
  border-color: var(--infra);
  color: #fff;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--infra) 35%, transparent);
}
[data-theme='dark'] .btn.primary { color: #0c1316; }
.btn.big { padding: 0.85rem 1.6rem; font-size: 16px; }
.btn.ghosted { background: transparent; border-color: var(--line); color: var(--muted); }
.btn.ghosted:hover { color: var(--ink); }
.btn.dev { background: var(--dev); border-color: var(--dev); color: #fff; }
[data-theme='dark'] .btn.dev { color: #0c1316; }
.cta-row.center { justify-content: center; }

/* ── sections ───────────────────────────────────────────── */
section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
section h2 {
  font-size: 24px;
  margin: 0 0 0.4rem;
  position: relative;
  padding-left: 1rem;
}
section h2::before {
  content: '';
  position: absolute;
  left: 0; top: 0.18em;
  width: 4px; height: 1em;
  background: linear-gradient(var(--infra) 50%, var(--dev) 50%);
  border-radius: 2px;
}
section .lead { color: var(--muted); margin: 0 0 2rem; max-width: 44rem; }

.eyebrow {
  font: 600 11px/1 'Sora', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
}
.eyebrow.infra { color: var(--infra); }
.eyebrow.dev { color: var(--dev); }

/* two business fields */
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.field {
  background: linear-gradient(165deg, var(--infra-soft) 0%, var(--surface) 38%);
  border: 1px solid var(--line);
  border-top: 3px solid var(--infra);
  border-radius: 10px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.field.dev {
  border-top-color: var(--dev);
  background: linear-gradient(165deg, var(--dev-soft) 0%, var(--surface) 38%);
}
.field ul { flex: 1; }
.field .card-cta { margin: 1.25rem 0 0; }
.field h3 { margin: 0 0 0.25rem; font-size: 19px; }
.field .for { color: var(--muted); font-size: 14px; margin: 0 0 1.1rem; }
.field ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
.field li { padding-left: 1.3rem; position: relative; font-size: 15px; }
.field li::before {
  content: '▸';
  position: absolute; left: 0;
  color: var(--infra);
}
.field.dev li::before { color: var(--dev); }
.field .note {
  margin: 1.25rem 0 0;
  padding: 0.7rem 0.9rem;
  border-radius: 7px;
  background: var(--infra-soft);
  color: var(--ink);
  font-size: 14px;
}
.field.dev .note { background: var(--dev-soft); }

/* projects */
.projects { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.project {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.project img { width: 100%; height: 230px; object-fit: cover; object-position: top; border-bottom: 1px solid var(--line); }
.project .body { padding: 1.25rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.project h3 { margin: 0; font-size: 17px; }
.project .tag {
  font: 600 10px/1 'Sora', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  align-self: flex-start;
  padding: 4px 8px;
  border-radius: 4px;
}
.project .tag.live { background: var(--dev-soft); color: var(--dev); }
.project .tag.infra { background: var(--infra-soft); color: var(--infra); }
.project p { margin: 0; font-size: 14.5px; color: var(--muted); flex: 1; }
.project .links { display: flex; gap: 1rem; margin-top: 0.75rem; flex-wrap: wrap; }
.project .links a { font-size: 14px; font-weight: 600; text-decoration: none; }
.project .links a:hover { text-decoration: underline; }
.project .links a.devlink { color: var(--dev); }

/* process steps */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 1.5rem; }
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.step .num {
  display: inline-grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--infra);
  color: #fff;
  font: 700 16px 'Sora', sans-serif;
}
[data-theme='dark'] .step .num { color: #0c1316; }
.step h3 { font-size: 16px; margin: 0.8rem 0 0.4rem; }
.step p { margin: 0; font-size: 14.5px; color: var(--muted); }

/* faq */
#faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.9rem 1.2rem;
  margin-top: 0.7rem;
}
#faq summary {
  cursor: pointer;
  font-weight: 600;
  font-family: 'Sora', sans-serif;
  font-size: 15px;
}
#faq details p { margin: 0.6rem 0 0; color: var(--muted); font-size: 15px; }

.plain-mail { text-align: center; color: var(--muted); font-size: 14.5px; margin-top: 0.9rem; }
.plain-mail strong { color: var(--ink); user-select: all; }

/* about */
.about .wrap { display: flex; gap: 2.5rem; align-items: flex-start; }
.about .text { max-width: 44rem; }
.about ul.facts { margin: 1rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.45rem; }
.about ul.facts li { padding-left: 1.3rem; position: relative; font-size: 15px; }
.about ul.facts li::before { content: '✓'; position: absolute; left: 0; color: var(--dev); }

/* contact */
.contact {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.contact .wrap { text-align: center; padding-top: 1rem; padding-bottom: 1rem; }
.contact .lead { margin-left: auto; margin-right: auto; }

/* footer */
footer { padding: 2rem 0 2.5rem; }
footer .wrap {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
  color: var(--muted);
  font-size: 13.5px;
}
footer a { color: var(--muted); }
footer .spacer { flex: 1; }

/* legal pages */
.legal { max-width: 44rem; margin: 0 auto; padding: 3rem 1.5rem; }
.legal h1 { font-size: 26px; }
.placeholder {
  border: 2px dashed #c87f2a;
  border-radius: 8px;
  padding: 0.8rem 1rem;
  color: #c87f2a;
  font-weight: 600;
}

@media (max-width: 800px) {
  .hero { padding: 2.5rem 0 2rem; }
  .hero .wrap, .about .wrap { flex-direction: column; }
  .fields, .projects, .steps-grid { grid-template-columns: 1fr; }
  .chips { display: none; }
  /* keep the one link that matters on mobile: contact */
  nav.main a { display: none; }
  nav.main a.nav-contact {
    display: inline-block;
    color: var(--infra);
    font-weight: 600;
  }
  .project img { height: auto; aspect-ratio: 16 / 10; }
  #theme-toggle { width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
