/*
 * Resolva Desk product website ("neon" design, the owner's final choice).
 * Dark-first design, deliberately single-theme. Static: no JavaScript, no
 * external resources, no inline styles -- compatible with the website CSP in
 * deploy/production/Caddyfile. All motion is CSS and switches off completely
 * under prefers-reduced-motion.
 *
 * Palette taken from the owner's reference image: cyan -> electric blue ->
 * violet -> magenta over a deep plum-black. The header logo is
 * resolva-desk-logo-on-dark.png: the brand logo with unchanged geometry and
 * blue mark, only the wordmark recoloured for the dark background.
 */
:root {
  color-scheme: dark;
  --night: #0a0816;
  --night-2: #0e0b20;
  --ink: #eceaff;
  --ink-soft: #cdc9ea;
  --muted: #aca8cc;
  --line: rgba(176, 164, 255, 0.16);
  --line-strong: rgba(190, 180, 255, 0.32);
  --glass: rgba(255, 255, 255, 0.045);
  --glass-strong: rgba(255, 255, 255, 0.075);
  --blue: #4d6bff;
  --purple: #8f3dff;
  --cyan: #33d1f0;
  --magenta: #e040d8;
  --btn-a: #3a4ff0;
  --btn-b: #7c2ee8;
  --accent-text: linear-gradient(95deg, #7b95ff 0%, #b27bff 50%, #f07ae6 100%);
  --todo-bg: rgba(255, 196, 0, 0.12);
  --todo-line: #d9ae3a;
  --todo-ink: #ffd976;
  --radius: 14px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--night);
}

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: "Segoe UI Variable Display", "Segoe UI Variable", "Segoe UI", ui-sans-serif, system-ui, -apple-system, "SF Pro Display", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--cyan);
  text-decoration-color: rgba(51, 209, 240, 0.45);
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}

a:hover {
  color: #7ee3f7;
  text-decoration-color: currentColor;
}

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

h1,
h2,
h3 {
  margin: 0 0 0.75rem;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

p {
  margin: 0 0 1rem;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -56px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--night);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
  color: var(--night);
}

/* --- Header: translucent glass bar, logo left, "Einloggen" right ------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 8, 22, 0.94);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header {
    background: rgba(10, 8, 22, 0.62);
    -webkit-backdrop-filter: saturate(150%) blur(14px);
    backdrop-filter: saturate(150%) blur(14px);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  flex-shrink: 1;
  min-width: 0;
  border-radius: 8px;
}

.brand img {
  display: block;
  width: 150px;
}

/* --- Buttons ----------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 9px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 650;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.btn-primary {
  background: linear-gradient(100deg, var(--btn-a), var(--btn-b));
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 26px -12px rgba(110, 90, 255, 0.85);
}

.btn-primary:hover {
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 10px 34px -10px rgba(143, 61, 255, 0.95), 0 0 0 1px rgba(160, 140, 255, 0.35);
}

.btn-secondary {
  background: var(--glass);
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-secondary:hover {
  color: var(--ink);
  border-color: rgba(51, 209, 240, 0.6);
  background: var(--glass-strong);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 13px 24px;
  font-size: 1rem;
}

/* --- Hero ------------------------------------------------------------------ */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 56px 0 72px;
}

/* The one large gradient on the page: a static "aurora" following the
   reference image's diagonal (cyan lower left -> blue -> violet -> magenta),
   fading into the night background. No continuous motion. */
.hero::before {
  content: "";
  position: absolute;
  inset: -30% -20% -10% -20%;
  z-index: -2;
  background:
    radial-gradient(34% 40% at 14% 84%, rgba(51, 209, 240, 0.42), transparent 70%),
    radial-gradient(40% 46% at 32% 56%, rgba(77, 107, 255, 0.42), transparent 72%),
    radial-gradient(36% 44% at 56% 32%, rgba(143, 61, 255, 0.40), transparent 72%),
    radial-gradient(30% 40% at 80% 22%, rgba(120, 30, 110, 0.38), transparent 72%),
    radial-gradient(34% 42% at 86% 78%, rgba(224, 64, 216, 0.36), transparent 70%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 160px;
  z-index: -1;
  background: linear-gradient(180deg, transparent, var(--night));
}

.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--cyan);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.hero h1 {
  max-width: 17ch;
  margin-bottom: 1.25rem;
  font-size: 2.35rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.04;
}

/* Gradient on one phrase only. Every stop keeps >= 4.5:1 on the background. */
.grad {
  color: #b27bff;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .grad {
    background: var(--accent-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
  }
}

@media (forced-colors: active) {
  .grad {
    background: none;
    color: CanvasText;
  }
}

.lead {
  max-width: 40rem;
  color: var(--ink-soft);
  font-size: 1.125rem;
  line-height: 1.7;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* Decision panel: the four real outcomes, not invented data. */
.outcomes {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
  box-shadow: 0 30px 80px -40px rgba(20, 10, 60, 0.9);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .outcomes {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
}

.outcomes-title {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.outcomes ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.outcomes li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(10, 8, 22, 0.45);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.35;
}

.dot {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  border-radius: 50%;
}

.dot-blue { background: var(--blue); box-shadow: 0 0 10px rgba(77, 107, 255, 0.8); }
.dot-purple { background: var(--purple); box-shadow: 0 0 10px rgba(143, 61, 255, 0.8); }
.dot-magenta { background: var(--magenta); box-shadow: 0 0 10px rgba(224, 64, 216, 0.75); }
.dot-cyan { background: var(--cyan); box-shadow: 0 0 10px rgba(51, 209, 240, 0.75); }

.outcomes-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

/* --- Sections -------------------------------------------------------------- */

.section {
  position: relative;
  isolation: isolate;
  padding: 64px 0;
}

/* Very soft colour washes carry the palette through the page -- static,
   low contrast, behind the content. */
.wash-left::before,
.wash-right::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 10%;
  width: 60%;
  height: 80%;
  pointer-events: none;
}

/* Kept inside the page bounds: nothing may widen the page horizontally. */
.wash-left::before {
  left: 0;
  background: radial-gradient(closest-side, rgba(77, 107, 255, 0.16), rgba(143, 61, 255, 0.08) 55%, transparent);
}

.wash-right::before {
  right: 0;
  background: radial-gradient(closest-side, rgba(51, 209, 240, 0.10), rgba(224, 64, 216, 0.08) 55%, transparent);
}

.nowrap {
  white-space: nowrap;
}

.section-head {
  max-width: 44rem;
  margin-bottom: 36px;
}

.section h2 {
  font-size: 1.875rem;
  font-weight: 720;
}

.section-lead {
  margin: 0;
  color: var(--ink-soft);
}

.card,
.steps li {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: rgba(18, 14, 38, 0.55);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.card:hover,
.steps li:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background-color: rgba(26, 20, 54, 0.65);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 18px 40px -24px rgba(110, 90, 255, 0.55);
}

.steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  padding: 24px 24px 24px 80px;
  counter-increment: step;
}

/* Step numbers: the second (and last) glowing element on the page. */
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 24px;
  top: 22px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #ffffff;
  font-weight: 750;
  box-shadow: 0 0 22px -4px rgba(143, 61, 255, 0.85);
}

.steps h3,
.card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1875rem;
  font-weight: 680;
}

.steps p,
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.cards {
  display: grid;
  gap: 16px;
}

.card {
  padding: 24px;
}

.card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(123, 149, 255, 0.9), rgba(224, 64, 216, 0.7), transparent);
}

.icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border: 1px solid rgba(123, 149, 255, 0.28);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(77, 107, 255, 0.20), rgba(143, 61, 255, 0.14));
  color: #b4c2ff;
}

.icon svg {
  width: 22px;
  height: 22px;
}

/* --- Contact --------------------------------------------------------------- */

.contact-section {
  padding-bottom: 88px;
}

.contact-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 36px 24px;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: linear-gradient(150deg, rgba(77, 107, 255, 0.14), rgba(143, 61, 255, 0.10) 50%, rgba(224, 64, 216, 0.10));
}

.contact-panel::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 70%;
  height: 160%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(224, 64, 216, 0.22), transparent);
}

.contact {
  max-width: 44rem;
}

.contact h2 {
  font-size: 1.875rem;
}

.contact p {
  color: var(--ink-soft);
}

.muted {
  color: var(--muted);
}

/* --- Legal / text pages ---------------------------------------------------- */

.page {
  position: relative;
  isolation: isolate;
  padding: 40px 0 72px;
}

.page::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 420px;
  z-index: -1;
  background:
    radial-gradient(40% 70% at 10% 0%, rgba(77, 107, 255, 0.20), transparent 70%),
    radial-gradient(40% 70% at 70% 0%, rgba(143, 61, 255, 0.16), transparent 70%);
}

.prose {
  max-width: 48rem;
  padding: 28px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
}

.prose h1 {
  font-size: 1.75rem;
  font-weight: 750;
}

.prose h2 {
  margin-top: 2rem;
  font-size: 1.1875rem;
  font-weight: 680;
}

.prose p,
.prose li {
  color: var(--ink-soft);
  overflow-wrap: break-word;
}

.big-404 {
  display: block;
  margin-bottom: 8px;
  font-size: 4.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

/* --- Footer ------------------------------------------------------------------ */

.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  background: var(--night-2);
  color: var(--muted);
  font-size: 0.875rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-inner p {
  margin: 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/*
 * Unfinished content (the double-bracket OFFEN placeholder marker) BLOCKS
 * publication -- see deploy/production/README.md ("Product website"). Do not
 * write the literal marker in this comment: the publication gate greps for it.
 */
.todo {
  padding: 1px 5px;
  border: 1px dashed var(--todo-line);
  border-radius: 5px;
  background: var(--todo-bg);
  color: var(--todo-ink);
  font-weight: 600;
}

.todo-block {
  display: block;
  padding: 12px 16px;
  border: 1px dashed var(--todo-line);
  border-radius: 10px;
  background: var(--todo-bg);
  color: var(--todo-ink);
  font-weight: 600;
}

/* --- Larger screens ------------------------------------------------------------ */

@media (min-width: 640px) {
  .wrap {
    padding: 0 28px;
  }

  .header-inner {
    min-height: 72px;
  }

  .brand img {
    width: 184px;
  }

  .hero {
    padding: 80px 0 96px;
  }

  .hero h1 {
    font-size: 3.25rem;
  }

  .section {
    padding: 88px 0;
  }

  .section h2,
  .contact h2 {
    font-size: 2.375rem;
  }

  .steps,
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-panel {
    padding: 48px;
  }

  .prose {
    padding: 40px 44px;
  }

  .prose h1 {
    font-size: 2.25rem;
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding: 104px 0 120px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: 56px;
  }

  .hero h1 {
    font-size: 4rem;
  }

  .cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .section h2,
  .contact h2 {
    font-size: 2.75rem;
  }
}

/* --- Motion: deliberate, CSS only, fully off under reduced motion ------------ */

@media (prefers-reduced-motion: no-preference) {
  /* One-time entrance for the hero (about half a second). Uses the separate
     `translate` property so hover `transform`s keep working. */
  @keyframes rise {
    from {
      opacity: 0;
      translate: 0 14px;
    }
    to {
      opacity: 1;
      translate: none;
    }
  }

  .load {
    animation: rise 0.6s var(--ease) both;
  }

  .load-2 { animation-delay: 0.08s; }
  .load-3 { animation-delay: 0.16s; }
  .load-4 { animation-delay: 0.24s; }

  /* Gentle reveal while scrolling, driven by the element's own visibility --
     never by taking over the scroll. Starts at 40 % opacity, so text is never
     invisible; browsers without scroll-driven animations show it as is. */
  @supports (animation-timeline: view()) {
    @keyframes reveal {
      from {
        opacity: 0.4;
        translate: 0 22px;
      }
      to {
        opacity: 1;
        translate: none;
      }
    }

    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 30%;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .card:hover,
  .steps li:hover,
  .btn:hover {
    transform: none;
  }
}
