/* Bijbel in 1000 seconden — v11 uitlijncorrectie, ALLEEN lokale testpagina.
   Aanvulling op bestaande bijbel1000.css; desktop vanaf 992px.
   De normale Tiki-content in #row-middle blijft in de documentstroom. */
@media (min-width: 992px) {
  html .container.container-std { position: relative; }
  html #site-header {
    position: relative; z-index: 2; height: 191px;
    background: transparent !important; overflow: visible;
  }
  html #site-header > #main-navbar,
  html #site-header #main-navbar {
    height: 191px; padding: 0; background: transparent !important;
  }
  html #top_modules {
    position: relative; height: 191px; width: 100%;
    background: transparent !important;
  }
  html :is(#module_58, #module_76) {
    position: absolute; top: 14px; left: 12px; z-index: 3;
    margin: 0; display: block !important;
  }
  html :is(#module_58, #module_76) .navbar-brand {
    display: block; width: 250px; height: 125px; margin: 0 !important;
    background: url('../../img/1000seconden/header-test-logo.svg') center / contain no-repeat;
  }
  html :is(#module_58, #module_76) img.sitelogo {
    width: 250px; height: 125px; opacity: 0; transform: none;
  }
  /* Alleen de topbar overlapt de header; #row-middle en #col1 NIET. */
  html #topbar_modules {
    position: absolute; top: 0; left: 0; right: 0; height: 191px;
    z-index: 5; margin: 0 !important; padding: 0;
    background: transparent !important; pointer-events: none;
  }
  html #module_64,
  html #module_74 {
    position: absolute; right: var(--header-right-inset, 12px); margin: 0 !important;
    display: block !important; pointer-events: auto;
  }
  html #module_64 { top: 13px; }
  html #module_74 { top: 117px; }
  html #module_64 form .mb-3 {
    display: flex; align-items: center; gap: 7px; margin: 0 !important;
  }
  html #module_64 input.form-control {
    width: 245px; height: 39px; margin: 0 !important;
    border: 1px solid #c5b5a8; background: #fff;
    border-radius: 4px; padding: 8px 11px; font: 15px Arial, sans-serif;
  }
  html #module_64 .btn-group { margin: 0 !important; }
  html #module_64 .btn-group input[type="submit"] {
    width: 43px; height: 39px; margin: 0; border: 0;
    background-color: #ed7216; border-radius: 4px;
  }
  html #module_74 .navbar,
  html #module_74 .navbar.bg-light {
    display: block; width: auto; padding: 0;
    background: transparent !important;
  }
  html #module_74 .navbar-collapse { display: flex !important; }
  html #module_74 .navbar-nav {
    display: flex; flex-direction: row; justify-content: flex-end;
    align-items: center; gap: clamp(11px, 5.35vw, 52px);
    margin: 0 !important; padding: 0; list-style: none;
  }
  html #module_74 .nav-link {
    display: inline-flex; justify-content: center; align-items: center;
    min-height: 43px; padding: 9px 13px; white-space: nowrap;
    border: 1.5px solid rgba(255,255,255,.93); border-radius: 12px;
    color: #fff; background: rgba(255,255,255,.09);
    font-family: "Nunito Sans", sans-serif;
    font-size: 17px;
    font-weight: 700;
    font-variant-caps: all-small-caps;
    line-height: 1.3;
    letter-spacing: 0; text-decoration: none;
    box-shadow: 0 2px 4px rgba(110,45,0,.16), inset 0 1px 0 rgba(255,255,255,.22);
    transition: background-color .16s ease, transform .16s ease, box-shadow .16s ease;
  }
  html #module_74 .nav-link:hover,
  html #module_74 .nav-link:focus-visible {
    color: #bd4f00; background: white; transform: translateY(-2px);
    box-shadow: 0 4px 9px rgba(110,45,0,.2);
  }
  html #module_74 .nav-link:focus-visible {
    outline: 3px solid #762600; outline-offset: 3px;
  }
  html .page-content-top-margin { height: 0 !important; }
}
@media (min-width:992px) and (max-width:1199.98px) {
  html #module_74 .navbar-nav { gap: 30px; }
  html #module_74 .nav-link { padding: 9px;}
}
@media (prefers-reduced-motion: reduce) {
  html #module_74 .nav-link { transition: none; }
}

/* Alleen op de testpagina: oorspronkelijke navigatie niet tonen. */
@media (min-width: 992px) {
  html #module_60 { display: none !important; }
}

/* v11: optische uitlijning op de zichtbare homepagekolommen.
   Metingen: logo links 44 vs foto 56; zoeken/menu rechts 1340 vs foto 1328.
   De Bootstrap-kolomgutters zijn 12px per zijde. */
@media (min-width: 992px) {
  html :is(#module_58, #module_76) {
    left: 24px; /* 12px verder naar rechts */
  }
  html #module_64,
  html #module_74 {
    right: calc(var(--header-right-inset, 12px) + 12px);
  }
}


/* v24 — mobiele Tiki-header; uitsluitend testpagina's, tot 991,98 px.
   De desktop-CSS hierboven is ongewijzigd overgenomen uit v11. */
@media (max-width: 991.98px) {
  html #site-header {
    position: relative; height: 148px; z-index: 2;
    overflow: visible; background: transparent !important;
  }
  html #site-header #main-navbar,
  html #top_modules {
    position: relative; width: 100%; height: 148px;
    padding: 0 !important; margin: 0 !important;
    background: transparent !important;
  }
  html :is(#module_58, #module_76) {
    position: absolute; left: 42px; top: 8px; margin: 0 !important;
    z-index: 3; display: block !important;
  }
  html :is(#module_58, #module_76) .navbar-brand {
    display: block; width: 190px; height: 95px; margin: 0 !important;
    background: url('../../img/1000seconden/header-test-logo.svg') center / contain no-repeat;
  }
  html :is(#module_58, #module_76) img.sitelogo {
    display: block; width: 100%; height: 100%;
    object-fit: contain; opacity: 0; transform: none;
  }
  /* De modules zijn in mobiele modus naar het uitklappaneel verplaatst. */
  html #topbar_modules {
    height: 0 !important; min-height: 0 !important;
    margin: 0 !important; padding: 0 !important;
    background: transparent !important;
  }
  html #module_60 { display: none !important; }
  html .page-content-top-margin { height: 0 !important; margin-top: 0 !important; }

  html .header-v24-toggle {
    display: inline-flex; position: absolute; right: 20px; top: 80px;
    z-index: 6; align-items: center; justify-content: center;
    min-height: 39px; padding: 7px 14px; gap: 12px;
    border: 1.5px solid rgba(255,255,255,.93); border-radius: 12px;
    color: white; background: rgba(255,255,255,.09);
    font-family: "Nunito Sans", sans-serif;
    font-size: 17px;
    font-weight: 700;
    font-variant-caps: all-small-caps;
    line-height: 1.3;
    box-shadow: 0 2px 4px rgba(110,45,0,.16), inset 0 1px 0 rgba(255,255,255,.22);
    cursor: pointer;
  }
  html .header-v24-toggle:hover,
  html .header-v24-toggle:focus-visible {
    background: white; color: #bd4f00;
  }
  html .header-v24-toggle:focus-visible {
    outline: 3px solid #762600; outline-offset: 2px;
  }
  html .header-v24-arrow {
    display: inline-block; font: 700 20px/1 Arial,sans-serif;
    transition: transform .2s ease;
  }
  html .header-v24-toggle[aria-expanded="true"] .header-v24-arrow {
    transform: rotate(180deg);
  }
  html .header-v24-panel {
    display: block; width: 100%; min-width: 0;
    background: #ed7216; padding: 12px max(18px, calc((100vw - 700px)/2)) 22px;
    border-bottom: 2px solid #cf5a0b;
    box-shadow: 0 8px 15px rgba(70,40,10,.13);
    position: relative; z-index: 3;
  }
  html .header-v24-panel[hidden] { display: none !important; }

  html .header-v24-panel #module_74,
  html .header-v24-panel #module_64 {
    display: block !important; position: static !important;
    width: 100%; margin: 0 !important; padding: 0 !important;
    background: transparent !important; box-shadow: none !important;
    border: 0 !important; pointer-events: auto;
  }
  html .header-v24-panel #module_74 .navbar {
    display: block; position: static; padding: 0; width: 100%;
    background: transparent !important;
  }
  html .header-v24-panel #module_74 .navbar-toggler { display: none !important; }
  html .header-v24-panel #module_74 .navbar-collapse {
    display: block !important; height: auto !important; visibility: visible !important;
  }
  html .header-v24-panel #module_74 .navbar-nav {
    display: flex; flex-direction: column; align-items: stretch;
    width: 100%; padding: 0; margin: 0 !important; gap: 0; list-style: none;
  }
  html .header-v24-panel #module_74 .nav-link {
    position: relative; display: block; width: 100%;
    min-height: 48px; padding: 10px 35px 10px 12px;
    border: 0; border-bottom: 1px solid rgba(255,255,255,.38);
    border-radius: 0; box-shadow: none; background: transparent;
    color: white; text-decoration: none;
    font-family: "Nunito Sans", sans-serif;
    font-size: 17px;
    font-weight: 700;
    font-variant-caps: all-small-caps;
    line-height: 1.3;
  }
  html .header-v24-panel #module_74 .nav-link::after {
    content: '›'; position: absolute; right: 12px; top: 50%;
    transform: translateY(-50%); font: 700 28px/1 Arial,sans-serif;
  }
  html .header-v24-panel #module_74 .nav-link:hover,
  html .header-v24-panel #module_74 .nav-link:focus-visible {
    background: #fff; color: #aa4300;
  }
  html .header-v24-panel #module_64 {
    margin: 20px 10px 0 !important; width: calc(100% - 20px);
    padding: 17px 16px 16px !important; border-radius: 7px;
    background: #fffaf1 !important;
    box-shadow: 0 2px 7px rgba(110,45,0,.12) !important;
  }
  html .header-v24-search-label {
    display: block; margin-bottom: 9px;
    color: #56371f; font: 600 17px/1.3 "Nunito Sans", sans-serif;
  }
  html .header-v24-panel #module_64 form .mb-3 {
    display: flex; align-items: center; gap: 8px; margin: 0 !important;
  }
  html .header-v24-panel #module_64 input.form-control {
    flex: 1; min-width: 0; width: 100%; height: 42px;
    padding: 10px 12px; border: 1px solid #beaaa0;
    border-radius: 5px; background: white; font: 400 17px/1.4 "Nunito Sans", sans-serif;
  }
  html .header-v24-panel #module_64 .btn-group { flex: none; margin: 0 !important; }
  html .header-v24-panel #module_64 .btn-group input[type="submit"] {
    width: 46px; height: 42px; margin: 0;
    background-color: #ed7216; border-color: #ed7216;
    border-radius: 5px;
  }
}

/* v23 compact — goedgekeurde golf met 7px verschuiving van het zichtbare logo. */
@media (max-width: 499.98px) {
  html #site-header,
  html #site-header #main-navbar,
  html #top_modules { height: 136px; }
  html :is(#module_58, #module_76) { left: 28px; top: 8px; margin-top: 0 !important; }
  html :is(#module_58, #module_76) .navbar-brand { width: 140px; height: 70px; }
  /* Gevraagde patch op het img-element, ook al rendert Tiki het zichtbare SVG als achtergrond. */
  html :is(#module_58, #module_76) .header-logo img,
  html :is(#module_58, #module_76) img.sitelogo { margin-top: 7px; }
  html .header-v24-toggle {
    top: 89px; right: 14px; min-height: 36px;
    padding: 6px 12px; gap: 8px;
  }
  html .header-v24-panel { padding-left: 16px; padding-right: 16px; }
  html .header-v24-panel #module_64 {
    margin-left: 2px !important; margin-right: 2px !important;
    width: calc(100% - 4px); padding: 14px 12px !important;
  }
}
@media (min-width: 500px) and (max-width: 991.98px) {
  html :is(#module_58, #module_76) { margin-top: 0 !important; }
  html :is(#module_58, #module_76) img.sitelogo { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html .header-v24-arrow { transition: none; }
}

/* v25: mobiel logo op vaste viewport-x bij wisselende Bootstrap-containerbreedte.
   MENU blijft bewust rechts uitgelijnd op de Tiki-container. */
@media (min-width: 500px) and (max-width: 991.98px) {
  html :is(#module_58, #module_76) {
    left: var(--header-v25-logo-inset, 42px) !important;
  }
}

/* v26: mobiel op 500–991px: logo dichter naar links, zonder de curve te veranderen.
   De variabele wordt in JS berekend t.o.v. de viewport en #top_modules. */
@media (min-width: 500px) and (max-width: 991.98px) {
  html :is(#module_58, #module_76) {
    left: var(--header-v25-logo-inset, 28px) !important;
  }
}

/* v26: uitgeklapt oranje paneel over de VOLLEDIGE viewport,
   ongeacht de maximale breedte van de Bootstrap/Tiki-container.
   De bestaande padding centreert de menu-items en zoekzone. */
@media (max-width: 991.98px) {
  html .header-v24-panel {
    box-sizing: border-box;
    width: 100vw;
    max-width: none;
    left: 50%;
    transform: translateX(-50%);
  }
}
/* Extra ademruimte onder de header op de detailpagina */
html#page_3615 #row-middle {
  padding-top: 24px;
}
/* Detailpagina: aangepaste H1 op mobiele schermen */
@media (max-width: 767.98px) {
  html#page_3615 #page-data h1 {
    font-size: clamp(30px, 8vw, 46px);
    line-height: 1.15;
    overflow-wrap: normal;
  }
}
/* Ruimte tussen de header en de inhoud op gewone wikipagina's */
html:not(#page_1):not(#page_3612):not(#page_3614) .page-content-top-margin {
  height: 35px !important;
  margin-top: 0 !important;
}
