/* Gemeinsamer Look für Impressum, Datenschutz und Danke-Seite (passend zur Startseite) */
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/dm-sans-v17-latin-regular.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/dm-sans-v17-latin-500.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/dm-sans-v17-latin-700.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 800; font-display: swap; src: url('fonts/dm-sans-v17-latin-800.woff2') format('woff2'); }

:root {
  --bg: #FBF7EF;
  --surface: #EFE7D6;
  --ink: #2B2418;
  --muted: #5A4E3D;
  --yellow: #E8B341;
  --red: #3F5A3A;
  --red-deep: #2E4229;
  --radius: 22px;
  --sans: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
::selection { background: var(--yellow); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); letter-spacing: -0.04em; }
h2 { font-size: 1.5rem; letter-spacing: -0.02em; }
h3 { font-size: 1.1rem; letter-spacing: -0.01em; margin-top: 1.4em; }
p, ul { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
li { margin-bottom: .35em; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 300; background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 999px; text-decoration: none; font-weight: 700; transform: translateY(-170%); transition: transform .3s; }
.skip-link:focus { transform: translateY(0); }

.nav { position: sticky; top: 0; z-index: 100; background: var(--bg); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; background: #fff; border: 3px solid var(--yellow); flex-shrink: 0; }
.logo-mark img { width: 100%; height: 100%; object-fit: cover; }
.logo-name { font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; white-space: nowrap; }
.logo-sub { display: block; font-weight: 500; font-size: .875rem; letter-spacing: 0; color: var(--muted); }
.back-link { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 700; white-space: nowrap; transition: background .2s; }
.back-link:hover { background: #1A140D; }

.page-hero { background: var(--yellow); padding: 72px 0 64px; margin-bottom: 64px; }
.page-hero h1 { margin: 0; }
.page-hero p { max-width: 42rem; margin: 18px 0 0; font-size: 1.2rem; }

.content { max-width: 820px; padding-bottom: 96px; }
.content section { margin-bottom: 52px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 24px 28px; margin: 0 0 1em; }
.card p:last-child { margin-bottom: 0; }
.toc { background: var(--surface); border-radius: var(--radius); padding: 26px 30px; margin-bottom: 56px; }
.toc h2 { font-size: 1.1rem; margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 1.3em; columns: 2; column-gap: 32px; }
.toc li { break-inside: avoid; }
.check { background: #FBF1EC; border-radius: 14px; padding: 14px 18px; font-size: .95rem; }
.updated { color: var(--muted); font-size: .875rem; }

footer { background: var(--ink); color: #D9CFBE; padding: 34px 0; font-size: .875rem; }
.foot-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer .legal { display: flex; gap: 22px; }
footer a { color: var(--bg); text-decoration: none; }
footer a:hover, footer a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--yellow); }

/* Danke-Seite */
.thanks { min-height: calc(100vh - 76px); min-height: calc(100dvh - 76px); display: grid; place-items: center; padding: 48px 20px; background: var(--yellow); }
.thanks-card { background: var(--bg); border-radius: var(--radius); padding: 48px 40px 42px; max-width: 520px; text-align: center; }
.thanks-card svg { margin: 0 auto 20px; display: block; animation: spin 40s linear infinite; }
.thanks-card h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); }
.thanks-card p { margin-bottom: 28px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 17px 30px; border-radius: 999px; background: var(--red); color: #fff; font-weight: 700; text-decoration: none; transition: background .2s, transform .25s; }
.btn:hover { background: var(--red-deep); transform: translateY(-2px); }
@keyframes spin { to { rotate: 360deg; } }

@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .nav-inner { height: 68px; }
  .logo-sub { display: none; }
  .back-link { padding: 10px 16px; font-size: .95rem; }
  .page-hero { padding: 52px 0 46px; margin-bottom: 44px; }
  .toc ol { columns: 1; }
  .card { padding: 20px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
