/*
 * Eigenständiges Stylesheet für die B2B-Landingpage — bewusst
 * schlank und unabhängig vom großen main.css der interaktiven
 * Hauptseite. Schrift/Farben/Grundmaße sind dieselben Design-Tokens
 * wie dort, damit es exakt gleich aussieht.
 */

@font-face {
  font-family: "GT-Standard-L-Standard-Heavy";
  src: url("../fonts/GT-Standard-L-Standard-Heavy.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


:root {

  /* Startfarbe = 2026 (blau, dieselbe wie auf der Hauptseite) */
  /* Grün ist die Standardfarbe — die Seite startet immer mit der (grün eingefärbten) Wandkalender/Papier-Sektion */
  --ink: #33cc66;

  /* Die gezeichnete Linie selbst ist immer schwarz, unabhängig vom Farbwechsel */
  --ink-line: #000000;

  --paper: rgb(250, 250, 250);

  /* Eigene, dunklere Farbe speziell für die Papier-Fläche des Plakats */
  --poster-paper: rgb(249, 249, 247);

  /* Bewusst getrennt von --paper: Invertierte Buttons sollen reines Weiß zeigen, unabhängig von der Hintergrundfarbe */
  --pure-white: #ffffff;

  --font: "GT-Standard-L-Standard-Heavy", sans-serif;
  --font-size: 36px;

  /* Auf Wunsch einheitlich GT-Standard statt Jali — betrifft automatisch alle Stellen, die var(--info-font) nutzen */
  --info-font: "GT-Standard-L-Standard-Heavy", sans-serif;
  --info-font-size: 20px;

  --letter-spacing: -0.01em;

  --hud-pad: clamp(20px, 3.2vw, 40px);

  --stage-pad-top: clamp(90px, 12svh, 140px);
  --stage-pad-bottom: clamp(90px, 12svh, 140px);
  --stage-pad-x: clamp(40px, 9vw, 280px);

  /* Größe des großen Icon-Buttons unten links */
  --action-size: clamp(56px, 8vw, 76px);

  color-scheme: light;

}

@media (max-width: 500px) {

  /*
   * Wie auf der Hauptseite: auf schmalen Bildschirmen wird die
   * Titel-Schrift bewusst verkleinert — greift nur unterhalb von
   * 500px, nicht kontinuierlich bei jeder Fensterbreite.
   */

  :root {
    --font-size: 24px;
  }

}


/*
 * Ab der ersten Promo-Sektion wechselt die Akzentfarbe auf Grün
 * (dieselbe wie 2027 auf der Hauptseite) — wird per JS gesetzt.
 */

body.theme-blue {
  --ink: #3689d5;
}



* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  /*
   * Zusätzliche Absicherung gegen Doppeltipp-Zoom auf Mobile,
   * ergänzend zum viewport-Meta-Tag (user-scalable=no) — manche
   * älteren Browser respektieren Letzteres nicht immer zu 100%.
   */
  touch-action: pan-x pan-y;
  /*
   * Unterbindet den nativen "Rubber-Band"-Bounce-Effekt am Rand
   * (iOS/Trackpad) — rein visuelles Überscrollen, das sich mit
   * JavaScript allein nicht zuverlässig abstellen lässt, da es vom
   * Betriebssystem/Browser selbst animiert wird, nicht über
   * normale Scroll-Events.
   */
  overscroll-behavior-y: none;
  /*
   * KEIN overflow-x:hidden hier — auch mit explizit gesetztem
   * overflow-y:visible daneben stuft der Browser overflow-y laut
   * Spezifikation trotzdem automatisch auf "auto" hoch, sobald die
   * andere Achse ungleich "visible" ist, was body selbst zum
   * Scroll-Container macht und position:sticky bricht.
   */
}

body {
  font-family: var(--info-font);
  color: #1a1a1a;
}


/* =====================================================================
   OBEN LINKS — "PEU À PEU"
   ===================================================================== */

.hud {
  position: fixed;
  z-index: 30;
  margin: 0;
  font-family: var(--font);
  font-size: var(--font-size);
  font-weight: 400;
  color: var(--ink);
  transition: color 0.4s ease;
}

.hud--tl {
  top: var(--hud-pad);
  left: var(--hud-pad);
}

.hud--br {
  bottom: var(--hud-pad);
  right: var(--hud-pad);
}

.hud--tr {
  top: var(--hud-pad);
  right: var(--hud-pad);
}

.hud--bc {
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
}

/*
 * Einzelne Rechtstext-Links unten mittig, durch "|" getrennt —
 * bewusst sehr dezent (helles Grau, kleine Schrift). Fixiert,
 * erscheint erst beim Erreichen des echten Scroll-Endes (siehe
 * scripts/main.js), nicht schon beim bloßen Betreten der letzten
 * Sektion.
 */

.legal-links-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  overflow: visible;
}

.legal-links-wrap[hidden] {
  display: none;
}

.legal-links-row {
  display: flex;
  align-items: center;
  justify-content: center;
}

.legal-link {
  appearance: none;
  background: none;
  border: none;
  padding: 3px 4px;
  margin: 0;
  color: #c7c7c7;
  font-family: var(--info-font);
  font-size: 11px;
  letter-spacing: normal;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  transition: color 0.3s ease, opacity 0.2s ease;
}

.legal-link:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

@media (hover: hover) {

  .legal-link:hover {
    opacity: 0.6;
  }

}

.legal-link-sep {
  display: inline-block;
  margin: 0 6px;
  color: #c7c7c7;
  font-size: 11px;
  opacity: 0.8;
}

/*
 * Zentriertes Pop-up statt Bottom-Sheet — schwebt mittig über der
 * Seite, mit Fade+Scale-Einblendung.
 */

.legal-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 22, 26, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.legal-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.legal-modal {
  position: relative;
  width: min(420px, 92vw);
  max-height: min(80vh, 600px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 24px 28px;
  border-radius: 18px;
  background: #f2f2f2;
  color: #1a1a1a;
  box-shadow: 0 20px 50px rgba(20, 22, 26, 0.25);
  opacity: 0;
  transform: scale(0.96);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.legal-modal-backdrop.is-open .legal-modal {
  opacity: 1;
  transform: scale(1);
}

#legalModalContent {
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: normal;
  overflow-wrap: break-word;
  word-break: break-word;
}

#legalModalContent p {
  margin: 0 0 12px;
}

/*
 * Digitale Widerrufsmöglichkeit — eigenes Formular unter dem
 * Rechtstext im Widerruf-Eintrag, nur dort sichtbar.
 */

.widerruf-form {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #dcdcdc;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.widerruf-form h3 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}

.widerruf-form label {
  display: block;
  margin: 10px 0 4px;
  font-size: 12px;
  color: #6b6b6b;
}

.widerruf-form input {
  display: block;
  width: 100%;
  padding: 8px 10px;
  box-sizing: border-box;
  border: 1px solid #cccccc;
  border-radius: 6px;
  background: #ffffff;
  color: #1a1a1a;
  font-family: inherit;
  font-size: 14px;
}

.widerruf-form input:focus-visible {
  outline: 2px solid #1a1a1a;
  outline-offset: 1px;
}

.widerruf-form__error {
  margin: 12px 0 0;
  color: #c0392b;
  font-size: 12px;
}

.widerruf-form__submit {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 10px;
  appearance: none;
  border: none;
  border-radius: 6px;
  background: #1a1a1a;
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.widerruf-form__submit:focus-visible {
  outline: 2px solid #1a1a1a;
  outline-offset: 2px;
}

@media (hover: hover) {

  .widerruf-form__submit:hover {
    opacity: 0.85;
  }

}

.imprint-close {
  position: sticky;
  top: 8px;
  float: right;
  margin-left: 12px;
  margin-bottom: 8px;
  appearance: none;
  background: #f2f2f2;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  color: #1a1a1a;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.imprint-close:focus-visible {
  outline: 2px solid #1a1a1a;
  outline-offset: 2px;
}

@media (hover: hover) {

  .imprint-close:hover {
    opacity: 0.6;
  }

}


/* =====================================================================
   KAUFEN-POP-UP (B2C) — PAYPAL "IN DEN WARENKORB" + WARENKORB
   ===================================================================== */

.buy-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(20, 22, 26, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.buy-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.buy-modal {
  position: fixed;
  top: calc(var(--hud-pad) + var(--action-size) + 10px);
  right: var(--hud-pad);
  width: min(380px, 90vw);
  max-height: min(75vh, 560px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px 24px 28px;
  border-radius: 20px;
  background: #ffffff;
  color: #1a1a1a;
  box-shadow: 0 16px 40px rgba(20, 22, 26, 0.22);
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
  transform-origin: top right;
  transition: transform 0.3s ease, opacity 0.25s ease;
  pointer-events: none;
}

.buy-modal-backdrop.is-open .buy-modal {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.buy-modal__cart-link {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 12px 0;
  border: none;
  background: none;
  color: #1a1a1a;
  font-family: var(--info-font);
  font-size: 15px;
  text-decoration: underline;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.state-label {
  position: fixed;
  z-index: 30;
  bottom: var(--hud-pad);
  right: var(--hud-pad);
  margin: 0;
  max-width: 92vw;
  white-space: nowrap;
  text-align: right;
  font-family: var(--font);
  font-size: var(--font-size);
  line-height: 1.05;
  letter-spacing: var(--letter-spacing);
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  transition: color 0.4s ease;
}

.state-label:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.state-label[hidden] {
  display: none;
}

.site-title {
  display: block;
  margin: 0;
  font-family: var(--font);
  font-size: var(--font-size);
  font-weight: 400;
  line-height: 1;
  letter-spacing: var(--letter-spacing);
  color: inherit;
  white-space: nowrap;
}

/*
 * "peu à peu" ist ein <button> (scrollt beim Klick einen Zustand
 * hoch) — Browser-Standardaussehen zurücksetzen, damit es optisch
 * exakt wie reiner Text aussieht.
 */

button.site-title {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

button.site-title:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}


/* =====================================================================
   OBEN RECHTS — KAUFEN-BUTTON (B2C)
   ===================================================================== */

.pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--action-size);
  padding: 0 22px;
  border: none;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: normal;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  transition: color 0.4s ease, background 0.4s ease;
}

.pill-button[hidden] {
  display: none;
}

.pill-button__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.pill-button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

@media (hover: hover) {

  .pill-button:hover {
    background: var(--pure-white);
    color: var(--ink);
  }

}


/* =====================================================================
   OBEN RECHTS — INFO-BUTTON / KLEINE BLASE MIT KONTEXT-TEXT
   ===================================================================== */

.info-wrap {
  display: block;
}

.info-toggle {
  position: relative;
  appearance: none;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  width: auto;
  max-width: min(92vw, 420px);
  height: auto;
  border: none;
  background: none;
  color: var(--ink);
  padding: 0;
  margin: 0;
  font-family: var(--font);
  font-size: var(--font-size);
  font-weight: 400;
  line-height: 1.05;
  white-space: nowrap;
  letter-spacing: var(--letter-spacing);
  text-align: right;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  transition: color 0.4s ease;
}

.info-toggle:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.info-toggle[hidden] {
  display: none;
}

.info-toggle__label {
  display: block;
}

/*
 * Immer vollständig sichtbar (zweite Zeile), keine Klick-
 * Interaktion mehr — jede Sektion zeigt durchgehend ihren
 * vollständigen, zweizeiligen Text.
 */

.info-toggle__body {
  display: block;
  width: 100%;
  text-align: right;
  white-space: nowrap;
  font-size: var(--font-size);
  line-height: 1.05;
  letter-spacing: var(--letter-spacing);
}

.info-toggle__body p {
  margin: 0;
}

.info-bubble {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  z-index: 31;
  width: fit-content;
  min-width: 200px;
  max-width: min(520px, 92vw);
  padding: 18px 22px;
  border-radius: 14px;
  background: var(--ink);
  color: #ffffff;
  box-shadow: none;
  font-family: var(--font);
  font-size: var(--font-size);
  line-height: 1.15;
  letter-spacing: var(--letter-spacing);
  overflow-wrap: break-word;
  transition: background 0.4s ease, max-width 0.2s ease;
}

.info-bubble[hidden] {
  display: none;
}

/*
 * Impressum hat deutlich mehr Text (Name, Adresse, Telefon, E-Mail,
 * USt-IdNr.) als die kurzen Bild-Infos — bei gleicher Breite wurde
 * die Blase entsprechend lang/schmal. Nur hier breiter, damit sie
 * kompakter bleibt.
 */

.info-bubble p {
  margin: 0 0 12px;
}

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

.info-bubble a {
  color: inherit;
  text-decoration: underline;
}


/* =====================================================================
   SCROLL-TRACK / STAGE — HÖHE DES TRACKS ENTSPRICHT GENAU DEM
   SCROLL-WEG BIS ZUM HEUTIGEN DATUM. STICKY HÄLT DAS PLAKAT WÄHREND
   DESSEN FEST; DANACH LÄUFT DIE SEITE GANZ NORMAL WEITER IN DEN
   PROMO-SEKTIONEN.
   ===================================================================== */

.scroll-track {
  position: relative;
  /* Höhe wird von main.js per JS gesetzt (siehe updateTrackHeight) */
}

.stage {
  position: sticky;
  top: 0;
  height: 100svh;
  padding: var(--stage-pad-top) var(--stage-pad-x) var(--stage-pad-bottom);
  container-type: size;
  display: flex;
  align-items: center;
  justify-content: center;
}

.poster {
  /*
   * cqh/cqw statt vh/vw — bezieht sich auf die Größe von .stage
   * NACH Abzug seines Paddings, nicht auf den vollen Viewport.
   */
  position: relative;
  margin: 0;
  height: min(calc(100cqh - 20px), calc(100cqw * 841 / 594));
  width: auto;
  aspect-ratio: 594 / 841;
  transform: translateZ(0);
}

.layer {
  position: absolute;
  inset: 0;
  display: block;
}

.layer--paper {
  background: var(--poster-paper);
  border-radius: 2px;
  box-shadow: 0 4px 14px rgba(20, 22, 26, 0.16);
}

.layer--layout {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.layer--path svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

/*
 * Exakt dieselben Selektoren/Werte wie im großen main.css der
 * Hauptseite — die gezeichnete Linie ist bewusst immer SCHWARZ
 * (--ink-line), unabhängig vom Farbwechsel (der betrifft nur --ink).
 */

.layer--path path,
.layer--path polyline,
.layer--path polygon {
  fill: none;
  stroke: var(--ink-line);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pen-halo {
  fill: var(--ink-line);
  opacity: 0.18;
  transform-box: fill-box;
  transform-origin: center;
  animation: pen-breathe 2.6s ease-in-out infinite;
}

@keyframes pen-breathe {

  0%, 100% {
    transform: scale(1);
    opacity: 0.18;
  }

  50% {
    transform: scale(1.35);
    opacity: 0.10;
  }

}


/* =====================================================================
   PROMO-SEKTIONEN — NORMALER SEITENFLUSS NACH DEM SCROLL-TRACK.
   BEWUSST KEIN NATIVES CSS SCROLL-SNAP (WAR AUF MANCHEN GERÄTEN
   INSTABIL — SPRANG AN FALSCHE POSITIONEN, VERHINDERTE VOLLES
   HOCHSCROLLEN). DAS EINRASTEN ÜBERNIMMT STATTDESSEN JS NACH
   SCROLL-ENDE (SIEHE SCRIPTS/MAIN.JS) — FUNKTIONIERT AUCH BEI
   FREIEM WISCHEN/SCROLLEN UND BLEIBT BEI FENSTERGRÖSSEN-ÄNDERUNGEN
   KORREKT BILDSCHIRMFÜLLEND, DA JEWEILS NEU ANHAND DER AKTUELLEN
   VIEWPORT-HÖHE BERECHNET.
   ===================================================================== */

.promo {
  position: relative;
  height: 100svh;
  overflow: hidden;
}

.promo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/*
 * Für einzelne Sektionen (02, 04, 06) — Bild sitzt in einem Rahmen
 * exakt derselben Größe/Position wie das Kalender-Poster, statt
 * randlos den ganzen Bildschirm zu füllen. Übernimmt bewusst
 * dieselbe Formel (Padding, Seitenverhältnis 594:841, Schatten) wie
 * .stage/.poster/.layer--paper weiter oben.
 */

.promo--framed {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--stage-pad-top) var(--stage-pad-x) var(--stage-pad-bottom);
  container-type: size;
}

.promo--framed img {
  position: static;
  inset: auto;
  height: min(calc(100cqh - 20px), calc(100cqw * 841 / 594));
  width: auto;
  aspect-ratio: 594 / 841;
  border-radius: 2px;
  object-fit: cover;
}


/* =====================================================================
   UNTEN LINKS — GROSSER ICON-BUTTON (PFEIL, IM LETZTEN ZUSTAND MAIL)
   VOLLTON-GEFÜLLT, INVERTIERT BEIM HOVER
   ===================================================================== */

.icon-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--action-size);
  width: var(--action-size);
  height: var(--action-size);
  border: none;
  border-radius: 999px;
  background: var(--ink);
  box-shadow: none;
  color: #ffffff;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  transition: color 0.4s ease, background 0.4s ease;
}

.icon-button[hidden] {
  display: none;
}

@media (hover: hover) {

  .icon-button:hover {
    background: var(--pure-white);
    color: var(--ink);
  }

}

.scroll-button {
  position: fixed;
  z-index: 30;
  bottom: var(--hud-pad);
  left: var(--hud-pad);
}

.scroll-button__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.scroll-button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

@media (hover: hover) {

  /* Invertiert beim Hover: Vollton weg, Farbe wandert auf Rand/Icon */

  .scroll-button:hover {
    background: var(--pure-white);
    color: var(--ink);
  }

}


/* =====================================================================
   UNTEN RECHTS — STATUS-LABEL, GLEICHE GRÖSSE WIE "PEU À PEU"
   ===================================================================== */


@media (prefers-reduced-motion: reduce) {

  * {
    scroll-behavior: auto !important;
  }

}
