/* euric AG - small additions on top of the standard Bootstrap Package theme (mobile first). */
:root {
  --euric-primary: #223F99;
  --euric-secondary: #B1D234;
  --euric-tertiary: #EFF6D6;
  --euric-text: #444444;
}
html { font-size: 100%; }
body {
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1em;
  line-height: 1.8;
  color: var(--euric-text);
  background: #fff;
}
h1, h2, h3, h4, h5, h6 { color: var(--euric-primary); font-weight: 700; line-height: 1.3; }
.frame-type-text > .frame-container h1,
.frame-header h1 { text-align: center; }

/* Slider: full width, uniform image size, centred, reasonably sized arrows */
.carousel .carousel-inner .item,
.carousel .carousel-inner .carousel-item { height: auto !important; min-height: 0 !important; padding: 0; }
.carousel .carousel-content-inner { max-width: none; }
.carousel .carousel-image picture { display: block; width: 100%; }
.carousel .carousel-image { margin: 0; flex: 1 1 100%; }
.carousel .carousel-image img,
.carousel .carousel-image picture img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}
@media (min-width: 768px) {
  .carousel .carousel-image img,
  .carousel .carousel-image picture img { aspect-ratio: 2.4 / 1; }
}
@media (min-width: 1200px) {
  .carousel .carousel-image img,
  .carousel .carousel-image picture img { aspect-ratio: 3 / 1; }
}
.carousel .carousel-control-prev,
.carousel .carousel-control-next {
  top: 50%;
  bottom: auto;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 .5rem;
  transform: translateY(-50%);
  border-radius: 50%;
  background: rgba(34, 63, 153, .6);
  opacity: 1;
  align-items: center;
  justify-content: center;
}
.carousel .carousel-control-prev:hover,
.carousel .carousel-control-next:hover { background: rgba(34, 63, 153, .9); }
.carousel .carousel-control-prev-icon,
.carousel .carousel-control-next-icon { width: 1.25rem; height: 1.25rem; }

/* Cards (product groups) in the light green of the old site */
.card-group .card, .card { background: var(--euric-tertiary); border: 0; }
.card-group-element .card .card-body .card-title,
.card .card-title, .card .card-header { color: var(--euric-primary); }
.card img { width: 100%; height: auto; }
.card ul { padding-left: 1rem; }

/* Tables (technical data) */
.table-responsive, .euric-table { overflow-x: auto; }
table { max-width: 100%; }
table.euric-spec th, table.euric-spec td { padding: .35rem .6rem; vertical-align: top; }
table.euric-spec th[scope="col"], table.euric-spec thead th { background: var(--euric-primary); color: #fff; }
table.euric-spec tr.euric-spec-section th { background: var(--euric-tertiary); color: var(--euric-primary); }

/* Footer in the brand green */
.footer-section-meta { background: var(--euric-secondary); color: var(--euric-text); }
.footer-section-meta a { color: var(--euric-primary); font-weight: 600; }
.footer-section-meta .footer-contact { margin-top: 1rem; }
.footer-section-meta h5, .footer-section-meta address, .footer-section-meta address p,
.footer-section-meta .footer-copyright, .footer-section-meta .footer-copyright p { color: var(--euric-text) !important; }
.footer-section-meta a, .footer-section-meta a:hover,
.footer-section-meta .footer-navigation-link, .footer-section-meta .footer-contact a { color: #15275f !important; }
.footer-section-content { background: var(--euric-tertiary); }
img { max-width: 100%; height: auto; }

/* Long words and URLs (legal texts) must wrap on small screens */
.frame-container p, .frame-container li, .frame-container h1, .frame-container h2, .frame-container h3 { overflow-wrap: anywhere; }
.contentcontainer-column { min-width: 0; }

/* Main navigation like the old site: entries with subpages only open their menu, mega menu columns have plain headings */
.navbar-nav .euric-nav-toggle { width: 100%; border: 0; background-color: transparent; text-align: left; cursor: pointer; }
.navbar-nav .euric-nav-toggle .nav-link-text::after { content: ''; display: inline-block; margin-left: .5em; vertical-align: .15em; border-top: .35em solid currentColor; border-right: .3em solid transparent; border-left: .3em solid transparent; }
.navbar-nav .euric-nav-heading { font-weight: 700; cursor: default; }
@media (min-width: 992px) {
  .navbar-nav .euric-nav-toggle { width: auto; }
}

/* separator between the footer entries, readable on the lime background like on the old site */
.footer-navigation-separator {
    color: #444;
}
