/* Chiemgauer Zellkulturlabor GmbH i. G.
   Umsetzung von DESIGN.md, Richtung "Plakat".

   Grundsatz: alles bündig an einer linken Kante. Sehr große, eng
   gesetzte Überschriften, viel Weißraum, eine einzige Signalfarbe für
   Ziffern und Marken. Keine Kästen, keine Symbole, keine Schatten. */

@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-800.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}

:root {
  /* Farbwelt: tiefes Petrol als Grundton, blasses Petrol fuer Flaechen,
     Rostrot als Signal. Kontraste gegen Papier: ink 15.2, ink-2 9.1,
     muted 4.8, signal 6.2 zu 1. Auf Dunkel: Text 11.1, Weiss 17.0. */
  --ink:      #10262B;   /* Ueberschriften, Fliesstext */
  --ink-2:    #2F4A50;   /* zweite Ebene */
  --muted:    #5E7378;   /* Navigation, Bildunterschrift, Tabellenkopf */
  --line:     #C7D6D6;   /* tragende Trennlinien */
  --line-2:   #DFEAE9;   /* Zeilentrenner */
  --paper:    #F9FBFB;   /* Grundflaeche */
  --paper-2:  #FFFFFF;   /* Eingabefelder */
  --ground:   #E4EEED;   /* abgesetzte Abschnitte */
  --dark:     #0C1F23;   /* Fussbereich, Bildflaechen */
  --dark-t:   #C3D4D5;   /* Text auf Dunkel */

  /* Signalfarbe, punktuell. Auf Dunkel eine aufgehellte Fassung, sonst
     faellt sie gegen den Grund zusammen. */
  --signal:   #A8391F;
  --signal-2: #8C2E18;
  --signal-l: #E2735A;

  --error:    #7A2318;

  --wrap:    1240px;
  --gutter:  36px;
  --measure: 62ch;

  --f: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f);
  font-size: 18px;
  line-height: 1.6;
}

h1, h2 { font-weight: 800; margin: 0 0 .4em; }
h1 { font-size: clamp(29px, 3.6vw, 46px); line-height: 1.06; letter-spacing: -.028em; max-width: 20ch; }
h2 { font-size: clamp(23px, 2.4vw, 30px); line-height: 1.14; letter-spacing: -.022em; max-width: 24ch; }
h3 { font-size: 18px; font-weight: 600; letter-spacing: -.008em; margin: 0 0 .35em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

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

img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 10; }
.skip:focus { left: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.prose { max-width: var(--measure); }
.prose ul { padding-left: 18px; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.lead { font-size: clamp(18px, 1.4vw, 21px); line-height: 1.45; letter-spacing: -.008em; color: var(--ink-2); max-width: 42ch; }
.note { font-size: 15px; color: var(--muted); margin-top: 14px; max-width: var(--measure); }

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

.site-head { padding: 16px 0 0; background: var(--paper); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { text-decoration: none; color: var(--ink); display: flex; align-items: center; gap: 16px; }
.brand-mark { width: 78px; height: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; font-size: 14px; letter-spacing: -.005em; text-transform: uppercase; }
.brand-suffix { font-size: 12px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav a { font-size: 14px; color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: "."; color: var(--signal); font-weight: 800; }

/* ---------- Abschnitte ---------- */

.pagehead { padding: 56px 0 0; }
.pagehead .lead { margin-top: 22px; }
.pagehead-home { padding-top: 64px; padding-bottom: 40px; }

.sec { padding: 58px 0; }
.sec-tight { padding: 34px 0; }
.pagehead + .sec { padding-top: 56px; }
.sec + .sec { padding-top: 0; }
.band { background: var(--ground); }
.sec + .band, .band + .sec, .hero + .sec, .imageband + .sec { padding-top: 58px; }
.sec h2 { margin-bottom: 24px; }

/* ---------- Bilder ---------- */

.hero, .imageband { margin: 0; background: var(--dark); }
.hero-img { width: 100%; height: clamp(260px, 40vw, 520px); object-fit: cover; }
.imageband img { width: 100%; height: clamp(220px, 30vw, 400px); object-fit: cover; }
.hero figcaption, .imageband figcaption { padding: 12px 0 18px; font-size: 14px; color: #93A9AB; background: var(--dark); }
.hero figcaption .wrap, .imageband figcaption .wrap { max-width: var(--wrap); }

/* ---------- Bildreihe ---------- */

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--dark); }
.gallery figcaption { padding-top: 10px; font-size: 14px; line-height: 1.45; color: var(--muted); }

/* ---------- Dreier- und Mehrfachreihen ---------- */

.plain { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin: 0; padding: 0; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 48px 44px; margin: 0; padding: 0; }
.plain dt { font-weight: 600; font-size: 18px; letter-spacing: -.008em; }
.plain dd { margin: 6px 0 0; color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.plain > div { min-width: 0; }

.steps { list-style: none; counter-reset: st; }
.steps > li { counter-increment: st; min-width: 0; }
.steps > li::before {
  content: counter(st, decimal-leading-zero);
  display: block;
  color: var(--signal);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .01em;
  margin-bottom: 10px;
}
.steps .prose { color: var(--ink-2); font-size: 16px; line-height: 1.55; max-width: 44ch; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.card .prose { color: var(--ink-2); font-size: 16px; }
.more { margin-top: 14px; font-size: 16px; }

/* ---------- Stichwortliste ---------- */

.terms { margin: 0; border-top: 1px solid var(--ink); }
.terms dt { font-weight: 600; padding: 22px 0 0; font-size: 18px; letter-spacing: -.008em; }
.terms dd { margin: 0; padding: 6px 0 22px; color: var(--ink-2); border-bottom: 1px solid var(--line-2); max-width: var(--measure); }

@media (min-width: 900px) {
  .terms { display: grid; grid-template-columns: 300px minmax(0, 1fr); column-gap: 48px; }
  .terms dt { grid-column: 1; border-bottom: 1px solid var(--line-2); padding-bottom: 22px; }
  .terms dd { grid-column: 2; padding-top: 22px; }
}

/* ---------- Tabellen ---------- */

.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { padding: 14px 18px 14px 0; border-bottom: 1px solid var(--line-2); vertical-align: top; }
thead th { border-bottom: 1px solid var(--ink); color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
td.right, th.right { text-align: right; padding-right: 0; font-variant-numeric: tabular-nums; }

/* ---------- Hinweis, Knopf, Formular ---------- */

.notice { color: var(--ink-2); font-size: 16px; border-top: 1px solid var(--ink); padding-top: 16px; margin: 0; max-width: var(--measure); }

.btn { display: inline-block; padding: 14px 26px; background: var(--ink); color: #fff; font-size: 16px; font-weight: 600; text-decoration: none; }
.btn:hover { background: var(--signal-2); color: #fff; }
.btn-row { margin: 26px 0 0; }

.form { margin-top: 8px; max-width: 620px; }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink);
  background: var(--paper-2); border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; padding: 10px 0;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--signal); outline-offset: 2px; border-bottom-color: var(--ink); }
.field textarea { border: 1px solid var(--ink); padding: 12px; }
.field.has-err input, .field.has-err select, .field.has-err textarea { border-color: var(--error); border-bottom-width: 2px; }
.field.has-err label::after { content: " — bitte prüfen"; color: var(--error); font-weight: 400; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.msg { max-width: 620px; padding: 18px 0; border-top: 2px solid var(--ink); font-size: 17px; }
.msg-err { border-top-color: var(--error); color: var(--error); }
.stale { background: var(--ground); border-bottom: 1px solid var(--line); font-size: 15px; }
.stale .wrap { padding-block: 10px; }

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

.site-foot { margin-top: 80px; background: var(--dark); color: var(--dark-t); padding: 56px 0 44px; font-size: 16px; }
.foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); gap: 40px 48px; }
.foot-h { font-weight: 600; margin: 0 0 10px; color: #FFFFFF; font-size: 15px; text-wrap: balance; }
.foot-t { margin: 0; line-height: 1.6; }
.site-foot a { color: var(--dark-t); }
.site-foot a:hover { color: var(--signal-l); }
.foot-links { list-style: none; margin: 0; padding: 0; }
.foot-links li { margin-bottom: 6px; }
.ruo { margin: 44px 0 0; padding-top: 20px; border-top: 1px solid #23383C; font-size: 13.5px; line-height: 1.55; color: #93A9AB; max-width: 92ch; }

/* ---------- Schmale Fenster ---------- */

@media (max-width: 700px) {
  :root { --gutter: 22px; }
  body { font-size: 17px; }
  .head-row { flex-wrap: wrap; gap: 14px; }
  .brand-mark { width: 58px; }
  .nav ul { gap: 16px; flex-wrap: wrap; }
  .sec { padding: 44px 0; }
  .pagehead { padding-top: 40px; }
  .plain, .steps, .cards { gap: 30px; }
}

@media print {
  .site-head, .nav, .btn-row, .stale, .hero, .imageband { display: none; }
  body { font-size: 11pt; color: #000; }
}
