
/* ---------- Header mit Sprachmenue ---------- */
.header-right { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; justify-content: flex-end; }
.site-header nav { flex-wrap: wrap; }
@media (max-width: 640px) {
  .site-header nav a[href^="#"] { display: none; }   /* Ankerlinks auf dem Handy ausblenden */
}

.lang-switch { position: relative; }
.lang-switch summary {
  list-style: none; cursor: pointer; user-select: none;
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .88rem; font-weight: 600; color: var(--ink);
  border: 1px solid var(--rule); border-radius: 999px; padding: .3rem .75rem;
  background: var(--surface);
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary svg { width: 1.05em; height: 1.05em; color: var(--blue-ink); }
.lang-switch summary::after {
  content: ""; width: .38em; height: .38em; margin-left: .1rem;
  border: solid var(--muted); border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg) translateY(-25%);
}
.lang-switch[open] summary { border-color: var(--blue); }
.lang-switch summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.lang-switch ul {
  position: absolute; right: 0; top: calc(100% + .4rem); z-index: 30;
  list-style: none; margin: 0; padding: .35rem; min-width: 11rem;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 8px;
  box-shadow: 0 10px 28px rgba(8, 14, 22, .14);
}
.lang-switch li a {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .45rem .7rem; border-radius: 5px;
  color: var(--ink); text-decoration: none; font-size: .95rem;
}
.lang-switch li a span { color: var(--muted); font-size: .75rem; font-weight: 600; letter-spacing: .04em; }
.lang-switch li a:hover { background: color-mix(in srgb, var(--blue) 10%, transparent); }
.lang-switch li a[aria-current] { color: var(--blue-ink); font-weight: 700; }

/* ---------- Dokumentseiten (introduction, import, policy) ---------- */
.doc .doc-lead { font-size: 1.15rem; color: var(--muted); margin: -.75rem 0 1.5rem; }
.doc h3 { font-size: 1rem; margin: 1.4rem 0 .3rem; }
.doc ul, .doc ol { padding-left: 1.4em; margin: .5rem 0; }
.doc li { margin: .3rem 0; }
.doc .note { margin: 1rem 0; }
.doc .ui {
  background: color-mix(in srgb, var(--blue) 9%, var(--surface));
  border: 1px solid var(--rule); border-radius: 4px;
  padding: .02em .4em; font-weight: 600; font-size: .94em; white-space: nowrap;
}
.doc .name-example {
  display: inline-block; margin: .4rem 0; padding: .5rem .9rem;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 6px;
}
.doc .phase {
  font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted); margin: 1.8rem 0 .5rem;
}
.doc ol.steps { list-style: none; counter-reset: step; padding-left: 0; margin: .8rem 0; }
.doc ol.steps > li { counter-increment: step; position: relative; padding: 0 0 1.1rem 2.8rem; margin: 0; }
.doc ol.steps > li::before {
  content: counter(step);
  position: absolute; left: 0; top: -.05em;
  width: 1.9em; height: 1.9em; line-height: 1.9em; text-align: center; border-radius: 50%;
  background: var(--blue); color: var(--on-blue);
  font-weight: 700; font-size: .9em; font-variant-numeric: tabular-nums;
}
.doc ol.steps > li:not(:last-child)::after {
  content: ""; position: absolute; left: .85em; top: 2em; bottom: .25rem;
  border-left: 2px solid var(--rule);
}
.doc ol.steps .note { margin: .6rem 0 0; }

.doc-policy .doc-header { border-left: 6px solid var(--blue); padding-left: 1rem; margin-bottom: 2rem; }
.doc-policy .doc-header h1 { margin-bottom: .25rem; }
.doc-policy .meta { color: var(--muted); margin: 0; }
.doc-policy .summary {
  background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--blue);
  border-radius: 4px; padding: .9rem 1.1rem;
}
.doc-policy h2 { padding-top: 1rem; border-top: 1px solid var(--rule); }
.doc-policy address { font-style: normal; }

@media print {
  .site-header, .site-footer { display: none; }
  body { background: #fff; color: #000; }
  .legal { padding: 0; }
  .doc h2, .doc h3 { break-after: avoid; }
}

/* Hinweis unter den Store-Buttons (TestFlight-Beta) */
.stores + .store-hint { margin: -2.25rem 0 2.5rem; font-size: .9rem; color: var(--muted); max-width: 60ch; }

/* Abo-Hinweis an Screenshot-Gruppen */
.shot-group-title .badge-sub {
  order: 1; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--blue-ink); border: 1px solid var(--blue); border-radius: 999px;
  padding: .1rem .55rem; white-space: nowrap;
}
.shot-group .sub-note { margin: -.75rem 0 1.25rem; font-size: .9rem; color: var(--muted); }
.shot-nav a .sub-dot { color: var(--blue-ink); font-weight: 700; margin-left: .3rem; }

/* Sternchen an Abo-Features + Fussnote */
.features .sub-star { color: var(--blue-ink); font-size: .8em; margin-left: .15em; }
.features-note { margin: 2rem 0 0; font-size: .9rem; color: var(--muted); }

/* FAQ */
.faq-toc {
  background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--blue);
  border-radius: 4px; padding: .6rem 1.1rem; margin: 0 0 2.5rem; scroll-margin-top: 1.5rem;
}
.faq-toc ol { list-style: none; counter-reset: q; padding: 0; margin: 0; }
.faq-toc li { counter-increment: q; margin: 0; border-top: 1px solid var(--rule); }
.faq-toc li:first-child { border-top: 0; }
.faq-toc a {
  display: flex; gap: .8rem; align-items: baseline; padding: .6rem 0;
  color: var(--ink); text-decoration: none; font-weight: 600;
}
.faq-toc a::before {
  content: "Q" counter(q); flex: none; font-size: .78rem; font-weight: 700;
  color: var(--on-blue); background: var(--blue); border-radius: 4px; padding: .05rem .4rem;
  font-variant-numeric: tabular-nums;
}
.faq-toc a:hover { color: var(--blue-ink); }
.faq-item { scroll-margin-top: 1.5rem; padding: 1.2rem 0 .4rem; border-top: 1px solid var(--rule); }
.faq-item h2 { margin: 0 0 .6rem; font-size: 1.2rem; }
.faq-item:target h2 { color: var(--blue-ink); }
.faq-back { font-size: .88rem; margin: .4rem 0 0; }
.faq-back a { color: var(--muted); }
.faq-more { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); color: var(--muted); }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
