/* fourscale.de: Rechtsseiten (Impressum, Datenschutz) und 404 im Design „Treppe & Quader".
   Tokens wie auf der Startseite: Tinte #141414, Papier #F5F3EF, Akzent Pfirsich #E7A27E, Geist. */

@font-face {
  font-family: "Geist";
  src: url("/fonts/geist-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #141414;
  --paper: #f5f3ef;
  --text-2: #4a4743;
  --text-3: #6b6862;
  --line: #d6d2cb;
  --peach: #e7a27e;
  --on-dark-1: #bdb8b0;
  --on-dark-3: #8a857d;
  --line-dark: #2a2a2a;
  --pad-x: clamp(20px, 5vw, 64px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: "Geist", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  opacity: 0.7;
}
:focus-visible {
  outline: 2px solid var(--peach);
  outline-offset: 2px;
}

/* --------- Kopfzeile --------- */
.lg-head {
  background: var(--ink);
  color: #fff;
}
.lg-head-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: clamp(20px, 4vw, 40px) var(--pad-x);
}
.lg-brand {
  display: flex;
  align-items: center;
  gap: 0.33em;
  font-size: 22px;
  color: var(--paper);
}
.lg-brand img {
  display: block;
  height: 24px;
  width: auto;
}
.lg-word {
  display: flex;
  align-items: flex-end;
  font-weight: 500;
  letter-spacing: -0.05em;
}
.lg-word i {
  width: 5px;
  height: 5px;
  background: var(--peach);
  transform: rotate(45deg);
  margin: 0 0 5px 4px;
}
.lg-back {
  font-size: 14px;
  border: 1px solid #fff;
  border-radius: 4px;
  padding: 8px 14px;
  white-space: nowrap;
}

/* --------- Inhalt --------- */
.legal-main {
  flex: 1;
  width: 100%;
  max-width: calc(760px + 2 * var(--pad-x));
  margin: 0 auto;
  padding: clamp(56px, 8vw, 112px) var(--pad-x);
}
.legal-main h1 {
  margin: 0 0 clamp(32px, 5vw, 56px);
  font-size: clamp(32px, 6vw, 72px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.02;
  overflow-wrap: break-word;
  hyphens: auto;
}
.legal-main h2 {
  margin: 44px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.legal-main h2:first-of-type {
  margin-top: 0;
}
.legal-main p,
.legal-main li {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-2);
  text-wrap: pretty;
}
.legal-main p {
  margin: 0 0 14px;
}
.legal-main ul {
  margin: 0 0 14px;
  padding-left: 22px;
}
.legal-main li {
  margin-bottom: 6px;
}
.legal-main a {
  color: var(--ink);
  border-bottom: 1px solid currentColor;
}

/* --------- Fußzeile --------- */
.lg-foot {
  background: var(--ink);
  color: var(--on-dark-1);
  padding: 40px var(--pad-x) 32px;
}
.lg-foot-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.lg-foot-mark {
  display: flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.33em;
  font-size: 24px;
  color: var(--paper);
}
.lg-foot-mark img {
  display: block;
  height: 1.35em;
  width: auto;
}
.lg-stack {
  display: flex;
  flex-direction: column;
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.9;
}
.lg-stack span:last-child {
  display: flex;
  align-items: flex-end;
}
.lg-stack i {
  width: 0.23em;
  height: 0.23em;
  background: var(--peach);
  transform: rotate(45deg);
  margin: 0 0 0.15em 0.17em;
}
.lg-foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 14px;
}
.lg-foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--on-dark-3);
  border-top: 1px solid var(--line-dark);
  padding-top: 20px;
}

/* --------- 404 --------- */
.nf {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  text-align: center;
  padding: 72px var(--pad-x);
}
.nf img {
  display: block;
  width: 88px;
  height: 88px;
}
.nf h1 {
  margin: 0;
  font-size: clamp(36px, 5.4vw, 64px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.04;
  max-width: 14ch;
}
.nf p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 440px;
}
.nf .btn {
  display: inline-block;
  font-size: 15px;
  font-weight: 500;
  background: var(--ink);
  color: var(--paper);
  border-radius: 4px;
  padding: 12px 18px;
}

@media (max-width: 520px) {
  .lg-back {
    padding: 7px 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
