﻿:root {
  --color-brand-primary: #90c049;
  --color-brand-effect: #638f21;
  --color-note-bg: #fdfaed;
  --color-note-border: #d7d4c9;
  --color-nav-hover-text: #fff;
  --color-status-warning-bg: #fff0f0;
  --color-status-warning-border: #cc0000;
}


/*elementen*/

.content-align-right {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.content-align-center {
  align-items: center;
  display: flex;
  justify-content: center;
}

.menu {
  height: fit-content;
  list-style: none;
  padding-left: 0;
}

.menu-item {
  padding: 0;
}

  .menu-item.active {
    background-color: var(--color-brand-primary);
  }

.menu-item-link {
  align-items: center;
  background-color: inherit;
  color: inherit;
  display: flex;
  justify-content: space-between;
  padding: 10px 20px;
  text-decoration: none;
  transition: color 0.3s ease;
  width: 100%;
}

  .menu-item-link:hover {
    background-color: var(--color-brand-effect);
    color: var(--color-nav-hover-text);
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
  }

.menu-item-chevron {
  font-weight: bold;
  padding-left: 10px;
}

.menu-btn-toggle {
  background: var(--color-brand-primary);
  border: none;
  border-radius: 4px;
  color: white;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  padding: 2px 6px;
  transition: all 0.3s ease;
}

  .menu-btn-toggle:hover {
    background: var(--color-brand-effect);
  }

  .menu-btn-toggle:focus {
    outline: 2px solid var(--color-brand-effect);
    outline-offset: 2px;
  }

.menu-btn-toggle-fade {
  box-shadow: 0 0 0 1px var(--color-brand-effect);
  outline: none;
  transition: box-shadow 1s ease-out, outline 1s ease-out;
}


/*teksten*/

h2 {
  border-left: 5px solid var(--color-brand-primary);
  line-height: 1.6em !important;
  padding-left: 10px;
}

h3 {
  font-size: 18px !important; /* anders net zo groot als h2 (24px) */
}

.note {
  background-color: var(--color-note-bg);
  border: 1px solid var(--color-note-border);
  margin: 15px 0;
  padding: 15px;
  color: black;
}

.risk {
  background-color: var(--color-status-warning-bg);
  border-left: 3px solid var(--color-status-warning-border);
  margin: 15px 0;
  padding: 15px;
  color: black;
}

h2:has(+ .risk) { /* ofwel: de H2 die direct voor class .risk komt */
  border-left: 5px solid var(--color-status-warning-border);
}
