/* Rechtsseiten AI.PEX Quantum Dynamic — Corporate Design Gold × Power Green.
   Eigenständige statische Seiten neben der Experience: keine fremden Origins,
   keine Skripte, keine Cookies. Schriften kommen aus dem eigenen Webroot. */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-variable.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-variable-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "DM Mono";
  src: url("/fonts/dm-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("/fonts/montserrat-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --obsidian: #0e0b06;
  --obsidian-soft: #14100a;
  --ivory: #fdfaf4;
  --ivory-muted: #b9b4aa;
  --ivory-dim: #938b7d;
  --brass: #c9963a;
  --brass-hell: #f5d98b;
  --power-green: #00d44f;
  --power-green-hell: #00f55c;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--obsidian);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(
      ellipse 80% 50% at 15% 0%,
      rgb(0 212 79 / 5%) 0%,
      transparent 60%
    ),
    var(--obsidian);
  color: var(--ivory-muted);
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.72;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--brass-hell);
  text-decoration-color: rgb(201 150 58 / 45%);
  text-underline-offset: 3px;
  transition: color 180ms ease;
}

a:hover {
  color: var(--power-green-hell);
}

:focus-visible {
  outline: 2px solid var(--power-green);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* ---------- Kopf ---------- */

.recht-kopf {
  padding: clamp(1.6rem, 4vh, 3rem) clamp(1.35rem, 7vw, 6rem) 0;
}

.recht-kopf-innen {
  display: flex;
  max-width: 58rem;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  margin: 0 auto;
  gap: 1.2rem 2rem;
}

.marke {
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
  text-decoration: none;
}

.marke span {
  color: var(--ivory);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  letter-spacing: 0.07em;
}

.marke em {
  color: var(--power-green);
  font-style: normal;
}

.marke small {
  color: var(--brass);
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.zurueck {
  color: var(--ivory-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
}

.zurueck:hover {
  color: var(--power-green);
}

/* ---------- Inhalt ---------- */

main {
  max-width: 58rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vh, 5rem) clamp(1.35rem, 7vw, 6rem)
    clamp(3rem, 8vh, 6rem);
}

.eyebrow {
  margin: 0 0 clamp(0.9rem, 2vh, 1.5rem);
  color: var(--power-green);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow span::before {
  width: 24px;
  height: 1px;
  flex: 0 0 auto;
  background: var(--power-green);
  content: "";
}

h1 {
  margin: 0;
  color: var(--ivory);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
  text-wrap: balance;
}

.vorsatz {
  max-width: 40rem;
  margin: clamp(1.1rem, 2.6vh, 1.8rem) 0 0;
  color: var(--ivory-muted);
  font-size: clamp(0.92rem, 1.1vw, 1.06rem);
  line-height: 1.68;
  text-wrap: pretty;
}

h2 {
  margin: clamp(2.6rem, 6vh, 4rem) 0 clamp(0.8rem, 2vh, 1.2rem);
  padding-top: clamp(1.4rem, 3.5vh, 2.2rem);
  border-top: 1px solid rgb(196 162 98 / 26%);
  color: var(--ivory);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

h2 .nummer {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--brass);
  font-family: "DM Mono", "Courier New", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
}

h3 {
  margin: clamp(1.6rem, 3.5vh, 2.2rem) 0 0.55rem;
  color: var(--power-green);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

p {
  margin: 0 0 1rem;
  max-width: 44rem;
  text-wrap: pretty;
}

ul,
ol {
  max-width: 44rem;
  margin: 0 0 1.2rem;
  padding-left: 0;
  list-style: none;
}

li {
  position: relative;
  margin-bottom: 0.62rem;
  padding-left: 1.35rem;
}

li::before {
  position: absolute;
  top: 0.62em;
  left: 0.15rem;
  width: 4px;
  height: 4px;
  background: var(--brass);
  border-radius: 50%;
  content: "";
}

ol {
  counter-reset: punkt;
}

ol > li {
  padding-left: 2.1rem;
  counter-increment: punkt;
}

ol > li::before {
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
  color: var(--brass);
  content: counter(punkt, decimal-leading-zero);
  font-family: "DM Mono", "Courier New", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

strong {
  color: var(--ivory);
  font-weight: 600;
}

/* Stammdaten- und Definitionsblöcke */
.datenblock {
  max-width: 44rem;
  margin: 0 0 1.4rem;
  padding: clamp(1.1rem, 2.6vh, 1.7rem) clamp(1.1rem, 2.6vw, 1.8rem);
  background: var(--obsidian-soft);
  border-left: 2px solid var(--brass);
}

.datenblock p:last-child {
  margin-bottom: 0;
}

.datenblock dt {
  color: var(--brass);
  font-family: "DM Mono", "Courier New", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.datenblock dd {
  margin: 0.2rem 0 0.9rem;
  color: var(--ivory);
}

.datenblock dd:last-child {
  margin-bottom: 0;
}

/* Hinweis mit Signalcharakter — Souveränität, Fristen, Warnungen */
.signal {
  max-width: 44rem;
  margin: 1.4rem 0;
  padding: clamp(1.1rem, 2.6vh, 1.6rem) clamp(1.1rem, 2.6vw, 1.7rem);
  background: rgb(0 212 79 / 5%);
  border-left: 2px solid var(--power-green);
  color: var(--ivory);
}

.signal p:last-child {
  margin-bottom: 0;
}

.signal strong {
  color: var(--power-green-hell);
}

/* Tabellen für TOMs und Subauftragsverarbeiter */
.tabelle {
  max-width: 44rem;
  margin: 1.2rem 0 1.6rem;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

th,
td {
  padding: 0.78rem 0.9rem 0.78rem 0;
  border-bottom: 1px solid rgb(196 162 98 / 22%);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--brass);
  font-family: "DM Mono", "Courier New", monospace;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

td:first-child {
  color: var(--ivory);
  padding-right: 1.4rem;
}

/* ---------- Fuß ---------- */

.recht-fuss {
  padding: clamp(2rem, 5vh, 3.4rem) clamp(1.35rem, 7vw, 6rem)
    clamp(2rem, 5vh, 3rem);
  background: var(--obsidian);
  border-top: 1px solid rgb(196 162 98 / 32%);
}

.recht-fuss-innen {
  max-width: 58rem;
  margin: 0 auto;
}

.stand {
  margin: 0 0 1.4rem;
  color: var(--ivory-dim);
  font-family: "DM Mono", "Courier New", monospace;
  font-size: 0.64rem;
  letter-spacing: 0.1em;
}

.fuss-wege {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 clamp(1.6rem, 4vh, 2.4rem);
  padding: 0;
  gap: 0.5rem 1.5rem;
  list-style: none;
}

.fuss-wege li {
  margin: 0;
  padding: 0;
}

.fuss-wege li::before {
  display: none;
}

.fuss-wege a {
  color: var(--ivory-muted);
  font-size: 0.8rem;
  text-decoration: none;
}

.fuss-wege a:hover,
.fuss-wege a[aria-current="page"] {
  color: var(--power-green);
}

.fuss-urheber {
  max-width: 52rem;
  margin: 0;
  color: #777269;
  font-size: 0.7rem;
  line-height: 1.7;
}

.fuss-signatur {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 1.3rem 0 0;
  gap: 0.5rem 0.85rem;
  font-size: 0.78rem;
}

.fuss-marke-inline {
  color: var(--ivory);
  font-weight: 600;
}

.fuss-marke-inline em {
  color: var(--power-green);
  font-style: normal;
  font-weight: 700;
}

.fuss-trenner {
  width: 1.6rem;
  height: 1px;
  flex: 0 0 auto;
  background: linear-gradient(90deg, var(--brass) 0%, transparent 100%);
}

.fuss-kette {
  color: #e1d5bf;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1rem;
}

.fuss-herz {
  color: var(--brass-hell);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1rem;
  font-style: italic;
}

@media (max-width: 620px) {
  body {
    font-size: 15px;
  }

  th,
  td {
    font-size: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
