/* HD PflegeLogistik – Firmenseite. Aufbau aus dem Logo: roter Block, große Schrift, gesperrte Zeile.
   Systemschrift (keine Fremdanbieter-Anfragen). Kontraste gerechnet, siehe Kommentare. */
:root {
  --grund: #161616;
  --grund-2: #1f1f1f;
  --text: #f4f4f4;          /* 17,0:1 auf --grund */
  --text-leise: #a8a8a8;    /* 7,9:1 auf --grund, 7,1:1 auf --grund-2 */
  --linie: #343434;
  --rot: #ff1300;           /* Logo-Rot – nur Flächen und große Schrift (4,4:1 auf --grund) */
  --rot-knopf: #e01000;     /* weiße Schrift darauf 4,9:1 */
  --rot-knopf-druck: #c40e00;
  --breite: 76rem;
  --kurve: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--rot); color: #fff; }

a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--rot); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--rot); outline-offset: 4px; }

.sprunglink {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.75rem 1rem;
  background: var(--text);
  color: var(--grund);
  z-index: 10;
}
.sprunglink:focus { top: 1rem; }

.rahmen {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 48rem) { .rahmen { padding: 0 2.5rem; } }

/* Kopf */
.kopf .rahmen {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5.5rem;
}
.kopf img { display: block; height: 2.75rem; width: auto; }
.kopf nav { display: flex; gap: 1.5rem; font-size: 1rem; }
.kopf nav a { display: inline-block; padding: 0.75rem 0; text-decoration: none; color: var(--text-leise); }
.kopf nav a:hover, .kopf nav a[aria-current="page"] { color: var(--text); text-decoration: underline; text-decoration-color: var(--rot); }

/* Bühne: links der rote Block wie im Logo, rechts Überschrift + gesperrte Zeile */
.buehne .rahmen {
  display: grid;
  grid-template-columns: clamp(0.75rem, 2.2vw, 2.25rem) 1fr;
  column-gap: clamp(1rem, 3vw, 2.5rem);
  padding-top: clamp(3rem, 9vh, 7rem);
  padding-bottom: clamp(4rem, 12vh, 9rem);
}
.buehne-block {
  grid-row: 1;
  background: var(--rot);
  transform-origin: 50% 100%;
  animation: block-waechst 600ms var(--kurve) 120ms both;
}
@keyframes block-waechst {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

h1, h2 { margin: 0; text-wrap: balance; }

h1 {
  grid-row: 1;
  font-size: clamp(2.25rem, 0.9rem + 6.2vw, 6.75rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
  hyphens: manual;
}

/* Gesperrte Zeile – dieselbe Geste wie „L O G I S T I K“ unter „PFLEGE“ im Logo */
.gesperrt {
  margin: 0;
  font-size: clamp(0.75rem, 0.65rem + 0.45vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-leise);
}
.buehne .gesperrt { grid-column: 2; margin-top: clamp(1.25rem, 2.5vw, 2rem); }

.buehne-text {
  grid-column: 2;
  max-width: 38rem;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  font-size: clamp(1.125rem, 1rem + 0.45vw, 1.375rem);
  color: var(--text-leise);
}
.buehne-text strong { color: var(--text); font-weight: 600; }

.knopf {
  grid-column: 2;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 3.25rem;
  margin-top: 2.25rem;
  padding: 0.8rem 1.6rem;
  background: var(--rot-knopf);
  color: #fff;
  font-size: 1.1875rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 150ms var(--kurve);
}
.knopf:hover { background: var(--rot-knopf-druck); }
.knopf:active { background: var(--rot-knopf-druck); transform: scale(0.98); }

/* Woran wir arbeiten */
.vorhaben { background: var(--grund-2); }
.vorhaben .rahmen {
  display: grid;
  gap: 2.5rem;
  padding-top: clamp(4rem, 9vw, 7rem);
  padding-bottom: clamp(4rem, 9vw, 7rem);
}
@media (min-width: 60rem) {
  .vorhaben .rahmen { grid-template-columns: 1fr 1.6fr; gap: 5rem; }
}
.vorhaben h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; }
.vorhaben .gesperrt { margin-top: 1rem; }

.liste { list-style: none; margin: 0; padding: 0; }
.liste li {
  display: grid;
  gap: 0.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--linie);
}
.liste li:last-child { border-bottom: 1px solid var(--linie); }
.liste h3 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.liste h3::before {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 1.1em;
  background: var(--rot);
}
.liste h3 img { display: block; height: 1.35em; width: auto; }
.liste p { margin: 0; max-width: 40rem; color: var(--text-leise); }
.liste a { color: var(--text); font-weight: 600; justify-self: start; padding: 0.5rem 0; }

/* Kontakt: die E-Mail-Adresse als großes Schriftelement */
.kontakt .rahmen { padding-top: clamp(4rem, 10vw, 8rem); padding-bottom: clamp(4rem, 10vw, 8rem); }
.kontakt-adresse {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: clamp(1.375rem, 0.6rem + 3.6vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-decoration: underline;
  text-decoration-color: var(--rot);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}
.kontakt-adresse:hover { text-decoration-thickness: 0.14em; }

/* Rechtstexte */
.text .rahmen { padding-top: 2.5rem; padding-bottom: 6rem; }
.text article { max-width: 44rem; }
.text h1 { font-size: clamp(2.25rem, 1.6rem + 3vw, 3.75rem); line-height: 1.05; }
.text h1::after { content: ""; display: block; width: 3rem; height: 0.375rem; margin-top: 1.25rem; background: var(--rot); }
.text h2 { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.01em; margin-top: 2.75rem; }
.text p, .text ul { margin: 0.75rem 0 0; color: #d9d9d9; }   /* 13,4:1 auf --grund */
.text ul { padding-left: 1.25rem; }
.text li + li { margin-top: 0.375rem; }
.text .knopf { margin-top: 2rem; }
.text .stand { color: var(--text-leise); font-size: 1rem; margin-top: 1rem; }

/* Fuß */
.fuss { border-top: 1px solid var(--linie); font-size: 1rem; color: var(--text-leise); }
.fuss .rahmen {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 2rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.fuss p { margin: 0; padding: 0.75rem 0; }
.fuss nav { display: flex; gap: 1.5rem; }
.fuss nav a { display: inline-block; padding: 0.75rem 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
