/* ==========================================================================
   PRO-GEN WEBSITE THEME - BEIGE BRUIN HERFST THEME (OPGESCHOOND & RESPONSIVE)
   ========================================================================= */

/* -------------------------------------------------
   KLEUREN & VARIABELEN
--------------------------------------------------- */
:root {
  --pg-font-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pg-font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  --pg-white: #FFFFF0;
  --pg-bg: #FFFFFF;
  --pg-bg-light: #fefefe;

  --pg-border: #8c735c;
  --pg-border-light: #a6907c;

  --pg-text: #5e4730;
  --pg-text-light: #8c735c;

  --pg-accent: #b48e64;
  --pg-accent-light: #c29f7c;

  --pg-hover: #FBF4D7;
}

/* ==========================================================================
   GLOBAL LINK STYLES - VOOR ALLE GEWONE TEKSTLINKS
   ========================================================================== */
a {
  color: var(--pg-text-light);
  text-decoration: underline;
  text-decoration-color: var(--pg-border-light);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--pg-text);
  font-weight: 600;
  text-decoration-color: var(--pg-accent);
}

/* Uitzonderingen: knoppen en subnav links */
.pg-button-nav,
.pg-button-start,
.pg-button-geslachten,
.pg-button-prbs,
.pg-button-kwartierstaten,
.subnav a {
  text-decoration: none;
}

/* ==========================================================================
   BASIS RESET & STRUCTUUR
   ========================================================================== */

html {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-y: scroll;
  scrollbar-gutter: stable both-edges;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--pg-bg);
  color: var(--pg-text);
  line-height: 1.4;
  font-family: var(--pg-font-sans);
  -webkit-font-smoothing: antialiased;

  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  max-width: 900px;
  margin: 40px auto;
  background: var(--pg-white);
  padding: 40px;
  border: 1px solid var(--pg-border);
}

/* ==========================================================================
   HEADER
   ========================================================================== */

header {
  background: var(--pg-white);
  text-align: center;
  padding: 25px 0;
  border-bottom: 1px solid var(--pg-border);
}

header h1 {
  font-size: clamp(1.8rem, 2.5vw + 1rem, 2.6rem);
  margin: 0;
  font-weight: 700;
}

/* ==========================================================================
   SUBNAV
   ========================================================================== */

.subnav {
  display: flex;
  justify-content: center;
  background: var(--pg-bg-light);
  border-bottom: 1px solid var(--pg-border);
  font-size: 0.95rem;
}

.subnav a {
  display: block;
  padding: 12px 18px;
  color: var(--pg-text-light);
  text-decoration: none;
  transition: background 0.2s ease;
}

.subnav a:hover,
.subnav a.active {
  background: var(--pg-hover);
  color: var(--pg-text);
  font-weight: 600;
}

/* ==========================================================================
   CONTENT BLOCKS
   ========================================================================== */

.pg-block {
  background: var(--pg-bg-light);
  border-left: 1px solid var(--pg-accent);
  margin-bottom: 20px;
  padding: 20px;
}

.pg-subblock {
  background: var(--pg-bg-light);
  border: 1px solid var(--pg-border);
  border-radius: 8px;
  padding: 10px 14px;
  margin: 10px auto 20px;
}

/* ==========================================================================
   MEDIA ELEMENTEN
   ========================================================================== */

.pg-hero-banner {
  width: 100%;
  max-width: 900px;
  border-radius: 8px;
  border: 1px solid var(--pg-border-light);
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.pg-hero-image {
  width: 100%;
  height: auto;
  margin-top: 16px;
  border-radius: 8px;
}

/* ==========================================================================
   INDEX MENU – KNOPPEN
   ========================================================================== */

.pg-top-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background: var(--pg-bg-light);
  border-bottom: 1px solid var(--pg-border-light);
}

.pg-top-row,
.pg-top-row-second {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* Algemene knoppenstijl */
.pg-button-nav,
.pg-button-start,
.pg-button-geslachten,
.pg-button-prbs,
.pg-button-kwartierstaten {
  display: inline-block;
  text-align: center;
  padding: 12px 18px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid var(--pg-border-light);
  background: var(--pg-bg-light);
  color: var(--pg-text);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

/* Hover – alle pg-buttons */
[class^="pg-button-"]:hover {
  background: var(--pg-hover);
  border-color: var(--pg-border);
}

/* START knop (huisje) */
.pg-button-start {
  border: .5px solid var(--pg-border-light);
  background: var(--pg-bg-light);
  font-weight: 700;
}

/* Rij 2 iets compacter */
.pg-row:nth-child(2) .pg-button-nav {
  padding: 8px 12px;
  font-size: .9rem;
  font-weight: 500;
  max-width: 170px;
}

/* Active – alle pg-buttons (MOET NA HOVER STAAN) */
[class^="pg-button-"]:active {
    background: var(--pg-hover) !important;
    border-color: var(--pg-border) !important;
    color: var(--pg-text) !important;
    font-weight: 600 !important;
    transition: none !important;
}

/* ACTIVE STATE - Voor de huidige pagina (MOET NA HOVER STAAN) */
  [class^="pg-button-"].active {
    background: var(--pg-hover) !important;
    border-color: var(--pg-border) !important;
    color: var(--pg-text) !important;
    font-weight: 600 !important;
  }

/* =======================================================================
   FOOTER
   ======================================================================= */

.pg-footer {
  text-align: center;
  background: var(--pg-bg-light);
  color: var(--pg-text-light);
  font-size: 13px;
  padding: 10px 0; /* Iets minder padding */
  border-top: 1px solid var(--pg-border);
  margin-top: 20px;
}

.pg-footer p {
  line-height: 1.1; /* Lager dan 1.2 voor compactere regels */
  margin: 2px 0; /* Zeer kleine marge boven en onder */
  padding: 0;
}

/* Optioneel: specifiek voor de tweede paragraaf minder ruimte boven */
.pg-footer p + p {
  margin-top: 0; /* Geen extra ruimte boven de tweede paragraaf */
}

/* ==========================================================================
   RESPONSIVE MENU – ALLE KNOPPEN ONDER ELKAAR OP SMARTPHONES
   ========================================================================== */

@media (max-width: 600px) {

  /* Knoppen 100% breed */
  .pg-button-nav,
  .pg-button-start,
  .pg-button-geslachten,
  .pg-button-prbs,
  .pg-button-kwartierstaten,
  .pg-top-buttons a {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 6px 0;
    text-align: center;
  }

  /* Rijen niet meer naast elkaar */
  .pg-top-row,
  .pg-top-row-second {
    display: block;
    gap: 0;
  }

  /* Tweede rij: compact maar 100% breed */
  .pg-row:nth-child(2) .pg-button-nav {
    max-width: 100%;
    padding: 10px 14px;
  }
}

/* Extra small devices */
@media (max-width: 380px) {
  main {
    margin: 10px;
    padding: 20px;
  }
}

/* Letterbalk A–Z + BIJZ. in PR&BS - achtergrondkleur 
.section-header {
    background: color-mix(in srgb, var(--pg-hover) 95%, brown) !important;
    border-bottom: 1px solid var(--pg-border-light);
    padding: 8px 12px;
    margin-bottom: 15px;
    font-weight: 600;
}
*/

/* ==========================================================================
   MEDIUM STARTKNOP ('Begin hier uw zoektocht') - ALLEEN DEZE VERSION BEHOUDEN
   ========================================================================== */
.pg-button-start-medium,
.pg-button-start-medium:link,
.pg-button-start-medium:visited {
    /* Lichtere basiskleur, tekst donkerbruin */
    background: #DDC4A2; 
    color: var(--pg-text); 
    text-decoration: none;
    
    /* NIET BOLD */
    font-weight: normal !important; 
    
    /* Grootte en Vorm */
    display: inline-block;
    padding: 18px 30px; 
    font-size: 22px; 
    border-radius: 30px; 
    
    /* SUBTIELE OMLIJNING */
    border: 1px solid rgba(0, 0, 0, 0.1); 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); 
    
    transition: all 0.2s ease;
    text-align: center;
    line-height: 1; 
    width: auto;
}

/* Hover-status: Nu zonder bold en met subtiele effecten */
.pg-button-start-medium:hover {
    background: var(--pg-hover); 
    color: var(--pg-text); 
    
    /* BELANGRIJK: NIET BOLD OP HOVER */
    font-weight: normal !important; 
    
    /* Subtieler rand en schaduw bij hover */
    border-color: var(--pg-border-light); 
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
    
    cursor: pointer;
    transform: translateY(-1px);
}

/* Active-status: Behoud hover-kleur maar voeg extra effect toe */
.pg-button-start-medium:active {
    background: var(--pg-hover) !important; 
    color: var(--pg-text) !important; 
    
    /* BELANGRIJK: NIET BOLD OP ACTIVE - en dit wint nu van de algemene regel */
    font-weight: normal !important; 
    
    /* Behoud border-color van hover */
    border-color: var(--pg-border-light) !important; 
    
    /* Iets intensere shadow voor active state */
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.15) !important;
    
    /* Licht indruk-effect */
    transform: translateY(0px);
    
    cursor: pointer;
    transition: none !important;
}

/* ==========================================================================
   CONTAINER VOOR KNOP EN TEKST NAAST ELKAAR
   ========================================================================== */

.pg-start-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
}

.pg-start-row .pg-start-text {
    flex-grow: 1;
    line-height: 1.4;
    font-size: 16px;
}

/* ==========================================================================
   MOBIELE STIJLEN VOOR DE KNOP EN RIJ
   ========================================================================== */

/* Dit media query-punt (900px) zorgt ervoor dat de knop en tekst onder elkaar komen */
@media (max-width: 900px) {
    .pg-start-row {
        flex-direction: column; 
        align-items: flex-start;
    }
    
    .pg-button-start-medium {
        width: 100%; /* Knop vult de volledige breedte op mobiel */
        max-width: 100%;
        margin-bottom: 15px; /* Ruimte onder de knop */
        
        /* OPTIONEEL: Pas de grootte iets aan voor mobiel */
        padding: 15px 20px;
        font-size: 20px;
    }
}

/* ==========================================================================
   TWEE KOLOMMEN RIJ VOOR 'KAARTEN' EN 'LINKEN NAAR AKTEN'
   ========================================================================== */
.pg-two-column-row {
    display: flex; /* Activeert Flexbox lay-out */
    gap: 30px; /* Ruimte tussen de twee kolommen */
    margin: 30px 0; /* Ruimte boven en onder het gehele blok */
}

/* De individuele kolommen */
.pg-two-column-row > div {
    flex: 1; /* Zorgt ervoor dat beide kolommen even breed zijn */
    /* Optioneel: voeg een lichte opvulling toe aan de inhoud van de kolommen */
    padding: 15px; 
    border: 1px solid var(--pg-border-light); /* Lichte rand rond elk blok */
    border-radius: 4px;
}

/* Zorg dat de <h2> titels netjes beginnen en geen extreme marges hebben */
.pg-two-column-row h2 {
    margin-top: 0;
}

/* Responsiviteit: Stapel de kolommen onder elkaar op mobiele apparaten */
@media (max-width: 768px) {
    .pg-two-column-row {
        flex-direction: column; /* Gaat naar verticale stapeling */
        gap: 20px;
    }

    .pg-two-column-row > div {
        padding: 10px;
    }
}

/* Styling voor de Zoekbalk */
#gemeenteInput {
    width: 100%; 
    padding: 12px 20px; 
    margin: 8px 0 20px 0; /* Ruimte onder de zoekbalk */
    box-sizing: border-box; 
    border: 1px solid var(--pg-border-light); 
    border-radius: 4px;
    font-size: 16px;
    color: var(--pg-text);
}
#gemeenteInput:focus {
    border-color: var(--pg-accent); /* Accentkleur bij focus */
    outline: none;
    box-shadow: 0 0 5px rgba(180, 142, 100, 0.5);
}


/* ================================================================================
   Limburgse geslachten - match index.php van Parochieregisters & Burgerlijke stand
   ================================================================================ */

/* zelfde als index.php */
.table-responsive { overflow-x: auto; }

/* richt je op de geslachten-tabellen */
.ms-color2-main {
  width: 100%;
  border-collapse: collapse;
}

/* zelfde borders/padding als index.php (en override inline #FF9900) */
.ms-color2-main td,
.ms-color2-main th {
  border: 1px solid #ccc !important;
  border-left-color: #ccc !important;
  border-right-color: #ccc !important;
  border-top-color: #ccc !important;
  border-bottom-color: #ccc !important;
  padding: 6px !important;
  vertical-align: top;
}

/* headings links zoals in index.php */
.ms-color2-main th { text-align: left; }

/* "kop/sectie"-kleur zoals index.php .section */
.ms-color2-top {
  background: #F7EACE;
  font-weight: bold;
  font-size: 20px;
}

/* ==========================================================================
   A-Z navigation + letter headers - match index.php section style
   ========================================================================== */

/* A-Z balk container (bovenste navigatie in geslachten.html) */
.az-index,
.az-index a {
  background: #F7EACE;
  font-weight: bold;
  padding: 6px 8px;
  border: 1px solid #ccc;
  display: inline-block;
  margin-right: 4px;
  text-decoration: none;
  color: #000;
}

/* Hover zoals index.php */
.az-index a:hover {
  background: #e7d8b7;
}

/* Letter-sectie rij in de tabellen (A, B, C...) */
.ms-color2-top,
.ms-color2-letter {
  background: #F7EACE !important;
  font-weight: bold !important;
  font-size: 20px !important;
  border: 1px solid #ccc !important;
  padding: 6px !important;
}

/* De headers in bold */
.ms-color2-top,
.ms-color2-top * {
  font-weight: 600 !important;
}

/* ==========================================================================
   PR&BS - BASIS TABELSTYLING (HERSTEL)
   ========================================================================== */

/* Tabel algemeen */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

/* Cellen */
td,
th {
    border: 1px solid #ccc;
    padding: 6px;
    vertical-align: top;
}

/* Sectiekoppen (A, B, C, ...) */
.section {
    background: #F7EACE;
    font-weight: bold;
    font-size: 20px;
}

/* De letter zelf (binnen de sectierij) */
.section-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    padding: 0 10px;
    border-radius: 10px;
    background: transparent;
    color: #444;
    border: 1px solid rgba(0,0,0,.25);
    font-weight: bold;
}

/* ==========================================================================
   PR&BS - tabelkleuren en sectiekoppen
   ========================================================================== */

/* Basis voor alle tabellen op deze pagina */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

td,
th {
    border: 1px solid #ccc;
    padding: 6px;
    vertical-align: top;
}

/* Sectierijen (A, B, C, ...) in de grote PR&BS-tabel */
.section {
    background: #F7EACE;       /* de zandkleurige balk */
    font-weight: bold;
    font-size: 20px;
}

/* De letter zelf in de kop (A, B, C, ...) */
.section-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    padding: 0 10px;
    border-radius: 10px;
    background: transparent;
    color: #444;
    border: 1px solid rgba(0,0,0,.25);
    font-weight: bold;
}

/* ==========================================================================
   MOBIELE OPTIMALISATIE PR&BS-TABEL (iPhone + Android)
   ========================================================================== */

@media (max-width: 768px) {

  /* zorg dat de tabel WERKELIJK kan scrollen */
  .table-responsive {
      overflow-x: auto !important;
      display: block !important;
      -webkit-overflow-scrolling: touch;
      width: 100%;
  }

  /* kolommen mogen niet breder worden dan het scherm */
  table {
      width: 100%;
      table-layout: fixed !important;
      word-wrap: break-word !important;
  }

  /* inhoud veilig afbreken */
  td, th {
      white-space: normal !important;
      word-break: break-word !important;
  }
}

/* Kleiner lettertype in de tabellen */
.kleiner-tekst {
  font-size: 0.8em; /* Of een andere gewenste grootte */
}

/* Nieuwe klasse voor centrering in de cel */
.center-content {
    /* Lijn de tekst, afbeeldingen, etc. horizontaal uit in het midden van de cel */
    text-align: center; 
    
    /* Zorg ervoor dat de celinhoud verticaal bovenaan begint, dit is optioneel */
    vertical-align: top;
}

/* ==========================================================================
   MOBIELE OPTIMALISATIE JAAROVERZICHT TABEL (5 Kolommen)
   ========================================================================== */
@media (max-width: 768px) {
  
  /* Zorg ervoor dat de tabel de breedte van 100% gebruikt en de layout vastzet */
  .jaaroverzicht-table {
      width: 100% !important; 
      table-layout: fixed !important; 
      word-wrap: break-word !important;
  }

  /* Zorg dat alle inhoud afbreekt en de tekstgrootte kleiner is */
  .jaaroverzicht-table td, 
  .jaaroverzicht-table th {
      white-space: normal !important; 
      word-break: break-word !important; 
      font-size: 0.7em; /* Klein lettertype voor compactheid */
      padding: 6px; 
  }
}  

/* ==========================================================================
   ACCORDEON - FORCED KADERS (OVERRIDE)
   ========================================================================== */

.pg-accordion details {
    display: block;
    border: 1px solid var(--pg-border) !important;
    border-radius: 8px;
    margin: 12px 0;
    background: var(--pg-bg-light) !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    overflow: hidden;
}

.pg-accordion summary {
    display: block;
    padding: 12px 16px 12px 40px;
    cursor: pointer;
    background: var(--pg-hover) !important;
    color: var(--pg-text);
    font-weight: 600;
    border-bottom: 1px solid var(--pg-border-light);
    position: relative;
}

.pg-accordion summary::-webkit-details-marker {
    display: none;
}

/* Pijltje vooraan toevoegen */
.pg-accordion summary::before {
    content: '▶';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    color: var(--pg-text-light);
    font-size: 0.9em;
}

/* Pijltje roteren naar beneden wanneer open */
.pg-accordion details[open] summary::before {
    transform: translateY(-50%) rotate(90deg);
}

.pg-accordion details > *:not(summary) {
    padding: 14px 16px;
    background: var(--pg-white);
    color: var(--pg-text);
}

/* Voeg dit toe aan pro-gen-style.css */
.pg-accordion.fullwidth {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.pg-accordion.fullwidth details {
  width: 100%;
  max-width: 100%;
}

/* Verberg het accordeon pijltje voor het eerste details element */
.pg-accordion details:nth-child(1) summary::before {
  display: none;
}

.pg-accordion details:nth-child(1) summary {
  padding-left: 16px; /* Herstel de normale padding omdat er geen pijltje is */
}

/* Mobiel */
@media (max-width: 600px) {
  .pg-accordion summary {
      padding: 10px 12px;
      font-size: 0.95rem;
  }
}


.to-top:hover {
  color: #5e4730;
  border-color: #5e4730;
  background: #FBF4D7;
}

/* Alleen in deze tabel: eerste kolom niet afbreken */
.schepenbanken-table td:nth-child(1) {
    white-space: nowrap;
}

/* Alleen in deze tabel: tweede kolom niet afbreken */
.schepenbanken-table td:nth-child(2) {
    white-space: nowrap;
}

/* Alleen in deze tabel: vierde kolom niet afbreken */
.schepenbanken-table td:nth-child(4) {
    white-space: nowrap;
}

/* Alleen in deze tabel: eerste kolom niet afbreken */
.notariaat-table td:nth-child(1) {
    white-space: nowrap;
}

/* Alleen in deze tabel: tweede kolom niet afbreken */
.notariaat-table td:nth-child(2) {
    white-space: nowrap;
}

/* Alleen in deze tabel: derde kolom niet afbreken */
.notariaat-table td:nth-child(3) {
    white-space: nowrap;
}

/* Alleen in deze tabel: vierde kolom niet afbreken */
.notariaat-table td:nth-child(4) {
    white-space: nowrap;
}

/* Alleen in deze tabel: zesde kolom niet afbreken */
.geslachten-table td:nth-child(6) {
    white-space: nowrap;
}

/* Alleen in deze tabel: vijfde kolom niet afbreken */
.kwartierstaten-table td:nth-child(5) {
    white-space: nowrap;
}

/* Alleen in deze tabel: derdde kolom niet afbreken */
.grafweb-table td:nth-child(3) {
    white-space: nowrap;
}

/* BADGES */

/* badges: update */
.update-badge,
.update-2025-badge,
.update-2026-badge{
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 2px 8px;
  font-size: 12px;
  line-height: 1;
  background: #008080;
  color: #fff;
  border-radius: 4px;
  white-space: nowrap;
  box-sizing: border-box;
}

/* badges: nieuw */
.nieuw-badge,
.nieuw-2025-badge,
.nieuw-2026-badge{
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 2px 8px;
  font-size: 12px;
  line-height: 1;
  background: #c00;
  color: #fff;
  border-radius: 4px;
  white-space: nowrap;
  box-sizing: border-box;
}

/* badge: vinkje */
.vinkje-badge{
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 2px 6px;
  font-size: 12px;
  line-height: 1;
  background: #008080;
  color: #fff;
  border-radius: 4px;
  white-space: nowrap;
  box-sizing: border-box;
}

/* badge: acrobat */
.acrobat-badge{
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 2px 8px;
  font-size: 12px;
  line-height: 1;
  background: #c00;
  color: #fff;
  border-radius: 4px;
  white-space: nowrap;
  box-sizing: border-box;
}

/* badges: Microsoft */
/* badge: Word */
.W-badge-blue{
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 2px 8px;
  font-size: 12px;
  line-height: 1;
  background: #003399;
  color: #fff;
  border-radius: 4px;
  font-weight: bold;
  white-space: nowrap;
  box-sizing: border-box;
}

/* badge: Excel */
.X-badge-green{
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 2px 8px;
  font-size: 12px;
  line-height: 1;
  background: #217346;
  color: #fff;
  border-radius: 4px;
  font-weight: bold;
  white-space: nowrap;
  box-sizing: border-box;
}

/* Pijltje naar boven */
.to-top {
  float: right;
  text-decoration: none;
  font-size: 18px;
  color: #8c735c;
  margin-left: 10px;
}

/* badge: www */
.www-badge{
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 2px 8px;
  font-size: 12px;
  line-height: 1;
  background: blue;
  color: #fff;
  border-radius: 4px;
  white-space: nowrap;
  box-sizing: border-box;
}

/* badge: htm */
.htm-badge{
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 2px 8px;
  font-size: 12px;
  line-height: 1;
  background: #217346;
  color: #fff;
  border-radius: 4px;
  font-weight: bold;
  white-space: nowrap;
  box-sizing: border-box;
}

/* Left-align table headings */
th { text-align: left; }

/* terug-naar-boven pijltje bij letterhoofden (subtiel outline) */
.to-top{
  float:right;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:30px;
  height:30px;
  border-radius:10px;
  text-decoration:none;
  font-size:18px;
  line-height:1;
  background:transparent;
  color:#444;
  border:1px solid rgba(0,0,0,.25);
  margin-left:10px;
  transition:transform .08s ease, border-color .12s ease, color .12s ease, box-shadow .12s ease;
}

/* Letter in sectiekop: subtiele outline zoals het pijltje */
.section-letter{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:30px;
  height:30px;
  padding:0 10px;
  border-radius:10px;
  text-decoration:none;
  line-height:1;
  background:transparent;
  color:#444;
  border:1px solid rgba(0,0,0,.25);
  box-shadow:none;
  font-weight:bold;
  letter-spacing:.2px;
}

.table-responsive{overflow-x:auto;}
table{width:100%;border-collapse:collapse;}
td,th{border:1px solid #ccc;padding:6px;vertical-align:top;}
.section{background:#F7EACE;font-weight:bold;font-size:20px;}
th{text-align:left;}


.klappers-container {
  border: 1.9px solid rgba(94,71,48,0.4);
  border-radius: 3px;
  padding: 20px;
  margin: 5px 0;     /* boven/onder wel, links/rechts niet */
  box-sizing: border-box;
}

/* ==============================
   iOS Safari – definitieve fix
   ============================== */

/* 1. OUDERCONTAINER
   Zorgt dat padding wordt meegerekend in max-width
   (dit is de échte oorzaak van het iPhone-probleem)
*/
.pg-box{
  box-sizing: border-box;
}

/* 2. INHOUDSCONTAINER
   Mag nooit breder worden dan de ouder
*/
.gemeente{
  max-width: 100%;
  box-sizing: border-box;
}

/* 3. KNOP
   Mag afbreken, maar bepaalt NOOIT de breedte
*/
.pg-button-nav{
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}

/*
  Sub-container rond PDF-link:
  – eigen randje
  – blijft binnen oudercontainer
  – iPhone/Safari-proof
*/
.pg-link-box{
  display: inline-flex;
  align-items: center;
  gap: 6px;

  border: 1px solid var(--pg-border);
  border-radius: 6px;
  padding: 8px 12px;
  margin-top: 10px;

  box-sizing: border-box;
}

.content-container{
  border: 1px solid var(--pg-border);
  border-radius: 8px;
  padding: 20px;
  margin: 20px auto;
  max-width: 900px;
  background: var(--pg-bg-light);
  box-sizing: border-box;
}

.pg-section-title{
  text-align: center;
  margin: 15px 0;
}

@media (max-width: 768px) {
  table.index-table {
    table-layout: auto !important;
  }
  
  /* Specifieke kolom-breedtes voor de 3-kolommen In memoriam en Begraafplaatsen tabel */
  table.index-table td:nth-child(1),
  table.index-table th:nth-child(1) {
    width: 60% !important;
  }
  
  table.index-table td:nth-child(2),
  table.index-table th:nth-child(2) {
    width: 35% !important;
    min-width: 80px;
  }
  
  table.index-table td:nth-child(3),
  table.index-table th:nth-child(3) {
    width: 5% !important;
    min-width: 100px;
  }
}

table.gemeenten td:first-child,
table.gemeenten th:first-child {
    font-weight: bold;
}

/* Eerste kolom van tabellen kleinschrift niet in bold */
table.gemeenten td:first-child .kleiner-tekst {
    font-weight: normal !important;
    font-size: 0.85em;
    line-height: 1.2;
    display: block;
}

/* Eerste kolom van tabellen Geslacht/Proband (= naam)*/
table.namen td:first-child,
table.namen th:first-child {
    font-weight: bold;
}
	
/* Eerste kolom van tabellen kleinschrift niet in bold */
table.namen td:first-child .kleiner-tekst {
    font-weight: normal !important;
    font-size: 0.85em;
    line-height: 1.2;
    display: block;
}

/* ======================================================
   Popup venster voor badge:
   "Fouten, correcties en verantwoordelijkheid"
   ====================================================== */

/* Donkere achtergrond over de pagina wanneer popup opent */
.modal-overlay {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.45);
  justify-content: center;
  align-items: center;
}

/* Het popupvenster zelf */
.modal-box {
  background: #ffffff;           /* witte achtergrond voor leesbaarheid */
  color: #000000;                /* zwarte tekst */
  border: 1px solid var(--pg-border);
  border-radius: 8px;
  padding: 25px;
  max-width: 650px;
  width: 90%;
  max-height: 80vh;              /* voorkomt te groot venster */
  overflow-y: auto;              /* scrollbar bij lange tekst */
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  position: relative;
  animation: modalFade 0.25s ease;
}

/* ======================================================
   Popup venster voor badge:
   "Fouten, correcties en verantwoordelijkheid"
   ====================================================== */

/* Donkere overlay over de pagina */
.modal-overlay {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.45);
  justify-content: center;
  align-items: center;
}

/* Popup venster */
.modal-box {
  background: #ffffff;
  color: #000000;
  border: 1px solid var(--pg-border);
  border-radius: 8px;
  padding: 25px;
  max-width: 650px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  position: relative;
  animation: modalFade 0.25s ease;
}

/* Open-animatie */
@keyframes modalFade {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sluitknop rechtsboven */
.modal-close {
  position: absolute;
  right: 12px;
  top: 8px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  color: #666;
}

.modal-close:hover {
  color: #000;
}

/* Titel in popup iets sterker */
.modal-box strong:first-child {
  display: block;
  font-size: 1.05em;
  margin-bottom: 8px;
}

/* Links in popup */
.modal-box a {
  color: var(--pg-link);
  text-decoration: none;
}

.modal-box a:hover {
  text-decoration: underline;
}

/* ======================================================
   Badge interactie
   ====================================================== */

/* Alleen deze badge klikbaar maken */
#foutenBadge {
  cursor: pointer;
}

/* Subtiele hover */
#foutenBadge:hover {
  filter: brightness(1.1);
}

