@font-face {
  font-family: "Palanquin";
  src: url("https://stollen-maass.de/out/wave_child_maass/src/fonts/palanquin-regular-webfont.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Palanquin";
  src: url("https://stollen-maass.de/out/wave_child_maass/src/fonts/palanquin-bold-webfont.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Italianno";
  src: url("https://stollen-maass.de/out/wave_child_maass/src/fonts/italianno-regular-webfont.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --brand: #5b0a35;
  --brand-dark: #3e0725;
  --brand-soft: #f6edf2;
  --cream: #f6f3eb;
  --paper: #ffffff;
  --text: #2d292b;
  --muted: #6c6468;
  --border: #d9d2d5;
  --focus: #0b65c2;
  --shadow: 0 14px 40px rgb(64 23 44 / 12%);
  --radius: 4px;
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--cream);
  font-family: "Palanquin", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
}

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brand-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  color: #fff;
  background: var(--brand-dark);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.hero {
  min-height: 280px;
  display: grid;
  place-items: start center;
  background:
    linear-gradient(rgb(35 0 19 / 28%), rgb(35 0 19 / 28%)),
    url("https://stollen-maass.de/out/wave_child_maass/src/img/demoslide.jpg") center 47% / cover no-repeat;
  border-top: 5px solid var(--brand);
}

.brand {
  display: inline-flex;
  margin-top: 1.25rem;
  border-radius: 50%;
}

.brand img {
  display: block;
  width: clamp(148px, 18vw, 210px);
  height: auto;
  filter: drop-shadow(0 5px 10px rgb(0 0 0 / 24%));
}

.site-nav {
  color: #fff;
  background: var(--brand);
}

.nav-inner {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.2rem;
  padding-block: 0.6rem;
}

.site-nav a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover {
  text-decoration: underline;
}

.page-main {
  padding-block: clamp(2rem, 5vw, 4.5rem);
}

.hero-compact {
  min-height: 220px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 0.8fr);
  align-items: start;
  gap: 2rem;
}

.form-card,
.info-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-top: 5px solid var(--brand);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-card {
  padding: clamp(1.25rem, 4vw, 3rem);
}

.info-card {
  position: sticky;
  top: 1.5rem;
  padding: 1.5rem;
}

.card-heading {
  margin-bottom: 2.25rem;
}

.eyebrow {
  margin: 0;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0.75rem;
  color: var(--brand);
  font-family: "Italianno", Georgia, serif;
  font-size: clamp(3rem, 7vw, 4.8rem);
  font-weight: 400;
  line-height: 1;
}

h2,
legend {
  color: var(--brand);
  font-size: 1.3rem;
  font-weight: 700;
}

fieldset {
  min-width: 0;
  margin: 0 0 2rem;
  padding: 0;
  border: 0;
}

legend {
  width: 100%;
  margin-bottom: 1.1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--border);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.field {
  margin-bottom: 1.15rem;
}

.field-full {
  grid-column: 1 / -1;
}

label,
.group-label {
  display: block;
  margin-bottom: 0.38rem;
  font-weight: 700;
}

.optional {
  color: var(--muted);
  font-size: 0.9em;
  font-weight: 400;
}

input[type="text"],
input[type="email"],
input[type="date"],
textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.8rem;
  color: var(--text);
  background: #fff;
  border: 1px solid #9d9297;
  border-radius: 2px;
  font: inherit;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

input:hover,
textarea:hover {
  border-color: var(--brand);
}

.field-hint,
.submit-note,
.small-text {
  color: var(--muted);
  font-size: 0.92rem;
}

.field-error {
  margin: 0.35rem 0 0;
  color: #9c1c1c;
  font-size: 0.92rem;
  font-weight: 700;
}

[aria-invalid="true"] {
  border-color: #9c1c1c !important;
  box-shadow: 0 0 0 1px #9c1c1c;
}

.field-hint {
  margin: 0.35rem 0 0;
}

.radio-group {
  margin-top: 0.2rem;
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0.55rem 0;
  padding: 0.8rem;
  background: #faf8f9;
  border: 1px solid var(--border);
  font-weight: 400;
  cursor: pointer;
}

.choice:has(input:checked) {
  background: var(--brand-soft);
  border-color: var(--brand);
}

.choice input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  accent-color: var(--brand);
}

.declaration {
  margin: 0.5rem 0 1.25rem;
  padding: 1.2rem 1.25rem;
  background: var(--brand-soft);
  border-left: 5px solid var(--brand);
}

.declaration h2 {
  margin-bottom: 0.45rem;
}

.declaration p:last-child {
  margin-bottom: 0;
}

.spam-protection {
  min-height: 70px;
  margin: 0 0 1.25rem;
  overflow: hidden;
}

.alert {
  margin: 0 0 1.5rem;
  padding: 1rem 1.2rem;
  border: 1px solid;
  border-left-width: 5px;
  border-radius: 2px;
}

.alert h2 {
  margin-bottom: 0.45rem;
  font-size: 1.15rem;
}

.alert p:last-child,
.alert ul:last-child {
  margin-bottom: 0;
}

.alert-error {
  color: #6f1010;
  background: #fff2f2;
  border-color: #b52b2b;
}

.alert-success {
  color: #184f2c;
  background: #effaf2;
  border-color: #31854e;
}

.alert-warning {
  color: #614a08;
  background: #fff9e7;
  border-color: #b88c14;
}

.submit-button {
  width: 100%;
  min-height: 54px;
  padding: 0.8rem 1.25rem;
  color: #fff;
  background: var(--brand);
  border: 2px solid var(--brand);
  border-radius: 2px;
  font: inherit;
  font-size: 1.08rem;
  font-weight: 700;
  cursor: pointer;
}

.submit-button:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.submit-note {
  margin: 0.75rem 0 0;
  text-align: center;
}

.result-card {
  max-width: 760px;
  padding: clamp(1.25rem, 4vw, 3rem);
  background: var(--paper);
  border: 1px solid var(--border);
  border-top: 5px solid var(--brand);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.text-button {
  display: inline-block;
  padding: 0.7rem 1rem;
  color: #fff;
  background: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

.text-button:hover {
  color: #fff;
  background: var(--brand-dark);
}

.info-card h2 {
  margin-bottom: 0.8rem;
}

address {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-style: normal;
}

.site-footer {
  padding-block: 2rem;
  color: #fff;
  background: var(--brand-dark);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer a {
  color: #fff;
}

.hp-field {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.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;
}

@media (max-width: 820px) {
  .hero {
    min-height: 220px;
  }

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

  .info-card {
    position: static;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 1.2rem, 1120px);
  }

  .hero {
    min-height: 185px;
  }

  .field-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-card,
  .info-card {
    box-shadow: none;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media print {
  .site-nav,
  .submit-button,
  .submit-note,
  .skip-link {
    display: none;
  }

  body {
    background: #fff;
  }

  .hero {
    min-height: 140px;
  }

  .layout {
    display: block;
  }

  .form-card,
  .info-card {
    margin-bottom: 1rem;
    border: 1px solid #777;
    box-shadow: none;
  }
}
