/* Shared base of every page since the dark redesign (Nov 2026): tokens, type, masthead with the glass navigation,
   buttons, questions and the footer. The look follows a dark portfolio poster: near-black stage with a dot matrix,
   Poppins throughout, headings in brushed silver, gold only for small accents (medal, sticker, focus).
   Home page specifics stay inline in index.html, subpage specifics in page.css. */
:root {
  --bg: #0A0A0B; --bg-raised: #141416; --bg-sunk: #050506;
  --ink: #F4F4F5; --ink-soft: #A6A6AB; --ink-faint: #8A8A90;
  --line: rgb(255 255 255 / .1); --line-strong: rgb(255 255 255 / .24);
  --glass: rgb(255 255 255 / .05); --glass-hi: rgb(255 255 255 / .12);
  --gold: #FFC52E; --gold-deep: #E59A00; --gold-ink: #1C1400;
  --cobalt: #315CFF;
  --sans: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, 0, 0, 1);
  --spring: cubic-bezier(.34, 1.3, .5, 1);
  --margin: 20px;
  color-scheme: dark;
}
@media (min-width: 768px) { :root { --margin: 32px; } }
@media (min-width: 1200px) { :root { --margin: 48px; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--gold); color: var(--gold-ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
/* Small labels: Poppins in spaced capitals, never a second typeface. */
.mono { font: 500 12px/1.45 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
/* Source text kept for screen readers while an aria-hidden copy animates (assets/js/ux/env.js). */
.ux-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Brushed silver for headings: a cool light from the top with a bright spot, after the poster's big word. The sheen
   that moves across it (.silver--sheen) follows "Text Gradient" (cnippet-dev, 21st.dev): one gradient layer whose
   position loops, clipped to the letters. Without background-clip the text stays plain light grey. */
.silver { color: #D8D8DC; }
/* A background clipped to the text is only painted inside the element's box. Negative tracking pulls the box in past
   the ink of the last letter (the right edge of a round O), and a tight line height cuts the descenders (the g of
   „Webdesign“). Padding at the end and at the bottom keeps every glyph painted; negative margins give the room back,
   so the layout does not move. A rule that sets margins on a silver element has to carry these with it (.statement p). */
.silver { padding: .04em .1em .24em 0; margin-inline-end: -.1em; margin-block: -.04em -.24em; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .silver {
    background-image: radial-gradient(48% 130% at 58% 0%, rgb(255 255 255 / .95) 0%, rgb(255 255 255 / 0) 62%),
      linear-gradient(180deg, #ECECEE 0%, #B4B4B9 52%, #7C7C82 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  /* Text over several lines: the gradient repeats per line instead of fading the last lines to grey. */
  .silver--lines { background-size: 100% 1lh; }
  .silver--sheen {
    background-image: linear-gradient(105deg, rgb(255 255 255 / 0) 42%, rgb(255 255 255 / .7) 50%, rgb(255 255 255 / 0) 58%),
      radial-gradient(48% 130% at 58% 0%, rgb(255 255 255 / .95) 0%, rgb(255 255 255 / 0) 62%),
      linear-gradient(180deg, #ECECEE 0%, #B4B4B9 52%, #7C7C82 100%);
    background-size: 260% 100%, 100% 100%, 100% 100%;
    background-repeat: no-repeat;
    animation: silver-sheen 2.6s cubic-bezier(.45, 0, .2, 1) .9s both;
  }
  /* The light runs once after loading and again on hover; it never loops, so nothing keeps moving on its own. */
  .silver--sheen:hover { animation-name: silver-sheen-again; }
}
@keyframes silver-sheen { from { background-position: 140% 0, 0 0, 0 0; } to { background-position: -40% 0, 0 0, 0 0; } }
@keyframes silver-sheen-again { from { background-position: 140% 0, 0 0, 0 0; } to { background-position: -40% 0, 0 0, 0 0; } }

/* Dot matrix behind the top of a section: "Dot Matrix" (bagherifarzad, 21st.dev), a radial-gradient dot grid with a
   radial fade mask, ported to plain CSS. Sizes as on the poster: large, dim dots that fade towards the middle. */
.dots { position: absolute; inset: 0 0 auto; height: min(78vh, 760px); z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle, #222225 calc(var(--dot, 4px)), transparent calc(var(--dot, 4px) + .8px));
  background-size: var(--gap, 34px) var(--gap, 34px); background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 85% 80% at 62% 0%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 85% 80% at 62% 0%, #000 20%, transparent 78%); }
@media (max-width: 600px) { .dots { --dot: 3px; --gap: 24px; } }

/* ---------- Masthead ---------- */
.mast { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 22px var(--margin) 14px; pointer-events: none; transition: background-color .25s var(--ease), box-shadow .25s var(--ease); }
.mast > * { pointer-events: auto; }
.mast__logo { justify-self: start; display: block; transition: opacity .3s var(--ease); }
.mast__logo img { height: 18px; width: auto; }
.mast__right { justify-self: end; display: flex; gap: 12px; align-items: center; }

/* Glass navigation: "Floating Glassmorphic Navbar with Morphing Pill Indicator" (themeocean, 21st.dev), ported
   without React (assets/js/ux/glass-nav.js). Over the hero the links float on the page as on the poster; past it the
   bar turns to frosted glass. One glass pill slides to the link under the pointer and back to the current one. */
.glassnav { position: relative; display: flex; align-items: center; gap: clamp(4px, 1.2vw, 18px); padding: 6px; border-radius: 18px;
  border: 1px solid transparent; transition: background-color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease); }
.glassnav a { position: relative; z-index: 1; display: block; padding: 13px clamp(14px, 1.9vw, 30px); border-radius: 12px;
  font: 500 clamp(14px, 1.1vw, 17px)/1 var(--sans); letter-spacing: .005em; color: var(--ink-faint); text-decoration: none; white-space: nowrap; transition: color .25s var(--ease); }
.glassnav a:hover, .glassnav a.is-lit { color: var(--ink); }
.glassnav__pill, .glassnav:not([data-ready]) a[aria-current="page"] {
  border: 1px solid rgb(255 255 255 / .2); border-radius: 12px;
  background: linear-gradient(180deg, rgb(255 255 255 / .13) 0%, rgb(255 255 255 / .03) 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .22), inset 0 -1px 0 rgb(0 0 0 / .4), 0 10px 24px -10px rgb(0 0 0 / .9); }
.glassnav:not([data-ready]) a[aria-current="page"] { color: var(--ink); }
.glassnav__pill { position: absolute; z-index: 0; left: 0; top: 6px; bottom: 6px; width: var(--w, 0); opacity: 0;
  transform: translateX(var(--x, 0)); pointer-events: none; }
.glassnav[data-ready] .glassnav__pill.is-on { opacity: 1; }
.glassnav[data-moving] .glassnav__pill { transition: transform .5s var(--spring), width .5s var(--spring), opacity .2s var(--ease); }
/* A thin light along the top edge of the bar, as on the original. */
.glassnav::before { content: ""; position: absolute; left: 28px; right: 28px; top: -1px; height: 1px; opacity: 0; transition: opacity .3s var(--ease);
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / .35), transparent); }
html.mast-solid .glassnav, html.mast-dark .glassnav { background: rgb(22 22 24 / .6); border-color: var(--line);
  box-shadow: 0 14px 34px -18px rgb(0 0 0 / .9); }
html.mast-solid .glassnav::before, html.mast-dark .glassnav::before { opacity: 1; }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  html.mast-solid .glassnav, html.mast-dark .glassnav { -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); }
}
@media (max-width: 1100px) { .glassnav a { padding-inline: 14px; } }
@media (max-width: 760px) { .glassnav { display: none; } .mast { grid-template-columns: 1fr auto; padding-top: 16px; padding-bottom: 12px; } }

/* Past the hero the masthead gets a dark band, so headings never run through the logo (assets/js/ux/mast-tone.js). */
html.mast-solid .mast { background: rgb(10 10 11 / .82); box-shadow: inset 0 -1px 0 var(--line); }
/* Over the footer: the footer's own black. Same specificity as above, later rule. */
html.mast-dark .mast { background: var(--bg-sunk); box-shadow: none; }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  html.mast-solid .mast { -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
  html.mast-solid .glassnav { background: rgb(28 28 31 / .5); }
}

/* ---------- Buttons ---------- */
/* Primary: "Metallic Button" (starc007, 21st.dev) in CSS. A chrome rim (on hover the border box drifts), a dark face
   and a light that sweeps across on hover. The original drifts the rim forever; here it only moves on hover, so the
   page has no endless motion. */
.btn { position: relative; isolation: isolate; white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px;
  border-radius: 12px; font: 500 15px/1 var(--sans); letter-spacing: .005em; text-decoration: none; border: 1px solid transparent;
  transition: transform .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease); }
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(.97); }
.btn--primary { overflow: hidden; border: 2px solid transparent; color: var(--ink);
  background: linear-gradient(180deg, #1C1C1F, #0E0E10) padding-box,
    linear-gradient(105deg, #111 0%, #737373 14%, #FAFAFA 26%, #525252 38%, #0A0A0A 50%, #A3A3A3 64%, #FFF 75%, #404040 87%, #111 100%) border-box;
  background-size: 100% 100%, 136% 100%; background-position: 0 0, 0 0;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .2), 0 10px 26px -10px rgb(0 0 0 / .8);
  transition: background-position 1.6s cubic-bezier(.45, 0, .2, 1), transform .2s var(--ease); }
.btn--primary:hover { background-position: 0 0, 100% 0; }
.btn--primary::after { content: ""; position: absolute; z-index: -1; inset: 0 auto 0 -60%; width: 52%; transform: skewX(-12deg);
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / .28) 48%, transparent); filter: blur(3px); opacity: 0; }
.btn--primary:hover::after { animation: btn-shimmer 1.4s cubic-bezier(.45, 0, .2, 1); }
@keyframes btn-shimmer { 0% { left: -60%; opacity: .9; } 100% { left: 130%; opacity: .9; } }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: var(--glass); }
.btn--ghost:hover { border-color: rgb(255 255 255 / .5); background: var(--glass-hi); }
.btn--small { height: 40px; padding: 0 16px; font-size: 14px; }
.hero__ctas { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Questions (native details rows) ---------- */
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; cursor: pointer; list-style: none;
  font: 500 clamp(18px, 1.9vw, 28px)/1.25 var(--sans); letter-spacing: -.015em; color: var(--ink); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary i { position: relative; flex: none; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line-strong); transition: border-color .2s, background-color .2s; }
.faq__item summary i::before, .faq__item summary i::after { content: ""; position: absolute; left: 10px; right: 10px; top: 15px; height: 0;
  border-top: 2px solid currentColor; transition: transform .25s var(--ease); }
.faq__item summary i::after { transform: rotate(90deg); }
.faq__item[open] summary i::after { transform: rotate(0deg); }
.faq__item summary:hover i { border-color: var(--gold); color: var(--gold); }
.faq__item p { margin: 0 0 24px; max-width: 46em; color: var(--ink-soft); font-size: 17px; line-height: 1.65; }
.faq__item p a { color: var(--ink); text-underline-offset: 3px; }
.faq__item p a:hover { color: var(--gold); }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 5; isolation: isolate; overflow: clip; background: var(--bg-sunk); color: var(--ink); padding: 96px var(--margin) 28px;
  border-top: 1px solid var(--line); }
.footer .dots { height: 420px; -webkit-mask-image: radial-gradient(ellipse 70% 90% at 50% 0%, #000 10%, transparent 75%); mask-image: radial-gradient(ellipse 70% 90% at 50% 0%, #000 10%, transparent 75%); }
.footer__main { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 48px; max-width: 1440px; }
.footer h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; font: 500 12px/1 var(--sans); text-transform: uppercase; letter-spacing: .16em; color: var(--ink-soft); }
.footer h3::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--gold); flex: none; }
.footer p { margin: 0 0 12px; color: var(--ink-soft); font-size: 15px; }
.footer p a { color: var(--ink); text-underline-offset: 3px; }
.footer p.footer__guides { margin-top: 24px; }
.footer p a:hover { color: var(--gold); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { text-decoration: none; color: var(--ink); font-size: 17px; }
.footer ul a:hover, .footer ul a[aria-current] { text-decoration: underline; text-underline-offset: 4px; }
.footer p.big { margin: 0 0 22px; font-weight: 600; font-size: clamp(26px, 2.6vw, 40px); letter-spacing: -.025em; line-height: 1.1; text-wrap: balance; }
.footer .hero__ctas { flex-direction: column; align-items: flex-start; }
.footer__base { margin-top: 72px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; color: var(--ink-faint); }
.footer__base img { height: 18px; width: auto; }
.footer__base nav { display: flex; gap: 20px; }
.footer__base nav a { text-decoration: none; }
@media (max-width: 600px) { .footer__main { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .silver--sheen, .btn--primary, .btn--primary:hover::after { animation: none; }
  .mast, .mast__logo, .glassnav, .glassnav::before, .glassnav a, .glassnav[data-moving] .glassnav__pill, .btn, .faq__item summary i, .faq__item summary i::before, .faq__item summary i::after { transition: none; }
}
