/* MailVault – Download-Seite. Farben aus dem Archiv-Leitbild (DESIGN.md): Papier, Regal, Tinte, Archivblau.
   Schriften liegen auf diesem Server (keine Anfrage an Schriftendienste). */

@font-face { font-family: Archivo; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(schriften/archivo-400-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; }
@font-face { font-family: Archivo; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(schriften/archivo-400-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Chivo Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(schriften/chivo-mono-400-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2192; }

:root {
  --papier: #FAF9F7;
  --regal: #F1F0EC;
  --flaeche: #FFFFFF;
  --linie: #E2E0DA;
  --linie-stark: #CFCCC4;
  --tinte: #1F2328;
  --tinte-2: #5C626C;
  --akzent: #2C5B8E;
  --akzent-hover: #234B76;
  --akzent-leise: #E7EDF4;
  /* Archivblau: besitzt Einstieg und Schluss */
  --feld: #1D3A5C;
  --feld-tinte: #F4F6F9;
  --feld-tinte-2: #B9C7D8;
  --feld-knopf: #F4F6F9;
  --feld-knopf-tinte: #16304D;
  --schatten: 0 18px 40px rgba(17, 33, 54, .22), 0 2px 6px rgba(17, 33, 54, .12);
  --schrift: Archivo, system-ui, "Segoe UI", Roboto, sans-serif;
  --mono: "Chivo Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --r: 4px;
  --r-flaeche: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --breite: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --papier: #1B1C1E;
    --regal: #232427;
    --flaeche: #26272A;
    --linie: #36383C;
    --linie-stark: #4A4D52;
    --tinte: #E8E6E2;
    --tinte-2: #A4A8AF;
    --akzent: #86AEDB;
    --akzent-hover: #A3C3E6;
    --akzent-leise: #2A3644;
    --feld: #13263D;
    --feld-tinte: #E8EDF3;
    --feld-tinte-2: #9FB2C8;
    --feld-knopf: #86AEDB;
    --feld-knopf-tinte: #0E1B2B;
    --schatten: 0 18px 40px rgba(0, 0, 0, .45), 0 2px 6px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--papier); color: var(--tinte);
  font: 400 17px/1.6 var(--schrift); font-feature-settings: "kern";
}
::selection { background: var(--akzent-leise); color: var(--tinte); }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.15; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); letter-spacing: -.015em; margin-bottom: .9rem; }
h3 { font-size: 1.3rem; margin-bottom: .5rem; }
p { margin: 0 0 1rem; text-wrap: pretty; }
a { color: var(--akzent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--akzent-hover); }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 3px; border-radius: 2px; }
.zahl, code { font-family: var(--mono); font-variant-numeric: tabular-nums; }
code { font-size: .88em; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: absolute; left: 12px; top: -48px; background: var(--flaeche); padding: 8px 12px; border-radius: var(--r); z-index: 10; }
.skip:focus { top: 12px; }

.spalte { max-width: var(--breite); margin: 0 auto; padding: 0 24px; }
.zweispaltig { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
section { padding: 96px 0; }
section + section { border-top: 1px solid var(--linie); }

/* ------------------------------------------------------------ Knöpfe */
.knopf {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border-radius: var(--r); font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: background-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}
.knopf svg { width: 18px; height: 18px; flex: none; }
.knopf:active { transform: translateY(1px); }
.knopf-haupt { background: var(--feld-knopf); color: var(--feld-knopf-tinte); }
.knopf-haupt:hover { background: #FFFFFF; color: var(--feld-knopf-tinte); }
@media (prefers-color-scheme: dark) { .knopf-haupt:hover { background: #A3C3E6; } }
.knopf-hell { background: var(--akzent); color: #fff; }
.knopf-hell:hover { background: var(--akzent-hover); color: #fff; }
@media (prefers-color-scheme: dark) { .knopf-hell, .knopf-hell:hover { color: #0E1B2B; } }

/* ------------------------------------------------------------ Kopf */
.kopf { background: var(--feld); color: var(--feld-tinte); }
.kopf-innen { max-width: var(--breite); margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; gap: 32px; }
.marke { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 600; font-size: 1.15rem; }
.marke:hover { color: inherit; }
.mark { width: 26px; height: 26px; }
.kopf-nav { display: flex; gap: 24px; margin-left: auto; }
.kopf-nav a { color: var(--feld-tinte-2); text-decoration: none; font-size: .95rem; }
.kopf-nav a:hover { color: var(--feld-tinte); }
.sprachen { display: flex; gap: 2px; }
.sprachen button {
  font: 500 .8rem/1 var(--mono); color: var(--feld-tinte-2); background: transparent; border: 0; border-radius: var(--r);
  min-width: 34px; min-height: 30px; cursor: pointer;
}
.sprachen button:hover { color: var(--feld-tinte); }
.sprachen button[aria-pressed="true"] { color: var(--feld-tinte); box-shadow: inset 0 -2px 0 var(--feld-tinte-2); }
.kopf :focus-visible, .buehne :focus-visible, .schluss :focus-visible { outline-color: var(--feld-tinte); }

/* ------------------------------------------------------------ Einstieg: blaues Feld, App-Fenster ragt ins Papier */
.buehne { background: var(--feld); color: var(--feld-tinte); padding: 56px 0 0; border: 0; position: relative; }
.buehne::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: var(--papier); }
.buehne-innen {
  max-width: 1240px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start;
}
.buehne-text { padding: 40px 0 170px; }
.buehne h1 { font-size: clamp(2.3rem, 1.4rem + 3vw, 3.7rem); letter-spacing: -.025em; line-height: 1.04; margin-bottom: 1.4rem; }
.lead { font-size: 1.2rem; line-height: 1.55; color: var(--feld-tinte-2); max-width: 34ch; margin-bottom: 2rem; }
.laden-info { font-size: .9rem; color: var(--feld-tinte-2); margin: .9rem 0 0; }

.fenster {
  margin: 0; background: var(--flaeche); border-radius: 8px; overflow: hidden; box-shadow: var(--schatten);
  border: 1px solid rgba(255, 255, 255, .08); align-self: end;
}
.fenster-leiste { display: flex; gap: 6px; padding: 9px 12px; background: var(--regal); border-bottom: 1px solid var(--linie); }
.fenster-leiste span { width: 9px; height: 9px; border-radius: 50%; background: var(--linie-stark); }
.fenster img { display: block; width: 100%; height: auto; }
.fenster figcaption { font-size: .8rem; color: var(--tinte-2); padding: 8px 12px; border-top: 1px solid var(--linie); background: var(--flaeche); }

/* ------------------------------------------------------------ Register (Versprechen, Funktionen) */
.versprechen { border-top: 0; padding-top: 72px; }
.versprechen h2 { max-width: 22ch; }
.register { margin: 2rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; }
.register > div { border-top: 1px solid var(--tinte); padding: 18px 0 28px; }
.register dt { font-weight: 600; font-size: 1.15rem; margin-bottom: .4rem; }
.register dd { margin: 0; color: var(--tinte-2); max-width: 48ch; }
.register-eng { grid-template-columns: 1fr; margin: 0; }
.register-eng > div { border-top-color: var(--linie-stark); padding: 14px 0 18px; }
.register-eng dt { font-size: 1.05rem; }
.liste-zweispaltig { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; margin-top: 1.5rem; }

/* ------------------------------------------------------------ Suche vorgeführt */
.vorfuehrung { background: var(--regal); }
.syntax { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 8px; }
.syntax li { display: flex; gap: 14px; align-items: baseline; }
.syntax code { min-width: 9.5em; color: var(--akzent); }
.syntax span { color: var(--tinte-2); }
.demo { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r-flaeche); overflow: hidden; }
.demo-feld {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--linie);
  font-family: var(--mono); font-size: .98rem; min-height: 54px;
}
.demo-feld svg { width: 18px; height: 18px; color: var(--tinte-2); flex: none; }
.cursor { width: 2px; height: 1.2em; background: var(--akzent); margin-left: -8px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.demo-liste { list-style: none; margin: 0; padding: 0; min-height: 216px; }
.demo-liste li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 10px 16px;
  border-bottom: 1px solid var(--linie); animation: einblenden .25s var(--ease) both;
}
.demo-liste .von { font-weight: 600; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-liste .datum { font-family: var(--mono); font-size: .82rem; color: var(--tinte-2); }
.demo-liste .betreff { grid-column: 1 / -1; font-size: .92rem; color: var(--tinte-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-liste .betreff svg { width: 13px; height: 13px; vertical-align: -1px; margin-right: 4px; }
.demo-liste mark { background: var(--akzent-leise); color: var(--tinte); border-radius: 2px; padding: 0 1px; }
.demo-fuss { font-size: .82rem; color: var(--tinte-2); padding: 10px 16px; margin: 0; }
@keyframes einblenden { from { opacity: 0; transform: translateY(4px); } }

/* ------------------------------------------------------------ Installation */
.schritte { counter-reset: s; list-style: none; padding: 0; margin: 1.5rem 0; }
.schritte li { counter-increment: s; position: relative; padding: 0 0 18px 52px; }
.schritte li::before {
  content: counter(s); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--tinte); display: grid; place-items: center; font: 400 .95rem/1 var(--mono);
}
.hinweis { font-size: .95rem; color: var(--tinte-2); border-top: 1px solid var(--linie); padding-top: 16px; }
.steckbrief { margin: 0; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r-flaeche); padding: 8px 24px; }
.steckbrief > div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--linie); }
.steckbrief > div:last-child { border-bottom: 0; }
.steckbrief dt { color: var(--tinte-2); font-size: .95rem; }
.steckbrief dd { margin: 0; }
.steckbrief .pruef dd { font-size: .78rem; word-break: break-all; line-height: 1.5; color: var(--tinte-2); }

/* ------------------------------------------------------------ Über mich, Unterstützen */
.visitenkarte {
  font-style: normal; display: grid; gap: 2px; padding: 24px 28px; border-left: 0;
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r-flaeche); align-self: center;
}
.visitenkarte strong { font-size: 1.25rem; margin-bottom: 4px; }
.visitenkarte span { color: var(--tinte-2); }
.visitenkarte a { margin-top: 10px; }
.unterstuetzen { background: var(--regal); }
.unterstuetzen .knopf { margin-top: .5rem; }
.beleg { border-top: 1px solid var(--tinte); padding-top: 18px; }
.beleg p { color: var(--tinte-2); font-size: .95rem; }

/* ------------------------------------------------------------ Fragen */
.fragen details { border-top: 1px solid var(--linie-stark); }
.fragen details:last-of-type { border-bottom: 1px solid var(--linie-stark); }
.fragen summary {
  list-style: none; cursor: pointer; padding: 18px 40px 18px 0; font-weight: 600; font-size: 1.08rem; position: relative;
}
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
  transition: transform .18s var(--ease);
}
.fragen details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.fragen details p { color: var(--tinte-2); max-width: 70ch; padding-bottom: 8px; }

/* ------------------------------------------------------------ Schluss */
.schluss { background: var(--feld); color: var(--feld-tinte); border: 0; padding: 88px 0; }
.schluss-innen { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.schluss h2 { margin: 0; font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.8rem); max-width: 18ch; }

/* ------------------------------------------------------------ Fuß, Rechtliches */
.fuss { padding: 40px 0 56px; font-size: .9rem; color: var(--tinte-2); }
.recht summary { cursor: pointer; color: var(--tinte); font-weight: 600; padding: 6px 0; }
.recht-text { max-width: 75ch; padding: 8px 0 16px; }
.recht-text h3 { margin: 1.8rem 0 .6rem; font-size: 1.3rem; color: var(--tinte); }
.recht-text h4 { margin: 1.2rem 0 .3rem; font-size: 1rem; color: var(--tinte); }
.recht-hinweis { font-style: italic; }
.fuss-zeile { display: flex; gap: 24px; flex-wrap: wrap; margin: 24px 0 0; padding-top: 16px; border-top: 1px solid var(--linie); }
.fuss-zeile a { color: var(--tinte-2); }

/* ------------------------------------------------------------ Schmal */
@media (max-width: 980px) {
  .buehne-innen { grid-template-columns: 1fr; gap: 0; }
  .buehne-text { padding: 24px 0 40px; }
  .buehne::after { height: 80px; }
  .kopf-nav { display: none; }
  .sprachen { margin-left: auto; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  section { padding: 64px 0; }
  .zweispaltig, .register, .liste-zweispaltig { grid-template-columns: 1fr; gap: 32px; }
  .register { column-gap: 0; row-gap: 0; }
  .liste-zweispaltig { gap: 0; }
  .schluss-innen { flex-direction: column; align-items: flex-start; }
  .knopf { width: 100%; justify-content: center; }
  .steckbrief > div { grid-template-columns: 1fr; gap: 2px; }
  .kopf-innen { padding: 14px 16px; gap: 12px; }
  .spalte, .buehne-innen { padding: 0 16px; }
  .sprachen button { min-width: 36px; min-height: 36px; }
}

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

/* Überschrift: jeder Satz eine Zeile; Versions- und Größenangaben in der Textschrift mit festen Ziffern */
.buehne h1 span { display: block; }
.laden-info .zahl, .steckbrief .zahl { font-family: var(--schrift); font-variant-numeric: tabular-nums; }
.steckbrief .pruef .zahl { font-family: var(--mono); }
