/* niklas.digital – Stylesheet
   Keine externen Schriften oder Skripte (DSGVO-freundlich). */

:root {
  --ink: #0f1d24;       /* Hintergrund: Hafen bei Nacht */
  --deep: #0a151b;      /* dunklere Flächen */
  --surface: #162a33;   /* Flächen */
  --line: #27424d;      /* Linien */
  --text: #e9efee;
  --muted: #9bb0b5;
  --amber: #f0b44c;     /* Hafenlicht – einzige Akzentfarbe */
  --amber-dark: #c98f2a;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 29, 36, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}
.wordmark .dot { color: var(--amber); }
.wordmark svg { width: 22px; height: 22px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9375rem;
}
.nav a:hover { color: var(--text); }
.nav .nav-cta {
  color: var(--ink);
  background: var(--amber);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
}
.nav .nav-cta:hover { background: #f5c46a; color: var(--ink); }

@media (max-width: 760px) {
  .nav a:not(.nav-cta) { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { background: #f5c46a; }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(64px, 11vw, 128px) 0 clamp(64px, 9vw, 112px);
  border-bottom: 1px solid var(--line);
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.hero-place {
  color: var(--muted);
  font-size: 0.9375rem;
  margin: 0 0 24px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 6.4vw, 4.75rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  max-width: 14ch;
}
.hero-lead {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: var(--muted);
  max-width: 34em;
  margin: 0 0 40px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Kompass – das eine Bewegungsmoment der Seite */
.compass { width: 100%; max-width: 360px; justify-self: end; }
.compass .needle {
  transform-origin: 200px 200px;
  animation: settle 2.4s cubic-bezier(.2, .8, .2, 1) .3s both;
}
@keyframes settle {
  0%   { transform: rotate(-140deg); }
  60%  { transform: rotate(52deg); }
  80%  { transform: rotate(38deg); }
  100% { transform: rotate(45deg); }
}
@media (prefers-reduced-motion: reduce) {
  .compass .needle { animation: none; transform: rotate(45deg); }
}

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .compass { max-width: 200px; justify-self: start; order: -1; }
}

/* ---------- Abschnitte ---------- */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section + .section { border-top: 1px solid var(--line); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 48px;
  margin-bottom: 56px;
}
.section h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 2.875rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0;
}
.section-intro { color: var(--muted); margin: 0; max-width: 36em; align-self: end; }

@media (max-width: 760px) {
  .section-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 40px; }
}

/* Leistungen: Liste statt Karten */
.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 48px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}
.service h3 {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}
.service p { margin: 0 0 12px; color: var(--muted); max-width: 36em; }
.service .fit { margin: 0; font-size: 0.9375rem; color: var(--text); }
.service .fit strong { color: var(--amber); font-weight: 600; }

@media (max-width: 760px) {
  .service { grid-template-columns: 1fr; gap: 12px; padding: 28px 0; }
}

/* Ablauf: echte Reihenfolge, deshalb nummeriert */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  counter-reset: step;
}
.steps li { counter-increment: step; border-top: 2px solid var(--line); padding-top: 20px; }
.steps li:first-child { border-top-color: var(--amber); }
.steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--serif);
  font-size: 2.25rem;
  line-height: 1;
  color: var(--amber);
  margin-bottom: 16px;
}
.steps h3 { font-size: 1.125rem; margin: 0 0 8px; font-weight: 600; }
.steps p { margin: 0; color: var(--muted); font-size: 0.9875rem; }

@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Projekte */
.projects-note {
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 32px;
  color: var(--muted);
  max-width: 44em;
}
.projects-note p { margin: 0; }
.projects-note strong { color: var(--text); font-weight: 600; }

/* Über mich */
.about {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.portrait {
  aspect-ratio: 4 / 5;
  background: var(--surface);
  border-radius: 18px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait .monogram {
  font-family: var(--serif);
  font-size: 6rem;
  color: var(--amber);
  line-height: 1;
}
.about-text p { margin: 0 0 18px; max-width: 34em; }
.about-text .about-first { margin-top: 24px; }
.about-text p.muted { color: var(--muted); }
.values { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; padding: 0; list-style: none; }
.values li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.9375rem;
  color: var(--muted);
}

@media (max-width: 760px) {
  .about { grid-template-columns: 1fr; gap: 32px; }
  .portrait { max-width: 260px; }
}

/* Kontakt */
.contact { background: var(--deep); }
.contact h2 { max-width: 16ch; margin-bottom: 24px; }
.contact-lead { color: var(--muted); max-width: 34em; margin: 0 0 40px; }
.contact-mail {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 5vw, 3.25rem);
  color: var(--amber);
  text-decoration: none;
  border-bottom: 2px solid var(--amber-dark);
  line-height: 1.2;
  word-break: break-word;
}
.contact-mail:hover { border-bottom-color: var(--amber); }
.contact-alt { margin: 28px 0 0; color: var(--muted); }
.contact-alt a { color: var(--text); }

/* Fußzeile */
.site-footer {
  background: var(--deep);
  border-top: 1px solid var(--line);
  padding: 28px 0;
  font-size: 0.9375rem;
  color: var(--muted);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* Rechtstexte */
.legal { padding: clamp(56px, 8vw, 96px) 0; }
.legal .wrap { max-width: 760px; }
.legal h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.25rem, 5vw, 3rem);
  margin: 0 0 40px;
  letter-spacing: -0.015em;
}
.legal h2 { font-size: 1.25rem; margin: 40px 0 12px; font-family: var(--sans); font-weight: 600; }
.legal p, .legal address { margin: 0 0 16px; color: var(--muted); font-style: normal; }
.legal strong { color: var(--text); }
.legal .todo {
  border-left: 3px solid var(--amber);
  background: var(--surface);
  padding: 16px 20px;
  border-radius: 0 10px 10px 0;
  color: var(--text);
}
.back { display: inline-block; margin-bottom: 32px; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--text); }
