/* Checkliste: Tokens in :root, Schrift lokal, Mobil zuerst (Umbruch 640px). */

@font-face {
  font-family: "Roboto Slab";
  src: url("../assets/fonts/RobotoSlab-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto Slab";
  src: url("../assets/fonts/RobotoSlab-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto Slab";
  src: url("../assets/fonts/RobotoSlab-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #1c2f76;
  --navy-light: #2a4494;
  --field: #e4e6ea;
  --muted: #4a5568;
  --white: #ffffff;
  --font: "Roboto Slab", Georgia, serif;
  --fs: 0.875rem;
  --fs-small: 0.8rem;
  --fs-lead: 1rem;
  --fs-section: 1.1rem;
  --fs-title: clamp(1.05rem, 2vw, 1.35rem);
  --fs-display: clamp(1.5rem, 3vw, 2.25rem);
  --lh: 1.5;
  --space: 1rem;
  --space-section: 1.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: var(--fs);
  font-weight: 400;
  line-height: var(--lh);
  color: var(--navy);
  background: var(--white);
}

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

a {
  color: inherit;
}

p {
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  background: var(--white);
}

.site-header__inner,
.site-footer__inner,
.page {
  width: min(52rem, 100%);
  margin: 0 auto;
  padding: var(--space) 1.5rem;
}

.site-header__inner {
  display: flex;
  align-items: center;
}

.site-header img {
  height: 2.75rem;
  width: auto;
}

.site-footer {
  margin-top: auto;
  background: var(--navy);
  color: rgb(255 255 255 / 0.8);
}

.site-footer a {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgb(255 255 255 / 0.3);
}

.stripe {
  height: 10px;
  background: linear-gradient(
    90deg,
    #8eb4d4 0%,
    #1c2f76 28%,
    #1c2f76 52%,
    #c45a6a 78%,
    #e23b3b 100%
  );
}

.page {
  padding-top: var(--space-section);
  padding-bottom: 3rem;
}

.intro {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: var(--space-section);
}

.intro__arrow {
  width: 1.75rem;
  height: auto;
  margin-top: 0.55rem;
  flex-shrink: 0;
}

.intro__kicker {
  margin: 0;
  font-size: var(--fs-display);
  font-weight: 300;
  line-height: 1.2;
}

.intro h1 {
  margin: 0.15rem 0 0;
  font-size: var(--fs-title);
  font-weight: 700;
  line-height: 1.35;
}

.intro p:last-child {
  margin-top: var(--space);
  color: var(--muted);
  font-size: var(--fs-lead);
}

.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-section);
}

fieldset {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
  padding: var(--space-section) 0 0;
  border: 0;
  border-top: 1px solid rgb(28 47 118 / 0.1);
}

fieldset:first-of-type {
  padding-top: 0;
  border-top: 0;
}

legend {
  padding: 0;
  width: 100%;
  font-size: var(--fs-section);
  font-weight: 700;
}

.group-label,
.line > span:not(.sr-only) {
  display: block;
  font-size: var(--fs);
  font-weight: 700;
}

.line {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 0.3rem;
}

.pair {
  display: grid;
  gap: 0.75rem;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.art-row {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 0.45rem;
}

.inline-field {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.inline-field-wide {
  margin-left: 0;
}

.inline-field-grow {
  flex: 1 1 12rem;
  margin-left: 0;
}

.inline-field input,
.inline-field select,
.inline-input {
  width: 5.5rem;
}

.inline-field-grow input {
  width: 100%;
  flex: 1;
}

.slash {
  font-weight: 700;
}

.labeled-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.waerme-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.waerme-head,
.waerme-row {
  display: grid;
  grid-template-columns: minmax(9rem, 14rem) 1fr;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.waerme-head {
  font-size: var(--fs-small);
  font-weight: 700;
}

.waerme-floors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
}

.checks {
  display: grid;
  gap: 0.45rem;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 0.45rem 0.7rem;
  border: 0;
  border-radius: 2px;
  background: var(--field);
  color: var(--navy);
  font: inherit;
}

textarea {
  min-height: 4.5rem;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
}

.check input[type="radio"],
.check input[type="checkbox"],
.consent input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.12rem 0 0;
  border: 1.5px solid var(--navy);
  border-radius: 2px;
  background: var(--white);
  cursor: pointer;
}

.check input[type="radio"]:checked,
.check input[type="checkbox"]:checked,
.consent input[type="checkbox"]:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%231c2f76' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M4 8.8l2.6 2.6 5.6-5.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 50% 58%;
  background-size: 0.72rem 0.72rem;
}

.form-table {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-table__head,
.form-table__row {
  display: grid;
  gap: 0.5rem;
}

.form-table__head {
  font-size: var(--fs-small);
  font-weight: 700;
}

.form-table .form-table__head,
.form-table .form-table__row {
  grid-template-columns: 1fr;
}

.form-table-2 .form-table__head,
.form-table-2 .form-table__row {
  grid-template-columns: 1fr;
}

.stack-lines {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.legal-block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.legal-block h2 {
  margin: 0;
  font-size: var(--fs);
  font-weight: 700;
}

.legal-block p,
.legal-block a,
.legal-copy {
  color: var(--muted);
  font-size: var(--fs-small);
}

.legal-copy-strong {
  color: var(--navy);
  font-weight: 700;
}

.sign-row {
  display: grid;
  gap: 1rem;
  margin-top: 0.5rem;
}

.sign-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sign-field span {
  font-size: var(--fs-small);
  font-weight: 700;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--muted);
}

.consent input {
  margin-top: 0.2rem;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space);
  padding-top: var(--space);
  border-top: 1px solid rgb(28 47 118 / 0.1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 4px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  border: 0;
  background: var(--navy);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--navy-light);
}

.is-missing {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(28 47 118 / 0.4);
}

.modal__box {
  position: relative;
  width: min(26rem, 100%);
  padding: 1.25rem 1.35rem 1.35rem;
  background: var(--white);
  color: var(--navy);
}

.modal__box h2 {
  margin: 0;
  font-size: var(--fs-title);
  font-weight: 700;
}

.modal__box p {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.modal__list {
  margin: 0.9rem 0 1.1rem;
  padding: 0;
  list-style: none;
}

.modal__list button {
  display: block;
  width: 100%;
  padding: 0.5rem 0;
  border: 0;
  border-bottom: 1px solid rgb(28 47 118 / 0.12);
  background: none;
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.modal__list button:hover,
.modal__list button:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.modal__box .btn {
  width: 100%;
}

.disclaimer {
  margin-top: var(--space);
  color: var(--muted);
  font-size: var(--fs-small);
}

.thanks {
  text-align: center;
  padding: 2rem 0;
}

.thanks h2,
.legal h1 {
  margin: 0;
  font-size: var(--fs-display);
  font-weight: 300;
}

.thanks p {
  margin: var(--space) 0 var(--space-section);
  color: var(--muted);
  font-size: var(--fs-lead);
}

.legal {
  display: flex;
  flex-direction: column;
  gap: var(--space);
}

.legal h2 {
  margin: 0.5rem 0 0;
  font-size: var(--fs-section);
  font-weight: 700;
}

.legal p,
.legal li {
  color: var(--muted);
  font-size: var(--fs-lead);
}

.legal ul {
  margin: 0;
  padding-left: 1.2rem;
}

@media (min-width: 640px) {
  .site-header img {
    height: 3rem;
  }

  .line {
    grid-template-columns: 13.75rem 1fr;
    gap: 0.75rem;
  }

  .pair {
    grid-template-columns: 1fr 1fr;
  }

  .art-row {
    grid-template-columns: 13.5rem minmax(0, 1fr) auto;
    gap: 0.65rem 0.75rem;
  }

  .art-row .inline-field:last-child {
    margin-left: 0;
  }

  .choice-row > .inline-field:last-child {
    margin-left: auto;
  }

  .line-half {
    width: 50%;
    padding-right: 0.4rem;
  }

  .checks-2 {
    grid-template-columns: 1fr 1fr;
  }

  .choice-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
  }

  .choice-row-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
  }

  .form-table .form-table__head,
  .form-table .form-table__row {
    grid-template-columns: 1.15fr 5.5rem 1.4fr;
    align-items: center;
  }

  .form-table-2 .form-table__head,
  .form-table-2 .form-table__row {
    grid-template-columns: 1.6fr 1fr;
  }

  .sign-row {
    grid-template-columns: 1fr 1.4fr;
  }

  .waerme-head,
  .waerme-row {
    grid-template-columns: 13.5rem 1fr;
  }
}
