.heading1{
    font-size: clamp(22px, 5vw, 43px)!important;
    line-height: clamp(22px, 5vw, 43px)!important;
    margin-bottom: clamp(15px, 5vw, 30px)!important;
}

.heading3{
    font-family: 'Raleway';
    font-weight: 400;
    color: #707070;
    font-size: clamp(16px, 5vw, 28px);
    line-height: clamp(16px, 5vw, 28px);
    margin-bottom: clamp(15px, 5vw, 30px);
}

.dashboard-block{
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    padding: 20px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 30px;
    background-color: #fff;
}

.dashboard-block.overflow{
    overflow: visible!important;
    background-color: transparent;
}

.dashboard-block.overflow:after{
    content: '';
    position: absolute;
    display: block;
    left:0;
    bottom: 0;
    background-color: #fff;
    width: 100%;
    height: calc(100% - 70px);
    border-radius: 10px;
    z-index: -1;
}

.dashboard-block .row{
    width:100%;
}

.dashboard-block h1{
    font-size: clamp(24px, 5vw, 48px);
    line-height: clamp(24px, 5vw, 48px);
    margin-bottom: clamp(15px, 5vw, 30px);
    color: #8a1f5a;
    font-weight: 400;
    font-family: "Raleway";
}

.dashboard-block h2{
    font-size: clamp(16px, 5vw, 28px);
    line-height: clamp(16px, 5vw, 28px);
    margin-bottom: clamp(15px, 5vw, 30px);
}

.dashboard-block h4{
    color: #8a1f5a;
    font-weight: 300;
    font-family: "Raleway";
    text-transform: uppercase;
    font-size: clamp(12px, 5vw, 16px);
    line-height: clamp(12px, 5vw, 16px);
    margin-bottom: clamp(15px, 5vw, 30px);
}

.dashboard-block.overflow p{
    color: #8a1f5a;
    font-weight: 300;
    font-family: "Raleway";
    font-size: clamp(12px, 5vw, 16px);
    line-height: clamp(12px, 5vw, 16px);
    margin-bottom: 0;
}

.dashboard-block img {
    bottom: -15px;
    right: -25px;
    position: absolute;
    z-index: 0;
    width: clamp(70px, 10vw, 140px); /* groei met viewport */
    height: auto; /* behoud aspect ratio */
}

.dashboard-block .beheerder-foto-holder{
    padding-bottom: 15px;
}

.dashboard-block .beheerder-foto{
    position: relative;
    aspect-ratio: 2/1;
    overflow: hidden;
    border-radius: 10px;
    margin-top: -20px;
}

.dashboard-block .content-img {
    object-fit: cover;
    object-position: 50% 15%;
    position: relative;
    width: 100%!important;
    right: 0;
    bottom: 0;
    height: 100%; /* behoud aspect ratio */
}

.dashboard-block .dashbtn,
#steljevraag{
    display: inline-block;
    -webkit-transition: 0.2s;
    -moz-transition: 0.2s;
    -ms-transition: 0.2s;
    -o-transition: 0.2s;
    -webkit-appearance: none;
    font-family: 'Raleway bold';
    text-decoration: none;
    background: transparent;
    color: #FFB600;
    border: 0;
    font-weight: 400 !important;
    -webkit-font-smoothing: antialiased;
    padding: 10px 5px !important;
    font-size: clamp(16px, 5vw, 24px);
    line-height: clamp(16px, 5vw, 24px);
    margin-top: clamp(15px, 5vw, 30px);
    text-transform: uppercase;
    cursor: pointer;
}

.dashboard-block .dashbtn svg,
#steljevraag svg{
    margin-left: 0px;
    transition: 0.3s ease all;
}

.dashboard-block .dashbtn svg path,
#steljevraag svg path{
    fill: #FFB600;
}

.dashboard-block .dashbtn:hover svg,
#steljevraag:hover svg{
    margin-left: 10px;
    transition: 0.3s ease all;
}

dialog button{
    cursor: pointer;
}

dialog .wpcf7{
    max-width: 900px;
}

.cta{
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.cta h2{
    text-align: center;
    color: #fff!important;
}

.cta .overlay{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    background-color: rgba(138, 31, 90, 0.5);
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 1;
}

.cta img{
    position: absolute!important;
    object-fit: cover!important;
    object-position: 50% 50%;
    height: 100%;
    width: 100%;
    z-index: 0;
}

/* tabellen */

#brandstofChartLegend ul,
#kilometerChartLegend ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 kolommen */
    gap: 5px 10px; /* rijen en kolommen */
    padding-left: 0;
    margin: 0;
    list-style: none;
}

#brandstofChartLegend li,
#kilometerChartLegend li {
    list-style: none;
    display: flex;
    flex-direction: row;
    align-items: start;
    font-family: Arial, sans-serif;
    color: #8a1f5a;
    line-height: 2rem;
}

#brandstofChartLegend li b,
#kilometerChartLegend li b {
    font-weight: 700;
}


#brandstofChartLegend li .colorsquare,
#kilometerChartLegend li .colorsquare{
    display: inline-block;
    width: 12px;
    height: 12px;
    aspect-ratio: 1/1;
    margin-right: 10px;
    margin-top: 5px;
    border-radius: 4px;
}

#brandstofChartLegend li .chartpartinfo,
#kilometerChartLegend li .chartpartinfo{
    display: inline-block;
}

#brandstofChartLegend li:before,
#kilometerChartLegend li:before{
    content: none;
}

.table {
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 0.5rem;
    vertical-align: top;
    border-top: 1px solid #dee2e6;
}

.table thead th {
    vertical-align: top;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.05);
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.075);
}

.table-bordered {
    border: 1px solid #dee2e6;
}

.table-bordered th,
.table-bordered td {
    border: 1px solid #dee2e6;
}

/* Zorg dat <dialog> het hele scherm dekt met overlay */

dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.5); /* semi-transparant zwart */
}

/* Styling voor inhoud */
.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid #ccc;
    margin: auto;
}

canvas{
    max-width: 350px;
    max-height: 250px;
}