html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

#map,
#map-canvas {
  height: 100%;
}

.vh50 {
  height: 50vh;
}

.vh40 {
  height: 40vh;
}

/* Used by hero.html. The headline and copy are part of the artwork, so the hero
   must never be cropped: the image scales to the full width and the container
   takes its height from the image's own 1920x700 ratio. */
.title-image-container {
  width: 100%;
  position: relative;
}

.title-image-img {
  display: block;
  width: 100%;
  height: auto;
}

#id_betriebsgroesse,
#id_branche {
  background-repeat: no-repeat;
}

@media (max-width: 768px) {
  .o-header {
    overflow: hidden;
    padding: 1em;
  }
}

.title-image-text {
  position: absolute;
  z-index: 4;
  top: 15rem;
  left: 1rem;
  color: white;
  letter-spacing: -0.02em;
  text-align: left;
  background-color: #003e64;
  padding-right: 5rem;
  padding-bottom: 5rem;
}

@media (min-width:480px) {
  .title-image-text {
    left: 1rem;
  }
}

@media (min-width:768px) {
  .title-image-text {
    left: 3rem;
  }
}

@media (min-width:992px) {
  .title-image-text {
    left: 4rem;
  }
}

@media (min-width: 1200px) {
  .title-image-text {
    left: 6rem;
  }
}

@media (min-width: 1400px) {
  .title-image-text {
    left: 8rem;
  }
}

@media (min-width: 1600px) {
  .title-image-text {
    left: 12rem;
  }
}

/* The frontend-kit sets `.a-text-field { width: auto }`, which wins over the
   Bootstrap `col-*` widths, so the columns are sized via flex-grow instead.
   These helpers switch that behaviour at the 567px breakpoint. */
.my-col-6 {
  width: auto !important;
}

@media (min-width: 567px) {
  .my-col-6 {
    width: 50% !important;
  }
}

.my-checkbox > div {
  margin-bottom: 0.5em;
}

.my-checkbox-inline > div > div {
  display: flex;
}

.less-space-row {
  margin-bottom: 0em;
  margin-top: 0em;
}

.flex-grow-1-when-small {
  flex-grow: 1 !important;
}

@media (min-width: 567px) {
  .flex-grow-1-when-small {
    flex-grow: 0 !important;
  }
}

.title-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: black;
  opacity: 0.5;
  z-index: 3;
}

.checkbox {
  padding-left: calc(var(--bs-gutter-x) * 0.5);
}

/* The frontend-kit draws the checkmark with `position: absolute; left: 0` but
   without a `top`, so it falls back to its static position — the LAST line of
   the label. The box itself (label:before) is pinned to `top: 0`. On a
   single-line label both coincide; as soon as the label wraps or contains a
   <br> (the newsletter checkbox on FR), the checkmark is drawn below the box.
   app.css is loaded after frontend-kit.css, so this same-specificity rule wins. */
.a-checkbox input[type="checkbox"]:checked + label:after {
  top: 0;
}

/* The contact-preference options stay radios (exactly one choice), but should
   carry the same square Bosch tick as the privacy checkbox. The frontend-kit
   rules that produce that look only match input[type=checkbox], so they are
   mirrored here for input[type=radio]. Scoped via `input + label` so the
   <legend> of the radio group keeps its normal styling. */
.a-checkbox-radio .form-check {
  padding-left: 0;
  margin-bottom: 0.5rem;
}

.a-checkbox-radio input[type="radio"] {
  width: 0;
  height: 0;
  opacity: 0;
  float: none;
  margin: 0;
  -moz-appearance: none;
}

.a-checkbox-radio input[type="radio"] + label {
  position: relative;
  margin: 0;
  padding-left: 2rem;
  line-height: 1.5;
  font-size: 1rem;
  hyphens: auto;
  cursor: pointer;
}

.a-checkbox-radio input[type="radio"] + label:before {
  position: absolute;
  top: 0;
  left: 0;
  content: "";
  display: inline-block;
  height: 1.5rem;
  width: 1.5rem;
  background-color: var(--small__enabled__fill__default);
}

.a-checkbox-radio input[type="radio"]:hover + label:before {
  background-color: var(--small__enabled__fill__hovered);
}

.a-checkbox-radio input[type="radio"]:checked + label:before {
  background-color: var(--major-accent__enabled__fill__default);
}

.a-checkbox-radio input[type="radio"]:checked + label:after {
  position: absolute;
  top: 0;
  left: 0;
  font-family: Bosch-UI-Icon;
  font-size: 1.5rem;
  line-height: 1;
  height: 1.5rem;
  width: 1.5rem;
  color: var(--major-accent__enabled__front__default);
  content: var(--ui-ic-checkmark);
}

.steps-text {
  color: white;
}

.steps-text div a {
  color: white;
}

.steps-text div a:hover {
  color: white;
}

.a-radio-field div {
  position: relative;
  display: block;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.a-radio-field div input {
  display: none;
}

.a-radio-field div label {
  color: var(--plain__enabled__front__default);
  padding-left: 2rem;
  line-height: 1.5;
  font-size: 1rem;
  cursor: pointer;
}

.a-radio-field div label:before {
  position: absolute;
  content: "";
  width: 1.5rem;
  height: 1.5rem;
  background-color: var(--small__enabled__fill__default);
  left: 0;
  top: 0;
  border-radius: 0.75rem;
}

.a-radio-field div label:focus:before,
.a-radio-button label:hover:before {
  background-color: var(--small__enabled__fill__hovered);
}

.a-radio-field div label:active:before {
  background-color: var(--small__enabled__fill__pressed);
}

.a-radio-field div input:disabled ~ label {
  cursor: default;
  color: var(--plain__disabled__front__default);
}

.a-radio-field div input:disabled ~ label:before {
  background-color: var(--small__disabled__fill__default);
}

.a-radio-field div input:checked ~ label:before {
  background-color: var(--major-accent__enabled__fill__default);
}

.a-radio-field div input:checked ~ label:after {
  background-color: var(--major-accent__enabled__front__default);
  border-radius: 50%;
  content: "";
  display: inline-block;
  height: 0.75rem;
  left: 0;
  position: absolute;
  top: 0;
  transform-origin: top left;
  transform: translateX(0.375rem) translateY(0.375rem);
  width: 0.75rem;
}

.a-radio-field div input:checked ~ label:hover:before {
  background-color: var(--major-accent__enabled__fill__hovered);
}

.a-radio-field div input:checked ~ label:active:before {
  background-color: var(--major-accent__enabled__fill__pressed);
}

.a-radio-field div input:checked:disabled ~ label:before {
  background-color: var(--major-accent__disabled__fill__default);
}

.a-radio-field div input:checked:disabled ~ label:after {
  background-color: var(--major-accent__disabled__front__default);
}

.submit-button-primary {
  background-color: #003b6a;
  color: #fefefe;
}

.submit-button-primary:hover {
  background-color: #7faac8;
}

.submit-button {
  display: inline-flex;
  letter-spacing: 0;
  padding: 0;
  border: 0;
  cursor: pointer;
  margin: auto;
  padding: 0.75rem 1rem;
}

.a-radio-field-inline div {
  position: relative;
  display: inline-block;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  padding-left: 0em;
  padding-right: 0.5em;
}

.a-radio-field-inline div input {
  display: none;
}

.a-radio-field-inline div label {
  color: var(--plain__enabled__front__default);
  padding-left: 2rem;
  line-height: 1.5;
  font-size: 1rem;
  cursor: pointer;
}

.a-radio-field-inline div label:before {
  position: absolute;
  content: "";
  width: 1.5rem;
  height: 1.5rem;
  background-color: var(--small__enabled__fill__default);
  left: 0;
  top: 0;
  border-radius: 0.75rem;
}

.a-radio-field-inline div label:focus:before,
.a-radio-button label:hover:before {
  background-color: var(--small__enabled__fill__hovered);
}

.a-radio-field-inline div label:active:before {
  background-color: var(--small__enabled__fill__pressed);
}

.a-radio-field-inline div input:disabled ~ label {
  cursor: default;
  color: var(--plain__disabled__front__default);
}

.a-radio-field-inline div input:disabled ~ label:before {
  background-color: var(--small__disabled__fill__default);
}

.a-radio-field-inline div input:checked ~ label:before {
  background-color: var(--major-accent__enabled__fill__default);
}

.a-radio-field-inline div input:checked ~ label:after {
  background-color: var(--major-accent__enabled__front__default);
  border-radius: 50%;
  content: "";
  display: inline-block;
  height: 0.75rem;
  left: 0;
  position: absolute;
  top: 0;
  transform-origin: top left;
  transform: translateX(0.375rem) translateY(0.375rem);
  width: 0.75rem;
}

.a-radio-field-inline div input:checked ~ label:hover:before {
  background-color: var(--major-accent__enabled__fill__hovered);
}

.a-radio-field-inline div input:checked ~ label:active:before {
  background-color: var(--major-accent__enabled__fill__pressed);
}

.a-radio-field-inline div input:checked:disabled ~ label:before {
  background-color: var(--major-accent__disabled__fill__default);
}

.a-radio-field-inline div input:checked:disabled ~ label:after {
  background-color: var(--major-accent__disabled__front__default);
}

.h1,
h2,
h3,
h4,
h5,
h6 {
  color: #003b6a;
}

h2 {
    font-size: 2.2rem;
    line-height: 1.3
}

h3 {
    font-size: 2rem;
    line-height: 1.35
}

body {
  line-height: 1.3;
  text-transform: none;
  font-style: normal;
  letter-spacing: normal;
}

.btn {
  border-radius: 0;
}

.o-footer-expert-mailing {
  background:#efeff0;
  padding-bottom: 30px;
  padding-top: 30px;
}
.o-footer-expert-mailing .brand {
  display:none
}
@media (max-width:575px) {
  .o-footer-expert-mailing .brand {
    display:block;
    max-width:300px;
    margin-bottom:30px
  }
}
.o-footer-expert-mailing .headline {
  color:#003b6a;
  font-size:20px;
  line-height:30px;
  font-weight:700;
  text-transform:none;
  margin:0 0 6px
}
.o-footer-expert-mailing hr {
  height:1px;
  background:#003b6a;
  opacity:.25;
  margin:40px 0
}
@media (max-width:575px) {
  .o-footer-expert-mailing hr {
    margin:30px 0
  }
}
.o-footer-expert-mailing__item .headline {
  font-size:16px;
  line-height:24px;
  font-weight:700;
  text-transform:none;
  margin-bottom:16px
}
@media (max-width:991px) {
  .o-footer-expert-mailing .col-xs-12.col-sm-6.col-md-3:not(:last-child) {
    margin-bottom:14px
  }
}
.o-footer-expert-mailing__bottom {
  margin-top:64px
}
@media (max-width:575px) {
  .o-footer-expert-mailing__bottom {
    margin-top:14px
  }
}
.o-footer-expert-mailing .a-list li,
.o-footer-expert-mailing__copyright,
.o-footer-expert-mailing__links .link-inside {
  font-size:16px;
  line-height:24px
}
.o-footer-expert-mailing__links {
  display:flex;
  flex-wrap:wrap;
  gap:24px;
  margin-top:16px
}
@media (max-width:575px) {
  .o-footer-expert-mailing__links {
    display:flex;
    flex-direction:column;
    gap:16px
  }
}
.o-footer-expert-mailing .a-list li {
  margin-bottom:16px;
  margin-left:0
}
.o-footer-expert-mailing .a-list li::before {
  content:none
}

.link-inside {
  color: #005691;
  text-decoration: none;
}

/* landingpage/fr/cookie_banner.html. m-dialog and a-box come from the
   frontend kit; this only resets the native <dialog> around them. */
.cookie-consent {
  width: calc(100% - 2rem);
  padding: 0;
  border: 0;
  background: transparent;
}

/* Same as the kit's .-dimmed, which cannot be applied to ::backdrop. */
.cookie-consent::backdrop {
  background-color: rgba(113, 118, 124, 0.25);
  backdrop-filter: blur(0.25rem);
}

.cookie-consent .a-box {
  width: 100%;
}

/* DOCK's text buttons ("Paramètres", "< Retour") are blue; the kit has no
   tertiary button, so tint the integrated one. */
.cookie-consent .a-button--integrated {
  color: var(--minor-accent__enabled__front__default);
}

.cookie-consent__back {
  margin-bottom: 1rem;
}

.cookie-consent__category {
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.cookie-consent__category-description {
  padding-left: 2rem;
}

.cookie-consent .m-dialog__content a {
  color: var(--minor-accent__enabled__front__default);
  text-decoration: underline;
}

.cookie-consent__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin-top: 2rem;
}
