/* wolf-labs hub — "nocturne" chrome.
   Design tokens verbatim from the Claude Design handoff
   (design_handoff_wolf_labs_hub/README.md). This is a marketing site, not a
   drawer/bottom-nav product, so unlike sibling apps this file does NOT remap
   --acc/--a2 (the shell's authed chrome is never rendered here) — it owns its
   own full palette instead. Do not redeclare --display/--body (shell owns the
   type pair) or the shell's motion durations/easings (reused via var()). */

:root {
  --wl-bg: #0c1218;
  --wl-surface: rgba(255,255,255,0.025);
  --wl-surface-2: rgba(255,255,255,0.02);
  --wl-border: rgba(255,255,255,0.07);
  --wl-hairline: rgba(255,255,255,0.06);

  --wl-ink: #eaf1f6;
  --wl-ink-2: #c3d2dd;
  --wl-ink-muted: #9fb2c0;
  --wl-ink-faint: #6c7f8e;
  --wl-ink-faint-2: #8397a5;

  --wl-moon: #a6c6da;      /* house accent ("moonlight") */
  --wl-moon-hover: #bcd6e6;
  --wl-on-accent: #0c1218;

  --wl-live: #79d38f;
  --wl-beta: #e6b855;
  --wl-offline: #7c8ea0;
  --wl-error: #e88;
}

/* ---- base -------------------------------------------------------------- */

body.hub {
  background: var(--wl-bg);
  color: var(--wl-ink);
}

body.hub ::selection { background: rgba(166,198,218,0.28); }

/* Base link reset — matches the design handoff's `a { color: inherit;
   text-decoration: none; }`. Without this, browser-default blue/underline
   shows through anywhere a more specific rule sets color but not
   text-decoration (nav links, buttons, card links).
   The whole selector is wrapped in :where() so it contributes ZERO
   specificity — `body.hub :where(a)` (without the outer :where) still has
   `body` as a real element selector, which alone out-specifies any one-class
   rule like `.wl-btn-primary` and muted every intentional button/link color
   (caught by comparing screenshots: "Produkte ansehen" rendered white-on-blue
   instead of dark-on-blue). */
:where(body.hub a) { color: inherit; text-decoration: none; }

/* ambient glow + slow-panning grid, fixed behind all content */
.wl-ambient {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1100px 680px at 50% -8%, rgba(166,198,218,0.10), transparent 62%),
    radial-gradient(760px 620px at 8% 108%, rgba(63,162,212,0.06), transparent 60%),
    var(--wl-bg);
}

.wl-grid {
  position: fixed; inset: 0; z-index: 0; opacity: 0.45; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 46px 46px;
  animation: wl-grid-pan 9s linear infinite;
  mask-image: radial-gradient(circle at 50% 22%, black, transparent 80%);
}

@keyframes wl-grid-pan { to { background-position: 46px 46px, 46px 46px; } }

.wl-page { position: relative; z-index: 10; }

/* ---- STALK v4-A brand entrance (scoped under .play — see _wolf_mark.html) */

.wl-mark [class*="wl-"] { transform-box: fill-box; }
.wl-mark .wl-toe  { transform-origin: center; }
.wl-mark .wl-claw { transform-origin: 50% 100%; }
.wl-mark .wl-wpad { transform-origin: 50% 40%; }

.wl-mark.play .wl-toe { animation: wl-toe-tap 280ms var(--ease-emphasized-decel, cubic-bezier(.05,.7,.1,1)) both; }
.wl-mark.play .wl-t1 { animation-delay: 0ms; }
.wl-mark.play .wl-t2 { animation-delay: 70ms; }
.wl-mark.play .wl-t3 { animation-delay: 140ms; }
.wl-mark.play .wl-t4 { animation-delay: 210ms; }
@keyframes wl-toe-tap {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(1); }
}

.wl-mark.play .wl-claw { animation: wl-claw-dig 300ms var(--ease-emphasized-accel, cubic-bezier(.3,0,.8,.15)) both; }
.wl-mark.play .wl-c1 { animation-delay: 380ms; }
.wl-mark.play .wl-c2 { animation-delay: 450ms; }
.wl-mark.play .wl-c3 { animation-delay: 520ms; }
.wl-mark.play .wl-c4 { animation-delay: 590ms; }
@keyframes wl-claw-dig {
  0%   { transform: scaleY(0); opacity: 0; }
  45%  { opacity: 1; }
  70%  { transform: scaleY(1.15); }
  100% { transform: scaleY(1); opacity: 1; }
}

.wl-mark.play .wl-wpad { animation: wl-wpad-press 460ms var(--ease-emphasized-decel, cubic-bezier(.05,.7,.1,1)) 940ms both; }
@keyframes wl-wpad-press {
  0%   { transform: translateY(-2.5px) scale(.55); opacity: 0; }
  55%  { transform: translateY(.4px) scale(1.07); opacity: 1; }
  78%  { transform: translateY(0) scale(.98); }
  100% { transform: none; opacity: 1; }
}

@keyframes wl-rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes wl-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes wl-breathe { 0%,100% { opacity: .5; transform: scale(1); } 50% { opacity: .85; transform: scale(1.06); } }
@keyframes wl-blink { 0%,45% { opacity: 1; } 50%,95% { opacity: .3; } }

/* honor both the OS preference and the shell's own data-motion setting */
@media (prefers-reduced-motion: reduce) {
  .wl-mark.play * { animation: none !important; }
  .wl-hero-mark, .wl-hero-glow, .wl-grid, .wl-maint-dot { animation: none !important; }
}
html[data-motion="off"] .wl-mark.play *,
html[data-motion="essential"] .wl-mark.play *,
html[data-motion="off"] .wl-hero-mark,
html[data-motion="essential"] .wl-hero-mark,
html[data-motion="off"] .wl-hero-glow,
html[data-motion="essential"] .wl-hero-glow,
html[data-motion="off"] .wl-grid,
html[data-motion="essential"] .wl-grid,
html[data-motion="off"] .wl-maint-dot,
html[data-motion="essential"] .wl-maint-dot {
  animation: none !important;
}

/* ---- nav ---------------------------------------------------------------- */

.wl-nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px;
  backdrop-filter: blur(16px);
  background: rgba(12,18,24,0.62);
  border-bottom: 1px solid var(--wl-hairline);
}

.wl-nav-brand { display: flex; align-items: flex-end; gap: 9px; }
.wl-nav-brand .wl-mark { width: 30px; height: 30px; color: var(--wl-ink); margin-bottom: -5px; display: block; overflow: visible; }
.wl-nav-word { font-family: var(--display); font-weight: 800; font-size: 19px; line-height: 0.82; letter-spacing: -0.01em; }
.wl-nav-word .wl-dot { color: var(--wl-moon); }

.wl-nav-links { display: flex; align-items: center; gap: 4px; }
.wl-nav-links a {
  padding: 8px 14px; border-radius: 9px; font-size: 14px; font-weight: 600;
  color: var(--wl-ink-2); transition: background .15s;
}
.wl-nav-links a:hover { background: rgba(255,255,255,0.05); }

/* ---- maintenance banner -------------------------------------------------- */

.wl-maint-banner {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 11px; background: rgba(230,184,85,0.1);
  border-bottom: 1px solid rgba(230,184,85,0.28);
  font-size: 13px; font-weight: 600; color: #e6c579;
}
.wl-maint-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--wl-beta); animation: wl-blink 1.4s infinite; }

/* ---- hero ---------------------------------------------------------------- */

.wl-hero {
  max-width: 1100px; margin: 0 auto; padding: 96px 32px 64px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}

.wl-hero-mark-wrap { position: relative; width: 132px; height: 132px; margin-bottom: 30px; }
.wl-hero-mark-wrap .wl-hero-mark { animation: wl-float 6s ease-in-out infinite; width: 100%; height: 100%; }
.wl-hero-glow {
  position: absolute; inset: -22px; border-radius: 50%;
  background: radial-gradient(circle, rgba(166,198,218,0.22), transparent 68%);
  animation: wl-breathe 5s ease-in-out infinite;
}
.wl-hero-mark-fg {
  position: relative; width: 100%; height: 100%; color: #eef4f8;
  filter: drop-shadow(0 6px 22px rgba(166,198,218,0.35));
}
.wl-hero-mark-fg .wl-mark { width: 100%; height: 100%; display: block; overflow: visible; }

.wl-kicker {
  font-size: 12px; font-weight: 600; letter-spacing: 0.32em; color: var(--wl-ink-faint);
  text-transform: uppercase; margin-bottom: 20px;
}
.wl-hero h1 {
  font-family: var(--display); font-weight: 800; font-size: 58px; line-height: 1.02;
  letter-spacing: -0.03em; margin: 0 0 20px; max-width: 15ch; text-wrap: balance;
}
.wl-hero p {
  font-size: 18px; line-height: 1.6; color: var(--wl-ink-muted); max-width: 52ch;
  margin: 0 0 34px; text-wrap: pretty;
}

.wl-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.wl-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px;
  border-radius: 11px; font-weight: 700; font-size: 15px; border: none; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.wl-btn-primary { background: var(--wl-moon); color: var(--wl-on-accent); }
.wl-btn-primary:hover { background: var(--wl-moon-hover); }
.wl-btn-outline {
  background: transparent; color: var(--wl-ink); font-weight: 600;
  border: 1px solid rgba(255,255,255,0.12);
}
.wl-btn-outline:hover { border-color: rgba(166,198,218,0.5); }

/* ---- product grid --------------------------------------------------------- */

.wl-products { max-width: 1100px; margin: 0 auto; padding: 24px 32px 40px; }
.wl-products-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  margin-bottom: 24px; flex-wrap: wrap;
}
.wl-products-head h2 { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -0.01em; margin: 0; }
.wl-products-head .wl-count { font-size: 13px; color: var(--wl-ink-faint); }

.wl-grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }

.wl-card {
  position: relative; padding: 24px; border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, var(--card-tint-1, rgba(166,198,218,0.09)), rgba(255,255,255,0.015));
  border: 1px solid var(--card-border, rgba(166,198,218,0.24));
  transition: border-color .15s;
}
.wl-card:hover { border-color: var(--card-border-hover, rgba(166,198,218,0.55)); }
.wl-card-glow {
  position: absolute; top: -40px; right: -40px; width: 130px; height: 130px; border-radius: 50%;
  background: radial-gradient(circle, var(--card-glow, rgba(166,198,218,0.22)), transparent 70%);
}
.wl-card-head { position: relative; display: flex; align-items: center; gap: 13px; margin-bottom: 16px; }
.wl-card-icon {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  background: var(--card-icon-bg, rgba(166,198,218,0.14));
  color: var(--card-accent, var(--wl-moon));
  display: flex; align-items: center; justify-content: center;
}
.wl-card-icon svg { width: 25px; height: 25px; display: block; }
.wl-card-title { flex: 1; min-width: 0; font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.1; }

.wl-status-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,0.05); font-size: 11px; font-weight: 700; color: var(--status-color, var(--wl-live));
  white-space: nowrap;
}
.wl-status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--status-color, var(--wl-live)); }

.wl-card-desc {
  position: relative; font-size: 14px; line-height: 1.55; color: var(--wl-ink-muted);
  margin: 0 0 16px; min-height: 63px;
}
.wl-card-tags { position: relative; display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.wl-tag {
  padding: 3px 9px; border-radius: 7px; font-size: 11px; font-weight: 600;
  background: var(--card-icon-bg, rgba(166,198,218,0.14)); color: var(--card-accent, var(--wl-moon));
}

.wl-card-link {
  position: relative; display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 700; color: var(--card-accent, var(--wl-moon)); transition: gap .15s;
}
.wl-card-link:hover { gap: 11px; }

.wl-card-offline {
  position: absolute; inset: 0; background: rgba(12,18,24,0.82); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center; border-radius: 18px;
}
.wl-card-offline span {
  padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.14);
  font-size: 13px; font-weight: 600; color: var(--wl-ink-2);
}

.wl-products-empty {
  padding: 40px; text-align: center; color: var(--wl-ink-faint); border-radius: 18px;
  border: 1px dashed var(--wl-border);
}

/* ---- platform strip -------------------------------------------------------- */

.wl-strip-wrap { max-width: 1100px; margin: 0 auto; padding: 40px 32px 20px; }
.wl-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px;
  padding: 30px; border-radius: 18px; background: var(--wl-surface-2); border: 1px solid var(--wl-hairline);
}
.wl-strip h3 { font-family: var(--display); font-weight: 700; font-size: 16px; margin: 0 0 6px; }
.wl-strip p { font-size: 13.5px; line-height: 1.55; color: var(--wl-ink-muted); margin: 0; }

/* ---- generic content pages (impressum / kontakt / adminlogin) -------------- */

.wl-page-narrow { max-width: 760px; margin: 0 auto; padding: 72px 32px 90px; }
.wl-page-kontakt { max-width: 620px; margin: 0 auto; padding: 72px 32px 90px; }
.wl-page-admin { max-width: 900px; margin: 0 auto; padding: 44px 32px 90px; }
.wl-page-login { max-width: 420px; margin: 0 auto; padding: 90px 32px; }

.wl-page-narrow h1, .wl-page-kontakt h1 {
  font-family: var(--display); font-weight: 800; font-size: 42px; letter-spacing: -0.02em; margin: 0 0 28px;
}
.wl-page-kontakt h1 { margin: 0 0 16px; }
.wl-page-narrow p, .wl-page-kontakt > p { font-size: 17px; line-height: 1.7; margin: 0 0 18px; }
.wl-page-narrow p:first-of-type { color: var(--wl-ink-2); }
.wl-page-narrow p:nth-of-type(2) { color: var(--wl-ink-muted); margin-bottom: 40px; }
.wl-page-kontakt > p { color: var(--wl-ink-muted); margin-bottom: 36px; }

.wl-panel { padding: 26px; border-radius: 16px; background: var(--wl-surface-2); border: 1px solid var(--wl-border); }
.wl-panel-title { font-family: var(--display); font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.wl-panel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; font-size: 14.5px; line-height: 1.6; color: var(--wl-ink-2); }
.wl-panel-label { color: var(--wl-ink-faint); font-size: 12px; margin-bottom: 4px; }
.wl-panel-footnote {
  margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--wl-border);
  font-size: 13px; line-height: 1.6; color: var(--wl-ink-faint-2);
}

/* ---- forms ------------------------------------------------------------------ */

.wl-form { display: flex; flex-direction: column; gap: 16px; }
.wl-field label { display: block; font-size: 13px; font-weight: 600; color: var(--wl-ink-muted); margin-bottom: 7px; }
.wl-field input, .wl-field textarea {
  width: 100%; padding: 13px 15px; border-radius: 11px; border: 1px solid rgba(255,255,255,0.11);
  background: rgba(255,255,255,0.03); color: var(--wl-ink); font-size: 15px; outline: none;
  font-family: inherit; transition: border-color .15s;
}
.wl-field input:focus, .wl-field textarea:focus { border-color: var(--wl-moon); }
.wl-field textarea { resize: vertical; }
.wl-field.wl-field-error input { border-color: rgba(232,136,136,0.6); }
.wl-form-error { font-size: 13px; color: var(--wl-error); font-weight: 600; }

.wl-form-submit { align-self: flex-start; }

.wl-success-card {
  padding: 40px 28px; border-radius: 16px; background: rgba(125,154,109,0.1);
  border: 1px solid rgba(125,154,109,0.3); text-align: center;
}
.wl-success-icon {
  width: 46px; height: 46px; margin: 0 auto 14px; border-radius: 50%;
  background: rgba(125,154,109,0.2); display: flex; align-items: center; justify-content: center;
}
.wl-success-card h2 { font-family: var(--display); font-weight: 700; font-size: 20px; margin: 0 0 6px; }
.wl-success-card p { font-size: 15px; color: var(--wl-ink-muted); margin: 0; }

.wl-direct-line { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--wl-border); font-size: 14px; color: var(--wl-ink-muted); }
.wl-direct-line a { color: var(--wl-moon); font-weight: 600; }
.wl-direct-line .wl-direct-label { color: var(--wl-ink-faint); }

/* ---- admin login ------------------------------------------------------------- */

.wl-login-card {
  padding: 36px 30px; border-radius: 20px; background: var(--wl-surface); border: 1px solid rgba(255,255,255,0.09);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.7);
}
.wl-login-head { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 26px; }
.wl-login-icon {
  width: 52px; height: 52px; border-radius: 14px; background: rgba(166,198,218,0.12);
  border: 1px solid rgba(166,198,218,0.25); display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.wl-login-head h1 { font-family: var(--display); font-weight: 700; font-size: 22px; margin: 0; }
.wl-login-sub { font-size: 13.5px; color: var(--wl-ink-faint-2); margin-top: 6px; }

.wl-login-footnote {
  margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--wl-hairline);
  display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--wl-ink-faint);
}

/* ---- admin dashboard ---------------------------------------------------------- */

.wl-admin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.wl-admin-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 11px; border-radius: 999px;
  background: rgba(121,211,143,0.12); font-size: 12px; font-weight: 700; color: var(--wl-live); margin-bottom: 12px;
}
.wl-admin-pill .wl-status-dot { background: var(--wl-live); }
.wl-admin-head h1 { font-family: var(--display); font-weight: 800; font-size: 34px; letter-spacing: -0.02em; margin: 0; }

.wl-btn-ghost {
  padding: 10px 18px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03); color: var(--wl-ink-2); font-weight: 600; font-size: 14px; transition: border-color .15s, color .15s;
}
.wl-btn-ghost:hover { border-color: rgba(232,136,136,0.5); color: var(--wl-error); }

.wl-stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 28px 0; }
.wl-stat { padding: 20px; border-radius: 14px; background: var(--wl-surface); border: 1px solid var(--wl-border); }
.wl-stat-value { font-family: var(--display); font-weight: 800; font-size: 30px; }
.wl-stat-value .wl-stat-total { font-size: 16px; color: var(--wl-ink-faint); }
.wl-stat-label { font-size: 12.5px; color: var(--wl-ink-faint-2); margin-top: 4px; }

.wl-section-title { font-family: var(--display); font-weight: 700; font-size: 16px; margin: 8px 0 14px; color: var(--wl-ink-2); }

.wl-row-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 34px; }
.wl-row {
  display: flex; align-items: center; gap: 14px; padding: 15px 18px; border-radius: 13px;
  background: var(--wl-surface); border: 1px solid var(--wl-border);
}
.wl-row-icon {
  width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,0.04);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.wl-row-icon svg { width: 22px; height: 22px; display: block; }
.wl-row-name { font-weight: 700; font-size: 15px; }
.wl-row-host { font-size: 12.5px; color: var(--wl-ink-faint-2); }

.wl-switch {
  position: relative; width: 46px; height: 26px; border-radius: 999px; border: none; cursor: pointer;
  flex: none; background: rgba(255,255,255,0.14); transition: background .2s;
}
.wl-switch[data-on="true"] { background: var(--wl-live); }
.wl-switch .wl-knob {
  position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; transition: left .2s;
}
.wl-switch[data-on="true"] .wl-knob { left: 23px; }

.wl-proto-note {
  margin-top: 26px; padding: 16px 18px; border-radius: 13px; background: rgba(166,198,218,0.06);
  border: 1px solid rgba(166,198,218,0.15); font-size: 12.5px; line-height: 1.6; color: var(--wl-ink-faint-2);
}
.wl-proto-note strong { color: var(--wl-moon); }

/* ---- footer --------------------------------------------------------------- */

.wl-footer {
  max-width: 1100px; margin: 0 auto; padding: 40px 32px 56px; border-top: 1px solid var(--wl-hairline);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.wl-footer-brand { display: flex; align-items: center; gap: 11px; }
.wl-footer-brand .wl-mark { width: 24px; height: 24px; color: var(--wl-ink-faint-2); overflow: visible; display: block; }
.wl-footer-copy { font-size: 13px; color: var(--wl-ink-faint); }
.wl-footer-links { display: flex; gap: 20px; font-size: 13px; color: var(--wl-ink-faint-2); }
.wl-footer-links a:hover { color: var(--wl-ink-2); }

/* ---- responsive ------------------------------------------------------------- */

@media (max-width: 640px) {
  .wl-nav { padding: 14px 18px; }
  .wl-nav-links a { padding: 8px 10px; font-size: 13px; }
  .wl-hero h1 { font-size: 40px; }
  .wl-hero-mark-wrap { width: 96px; height: 96px; }
}
