/* Vonderlo Advisory Group – site styles
   Palette: Nachtblau & Champagner (v3, 2026-10-28). Navy intro + footer frame,
   ivory/white content, cool grey band; champagne double rule as recurring detail. */

:root {
  --spruce: #142036;
  --bg: #FBFBF9;
  --surface: #FFFFFF;
  --ink: #172033;
  --muted: #5B6476;
  --line: #E2E4EA;
  --brand: #142036;
  --brand-ink: #F4F2EC;
  --brand-muted: #AEB6C6;
  --accent: #8C743F;
  --accent-line: #B9A06A;
  --accent-on-brand: #CDB685;
  --accent-soft: #F3EEE2;
  --band: #EEF0F4;
  --brand-deep: #0D1627;
  --on-brand-line: rgba(244, 242, 236, 0.12);
  --focus: #3B5B9A;

  --font-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-body: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: 1.5rem;
  --step-3: 2rem;
  --step-4: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);

  --wrap: 72rem;
  --radius: 4px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0D1220; --surface: #151C2C; --ink: #E6E8EE; --muted: #9AA3B5; --line: #263048;
    --brand: #16223D; --brand-ink: #F4F2EC; --brand-muted: #A9B2C4;
    --accent: #CDB685; --accent-line: #B9A06A; --accent-soft: #2A2618; --band: #121A2B; --brand-deep: #080C16; --focus: #8FB0EE;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0D1220; --surface: #151C2C; --ink: #E6E8EE; --muted: #9AA3B5; --line: #263048;
    --brand: #16223D; --brand-ink: #F4F2EC; --brand-muted: #A9B2C4;
    --accent: #CDB685; --accent-line: #B9A06A; --accent-soft: #2A2618; --band: #121A2B; --brand-deep: #080C16; --focus: #8FB0EE;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
p { margin: 0; max-width: 65ch; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 48rem) {
  .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
}

.label {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.lead { font-size: var(--step-1); color: var(--muted); line-height: 1.55; }
.stack { display: grid; gap: 1rem; align-content: start; }
.stack-lg { display: grid; gap: 1.5rem; align-content: start; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 2rem; padding-block: 1.1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: 40px; display: block; }
.brand-name { display: grid; line-height: 1.1; }
.brand-name strong { font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; letter-spacing: 0; }
.brand-name span { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; font-size: 0.95rem; }
.nav a { text-decoration: none; color: var(--muted); padding-block: 0.25rem; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.15rem; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  border: 1px solid var(--brand); background: var(--brand); color: var(--brand-ink);
}
.btn:hover { color: var(--brand-ink); filter: brightness(1.12); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { color: var(--ink); border-color: var(--ink); filter: none; }

/* Sections */
main section { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
main section + section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 0.75rem; margin-bottom: 2.5rem; max-width: 46rem; }

/* Hero */
.hero .wrap { display: grid; gap: 3rem; align-items: start; }
.hero h1 { max-width: 20ch; }
.hero-copy { display: grid; gap: 1.5rem; min-width: 0; }
.page-hero { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) !important; }
.page-hero .wrap { display: grid; gap: 1rem; }

/* Fact sheet: a ledger-style panel */
.sheet { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; min-width: 0; }
.sheet-title { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 0.75rem; border-bottom: 3px double var(--ink); }
.sheet dl { margin: 0; display: grid; }
.sheet dl > div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1rem; padding-block: 0.85rem; border-bottom: 1px solid var(--line); }
.sheet dl > div:last-child { border-bottom: 0; }
.sheet dt { font-family: var(--font-mono); font-size: var(--step--1); color: var(--muted); padding-top: 0.15rem; }
.sheet dd { margin: 0; }
@media (max-width: 26rem) { .sheet dl > div { grid-template-columns: 1fr; gap: 0.2rem; } }

/* Grids */
.grid-2 { display: grid; gap: 1.5rem; }
.grid-3 { display: grid; gap: 1.5rem; }
@media (min-width: 48rem) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 56rem) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.pillar { display: grid; gap: 1rem; align-content: start; padding: 2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.pillar ul, .plain-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
.pillar li, .plain-list li { padding-left: 1.25rem; position: relative; }
.pillar li::before, .plain-list li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 0.6rem; border-top: 1px solid var(--accent); }

.item { display: grid; gap: 0.75rem; align-content: start; padding-top: 1.25rem; border-top: 3px double var(--line); }
.item h3 { font-size: var(--step-1); font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }

/* Process steps (a real sequence) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; counter-reset: step; }
@media (min-width: 56rem) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps li { counter-increment: step; display: grid; gap: 0.5rem; align-content: start; padding-top: 1rem; border-top: 1px solid var(--ink); }
.steps li::before { content: "Step " counter(step); font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.steps strong { font-weight: 600; }

/* Scope note */
.scope { background: var(--band); }
main section.scope { border-top: 3px double var(--accent); }
.scope .wrap { display: grid; gap: 1.5rem; }
@media (min-width: 56rem) { .scope .wrap { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 4rem; } }

/* CTA band */
.cta { background: var(--brand); color: var(--brand-ink); }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta p { color: var(--brand-muted); }
.cta .btn { background: var(--brand-ink); color: var(--spruce); border-color: var(--brand-ink); }
.cta .btn:hover { color: var(--spruce); }

/* Detail tables (legal / company facts) */
.facts { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 0.75rem 1rem 0.75rem 0; border-bottom: 1px solid var(--line); }
.facts th { font-family: var(--font-mono); font-weight: 400; font-size: var(--step--1); color: var(--muted); width: 12rem; }
.table-wrap { overflow-x: auto; }

.prose { display: grid; gap: 1rem; max-width: 46rem; }
.prose h2 { font-size: var(--step-2); margin-top: 1.5rem; }
.prose h3 { font-size: var(--step-1); font-family: var(--font-body); font-weight: 600; margin-top: 0.5rem; }
.prose ul { margin: 0; padding-left: 1.25rem; display: grid; gap: 0.35rem; }

.todo { background: var(--accent-soft); border: 1px dashed var(--accent); padding: 0 0.35em; border-radius: 2px; font-family: var(--font-mono); font-size: 0.9em; }

.contact-card { display: grid; gap: 1.25rem; }
.contact-value { font-family: var(--font-display); font-size: var(--step-2); overflow-wrap: anywhere; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 2.5rem; font-size: 0.9rem; color: var(--muted); }
.site-footer .wrap { display: grid; gap: 1.5rem; }
@media (min-width: 48rem) { .site-footer .wrap { grid-template-columns: minmax(0, 1fr) auto; align-items: end; } }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.footer-nav a { color: var(--muted); }
.disclaimer { font-size: var(--step--1); max-width: 70ch; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Language switch */
.header-end { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: 0.06em; }
.lang-switch a { padding: 0.3rem 0.6rem; text-decoration: none; color: var(--muted); }
.lang-switch a + a { border-left: 1px solid var(--line); }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current="true"] { background: var(--brand); color: var(--brand-ink); }
:lang(de) .steps li::before { content: "Schritt " counter(step); }
@media (max-width: 47.99rem) {
  .header-end { display: contents; }
  .lang-switch { margin-left: auto; }
  .site-header .nav { order: 3; width: 100%; }
}

/* Color distribution: spruce top block (header + intro), alternating neutral/tinted
   content sections, deep spruce footer. Brass marks the seams. */
.site-header { background: var(--brand); color: var(--brand-ink); border-bottom: 1px solid var(--on-brand-line); }
.site-header .brand { color: var(--brand-ink); }
.site-header .brand-name span { color: var(--brand-muted); }
.site-header .nav a { color: var(--brand-muted); }
.site-header .nav a:hover, .site-header .nav a[aria-current="page"] { color: var(--brand-ink); }
.site-header .nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.lang-switch { border-color: var(--on-brand-line); }
.lang-switch a { color: var(--brand-muted); }
.lang-switch a + a { border-left-color: var(--on-brand-line); }
.lang-switch a:hover { color: var(--brand-ink); }
.lang-switch a[aria-current="true"] { background: var(--brand-ink); color: var(--spruce); }

main > section.hero, main > section.page-hero { background: var(--brand); color: var(--brand-ink); border-bottom: 3px double var(--accent-line); }
main > section.hero .label, main > section.page-hero .label { color: var(--accent-on-brand); }
main > section.hero .lead, main > section.page-hero .lead { color: var(--brand-muted); }
.hero .btn { background: var(--brand-ink); color: var(--spruce); border-color: var(--brand-ink); }
.hero .btn:hover { color: var(--spruce); filter: brightness(0.95); }
.hero .btn-ghost { background: transparent; color: var(--brand-ink); border-color: var(--on-brand-line); }
.hero .btn-ghost:hover { color: var(--brand-ink); border-color: var(--brand-ink); }
.hero :focus-visible, .page-hero :focus-visible, .site-header :focus-visible { outline-color: var(--brand-ink); }

main > section + section { border-top: 0; }
main > section:nth-of-type(2n+3) { background: var(--band); }

.site-footer { background: var(--brand-deep); color: var(--brand-muted); border-top: 0; }
.site-footer .footer-nav a { color: var(--brand-muted); }
.site-footer .footer-nav a:hover { color: var(--brand-ink); }

/* Intro watermark: the logo's V and double rule drawn large and faint at the right edge. */
main > section.hero, main > section.page-hero {
  background-image: url("mark-outline.svg");
  background-repeat: no-repeat;
  background-position: right max(-60px, calc(50% - 44rem)) bottom -36px;
  background-size: 420px 420px;
}
main > section.page-hero { background-size: 300px 300px; background-position: right max(-40px, calc(50% - 44rem)) bottom -26px; }
@media (max-width: 40rem) { main > section.hero, main > section.page-hero { background-size: 240px 240px; background-position: right -50px bottom -20px; } }
