/* Vaultora — Gestaltung aus dem App-Icon abgeleitet.
   Objektivring, vier orthogonale Bolzen, Zentrumspunkt. Amber auf sehr dunklem Braun.
   Keine externen Ressourcen, keine geladenen Schriftdateien, flach ohne Verläufe. */

/* ---------------------------------------------------------------- Tokens */

:root {
  /* Verbindliche Grundfarben */
  --bg:        #14100E;
  --bg-deep:   #0B0907;
  --accent:    #EF9F27;

  /* Abgeleitet: warmes Hellgrau, gegen --bg mindestens WCAG AA */
  --text:      #EDE4DA;   /* ~14.6:1 gegen #14100E */
  --text-dim:  #B8ABA0;   /* ~8.2:1  gegen #14100E */
  --text-faint:#8C8177;   /* ~4.7:1  gegen #14100E — nur für Nebentext ab 16px */

  /* Linien und Flächen, alle aus Grund + Akzent gemischt, keine Fremdfarbe */
  --line:      #2C2420;   /* Trennlinien, rein dekorativ */
  --line-warm: #3A2E24;   /* dekorative Rahmen, Hinweisblöcke */
  --line-ui:   #7A6656;   /* Rahmen bedienbarer Elemente — 3.48:1 gegen --bg,
                             erfüllt WCAG 1.4.11 (Nicht-Text-Kontrast, 3:1) */
  --surface:   #1B1613;

  --radius:    12px;      /* Größenordnung der iOS-Icon-Maske, nicht verspielt */
  --radius-sm:  8px;

  --measure:   38rem;     /* Lesebreite Fließtext */
  --page:      68rem;     /* Seitenbreite */

  --step:      1.6rem;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;
}

/* ------------------------------------------------------------- Grundlage */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }

/* ---------------------------------------------------------------- Typo */

h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 .6em;
  text-wrap: balance;
  /* Deutsche Komposita sind lang; auf 320 px darf getrennt werden,
     statt aus dem Bild zu laufen. Das lang-Attribut steuert die Trennregeln. */
  overflow-wrap: break-word;
  hyphens: auto;
}

h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.1rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.05rem); color: var(--accent); }
h3 { font-size: 1.2rem; color: var(--text); }
h4 { font-size: 1.02rem; color: var(--text); }

p, ul, ol, dl, table { margin: 0 0 1.1em; }
p, li { max-width: var(--measure); }

a {
  color: var(--accent);
  text-underline-offset: .18em;
  text-decoration-thickness: 1px;
}
a:hover { text-decoration-thickness: 2px; }

strong { font-weight: 600; color: var(--text); }

small { font-size: .875rem; }

code, kbd, samp {
  font-family: var(--font-mono);
  font-size: .9em;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: .08em .35em;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.4rem 0;
}

/* Tastaturbedienung sichtbar halten */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--bg);
  padding: .7rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
  z-index: 100;
}
.skip:focus { left: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* --------------------------------------------------------------- Raster */
/* Die vier Bolzen sitzen orthogonal. Rechte Winkel, klare Achsen,
   keine schrägen Anschnitte. */

.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 40rem) { .wrap { padding-inline: 2rem; } }

section { padding-block: clamp(2.75rem, 1.5rem + 5vw, 5rem); }
section + section { border-top: 1px solid var(--line); }

.band-deep { background: var(--bg-deep); }
.band-deep + .band-deep { border-top-color: var(--line); }

.lede {
  font-size: clamp(1.08rem, 1rem + .5vw, 1.28rem);
  color: var(--text-dim);
  max-width: 42rem;
}

.eyebrow {
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 .9rem;
}

/* --------------------------------------------------------------- Kopf */

.masthead {
  border-bottom: 1px solid var(--line);
  background: var(--bg-deep);
  z-index: 20;
}
/* Erst mitlaufen lassen, wenn die Navigation in eine Zeile passt — auf dem
   Telefon würde ein dreizeiliger Kopf ein Drittel des Bildes belegen. */
@media (min-width: 52rem) {
  .masthead { position: sticky; top: 0; }
}

.masthead .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .9rem 1.4rem;
  padding-block: .85rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.06rem;
  letter-spacing: -0.01em;
  margin-right: auto;
}
.brand .mark { width: 30px; height: 30px; flex: none; }

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 1rem;
  font-size: .92rem;
  order: 3;
  width: 100%;
}
@media (min-width: 52rem) {
  .nav { order: 0; width: auto; }
}
.nav a {
  color: var(--text-dim);
  text-decoration: none;
  padding: .3rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--text); border-bottom-color: var(--line-warm); }
.nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }

/* Sprachumschalter — auf jeder Seite sichtbar */
.langswitch {
  display: inline-flex;
  border: 1px solid var(--line-ui);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-size: .84rem;
  flex: none;
}
.langswitch a {
  padding: .3rem .62rem;
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: .03em;
}
.langswitch a + a { border-left: 1px solid var(--line-ui); }
.langswitch a:hover { color: var(--text); background: var(--surface); }
.langswitch a[aria-current="true"] { background: var(--accent); color: var(--bg); }

/* --------------------------------------------------------------- Knöpfe */
/* Sparsam mit dem Akzent: ein Knopf, nicht ganze Flächen. */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .72rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--bg);
  min-height: 44px;
}
.btn:hover { background: #F5AC42; border-color: #F5AC42; }

.btn-quiet {
  background: transparent;
  color: var(--text);
  border-color: var(--line-ui);
}
.btn-quiet:hover { background: var(--surface); border-color: var(--accent); color: var(--text); }

.btn[aria-disabled="true"] {
  background: transparent;
  color: var(--text-dim);
  border-style: dashed;
  border-color: var(--line-ui);
  cursor: default;
}
.btn[aria-disabled="true"]:hover { background: transparent; border-color: var(--line-ui); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 1.7rem 0 0;
}

/* ---------------------------------------------------------------- Hero */

.hero { padding-block: clamp(3rem, 1.5rem + 7vw, 6rem); }

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 56rem) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 3.5rem; }
}

.hero h1 { margin-bottom: .5rem; }
.hero .lede { margin-bottom: 0; }

/* Ringmotiv als dezente Hintergrundform — flach, kein Leuchten */
.hero-mark {
  justify-self: center;
  width: min(19rem, 72vw);
}

/* ------------------------------------------------------- Aufzählungen */
/* Der Ring als Aufzählungspunkt. */

.ring-list { list-style: none; padding: 0; margin: 0; }
.ring-list > li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: .7rem;
  max-width: var(--measure);
}
.ring-list > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .52em;
  width: 11px;
  height: 11px;
  border: 2px solid var(--accent);
  border-radius: 50%;
}

/* Verschachtelte Liste: konzentrisch weiter innen, gefüllter Punkt */
.ring-list ul { list-style: none; padding: .4rem 0 0; margin: 0; }
.ring-list ul > li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: .35rem;
  color: var(--text-dim);
}
.ring-list ul > li::before {
  content: "";
  position: absolute;
  left: .2rem; top: .68em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--line-warm);
}

/* ---------------------------------------------------------------- Karten */

.cards {
  display: grid;
  gap: 1.1rem;
  margin-top: 2rem;
}
@media (min-width: 40rem)  { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60rem)  { .cards.cards-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  background: var(--surface);
}
.card h3 { margin-bottom: .45rem; font-size: 1.08rem; }
.card p  { margin: 0; color: var(--text-dim); font-size: .97rem; max-width: none; }

/* Symbol im Kreisrahmen — Ring als Rahmen */
.card-mark {
  width: 40px; height: 40px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: .95rem;
}
.card-mark svg { width: 19px; height: 19px; }

/* ----------------------------------------------------- Hinweisblöcke */
/* Für die ehrlichen Grenzen und den Rechtshinweis.
   Rahmen und Akzentkante, keine Vollfläche. */

.note {
  border: 1px solid var(--line-warm);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.35rem 1.5rem;
  background: var(--surface);
  margin: 1.6rem 0;
}
.note > :last-child { margin-bottom: 0; }
.note h2, .note h3 { color: var(--accent); }
.note h3 { margin-bottom: .5rem; }

.note-plain {
  border-left-color: var(--line-warm);
  border-radius: var(--radius);
}

/* ------------------------------------------------ Screenshot-Platzhalter */
/* Bildschirmfotos: 560 × 1217, im Raster auf vier Spalten */

.shots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem 1.1rem;
  margin-top: 2rem;
  max-width: 56rem;
}
@media (min-width: 40rem) { .shots { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 60rem) { .shots { grid-template-columns: repeat(4, 1fr); } }

.shot-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 560 / 1217;
  border: 1px solid var(--line-warm);
  border-radius: var(--radius);
  background: var(--bg-deep);
}

.shot-figure { margin: 0; }
.shot-figure figcaption {
  margin-top: .6rem;
  font-size: .85rem;
  color: var(--text-dim);
  text-align: center;
}

/* ---------------------------------------------------------------- Tabelle */

.table-scroll { overflow-x: auto; margin: 0 0 1.2rem; }

table {
  border-collapse: collapse;
  width: 100%;
  font-size: .96rem;
}
th, td {
  text-align: left;
  padding: .65rem .9rem;
  border: 1px solid var(--line);
  vertical-align: top;
}
th { background: var(--bg-deep); font-weight: 600; color: var(--text); }
td { color: var(--text-dim); }

/* -------------------------------------------------------------- Rechtstext */

.legal { padding-block: clamp(2.25rem, 1.5rem + 4vw, 3.75rem); }
.legal h2 {
  font-size: 1.35rem;
  color: var(--accent);
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.legal h2:first-of-type { margin-top: 1.8rem; }
.legal h3 { font-size: 1.05rem; margin-top: 1.5rem; }
.legal ul, .legal ol { padding-left: 1.3rem; }
.legal li { margin-bottom: .4rem; }

.legal-meta {
  color: var(--text-dim);
  font-size: .92rem;
  margin-bottom: 2rem;
}

/* Prüfhinweis am Ende jedes Rechtstexts — sichtbar, nicht im Kleingedruckten */
.review-notice {
  margin-top: 3rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  background: var(--bg-deep);
}
.review-notice h2 {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
  font-size: 1.05rem;
}
.review-notice > :last-child { margin-bottom: 0; }

/* Inhaltsübersicht der Rechtstexte */
.toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; background: var(--surface); }
.toc h2 { font-size: .95rem; border: 0; margin: 0 0 .7rem; padding: 0; color: var(--text); }
.toc ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 2rem; }
@media (max-width: 40rem) { .toc ol { columns: 1; } }
.toc li { margin-bottom: .3rem; font-size: .93rem; }

/* ------------------------------------------------------------------- FAQ */

.faq { border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: .2rem 0;
}
.faq summary {
  cursor: pointer;
  padding: 1rem 0 1rem 1.85rem;
  font-weight: 600;
  position: relative;
  list-style: none;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "";
  position: absolute;
  left: 0; top: 1.25rem;
  width: 12px; height: 12px;
  border: 2px solid var(--accent);
  border-radius: 50%;
}
.faq details[open] summary::before { background: var(--accent); }
.faq summary:hover { color: var(--accent); }
.faq .faq-body { padding: 0 0 1.1rem 1.85rem; color: var(--text-dim); }
.faq .faq-body > :last-child { margin-bottom: 0; }

/* ----------------------------------------------------------------- Fuß */

.colophon {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  padding-block: 2.75rem;
  font-size: .93rem;
}

.colophon-grid {
  display: grid;
  gap: 1.8rem;
}
@media (min-width: 46rem) {
  .colophon-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
}

.colophon h2 {
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: .8rem;
}
.colophon ul { list-style: none; margin: 0; padding: 0; }
.colophon li { margin-bottom: .45rem; }
.colophon a { color: var(--text-dim); text-decoration: none; }
.colophon a:hover { color: var(--accent); text-decoration: underline; }
.colophon p { color: var(--text-faint); max-width: 26rem; }

.colophon-base {
  margin-top: 2.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.5rem;
  align-items: center;
  color: var(--text-faint);
  font-size: .87rem;
}
.colophon-base p { margin: 0; }

/* ------------------------------------------------------------ Hilfsklassen */

.stack > * + * { margin-top: 1.1rem; }
.mt-0 { margin-top: 0; }
.mt-xl { margin-top: 2.5rem; }
.mb-0 { margin-bottom: 0; }
.narrow { max-width: var(--measure); }

/* Druck: Rechtstexte müssen auf Papier lesbar sein */
@media print {
  .masthead, .colophon, .btn-row, .shots, .toc { display: none; }
  body { background: #fff; color: #000; }
  a { color: #000; }
  h2, h3 { color: #000; }
}
