@import url("./components/forms.css");

/* =========================
   HERO
   ========================= */

.hero-full {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  background:
    linear-gradient(100deg, rgba(7,69,101,.80) 0%, rgba(7,69,101,.54) 38%, rgba(7,69,101,.16) 72%),
    url("../img/hero-toblerone.png") center center / cover no-repeat;
}

.hero-full::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.18));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 380px;
  display: flex;
  align-items: center;
}

.hero-inner {
  position: relative;
  padding: 32px 0 48px;
  min-height: 380px;
}

.hero-logo-top {
  position: absolute;
  top: 24px;
  right: 0;
  z-index: 4;
}

.hero-logo-top img {
  height: 54px;
  width: auto;
  max-width: 100%;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.22));
}

.hero-logo-link {
    display: inline-block;
    transition: transform .2s ease, opacity .2s ease;
}

.hero-logo-link:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

.hero-brand-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .75rem;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  transition:
        background-color 160ms ease,
        border-color 160ms ease,
        transform 160ms ease;
}

.hero-meta-pill:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,.18);
    border-color: rgba(255,255,255,.24);
}

.hero-meta-pill:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 3px rgba(11, 187, 239, .14),
        0 0 0 1px rgba(11, 187, 239, .28);
}
/* Neue vertikale Steuerung */
.hero-stack {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 18px;
}

.hero-stack-top {
  flex: 0 0 auto;
}

.hero-stack-middle {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px 0;
}

.hero-stack-bottom {
  flex: 0 0 auto;
  min-height: 42px; /* hält unteren Bereich konsistent, auch ohne Badges */
  display: flex;
  align-items: flex-end;
}

.hero-title {
  max-width: 25ch;
  color: #fff;
  font-size: clamp(34px, 3.8vw, 50px);
  line-height: .96;
  font-weight: 700;
  margin: 0 0 12px 0;
  text-wrap: balance;
}

.hero-copy {
  max-width: 50ch;
  color: rgba(255,255,255,.84);
  font-size: 15px;
  line-height: 22px;
  font-weight: 400;
  margin: 0;
}

.hero-badges {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.chip-light {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  backdrop-filter: blur(8px);
  font-weight: 700;
}

/* =========================
   MAIN / Übergang
   ========================= */

.tj-main-wrap {
  position: relative;
  z-index: 5;
  margin-top: 0;
}

.tj-main-surface {
  background: #ffffff;
  border-radius: 34px 34px 0 0;
  box-shadow: 0 10px 28px rgba(0,0,0,.045);
  margin: -28px auto 0;
  padding-top: 34px;
  padding-bottom: 60px;
}

.tj-main {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.Xcontainer {
  max-width: 1240px;
}

/* =========================
   SIDE CONTENT
   ========================= */

.tj-side-copy {
  padding-right: 32px;
}

.side-copy {
  margin-bottom: 22px;
}

.side-points {
  display: grid;
  gap: 14px;
  margin-bottom: 26px;
}

.side-point {
  display: flex;
  gap: 12px;
  font-weight: 400;
}

.side-point i {
  color: var(--tj-blue);
  margin-top: 4px;
}

.edition-preview {
  background: #ffd400;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  margin-bottom: 12px;
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.edition-name-fit {
  width: 100%;
  max-width: 100%;
  line-height: 1.1;
}

.edition-line {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  overflow: visible;
}

.edition-line span {
  display: inline-block;
  font-family: "Memo W04 Regular", serif;
  font-weight: 900;
  letter-spacing: .08em;
  color: #e40520;
  text-transform: uppercase;
  white-space: nowrap;
  transform-origin: center center;
  will-change: transform;
  text-shadow:
    1px 0 0 #f5c400,
   -1px 0 0 #f5c400,
    0 1px 0 #f5c400,
    0 -1px 0 #f5c400,

    2px 0 0 #f5c400,
   -2px 0 0 #f5c400,
    0 2px 0 #f5c400,
    0 -2px 0 #f5c400,

    2px 2px 0 #f5c400,
   -2px 2px 0 #f5c400,
    2px -2px 0 #f5c400,
   -2px -2px 0 #f5c400,

    4px 4px 0 #04295a,
    5px 5px 0 #04295a,

    4px 3px 0 #04295a,
    3px 4px 0 #04295a,
    5px 4px 0 #04295a,
    4px 5px 0 #04295a;
}

.edition-note {
  color: var(--tj-color-copy-soft);
}

.side-next-steps {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--tj-line);
}

.side-next-steps-title {
  font-family: var(--tj-font-family);
  font-size: 14px;
  font-weight: 700;
  color: var(--tj-color-subheading);
  margin-bottom: 10px;
  letter-spacing: .02em;
}

.side-next-steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}

.side-next-steps-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: var(--tj-color-copy-soft);
}

.side-next-steps-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(11, 187, 239, .45);
}

/* =========================
   FORM
   ========================= */

.form-zone {
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(15, 23, 42, .07);
  border-radius: 28px;
  box-shadow: 0 12px 34px rgba(2, 6, 23, .04);
  padding: 28px;
}

.form-head {
  margin-bottom: 24px;
  padding-bottom: 18px;
}

.tj-form-section + .tj-form-section {
  margin-top: 32px;
  padding-top: 28px;
}

.form-control,
.form-select,
.floating-select select.form-select {
  background-color: #fff !important;
  border: 1px solid rgba(15, 23, 42, .10) !important;
  border-radius: 16px !important;
  box-shadow: none !important;
  font-weight: 700;
  color: #333333;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 6l5 5 5-5' stroke='%237b8494' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px 16px;
  padding-right: 2.75rem !important;
}

.form-control:hover,
.form-select:hover,
.floating-select select.form-select:hover {
  border-color: rgba(15, 23, 42, .18) !important;
  box-shadow: none !important;
}

.form-control:focus,
.form-select:focus,
.floating-select select.form-select:focus {
  border-color: rgba(11,187,239,.55) !important;
  box-shadow: 0 0 0 .18rem rgba(11,187,239,.12) !important;
}

.floating-ios input.form-control,
.floating-select select.form-select {
  height: var(--ctl-h) !important;
}

.floating-ios label,
.floating-ios label.form-label,
.floating-select label {
  font-weight: 400 !important;
  color: rgba(15, 23, 42, .50);
  letter-spacing: 0;
}

.floating-ios input.form-control:focus + label,
.floating-ios input.form-control:not(:placeholder-shown) + label,
.floating-select select.form-select:focus + label,
.floating-select select.form-select.has-value + label {
  color: var(--tj-blue-strong) !important;
  font-weight: 700 !important;
}

/* =========================
   CHECKBOXEN / SWITCH-ROWS
   ========================= */

.tj-checkbox-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--tj-line);
}

.tj-checkbox-list .form-check {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  column-gap: 12px;
  margin: 0;
  padding: 15px 0 !important;
  border-top: 1px solid var(--tj-line);
  background: transparent;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  box-shadow: none;
}

.tj-checkbox-list .form-check:first-child {
  border-top: 0;
}

.tj-checkbox-list .form-check-label {
  margin: 0;
  font-weight: 400;
  color: rgba(15, 23, 42, .78);
  line-height: 1.45;
}

.tj-checkbox-list .form-check-input {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 46px;
  height: 28px;
  margin: 0;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 9999px;
  background: #e5e7eb;
  box-shadow: none !important;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease;
}

.tj-checkbox-list .form-check-input::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 9999px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, .12);
  transition: transform .18s ease;
}

.tj-checkbox-list .form-check-input:checked {
  background-color: var(--tj-blue);
  border-color: rgba(11, 187, 239, .44);
}

.tj-checkbox-list .form-check-input:checked::after {
  transform: translateX(18px);
}

.tj-checkbox-list .form-check-input:focus {
  box-shadow: 0 0 0 .18rem rgba(11,187,239,.12) !important;
}

.tj-checkbox-list .is-invalid-row,
.tj-checkbox-list .form-check.is-invalid-row {
  border-color: rgba(185, 28, 28, .22);
  box-shadow: none;
}

.tj-checkbox-list .is-invalid-row .form-check-label,
.tj-checkbox-list .form-check.is-invalid-row .form-check-label {
  color: rgba(185, 28, 28, .92);
}

/* =========================
   HONEYPOT
   ========================= */

.honeypot-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 991px) {
  .hero-full,
  .hero-content,
  .hero-inner {
    min-height: 340px;
  }

  .hero-stack {
    min-height: 260px;
    padding-top: 12px;
  }

  .hero-title {
    max-width: 22ch;
    font-size: clamp(30px, 7vw, 42px);
    line-height: 1.0;
  }
  
  .tj-main-wrap {
    margin-top: 0;
  }

  .tj-side-copy {
    padding-right: 0;
    border-bottom: 1px solid var(--tj-line);
    padding-bottom: 24px;
  }
}