/* Haulbee – Landingpage. Unbunt; Honiggelb nur als Fläche hinter #141414 oder als Akzent auf dunklem Grund. */

@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist-latin-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #141414;
  --paper: #ffffff;
  --paper-2: #f2f2f2;
  --muted: #525252;
  --line: #767676;
  --rule: #d4d4d4;
  --night: #141414;
  --night-2: #202020;
  --on-night: #ffffff;
  --on-night-muted: #b5b5b5;
  --honey: #f2a81d;

  --fs-small: 0.875rem;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.25rem, 1.05rem + 0.9vw, 1.625rem);
  --fs-h2: clamp(2rem, 1.3rem + 3.2vw, 3.75rem);
  --fs-h1: clamp(2.75rem, 1.3rem + 6.6vw, 6rem);

  --gutter: clamp(1.25rem, 4vw, 4rem);
  --pad-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  --pad-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  --section: clamp(4.5rem, 3rem + 7vw, 9rem);
  --wide: 75rem;
  --radius: 14px;
  --focus: var(--ink);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--ink);
}

::selection {
  background: var(--honey);
  color: var(--ink);
}

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

h1,
h2,
h3 {
  font-weight: 650;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

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

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
}

a,
button,
select,
label,
input[type="checkbox"] {
  touch-action: manipulation;
}

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

[hidden] {
  display: none !important;
}

.hp {
  display: none;
}

.nowrap {
  white-space: nowrap;
}

/* Dunkle Flächen: Kopf, Hero, Film, Fuß */
.site-header,
.hero,
.film,
.site-footer {
  --focus: var(--on-night);
  background: var(--night);
  color: var(--on-night);
}

.site-header,
.hero,
.features,
.film,
.waitlist,
.site-footer {
  padding-left: var(--pad-left);
  padding-right: var(--pad-right);
}

/* Kopf */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: max(0.75rem, env(safe-area-inset-top, 0px));
  padding-bottom: 0.75rem;
}

.brand,
.lang a,
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.brand {
  gap: 0.625rem;
  font-weight: 650;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.lang a {
  padding-inline: 0.875rem;
  margin-right: -0.875rem;
  color: var(--on-night-muted);
  text-decoration: none;
}

/* Hero: die Bildmarke groß, angeschnitten; ihr honiggelber Querbalken ist das eine Motiv der Seite */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(2.5rem, 1.5rem + 5vw, 6rem);
}

.hero__text {
  position: relative;
  z-index: 1;
  max-width: var(--wide);
  margin-inline: auto;
}

.hero h1 {
  max-width: 11.5em;
  font-size: var(--fs-h1);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

/* Die Wendung „It's income.“ steht auf eigener Zeile */
.h1__turn {
  display: block;
}

.hero__lead {
  max-width: 24em;
  margin-top: 1.5rem;
  font-size: var(--fs-lead);
  line-height: 1.35;
  color: var(--on-night-muted);
}

.hero__action {
  margin-top: 2rem;
}

.hero__mark {
  width: min(100vw, 30rem);
  height: auto;
  margin: 1.5rem -30vw -26vw auto;
  pointer-events: none;
}

/* Knöpfe: Pille wie der runde Querbalken der Marke, Honig mit #141414 */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 1.75rem;
  border: 0;
  border-radius: 999px;
  background: var(--honey);
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  font-size: 1.0625rem;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.button:disabled {
  cursor: progress;
  opacity: 0.6;
}

/* Funktionen */
.features {
  padding-top: var(--section);
  padding-bottom: var(--section);
}

.features > * {
  max-width: var(--wide);
  margin-inline: auto;
}

.features h2,
.film h2,
.waitlist h2 {
  font-size: var(--fs-h2);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.features__intro {
  margin-top: 1.25rem;
  max-width: 34em;
}

.features__list {
  list-style: none;
  padding: 0;
  margin-top: 2.5rem;
  display: grid;
  gap: 2rem;
}

.feature {
  position: relative;
  padding-left: 3.25rem;
}

/* Aufzählungszeichen: die Bildmarke unverändert, klein */
.feature::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 2.25rem;
  height: 2.25rem;
  background: url("/assets/haulbee-mark.svg") center / 100% no-repeat;
}

.feature h3 {
  font-size: var(--fs-lead);
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.feature p {
  margin-top: 0.375rem;
  max-width: 34em;
  color: var(--muted);
}

.features__trust {
  margin-top: 3rem;
  font-size: var(--fs-lead);
  font-weight: 550;
  letter-spacing: -0.015em;
}

/* Film: hochkantes Format reserviert; ohne Poster ein bewusster dunkler Rahmen mit dem Querbalken */
.film {
  padding-top: var(--section);
  padding-bottom: var(--section);
}

.film > * {
  max-width: var(--wide);
  margin-inline: auto;
}

.film__frame {
  position: relative;
  width: min(100%, 12.5rem);
  margin-top: 2rem;
  margin-inline: 0 auto;
  aspect-ratio: 9 / 16;
  border-radius: 1.25rem;
  overflow: hidden;
  background: var(--night-2);
}

.film__frame::before,
.film__frame img::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 30%;
  width: 40%;
  height: 0.75rem;
  margin-top: -0.375rem;
  border-radius: 999px;
  background: var(--honey);
}

.film__frame img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  color: transparent;
}

/* Nur bei fehlendem Bild (Chrome, Firefox): Symbol für kaputtes Bild verdecken */
.film__frame img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--night-2);
}

.film__frame figcaption {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  background: var(--night);
  color: var(--on-night);
  font-size: var(--fs-small);
  font-weight: 550;
}

/* Geplant: ruhig, ohne Akzent, damit es nicht wie Gebautes wirkt */
.planned {
  padding: var(--section) var(--pad-right) var(--section) var(--pad-left);
}

.planned > * {
  max-width: var(--wide);
  margin-inline: auto;
}

.planned h2 {
  font-size: var(--fs-h2);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.planned__hint {
  margin-top: 1rem;
  color: var(--muted);
}

.planned__list {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
  display: grid;
}

.planned__list li {
  padding-block: 0.875rem;
  border-top: 1px solid var(--rule);
}

.planned__list li:last-child {
  border-bottom: 1px solid var(--rule);
}

/* Warteliste */
.waitlist {
  background: var(--paper-2);
  padding-top: var(--section);
  padding-bottom: var(--section);
  scroll-margin-top: 0;
}

.waitlist__intro,
.form {
  max-width: var(--wide);
  margin-inline: auto;
}

.waitlist__intro p {
  margin-top: 1rem;
  max-width: 30em;
}

.waitlist__intro .status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.375rem 0.875rem 0.375rem 0.75rem;
  border-radius: 999px;
  background: var(--night);
  color: var(--on-night);
  font-size: var(--fs-small);
  font-weight: 550;
}

.status::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--honey);
}

.form {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.field {
  display: grid;
  gap: 0.5rem;
}

.field label {
  font-weight: 560;
}

.field input,
.field select {
  width: 100%;
  min-height: 52px;
  padding: 0 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: max(16px, 1.0625rem);
}

/* Pfeil der Auswahl als Hintergrund des select, damit er auch bei Fehlertext am Feld sitzt */
.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 3rem;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23141414' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 1.25rem center / 0.75rem auto;
  cursor: pointer;
}

.field textarea {
  width: 100%;
  min-height: 9rem;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: max(16px, 1.0625rem);
  line-height: 1.5;
  resize: vertical;
}

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

.field--select {
  position: relative;
}

/* Die zwei freiwilligen Fragen als eigene Gruppe, damit der Pflichtweg klar bleibt */
.form__extra {
  display: grid;
  gap: 1.25rem;
  min-width: 0;
  margin: 0.5rem 0 0;
  padding: 1.5rem 0 0;
  border: 0;
  border-top: 1px solid var(--rule);
}

.form__extra legend {
  float: left;
  width: 100%;
  padding: 0;
  font-weight: 600;
}

.form__hint {
  margin-top: -0.75rem;
  color: var(--muted);
  font-size: var(--fs-small);
}

/* Häkchen: 44 px Tap-Fläche, 24 px sichtbares Kästchen */
.check {
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 0.5rem;
  align-items: start;
}

.check input {
  -webkit-appearance: none;
  appearance: none;
  display: grid;
  place-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  border: 10px solid transparent;
  border-radius: 16px;
  background: var(--paper) padding-box;
  box-shadow: inset 0 0 0 1.5px var(--line);
  cursor: pointer;
}

.check input::before {
  content: "";
  width: 0.375rem;
  height: 0.6875rem;
  margin-top: -0.1875rem;
  border: solid var(--honey);
  border-width: 0 0.1875rem 0.1875rem 0;
  transform: rotate(45deg) scale(0);
}

.check input:checked {
  background-color: var(--night);
  box-shadow: none;
}

.check input:checked::before {
  transform: rotate(45deg) scale(1);
}

.check input:focus-visible {
  outline-offset: -7px;
}

.check label {
  display: block;
  min-height: 44px;
  padding-block: 0.5625rem;
  cursor: pointer;
}

/* Link im Satz: Tap-Fläche nach oben und unten, ohne den Zeilenfall zu ändern */
.check a {
  padding-block: 0.8125rem;
  font-weight: 560;
}

/* Fehler am Feld: kräftige Schrift mit gezeichnetem Ausrufezeichen, ohne Signalfarbe */
.field__error {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.4;
}

.field__error::before {
  content: "!";
  flex: none;
  display: grid;
  place-items: center;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.0625rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.75rem;
  font-weight: 700;
}

.check .field__error {
  grid-column: 2;
  margin-bottom: 0.25rem;
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--ink);
  border-width: 2px;
}

.check input[aria-invalid="true"] {
  box-shadow: inset 0 0 0 2px var(--ink);
}

.form__turnstile:empty {
  display: none;
}

.form__message {
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  background: var(--night);
  color: var(--on-night);
  font-weight: 550;
}

.form__success {
  max-width: var(--wide);
  margin-top: 2.5rem;
  margin-inline: auto;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--night);
  color: var(--on-night);
  font-size: var(--fs-lead);
  line-height: 1.4;
}

.form__success:focus-visible {
  outline-color: var(--ink);
}

.form__success-title {
  margin-bottom: 0.5rem;
  font-size: var(--fs-h2);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.form__success a {
  font-weight: 600;
  text-decoration-color: var(--honey);
}

.form__submit {
  margin-top: 0.5rem;
}

.form__submit .button {
  width: 100%;
}

/* Textseiten: Bestätigung, Impressum, Datenschutz */
.page {
  padding: var(--section) var(--pad-right) var(--section) var(--pad-left);
}

.page__text {
  max-width: 42rem;
  margin-inline: auto;
}

.page__text h1 {
  font-size: var(--fs-h2);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.page__text h2 {
  margin-top: 2.5rem;
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* Rechtstexte aus dem eRecht24-Generator bringen h3, h4 und Listen mit */
.page__text h3 {
  margin-top: 2rem;
  font-size: 1.0625rem;
  line-height: 1.35;
}

.page__text h4 {
  margin: 1.5rem 0 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.page__text p {
  margin-top: 1rem;
  max-width: 65ch;
}

.page__text ul {
  margin-top: 1rem;
  padding-left: 1.25rem;
  max-width: 65ch;
}

.page__text li + li {
  margin-top: 0.5rem;
}

.page__text a {
  font-weight: 560;
  overflow-wrap: anywhere;
}

.page__stand {
  color: var(--muted);
  font-size: var(--fs-small);
}

/* Fuß */
.site-footer {
  display: grid;
  gap: 1rem;
  padding-top: 3rem;
  padding-bottom: max(2.5rem, calc(1.5rem + env(safe-area-inset-bottom, 0px)));
}

.site-footer__social a {
  font-size: var(--fs-lead);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.5rem;
  color: var(--on-night-muted);
}

.site-footer__nav a {
  text-decoration: none;
}

/* Ab Tablet: zweispaltig */
@media (min-width: 56rem) {
  .hero {
    min-height: min(46rem, calc(100svh - 4.25rem));
    padding-bottom: var(--section);
  }

  .hero__text {
    padding-right: 34%;
  }

  .hero__mark {
    position: absolute;
    right: -12vw;
    bottom: -16vw;
    width: min(62vw, 56rem);
    margin: 0;
  }

  .features,
  .film,
  .waitlist {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 2rem;
    align-items: start;
  }

  .features > *,
  .film > *,
  .waitlist__intro,
  .form {
    max-width: none;
    margin-inline: 0;
  }

  .features h2,
  .features__intro {
    grid-column: 1 / span 5;
  }

  .features__list {
    grid-column: 7 / span 6;
    grid-row: 1 / span 2;
    margin-top: 0;
    gap: 2.5rem;
  }

  .features__trust {
    grid-column: 7 / span 6;
  }

  .film {
    align-items: end;
  }

  .planned {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 2rem;
    align-items: start;
  }

  .planned > * {
    max-width: none;
    margin-inline: 0;
  }

  .planned h2,
  .planned__hint {
    grid-column: 1 / span 5;
  }

  .planned__list {
    grid-column: 7 / span 6;
    grid-row: 1 / span 2;
    margin-top: 0;
  }

  .film h2 {
    grid-column: 1 / span 6;
  }

  .film__frame {
    grid-column: 7 / span 4;
    width: 100%;
    max-width: 21rem;
    margin-top: 0;
  }

  .waitlist__intro {
    grid-column: 1 / span 5;
    position: sticky;
    top: 2rem;
  }

  .form {
    grid-column: 7 / span 6;
    margin-top: 0;
  }

  .form__submit .button {
    width: auto;
  }

  .form__success {
    grid-column: 7 / span 6;
    max-width: none;
    margin: 0;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

/* Hover nur mit echtem Zeiger */
@media (hover: hover) and (pointer: fine) {
  .button:hover {
    box-shadow: inset 0 0 0 2px var(--ink);
  }

  .lang a:hover,
  .site-footer__nav a:hover {
    color: var(--on-night);
  }

  .site-footer__social a:hover {
    text-decoration-color: var(--honey);
  }

  .check input:not(:checked):hover {
    box-shadow: inset 0 0 0 2px var(--ink);
  }
}

/* Bewegung nur, wenn erwünscht */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .button {
    transition: transform 140ms var(--ease-out), box-shadow 140ms var(--ease-out);
  }

  .button:active {
    transform: scale(0.97);
  }

  .check input::before {
    transition: transform 160ms var(--ease-out);
  }

  .hero__mark {
    animation: mark-in 900ms var(--ease-out) both;
  }

  @keyframes mark-in {
    from {
      transform: translate3d(8%, 10%, 0) rotate(-6deg);
    }
  }
}
