/* NIWEX Darmstadt — base tokens & shared components */
:root {
  --navy-900: #0a1c38;
  --navy-800: #0e2545;
  --navy-700: #132e54;
  --navy-600: #1a3b6b;
  --blue-500: #2f63c4;
  --blue-400: #3f7ad6;
  --blue-300: #8fb2e6;
  --ink: #0f2545;
  --ink-2: #44557a;
  --line: #e2e8f3;
  --paper: #f5f8fc;
  --white: #ffffff;
  --radius: 14px;
  --maxw: 1200px;
  --fhead: "Archivo", system-ui, sans-serif;
  --fbody: "Mulish", system-ui, sans-serif;
  --fmono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--fbody);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--fhead); margin: 0; line-height: 1.05; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.nx-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* "Symbolbild" badge on illustrative (non-project) photos */
.nx-img-symbol { position: absolute; right: 10px; top: 10px; z-index: 2; font: 600 10px/1 var(--fmono); letter-spacing: .08em; text-transform: uppercase; color: #fff; background: rgba(10,22,42,.6); backdrop-filter: blur(6px); padding: 5px 9px; border-radius: 5px; border: 1px solid rgba(255,255,255,.18); }

/* Skip link (a11y) */.nx-skip { position: absolute; left: -9999px; top: 0; z-index: 2000; background: var(--blue-500); color: #fff; padding: 12px 18px; border-radius: 0 0 10px 0; font-family: var(--fhead); font-weight: 700; }
.nx-skip:focus { left: 0; }

/* ---------- Logo ---------- */
.nx-logo-img { display: inline-flex; align-items: center; }
.nx-logo-img img { display: block; width: auto; }
.nx-logo-img.on-dark { background: #fff; padding: 9px 14px; border-radius: 12px; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.nx-logo { display: flex; align-items: center; gap: 12px; }
.nx-logo-text { display: flex; flex-direction: column; line-height: 1; }
.nx-logo-word { font-family: var(--fhead); font-weight: 800; font-size: calc(26px * var(--ls, 1)); letter-spacing: 0.02em; }
.nx-logo-sub { font-family: var(--fhead); font-weight: 600; font-size: calc(12px * var(--ls, 1)); letter-spacing: 0.34em; margin-top: 2px; }

/* ---------- Icons ---------- */
.nx-ico { display: inline-flex; width: 1em; height: 1em; }
.nx-ico svg { width: 100%; height: 100%; }

/* ---------- Buttons ---------- */
.nx-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--fhead); font-weight: 700; font-size: 16px;
  padding: 15px 26px; border-radius: 10px; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.nx-btn .nx-ico { font-size: 19px; }
.nx-btn-primary { background: var(--blue-500); color: #fff; box-shadow: 0 8px 22px rgba(47,99,196,.32); }
.nx-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(47,99,196,.40); background: var(--blue-400); }
.nx-btn-ghost { background: rgba(255,255,255,.08); color: #fff; border: 1.5px solid rgba(255,255,255,.28); }
.nx-btn-ghost:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.nx-btn-dark { background: var(--navy-800); color: #fff; }
.nx-btn-dark:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(14,37,69,.28); }
.nx-btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.nx-btn-outline:hover { border-color: var(--blue-500); color: var(--blue-500); }

/* ---------- Variant switcher ---------- */
.nx-switch {
  position: fixed; z-index: 1000; top: 16px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px;
  background: rgba(10,22,42,.86); backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.14); border-radius: 999px;
  padding: 5px; box-shadow: 0 12px 34px rgba(8,18,38,.4);
}
.nx-switch-label { color: rgba(255,255,255,.55); font: 600 11px/1 var(--fmono); letter-spacing: .12em; padding: 0 10px 0 12px; text-transform: uppercase; }
.nx-switch button {
  border: 0; cursor: pointer; background: transparent; color: rgba(255,255,255,.7);
  font-family: var(--fhead); font-weight: 700; font-size: 13px; letter-spacing: .02em;
  padding: 8px 16px; border-radius: 999px; transition: all .16s ease; white-space: nowrap;
}
.nx-switch button:hover { color: #fff; }
.nx-switch button.active { background: var(--blue-500); color: #fff; box-shadow: 0 4px 12px rgba(47,99,196,.5); }

/* Branded "Symbolbild" panel (used where no real photo exists yet) */.nx-panel { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, var(--navy-700) 0%, var(--navy-900) 78%); color: #fff; isolation: isolate; }
.nx-panel-grid { position: absolute; inset: 0; background-image:
  linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 38px 38px; mask-image: radial-gradient(120% 90% at 30% 10%, #000, transparent 75%); }
.nx-panel-streak { position: absolute; top: -30%; left: -20%; width: 70%; height: 160%; transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(143,178,230,.16) 38%, rgba(255,255,255,.30) 50%, rgba(143,178,230,.16) 62%, transparent);
  filter: blur(2px); }
.nx-panel-icons { position: relative; display: flex; gap: clamp(12px, 2.4vw, 22px); z-index: 1; }
.nx-panel-chip { display: inline-flex; align-items: center; justify-content: center; width: clamp(54px, 8vw, 78px); height: clamp(54px, 8vw, 78px);
  border-radius: 18px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #cfe0fb; font-size: clamp(26px, 4vw, 38px);
  backdrop-filter: blur(4px); box-shadow: 0 10px 30px rgba(5,14,30,.3); }
.nx-panel-chip.c1 { transform: translateY(-14px) scale(1.08); background: rgba(47,99,196,.34); border-color: rgba(143,178,230,.4); color: #fff; }
.nx-panel-label { position: absolute; left: 16px; bottom: 14px; z-index: 1; font: 600 11px/1 var(--fmono); letter-spacing: .08em;
  text-transform: uppercase; color: rgba(207,224,251,.82); background: rgba(10,22,42,.5); padding: 7px 11px; border-radius: 6px; backdrop-filter: blur(6px); }

@media (max-width: 720px) {
  .nx-switch-label { display: none; }
  .nx-switch button { padding: 8px 12px; font-size: 12px; }
}

/* ---------- Shared sections (Gallery + FAQ), themed via vars ---------- */
.nx-gallery, .nx-faq { background: var(--sec-bg); color: var(--sec-text); }
.nx-sec-kicker { display:inline-block; font: 700 13px/1 var(--fhead); letter-spacing:.16em; text-transform: uppercase; color: var(--sec-accent); margin-bottom: 14px; }

.nx-gallery { padding: clamp(64px,8vw,104px) clamp(22px,5vw,72px); }
.nx-gallery-head { max-width: 1280px; margin: 0 auto clamp(34px,4vw,52px); }
.nx-gallery-head h2 { font-size: clamp(28px,3.6vw,44px); font-weight: 800; letter-spacing: -0.02em; max-width: 16ch; }
.nx-gallery-head p { margin-top: 16px; font-size: 17px; line-height: 1.6; color: var(--sec-muted); max-width: 56ch; }
.nx-gallery-grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; gap: 16px; }
.nx-gallery-item { position: relative; margin: 0; overflow: hidden; border-radius: 14px; border: 1px solid var(--sec-line); }
.nx-gallery-item.i0 { grid-row: span 2; }
.nx-gallery-item .nx-img { height: 100%; }
.nx-gallery-item img { transition: transform .5s ease; }
.nx-gallery-item:hover img { transform: scale(1.05); }
.nx-gallery-item figcaption { position: absolute; left: 12px; bottom: 12px; font: 600 11px/1 var(--fmono); letter-spacing: .08em; text-transform: uppercase; color: #fff; background: rgba(10,22,42,.6); backdrop-filter: blur(6px); padding: 7px 11px; border-radius: 6px; }

.nx-faq { padding: clamp(64px,8vw,104px) clamp(22px,5vw,72px); }
.nx-faq-head { max-width: 860px; margin: 0 auto clamp(28px,3vw,40px); text-align: center; }
.nx-faq-head h2 { font-size: clamp(28px,3.6vw,44px); font-weight: 800; letter-spacing: -0.02em; }
.nx-faq-list { max-width: 860px; margin: 0 auto; }
.nx-faq-item { border-bottom: 1px solid var(--sec-line); }
.nx-faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 4px; font-family: var(--fhead); font-weight: 700; font-size: clamp(17px,2vw,21px); }
.nx-faq-item summary::-webkit-details-marker { display: none; }
.nx-faq-item summary:focus-visible { outline: 2px solid var(--sec-accent); outline-offset: 3px; border-radius: 4px; }
.nx-faq-plus { position: relative; width: 20px; height: 20px; flex: none; }
.nx-faq-plus::before, .nx-faq-plus::after { content: ""; position: absolute; background: var(--sec-accent); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.nx-faq-plus::before { top: 9px; left: 0; width: 20px; height: 2.5px; }
.nx-faq-plus::after { left: 9px; top: 0; width: 2.5px; height: 20px; }
.nx-faq-item[open] .nx-faq-plus::after { transform: rotate(90deg); opacity: 0; }
.nx-faq-a { padding: 0 4px 26px; max-width: 64ch; }
.nx-faq-a p { font-size: 16.5px; line-height: 1.62; color: var(--sec-muted); }
.nx-faq-item[open] summary { color: var(--sec-accent); }

/* Theme tokens per variant */
.vA { --sec-bg: var(--paper); --sec-text: var(--ink); --sec-muted: var(--ink-2); --sec-line: var(--line); --sec-accent: var(--blue-500); }
.vB { --sec-bg: var(--navy-900); --sec-text: #fff; --sec-muted: rgba(217,229,247,.72); --sec-line: rgba(255,255,255,.12); --sec-accent: var(--blue-300); }
.vC { --sec-bg: #f7f5f1; --sec-text: #14233d; --sec-muted: #5c6577; --sec-line: #e3ded4; --sec-accent: var(--blue-500); }
.vC .nx-sec-kicker { font-family: var(--fmono); font-weight: 700; font-size: 12px; letter-spacing: .24em; }

@media (max-width: 860px) {
  .nx-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .nx-gallery-item.i0 { grid-row: span 1; }
}
@media (max-width: 520px) {
  .nx-gallery-grid { grid-template-columns: 1fr; }
}
