/* Document pages (Impressum, Datenschutz, Imprint, Privacy, 404): the home page's desktop look, built for reading. */
@font-face { font-family: "Fredoka"; src: url("/assets/fonts/fredoka/fredoka-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("/assets/fonts/fredoka/fredoka-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("/assets/fonts/space-mono/space-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --ink: #1f1830;
  --ink-2: #5b5068;
  --win: #fffaf1;
  --bar: #f2e8d8;
  --line: #e2d5c1;
  --coral: #ff6f4f;
  --link: #b8402a;
  --plum: #3b1f55;
  --desk: #fbe7d3;
  --r: 16px;
  --shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 24px 48px rgba(31,24,48,.18), 0 4px 10px rgba(31,24,48,.12);
  --round: "Fredoka", "Avenir Next Rounded", "Arial Rounded MT Bold", system-ui, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Space Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background:
    linear-gradient(to bottom, #3a1e54 0 40px, #7c2c69 40px 80px, #d24e69 80px 120px, #fb9d5c 120px 160px, var(--desk) 160px) no-repeat,
    var(--desk);
  color: var(--ink);
  font-family: var(--text);
  font-size: 18px;
  line-height: 1.65;
}
a { color: inherit; }
svg { display: block; }

/* menu bar */
.menubar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  height: 34px; padding: 0 18px;
  background: rgba(255,246,232,.9);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
          backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid rgba(31,24,48,.08);
  font-family: var(--round); font-size: 15px; line-height: 1;
}
.menubar a { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; }
.menubar a:hover { text-decoration: underline; }
.menubar svg { width: 20px; height: 20px; }

/* window */
.desk { max-width: 920px; margin: 0 auto; padding: 56px 24px 0; }
.window { background: var(--win); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.titlebar {
  position: relative;
  display: flex; align-items: center; justify-content: flex-end;
  min-height: 44px; padding: 6px 12px 6px 84px;
  background: var(--bar);
  border-bottom: 1px solid var(--line);
  font-family: var(--round); font-size: 15px; font-weight: 700; line-height: 1;
}
.lights { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); display: flex; gap: 8px; }
.lights i { width: 13px; height: 13px; border-radius: 50%; background: #ff6159; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.lights i:nth-child(2) { background: #ffbd2e; }
.lights i:nth-child(3) { background: #28c941; }
.langs { display: flex; gap: 2px; padding: 3px; background: #e8dcc8; border-radius: 10px; }
.langs a { display: block; padding: 6px 12px; border-radius: 7px; text-decoration: none; color: var(--ink-2); font-weight: 500; }
.langs a[aria-current] { background: var(--win); color: var(--ink); font-weight: 700; box-shadow: 0 1px 2px rgba(31,24,48,.15); }
.langs a:not([aria-current]):hover { color: var(--ink); }

/* document text */
.doc { padding: 44px 56px 56px; }
.doc > * { max-width: 66ch; }
.doc h1 { margin: 0 0 18px; font-family: var(--round); font-weight: 700; font-size: 40px; line-height: 1.1; letter-spacing: -.01em; }
.doc h2 { margin: 44px 0 10px; font-family: var(--round); font-weight: 700; font-size: 26px; line-height: 1.2; }
.doc h3 { margin: 30px 0 6px; font-family: var(--round); font-weight: 700; font-size: 21px; line-height: 1.25; }
.doc p { margin: 0 0 16px; }
.doc ul { margin: 0 0 16px; padding-left: 1.3em; }
.doc li { margin: 0 0 8px; }
.doc li::marker { color: var(--coral); }
.doc a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.doc a:hover { text-decoration-thickness: 2px; }
.doc code { font-family: var(--mono); font-size: .85em; background: #f3e8d6; border-radius: 5px; padding: 1px 5px; overflow-wrap: anywhere; }
.doc em { color: var(--ink-2); }
.doc .todo {
  font-family: var(--mono); font-size: .85em; font-weight: 400;
  background: #ffe14d; color: #5a1200;
  outline: 2px dashed #d0331c; outline-offset: 1px; border-radius: 3px;
  padding: 0 4px;
}
a:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; border-radius: 4px; }

/* button (404) */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--round); font-weight: 700; font-size: 20px; line-height: 1;
  color: #fff; text-decoration: none;
  background: var(--coral);
  padding: 15px 24px 14px;
  border-radius: 999px;
  box-shadow: 0 5px 0 #c94a30, 0 12px 24px rgba(255,111,79,.35);
}
.btn:hover { transform: translateY(-2px); }
.doc a.btn { color: #fff; text-decoration: none; }

/* dock footer */
footer { margin-top: 90px; padding: 0 16px 34px; display: grid; justify-items: center; gap: 14px; font-family: var(--round); }
.dock {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 6px;
  padding: 10px 12px; margin: 0;
  background: rgba(255,250,241,.7);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 22px;
  box-shadow: 0 14px 30px rgba(31,24,48,.18);
  list-style: none; line-height: 1.2;
}
.dock li { display: flex; }
.dock .app { display: flex; align-items: center; gap: 10px; padding-right: 10px; margin-right: 4px; border-right: 1px solid var(--line); font-weight: 700; text-decoration: none; }
.dock .app svg { width: 40px; height: 40px; }
.dock a { text-decoration: none; padding: 8px 12px; border-radius: 12px; font-size: 15px; font-weight: 500; }
.dock a:hover { background: rgba(31,24,48,.06); }
.dock a[aria-current] { background: rgba(31,24,48,.08); font-weight: 700; }
footer p { margin: 0; font-family: var(--mono); font-size: 12px; color: var(--ink-2); }

@media (max-width: 700px) {
  .menubar { padding: 0 12px; font-size: 14px; }
  .desk { padding: 28px 10px 0; }
  .titlebar { padding-left: 74px; }
  .langs a { padding: 6px 10px; }
  .doc { padding: 26px 20px 34px; }
  .doc h1 { font-size: 32px; }
  .doc h2 { font-size: 23px; margin-top: 36px; }
  .doc h3 { font-size: 19px; }
  body { font-size: 17px; }
  .dock li:first-child { width: 100%; justify-content: center; }
  .dock .app { width: 100%; justify-content: center; border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 8px; margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
