/* Shared look of the legal pages (imprint.html, privacy.html): the same CRT screen as
   index.html — bezel, corner brackets, pre-rendered glass (glass.js), menu bar — built for
   reading. No animation and no blurred glow on body text: the page scrolls, and on a CPU
   renderer every scrolled frame re-renders whatever sits on screen. */

/* ===== FONTS (self-hosted, GDPR compliant) ===== */
@font-face {
  font-family: 'Audiowide';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/Audiowide-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Audiowide';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/Audiowide-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Kode Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/KodeMono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Kode Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/KodeMono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/OpenSans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/OpenSans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { background: #0f0f0f; scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
::selection { background: #0f0f0f; color: #f5f5f3; -webkit-text-fill-color: #f5f5f3; }

body {
  font-family: 'Open Sans', sans-serif;
  color: #1f1f1f;
  line-height: 1.7;
  min-height: 100vh;
}
/* the screen: a fixed layer of its own, not a fixed body background — background-attachment:
   fixed made Firefox's software renderer repaint the whole background on every scroll step
   (scrolling 1.1 → 0.2 CPU cores) */
body::before {
  content: '';
  position: fixed;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f5f5f3 0%, #f3f3ed 50%, #f5f5f3 100%);
  pointer-events: none;
  z-index: 0;
}
main { position: relative; z-index: 1; }

/* ===== CRT SCREEN CHROME (same geometry as index.html) ===== */
.crt-frame {
  position: fixed;
  inset: 0;
  border: 8px solid #0f0f0f;
  border-radius: 22px;
  pointer-events: none;
  z-index: 10001;
}
.glass {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10000;
  visibility: hidden;                  /* shown together with hiding the CSS layers below: one class, one frame */
}
html.glass-ready .glass { visibility: visible; }
.glass.warm { visibility: visible; clip-path: inset(0 calc(100% - 1px) calc(100% - 1px) 0); }   /* pre-warm: 1 px under the bezel */
/* first paint: dark until the bezel and the glass layers exist (html.crt-wait, see index.html) */
html.crt-wait body { visibility: hidden; }

/* The glass as CSS — the same layers and values as index.html's fallback — from the very first
   frame until glass.js has its image ready (html.glass-ready); without them a page opened with a
   bare screen for a moment. Vignette and scanlines sit on <html> because body::before is the
   screen background here. */
html::before, html::after {
  content: '';
  position: fixed;
  top: 8px;
  left: 8px;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  border-radius: 14px;
  pointer-events: none;
}
html::before {
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.45) 100%);
  z-index: 9998;
}
html::after {
  background: repeating-linear-gradient(transparent, transparent 2px, rgba(0, 0, 0, 0.03) 2px, rgba(0, 0, 0, 0.03) 4px);
  z-index: 9999;
}
.grain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10000;
  opacity: 0.03;
}
.crt-frame { box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.35), inset 0 0 4px rgba(0, 0, 0, 0.6); }
html.glass-ready::before, html.glass-ready::after, html.glass-ready .grain { display: none; }
html.glass-ready .crt-frame { box-shadow: none; }
.crt-corners { position: fixed; inset: 0; pointer-events: none; z-index: 9995; }
.crt-corner { position: fixed; width: 26px; height: 26px; }
.crt-corner::before, .crt-corner::after { content: ''; position: absolute; background: #0f0f0f; }
.crt-corner::before { width: 100%; height: 1.5px; }
.crt-corner::after  { width: 1.5px; height: 100%; }
.crt-corner.tl { top: 22px; left: 22px; }
.crt-corner.tr { top: 22px; right: 22px; }
.crt-corner.bl { bottom: 22px; left: 22px; }
.crt-corner.br { bottom: 22px; right: 22px; }
.crt-corner.tl::before, .crt-corner.tl::after { top: 0; left: 0; }
.crt-corner.tr::before, .crt-corner.tr::after { top: 0; right: 0; }
.crt-corner.bl::before, .crt-corner.bl::after { bottom: 0; left: 0; }
.crt-corner.br::before, .crt-corner.br::after { bottom: 0; right: 0; }

/* ===== LANGUAGE: both versions are in the page; the <head> script picks one before the first paint
   (German without JavaScript) ===== */
html:not(.lang-en) [lang="en"].i18n,
html.lang-en [lang="de"].i18n { display: none; }

/* ===== MENU BAR ===== */
.topbar {
  position: fixed;
  top: 8px;
  left: 8px;
  right: 8px;
  z-index: 4;
  border-radius: 14px 14px 0 0;
  padding: calc(1.5rem - 8px) calc(3.2rem - 8px) 0.35rem calc(5vw - 0.55rem);
  border-bottom: 1px solid rgba(15, 15, 15, 0.14);
  background: linear-gradient(180deg, rgba(245, 245, 243, 0.97) 60%, rgba(245, 245, 243, 0.88));
  display: flex;
  align-items: center;
  gap: 0.4rem 1.4rem;
  font-family: 'Kode Mono', monospace;
  font-size: clamp(0.78rem, 0.86vw, 1.05rem);
  letter-spacing: 0.18em;
}
.topbar a, .topbar button {
  color: #3f3f3f;
  text-decoration: none;
  background: transparent;
  border: none;
  font: inherit;
  letter-spacing: inherit;
  padding: 0.4rem 0.55rem;
}
.topbar .home { margin-right: auto; }
.tabs { display: flex; gap: 0.2rem 0.6rem; }
.tabs a[aria-current="page"] { background: #0f0f0f; color: #f5f5f3; }
.topbar a:focus-visible, .topbar button:focus-visible { outline: 1.5px dashed #0f0f0f; outline-offset: 2px; }
@media (hover: hover) {
  .topbar a:hover { background: #0f0f0f; color: #f5f5f3; }
  .tabs a[aria-current="page"]:hover { background: #3f3f3f; }
}
/* DE / EN: a flat slide switch at the system monitor's type size, [■ EN] ⇄ [DE ■]. The
   label names the active language (:root[lang]); on a switch the knob crosses over while the
   old label slides out one side and the new one slides in from the other. */
.topbar .lang-switch {
  font-size: 0.86em;
  letter-spacing: 0.08em;
  padding: 0.4rem 0;
  color: #3f3f3f;
  cursor: pointer;
}
.lang-switch:focus-visible { outline: 1.5px dashed #0f0f0f; outline-offset: 2px; }
.lsw-track {
  position: relative;
  display: block;
  width: 3.3em;
  height: 1.3em;
  border: 1px solid rgba(15, 15, 15, 0.35);
  overflow: hidden;
}
.lsw-knob,
.lsw-label {
  position: absolute;
  transition: transform 0.25s ease;
}
.lsw-knob { top: 0.2em; bottom: 0.2em; left: 0.2em; width: 0.9em; background: #3f3f3f; opacity: 0.75; }
.lsw-label { top: 0; bottom: 0; display: flex; align-items: center; }
.lsw-en { right: 0.3em; }
.lsw-de { left: 0.35em; transform: translateX(-2.6em); }
:root[lang="de"] .lsw-knob { transform: translateX(calc(2em - 2px)); }   /* the track is border-box: 3.3em − 2 × 1px border − knob − 2 × inset */
:root[lang="de"] .lsw-en { transform: translateX(2.6em); }
:root[lang="de"] .lsw-de { transform: none; }

/* ===== DOCUMENT: one centred column ===== */
.doc {
  width: min(54rem, 100% - 2 * (8px + 5vw));
  margin: 0 auto;
  padding: calc(8px + 6.5rem) 0 12vh;
}
.doc h1 {
  font-family: 'Audiowide', cursive;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.7rem, 3.4vw, 3.2rem);
  line-height: 1.2;
  letter-spacing: 0.06em;
  color: #0f0f0f;
  -webkit-text-fill-color: #0f0f0f;
  /* chromatic aberration only: no blur, so scrolling stays cheap */
  text-shadow: 2px 1px 0 rgba(100, 100, 110, 0.2), -1px -1px 0 rgba(100, 100, 110, 0.12);
  overflow-wrap: anywhere;
}
.doc h1::after { content: '_'; }
.lead {
  margin-top: 0.6rem;
  font-family: 'Kode Mono', monospace;
  font-size: clamp(0.78rem, 0.95vw, 0.95rem);
  color: #3f3f3f;
}
.doc section {
  margin-top: 2.6rem;
  border-top: 1px solid rgba(15, 15, 15, 0.14);
  padding-top: 1.1rem;
}
.doc h2 {
  font-family: 'Kode Mono', monospace;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(0.7rem, 0.82vw, 0.9rem);
  letter-spacing: 0.3em;
  color: #3f3f3f;
  margin-bottom: 0.8rem;
}
.doc p, .doc li { font-size: 1.03rem; }
.doc p + p { margin-top: 0.8rem; }
.doc ul { list-style: none; margin-top: 0.8rem; }
.doc li { padding-left: 1.2em; position: relative; }
.doc li + li { margin-top: 0.55rem; }
.doc li::before { content: '\25B8'; position: absolute; left: 0; color: #6f6f73; font-size: 0.8em; top: 0.25em; }
.doc a { color: #0f0f0f; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.doc a:focus-visible { outline: 1.5px dashed #0f0f0f; outline-offset: 3px; }
.mono { font-family: 'Kode Mono', monospace; letter-spacing: 0.04em; }

/* the imprint's facts: label | value. The label column fits the longest German label
   (UNTERNEHMENSGEGENSTAND) at the largest font size; hyphenation is the safety net. */
.facts {
  display: grid;
  grid-template-columns: 19rem 1fr;
  margin-top: 2.6rem;
  border-top: 1px solid rgba(15, 15, 15, 0.14);
}
.facts dt, .facts dd { padding: 0.75rem 0; border-bottom: 1px solid rgba(15, 15, 15, 0.08); }
.facts dt {
  font-family: 'Kode Mono', monospace;
  text-transform: uppercase;
  font-size: clamp(0.66rem, 0.78vw, 0.84rem);
  letter-spacing: 0.18em;
  color: #6f6f73;
  padding-right: 1.5rem;
  hyphens: auto;
  overflow-wrap: break-word;
  padding-top: 0.95rem;
}
.facts dd { color: #0f0f0f; hyphens: auto; overflow-wrap: break-word; }

.stamp {
  margin-top: 3rem;
  font-family: 'Kode Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: #6f6f73;
}

/* ===== PHONES / SMALL TABLETS ===== */
@media (max-width: 768px) {
  .crt-frame { border-width: 5px; border-radius: 16px; }
  html::before, html::after { top: 5px; left: 5px; width: calc(100% - 10px); height: calc(100% - 10px); border-radius: 11px; }
  html::before { background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.25) 100%); }
  body::before { top: 5px; left: 5px; right: 5px; bottom: 5px; border-radius: 11px; }
  .topbar {
    top: 5px; left: 5px; right: 5px;
    border-radius: 11px 11px 0 0;
    padding: calc(0.9rem - 5px) calc(2.4rem - 5px) 0.3rem calc(2.4rem - 5px);
    flex-wrap: wrap;
  }
  .crt-corner { width: 18px; height: 18px; }
  .crt-corner.tl { top: 15px; left: 15px; }
  .crt-corner.tr { top: 15px; right: 15px; }
  .crt-corner.bl { bottom: 15px; left: 15px; }
  .crt-corner.br { bottom: 15px; right: 15px; }
  .doc { width: calc(100% - 3rem); padding: calc(5px + 8.5rem) 0 14vh; }
  .facts { grid-template-columns: 1fr; }
  .facts dt { padding-bottom: 0; border-bottom: none; padding-top: 0.9rem; }
  .facts dd { padding-top: 0.2rem; }
}
@media (max-width: 560px) {
  .topbar { font-size: 0.74rem; letter-spacing: 0.12em; gap: 0.1rem 0.6rem; }
  .topbar .home { flex-basis: 100%; order: 0; margin-right: 0; padding-left: 0; }
  .tabs { order: 1; margin-left: -0.55rem; }
  .lang-switch { order: 2; margin-left: auto; }
}
