/* Gemeinsames Design für die Unterseiten (Legal Notice, Privacy Policy, Accessibility).
   Farben, Mauszeiger, Animations- und Halloween-Schalter entsprechen der Hauptseite (../index.html). */
:root {
  --bg: #0b0a10;
  --fg: #f1ece4;
  --dim: #a7a2b0;
  --accent-rgb: 155, 92, 255;   /* Lila */
  --accent2-rgb: 255, 95, 168;  /* Pink */
  --accent: rgb(var(--accent-rgb));
  --accent2: rgb(var(--accent2-rgb));
  --line: rgba(241,236,228,.12);
}
html.halloween {
  --bg: #0a0705;
  --dim: #b3a69a;
  --accent-rgb: 255, 122, 26;   /* Kürbis-Orange */
  --accent2-rgb: 140, 255, 90;  /* Schleim-Grün */
  --line: rgba(255,170,90,.14);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--fg); transition: background-color .8s;
  font-family: ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65; overflow-x: hidden;
}
::selection { background: var(--accent); color: var(--bg); }
a { color: var(--accent2); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent2); outline-offset: 3px; border-radius: 4px; }
/* „Zum Inhalt springen“: nur sichtbar, wenn per Tastatur angesteuert */
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 10px;
  background: var(--fg); color: var(--bg); text-decoration: none; font-weight: 700; transition: top .2s; }
.skip:focus { top: 16px; }

/* Hintergrund: Partikel (gedämpft, damit der Text ruhig lesbar bleibt) + Filmkorn */
#bg { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; opacity: .55; }
.grain { position: fixed; inset: -50%; z-index: 50; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0,0) } 25% { transform: translate(-3%,2%) } 50% { transform: translate(2%,-3%) } 75% { transform: translate(-2%,-1%) } 100% { transform: translate(0,0) } }
#progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 60; background: linear-gradient(90deg, var(--accent), var(--accent2)); }

/* Mauszeiger (wie Hauptseite): Punkt + elastischer Ring, I-Balken über Text */
#cur, #cur-ring { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; transform-origin: 0 0; opacity: 0; transition: opacity .3s; }
html.cc.cur-on #cur, html.cc.cur-on #cur-ring { opacity: 1; }
@media (hover: hover) and (pointer: fine) { html.cc, html.cc * { cursor: none !important; } }
#cur > i { display: block; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--accent2); transition: transform .25s; }
#cur-ring > i { display: block; position: relative; width: 36px; height: 36px; margin: -18px 0 0 -18px;
  border: 1.5px solid rgba(241,236,228,.55); border-radius: 50%;
  transition: width .35s, height .35s, margin .35s, border-color .3s, border-width .2s, border-radius .3s, background .3s; }
html.cur-hover #cur-ring > i { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--accent); background: rgba(var(--accent-rgb), .1); }
html.cur-hover #cur > i, html.cur-text #cur > i { transform: scale(0); }
html.cur-down #cur-ring > i { width: 26px; height: 26px; margin: -13px 0 0 -13px; border-color: var(--accent2); }
#cur-ring > i::before, #cur-ring > i::after { content: ""; position: absolute; left: 50%; width: 10px; height: 2px; margin-left: -5px;
  border-radius: 1px; background: var(--accent2); transform: scaleX(0); transition: transform .3s; }
#cur-ring > i::before { top: 0; } #cur-ring > i::after { bottom: 0; }
html.cur-text #cur-ring > i { width: 2px; height: var(--th, 24px); margin: calc(var(--th, 24px) / -2) 0 0 -1px; border-width: 0; border-radius: 1px; background: var(--accent2); }
html.cur-text #cur-ring > i::before, html.cur-text #cur-ring > i::after { transform: scaleX(1); }

/* Nav (nur die obere Leiste – „body > nav“, damit das Inhaltsverzeichnis nicht mitgemeint ist) */
body > nav { position: fixed; top: 0; left: 0; right: 0; z-index: 40; display: flex; justify-content: space-between; align-items: center;
  padding: 22px 6vw; font-size: 12px; letter-spacing: .25em; text-transform: uppercase; color: var(--dim);
  background: linear-gradient(var(--bg) 60%, transparent); transition: background .8s; }
.logo { display: inline-flex; color: var(--fg); text-decoration: none; font-weight: 700; }
.logo .lc { display: inline-block; overflow: hidden; height: 1.3em; line-height: 1.3em; }
.logo .lc > span { display: block; transition: transform .5s cubic-bezier(.65,0,.35,1); transition-delay: calc(var(--i) * 35ms); }
.logo .lc > span::after { content: attr(data-ch); display: block; color: var(--accent); }
.logo:hover .lc > span, .logo:focus-visible .lc > span { transform: translateY(-50%); }
.navr { display: flex; align-items: center; gap: 14px; }
.fx { display: inline-flex; align-items: center; gap: 10px; background: none; border: 1px solid rgba(241,236,228,.3);
  border-radius: 99px; padding: 7px 12px 7px 14px; color: var(--fg); font: inherit; text-transform: inherit; letter-spacing: .2em; cursor: pointer; }
.fx .sw { position: relative; width: 24px; height: 14px; border-radius: 99px; background: rgba(241,236,228,.25); transition: background .3s; }
.fx .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 8px; height: 8px; border-radius: 50%; background: var(--fg); transition: transform .3s; }
.fx[aria-pressed="true"] .sw { background: var(--accent); }
.fx[aria-pressed="true"] .sw::after { transform: translateX(10px); }
#motionBtn[aria-pressed="false"] .lbl { opacity: .6; text-decoration: line-through; }
@media (max-width: 560px) {
  body > nav { flex-wrap: wrap; row-gap: 10px; padding-top: 16px; padding-bottom: 12px; }
  .navr { width: 100%; }
  .fx { flex: 1 1 45%; justify-content: center; letter-spacing: .12em; padding: 7px 10px; }
}

/* Inhalt: auf breiten Bildschirmen zwei Spalten – links Titel + Inhaltsverzeichnis (bleibt stehen), rechts der Text.
   Breite = Bildschirm minus Rand (statt max-width mit vw-Padding, das auf breiten Monitoren den Text zusammenquetschte). */
main { position: relative; z-index: 2; width: min(1720px, 100% - 2 * clamp(16px, 6vw, 140px)); margin: 0 auto; padding: 140px 0 12vh;
  display: grid; grid-template-columns: minmax(260px, 440px) minmax(0, 1fr); gap: clamp(48px, 6vw, 160px); align-items: start; }
.page-head { position: sticky; top: 120px; }
.page-body { max-width: 92ch; font-size: 1.0625rem; }
/* große Monitore: Schrift mitwachsen lassen, damit die Fläche genutzt wird und die Zeilen trotzdem lesbar bleiben */
@media (min-width: 1800px) { .page-body { font-size: 1.15rem; } .toc a { font-size: 15px; } }
@media (min-width: 2400px) { .page-body { font-size: 1.25rem; } }
/* Titelgröße richtet sich nach der Breite der Titelspalte, damit lange Wörter wie „Accessibility“ nicht umbrechen */
.page-head { container-type: inline-size; }
.page-head h1 { font-size: clamp(2.4rem, 12.5cqi, 5.4rem); }
.page-body > :first-child { margin-top: 0; }
@media (max-width: 960px) {
  main { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 130px; }
  .page-head { position: static; }
  .page-body { max-width: none; }
  .toc { display: none; }
}
.back { display: inline-flex; align-items: center; gap: 10px; color: var(--dim); text-decoration: none;
  font-size: 12px; letter-spacing: .3em; text-transform: uppercase; margin-bottom: 5vh; }
.back svg { transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.back:hover { color: var(--fg); } .back:hover svg { transform: translateX(-6px); }
.tag { display: block; font-size: 13px; letter-spacing: .4em; text-transform: uppercase; color: var(--accent); margin-bottom: 2vh; }
h1 { font-size: clamp(2.6rem, 4.6vw, 4.8rem); line-height: .95; font-weight: 900; letter-spacing: -.035em; margin-bottom: 5vh; overflow-wrap: anywhere; }
h2 { font-size: clamp(1.35rem, 2.2vw, 1.9rem); font-weight: 800; letter-spacing: -.02em; margin: 7vh 0 2vh;
  padding-top: 3vh; border-top: 1px solid var(--line); scroll-margin-top: 110px; }

/* Inhaltsverzeichnis (wird per JS aus den h2 erzeugt), aktueller Abschnitt hervorgehoben */
.toc { border-top: 1px solid var(--line); padding-top: 3vh; }
.toc-title { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--dim); margin-bottom: 1.4vh; }
.toc ol { list-style: none; padding: 0; margin: 0; max-height: calc(100vh - 420px); overflow-y: auto; }
.toc li { margin: 0; }
.toc a { display: block; padding: 7px 0 7px 14px; border-left: 2px solid var(--line); color: var(--dim); text-decoration: none;
  font-size: 14px; line-height: 1.35; transition: color .3s, border-color .3s, padding-left .3s; }
.toc a:hover { color: var(--fg); }
.toc a.active { color: var(--fg); border-left-color: var(--accent); padding-left: 20px; }
h3 { font-size: 1.08rem; font-weight: 700; margin: 4vh 0 1.2vh; color: var(--fg); }
p, ul { color: var(--dim); margin-bottom: 1.1em; }
ul { padding-left: 1.3em; } li { margin-bottom: .5em; } li::marker { color: var(--accent); }
strong { color: var(--fg); }
.address { color: var(--fg); padding-left: 1.1em; border-left: 2px solid var(--accent); }
.updated { margin-top: 8vh; font-size: 13px; letter-spacing: .1em; }

/* Hinweisboxen (ersetzt die alten .info-block) */
.note { display: flex; gap: 16px; align-items: flex-start; border: 1px solid var(--line);
  border-radius: 14px; padding: 16px 20px; margin-bottom: 14px; color: var(--fg);
  background: linear-gradient(160deg, rgba(var(--accent-rgb), .12), rgba(var(--accent2-rgb), .03)); }
.note svg { flex-shrink: 0; margin-top: .2em; color: var(--accent); }
.note p { margin: 0; color: var(--fg); }

/* Kontaktformular */
.contact-form { display: grid; gap: 18px; margin-top: 2vh; padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.02); }
.form-group { display: grid; gap: 6px; }
.form-group label { font-size: 13px; letter-spacing: .15em; text-transform: uppercase; color: var(--fg); }
.req { color: var(--accent2); }
.form-group input, .form-group textarea { width: 100%; padding: 12px 16px; font: inherit; color: var(--fg);
  background: rgba(0,0,0,.35); border: 1px solid rgba(241,236,228,.18); border-radius: 10px; transition: border-color .3s, box-shadow .3s; }
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(241,236,228,.4); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .25); }
.form-group textarea { resize: vertical; min-height: 140px; }
.form-hint { font-size: 13px; margin: 0; }
.submit-btn { justify-self: start; padding: 12px 26px; border: 0; border-radius: 99px; cursor: pointer; font: inherit; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase; font-size: 13px; color: #fff;
  background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: transform .3s, opacity .3s; }
html.halloween .submit-btn { color: #120a04; }
.submit-btn:hover { transform: translateY(-2px); }
.submit-btn:disabled { opacity: .5; transform: none; }

/* Footer */
footer { position: relative; z-index: 2; text-align: center; padding: 6vh 6vw; font-size: 12px; color: var(--dim); letter-spacing: .2em;
  border-top: 1px solid var(--line); }
.legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-bottom: 14px; text-transform: uppercase; }
.legal-links a { color: var(--dim); text-decoration: none; }
.legal-links a:hover, .legal-links a[aria-current="page"] { color: var(--fg); text-decoration: underline; }
footer .ai { max-width: 52ch; margin: 14px auto 0; font-size: 11px; letter-spacing: .05em; }

/* Einblenden beim Laden */
.rise { animation: rise .9s cubic-bezier(.2,.8,.2,1) both; }
.rise.d1 { animation-delay: .12s } .rise.d2 { animation-delay: .24s }
@keyframes rise { from { opacity: 0; transform: translateY(24px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* Ruhiger Modus (Animations-Schalter aus / „Bewegung reduzieren“) */
html.calm *, html.calm *::before, html.calm *::after {
  animation-duration: .001s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
  transition-duration: .001s !important; transition-delay: 0s !important; }
html.calm .grain { display: none; }
html.calm { scroll-behavior: auto; }
