:root {
  --bs-primary: #00502b;
  --bs-link-color: #00502b;
  --bs-link-hover-color: #00301a;
  --bs-body-font-family: "Source Sans Pro", "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--bs-body-font-family);
  padding-top: 3.5rem;
  -webkit-font-smoothing: antialiased;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 0.25rem;
  font-weight: 300;
  line-height: 1.2;
  color: inherit;
}

h1 {
  font-size: 2.2rem;
  font-weight: 300;
  margin-top: 1.75rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.75rem;
  font-weight: 300;
  margin-top: 1.75rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.4rem;
  font-weight: 400;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

h4 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

/* Navbar */
#site-header {
  z-index: 1030;
}

.navbar {
  background-color: #00502b !important;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
  --bs-navbar-toggler-border-color: rgba(209, 224, 217, 0.4);
}

.navbar-container {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  max-width: 1200px;
}

.navbar-dark .navbar-nav .nav-link {
  padding-left: 1rem;
  padding-right: 1rem;
  text-decoration: none;
}

.navbar-dark .navbar-nav .nav-link.active {
  color: #ffffff !important;
}

.navbar-dark .navbar-toggler {
  border-color: rgba(209, 224, 217, 0.4);
  color: #d1e0d9;
}

/* Layout */
.page-container {
  max-width: 980px;
  padding-top: 1.75rem;
  padding-bottom: 3rem;
}

.page-container.single-column {
  max-width: 800px;
}

.content {
  flex: 1 0 auto;
}

.header-image {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 0.5rem;
}

/* Sidebar page layout — CSS Grid on desktop, flex column on mobile */
.page-columns-grid {
  display: flex;
  flex-direction: column;
}

.page-columns-grid .left-column     { display: contents; }
.page-columns-grid .image-column    { order: 1; }
.page-columns-grid .sidebar-column  { order: 2; padding-top: 1.25rem; padding-bottom: 0.75rem; }
.page-columns-grid .main-column     { order: 3; }

@media (min-width: 768px) {
  .page-columns-grid {
    display: grid;
    grid-template-columns: 4fr 1.1fr;
    column-gap: 1.5rem;
    align-items: start;
  }

  .page-columns-grid .left-column    { display: block; }
  .page-columns-grid .sidebar-column { padding-top: 0; }
  .header-image { margin-bottom: 1.25rem; }
}

.main-column table {
  border-collapse: collapse;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  width: 100%;
}

.main-column table td {
  vertical-align: top;
  padding: 0.2rem 0.75rem 0.2rem 0;
  font-size: 1rem;
}

.main-column table td[width="70"],
.main-column table td[width="80"] {
  font-weight: 600;
  white-space: nowrap;
}

/* Callout boxes */
.callout {
  margin-bottom: 1.25rem;
  border-radius: 0.25rem;
  border: 1px solid #dee2e6;
  border-left: 4px solid #00502b;
  overflow: hidden;
  background-color: #fff;
}

.callout-header {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.25rem 0.6rem;
  border: 0;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  color: #373a3c;
  background-color: #e6eeea;
}

.callout-icon-container {
  padding-top: 0.1em;
  padding-right: 0.45em;
}

.callout-caption-container {
  flex: 1;
}

.callout-icon::before {
  content: "";
  display: inline-block;
  width: 0.95rem;
  height: 0.95rem;
  background-repeat: no-repeat;
  background-size: 0.95rem 0.95rem;
}

.callout-note .callout-icon::before {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" style="fill: %2300502b" class="bi bi-info-circle" viewBox="0 0 16 16"><path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"/><path d="m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533L8.93 6.588zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0z"/></svg>');
}

.callout-tip .callout-icon::before {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" style="fill: %2300502b" class="bi bi-lightbulb" viewBox="0 0 16 16"><path d="M2 6a6 6 0 1 1 10.174 4.31c-.203.196-.359.4-.453.619l-.762 1.769A.5.5 0 0 1 10.5 13a.5.5 0 0 1 0 1 .5.5 0 0 1 0 1l-.224.447a1 1 0 0 1-.894.553H6.618a1 1 0 0 1-.894-.553L5.5 15a.5.5 0 0 1 0-1 .5.5 0 0 1 0-1 .5.5 0 0 1-.46-.302l-.761-1.77a1.964 1.964 0 0 0-.453-.618A5.984 5.984 0 0 1 2 6zm6-5a5 5 0 0 0-3.479 8.592c.263.254.514.564.676.941L5.83 12h4.342l.632-1.467c.162-.377.413-.687.676-.941A5 5 0 0 0 8 1z"/></svg>');
}

.callout-tip .callout-header {
  cursor: pointer;
}

.callout-tip .callout-header:focus-visible {
  outline: 2px solid #00502b;
  outline-offset: -2px;
}

.callout-btn-toggle {
  padding: 0.25rem 0 0.25rem 0.25rem;
}

.callout-toggle::before {
  content: "";
  display: inline-block;
  width: 0.9rem;
  height: 0.9rem;
  background-repeat: no-repeat;
  background-size: 0.9rem 0.9rem;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="rgb(55, 58, 60)" class="bi bi-chevron-down" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"/></svg>');
  transition: transform 0.2s linear;
}

.callout-header[aria-expanded="false"] .callout-toggle::before {
  transform: rotate(-90deg);
}

.callout-header[aria-expanded="true"] .callout-toggle::before {
  transform: rotate(0deg);
}

.callout-body {
  font-size: 0.9rem;
  font-weight: 400;
  padding: 0.5rem 0.6rem;
  color: #373a3c;
}

.callout-body p {
  margin-bottom: 0.6rem;
}

.callout-body p:last-child {
  margin-bottom: 0.2rem;
}

.callout-body address {
  margin-bottom: 0.6rem;
  font-style: normal;
}

.dekra-certificate {
  text-align: center;
}

.dekra-certificate-image {
  max-width: 100%;
  height: auto;
}

/* Footer */
.site-footer {
  width: 100%;
  border-top: 1px solid #dee2e6;
  margin-top: 2rem;
  font-size: 0.875rem;
}

.nav-footer {
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
}

.site-footer a {
  color: #00502b;
  text-decoration: none;
}

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