/* heylivo – Rechtstexte (Impressum, Datenschutz, AGB), Farben wie auf der Startseite */
:root {
  --cyan: #08bdf8; --blue: #3062f9; --violet-2: #8a3cf5;
  --grad: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 50%, var(--violet-2) 100%);
  --ink: #0d1330; --muted: #5d6480; --line: #e7e9f3; --soft: #f6f6fc; --lav: #efeafe; --lav-2: #e2d9ff; --violet: #7b3cf5;
}
* { box-sizing: border-box; }
body { margin: 0; background: #fff; color: var(--ink); font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--blue); overflow-wrap: anywhere; }
.wrap { max-width: 780px; margin: 0 auto; padding: 0 20px; }

header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.logo { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.logo img { width: 32px; height: 32px; }
.wm { font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.wm span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lang { padding: 7px 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); font-size: 14px; font-weight: 800; text-decoration: none; }
.lang:hover { border-color: var(--lav-2); color: var(--violet); }
/* "← Startseite" in der Mitte der Kopfzeile, wie in der App */
.homelink { display: flex; align-items: center; gap: 5px; padding: 8px 6px; color: var(--muted); font-size: 14px; font-weight: 700; white-space: nowrap; text-decoration: none; }
.homelink:hover { color: var(--violet); }
/* Logo, "← Startseite" und Knopf bleiben auf dem Handy in einer Reihe und brechen nie um */
.wm, .lang, header .open { white-space: nowrap; }
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  header .wrap { gap: 6px; height: 58px; }
  .logo { gap: 6px; }
  .logo img { width: 28px; height: 28px; }
  .wm { font-size: 19px; }
  .homelink { gap: 3px; padding: 8px 2px; font-size: 12.5px; }
  .lang { padding: 6px 10px; font-size: 13px; }
  header .open { padding: 7px 11px; font-size: 13px; }
  h1 { font-size: 26px; }
}
/* sehr schmale Handys: nur das Logo-Symbol, ohne Schriftzug */
@media (max-width: 340px) { .wm { display: none; } }

main { padding: 34px 0 56px; overflow-wrap: break-word; }
h1 { margin: 0 0 6px; font-size: 32px; line-height: 1.2; letter-spacing: -.02em; overflow-wrap: break-word; }
.stand { margin: 0 0 28px; color: var(--muted); font-size: 14px; }
h2 { margin: 34px 0 10px; font-size: 20px; line-height: 1.3; overflow-wrap: break-word; }
h3 { margin: 22px 0 8px; font-size: 17px; }
p, ul, ol { margin: 0 0 14px; }
li { margin: 0 0 6px; }
.box { margin: 0 0 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); }
.box p:last-child { margin-bottom: 0; }
.toc { padding-left: 20px; }
.form { white-space: pre-line; }

footer { padding: 26px 0 36px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
footer nav a { margin-right: 14px; color: var(--muted); text-decoration: none; }
footer nav a:hover, footer nav a[aria-current] { color: var(--violet); }
/* Instagram und TikTok in der Fußzeile */
footer .social { display: flex; gap: 10px; }
footer .social a { display: grid; place-items: center; width: 36px; height: 36px; border: 2px solid currentColor; border-radius: 11px; background: #fff; color: #286ff8; transition: background .2s, transform .2s; }
footer .social a:hover { background: #f3f6ff; transform: translateY(-1px); }
footer .social svg { width: 18px; height: 18px; }
