/* Shared design system for the custom funnel pages (php/lib/funnel-layout.php).
   Tokens mirror the Flatsome shop theme on teezyt.ch: --fs-color-primary #086068,
   Lato 400/700, body #575757, headings #4f4f4f, uppercase 700 buttons, 5px radii,
   card shadow 1px 1px 15px rgba(0,0,0,.15), footer #494949 / #096661.
   Page stylesheets only add page-specific parts and use their own prefix. */

@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/wp-content/fonts/lato/S6uyw4BMUTPHjx4wXg.woff2") format("woff2");
}

@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/wp-content/fonts/lato/S6u9w4BMUTPHh6UVSwiPGQ.woff2") format("woff2");
}

:root {
  --tz-primary: #086068;
  --tz-primary-hover: #064e54;
  --tz-primary-accent: #096970;
  --tz-primary-tint: #e6f0f1;
  --tz-on-primary-accent: #9fd6da;
  --tz-secondary: #a34a2d;
  --tz-success: #4d7a2a;
  --tz-success-tint: #eef4e8;
  --tz-alert: #b20000;
  --tz-alert-tint: #fbeaea;
  --tz-text: #575757;
  --tz-heading: #4f4f4f;
  --tz-muted: #707070;
  --tz-border: #ddd;
  --tz-divider: #ececec;
  --tz-surface: #fff;
  --tz-surface-alt: #f7f7f7;
  --tz-footer: #494949;
  --tz-footer-bottom: #096661;
  --tz-star: #d26e4b;
  --tz-radius: 5px;
  --tz-shadow: 1px 1px 15px rgba(0, 0, 0, .15);
  --tz-container: 1230px;
  --tz-shell: 1028px; /* the calm funnel shell (header, /kasse-abo/): 600 main + gap + 340 side + 2 x 16 */
  --tz-bar-height: 76px;
}

@media (min-width: 1280px) {
  :root {
    --tz-shell: 1052px;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-bottom: calc(var(--tz-bar-height) + 16px);
}

body {
  margin: 0;
  background: var(--tz-surface);
  color: var(--tz-text);
  font-family: Lato, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--tz-primary-accent);
}

a:hover {
  color: #111;
}

h1, h2, h3 {
  color: var(--tz-heading);
  line-height: 1.25;
}

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

[hidden] {
  display: none !important;
}

.tz-container {
  width: 100%;
  max-width: var(--tz-container);
  margin: 0 auto;
  padding: 0 16px;
}

.tz-container--narrow {
  max-width: 760px;
}

.tz-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.tz-skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 8px 16px;
  background: var(--tz-primary);
  color: #fff;
}

.tz-skip:focus {
  top: 8px;
}

/* ---------- Top bar + steps row (mirror the shop header). The row between them (logo, shop menu) and the
   drawer: css/tz-menu.css ---------- */

.tz-topbar {
  background: var(--tz-primary);
  color: #fff;
  font-size: 12px;
  line-height: 30px;
}

.tz-topbar__inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.tz-topbar a {
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 11px;
}

.tz-topbar__usp {
  font-weight: 700;
  text-transform: uppercase;
}

/* Row 2: the stepper (only when the page has steps) */
.tz-header__steps {
  border-top: 1px solid var(--tz-divider);
}

.tz-header__steps > .tz-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
}

.tz-steps {
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12.8px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #999;
}

.tz-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tz-steps__num {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 2px solid currentColor;
  border-radius: 999px;
  font-size: 12px;
}

.tz-steps .is-done {
  color: var(--tz-primary);
}

.tz-steps .is-current {
  color: var(--tz-primary);
}

.tz-steps .is-current .tz-steps__num {
  background: var(--tz-primary);
  border-color: var(--tz-primary);
  color: #fff;
}

/* ---------- Hero ---------- */

.tz-hero {
  background: var(--tz-primary);
  color: #f1f1f1;
  text-align: center;
  padding: 40px 0 44px;
}

.tz-hero__inner {
  max-width: 760px;
}

.tz-eyebrow {
  margin: 0 0 8px;
  font-size: 12.8px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .8);
}

.tz-hero h1 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  line-height: 1.15;
}

.tz-accent {
  color: var(--tz-on-primary-accent);
}

.tz-lead {
  margin: 0 auto 20px;
  max-width: 600px;
  font-size: 17.6px;
}

.tz-usps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14.4px;
  font-weight: 700;
}

.tz-usps li::before {
  content: "✓";
  margin-right: 6px;
  color: var(--tz-on-primary-accent);
}

/* ---------- Sections, cards, alerts ---------- */

.tz-section {
  padding: 32px 0;
}

.tz-section-title {
  margin: 0 0 24px;
  font-size: 25.6px;
  text-align: center;
}

.tz-card {
  padding: 24px 20px;
  border-radius: var(--tz-radius);
  background: var(--tz-surface);
  box-shadow: var(--tz-shadow);
}

.tz-card__title {
  margin: 0 0 16px;
  font-size: 20px;
}

.tz-alert {
  margin: 0 0 24px;
  padding: 12px 16px;
  border-left: 4px solid var(--tz-alert);
  border-radius: var(--tz-radius);
  background: var(--tz-alert-tint);
  color: #5c0000;
}

.tz-alert--info {
  border-color: var(--tz-primary);
  background: var(--tz-primary-tint);
  color: var(--tz-heading);
}

.tz-alert--success {
  border-color: var(--tz-success);
  background: var(--tz-success-tint);
  color: #2f4b1a;
}

/* ---------- Buttons (match Flatsome .button.primary / .is-outline) ---------- */

.tz-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid rgba(0, 0, 0, .05);
  border-radius: 0;
  background: var(--tz-primary);
  color: #fff;
  font-family: inherit;
  font-size: 15.52px;
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .3s, box-shadow .3s, opacity .3s, color .3s;
}

.tz-button:hover {
  background: var(--tz-primary-hover);
  color: #fff;
  box-shadow: inset 0 0 0 100px rgba(0, 0, 0, .2);
}

.tz-button--outline {
  border: 2px solid var(--tz-primary);
  background: transparent;
  color: var(--tz-primary);
}

.tz-button--outline:hover {
  background: var(--tz-primary);
  color: #fff;
  box-shadow: none;
}

.tz-button--block {
  display: flex;
  width: 100%;
}

.tz-button:disabled,
.tz-button.is-loading {
  opacity: .6;
  cursor: progress;
}

/* ---------- Form fields (match Flatsome inputs) ---------- */

.tz-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 16px;
}

.tz-field label,
.tz-label {
  color: var(--tz-heading);
  font-size: 14.4px;
  font-weight: 700;
}

.tz-field__hint {
  margin: 0;
  color: var(--tz-muted);
  font-size: 13px;
}

.tz-field__error {
  margin: 0;
  color: var(--tz-alert);
  font-size: 13px;
  font-weight: 700;
}

.tz-input,
.tz-select,
.tz-textarea {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--tz-border);
  border-radius: 0;
  background: var(--tz-surface);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1);
  color: #333;
  font-family: inherit;
  font-size: 16px; /* 16px keeps iOS from zooming on focus */
  transition: border-color .3s, box-shadow .3s;
}

.tz-input:focus,
.tz-select:focus,
.tz-textarea:focus {
  border-color: var(--tz-primary);
  outline: none;
  box-shadow: 0 0 0 3px var(--tz-primary-tint);
}

.tz-input[aria-invalid="true"],
.tz-select[aria-invalid="true"] {
  border-color: var(--tz-alert);
}

.tz-input[readonly] {
  background: var(--tz-surface-alt);
}

.tz-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0 16px;
}

.tz-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 12px;
  cursor: pointer;
}

.tz-check input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--tz-primary);
  flex: 0 0 auto;
}

/* Selectable option cards (radio/checkbox inside a label) */
.tz-choice {
  position: relative;
  display: block;
  padding: 16px;
  border: 2px solid var(--tz-border);
  border-radius: var(--tz-radius);
  background: var(--tz-surface);
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}

.tz-choice:hover {
  border-color: var(--tz-primary-accent);
}

.tz-choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.tz-choice:has(input:checked) {
  border-color: var(--tz-primary);
  box-shadow: 0 0 0 3px var(--tz-primary-tint);
}

.tz-choice:has(input:focus-visible) {
  outline: 3px solid var(--tz-primary);
  outline-offset: 2px;
}

.tz-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--tz-secondary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}

/* ---------- Trust: how-it-works + quotes ---------- */

.tz-howto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
  counter-reset: step;
  text-align: center;
}

.tz-howto li {
  counter-increment: step;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tz-howto li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0 auto 8px;
  border-radius: 999px;
  background: var(--tz-primary-tint);
  color: var(--tz-primary);
  font-weight: 700;
}

.tz-howto strong {
  color: var(--tz-heading);
  font-size: 18px;
}

.tz-howto span {
  font-size: 15px;
}

.tz-quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tz-quotes li {
  padding: 20px;
  border-radius: var(--tz-radius);
  background: var(--tz-surface-alt);
  text-align: center;
}

.tz-quotes li::before {
  content: "★★★★★";
  display: block;
  margin-bottom: 8px;
  color: var(--tz-star);
  letter-spacing: 2px;
}

.tz-quotes blockquote {
  margin: 0 0 8px;
  color: var(--tz-heading);
  font-style: italic;
}

.tz-quotes span {
  font-size: 14.4px;
  font-weight: 700;
}

/* ---------- Sticky action bar ---------- */

.tz-bar {
  position: sticky;
  bottom: 0;
  z-index: 10;
  background: var(--tz-surface);
  box-shadow: 0 -4px 8px rgba(0, 0, 0, .1);
}

.tz-bar__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--tz-bar-height);
  padding-top: 12px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
}

/* ---------- Footer (mirrors shop footer-2 + absolute-footer) ---------- */

.tz-footer {
  background: var(--tz-footer);
  color: #f1f1f1;
  font-size: 14.4px;
}

.tz-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.tz-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.tz-footer a {
  color: #d0e5e4;
}

.tz-footer p {
  margin: 0;
}

.tz-footer__bottom {
  padding: 10px 0 15px;
  background: var(--tz-footer-bottom);
  color: rgba(255, 255, 255, .8);
}

/* ---------- Small screens ---------- */

@media (max-width: 849px) {
  .tz-steps {
    gap: 10px;
  }

  .tz-steps__label {
    display: none;
  }

  .tz-steps .is-current .tz-steps__label {
    display: inline;
  }
}

@media (max-width: 549px) {
  .tz-topbar__usp {
    display: none;
  }

  .tz-topbar__inner {
    justify-content: center;
  }

  .tz-header__steps > .tz-container {
    min-height: 40px;
  }

  .tz-hero {
    padding: 28px 0 32px;
  }

  .tz-lead {
    font-size: 16px;
  }

  .tz-bar__inner {
    gap: 12px;
  }

  .tz-button {
    padding: 0 16px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
