/* Truebound – Grundgerüst.
   Farben, Schrift und Abstände stehen zentral in :root – der Design-Push setzt hier an. */

@font-face {
  font-family: "Besley";
  src: url("/fonts/besley.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Besley";
  src: url("/fonts/besley-italic.ttf") format("truetype");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #000000;
  --fg: #ece9e1;
  --muted: #9a968c;
  --line: #2a2a2a;
  --line-strong: #4a4a4a;
  --serif: "Besley", Georgia, "Times New Roman", serif;
  --gutter: 16px;
  --measure: 46rem;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #ffffff;
}

a:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Startseite */

.home {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem var(--gutter);
  text-align: center;
}

.wordmark {
  margin: 0;
  font-size: clamp(2.75rem, 11vw, 6.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.005em;
}

.home p {
  margin: 1.5rem 0 0;
  color: var(--muted);
}

.home p + p {
  margin-top: 0.5rem;
}

.home a {
  text-decoration: none;
}

.home a:hover {
  text-decoration: underline;
}

/* Kopfzeile der Unterseiten */

.site-header {
  width: 100%;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 1.25rem var(--gutter) 0;
}

.brand {
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.005em;
}

/* Rechtstexte */

.legal {
  flex: 1;
  width: 100%;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 2.5rem var(--gutter) 4rem;
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

.legal h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 6vw, 2.4rem);
  font-weight: 500;
  line-height: 1.15;
  -webkit-hyphens: manual;
  hyphens: manual;
}

.legal .sub {
  margin: 0;
  color: var(--muted);
}

.legal .stand {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-style: italic;
}

.legal .intro {
  margin-top: 2rem;
}

.legal h2 {
  margin: 2.25rem 0 0.6rem;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
}

.legal p {
  margin: 0 0 0.8rem;
}

.legal .abs {
  position: relative;
  padding-left: 2.1rem;
}

.legal .abs .nr {
  position: absolute;
  left: 0;
}

.legal .closing,
.legal .note {
  margin-top: 2.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Tabellen */

.table {
  margin: 1rem 0 1.25rem;
}

.table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.45;
}

.table th,
.table td {
  padding: 0.55rem 0.75rem 0.55rem 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.table th {
  color: var(--muted);
  font-weight: 600;
  border-bottom-color: var(--line-strong);
}

@media (max-width: 40rem) {
  .table table,
  .table tbody,
  .table tr,
  .table td {
    display: block;
  }

  .table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .table tr {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--line);
  }

  .table td {
    padding: 0.1rem 0;
    border: 0;
  }

  .table td::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 0.8rem;
  }
}

/* Impressum */

.facts {
  display: grid;
  grid-template-columns: minmax(8rem, 15rem) 1fr;
  gap: 0.45rem 1.25rem;
  margin: 2rem 0;
}

.facts dt {
  color: var(--muted);
}

.facts dd {
  margin: 0;
}

@media (max-width: 40rem) {
  .facts {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .facts dd {
    margin-bottom: 0.8rem;
  }
}

/* Fußzeile */

.site-footer {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.25rem var(--gutter) 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--fg);
  text-decoration: underline;
}

.site-footer a[aria-current="page"],
.site-footer .current {
  color: var(--fg);
}
