/* ============================================================
   Julia und Tom GbR — Stylesheet
   Aesthetic: minimal, professional, warm off-white + deep teal
   ============================================================ */

:root {
  /* Color tokens (oklch for harmonious palette) */
  --bg:        oklch(98.4% 0.008 85);
  --bg-soft:   oklch(96.4% 0.010 85);
  --bg-sunken: oklch(94.6% 0.012 85);
  --ink:       oklch(22% 0.020 250);
  --ink-muted: oklch(46% 0.015 250);
  --ink-faint: oklch(64% 0.010 250);
  --line:      oklch(89% 0.012 85);
  --line-soft: oklch(93% 0.010 85);
  --accent:    oklch(48% 0.085 195);
  --accent-ink:oklch(32% 0.075 195);
  --accent-bg: oklch(94% 0.025 195);

  /* Type */
  --font-display: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Layout */
  --max-w: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius: 6px;
  --radius-lg: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background-image:
    radial-gradient(oklch(85% 0.012 85) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: 0 0;
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
}

p { margin: 0 0 1em; }

::selection {
  background: var(--accent);
  color: var(--bg);
}

img, svg { display: block; max-width: 100%; }

/* ---------- Layout helpers ---------- */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Top nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  background: color-mix(in oklch, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.brand .mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  background: var(--bg);
}
.brand em { font-style: italic; color: var(--accent-ink); font-weight: 400; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  color: var(--ink-muted);
  transition: color .15s ease;
  position: relative;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.cta {
  color: var(--bg);
  background: var(--ink);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  transition: background .15s ease;
}
.nav-links a.cta:hover { background: var(--accent-ink); color: var(--bg); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(60px, 12vh, 140px) 0 clamp(80px, 14vh, 160px);
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 28px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--ink-faint);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(38px, 6.2vw, 80px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0 0 32px;
  max-width: 22ch;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.hero h1 .hero-sub {
  display: block;
  font-size: clamp(22px, 2.6vw, 36px);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink-muted);
  margin-top: 14px;
  line-height: 1.25;
}
.hero h1 .hero-sub em {
  color: var(--accent-ink);
  font-style: italic;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent-ink);
}

.hero-lede {
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--ink-muted);
  max-width: 52ch;
  line-height: 1.5;
  margin: 0 0 40px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .18s ease;
  font-family: inherit;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { background: var(--accent-ink); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn .arrow {
  width: 16px;
  height: 16px;
  transition: transform .18s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

/* Hero side details — small meta */
.hero-meta {
  position: absolute;
  right: var(--gutter);
  top: clamp(70px, 14vh, 160px);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 6px;
  line-height: 1.6;
}
.hero-meta strong { color: var(--ink); font-weight: 500; }

/* ---------- Section base ---------- */
section {
  padding: clamp(80px, 12vh, 140px) 0;
  position: relative;
}

.section-head {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(24px, 4vw, 80px);
  align-items: baseline;
  margin-bottom: 64px;
}
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-bg);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0;
  max-width: 22ch;
}
.section-title em { font-style: italic; color: var(--accent-ink); }

/* ---------- Über uns ---------- */
.about {
  background: var(--bg-soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.person {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: transform .25s ease, border-color .25s ease;
}
.person:hover {
  transform: translateY(-2px);
  border-color: var(--ink-faint);
}
.person-head {
  display: flex;
  align-items: center;
  gap: 20px;
}
.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background:
    repeating-linear-gradient(45deg,
      var(--bg-sunken) 0 6px,
      var(--bg-soft) 6px 12px);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--ink-faint);
  text-align: center;
  flex-shrink: 0;
  letter-spacing: 0.06em;
}
.person-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.person-role {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
}
.person-bio {
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.6;
}
.person-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.skill-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-muted);
  background: var(--bg-soft);
}

/* ---------- Leistungen ---------- */
.services-list {
  border-top: 1px solid var(--line);
}
.service {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background .2s ease;
}
.service:hover { background: color-mix(in oklch, var(--accent-bg) 30%, transparent); }
.service:hover .service-arrow { opacity: 1; transform: translateX(0); }
.service-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
  padding-top: 8px;
}
.service-body h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
}
.service-body p {
  color: var(--ink-muted);
  max-width: 58ch;
  margin: 0 0 16px;
  line-height: 1.6;
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.service-arrow {
  align-self: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--ink-muted);
  opacity: 0.4;
  transform: translateX(-6px);
  transition: all .2s ease;
}

/* ---------- Referenzen ---------- */
.refs {
  background: var(--bg-soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.ref-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.ref-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, border-color .25s ease;
}
.ref-card:hover {
  transform: translateY(-3px);
  border-color: var(--ink-faint);
}
.ref-thumb {
  aspect-ratio: 4 / 3;
  background:
    repeating-linear-gradient(135deg,
      var(--bg-sunken) 0 8px,
      var(--bg-soft) 8px 16px);
  border-bottom: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ref-meta {
  padding: 20px 22px 22px;
}
.ref-cat {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-ink);
  margin-bottom: 8px;
}
.ref-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.ref-desc {
  font-size: 13px;
  color: var(--ink-muted);
  margin: 0;
}

.refs-note {
  margin-top: 36px;
  font-size: 13px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  text-align: center;
  letter-spacing: 0.04em;
}

/* ---------- Kontakt ---------- */
.contact {
  padding-bottom: clamp(120px, 16vh, 180px);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.contact-lede {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0;
  max-width: 18ch;
}
.contact-lede em { font-style: italic; color: var(--accent-ink); }

.contact-block {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.contact-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.contact-value {
  font-size: 17px;
  color: var(--ink);
}
.contact-value a {
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: border-color .15s ease, color .15s ease;
}
.contact-value a:hover {
  color: var(--accent-ink);
  border-color: var(--accent-ink);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 48px 0 56px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.footer-meta {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.7;
}
.footer-meta a { border-bottom: 1px solid transparent; transition: border-color .15s ease; }
.footer-meta a:hover { border-bottom-color: var(--ink-muted); }
.footer-legal {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  margin-top: 24px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* ---------- Datenschutz page ---------- */
.legal {
  padding: clamp(60px, 10vh, 120px) 0 clamp(80px, 12vh, 140px);
  max-width: 760px;
  margin: 0 auto;
}
.legal h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 5.4vw, 64px);
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 0 0 12px;
}
.legal h1 em { font-style: italic; color: var(--accent-ink); }
.legal .updated {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  margin-bottom: 56px;
}
.legal h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.02em;
  margin: 48px 0 16px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.legal h2::before {
  content: attr(data-num);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
}
.legal h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  margin: 28px 0 8px;
}
.legal p, .legal li {
  color: var(--ink-muted);
  line-height: 1.7;
  font-size: 15px;
}
.legal ul {
  padding-left: 20px;
  margin: 12px 0 20px;
}
.legal li { margin-bottom: 6px; }
.legal a {
  color: var(--accent-ink);
  border-bottom: 1px solid var(--line);
}
.legal a:hover { border-bottom-color: var(--accent-ink); }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 32px;
  transition: color .15s ease;
}
.back-link:hover { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
  }
  .nav-links.open a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 16px;
  }
  .nav-links.open a.cta {
    margin-top: 12px;
    text-align: center;
    padding: 14px;
    border-bottom: none;
  }
  .nav-toggle { display: inline-flex; }

  .hero-meta { display: none; }

  .section-head {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 48px;
  }

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

  .service {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 32px 0;
  }
  .service-num { padding-top: 0; }
  .service-arrow { display: none; }

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

  .contact-grid { grid-template-columns: 1fr; gap: 40px; }

  .footer-inner { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 520px) {
  .hero h1 { font-size: 44px; }
  .person { padding: 28px 24px; }
  .person-name { font-size: 26px; }
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
