/* HRfit – Landingpage
   Eine Schrift (Hanken Grotesk, selbst gehostet), zwei Schriftgrößen, keine Rundungen. */

@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #032d50;
  --green: #6f9211;
  --ink: #1b1f23;
  --line: #d9dde1;
  --paper: #ffffff;
  --mist: #f3f5f6;
  --field: #7d8791;
  --error: #a4161a;

  /* Die einzigen zwei Schriftgrößen der Seite */
  --fs-head: clamp(1.75rem, 1.15rem + 2.6vw, 2.75rem);
  --fs-text: 1.125rem;

  --gutter: 16px;
  --wide: 45rem; /* gemeinsame Spaltenbreite aller Blöcke unter dem Aufmacher */
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: var(--fs-text);
  font-weight: 400;
  line-height: 1.6;
  hyphens: auto;
  -webkit-hyphens: auto;
  hyphenate-limit-chars: 10 4 4;
  overflow-wrap: break-word;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

h1,
.h-large {
  font-size: var(--fs-head);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--navy);
}

/* Zwischenüberschriften: Textgröße, nur fetter */
.h-small {
  font-size: var(--fs-text);
  font-weight: 650;
  line-height: 1.4;
  color: var(--navy);
}

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

a:hover {
  color: var(--navy);
  text-decoration-color: var(--green);
}

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

::selection {
  background: var(--navy);
  color: var(--paper);
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  padding: 8px 12px;
  background: var(--navy);
  color: var(--paper);
  z-index: 10;
}

.skip-link:focus {
  top: 8px;
}

/* Kopf */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.site-header {
  padding: 20px var(--gutter);
  text-align: center;
}

.site-header a {
  display: block;
  width: 116px;
  margin: 0 auto;
}

/* Titel unter dem Logo: Textgröße, keine dritte Schriftgröße */
.site-title {
  margin-top: 10px;
  font-size: var(--fs-text);
  font-weight: 400;
  line-height: 1.3;
  color: var(--navy);
  hyphens: manual;
}

.site-header img {
  width: 100%;
}

/* Aufmacher */
.hero {
  max-width: 1600px;
  margin: 0 auto;
}

.hero img {
  width: 100%;
}

/* Inhalt: eine mittige Spalte. Text, Link-Block, Partner und Fuß haben exakt
   dieselbe Breite und damit denselben Abstand zum Rand. */
.wrap {
  width: 100%;
  max-width: calc(var(--wide) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.text {
  max-width: none;
}

.text > * + * {
  margin-top: 1em;
}

.text > .h-small {
  margin-top: 2em;
}

.text > h2.h-large + p {
  margin-top: 1.25em;
}

.intro {
  padding: 48px 0 56px;
}

.section-divided {
  padding: 48px 0 56px;
  border-top: 1px solid var(--line);
}

.text > :first-child {
  margin-top: 0;
}

.more {
  margin-top: 40px;
}

.button {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 24px;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: var(--paper);
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}

.button:hover {
  background: var(--paper);
  color: var(--navy);
}

.partners {
  padding: 72px 0 80px;
}

/* gleicher Abstand wie bisher zwischen letztem Textblock und Partnern */
.section-divided + .partners {
  padding-top: 16px;
}

.partners h2 {
  margin-bottom: 32px;
}

/* Partner gleichrangig: mobil als Liste (Foto links, Kontakt rechts),
   ab 720 px alle vier nebeneinander in einer Reihe. */
.partner-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.partner {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: end;
}

.partner picture {
  display: block;
}

.partner img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: var(--mist);
}

.partner figcaption {
  line-height: 1.4;
  hyphens: manual;
}

.partner figcaption strong,
.partner figcaption a {
  display: block;
}

.partner figcaption strong {
  font-weight: 650;
  color: var(--navy);
}

.partner figcaption a {
  width: fit-content;
  text-decoration: none;
}

.partner figcaption a:hover {
  text-decoration: underline;
}

/* Kontakt */
.contact {
  padding: 72px 0 80px;
  border-top: 1px solid var(--line);
}

.contact-intro {
  margin-top: 1.25em;
}

.contact-form {
  margin-top: 32px;
}

.field + .field {
  margin-top: 20px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--navy);
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--field);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  line-height: 1.5;
  -webkit-appearance: none;
  appearance: none;
}

.field textarea {
  min-height: 11em;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--navy);
  outline: 2px solid var(--navy);
  outline-offset: -2px;
}

.field-check {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-top: 24px;
}

.field-check label {
  margin: 0;
  font-weight: 400;
  color: var(--ink);
}

.field-check input {
  width: 22px;
  height: 22px;
  margin-top: 3px;
  padding: 0;
  cursor: pointer;
}

.field-check input:checked {
  border-color: var(--navy);
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M5 11.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='2.2'/%3E%3C/svg%3E") center / 22px 22px no-repeat;
}

.contact-form .button {
  margin-top: 28px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.contact-form .button[disabled] {
  opacity: 0.6;
  cursor: wait;
}

.form-status:not(:empty) {
  margin-top: 16px;
}

.form-status.is-error {
  color: var(--error);
}

.form-status.is-ok {
  color: var(--navy);
  font-weight: 600;
}

/* Honeypot gegen Spam-Roboter */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Fuß */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 32px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}

.site-footer ul {
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 720px) {
  :root {
    --gutter: 40px;
  }

  body {
    hyphens: manual;
    -webkit-hyphens: manual;
  }

  .site-header {
    padding: 26px var(--gutter);
  }

  .site-header a {
    width: 150px;
  }

  .site-title {
    margin-top: 12px;
  }

  .intro {
    padding: 80px 0 88px;
  }

  .section-divided {
    padding: 80px 0 88px;
  }

  .section-divided + .partners {
    padding-top: 24px;
  }

  .more {
    margin-top: 56px;
  }

  .partners {
    padding: 112px 0 120px;
  }

  .partners h2 {
    margin-bottom: 48px;
  }

  .contact {
    padding: 112px 0 120px;
  }

  .contact-form {
    margin-top: 48px;
  }

  .partner-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

  .partner {
    display: block;
  }

  .partner figcaption {
    padding-top: 12px;
  }
}

@media (min-width: 1000px) {
}

@media print {
  .skip-link,
  .site-footer ul {
    display: none;
  }
}
