/* ════════════════════════════════════════════════════════════════
   AUROLIS — Produktseiten (InvoiceManager, CompanyManager)
   Gleiche Schriften und Farben wie die Startseite, ruhiger gesetzt:
   Haarlinien statt Karten, nummerierte Kapitel, Abbildungen mit Legende.
════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: color-mix(in srgb, var(--gold) 30%, transparent); color: var(--ink); }

:root {
  --black:   #080809;
  --panel:   #101014;
  --surface: #14141A;
  --rule:    rgba(255,255,255,.10);
  --rule2:   rgba(255,255,255,.20);
  --ink:     #EEEAE0;
  --ink2:    #C8C4BA;
  --muted:   #8A8A96;
  --gold:    #C8A86A;
  --gold2:   #E4C882;
  --paper:   #F5F5F5;

  --serif: 'Schibsted Grotesk', ui-sans-serif, system-ui, sans-serif;
  --sans:  'Source Sans 3', ui-sans-serif, system-ui, sans-serif;
  --mono:  'Source Sans 3', ui-sans-serif, system-ui, sans-serif;

  --max: 1300px;
  --gutter: clamp(1rem, 5vw, 3.5rem);
}
[data-theme="light"] {
  --black:   #F4EFE6;
  --panel:   #FFFFFF;
  --surface: #ECEAE3;
  --rule:    rgba(0,0,0,.10);
  --rule2:   rgba(0,0,0,.22);
  --ink:     #18160E;
  --ink2:    #3A3830;
  --muted:   #6E6858;
  --gold:    #9A7A38;
  --gold2:   #8A6A28;
}

body {
  font-family: var(--sans);
  background: var(--black);
  color: var(--ink);
  line-height: 1.65;
  font-variant-numeric: lining-nums;
  overflow-x: hidden;
}

.wrap { width: min(var(--max), 100% - var(--gutter) * 2); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ── Kopf ─────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 50;
  background: var(--black);
  border-bottom: 1px solid var(--rule);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 0; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 6px; object-fit: cover; }
.brand span { font-weight: 800; font-size: .88rem; letter-spacing: .12em; text-transform: uppercase; }
.top nav { display: flex; align-items: center; gap: 1.6rem; }
.top nav a { text-decoration: none; font-size: .8rem; color: var(--muted); transition: color .2s; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--ink); }
.top nav a[aria-current="page"] { border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.top .theme { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--rule2); padding: .35rem .6rem; }
.top .theme:hover { color: var(--ink); }
@media (max-width: 760px) {
  .top .wrap { flex-wrap: wrap; row-gap: .6rem; }
  .top nav { width: 100%; gap: 1.2rem; }
  .top nav a:not(.keep) { display: none; }
  .top .theme { margin-left: auto; }
}

/* ── Titel ────────────────────────────────────────── */
.hero { padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero .crumb { margin-bottom: 2.2rem; }
.hero .crumb a { color: var(--muted); text-decoration: none; }
.hero .crumb a:hover { color: var(--ink); }
.hero-grid { display: grid; gap: 2.5rem; align-items: end; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.35fr 1fr; gap: 4rem; } }
.hero h1 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.5rem, 10.5vw, 7.6rem); line-height: .95; letter-spacing: -.025em;
}
.hero h1 small { display: block; font-size: max(1.35rem, .32em); letter-spacing: 0; line-height: 1.25; color: var(--ink2); margin-top: 1.1rem; max-width: 22ch; }
.hero .lede { font-size: clamp(1rem, 1.4vw, 1.12rem); color: var(--ink2); max-width: 48ch; line-height: 1.8; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; margin-top: 2rem; }

.btn {
  display: inline-block; text-decoration: none;
  font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: .95rem 1.5rem; border: 1px solid var(--gold); color: var(--black); background: var(--gold);
  transition: background .2s, color .2s;
}
.btn:hover { background: transparent; color: var(--gold); }
.link { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule2); padding-bottom: 3px; }
.link:hover { border-color: var(--gold); }

/* Eckdaten unter dem Titel */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--rule2); margin-top: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 860px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.facts div { padding: 1.1rem 1.2rem 1.2rem 0; border-bottom: 1px solid var(--rule); }
.facts div + div { padding-left: 1.2rem; border-left: 1px solid var(--rule); }
@media (max-width: 859px) { .facts div:nth-child(odd) { padding-left: 0; border-left: none; } }
.facts dt { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.facts dd { font-size: .95rem; color: var(--ink); line-height: 1.45; }

/* ── Abbildungen ─────────────────────────────────── */
figure { margin: 0; }
.shot {
  display: block; width: 100%; padding: 0; text-align: left;
  border: 1px solid var(--rule2); background: var(--paper); cursor: zoom-in;
}
.shot img { width: 100%; }
figcaption { display: flex; gap: .9rem; align-items: baseline; margin-top: .8rem; font-size: .84rem; color: var(--muted); line-height: 1.5; }
figcaption b { font-family: var(--mono); font-weight: 400; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.lead-shot { padding-bottom: clamp(3rem, 6vw, 5rem); }

/* ── Kapitel ─────────────────────────────────────── */
.chapter { border-top: 1px solid var(--rule2); padding: clamp(3rem, 7vw, 6rem) 0; }
.chapter-grid { display: grid; gap: 2.2rem; }
@media (min-width: 980px) {
  .chapter-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: 4rem; }
  .chapter.flip .chapter-grid { grid-template-columns: minmax(0, 8fr) minmax(0, 5fr); }
  .chapter.flip .text { order: 2; }
  .chapter .text { position: sticky; top: 6rem; align-self: start; }
}
.num { font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; color: var(--gold); display: flex; gap: .9rem; align-items: center; }
.num::after { content: ''; flex: 0 0 40px; height: 1px; background: var(--gold); opacity: .6; }
.chapter h2 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.08; letter-spacing: -.015em;
  margin: 1rem 0 1.1rem;
}
.chapter p { color: var(--ink2); max-width: 54ch; }
.chapter p + p { margin-top: .9rem; }

/* Aufzählungen als Zeilen mit Haarlinie */
.rows { list-style: none; margin-top: 1.6rem; border-top: 1px solid var(--rule); }
.rows li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--rule); font-size: .9rem; color: var(--ink2); line-height: 1.5; }
.rows li span:first-child { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: .15rem; }
@media (max-width: 520px) { .rows li { grid-template-columns: 1fr; gap: .2rem; } }

.stack { display: grid; gap: 2rem; }
.pair { display: grid; gap: 1.5rem; }
@media (min-width: 700px) { .pair { grid-template-columns: 1fr 1fr; align-items: start; } }

/* ── Ablauf (Zusammenspiel der Programme) ────────── */
.flow { display: grid; border-top: 1px solid var(--rule2); border-bottom: 1px solid var(--rule2); margin-top: 2.2rem; }
@media (min-width: 860px) { .flow { grid-template-columns: repeat(4, 1fr); } }
.flow div { padding: 1.3rem 1.3rem 1.4rem 0; }
@media (min-width: 860px) { .flow div + div { padding-left: 1.3rem; border-left: 1px solid var(--rule); } }
@media (max-width: 859px) { .flow div + div { border-top: 1px solid var(--rule); } }
.flow .mono { color: var(--gold); display: block; margin-bottom: .5rem; }
.flow h3 { font-size: .98rem; font-weight: 600; margin-bottom: .3rem; }
.flow p { font-size: .86rem; color: var(--muted); line-height: 1.55; }

/* ── Technische Angaben ─────────────────────────── */
.spec { width: 100%; border-collapse: collapse; margin-top: 2rem; font-size: .92rem; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: .85rem 0; border-bottom: 1px solid var(--rule); }
.spec th { width: 32%; padding-right: 1.5rem; font-family: var(--mono); font-weight: 400; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 1rem; }
.spec td { color: var(--ink2); }
.spec tr:first-child th, .spec tr:first-child td { border-top: 1px solid var(--rule2); }

.note { margin-top: 2rem; padding-left: 1.2rem; border-left: 2px solid var(--gold); color: var(--ink2); font-size: .92rem; max-width: 70ch; }
.note strong { color: var(--ink); font-weight: 600; }

/* ── Abschluss ───────────────────────────────────── */
.closing { border-top: 1px solid var(--rule2); padding: clamp(3.5rem, 8vw, 7rem) 0; }
.closing-grid { display: grid; gap: 2.5rem; }
@media (min-width: 980px) { .closing-grid { grid-template-columns: 1.3fr 1fr; gap: 4rem; align-items: end; } }
.closing h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 1.02; letter-spacing: -.02em; }
.closing p { color: var(--ink2); max-width: 46ch; margin: 1.2rem 0 2rem; }
.other { display: block; text-decoration: none; border-top: 1px solid var(--rule2); padding-top: 1.2rem; }
.other .mono { display: block; margin-bottom: .6rem; }
.other strong { font-family: var(--serif); font-weight: 400; font-size: 2rem; line-height: 1.1; display: block; }
.other span:last-child { color: var(--muted); font-size: .9rem; display: block; margin-top: .4rem; }
.other:hover strong { color: var(--gold2); }

footer { border-top: 1px solid var(--rule); padding: 2rem 0; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .8rem; color: var(--muted); }
footer a { color: var(--muted); }

/* ── Grossansicht ───────────────────────────────── */
dialog.zoom { border: none; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; margin: auto; }
dialog.zoom::backdrop { background: rgba(0,0,0,.86); }
dialog.zoom img { max-width: 96vw; max-height: 88vh; width: auto; border: 1px solid var(--rule2); background: #fff; }
dialog.zoom p { display: flex; justify-content: space-between; gap: 1rem; color: #ccc; font-size: .82rem; margin-top: .6rem; }
dialog.zoom button { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ── Rechtliches (Impressum, Datenschutz) ───────── */
.legal .hero h1 { font-size: clamp(2.6rem, 8vw, 5.5rem); }
.legal .chapter { padding-top: clamp(2rem, 4vw, 3rem); }
.legal-body { max-width: 780px; }
.legal-body h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.15; margin: 2.8rem 0 .9rem; display: flex; gap: .9rem; align-items: baseline; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h2 .n { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; color: var(--gold); min-width: 1.6rem; }
.legal-body p, .legal-body li { color: var(--ink2); font-size: .98rem; line-height: 1.75; }
.legal-body p + p { margin-top: .8rem; }
.legal-body ul { margin: .9rem 0 1rem 1.2rem; }
.legal-body li + li { margin-top: .6rem; }
.legal-body strong { color: var(--ink); font-weight: 600; }
.legal-body a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold); }
.legal-body .spec { margin-top: 0; }

/* ── Typografie 2026-09: Schibsted Grotesk + Source Sans 3 (lokal) ── */
body { font-size: 1.0625rem; -webkit-font-smoothing: antialiased; }
h1, h2, h3, .other strong, .closing h2 { letter-spacing: -.025em; }
h1 em, h2 em, h3 em { font-style: normal; color: var(--gold2); }
.hero h1 { font-weight: 680; font-size: clamp(2.4rem, 7vw, 5.4rem); line-height: 1.02; letter-spacing: -.035em; }
.hero h1 small { font-family: var(--sans); font-weight: 400; letter-spacing: 0; line-height: 1.35; }
.chapter h2 { font-weight: 640; font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.12; }
.closing h2 { font-weight: 660; font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.06; }
.other strong { font-weight: 660; font-size: 1.8rem; }
.legal-body h2 { font-weight: 640; font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
.mono, .facts dt, .rows li span:first-child, .spec th, figcaption b, .num, .top .theme { letter-spacing: .08em; font-weight: 600; }
.btn { font-family: var(--serif); font-weight: 620; letter-spacing: -.005em; text-transform: none; font-size: .98rem; border-radius: 999px; }
.flow h3 { font-family: var(--serif); font-weight: 640; }
