/* ============================================================
   Tim Gatzemeier — freelance site
   Palette: deep teal-green (from CV) + emerald accent
   ============================================================ */

:root {
  --bg:        #ffffff;
  --bg-alt:    #f4f7f5;
  --ink:       #15211d;   /* near-black green-tinted text */
  --ink-soft:  #4b5b55;   /* muted body text */
  --line:      #e2e9e5;   /* hairline borders */

  --brand:        #159b6b; /* emerald */
  --brand-dark:   #0f7d56;
  --brand-deep:   #1d3a32; /* deep teal-green (CV header) */
  --brand-deeper: #142a24;

  --radius:    14px;
  --radius-sm: 9px;
  --shadow:    0 1px 2px rgba(20,42,36,.06), 0 8px 24px rgba(20,42,36,.06);
  --maxw:      1080px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- self-hosted Inter (no external requests / GDPR-friendly) ---------- */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/inter-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('../fonts/inter-latin-800-normal.woff2') format('woff2'); }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 18px rgba(21,155,107,.30);
}
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost {
  border: 1.5px solid var(--line);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-dark); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; }
.brand-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  background: var(--brand);
  color: #fff;
  border-radius: 9px;
  font-size: 14px; font-weight: 800; letter-spacing: -0.03em;
}
.brand-mark.small { width: 28px; height: 28px; font-size: 12px; }
.brand-mark.picture {
  background-image: url('/assets/1630160647403.jpeg');
  background-size: contain;
}
.brand-name { font-size: 16px; }

.primary-nav { display: flex; align-items: center; gap: 30px; }
.primary-nav a { font-size: 15px; font-weight: 500; color: var(--ink-soft); transition: color .15s ease; }
.primary-nav a:hover { color: var(--brand-dark); }
.primary-nav .nav-cta {
  background: var(--brand-deep);
  color: #fff;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
}
.primary-nav .nav-cta:hover { background: var(--brand-deeper); color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background:
    radial-gradient(900px 420px at 88% -8%, rgba(21,155,107,.13), transparent 60%),
    linear-gradient(180deg, var(--bg-alt), var(--bg));
  padding: clamp(56px, 9vw, 104px) 0 clamp(48px, 7vw, 84px);
  border-bottom: 1px solid var(--line);
}
.hero-inner { max-width: 760px; }
.eyebrow {
  color: var(--brand-dark);
  font-weight: 600; font-size: 14px; letter-spacing: .02em;
  text-transform: none;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2rem, 5.2vw, 3.4rem);
  font-weight: 800;
  margin-bottom: 22px;
}
.hero-lede { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--ink-soft); max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: 38px;
  margin-top: 52px; padding-top: 32px;
  border-top: 1px solid var(--line);
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.15rem; font-weight: 700; }
.hero-stats span { font-size: 14px; color: var(--ink-soft); }

/* ============================================================
   SECTIONS (shared)
   ============================================================ */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--bg-alt); }
.section-eyebrow {
  color: var(--brand-dark); font-weight: 600; font-size: 14px;
  margin-bottom: 10px;
}
.section-title { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; }
.section-intro { color: var(--ink-soft); max-width: 620px; margin-top: 14px; margin-bottom: 44px; }

/* ---------- service cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(20,42,36,.10); }
.card-icon {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 11px;
  background: rgba(21,155,107,.12);
  color: var(--brand-dark);
  font-size: 20px; font-weight: 700;
  margin-bottom: 18px;
}
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 15.5px; }

/* ---------- clients ---------- */
.client-list { display: grid; gap: 18px; }
.client {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.client-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px;
  margin-bottom: 12px;
}
.client-head h3 { font-size: 1.3rem; }
.client-meta { color: var(--brand-dark); font-weight: 600; font-size: 14px; }
.client p { color: var(--ink-soft); }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag-row li {
  font-size: 13px; font-weight: 500;
  color: var(--brand-deep);
  background: rgba(21,155,107,.10);
  border: 1px solid rgba(21,155,107,.18);
  padding: 4px 12px;
  border-radius: 999px;
}
/* ---------- earlier career (timeline) ---------- */
.earlier { margin-top: 44px; }
.earlier-head h3 { font-size: 1.3rem; margin-bottom: 8px; }
.earlier-head p { color: var(--ink-soft); max-width: 740px; }
.timeline {
  margin-top: 24px;
  border-left: 2px solid var(--brand);
  padding-left: 0;
}
.timeline li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 20px 0 20px 24px;
  position: relative;
}
.timeline li + li { border-top: 1px solid var(--line); }
.timeline li::before {
  content: "";
  position: absolute;
  left: -7px; top: 27px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--brand);
  border: 2px solid var(--bg-alt);
}
.tl-when { color: var(--brand-dark); font-weight: 600; font-size: 14px; padding-top: 2px; }
.tl-what h4 { font-size: 1.05rem; margin-bottom: 4px; margin-top: 0; }
.tl-what p { color: var(--ink-soft); font-size: 15px; }

/* ---------- skills ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.skill-group h3 {
  font-size: 1.05rem; margin-bottom: 14px;
  padding-bottom: 10px; border-bottom: 2px solid var(--brand);
  display: inline-block;
}
.skill-group .tag-row { margin-top: 0; }

/* ---------- about ---------- */
.about-inner { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }
.about-text p { color: var(--ink-soft); margin-top: 18px; }
.about-text .section-title { margin-bottom: 6px; }
.about-lang { font-weight: 500; color: var(--ink) !important; }
.about-side {
  background: var(--brand-deep);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px;
}
.about-side h3 { font-size: 1.05rem; margin-bottom: 18px; color: #fff; }
.about-side ul { display: grid; gap: 16px; }
.about-side li { display: flex; flex-direction: column; gap: 2px; }
.about-side span { font-size: 13px; color: rgba(255,255,255,.6); }
.about-side strong { font-size: 16px; font-weight: 600; color: #fff; }

/* ---------- contact ---------- */
.section-contact {
  background:
    radial-gradient(700px 360px at 12% 110%, rgba(21,155,107,.16), transparent 60%),
    var(--brand-deeper);
  color: #fff;
  text-align: center;
}
.section-contact .section-eyebrow { color: #5fdcab; }
.section-contact .section-title { color: #fff; }
.section-contact .section-intro { color: rgba(255,255,255,.78); margin-inline: auto; }
.contact-inner { max-width: 620px; margin-inline: auto; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.section-contact .btn-ghost { border-color: rgba(255,255,255,.28); color: #fff; }
.section-contact .btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--brand-deeper); color: rgba(255,255,255,.7); padding: 36px 0; border-top: 1px solid rgba(255,255,255,.08); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-inner > div { display: flex; align-items: center; gap: 12px; }
.footer-inner p { font-size: 14px; }
.footer-legal { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.footer-legal > * + *::before { content: "·"; display: inline-block; margin-right: 8px; text-decoration: none; opacity: .55; }
.footer-legal a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 760px) {
  body { font-size: 16px; }

  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
    box-shadow: var(--shadow);
    transform: translateY(-130%);
    transition: transform .25s ease;
    visibility: hidden;
  }
  .primary-nav.open { transform: translateY(0); visibility: visible; }
  .primary-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .primary-nav .nav-cta { text-align: center; margin-top: 14px; border-bottom: 0; }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .about-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-stats { gap: 24px 32px; }

  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .tl-when { padding-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ============================================================
   COOKIE CONSENT
   ============================================================ */
.footer-link {
  font: inherit; color: #fff; background: none; border: 0; padding: 0;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.cookie-consent {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 100;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(20,42,36,.18);
  padding: 22px 24px;
  max-width: 940px;
  margin-inline: auto;
}
.cookie-consent[hidden] { display: none; }
.cookie-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.cookie-text { flex: 1 1 360px; }
.cookie-text h2 { font-size: 1.05rem; margin-bottom: 6px; }
.cookie-text p { color: var(--ink-soft); font-size: 14.5px; }
.cookie-text a { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 2px; }
.cookie-features { list-style: disc; padding-left: 20px; margin-top: 10px; }
.cookie-features li { color: var(--ink-soft); font-size: 14px; margin-bottom: 4px; }
.cookie-features strong { color: var(--ink); }
.cookie-actions { display: flex; gap: 12px; flex-shrink: 0; }
.cookie-actions .btn { padding: 11px 20px; }

@media (max-width: 560px) {
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; text-align: center; }
}

/* ============================================================
   LEGAL PAGES (imprint / privacy)
   ============================================================ */
.legal { padding: clamp(40px, 7vw, 80px) 0; }
.legal .container { max-width: 760px; }
.legal h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 8px; }
.legal .legal-updated { color: var(--ink-soft); font-size: 14px; margin-bottom: 36px; }
.legal h2 { font-size: 1.25rem; margin: 36px 0 12px; }
.legal h3 { font-size: 1.05rem; margin: 22px 0 8px; }
.legal p, .legal li { color: var(--ink-soft); }
.legal p { margin-bottom: 14px; }
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: 14px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 2px; }
.legal .legal-block { margin-bottom: 8px; }
.legal .back-home {
  display: inline-block; margin-bottom: 28px; font-weight: 600; font-size: 14px;
  color: var(--brand-dark);
}
.legal .placeholder {
  background: rgba(21,155,107,.10);
  border: 1px dashed rgba(21,155,107,.4);
  border-radius: 6px; padding: 0 6px; font-style: normal;
}
