/* Stil 1:1 nach andreasbaulig.de/high-ticket-scaling-2027 (Florian 24.11.2026):
   Foto-Hintergrund mit 90 % Schwarz, eine zentrierte Spalte, Montserrat,
   eckige orange Verlaufsknöpfe (#FFAC3B → #F98E1D), rote Leiste oben. */
@font-face {
  font-family: "Montserrat";
  src: url("/_shared/fonts/montserrat.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: #fff;
  background: #000;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

.leiste {
  background: #d0021b;
  color: #fff;
  text-align: center;
  font-size: 16px;
  line-height: 21px;
  font-weight: 700;
  padding: 10px 16px;
}

/* Hintergrund: Bühnenfoto. Person im Bild: Mitte bei 45 % der Breite, Kopf bei 46 %, Füße bei 77 % der Höhe,
   Seitenverhältnis 16:9. Daraus werden die Positionen berechnet, damit Florian in jeder Größe sichtbar ist. */
.held {
  --h: calc(100vh - 41px);
  background-color: #000;
  background-image: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.92)), var(--hintergrund, none);
  background-size: auto, cover;
  background-position: 0 0, 50% 50%;
  background-repeat: no-repeat;
  min-height: calc(100vh - 41px);
  min-height: calc(100dvh - 41px);
  display: flex;
  flex-direction: column;
}

/* Breite Bildschirme: Bild deckt immer alles ab (keine Kante), Florian rechts neben dem Text, unten das Publikum.
   Bildbreite so gewählt, dass seine Mitte (45 % der Bildbreite) bei 50vw + 470px liegt, ohne dass links eine Lücke entsteht. */
@media (min-width: 1200px) {
  .held {
    --bw: max(100vw, calc((50vw + 500px) / 0.45), calc(var(--h) * 1.7778 * 1.3));
    --bh: calc(var(--bw) / 1.7778);
    background-image:
      linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0, rgba(0, 0, 0, 0.88) 30%, rgba(0, 0, 0, 0.84) calc(50% + 120px), rgba(0, 0, 0, 0.76) calc(50% + 260px), rgba(0, 0, 0, 0.64) calc(50% + 380px), rgba(0, 0, 0, 0.52) calc(50% + 500px), rgba(0, 0, 0, 0.48) 90%, rgba(0, 0, 0, 0.62) 100%),
      linear-gradient(180deg, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.35) 100%),
      var(--hintergrund, none);
    background-size: auto, auto, var(--bw) auto;
    background-position: 0 0, 0 0, clamp(calc(100vw - var(--bw)), calc(50vw + 500px - var(--bw) * 0.45), 0px) calc(var(--h) - var(--bh) * 0.92);
  }
  .buehne-streifen { display: none; }
}

/* Schmalere Bildschirme: randloser Fotostreifen oben (volle Breite, Bild füllt immer beide Seiten),
   Höhe wächst mit der Breite, damit Bühne und Publikum ganz zu sehen sind */
.buehne-streifen {
  position: relative;
  width: 100%;
  height: clamp(165px, min(46vw, 28vh), 440px);
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0, rgba(0, 0, 0, 0.05) 60%, #000 100%),
    var(--hintergrund, none);
  background-size: auto, cover;
  background-position: 0 0, 50% 58%;
  background-repeat: no-repeat;
}
.buehne-streifen .logo-flaeche { position: absolute; left: 50%; top: 8px; margin: 0; padding: 4px 6px; transform: translateX(-50%); }
.buehne-streifen .logo { height: 24px; }
@media (max-width: 1199px) {
  .kopfblock > .logo-flaeche { display: none; }
  .held { background-image: none; }
}

.spalte {
  flex: 1;
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 26px 20px 40px;
  text-align: center;
}

.logo-flaeche { display: table; background: #fff; padding: 8px 12px; margin: 0 auto 24px; }
.logo { display: block; height: 40px; width: auto; }

.ueberzeile {
  display: inline-block;
  font-size: 14px;
  line-height: 21px;
  font-weight: 700;
  text-transform: uppercase;
  background: linear-gradient(90deg, #ffac3b, #f98e1d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h1 { font-size: 38px; line-height: 44px; font-weight: 700; margin-top: 4px; }
.unterzeile { font-size: 20px; line-height: 26px; font-weight: 700; margin: 12px auto 0; max-width: 560px; }
.unterzeile u { text-decoration-thickness: 2px; text-underline-offset: 2px; }
.text { margin-top: 10px; }
.text strong, .text b { font-weight: 700; }
.vertrauen { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; font-size: 15px; }
.vertrauen span { max-width: 100%; }
.orange { color: #f98e1d; }

/* Fortschritt in Prozent (Zahl der Schritte bleibt verborgen) */
.fortschritt { max-width: 400px; margin: 26px auto 0; }
.fortschritt p { font-size: 14px; line-height: 21px; font-weight: 700; margin-bottom: 6px; }
.fortschritt p b { color: #f98e1d; }
.balken { height: 10px; background: rgba(255, 255, 255, 0.18); }
.balken span { display: block; height: 100%; width: 25%; background: linear-gradient(90deg, #ffac3b, #f98e1d); transition: width 0.4s ease; }

.frage { font-size: 20px; line-height: 26px; font-weight: 700; margin: 26px 0 14px; }

.schritt { display: none; }
.schritt.aktiv { display: block; }

/* Knopf wie im Vorbild */
.knopf {
  appearance: none;
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  border: 0;
  border-radius: 0;
  padding: 14px 24px;
  font: inherit;
  font-size: 15px;
  line-height: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  text-align: center;
  cursor: pointer;
  background-color: #ffac3b;
  background-image: linear-gradient(#ffac3b, #f98e1d 50%);
  box-shadow: 1px 1px 20px rgba(0, 0, 0, 0.3);
}
.knopf:hover { background-image: linear-gradient(#ffb85a, #fb9a33 50%); }
.knopf:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.knopf:disabled { opacity: 0.75; cursor: wait; }
.knoepfe { display: grid; gap: 12px; }

.unter-knopf { font-size: 14px; line-height: 21px; margin-top: 10px; }
.zurueck {
  appearance: none; background: none; border: 0; color: #9a9a9a; cursor: pointer;
  font: inherit; font-size: 13px; text-decoration: underline; margin-top: 14px;
}

.felder { max-width: 400px; margin: 0 auto 14px; display: grid; gap: 10px; }
.feld { display: block; text-align: left; }
.feld input {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: #000;
  background: #fff;
  border: 2px solid #fff;
  border-radius: 0;
  padding: 11px 14px;
  outline: none;
}
.feld input::placeholder { color: #777; }
.feld input:focus { border-color: #f98e1d; }
.feld.falsch input { border-color: #d0021b; }
.feld small { display: none; color: #ff8a80; font-size: 13px; line-height: 18px; font-weight: 700; margin-top: 4px; }
.feld.falsch small { display: block; }
.falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.einwilligung { max-width: 400px; margin: 12px auto 0; font-size: 11px; line-height: 16px; color: #9a9a9a; }

.fuss { padding: 14px 20px 20px; text-align: center; font-size: 12px; color: #9a9a9a; }
.fuss a { margin: 0 10px; }


/* Mehrfachauswahl (Frage 2): Kästchen links, gewählt = Haken und weißer Rand */
.hinweis-mehrfach { font-size: 13px; line-height: 18px; color: #cfcfcf; margin: -8px 0 12px; }
.knoepfe.mehrfach .knopf { position: relative; padding-left: 46px; padding-right: 46px; }
.knoepfe.mehrfach .knopf::before {
  content: ""; position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px;
  border: 2px solid #fff; background: transparent;
}
.knoepfe.mehrfach .knopf[aria-pressed="true"] {
  background-image: linear-gradient(#f98e1d, #e06f00 50%);
  box-shadow: inset 0 0 0 2px #fff, 1px 1px 20px rgba(0, 0, 0, 0.3);
}
.knoepfe.mehrfach .knopf[aria-pressed="true"]::before {
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e06f00' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.weiter {
  appearance: none; display: block; width: 100%; max-width: 400px; margin: 14px auto 0;
  border: 0; border-radius: 0; padding: 14px 24px; font: inherit; font-size: 15px; line-height: 20px; font-weight: 700;
  letter-spacing: 1px; color: #111; background: #fff; cursor: pointer; box-shadow: 1px 1px 20px rgba(0, 0, 0, 0.3);
}
.weiter:disabled { opacity: 0.4; cursor: not-allowed; }
.weiter:focus-visible { outline: 2px solid #f98e1d; outline-offset: 3px; }
.frage u { text-decoration-thickness: 2px; text-underline-offset: 3px; }
.nutzen { max-width: 640px; margin: -4px auto 14px; font-size: 15px; line-height: 21px; }
.nutzen u { text-underline-offset: 2px; }
.naechster { margin-top: 10px; font-size: 14px; line-height: 20px; }
.danke-hinweis { margin-top: 14px; font-size: 16px; line-height: 22px; color: #e0e0e0; }
.text u { text-underline-offset: 2px; }


/* Ab Tablet: kompakt, damit alle Knöpfe ohne Scrollen sichtbar sind (Florian 24.11.2026) */
body.schritt-2 .text, body.schritt-3 .text { display: none; }
@media (min-width: 601px) {
  .spalte { padding-top: 16px; padding-bottom: 20px; max-width: 900px; }
  .logo-flaeche { margin-bottom: 14px; padding: 6px 10px; }
  .logo { height: 34px; }
  h1 { font-size: 34px; line-height: 40px; max-width: 860px; margin-left: auto; margin-right: auto; }
  .unterzeile { max-width: 860px; font-size: 19px; line-height: 25px; margin-top: 8px; }
  .text { margin-top: 6px; }
  .fortschritt { max-width: 640px; margin-top: 16px; }
  .frage { margin: 18px 0 12px; }
  .knoepfe { grid-template-columns: 1fr 1fr; gap: 10px; max-width: 640px; margin: 0 auto; }
  .knoepfe .knopf { max-width: none; }
  .knoepfe .knopf:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .weiter, #absenden, .einwilligung, .felder { max-width: 640px; }
  .felder { grid-template-columns: 1fr 1fr; }
  .felder .feld:nth-child(3) { grid-column: 1 / -1; }
}
@media (min-width: 601px) and (max-height: 760px) {
  .vertrauen { font-size: 13px; line-height: 18px; margin-top: 4px; }
  h1 { font-size: 30px; line-height: 35px; }
  .logo { height: 28px; }
  body.schritt-2 .unterzeile, body.schritt-3 .unterzeile { display: none; }
  .buehne-streifen { height: clamp(150px, min(40vw, 30vh), 300px); }
}


/* Ab Frage 2 auf Handy und niedrigen Bildschirmen: Headline weg, damit alle Knöpfe sichtbar bleiben */
@media (max-width: 1199px), (max-height: 760px) {
  body.schritt-2 .kopfblock h1, body.schritt-3 .kopfblock h1,
  body.schritt-2 .ueberzeile, body.schritt-3 .ueberzeile { display: none; }
}

.klein-nur { display: none; }

/* Handy: zentriert, Fotostreifen oben, ohne Scrollen bis zum Weiter-Knopf */
@media (max-width: 600px) {
  .gross { display: none; }
  .klein-nur { display: inline; }
  .leiste { font-size: 12px; line-height: 16px; padding: 5px 10px; }
  .held { min-height: calc(100vh - 26px); min-height: calc(100dvh - 26px); }
  .spalte { padding: 0 20px 16px; }
  .buehne-streifen { height: clamp(110px, 21vh, 150px); margin-bottom: 4px; }
  .buehne-streifen .logo-flaeche { top: 8px; padding: 4px 6px; }
  .buehne-streifen .logo { height: 24px; }
  .ueberzeile { display: none; }
  h1 { font-size: 18px; line-height: 22px; margin: 0; }
  .unterzeile { font-size: 14px; line-height: 19px; margin-top: 8px; }
  .unterzeile u { text-decoration-thickness: 1px; }
  .vertrauen { font-size: 11px; line-height: 16px; gap: 2px 8px; margin-top: 5px; flex-wrap: nowrap; white-space: nowrap; }
  body.schritt-2 .unterzeile, body.schritt-3 .unterzeile { display: none; }
  .fortschritt { margin-top: 12px; }
  .fortschritt p { font-size: 12px; line-height: 16px; margin-bottom: 4px; }
  .balken { height: 8px; }
  .frage { font-size: 17px; line-height: 22px; margin: 12px 0 10px; }
  .knoepfe { gap: 8px; }
  .knopf { padding: 11px 16px; max-width: none; }
  .knoepfe.mehrfach .knopf { padding: 9px 40px; }
  .knoepfe.mehrfach .knopf::before { left: 12px; }
  .hinweis-mehrfach { font-size: 12px; margin: -6px 0 8px; }
  .weiter { max-width: none; margin-top: 10px; padding: 11px 16px; }
  .felder { grid-template-columns: 1fr; gap: 8px; margin-bottom: 10px; max-width: none; }
  .nutzen { font-size: 13.5px; line-height: 18px; margin: -4px 0 10px; }
  .feld input { padding: 10px 12px; }
  .unter-knopf { display: none; }
  .naechster { margin-top: 6px; font-size: 12px; line-height: 16px; }
  #absenden { font-size: 15px; letter-spacing: 0.4px; padding-left: 10px; padding-right: 10px; }
  .einwilligung { margin-top: 8px; font-size: 10.5px; line-height: 14px; }
  .zurueck { margin-top: 8px; }
}
@media (max-width: 370px) {
  .vertrauen { font-size: 10px; gap: 2px 6px; }
}
