/* Rechtstexte: gleiche Tokens wie die App, ruhiges Lese-Layout */
@import url("tokens.css");
* { box-sizing: border-box; }
[hidden] { display: none !important; }
/* In der App (platform.js setzt <html class="native">): Hinweise auf Käufe über die Website ausblenden (Store-Regeln) */
.native .web-only, html:not(.native) .app-only { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--fg);
  font: 15px/1.65 var(--font-body);
  padding-inline: 16px;
  padding-block: calc(16px + env(safe-area-inset-top, 0px)) calc(40px + env(safe-area-inset-bottom, 0px));
}
.wrap { max-width: 72ch; margin: 0 auto; overflow-wrap: break-word; hyphens: auto; }
header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px;
  border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 24px; }
.brand { font: 700 24px/1 var(--font-display); letter-spacing: .04em; text-transform: uppercase; color: var(--fg); text-decoration: none; }
.brand span { color: var(--accent); }
nav { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; }
nav a { color: var(--muted); }
nav a[aria-current="page"] { color: var(--accent); }
h1 { font: 700 34px/1.1 var(--font-display); letter-spacing: .02em; margin: 0 0 6px; text-wrap: balance; hyphens: auto; overflow-wrap: break-word; }
h2 { font: 600 20px/1.3 var(--font-body); margin: 32px 0 8px; text-wrap: balance; }
h3 { font: 600 16px/1.3 var(--font-body); margin: 20px 0 6px; }
p, ul, ol { margin: 0 0 12px; }
li { margin-bottom: 4px; }
a { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.meta { color: var(--muted); font: 13px var(--font-mono); margin-bottom: 20px; }
.draft {
  border: 1px solid var(--warn); border-radius: 6px; padding: 12px 14px; margin-bottom: 24px;
  background: var(--panel); font-size: 14px;
}
.draft strong { color: var(--warn); }
mark.ph { background: var(--accent-soft); color: var(--accent); padding: 0 4px; border-radius: 3px; font-style: normal; }
.box { border: 1px solid var(--line); border-radius: 6px; padding: 12px 16px; background: var(--panel); margin: 12px 0; overflow-wrap: anywhere; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 500; }
.scroll-x { overflow-x: auto; }
footer { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 12px; font-size: 13px; color: var(--muted); }
@media (max-width: 480px) { h1 { font-size: 28px; } }
/* Kündigungs- und Widerrufsformular */
.cform { display: flex; flex-direction: column; gap: 16px; margin: 20px 0; }
.cform fieldset { border: 1px solid var(--line); border-radius: 6px; padding: 12px 16px; margin: 0; display: flex; flex-direction: column; gap: 10px; background: var(--panel); }
.cform legend { font-weight: 600; padding: 0 6px; }
.cform label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.cform label.opt { flex-direction: row; align-items: center; gap: 8px; cursor: pointer; }
.cform input[type=text], .cform input[type=email], .cform input[type=date], .cform select, .cform textarea {
  background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 4px; padding: 8px 10px; font: inherit; width: 100%;
}
.cform input[type=radio] { accent-color: var(--accent); width: 18px; height: 18px; }
.cform :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.req { color: var(--muted); font-size: 12px; }
.hint { color: var(--muted); font-size: 13px; }
.err { border: 1px solid var(--warn); color: var(--warn); border-radius: 4px; padding: 8px 10px; font-size: 14px; }
.cbtn {
  align-self: flex-start; background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); border-radius: 4px;
  padding: 10px 18px; font: 600 16px var(--font-body); cursor: pointer;
}
.cbtn.secondary { background: transparent; color: var(--accent); }
.cbtn:disabled { opacity: .5; cursor: default; }
.decl { white-space: pre-wrap; font: 13px/1.5 var(--font-mono); background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 10px; overflow-wrap: anywhere; }
.contract-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.contract-links a { border: 1px solid var(--line); border-radius: 4px; padding: 6px 10px; color: var(--fg); text-decoration: none; font-size: 13px; }
