:root { color-scheme: light; }
* { box-sizing: border-box; }
body { margin: 0; background: #f6efe4; color: #2b211c; font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
main { max-width: 760px; margin: 0 auto; padding: 40px 20px 80px; }
h1, h2 { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; font-weight: 600; line-height: 1.2; }
/* lange Einzelwörter wie „Datenschutzerklärung“ dürfen auf schmalen Handys nicht seitlich überstehen (lang="de" ist gesetzt) */
h1 { font-size: clamp(1.5rem, 7vw, 2rem); overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
h2 { font-size: 1.25rem; margin-top: 2em; }
a { color: #8f3f1d; }
.back { display: inline-block; margin-bottom: 20px; text-decoration: none; }
.box { background: #fffaf2; border: 1px solid #e2d5c2; border-radius: 12px; padding: 18px 20px; }
.todo { background: #ffe9a8; padding: 0 4px; border-radius: 3px; }

/* Ergänzungen für AGB und Widerruf, auf allen Rechtsseiten nutzbar */
h3 { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; font-weight: 600; font-size: 1.1rem; line-height: 1.3; margin: 1.8em 0 .5em; }
.stand { margin-top: 3em; color: #6f6155; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Fußzeile mit hervorgehobenem Link „Vertrag widerrufen“ (§ 13a FAGG, § 356a BGB) */
.legal-foot { max-width: 760px; margin: 0 auto; padding: 22px 20px 56px; border-top: 1px solid #e2d5c2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; font-size: .92rem; color: #5d4f45; }
.legal-foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.legal-foot nav a { color: #5d4f45; }
.widerruf-link { display: inline-block; font-weight: 700; font-size: 1rem; line-height: 1.2; color: #8f3f1d; background: #fffaf2; border: 2px solid #b4532a; border-radius: 999px; padding: 9px 18px; text-decoration: none; }
.widerruf-link:hover, .widerruf-link:focus-visible { background: #b4532a; color: #fff; }
/* auch Zwischenüberschriften dürfen am Handy nicht überlaufen (h1 siehe oben) */
h2, h3 { overflow-wrap: break-word; }
.legal-foot .copy { flex-basis: 100%; margin: 0; color: #6f6155; font-size: .9rem; }
.muted { color: #5d4f45; }

/* Druck: nur der Rechtstext, ohne Navigation; externe Links mit Adresse */
@media print {
  body { background: #fff; }
  main { max-width: none; padding: 0; }
  .back, .legal-foot nav, .widerruf-link { display: none; }
  .legal-foot { border: 0; padding: 0; }
  tr, .box, .hinweis { break-inside: avoid; }
  h2, h3 { break-after: avoid; }
  main a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; }
}
