/* ==========================================================================
   DME Register — Design System
   Dark Swiss private-banking aesthetic · "precision instrument"
   ========================================================================== */

/* ---------- Fonts (self-hosted, no third-party requests) ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --bg:        #0B0D12;
  --panel:     #0E1116;
  --panel-2:   #10141A;
  --raised:    #1E232C;
  --hairline:  #1B1F27;
  --border:    #2B313B;

  --text:      #EEEDE9;
  --body:      #9A9EA6;
  --muted:     #8B8F98;

  --champ:     #D9C08A;
  --champ-2:   #8E7F5E;
  --champ-3:   #4A4739;
  --mint:      #4FD19A;

  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
  --font:      'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono:      'SFMono-Regular', ui-monospace, 'Cascadia Mono', Consolas, 'Liberation Mono', monospace;

  --wrap:      1120px;
  --radius:    6px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  font-variant-numeric: tabular-nums lining-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 {
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin: 0 0 16px;
}
h1 { font-size: clamp(29px, 4vw, 44px); letter-spacing: -1px; }
h2 { font-size: clamp(23px, 3vw, 32px); letter-spacing: -0.7px; margin-top: 56px; }
h3 { font-size: 18px; margin-top: 36px; }
p { margin: 0 0 16px; max-width: 72ch; }
a { color: var(--champ); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
strong { color: var(--text); font-weight: 600; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }
::selection { background: var(--champ); color: #0B0D12; }
:focus-visible { outline: 2px solid var(--champ); outline-offset: 2px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Mono caps (column headers, statuses, article refs, Stand) ---------- */
.mono-caps {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.stand {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--champ-2);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 3px 8px;
  display: inline-block;
}
.artref {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--champ);
  white-space: nowrap;
}

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 13, 18, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.site-head .wrap {
  display: flex; align-items: center; gap: 28px;
  height: 60px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); font-weight: 600; font-size: 15px; letter-spacing: -0.2px;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand svg { display: block; }
.main-nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.main-nav a {
  color: var(--body); font-size: 13px; padding: 6px 10px;
  border-radius: 4px; position: relative;
  transition: color 180ms var(--ease);
}
.main-nav a:hover { color: var(--text); text-decoration: none; }
.main-nav a::after {
  content: ''; position: absolute; left: 10px; right: 10px; bottom: 2px;
  height: 1px; background: var(--champ);
  transform: scaleX(0); transform-origin: left;
  transition: transform 180ms var(--ease);
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--text); }
.lang-sw { display: flex; gap: 2px; margin-left: 12px; border: 1px solid var(--border); border-radius: 4px; padding: 2px; }
.lang-sw a {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
  color: var(--muted); padding: 3px 7px; border-radius: 3px;
}
.lang-sw a:hover { color: var(--text); text-decoration: none; }
.lang-sw a[aria-current="true"] { background: var(--raised); color: var(--champ); }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 72px; }
.hero .kicker { margin-bottom: 20px; }
.hero p.lead { font-size: 17px; color: var(--body); max-width: 62ch; margin-bottom: 40px; }
.hero-sub { font-size: 13px; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-size: 13px; font-weight: 500;
  padding: 11px 20px; border-radius: var(--radius);
  border: 1px solid var(--border); color: var(--text);
  background: var(--raised);
  transition: transform 180ms var(--ease), border-color 180ms var(--ease);
}
.btn:hover { text-decoration: none; border-color: var(--champ-2); transform: translateY(-1px); }
.btn--primary { background: var(--champ); border-color: var(--champ); color: #0B0D12; font-weight: 600; }
.btn--primary:hover { background: #e4cd9c; border-color: #e4cd9c; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0; }

/* ---------- Ownership band (signature element) ---------- */
.band-block { margin: 40px 0; }
.band-caption {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 10px; gap: 16px; flex-wrap: wrap;
}
.band {
  display: flex; height: 52px; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border);
  background: var(--panel);
}
.band-seg {
  width: var(--w);
  background: var(--c);
  display: flex; align-items: center; justify-content: center;
  color: var(--tc, #0B0D12);
  font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
  transform: scaleX(0); transform-origin: left center;
  transition: transform 600ms var(--ease);
  transition-delay: calc(var(--i) * 120ms);
  min-width: 0; overflow: hidden; white-space: nowrap;
}
.band.is-in .band-seg { transform: scaleX(1); }
.band-seg span {
  opacity: 0;
  transition: opacity 300ms var(--ease);
  transition-delay: calc(var(--i) * 120ms + 450ms);
  padding: 0 4px;
}
.band.is-in .band-seg span { opacity: 1; }
.band-seg--sm span { display: none; }
.band-legend {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  margin-top: 12px; padding: 0; list-style: none;
  font-size: 12px; color: var(--muted);
}
.band-legend li { display: flex; align-items: center; gap: 7px; margin: 0; }
.band-legend .dot { width: 10px; height: 10px; border-radius: 2px; background: var(--c); flex: none; }
.band-legend .pct { color: var(--body); font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .band-seg, .band-seg span { transition: none; transform: scaleX(1); opacity: 1; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- Sections ---------- */
.section { padding: 64px 0; border-top: 1px solid var(--hairline); }
.section--flush { padding-top: 0; border-top: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .main-nav { display: none; }
}

/* ---------- Panels / cards ---------- */
.panel {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 28px;
}
.panel--raised { background: var(--panel-2); border-color: var(--border); }
.card {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 24px;
  transition: transform 300ms var(--ease), border-color 300ms var(--ease);
}
.card:hover { transform: translateY(-2px); border-color: var(--border); }
.card h3 { margin-top: 0; font-size: 16px; }
.card p { font-size: 13.5px; margin-bottom: 0; }

/* ---------- Product mock windows (DOM mocks, no images) ---------- */
.mock {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  margin: 32px 0;
}
.mock-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-bottom: 1px solid var(--hairline);
  background: var(--panel);
}
.mock-bar .d { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.mock-bar .mock-title {
  margin-left: 10px; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.mock-body { padding: 20px; }
.mock-body .mock-label { margin-bottom: 12px; }

/* GV panel gets the single warm gradient wash of the site */
.mock--gv .mock-body {
  background:
    linear-gradient(135deg, rgba(217, 192, 138, 0.07), rgba(217, 192, 138, 0) 55%),
    var(--panel-2);
}

/* ---------- Tables (primary component) ---------- */
.tbl-wrap { overflow-x: auto; margin: 24px 0; border: 1px solid var(--hairline); border-radius: 8px; background: var(--panel); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl caption {
  text-align: left; padding: 12px 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--hairline);
}
.tbl th {
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); text-align: left;
  padding: 13px; border-bottom: 1px solid var(--hairline);
  white-space: nowrap;
}
.tbl td {
  padding: 13px; color: var(--body);
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl td.strong { color: var(--text); }
.tbl tbody tr { transition: background 180ms var(--ease); }
.tbl tbody tr:hover { background: rgba(30, 35, 44, 0.45); }

/* ---------- Status chips ---------- */
.chip {
  display: inline-block;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; white-space: nowrap;
  color: var(--muted);
  border: 1px solid var(--border); border-radius: 3px;
  padding: 3px 7px; background: transparent;
}
.chip--ok { color: var(--mint); border-color: rgba(79, 209, 154, 0.4); }
.chip--warn { color: #0B0D12; background: var(--champ); border-color: var(--champ); font-weight: 600; }

/* ---------- Organisations-Check ---------- */
.orgcheck { list-style: none; padding: 0; margin: 0; }
.orgcheck li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--hairline); margin: 0;
  font-size: 13.5px; color: var(--body);
}
.orgcheck li:last-child { border-bottom: 0; }
.orgcheck .st { flex: none; margin-top: 2px; }
.orgcheck .lbl { color: var(--text); font-weight: 500; display: block; }
.orgcheck .det { font-size: 12px; color: var(--muted); }

/* ---------- Lists with hairlines ---------- */
.fact-list { list-style: none; padding: 0; margin: 24px 0; border-top: 1px solid var(--hairline); }
.fact-list li {
  display: grid; grid-template-columns: 200px 1fr; gap: 24px;
  padding: 14px 0; border-bottom: 1px solid var(--hairline); margin: 0;
  font-size: 13.5px;
}
.fact-list .k { color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; padding-top: 3px; }
.fact-list .v { color: var(--body); }
.fact-list .v strong { display: block; margin-bottom: 2px; }
@media (max-width: 700px) { .fact-list li { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 32px 0; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; } }
.price-card {
  background: var(--panel); border: 1px solid var(--hairline);
  border-radius: 8px; padding: 28px; display: flex; flex-direction: column;
}
.price-card--hl { border-color: var(--champ-2); }
.price-card .pc-name { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.price-card .pc-price { font-size: 34px; font-weight: 600; color: var(--text); letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.price-card .pc-price small { font-size: 13px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.price-card ul { list-style: none; padding: 0; margin: 20px 0 0; font-size: 13px; }
.price-card ul li { padding: 7px 0; border-bottom: 1px solid var(--hairline); color: var(--body); margin: 0; }
.price-card ul li:last-child { border-bottom: 0; }
.richtpreis { font-size: 12px; color: var(--muted); margin-top: 16px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
label.f-label { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.f-input, .f-textarea {
  width: 100%; background: var(--panel); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 11px 13px; font-size: 14px; font-family: var(--font);
  transition: border-color 180ms var(--ease);
}
.f-input:focus, .f-textarea:focus { outline: none; border-color: var(--champ-2); }
.f-textarea { min-height: 130px; resize: vertical; }
.f-consent { display: flex; gap: 11px; align-items: flex-start; font-size: 13px; color: var(--body); }
.f-consent input { margin-top: 3px; accent-color: var(--champ); width: 15px; height: 15px; flex: none; }
/* Honeypot: positioned off-canvas with CSS, not display:none */
.f-hp { position: absolute; left: -6000px; top: -6000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 14px; font-size: 13px; min-height: 20px; }
.form-status.ok { color: var(--mint); }
.form-status.err { color: var(--champ); }

/* ---------- Notice / callout ---------- */
.notice {
  border: 1px solid var(--border); border-left: 2px solid var(--champ);
  border-radius: 0 6px 6px 0; background: var(--panel);
  padding: 16px 20px; font-size: 13.5px; color: var(--body); margin: 24px 0;
}
.notice strong { color: var(--text); }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--hairline); margin-top: 80px; padding: 48px 0 40px; }
.site-foot .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 800px) { .site-foot .cols { grid-template-columns: 1fr 1fr; } }
.site-foot h4 { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin: 0 0 12px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.site-foot li { margin-bottom: 7px; }
.site-foot a { color: var(--body); }
.site-foot a:hover { color: var(--text); }
.site-foot .fine { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--hairline); font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Page head (sub pages) ---------- */
.page-head { padding: 72px 0 40px; }
.page-head h1 { margin-bottom: 14px; }
.page-head .lead { font-size: 16px; max-width: 68ch; }

/* ---------- Misc ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.small { font-size: 12.5px; color: var(--muted); }
hr.sep { border: 0; border-top: 1px solid var(--hairline); margin: 48px 0; }
