/* Gemeinsames Stylesheet der Rechtsseiten, gleiche Farben und Schrift wie die Laborseite */

@font-face {
  font-family: Archivo;
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100% 125%;
  font-display: swap;
  src: url("/fonts/archivo-var-latin.woff2") format("woff2");
}

:root {
  --paper:      #F4EEE3;
  --card:       #FFFCF6;
  --ink:        #1E221C;
  --text:       #34372F;
  --muted:      #64675D;
  --line:       rgba(30, 34, 28, 0.12);
  --green:      #2FB04C;
  --green-text: #1D9437;
  --green-btn:  #1B8236;
  --lime:       #B9F37C;

  --mono:   ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --pad:    clamp(1.25rem, 3vw, 2.75rem);
  --shadow: 0 1px 2px rgba(70, 52, 20, 0.06), 0 10px 28px -10px rgba(70, 52, 20, 0.22);
}

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

::selection { background: var(--lime); color: var(--ink); }

/* Papier mit dem Bodenraster aus dem Labor */
html {
  background-color: var(--paper);
  background-image:
    linear-gradient(to right, rgba(120, 92, 45, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(120, 92, 45, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  font-family: Archivo, "Helvetica Neue", Arial, sans-serif;
  font-weight: 420;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: var(--pad);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--ink);
  font-weight: 760;
  font-stretch: 112%;
  font-size: 1.3rem;
  letter-spacing: -0.035em;
  text-decoration: none;
}
.brand img {
  width: 3.1rem;
  height: 3.1rem;
  margin: -0.6rem 0 -0.6rem -0.7rem;
}
.pill {
  display: inline-flex;
  align-items: center;
  height: 2.75rem;
  padding: 0 1.3rem;
  border-radius: 999px;
  background: var(--green-btn);
  color: #fff;
  font-weight: 620;
  font-size: 0.98rem;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: background-color 160ms, translate 160ms;
}
.pill:hover { background: #166F2D; translate: 0 -1px; }

/* Links steht der Titel und bleibt beim Lesen stehen, rechts liegt der Text auf einer Karte */
main {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 46rem);
  column-gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
  padding: clamp(1.5rem, 6vh, 4rem) var(--pad) clamp(3rem, 8vh, 5rem);
}

.title {
  position: sticky;
  top: clamp(1.5rem, 6vh, 3.5rem);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.1rem;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--green);
}

h1 {
  margin: 0 0 1rem;
  color: var(--ink);
  font-weight: 780;
  font-size: clamp(2.4rem, 4.4vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  hyphens: manual;
  overflow-wrap: break-word;
}

.stand {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.doc {
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 1.5rem;
  background: var(--card);
  box-shadow: var(--shadow);
}

h2 {
  margin: 2.5rem 0 0.75rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 720;
  font-size: 1.2rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.doc > h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

p, li { font-size: 1rem; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin-bottom: 0.35rem; }
li::marker { color: var(--green); }

address {
  font-style: normal;
  margin: 0 0 1rem;
}

.doc a {
  color: var(--green-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.doc a:hover { color: var(--ink); }

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 1.5rem var(--pad) var(--pad);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.74rem;
}
.foot nav {
  display: flex;
  gap: 1.25rem;
}
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--green);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

@media (max-width: 56rem) {
  main { display: block; }
  .title {
    position: static;
    margin-bottom: 2rem;
  }
  h1 { font-size: clamp(2.2rem, 10vw, 3.4rem); }
}

@media (max-width: 30rem) {
  .doc { border-radius: 1.1rem; }
}
