/* Navoryx
   Design read: Landingpage eines Einzel-IT-Dienstleisters für kleine Unternehmen, ruhige und sachliche Sprache.
   Dials: DESIGN_VARIANCE 5 / MOTION_INTENSITY 3 / VISUAL_DENSITY 4
   Farben: kühles Grau + Petrol als einziger Akzent. Keine Texturen.
   Radius-System: Buttons und kleine Elemente 8px, Flächen 12px. */

@font-face {
  font-family: "Geist";
  src: url("fonts/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fbfcfd;
  --surface: #f3f5f7;
  --surface-strong: #e9edf1;
  --ink: #111820;
  --ink-soft: #4b5664;
  --line: #e1e6eb;
  --line-strong: #cdd4dc;
  --accent: #0f6b75;
  --accent-ink: #f6fbfb;
  --accent-soft: #e2f0f1;
  --feature: #121a23;
  --feature-ink: #eef2f6;
  --feature-soft: #9ba8b6;
  --feature-line: #26313d;

  --radius: 12px;
  --radius-sm: 8px;
  --max: 1200px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --z-header: 10;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1016;
    --surface: #111820;
    --surface-strong: #18212b;
    --ink: #e8edf2;
    --ink-soft: #97a3b1;
    --line: #1e2833;
    --line-strong: #2b3744;
    --accent: #4fb3bd;
    --accent-ink: #062629;
    --accent-soft: #0f2a2e;
    --feature: #0f2226;
    --feature-ink: #e8f1f2;
    --feature-soft: #8fb0b4;
    --feature-line: #1c3a3f;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
h1, h2, h3 { text-wrap: balance; font-weight: 600; }
p { text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: calc(var(--z-header) + 1);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.125rem; letter-spacing: -0.02em; text-decoration: none; }
.brand svg { width: 28px; height: 28px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--ink-soft); font-size: 0.95rem; transition: color .2s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: var(--accent-ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font: inherit;
  font-weight: 500;
  font-size: 0.975rem;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--ink)); }
.btn-small { padding: 8px 16px; font-size: 0.9rem; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.text-link {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
  transition: text-decoration-color .2s var(--ease);
}
.text-link:hover { text-decoration-color: var(--accent); }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 88px; }
.hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 600;
  max-width: 17ch;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px 64px; margin-top: 48px; }
.hero-bottom p { color: var(--ink-soft); font-size: 1.15rem; max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }

/* ---------- Fakten-Leiste ---------- */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.fact { padding: 28px 24px 30px; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact:first-child { padding-left: 0; }
.fact strong { display: block; font-weight: 600; font-size: 1.05rem; margin-bottom: 4px; }
.fact span { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Sektionen ---------- */
.section { padding: 112px 0 120px; }
.section-title { font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.08; letter-spacing: -0.035em; max-width: 18ch; }
.section-intro { color: var(--ink-soft); max-width: 58ch; margin-top: 16px; }
.section-head { margin-bottom: 56px; }

/* ---------- Leistungen: Bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(260px, auto);
  gap: 16px;
}
.tile {
  position: relative;
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  transition: border-color .25s var(--ease);
}
.tile:hover { border-color: var(--line-strong); }
.tile h3 { font-size: 1.5rem; letter-spacing: -0.025em; line-height: 1.15; margin-bottom: 12px; }
.tile p { color: var(--ink-soft); max-width: 46ch; }
.tile ul { list-style: none; margin-top: auto; padding-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.tile li {
  font-size: 0.85rem;
  padding: 5px 11px;
  border-radius: 6px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

.tile-web { grid-column: span 4; background: var(--feature); border-color: var(--feature); color: var(--feature-ink); }
.tile-web:hover { border-color: var(--feature); }
.tile-web p { color: var(--feature-soft); }
.tile-web li { border-color: var(--feature-line); color: var(--feature-ink); }
.tile-web h3 { font-size: clamp(1.75rem, 3vw, 2.3rem); max-width: 18ch; }

.tile-software { grid-column: span 2; }
.tile-hosting { grid-column: span 2; }
.tile-it { grid-column: span 4; }

/* ---------- Projekte ---------- */
.projects-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 64px; align-items: start; }
.projects-layout .section-head { position: sticky; top: 108px; margin-bottom: 0; }
.project-list { list-style: none; border-top: 1px solid var(--line); }
.project {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 24px;
  padding: 32px 0 34px;
  border-bottom: 1px solid var(--line);
}
.project h3 { font-size: 1.35rem; letter-spacing: -0.02em; }
.project p { grid-column: 1 / -1; color: var(--ink-soft); max-width: 52ch; }
.status {
  align-self: center;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
}

/* ---------- Ablauf ---------- */
.process { background: var(--surface); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: step; }
.step { position: relative; padding-top: 36px; }
.step::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  right: -32px;
  height: 1px;
  background: var(--line);
}
.step:last-child::before { right: 0; }
.step::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 2px;
  background: var(--accent);
}
.step h3 { font-size: 1.25rem; letter-spacing: -0.02em; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 0.975rem; }

/* ---------- Kontakt ---------- */
.contact { padding: 128px 0 136px; }
.contact-title { font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.02; letter-spacing: -0.045em; max-width: 14ch; }
.contact-mail {
  display: inline-block;
  margin-top: 40px;
  font-size: clamp(1.4rem, 3.4vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
  transition: color .2s var(--ease);
  word-break: break-all;
}
.contact-mail:hover { color: var(--accent); }
.contact-meta { display: flex; flex-wrap: wrap; gap: 12px 48px; margin-top: 40px; color: var(--ink-soft); }
.contact-meta a { color: var(--ink); text-decoration: none; font-weight: 500; }
.contact-meta a:hover { color: var(--accent); }
.contact-meta span { display: block; font-size: 0.875rem; margin-bottom: 2px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--ink-soft); font-size: 0.925rem; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer nav { display: flex; gap: 24px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* ---------- Rechtsseiten ---------- */
.legal { padding-top: 88px; padding-bottom: 112px; }
.legal-inner { max-width: 68ch; }
.legal h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); letter-spacing: -0.04em; line-height: 1.05; margin-bottom: 48px; }
.legal h2 { font-size: 1.25rem; letter-spacing: -0.02em; margin: 44px 0 12px; }
.legal p, .legal li { color: var(--ink-soft); margin-bottom: 12px; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal ul { margin-left: 20px; }
.legal a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 4px; }
.legal .address { color: var(--ink); }
.legal .updated { margin-top: 56px; font-size: 0.9rem; }
.placeholder { background: #fde68a; color: #422006; padding: 1px 6px; border-radius: 4px; }

/* ---------- 404 ---------- */
main.not-found { padding-top: 96px; padding-bottom: 128px; min-height: 60dvh; }
@media (max-width: 767px) { main.not-found { padding-top: 64px; padding-bottom: 96px; } }
.not-found-code { font-family: "Geist Mono", ui-monospace, monospace; font-size: 1rem; color: var(--accent); margin-bottom: 16px; }
.not-found h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.04em; line-height: 1.05; max-width: 16ch; }
.not-found p:not(.not-found-code) { color: var(--ink-soft); max-width: 48ch; margin: 20px 0 36px; }

/* ---------- Bewegung ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; transform: translateY(10px); animation: rise .7s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 90ms); }
  @keyframes rise { to { opacity: 1; transform: none; } }

  .js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile-web, .tile-it { grid-column: span 2; }
  .tile-software, .tile-hosting { grid-column: span 1; }
  .projects-layout { grid-template-columns: 1fr; gap: 40px; }
  .projects-layout .section-head { position: static; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .step::before { display: none; }
}

@media (max-width: 767px) {
  body { font-size: 1rem; }
  .container { padding: 0 16px; }
  .nav-links li:not(:last-child) { display: none; }
  .hero { padding: 56px 0 64px; }
  .facts-grid { grid-template-columns: 1fr; }
  .fact { padding: 20px 0; }
  .fact + .fact { border-left: 0; border-top: 1px solid var(--line); }
  .section { padding: 80px 0 88px; }
  .section-head { margin-bottom: 40px; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .tile-web, .tile-it, .tile-software, .tile-hosting { grid-column: auto; }
  .tile { padding: 28px; min-height: 240px; }
  .steps { grid-template-columns: 1fr; row-gap: 36px; }
  .contact { padding: 88px 0 96px; }
  .legal { padding-top: 56px; padding-bottom: 80px; }
}
