/* ==========================================================================
   Aquion FreeSpirit — Philipp Henn
   Hand-authored rebuild of the original Webflow site.
   Layout, spacing and type are reproduced 1:1 from the published stylesheet.
   Every intentional deviation is marked  [FIX]  with its reason.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* [FIX] a11y — the original #eb690b sits at 3.20:1 on white, which fails
     WCAG AA (4.5:1) both as heading text and behind the white button label.
     #c25709 is the same hue (25.2deg) and saturation, 10% darker, and lands
     at 4.51:1. To revert to the exact original brand value, change this one
     line back to #eb690b. */
  --orange: #c25709;
  --orange-original: #eb690b;

  --dark: #333;
  --white: #fff;
  --muted: #777;
  --link-blue: #0095ff;

  --font: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial,
    sans-serif;

  --container: 940px;
}

/* --------------------------------------------------------------------------
   2. Reset — the subset of Webflow's normalize that actually affected layout
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  min-height: 100%;
  margin: 0;
  background-color: var(--white);
  color: var(--dark);
  font-family: Arial, sans-serif; /* matches Webflow's base; components opt into Open Sans */
  font-size: 14px;
  line-height: 20px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  /* Required companion to the width/height attributes in the markup: those
     attributes let the browser reserve the right box (no layout shift), but
     without height:auto the declared height wins and the image stretches. */
  height: auto;
  border: 0;
  vertical-align: middle;
  display: inline-block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 10px;
  font-weight: bold;
}

h1 {
  margin-top: 20px;
  font-size: 38px;
  line-height: 44px;
}
h2 {
  margin-top: 20px;
  font-size: 32px;
  line-height: 36px;
}
h3 {
  margin-top: 20px;
  font-size: 24px;
  line-height: 30px;
}
h4 {
  margin-top: 10px;
  font-size: 18px;
  line-height: 24px;
}
h5 {
  margin-top: 10px;
  font-size: 14px;
  line-height: 20px;
}

p {
  margin-top: 0;
  margin-bottom: 10px;
}

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.section {
  position: relative;
  padding-top: 70px;
  padding-bottom: 70px;
}

.centered {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* --------------------------------------------------------------------------
   4. Typography
   -------------------------------------------------------------------------- */
.h1 {
  color: var(--dark);
  font-family: var(--font);
  font-size: 40px;
  line-height: 50px;
}
.h1.white {
  color: var(--white);
}

.subheading {
  color: var(--muted);
  font-family: var(--font);
  font-size: 30px;
  line-height: 40px;
}
.subheading.white {
  color: var(--white);
}

.h3 {
  font-family: var(--font);
  font-size: 23px;
  line-height: 41px;
}
.h3.all-caps {
  text-transform: uppercase;
}

.h4 {
  color: var(--orange);
  font-family: var(--font);
  font-size: 19px;
  font-weight: 400;
}
.h4.all-caps {
  text-transform: uppercase;
  line-height: 19px;
}

.paragraph {
  color: var(--dark);
  font-family: var(--font);
  font-size: 18px;
  line-height: 34px;
}
.paragraph.white {
  color: var(--white);
}
.paragraph.blue {
  color: var(--link-blue);
}

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
#hero-section {
  overflow: hidden; /* keeps the absolutely-positioned backdrop clipped to the section */
}

.hero-background-image {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-position: 0 0, 50%;
  background-size: auto, cover;
  background-repeat: repeat, no-repeat;
  /* fallback first, then the WebP-preferring set for browsers that support it */
  background-image: linear-gradient(#67808b80, #67808b80), url("../img/hero.png");
  background-image: linear-gradient(#67808b80, #67808b80),
    image-set(
      url("../img/hero.webp") type("image/webp"),
      url("../img/hero.png") type("image/png")
    );
}

.hero-grid {
  display: grid;
  grid-template-rows: auto;
  grid-template-columns: 1fr 1fr;
  grid-auto-columns: 1fr;
  grid-column-gap: 50px;
  grid-row-gap: 50px;
}

/* --------------------------------------------------------------------------
   6. Form
   -------------------------------------------------------------------------- */
.form-wrapper {
  margin-top: 24px;
  margin-bottom: 24px;
}

/* Reproduces Webflow's .w-form wrapper, which contributed 15px below the
   form. Without it the hero grid comes up 15px short of the original. */
.form-inner {
  margin: 0 0 15px;
}

.horizontal-form {
  display: flex;
  padding: 5px;
  grid-column-gap: 16px;
  grid-row-gap: 16px;
  gap: 16px;
}

.text-field {
  width: 100%;
  height: 38px;
  margin: 0 5px 10px;
  padding: 5px;
  border: 1px solid #ccc;
  background-color: var(--white);
  color: var(--dark);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.42857;
  display: block;
  vertical-align: middle;
}

.text-field::placeholder {
  color: #999;
}

/* [FIX] a11y — the original had no visible focus state at all, so keyboard
   users could not tell which field was active. */
.text-field:focus {
  outline: 2px solid var(--orange);
  outline-offset: 1px;
  border-color: var(--orange);
}

.form-button-wrapper {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
}

.button {
  display: inline-block;
  padding: 15px 50px;
  border: 0;
  border-radius: 30px;
  background-color: var(--orange);
  color: var(--white);
  font-family: var(--font);
  font-size: 18px;
  line-height: 24px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

/* [FIX] the original button had no hover or focus feedback. */
.button:hover {
  background-color: #a84a08;
}
.button:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 2px;
}

/* [FIX] a11y — labels for every field, kept visually hidden so the design
   is unchanged but screen readers announce each input. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.form-message {
  display: none;
  font-family: var(--font);
}
.form-message.is-visible {
  display: block;
}

.form-done {
  padding: 20px;
  background-color: #ddd;
  text-align: center;
}

.form-fail {
  margin-top: 10px;
  padding: 10px;
  background-color: #ffdede;
}

/* --------------------------------------------------------------------------
   7. Video thumbnail
   -------------------------------------------------------------------------- */
.link-block {
  max-width: 100%;
  display: inline-block;
}

.cideo-screenshot {
  border-radius: 5px;
}

/* --------------------------------------------------------------------------
   8. Benefits section
   -------------------------------------------------------------------------- */
.info-grid {
  display: grid;
  grid-template-rows: auto;
  grid-template-columns: 1.25fr 0.75fr;
  grid-auto-columns: 1fr;
  grid-column-gap: 50px;
  grid-row-gap: 50px;
}

/* [FIX] semantics — the original wrapped each bullet in its own <p> with a
   literal "⦁" character. This renders identically (flush left, no hanging
   indent) but is a real list for screen readers and search engines. */
.benefit-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.benefit-list li {
  margin-bottom: 10px;
  color: var(--dark);
  font-family: var(--font);
  font-size: 18px;
  line-height: 34px;
}

.benefit-list li::before {
  content: "⦁ ";
}

.image {
  margin-bottom: 23px;
}

/* --------------------------------------------------------------------------
   9. Advantages
   -------------------------------------------------------------------------- */
.advantages-wrapper {
  padding-top: 20px;
  padding-bottom: 20px;
}

.advantage {
  margin-bottom: 18px;
}

.button-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 20px;
}

/* --------------------------------------------------------------------------
   10. Reviews
   -------------------------------------------------------------------------- */
.reviews-grid {
  display: grid;
  grid-template-rows: auto;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-auto-columns: 1fr;
  grid-column-gap: 16px;
  grid-row-gap: 16px;
}

/* [FIX] visual — in the original the four cells were raw grid children, so
   each orange rule stopped wherever its own text happened to end, leaving a
   ragged bottom edge. Making each cell a flex column and pushing the rule
   down with margin-top:auto aligns all four to the same baseline. */
.review {
  display: flex;
  flex-direction: column;
}

.stars-image {
  margin-bottom: 20px;
  align-self: flex-start;
}

.review-name {
  color: var(--dark);
  font-family: var(--font);
  font-size: 18px;
  line-height: 34px;
  font-weight: 700;
}

.bottom-line-orange {
  width: 110px;
  height: 1.5px;
  margin-top: auto;
  margin-bottom: 24px;
  background-color: var(--orange);
}

/* --------------------------------------------------------------------------
   11. Footer / Impressum
   -------------------------------------------------------------------------- */
.impressum-wrapper {
  text-decoration: none;
}

.impressum-wrapper:hover .paragraph.blue,
.impressum-wrapper:focus-visible .paragraph.blue {
  text-decoration: underline;
}

.back-link {
  font-family: var(--font);
  color: var(--link-blue);
}

.spacer {
  width: 1rem;
  height: 1rem;
}

/* --------------------------------------------------------------------------
   12. Breakpoints — identical to the original (991 / 767 / 479)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 991px) {
  .container {
    max-width: 728px;
  }
}

@media screen and (max-width: 767px) {
  .container {
    max-width: none;
    padding-left: 20px;
    padding-right: 20px;
  }

  .section {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .hero-grid {
    grid-template-rows: auto auto;
    grid-template-columns: 1fr;
    grid-column-gap: 16px;
    grid-row-gap: 16px;
  }

  .info-grid {
    grid-template-rows: auto auto;
    grid-template-columns: 1.25fr;
    grid-column-gap: 16px;
    grid-row-gap: 16px;
  }

  .reviews-grid {
    grid-template-rows: auto auto auto auto;
    grid-template-columns: 1fr;
  }

  /* [FIX] the original kept the h1 at 40px/50px on a 390px screen, which
     overflowed awkwardly. This scales the two display sizes down; every
     other size is unchanged. */
  .h1 {
    font-size: 32px;
    line-height: 42px;
  }

  .subheading {
    font-size: 24px;
    line-height: 34px;
  }

  /* [FIX] the review rules were pinned to a shared baseline on desktop;
     once the grid is a single column that alignment is meaningless. */
  .bottom-line-orange {
    margin-top: 0;
  }
}

@media screen and (max-width: 479px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* [FIX] two 38px inputs plus gaps do not fit 390px comfortably; stacking
     them below 480px keeps the tap targets usable. */
  .horizontal-form {
    flex-direction: column;
    gap: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
