/* ============================================================
   MARVIN OPPONG — site.css
   Editorial design. Pico CSS v2 base + fully custom layout.
   ============================================================ */

/* ── 0. TOKENS ─────────────────────────────────────────────── */
:root {
  /* Pico v2 global overrides */
  --pico-border-radius: 0;
  --pico-font-family-sans-serif: system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Color palette — light */
  --c-bg:     #ffffff;
  --c-bg-alt: #f5f2ed;
  --c-dark:   #111115;
  --c-text:   #111115;
  --c-muted:  #78746f;
  --c-accent: #1d3557;
  --c-border: #e4dfd9;

  /* Layout */
  --nav-h:   62px;
  --max-w:   1200px;
  --pad:     3rem;
}

/* Dark mode — explicit toggle */
[data-theme="dark"] {
  --c-bg:     #111115;
  --c-bg-alt: #191917;
  --c-dark:   #0d0d0f;
  --c-text:   #e8e3dc;
  --c-muted:  #7a7570;
  --c-border: #28271f;
}

/* Dark mode — system preference fallback */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --c-bg:     #111115;
    --c-bg-alt: #191917;
    --c-dark:   #0d0d0f;
    --c-text:   #e8e3dc;
    --c-muted:  #7a7570;
    --c-border: #28271f;
  }
}

/* ── 1. BASE RESETS ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--c-bg);
  color: var(--c-text);
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Reset Pico article card styles */
article {
  padding: 0;
  background: none;
  box-shadow: none;
  border: none;
  margin: 0;
}

/* Reset Pico blockquote */
blockquote {
  border: none;
  padding: 0;
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-style: normal;
}

/* Reset Pico aside */
aside { padding: 0; margin: 0; }

/* ── 2. LAYOUT ──────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ── 3. STICKY NAV ──────────────────────────────────────────── */
#nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--c-bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background-color 0.2s ease;
}

#nav.scrolled {
  border-bottom-color: var(--c-border);
}

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--c-text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-brand:hover { color: var(--c-text); text-decoration: none; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links li { margin: 0; padding: 0; }

.nav-links a {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-text);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--c-accent); }

/* Theme toggle button */
.nav-theme {
  all: unset;
  cursor: pointer;
  font-size: 1rem;
  color: var(--c-muted);
  line-height: 1;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}

.nav-theme:hover { color: var(--c-text); }

/* ── 4. HERO ────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 55fr 45fr;
  min-height: calc(100vh - var(--nav-h));
}

.hero-text {
  padding: 8rem 4rem 8rem max(2rem, calc((100vw - var(--max-w)) / 2 + var(--pad)));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-kicker {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--c-muted);
  margin: 0 0 1.5rem;
  display: block;
}

.hero-text h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.5rem, 6.5vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--c-text);
  margin: 0 0 1.75rem;
}

.hero-text h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--c-muted);
  display: block;
}

.hero-lead {
  font-size: 1rem;
  color: var(--c-muted);
  max-width: 420px;
  line-height: 1.65;
  margin: 0 0 2.5rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-text);
  text-decoration: none;
  border-bottom: 2px solid var(--c-text);
  padding-bottom: 0.25rem;
  transition: color 0.15s, border-color 0.15s;
}

.hero-cta:hover {
  color: var(--c-accent);
  border-color: var(--c-accent);
}

.hero-photo { overflow: hidden; }

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;
  display: block;
}

/* ── 5. STATEMENTS (dark band) ──────────────────────────────── */
.statements {
  background: var(--c-dark);
  padding: 5rem 0;
}

.statements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.statement {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem;
}

.statement-num {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: 1rem;
}

.statement p {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin: 0;
}

/* ── 6. LEISTUNGEN ──────────────────────────────────────────── */
#leistungen {
  padding: 7rem 0;
  border-top: 1px solid var(--c-border);
}

.section-header { margin-bottom: 4rem; }

.kicker {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--c-muted);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--c-text);
  margin: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

article.service {
  border-top: 2px solid var(--c-text);
  padding: 2rem 2.5rem 2rem 0;
}

.service-num {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-muted);
}

.service h3 {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-text);
  margin: 0.5rem 0 0.75rem;
}

.service p {
  font-size: 0.875rem;
  color: var(--c-muted);
  line-height: 1.65;
  margin: 0;
}

/* ── 7. PROFIL ──────────────────────────────────────────────── */
#profil {
  background: var(--c-bg-alt);
  padding: 7rem 0;
}

.profil-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 6rem;
  align-items: start;
}

.profil-text h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--c-text);
  margin: 0 0 1.75rem;
}

.profil-text p {
  font-size: 1rem;
  color: var(--c-muted);
  line-height: 1.7;
  margin: 0 0 1.25rem;
}

.profil-text p:last-child { margin-bottom: 0; }

/* Editorial pull-quote */
blockquote.pull-quote {
  border-left: 3px solid var(--c-accent);
  border-right: none;
  border-top: none;
  border-bottom: none;
  padding: 0 0 0 1.75rem;
  margin: 0;
  color: var(--c-text);
  font-style: normal;
  font-size: inherit;
  position: sticky;
  top: 5rem;
}

blockquote.pull-quote p {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--c-text);
  margin: 0 0 1.25rem;
}

blockquote.pull-quote cite {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-muted);
  font-style: normal;
  display: block;
}

/* ── 8. KONTAKT ─────────────────────────────────────────────── */
#kontakt {
  background: var(--c-dark);
  padding: 7rem 0;
}

#kontakt .kicker {
  color: rgba(255, 255, 255, 0.35);
}

#kontakt h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #fff;
  margin: 0.75rem 0 3rem;
}

#kontakt h2 em {
  display: block;
  font-style: italic;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
}

.contact-email {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 3rem;
  margin-bottom: 3rem;
  display: block;
  transition: border-color 0.2s;
}

.contact-email:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
}

.contact-details {
  display: flex;
  gap: 4rem;
  margin: 0 0 3rem;
  padding: 0;
}

.contact-details div {
  display: flex;
  flex-direction: column;
}

.contact-details dt {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 0.3rem;
  font-weight: normal;
}

.contact-details dd {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  padding: 0;
}

.privacy-note {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  margin-top: 1rem;
  max-width: 520px;
  line-height: 1.6;
}

/* ── 9. FOOTER ──────────────────────────────────────────────── */
footer {
  background: var(--c-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 1.5rem 0;
}

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

footer small {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.8rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover { color: rgba(255, 255, 255, 0.7); }

/* ── 10. LEGAL PAGES ────────────────────────────────────────── */
.legal {
  padding: 5rem 0 7rem;
  max-width: 680px;
}

.legal h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--c-text);
  margin: 0 0 2.5rem;
}

.legal h2 {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-text);
  margin: 2.5rem 0 0.75rem;
}

.legal p,
.legal li {
  font-size: 0.9375rem;
  color: var(--c-muted);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.legal ul {
  padding-left: 1.25rem;
  margin: 0.5rem 0 1rem;
}

.legal ul li { margin-bottom: 0.4rem; }

.legal a {
  color: var(--c-accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.legal code {
  font-size: 0.875em;
  background: var(--c-bg-alt);
  padding: 0.1em 0.35em;
}

/* ── 11. RESPONSIVE ─────────────────────────────────────────── */

/* ≤ 960px */
@media (max-width: 960px) {
  :root { --pad: 2rem; }

  /* Hero: photo on top, text below */
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-photo {
    height: 60vw;
    order: -1;
  }

  .hero-text {
    padding: 4rem 2rem 5rem max(2rem, calc((100vw - var(--max-w)) / 2 + var(--pad)));
  }

  /* Statements: single column */
  .statements-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Services: two columns */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Profile: single column, blockquote not sticky */
  .profil-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  blockquote.pull-quote { position: static; }
}

/* ≤ 600px */
@media (max-width: 600px) {
  :root { --pad: 1.5rem; }

  .nav-links { display: none; }

  .services-grid { grid-template-columns: 1fr; }

  .contact-details {
    flex-direction: column;
    gap: 1.5rem;
  }
}
