html {
    height: 100%;
}
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.5;
    background: #f4f4f4;
    color: #222;

    min-height: 100%;
    position: relative;       /* nodig voor absolute footer */
    padding-bottom: 80px;     /* ruimte voor footer (zelfde hoogte als footer) */
    box-sizing: border-box;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 1rem 0 1rem;
}

.headercontainer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem 0 1rem;
}
.headermenu {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 1rem;
    color: #000;
    background: #fefbe7;
    border-radius: 8px;
    border: 3px solid #ddd;
}

main {
    padding: 2rem 0;
}

/* === Header & Footer === */
header {
    background: #0d6efd;
    color: #fff;
    padding: 0.5rem 0 0.3rem 0;
}

header h1 {
    margin: 0;
    font-size: 1.5rem;
}

nav {
    /margin-top: .5rem;
}

nav a {
    color: #fff;
    text-decoration: none;
    margin-right: 1rem;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}


footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;             /* vaste hoogte */
    background: #eee;
    text-align: center;
    padding: 1rem;
    font-size: .9rem;
}

/* === Typografie === */
h1 {
    margin: 0.5rem 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: .5rem;
}
h2 {
    margin: 0 0 .5rem 0;
    font-size: 1.15rem;
}
h2 .historic{
    margin: 0 0 1rem 0;
    font-size: 1.15rem;
}
h3 {
    margin: .5rem 0 .25rem;
    font-size: 1rem;
}
a {
    color: #0066cc;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

.muted { color: #666; }
.subtle { color: #444; }
.hint   { font-size: .92rem; color: #666; margin-top: .25rem; }

/* === Buttons === */
.btn {
    display: inline-block;
    padding: .6rem 1rem;
    border-radius: 6px;
    border: 1px solid #0b5ed7;
    background: #0d6efd;
    color: #fff;
    text-decoration: none;
    font-size: .9rem;
    cursor: pointer;
}
.btn:hover { background: #0b5ed7; }

.btn-danger {
    background: #dc3545;
    border-color: #b02a37;
}
.btn-danger:hover { background: #b02a37; }

/* === Kaarten & Layout === */
.card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    background: #fff;
    /margin-bottom: 1.5rem;
    box-sizing: border-box;
}
.s-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0.75rem;
    background: #fff;
    /margin-bottom: 1.5rem;
    box-sizing: border-box;
}
.pp-card {
    width: 185px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0.2rem;
    background: #fff;
    /margin-bottom: 1.5rem;
    box-sizing: border-box;
}

.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
}
.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 0.8rem;
    margin-bottom: 0.8rem;
}
.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 0.5rem;
    margin-bottom: 0.8rem;
}
@media (min-width: 900px) {
    .grid-2 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
    .grid-3 { grid-template-columns: 185px 1fr; }
}
.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
}
.stack {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
.s-stack {
    display: flex;
    flex-direction: column;
    gap: .50rem;
}
.partner-card {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: .75rem;
    background: #f6faff;
}

/* === Formulieren === */
label {
    display: block;
    margin: .5rem 0 .25rem;
    font-weight: bold;
}
input, select, textarea {
    width: 100%;
    padding: .5rem;
    box-sizing: border-box; /* zorgt dat border + padding binnen de 100% blijven */
    line-height:1.1rem;
}
input[type="date" i] {
    text-autospace: no-autospace !important;
    font-family: monospace;
    padding-inline-start: 1px;
    cursor: default;
    padding: .5rem;
    line-height:1rem;
}

button {
    display: inline-block;
    margin-top: 5px;
    padding: .6rem 1rem;
    border: 1px solid #0b5ed7;
    border-radius: 6px;
    background: #0d6efd;
    color: #fff;
    text-decoration: none;
    font-size: .9rem;
    cursor: pointer;
}


button:hover { background: #0b5ed7; }
.form-group { margin-bottom: 0; }

/* === Tabellen === */
table:not(.arbre_asc) {
    border-collapse: collapse;
    width: 100%;
    margin-top: 1rem;
}
table:not(.arbre_asc) th,
table:not(.arbre_asc) td {
    border-top: 0px solid #ccc;
    border-bottom: 1px solid #ccc;
    border-left: 0px solid #ccc;
    border-right: 0px solid #ccc;
    padding: .5rem .75rem;
    text-align: left;
    vertical-align: top;
}

table:not(.arbre_asc) th {
    background: #f6faff;
}
table.listtab th,
table.listtab td {
    border: 0px solid #ccc;
}

table.styled-table th,
table.styled-table td {
    border-top: 0px solid #ccc;
    border-bottom: 1px solid #ccc;
    border-left: 0px solid #ccc;
    border-right: 0px solid #ccc;
}
table.styled-table th {
    background: #f6faff;
    
}





/* === Meldingen === */
.message {
    margin: .5rem 0;
    padding: .5rem;
    border-radius: 6px;
}
.success {
    background: #e7f7e7;
    border: 1px solid #2b8a3e;
}
.error {
    background: #fde2e2;
    border: 1px solid #c0392b;
}

/* === Extra === */
ul { margin: .20rem 0 .20rem 0.5rem; }
li { margin: .30rem 0; }

.gender-icon {
    font-size: 1.4em;
    color: #0d6efd;
    line-height: 1;          /* voorkomt dat de rij hoger wordt */
    vertical-align: middle;  /* centreert de icon tov tekst */
    display: inline-block;   /* betere controle over alignment */
}

/* === Thumbnails / Foto's === */
.thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 naast elkaar */
    gap: .75rem;
}
.thumb-link {
    display: block;
    width: 100%;
}
.thumb {
    width: 100%;
    aspect-ratio: 1 / 1;     /* vierkante thumbs, gelijke hoogte */
    object-fit: cover;       /* bijsnijden zodat alles gelijk oogt */
    border-radius: 8px;
    border: 3px solid #ddd;
    padding:1px;
    display: block;
}

/* === Thumbnails / Foto's === */
.thumbs2 {
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* 5 naast elkaar */
    gap: .75rem;
}
.thumb2-link {
    display: block;
    width: 100%;
}
.thumb2 {
    width: 100%;
    aspect-ratio: 1 / 1;     /* vierkante thumbs, gelijke hoogte */
    object-fit: cover;       /* bijsnijden zodat alles gelijk oogt */
    border-radius: 6px;
    border: 1px solid #ddd;
    display: block;
}

/* === Thumbnails / Foto's === */
.thumbs3 {
    display: grid;
    grid-template-columns: repeat(1, 1fr); /* 5 naast elkaar */
    gap: .75rem;
}
.thumb3-link {
    display: block;
    width: 100%;
}
.thumb3 {
    width: 100%;
    aspect-ratio: 1 / 1;     /* vierkante thumbs, gelijke hoogte */
    object-fit: cover;       /* bijsnijden zodat alles gelijk oogt */
    border-radius: 6px;
    display: block;
}

/* === Thumbnails / Foto's === */
.thumb4-link {
    display: block;
    width: 100%;
}
.thumb4 {
    width: 100%;
    aspect-ratio: 1 / 1;     /* vierkante thumbs, gelijke hoogte */
    object-fit: cover;       /* bijsnijden zodat alles gelijk oogt */
    border: 1px solid #ddd;
    display: block;
}


/* Responsieve fallback: op small screens 2-3 kolommen */
@media (max-width: 640px) {
    .thumbs { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 641px) and (max-width: 899px) {
    .thumbs { grid-template-columns: repeat(3, 1fr); }
}

/* EIGEN */
hr {
    border: none;
    border-top: 1px solid #dddddd;
}

.photo-box {
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 5px;
}
.photo-box.profile {
    border-color: #0d6efd;
}
.photo-box .label {
    color: #0d6efd;
    font-weight: bold;
    margin-top: 4px;
}

/* === Stamboom layout === */

.arbre_pers {
    text-align:center;
    border:1px solid #ddd;
    padding:8px 6px;
    background:#f6faff;
    font-size: 80%;
    min-width: 100px;
    max-width: 100px;
    
}  
.arbre_asc hr {
    border: none;
    border-top: 1px solid #3399ff;
    margin:0;
}
.arbre_asc {
    border: none;
    margin:0px;
    padding:0px;
}

.arbre_separateur {
    line-height: 1;     /* compacter */
    padding: 0;         /* geen extra ruimte */
    height: 10px;       /* optioneel, maakt de rij slanker */
    text-align: center;
    font-size: 12px;
    color: #0d6efd;
}
.arbre_asc tr {
    height: auto;       /* voorkom dat de hele rij vaste hoogte neemt */
}

.checkbox-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 15px;
  margin-bottom: 30px;
}

.checkbox-inline input[type="checkbox"] {
  width: auto; /* voorkomt dat hij 100% breed wordt */
  margin: 0;
}

.checkbox-inline label {
  margin: 0;
  font-weight: bold;
}

.checkbox-inline span {
  margin: 0;
}

.required-label {
  font-weight: normal; /* niet vet */
  color: #0d6efd;      /* blauw */
  font-size: 12px;
}

.h-eventblok {
  font-size: 1.2rem;
}

.gender-icon.female {
    color: #e83e8c;
}




