/* ============================================================================
   nw-home.css — Startseite norbert-wielage.de
   Design-System (Tokens) + Layout. Hell, seriös, technische Raffinesse.
   Keine externen Abhängigkeiten · keine Cookies · keine Tracker.
   ========================================================================== */

@font-face {
  font-family: "raleway";
  font-display: swap;
  font-weight: 100 900;
  font-style: normal;
  src: url("../fonts/raleway/raleway-variable.woff2") format("woff2"),
       url("../fonts/raleway/raleway-variable.woff") format("woff");
}

/* ---- Design-Tokens --------------------------------------------------------*/
:root {
  --ink:        #0f1b2d;
  --ink-soft:   #3c4a5e;
  --muted:      #6b7a8d;
  --blue:       #2ea3f2;
  --blue-deep:  #127ed1;
  --cyan:       #5fd9ff;
  --bg:         #f5f8fc;
  --surface:    #ffffff;
  --border:     #e6edf6;
  --ring:       rgba(46,163,242,.35);

  --maxw: 1180px;
  --r-sm: 10px;  --r-md: 16px;  --r-lg: 24px;  --r-xl: 32px;

  --sh-sm: 0 2px 10px -4px rgba(15,27,45,.18);
  --sh-md: 0 14px 34px -18px rgba(15,27,45,.35);
  --sh-lg: 0 40px 80px -40px rgba(15,27,45,.45);

  --font: "raleway", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, "Cascadia Code", Consolas, monospace;

  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---- Reset / Basis --------------------------------------------------------*/
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-soft);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1,h2,h3,h4 { color: var(--ink); line-height: 1.1; margin: 0; font-weight: 800; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
a { color: var(--blue-deep); }
img { max-width: 100%; display: block; }
::selection { background: rgba(46,163,242,.22); }

.nw-container { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(18px,5vw,32px); }
.nw-section { padding: clamp(64px,9vw,118px) 0; position: relative; }

/* Abschnitts-Label im Mono-Stil (technische Note) */
.nw-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 12.5px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--blue-deep);
  margin: 0 0 18px;
}
.nw-eyebrow::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}
.nw-h2 { font-size: clamp(28px, 4.4vw, 46px); margin-bottom: .5em; }
.nw-lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink-soft); max-width: 62ch; }

/* ---- Buttons --------------------------------------------------------------*/
.nw-btn {
  --c: var(--blue);
  display: inline-flex; align-items: center; gap: 9px;
  font: 600 16px/1 var(--font); text-decoration: none; cursor: pointer;
  padding: 15px 24px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s;
  white-space: nowrap;
}
.nw-btn svg { width: 18px; height: 18px; }
.nw-btn-primary {
  color: #fff; border: 0;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  box-shadow: 0 12px 26px -10px rgba(46,163,242,.75);
}
.nw-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -10px rgba(46,163,242,.85); }
.nw-btn-ghost {
  color: var(--ink); background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--sh-sm);
}
.nw-btn-ghost:hover { transform: translateY(-2px); border-color: var(--ring); color: var(--blue-deep); }
.nw-btn .nw-arrow { transition: transform .25s var(--ease); }
.nw-btn:hover .nw-arrow { transform: translateX(4px); }

/* ===========================================================================
   HERO
   ========================================================================== */
.nw-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--nwb-h,56px) + clamp(56px,9vw,104px)) 0 clamp(56px,8vw,96px);
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}
/* weiche, langsam driftende Farbflächen */
.nw-blob { position: absolute; z-index: -2; border-radius: 50%; filter: blur(60px); opacity: .55; }
.nw-blob.b1 { width: 520px; height: 520px; top: -160px; right: -120px;
  background: radial-gradient(circle at 30% 30%, #8fd2ff, transparent 70%);
  animation: nw-float1 18s ease-in-out infinite; }
.nw-blob.b2 { width: 460px; height: 460px; bottom: -180px; left: -120px;
  background: radial-gradient(circle at 60% 40%, #c9e8ff, transparent 70%);
  animation: nw-float2 22s ease-in-out infinite; }
.nw-blob.b3 { width: 360px; height: 360px; top: 40%; left: 52%;
  background: radial-gradient(circle at 50% 50%, #b8f3ff, transparent 70%);
  animation: nw-float1 26s ease-in-out infinite reverse; }
@keyframes nw-float1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-34px,28px) scale(1.06)} }
@keyframes nw-float2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(30px,-26px) scale(1.05)} }
/* feines Punktraster (technische Note) */
.nw-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(15,27,45,.06) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 30%, transparent 78%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 30%, transparent 78%);
}

.nw-hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(30px,5vw,64px);
  align-items: center;
}
.nw-hero h1 {
  font-size: clamp(40px, 7vw, 76px); letter-spacing: -.035em; margin: 6px 0 4px;
  background: linear-gradient(180deg, var(--ink), #2a3b52);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nw-hero .nw-role {
  font-size: clamp(20px, 3vw, 30px); font-weight: 700; color: var(--ink);
  letter-spacing: -.02em; min-height: 1.3em; margin-bottom: 16px;
}
.nw-hero .nw-role .nw-rot {
  position: relative; display: inline-block; color: var(--blue-deep);
}
.nw-hero .nw-role .nw-rot::after { content: "▌"; color: var(--blue); margin-left: 2px; animation: nw-caret 1.05s steps(1) infinite; }
@keyframes nw-caret { 50% { opacity: 0; } }
.nw-hero-intro { font-size: 18px; max-width: 52ch; margin-bottom: 28px; }
.nw-hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.nw-trust {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
  font-size: 13.5px; color: var(--muted); font-weight: 600;
}
.nw-trust svg { width: 16px; height: 16px; color: #1f9d57; }

/* Portrait-Karte */
.nw-portrait { position: relative; justify-self: center; width: min(360px, 80%); }
.nw-portrait-card {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  border: 6px solid #fff; box-shadow: var(--sh-lg);
  transform: rotate(2deg); transition: transform .4s var(--ease);
  aspect-ratio: 1/1; background: #dce8f5 50%/cover;
  will-change: transform;
}
.nw-portrait:hover .nw-portrait-card { transform: rotate(0deg) scale(1.02); }
.nw-portrait-card img { width: 100%; height: 100%; object-fit: cover; }
.nw-portrait::before {
  content: ""; position: absolute; inset: -14px; z-index: -1; border-radius: calc(var(--r-xl) + 14px);
  background: linear-gradient(135deg, var(--blue), var(--cyan)); opacity: .25; filter: blur(14px);
}
.nw-chip-float {
  position: absolute; right: -14px; bottom: 22px; background: #fff; border: 1px solid var(--border);
  border-radius: 14px; padding: 11px 15px; box-shadow: var(--sh-md);
  display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); font-size: 14px;
  animation: nw-bob 4s ease-in-out infinite;
}
.nw-chip-float .nw-dot { width: 9px; height: 9px; border-radius: 50%; background: #1fbf6b; box-shadow: 0 0 0 4px rgba(31,191,107,.18); }
.nw-chip-float small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); }
@keyframes nw-bob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-7px)} }

/* ===========================================================================
   SKILLS / TAGS
   ========================================================================== */
.nw-tags { display: flex; flex-wrap: wrap; gap: 12px; }
.nw-tag {
  --i: 0;
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--border); color: var(--ink);
  padding: 11px 17px; border-radius: 999px; font-weight: 600; font-size: 15px;
  box-shadow: var(--sh-sm); transition: transform .2s var(--ease), border-color .2s, box-shadow .2s, color .2s;
}
.nw-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan)); flex: 0 0 auto; }
.nw-tag:hover { transform: translateY(-3px); border-color: var(--ring); color: var(--blue-deep);
  box-shadow: 0 14px 26px -14px rgba(46,163,242,.6); }

/* zweispaltige Inhaltsbereiche */
.nw-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(34px,6vw,72px); align-items: start; }
.nw-split h3 { font-size: 20px; margin-bottom: 18px; color: var(--ink); }

/* ===========================================================================
   PROJEKTE
   ========================================================================== */
.nw-proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px,1fr)); gap: 16px; }
.nw-proj {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 20px 20px 18px; text-decoration: none; color: var(--ink);
  box-shadow: var(--sh-sm); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
  overflow: hidden;
}
.nw-proj::after {
  content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 3px;
  background: linear-gradient(180deg, var(--blue), var(--cyan)); transform: scaleY(0); transform-origin: top;
  transition: transform .3s var(--ease);
}
.nw-proj:hover { transform: translateY(-4px); border-color: var(--ring); box-shadow: var(--sh-md); }
.nw-proj:hover::after { transform: scaleY(1); }
.nw-proj-name { font-weight: 800; font-size: 17px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nw-proj-name .nw-arrow { color: var(--blue); transition: transform .25s var(--ease); }
.nw-proj:hover .nw-proj-name .nw-arrow { transform: translate(3px,-3px); }
.nw-proj-tech { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .02em; }

/* ===========================================================================
   GALERIE / SLIDER
   ========================================================================== */
.nw-gallery { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-lg);
  aspect-ratio: 16/9; background: #0f1b2d; }
.nw-slide { position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.06); transition: opacity 1.1s var(--ease), transform 6s linear; }
.nw-slide.is-active { opacity: 1; transform: scale(1); }
.nw-gallery-grad { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15,27,45,.45), transparent 45%); pointer-events: none; }
.nw-gallery-ctrl { position: absolute; bottom: 16px; right: 16px; display: flex; gap: 10px; }
.nw-gallery-ctrl button {
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.92); color: var(--ink); display: grid; place-items: center;
  box-shadow: var(--sh-md); transition: transform .2s, background .2s;
}
.nw-gallery-ctrl button:hover { transform: scale(1.08); background: #fff; }
.nw-gallery-ctrl svg { width: 16px; height: 16px; }
.nw-dots { position: absolute; bottom: 22px; left: 20px; display: flex; gap: 8px; }
.nw-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.5); transition: width .25s, background .25s; }
.nw-dots button.is-active { width: 26px; border-radius: 6px; background: #fff; }

/* ===========================================================================
   KONTAKT
   ========================================================================== */
.nw-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.nw-card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: clamp(26px,4vw,40px); box-shadow: var(--sh-sm); overflow: hidden;
}
.nw-card h3 { font-size: 22px; margin-bottom: 26px; }
.nw-contact-row { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
.nw-contact-row:last-child { margin-bottom: 0; }
.nw-ico {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  color: var(--blue-deep); background: rgba(46,163,242,.10); border: 1px solid rgba(46,163,242,.18);
}
.nw-ico svg { width: 22px; height: 22px; }
.nw-contact-row .nw-k { font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 3px; }
.nw-contact-row .nw-v { font-size: 18px; color: var(--ink); font-weight: 600; }
.nw-contact-row a.nw-v { text-decoration: none; }
.nw-contact-row a.nw-v:hover { color: var(--blue-deep); }
.nw-card .nw-deco { position: absolute; right: -36px; bottom: -30px; opacity: .12; pointer-events: none; }

/* ===========================================================================
   FOOTER
   ========================================================================== */
.nw-footer { background: #0f1b2d; color: #b9c6d8; padding: clamp(48px,7vw,72px) 0 54px; }
.nw-footer a { color: #cfe0f2; text-decoration: none; transition: color .2s; }
.nw-footer a:hover { color: #fff; }
.nw-footer-top { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.nw-footer-brand { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 800; font-size: 18px; }
.nw-footer-mark { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-weight: 800;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep)); }
.nw-footer-links { display: flex; gap: 22px; flex-wrap: wrap; font-weight: 600; }
.nw-footer hr { border: 0; border-top: 1px solid rgba(255,255,255,.12); margin: 30px 0 22px; }
.nw-footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 14px; color: #8da0b8; }
.nw-privacy { display: inline-flex; align-items: center; gap: 9px; }
.nw-privacy svg { width: 17px; height: 17px; color: #44d684; }

/* ===========================================================================
   Scroll-Reveal
   ========================================================================== */
/* Inhalte sind standardmäßig sichtbar. Nur wenn JS aktiv ist (.js am <html>),
   werden sie zunächst versteckt und beim Scrollen sanft eingeblendet. */
.js .nw-reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .nw-reveal.is-in { opacity: 1; transform: none; }
.js .nw-reveal[data-delay] { transition-delay: calc(var(--d, 0) * 1ms); }

/* ===========================================================================
   Responsiv
   ========================================================================== */
@media (max-width: 900px) {
  .nw-hero-grid { grid-template-columns: 1fr; text-align: left; }
  .nw-portrait { order: -1; width: min(280px, 70%); margin-bottom: 8px; }
  .nw-split, .nw-contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nw-portrait { width: min(240px, 72%); }
  .nw-btn { width: 100%; justify-content: center; }
  .nw-hero-cta { width: 100%; }
}

/* ---- Reduced Motion -------------------------------------------------------*/
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .nw-reveal { opacity: 1; transform: none; }
  .nw-slide { transition: opacity .3s linear; transform: none; }
}
