/*
 * Waidgefaehrte theme — adapted from the original Drupal bootstrap_tp_subtheme
 * (themes/custom/bootstrap_tp_subtheme) onto Bootstrap 5 markup. Colors, fonts
 * and component look are taken from the real compiled custom.css pulled from
 * the live site, not guessed.
 */

/* The real site never actually loads the dedicated Bold cut for text — every
   bold usage (headlines, active nav, buttons) applies font-weight:bold to
   this same Regular cut and lets the browser synthesize it. Matching that
   exactly rather than swapping to a true bold face, since the letterforms
   render slightly differently. */
@font-face {
  font-family: 'ZEISSFrutigerNextW1G-Reg';
  src: url('../fonts/ZEISSFrutigerNextW1G-Reg.woff2') format('woff2');
}

:root {
  --zeiss-blue: #008BD0;
  --zeiss-blue-dark: #141E8C;
  --zeiss-blue-hover: #006699;
  --zeiss-grey: #4A4A4A;
  --zeiss-grey-bg: #F5F5F5;
  --zeiss-text: #555555;
}

body {
  font-family: 'ZEISSFrutigerNextW1G-Reg', Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: #222;
}

.container-zeiss {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header / navigation — the real site stacks the logo (with its "Seeing
   beyond" tagline baked into the same image) above the nav row, both
   left-aligned to the same edge, rather than a single logo-left/nav-right
   row. */

.site-header .navbar-brand {
  display: inline-block;
  padding: 20px 0 10px;
}

.site-header .navbar-brand img {
  height: 100px;
}

.site-header .navbar {
  margin-bottom: 0;
}

.site-header .navbar-nav {
  gap: 0.75rem 36px;
}

.site-header .nav-link {
  color: var(--zeiss-text);
  padding-left: 0;
}

/* Real site keeps these two states distinct: the current page's link goes
   bold (not blue), and blue is reserved for :hover. */
.site-header .nav-link.active {
  font-weight: bold;
  color: var(--zeiss-text);
}

.site-header .nav-link:hover {
  color: var(--zeiss-blue-hover);
}

/* Real page's gap here comes from the hero image's own wrapping <p> (default
   margin-bottom:1rem) plus a second, empty whitespace paragraph right after
   it (~21px line-height + its own 1rem margin) — not a deliberate clean
   value, just leftover editorial whitespace, but real (confirmed ~53px
   total). Reproduced directly as a margin here rather than adding a fake
   empty paragraph to our own markup to match it. */
.header-banner {
  margin: 0 0 53px;
  line-height: 0;
}

.header-banner img {
  width: 100%;
  display: block;
}

/* Headings — .headline1-bold/.headline1-reg are applied to <h2> elements in
   the real markup, not <h1>, so they take the 30px h2 size, not h1's 36px.
   headline1-bold is also NOT centered/red/uppercase on its own — that
   combination only appears with the separate .headline1-center class, which
   the confirmed homepage markup does not use. */

h1 {
  font-size: 36px;
}

h2 {
  font-size: 30px;
}

.headline1-bold {
  font-weight: 700;
}

/* Extra breathing room before the "Ablauf" heading specifically — the intro
   paragraph right before it needs more separation than headings generally
   get elsewhere. */
.home-intro + .headline1-bold {
  margin-top: 2.5rem;
}

.headline1-reg {
  font-weight: 400;
  margin-top: -10px;
}

.headline1-center {
  text-align: center;
  text-transform: uppercase;
  color: #E1172B;
}

/* Buttons */

.zeiss-btn-main {
  background-color: var(--zeiss-blue);
  border: none;
  border-radius: 0;
  font-weight: 700;
  padding: 10px 25px;
  color: #fff;
  text-decoration: none;
  display: inline-block;
}

.zeiss-btn-main:hover,
.zeiss-btn-main:focus,
.zeiss-btn-main:active {
  background-color: var(--zeiss-blue);
  color: #fff;
}

/* Home page */

.home-intro {
  margin-top: 1rem;
}

/* Full-bleed banner (edge-to-edge), not a boxed/contained grey area — same
   breakout technique used for .site-footer. The inner .container-zeiss
   (added in the blade template) constrains the actual step content. */
.ablauf-steps {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  background-color: var(--zeiss-grey-bg);
  margin-top: 25px;
  margin-bottom: 25px;
  padding: 25px 0;
}

/* haken.jpg has the checkmark glyph drawn in the upper portion of its own
   square canvas with blank space below it, so top-aligning the raw <img>
   makes the ink sit visibly higher than the adjacent text — centering the
   whole image against the text block reads as properly aligned instead. */
.ablauf-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.ablauf-step:last-child {
  margin-bottom: 0;
}

.ablauf-step-icon {
  flex: 0 0 auto;
}

.home-cta {
  text-align: center;
  margin: 2rem 0 1rem;
}

/* Registration wizard — the whole wizard (progress indicator, all step
   content, and the action buttons) sits inside one full-bleed grey banner
   on the real site, not just a boxed strip around the buttons. */

.wizard-band {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  background-color: var(--zeiss-grey-bg);
  padding: 25px 0;
}

/* Same full-bleed grey band technique for the registration confirmation
   message — the OG wraps the whole thing in one, same as the wizard. */
.confirmation-band {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  background-color: var(--zeiss-grey-bg);
  padding: 25px 0;
}

.wizard-progress {
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
}

.wizard-progress li {
  flex: 1;
  text-align: center;
  position: relative;
  font-size: 13px;
  color: var(--zeiss-text);
}

.wizard-progress li:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--zeiss-grey);
  z-index: 0;
}

.wizard-progress li.is-complete:not(:last-child)::after {
  background: var(--zeiss-grey);
}

.wizard-progress li .marker {
  position: relative;
  z-index: 1;
  display: block;
  width: 28px;
  height: 28px;
  line-height: 26px;
  margin: 0 auto 6px;
  border-radius: 50%;
  border: thin solid var(--zeiss-grey);
  background: #fff;
  color: var(--zeiss-grey);
  font-weight: 600;
}

.wizard-progress li.is-active .marker {
  background: var(--zeiss-blue-dark);
  border-color: var(--zeiss-blue-dark);
  color: #fff;
}

.wizard-progress li.is-complete .marker {
  background: var(--zeiss-grey);
  border-color: var(--zeiss-grey);
  color: #fff;
}

.wizard-step {
  display: none;
}

.wizard-step.is-active {
  display: block;
}

.wizard-step-intro {
  margin-bottom: 2rem;
  color: #444;
}

/* The real Gutscheincode field sits in a narrow flex column (roughly a
   quarter of the row), not stretched full-width like a plain .form-control
   normally would be. */
.field-narrow {
  max-width: 35%;
  margin-left: auto;
  margin-right: auto;
}

.wizard-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

/* Field help tooltip ("?" icon shown next to a label) */

.help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #bbb;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  font-family: Arial, sans-serif;
  line-height: 1;
  cursor: help;
  position: relative;
  vertical-align: middle;
  transition: background-color 0.15s ease-in-out;
}

.help-icon:hover,
.help-icon:focus,
.help-icon:focus-within {
  background: #0074bd;
}

.help-icon-tooltip {
  position: absolute;
  bottom: 100%;
  left: 0;
  width: 260px;
  max-width: 80vw;
  background: #333;
  color: #fff;
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: normal;
  line-height: 1.4;
  white-space: normal;
  text-align: left;
  display: none;
  z-index: 10;
}

.help-icon-tooltip-heading {
  display: block;
  margin-bottom: 6px;
  color: #fff;
}

.help-icon-tooltip a {
  color: #9cf;
  text-decoration: underline;
}

.help-icon:hover .help-icon-tooltip,
.help-icon:focus .help-icon-tooltip,
.help-icon:focus-within .help-icon-tooltip {
  display: block;
}

.pflichtfeld-note {
  text-align: center;
}

.form-label {
  font-weight: 700;
  color: var(--zeiss-text);
  margin-bottom: 5px;
  display: inline-block;
}

.form-control,
.form-select {
  font-size: 14px;
  color: var(--zeiss-text);
  border-radius: 0;
}

.error.form-item--error-message {
  display: block;
  color: red;
  font-weight: normal;
  margin-top: 10px;
}

/* Bootstrap adds its own warning-triangle icon (plus the padding to make
   room for it) to every .is-invalid field by default — removed, keeping
   only the red border as the invalid indicator, matching the OG. */
.form-control.is-invalid,
.form-control.is-invalid:focus {
  background-image: none;
  padding-right: .75rem;
}

.form-select.is-invalid:not([multiple]):not([size]) {
  --bs-form-select-bg-icon: none;
  padding-right: 2.25rem;
  background-image: var(--bs-form-select-bg-img);
  background-position: right .75rem center;
  background-size: 16px 12px;
}

.form-control.is-invalid,
.form-select.is-invalid {
  border: thin solid red;
}

/* Bring Select2 (dealer search) roughly in line with the site's own
   .form-control sizing/border — its default theme is unstyled otherwise. */
.select2-container--default .select2-selection--single {
  height: 34px;
  border-radius: 0;
  border-color: #ccc;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 34px;
  font-size: 14px;
  color: var(--zeiss-text);
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 32px;
}

/* The real <select> carries .is-invalid, but Select2 renders its own visible
   box as the next sibling — style that instead of the (hidden) select. */
select.is-invalid.select2-hidden-accessible + .select2-container--default .select2-selection--single {
  border-color: red;
}

.file-upload-control {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  cursor: pointer;
}

.file-upload-control .file-upload-button {
  background: #e9ecef;
  padding: 4px 10px;
  font-size: 13px;
  white-space: nowrap;
}

.file-upload-control .file-upload-filename {
  font-size: 13px;
  color: var(--zeiss-text);
}

.file-upload-control .file-upload-size {
  font-size: 12px;
  color: var(--zeiss-grey);
  margin-left: auto;
  white-space: nowrap;
}

.file-upload-remove {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--zeiss-grey);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.file-upload-remove:hover {
  background: #e9ecef;
  color: #b00020;
}

.file-upload-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.iban-check-feedback,
.code-check-feedback {
  color: red;
  margin-top: 10px;
}

.cashback-feedback {
  color: var(--zeiss-blue-dark);
  font-weight: 700;
  margin-top: 0.5rem;
}

/* Footer — full-bleed (edge-to-edge) but no background color; just the top
   border strip, with the actual link row constrained to 80% width and
   right-aligned inside it. */

.site-footer {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  margin-top: 45px;
}

.site-footer .container-zeiss {
  max-width: 80%;
  border-top: 1px solid #bcbdbc;
  padding-top: 10px;
  padding-bottom: 10px;
}

.site-footer .footer-links {
  list-style: none;
  display: flex;
  justify-content: flex-end;
  gap: 3rem;
  padding: 0;
  margin: 0;
}

/* The real footer links turned out to just use plain Bootstrap .nav-link
   styling (var(--bs-nav-link-color), no text-transform) rather than the
   uppercase/#909090 rule pulled from the old custom.css — that rule
   targeted a .menu--footer class the current live markup doesn't use
   anymore. Using the same dark grey as the rest of the body text as a
   closer stand-in until the exact real color value is confirmed. */
.site-footer .footer-links a {
  color: var(--zeiss-text);
  text-decoration: none;
  font-size: 13px;
}

.site-footer .footer-links a:hover {
  text-decoration: underline;
}

@media (max-width: 700px) {
  .header-banner {
    display: none;
  }

  .wizard-progress {
    flex-wrap: wrap;
    gap: 0.75rem 0;
  }

  .wizard-progress li {
    flex: 0 0 50%;
  }

  .wizard-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .ablauf-step {
    flex-direction: column;
    align-items: flex-start;
  }

  .field-narrow {
    max-width: 100%;
  }
}
