/*
Theme Name: Blocksy Child
Template: blocksy
*/


/* -------------------------
   GLOBAL LAYOUT
   ------------------------- */
:root{
  --bg: #f6f7f9;
  --panel: #f8f9fb;
  --muted: #6b7280;
  --text: #111827;
  --accent: #2563eb;
  --track: #e5e7eb;
  --connect-alpha: 0.14;
}

*{box-sizing:border-box}

.drab-arkiv-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 16px;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.drab-arkiv-wrapper h1 {
    font-size: 2rem;
    margin-bottom: 24px;
    font-weight: 700;
}

/* Grid */
.drab-arkiv-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 32px;
}

/* -------------------------
   FILTER PANEL
   ------------------------- */

.drab-filter {
    background: var(--panel);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e3e6eb;
}

.drab-filter label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    margin-top: 16px;
    margin-bottom: 6px;
}

/* almindelige inputs (IKKE range) */
.drab-filter input:not([type="range"]),
.drab-filter select {
    width: 100%;
    padding: 10px 12px;
    font-size: 0.95rem;
    border-radius: 8px;
    border: 1px solid #cfd4dc;
    background: #ffffff;
}

.drab-filter input:not([type="range"]):focus,
.drab-filter select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(59,130,246,.08);
}

/* inline felter (dato) */
.inline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

/* reset knap */
.reset-filters {
    margin-top: 24px;
    width: 100%;
    padding: 12px;
    background: #e5e7eb;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, transform .08s ease;
}

.reset-filters:hover {
    background: #d1d5db;
    transform: translateY(-1px);
}

/* ===============================
   COLLAPSIBLE FILTER GROUPS
   =============================== */

.filter-group {
    border-top: 1px solid #e5e7eb;
    margin-top: 16px;
    padding-top: 8px;
}

/* -------------------------
   RESULTATER
   ------------------------- */

.drab-resultater {
    background: #ffffff;
    border-radius: 10px;
    padding: 18px;
}

.drab-result-info {
    margin-bottom: 14px;
    font-size: 0.9rem;
    color: var(--muted);
}

.drab-liste { list-style: none; padding: 0; margin: 0; }

.drab-liste li {
    padding: 16px 0;
    border-bottom: 1px solid #eceef2;
}

.drab-liste li:last-child { border-bottom: none; }

.drab-item a { display: flex; gap: 12px; align-items: baseline; text-decoration: none; }

.drab-dato {
    font-weight: 600;
    color: var(--muted);
    font-size: 0.9rem;
    white-space: nowrap;
}

.drab-titel { font-weight: 600; color: var(--text); }

.drab-item a:hover .drab-titel { text-decoration: underline; }

/* tomt resultat */
.drab-liste li:only-child { color: var(--muted); font-style: italic; }

/* -------------------------
   SINGLE DRAB
   ------------------------- */

.single-drab { max-width: 800px; margin: 0 auto; padding: 32px 16px; }

.single-drab h1 { font-size: 2rem; margin-bottom: 24px; }

.single-drab p { margin: 8px 0; font-size: 1rem; }
.single-drab strong { color: #374151; }


/* =========================================
   DESKTOP – FILTER ALTID SYNLIGT
   ========================================= */
@media (min-width: 900px) {

    /* Skjul filter-toggle helt */
    #drab-filter-bar {
        display: none;
    }

    /* Filter er altid åbent */
    .drab-filter {
        display: block;
    }

    .drab-filter form {
        display: block !important;
    }

}

/* -------------------------
   RESPONSIVE
   ------------------------- */

@media (max-width: 900px) {
    .drab-arkiv-grid { grid-template-columns: 1fr; }
}

/* ===================================================
   noUiSlider – OVERRIDE ZONE
   (skal ligge HELT NEDERST i style.css)
   =================================================== */

/* ---------- TRACK ---------- */
html body .noUi-target.noUi-horizontal {
    height: 6px;
    width: 90%;
    margin: 0 auto;
  margin-top:10px;
  margin-bottom:10px;
    border-radius: 999px;
    background: white;
    border: none;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0);
}

/* ---------- CONNECT ---------- */
html body .noUi-horizontal .noUi-connect {
    background: #ffffff;
    border-radius: 999px; 
}

/* ---------- HANDLES (THUMBS) ---------- */
html body .noUi-horizontal .noUi-handle {
    width: 20px;
    height: 20px;
    top: -7px;                 /* centrér på track */
    border-radius: 50%;
    background: #374151;
    border: 1px solid rgba(0,0,0,0.14);
    box-shadow: 0 4px 10px rgba(0,0,0,0);
    cursor: pointer;

    /* fjern noUi’s interne offsets 
    left: auto;
    right: auto;
*/
    transition:
        transform 0.52s ease,
        box-shadow 0.52s ease;
}

/* fjern noUiSlider’s pseudo-streger */
html body .noUi-horizontal .noUi-handle::before,
html body .noUi-horizontal .noUi-handle::after {
    display: none;
}

/* ---------- OVERLAP-LOSNING ----------
   Tillader samme værdi, men forskyder visuelt
------------------------------------- */
html body .noUi-horizontal .noUi-handle.noUi-handle-lower {
    transform: translateX(-17px);
    z-index: 2;
}

html body .noUi-horizontal .noUi-handle.noUi-handle-upper {
    transform: translateX(3px);
    z-index: 3;
}

/* ---------- HOVER / FOCUS (iOS-agtigt) ---------- 
html body .noUi-horizontal .noUi-handle:hover,
html body .noUi-horizontal .noUi-handle:focus {
    transform: scale(1.12);
    box-shadow:
        0 6px 14px rgba(0,0,0,0.22),
        0 0 0 8px rgba(37,99,235,0.14);
}*/

/* bevar overlap-offset ved hover */
html body .noUi-horizontal .noUi-handle.noUi-handle-lower:hover {
    transform: translateX(-17px) ;
}

html body .noUi-horizontal .noUi-handle.noUi-handle-upper:hover {
    transform: translateX(3px) ;
}

/* ---------- ACTIVE ---------- */
html body .noUi-horizontal .noUi-handle:active {
    transform: scale(1.06);
    box-shadow:
        0 4px 8px rgba(0,0,0,0.18),
        0 0 0 10px rgba(37,99,235,0.10);
}

 /* ===============================
   SINGLE DRAB – MODERNE LAYOUT
   =============================== */

.single-drab {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 16px;
}

/* Titel */
.drab-header {
    text-align: center;
    margin-bottom: 40px;
}

.drab-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* 2-kolonne grid */
.drab-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

/* Metadata */
.drab-meta {
    background: var(--panel);
    border: 1px solid #e3e6eb;
    border-radius: 14px;
    padding: 24px;
}

.drab-meta p {
    margin: 10px 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.drab-meta .gerningsmand-liste {
    list-style: none;
    margin: 2px 0 10px;
    padding-left: 0;
}

.drab-meta .gerningsmand-liste li {
    margin: 0;
}

.drab-meta .person-liste li {
    border: 1px solid #e3e6eb;
    border-radius: 10px;
    padding: 10px 12px;
    margin: 0 0 10px 0;
    background: #fff;
}

.drab-meta .person-liste li:last-child {
    margin-bottom: 0;
}

.drab-meta .person-name {
    font-weight: 600;
    color: #1f2937;
    line-height: 1.35;
}

.drab-meta .person-meta {
    margin-top: 2px;
    color: #4b5563;
    font-size: 0.92rem;
}

.drab-meta .person-detail {
    margin-top: 4px;
    color: #374151;
    font-size: 0.9rem;
}

.drab-meta .person-flag {
    margin-top: 6px;
    display: inline-block;
    font-size: 0.82rem;
    color: #7f1d1d;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 999px;
    padding: 2px 8px;
}
/*
.drab-meta strong {
    color: #374151;
    display: inline-block;
    min-width: 140px;
}*/

/* Content */
.drab-content {
    font-size: 1.05rem;
    line-height: 1.7;
}

.drab-content p {
    margin-bottom: 1.2em;
}

/* Map */
.drab-map {
    margin-top: 24px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.drab-map iframe {
    width: 100%;
    height: 420px;
    border: 0;
}

/* Responsive */
@media (max-width: 900px) {
    .drab-grid {
        grid-template-columns: 1fr;
    }

    .drab-meta strong {
        min-width: auto;
        display: block;
        margin-bottom: 2px;
    }
}


/*bog og affiliate sider*/

.archive-boeger,
.single-bog {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.litteratur-titel{
  text-align: center;
}

.single-bog-titel{
  text-align: center;
}

.bog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.bog-kort {
  border: 1px solid #e5e7eb;
  padding: 1rem;
  background: #fff;
}

.affiliate-btn,
.affiliate-cta a {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid #111827;
  text-decoration: none;
  color: #111827;
}

.affiliate-note {
  font-size: 0.85rem;
  color: #4b5563;
  margin-bottom: 1rem;
}

.bog-kort p:has(.affiliate-btn) {
  text-align: center;
}

.bog-kort {
  display: flex;
  flex-direction: column;
}

.bog-kort .affiliate-btn {
  margin-top: auto;
}


/* ===============================
   BOG-KORT – BILLEDE
   =============================== */

.bog-thumb {
  display: flex;
  justify-content: center;   /* vandret centrering */
  align-items: center;       /* lodret (hvis fast højde bruges) */
  margin-bottom: 0.75rem;
}

.bog-thumb img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

.bog-kort h3 {
  font-size: 1rem;
  margin: 0.5rem 0;
}

/* ===============================
   BOG-TITEL – SORT TEKST
   =============================== */
.bog-titel {
  font-size: 1.05rem;   /* var større før */
  line-height: 1.35;
  margin: 0.5rem 0 0.75rem;
  text-align: center;
}


.bog-kort h3 a,
.bog-kort h2 a {
  color: #111827;          /* sort / tekstfarve */
  text-decoration: none;
}

.bog-kort h3 a:hover,
.bog-kort h2 a:hover {
  text-decoration: underline;
}

/* ===============================
   BOG-BESKRIVELSE – KORREKT
   =============================== */

.bog-beskrivelse {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #374151;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;

  /* VIGTIGT */
  display: block;
  text-align: left;
}
.bog-grid-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  margin-top: 32px;
}

.bog-content {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #111827;
}

.bog-content p {
  margin-bottom: 1.2em;
}

.single-bog h1 {
  font-size: 2.1rem;
  margin-bottom: 12px;
}

.affiliate-cta {
  margin-top: 40px;
  text-align: center;
}

.affiliate-cta a {
  padding: 12px 18px;
  border: 1px solid #111827;
  border-radius: 8px;
}

/* ===============================
   SINGLE BOG – MINDRE COVER
   =============================== */

.single-bog .bog-thumb img {
  width: 100%;
  height: auto;
}

.drab-map-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.drab-map-grid.one-column {
  grid-template-columns: 1fr;
}

.drab-map-grid.two-columns {
  grid-template-columns: repeat(2, 1fr);
}

.drab-map-item h3 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.drab-map-item iframe {
  width: 100%;
  height: 320px;
  border: 0;
}

.drab-map-title {
    text-align: center;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.drab-map-item iframe {
    width: 100%;
    height: 320px;
    border: 0;
}

/* ===============================
   SINGLE DRAB – KILDER
   =============================== */

.drab-kilder {
    margin-top: 0.0rem;
    padding: 1rem 1.25rem;
    background: var(--panel);
    border: 1px solid #e3e6eb;
    border-radius: 16px;
}

.drab-kilder-inner {
    margin-top: 0.0rem;
    padding: 1rem 1.25rem;
    background: var(--panel);
    border: 1px solid #e3e6eb;
    border-radius: 16px;
    background: white;
    text-align: center;
}

.drab-kilder h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.75rem;
    color: var(--text);
    text-align: center;
}

.drab-tekst {
    margin-bottom: 1.25rem;
    padding: 1.25rem;
    background: #ffffff;
    border: 1px solid #e3e6eb;
    border-radius: 16px;
}

.drab-tekst-body {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.75;
}

.drab-tekst-body > :first-child {
    margin-top: 0;
}

.drab-tekst-body > :last-child {
    margin-bottom: 0;
}

.drab-kilder--sources {
    margin-top: 1rem;
}

.drab-kilde-liste {
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

.drab-kilde-reference {
    padding: 1rem 0;
    border-top: 1px solid #e5e7eb;
}

.drab-kilde-reference:first-child {
    padding-top: 0;
    border-top: none;
}

.drab-kilde-reference:last-child {
    padding-bottom: 0;
}

.drab-kilde-reference a {
    display: block;
    color: var(--text);
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.45;
    text-decoration: none;
}

.drab-kilde-reference a:hover {
    text-decoration: underline;
}

.drab-kilde-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    margin-top: 0.35rem;
    color: #6b7280;
    font-size: 0.88rem;
    line-height: 1.4;
}

.drab-kilde-meta span + span {
    padding-left: 0.75rem;
    border-left: 1px solid #d1d5db;
}

.drab-kilde h3 {
    text-align: center;
}

/* enkelt kilde */
.drab-kilde {
    padding: 1.25rem 0;
    border-top: 1px solid #e5e7eb;
}

.drab-kilde:first-of-type {
    border-top: none;
    padding-top: 0;
}

/* titel */
.drab-kilde h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.35rem 0;
    line-height: 1.4;
}

.drab-kilde h3 a {
    color: var(--text);
    text-decoration: none;
}

.drab-kilde h3 a:hover {
    text-decoration: underline;
}

/* manchet / beskrivelse */
.drab-kilde p {
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0;
    color: #374151;
}

/* fallback-note */
.kilde-note {
    font-size: 0.85rem;
    color: var(--muted);
    font-style: italic;
}

/* mobil */
@media (max-width: 768px) {
    .drab-kilder {
        padding: 1.5rem 1.25rem;
    }

    .drab-kilder h2 {
        font-size: 1.15rem;
    }
}

/* Hele filterkolonnen */
.drab-filter {
    text-align: center;
}

.drab-filter input,
.drab-filter select,
.drab-filter button,
.drab-filter textarea {
    
    margin-left: auto;
    margin-right: auto;
}

.filter-content {
    text-align: center;
}

.age-slider {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.age-slider .noui-range {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.age-values {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 6px;
    font-size: 0.9rem;
}

.checkbox-inline {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}




/* ===============================
   FILTER TOGGLE – TEKST + PIL UNDER
   =============================== */

/* LUKKET FILTER */
.filter-group:not(.is-open) .filter-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* ÅBENT FILTER */
.filter-group.is-open .filter-content {
    max-height: 2000px;
    opacity: 1;
    pointer-events: auto;
}


/* ===============================
   FILTER TOGGLE – TEKST + PIL UNDER
   =============================== */

.filter-toggle {
    display: flex;
    flex-direction: column;   /* 🔑 under teksten */
    align-items: center;
    justify-content: center;

    width: 100%;
    padding: 0px 0; /*1. tal: spacing inde i udfold knapper top+bund*/

    background: none;
    border: none;
    cursor: pointer;

    text-align: center;
    font-weight: 600;
    letter-spacing: 0.02em;
    gap: 6px;
}

.filter-toggle .chevron {
    width: 10px;
    height: 10px;

    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;

    transform: rotate(-45deg); /* ↓ lukket */
    transition: transform 0.25s ease;
    opacity: 0.7;
}

/* ÅBEN → pil op */
.filter-group.is-open .filter-toggle .chevron {
    transform: rotate(135deg); /* ↑ */
}

.drab-filter input,
.drab-filter select {
    text-align: center;
}

/* Placeholder – moderne browsere */
.drab-filter input::placeholder {
    text-align: center;
}

/* Firefox */
.drab-filter input::-moz-placeholder {
    text-align: center;
}

/* Edge / gamle WebKit */
.drab-filter input:-ms-input-placeholder {
    text-align: center;
}

/* Safari / Chrome (ældre) */
.drab-filter input::-webkit-input-placeholder {
    text-align: center;
}

.relateret-litteratur h2 {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 2rem;
    margin-top: 5rem;
}

/* ===============================
   DRAB – BOG KARRUSEL
   =============================== */
.drab-bog-karrusel {
  margin-top: 3.5rem;
}

.drab-bog-karrusel h2 {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.bog-karrusel-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 0.75rem;
}

.bog-karrusel-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #111827;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.bog-karrusel-btn:hover {
  transform: translateY(calc(-50% - 1px));
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.bog-karrusel-btn:active {
  transform: translateY(-50%);
}

.bog-karrusel-btn.left {
  left: -18px;
}

.bog-karrusel-btn.right {
  right: -18px;
}

.bog-carousel-wrap {
  position: relative;
}

.bog-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 220px;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 0 12px;
  scroll-padding-left: 0;
  scroll-padding-right: 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.bog-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bog-card .bog-thumb {
  margin-bottom: 6px;
}

.bog-card .bog-titel {
  font-size: 1rem;
  margin: 0.25rem 0 0.5rem;
  text-align: center;
}

.bog-more-card {
  justify-content: center;
  align-items: center;
  text-align: center;
  border-style: dashed;
}

.bog-more-title {
  font-weight: 700;
  font-size: 1rem;
}

.bog-more-sub {
  font-size: 0.85rem;
  color: #6b7280;
}

.bog-karrusel-footer {
  margin-top: 16px;
  text-align: center;
}

.bog-more-btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid #111827;
  color: #111827;
  text-decoration: none;
  font-weight: 600;
}

.bog-more-btn:hover {
  background: #f3f4f6;
}

@media (max-width: 768px) {
  .bog-carousel {
    grid-auto-columns: 70%;
  }

  .bog-karrusel-header {
    flex-direction: column;
    align-items: center;
  }

  .bog-karrusel-btn.left {
    left: 4px;
  }

  .bog-karrusel-btn.right {
    right: 4px;
  }
}

.bog-thumb {
  display: block;
  margin-bottom: 0.75rem;
}

.bog-thumb img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
}

.bog-thumb img {
  aspect-ratio: 3 / 4;
}

/* ================================
   WORDPRESS MENU: MAIN
   ================================ */

/* Menu container */
.menu-main-container {
    background: #ffffff;
}

/* UL */
#menu-main {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Menu links */
#menu-main > li > a {
    font-size: 15px;
    font-weight: 500;
    color: #1f2937;
    padding: 10px 14px;
    text-decoration: none;
}

/* Hover */
#menu-main > li > a:hover {
    color: #000000;
}

/* Aktiv side */
#menu-main > li.current-menu-item > a,
#menu-main > li.current_page_item > a {
    font-weight: 600;
    border-bottom: 2px solid #111827;
}


/*tilbage til søgeresultater*/
.back-to-results-link,
.back-to-results-link:visited {
  color: #000;
}

.back-to-results-link:hover,
.back-to-results-link:focus {
    color: #000;
    text-decoration: underline;
}

/* ===============================
   FAQ – ENDGYLDIG, REN VERSION
   =============================== */

/* Side-container */
.faq-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

/* Overskrift */
.faq-wrapper h1 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 3rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e5e7eb;
  color: var(--text);
}

/* -------------------------------
   FAQ ITEM
-------------------------------- */
.faq-item {
  border-bottom: 1px solid #e5e7eb;
}

/* -------------------------------
   QUESTION (titel + ikon)
-------------------------------- */
.faq-question {
  all: unset;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;

  width: 100%;
  padding: 1.25rem 0;
  cursor: pointer;

  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
}

/* Titeltekst – centreres */
.faq-question-text {
  justify-self: center;
  text-align: center;
  width: 100%;
}

/* -------------------------------
   IKON (plus / minus)
-------------------------------- */
.faq-icon {
  position: relative;
  width: 14px;
  height: 14px;
  margin-left: 1rem;
  justify-self: end;
  flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: #111827;
  transition: opacity 0.2s ease;
}

/* horisontal */
.faq-icon::before {
  width: 14px;
  height: 2px;
  top: 6px;
  left: 0;
}

/* lodret */
.faq-icon::after {
  width: 2px;
  height: 14px;
  top: 0;
  left: 6px;
}

/* åben → minus */
.faq-item.is-open .faq-icon::after {
  opacity: 0;
}

/* -------------------------------
   ANSWER – KORREKT CENTRERING
-------------------------------- */

/* Ydre container fylder bredden */
.faq-answer {
  display: none;
  width: 100%;
  padding-bottom: 1.25rem;
  justify-content: center;
}

.faq-item.is-open .faq-answer {
  display: block;
}

/* Indre indhold centreret som resten af sitet */
.faq-answer > * {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;

  font-size: 0.95rem;
  line-height: 1.6;
  color: #374151;
}

/* Lister – kontrolleret indrykning */
.faq-answer ul {
  margin: 0.5rem auto 0.75rem;
  
}

.faq-answer li {
  margin-bottom: 0.35rem;
}

/* Afsnit */
.faq-answer p {
  margin: 0.5rem auto;
  font-size: 1.2rem;
}

/* -------------------------------
   MOBILE
-------------------------------- */
@media (max-width: 600px) {
  .faq-page {
    padding: 2rem 1rem 3rem;
  }

  .faq-wrapper h1 {
    font-size: 1.6rem;
  }

  .faq-question {
    font-size: 1rem;
  }
}

/* ===============================
   SINGLE BOG – MOBIL FIX
   =============================== */
@media (max-width: 768px) {

  /* Skift til én kolonne */
  .bog-grid-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Sørg for korrekt rækkefølge */
  .bog-meta {
    order: 1;
    text-align: center;
  }

  .bog-content {
    order: 2;
    display: block;
  }

  /* Sikr at indhold aldrig skjules */
  .bog-content p {
    display: block;
    visibility: visible;
  }

  /* Giv luft til teksten */
  .bog-content {
    margin-top: 1rem;
  }

  /* Centrer cover korrekt */
  .single-bog .bog-thumb {
    justify-content: center;
  }

  .single-bog .bog-thumb img {
    max-width: 240px;
    margin: 0 auto;
  }
}

/* ===============================
   SINGLE BOG – MOBIL KØB-KNAP
   =============================== */

/* Skjul mobil-knap på desktop */
.affiliate-cta-mobile {
  display: none;
}

/* Mobil: vis ekstra køb-knap */
@media (max-width: 768px) {

  .affiliate-cta-mobile {
    display: block;
    margin-top: 2rem;
    text-align: center;
  }

  .affiliate-cta-mobile a {
    display: inline-block;
    padding: 14px 22px;
    font-size: 1rem;
    font-weight: 600;
    border: 1px solid #111827;
    border-radius: 10px;
  }
}

/* ===============================
   LOAD MORE – FALLBACK KNAP
   =============================== */

#drab-load-more-wrap {
    display: none;               /* styres af JS */
    text-align: center;
    margin: 2.5rem 0 1.5rem;
}

#drab-load-more {
    appearance: none;
    background: #ffffff;
    color: #111827;
    border: 1px solid #e5e7eb;
    border-radius: 10px;

    padding: 12px 22px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;

    transition:
        background-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.08s ease;
}

#drab-load-more:hover {
    background: #f9fafb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transform: translateY(-1px);
}

#drab-load-more:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0,0,0,0.08) inset;
}

#drab-load-more:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

/* ===============================
   MOBIL FILTER – STICKY TOGGLE
   =============================== */

#drab-close-filter {
    display: none;
}




/* ===============================
   MOBIL – FILTER KNAPPER
   =============================== */
@media (max-width: 900px) {

    /* Topknap: Åbn / Luk filter */
    #drab-filter-toggle {
        display: block;
        width: 100%;
        padding: 14px 16px;
        font-size: 1rem;
        font-weight: 600;
        border-radius: 10;
        border: none;
        background: #111827;
        color: #ffffff;
        cursor: pointer;
    }

    /* Container for Ryd / Luk */
    .filter-actions-mobile {
        display: flex;
        gap: 12px;
        margin-top: 24px;
    }

    .filter-actions-mobile button {
        flex: 1;
        padding: 12px;
        background: #e5e7eb;
        border: none;
        border-radius: 10px;
        font-weight: 600;
        cursor: pointer;
        transition: background .15s ease, transform .08s ease;
    }
}

@media (max-width: 900px) {
    #drab-close-filter {
        display: block;
    }
}

@media (max-width: 900px) {
  .filter-actions-mobile .reset-filters:hover {
    background: #d1d5db;
  }
}

 /* Honeypot – skjult for mennesker */
.kontakt-honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  visibility: hidden;
}

/* =====================================================
 * KONTAKT-SIDE
 * ===================================================== */

.kontakt-page {
  padding: 3rem 1rem;
}

.kontakt-wrapper {
  max-width: 720px;              /* matcher FAQ/tekstbredde */
  margin: 0 auto;
}

.kontakt-wrapper h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.kontakt-wrapper p {
  margin-bottom: 2rem;
  line-height: 1.6;
  color: #444;
}

/* -----------------------------------------------------
 * FORM
 * ----------------------------------------------------- */

.kontakt-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.kontakt-form label {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  font-size: 0.95rem;
  color: #222;
}

.kontakt-form input,
.kontakt-form textarea {
  margin-top: 0.4rem;
  padding: 0.6rem 0.7rem;
  font-size: 0.95rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
}

.kontakt-form input:focus,
.kontakt-form textarea:focus {
  outline: none;
  border-color: #000;
}

/* -----------------------------------------------------
 * SUBMIT-KNAP
 * ----------------------------------------------------- */

.kontakt-form button {
  align-self: flex-start;
  margin-top: 1rem;
  padding: 0.6rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.kontakt-form button:hover {
  opacity: 0.9;
}

/* -----------------------------------------------------
 * FEEDBACK-BESKEDER
 * ----------------------------------------------------- */

.kontakt-feedback {
  margin-bottom: 1.5rem;
  padding: 0.8rem 1rem;
  border-radius: 4px;
  font-size: 0.95rem;
}

.kontakt-feedback.success {
  background: #e6f4ea;
  color: #1e4620;
}

.kontakt-feedback.error {
  background: #fdecea;
  color: #611a15;
}

/* =====================================================
 * TESTER FEEDBACK WIDGET (MOBILE FIRST)
 * ===================================================== */

#tester-feedback-widget {
  position: fixed;
  bottom: 0.75rem;
  left: 0.75rem;
  z-index: 9999;
  font-family: inherit;
}

/* ----------------------------------
 * TOGGLE BUTTON
 * ---------------------------------- */

#tester-feedback-toggle {
  padding: 0.45rem 0.7rem;
  font-size: 0.85rem;
  font-weight: 600;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 999px;
  cursor: pointer;
}

/* ----------------------------------
 * PANEL
 * ---------------------------------- */

#tester-feedback-panel {
  margin-top: 0.5rem;
  width: calc(100vw - 1.5rem);
  max-width: 360px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* ----------------------------------
 * HEADER
 * ---------------------------------- */

.tester-feedback-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.7rem;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
}

#tester-feedback-close {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
}

/* ----------------------------------
 * BODY
 * ---------------------------------- */

.tester-feedback-body {
  padding: 0.7rem;
}

#tester-feedback-email,
#tester-feedback-message {
  width: 100%;
  box-sizing: border-box;
  font-size: 0.9rem;
  padding: 0.45rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

#tester-feedback-email {
  margin-bottom: 0.5rem;
}

#tester-feedback-link {
  width: 100%;
  margin-top: 0.4rem;
  font-size: 0.7rem;
  padding: 0.3rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #f9f9f9;
}

/* ----------------------------------
 * ACTIONS
 * ---------------------------------- */

.tester-feedback-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.6rem;
}

#tester-feedback-send {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

#tester-feedback-info {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
}

/* ----------------------------------
 * INFO OVERLAY
 * ---------------------------------- */

#tester-feedback-info-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 10;
}

.tester-feedback-info-box {
  position: relative;
  z-index: 11;
}


.tester-feedback-info-box {
  background: #fff;
  width: calc(100% - 1.5rem);
  max-width: 320px;
  padding: 0.9rem;
  border-radius: 10px;
  font-size: 0.85rem;
  line-height: 1.4;
}

.tester-feedback-info-box strong {
  display: block;
  margin-bottom: 0.4rem;
}

.tester-feedback-info-box {
  position: relative;
}

#tester-feedback-info-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  border: none;
  background: #000;
  color: #fff;
  border-radius: 999px;
  cursor: pointer;
}


/* ----------------------------------
 * DESKTOP TWEAKS
 * ---------------------------------- */

@media (min-width: 768px) {

  #tester-feedback-panel {
    width: 300px;
  }

}

/* ===================================================
   STICKY FILTER TOGGLE (GLOBAL)
   =================================================== */

#drab-filter-toggle {
    position: sticky;
    top: 0;
    z-index: 20;

    /* visuelt */
    background: #111827;
    color: #ffffff;
}




/* Åbent filter: vis indhold – ingen egen scroll */
.drab-filter.is-open form {
    display: block;
}

/* Resultater er altid normal scroll */
.drab-resultater {
    position: relative;
    overflow: visible;
}

#drab-filter-bar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 8px 16px;
}

#drab-filter-toggle {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    background: #111827;
    color: #ffffff;
    cursor: pointer;
}

/* ===============================
   MOBIL – SKJUL HELE FILTERBOKSEN
   =============================== */
@media (max-width: 900px) {

    /* Skjul hele aside når filter er lukket */
    .drab-filter {
        display: none;
    }

    /* Vis filter når åbent */
    .drab-filter.is-open {
        display: block;
    }
}


@media (min-width: 900px) {

    /* Ingen filter-toggle på desktop */
    #drab-filter-bar {
        display: none;
    }

    /* Filter altid synligt */
    .drab-filter form {
        display: block !important;
    }

}



/* Åben */
.drab-filter.is-open form {
    display: block;
}

/* ===============================
   DESKTOP – STICKY FILTER (PC)
   =============================== */
@media (min-width: 900px) {

    /* Fjern mobil toggle */
    #drab-filter-bar {
        display: none;
    }

    /* Grid: filter + resultater */
    .drab-arkiv-grid {
        display: grid;
        grid-template-columns: 320px 1fr;
        gap: 32px;
        align-items: start;
    }

    /* Sticky filter */
    .drab-filter {
        position: sticky;
        top: 24px; /* justér hvis header fylder mere */
        align-self: start;
    }

    /* Filter ALDRIG skjult på desktop */
    .drab-filter form {
        display: block !important;
    }
}

.affiliate-cta {
  display: block;
  padding: 12px 14px;
  background: #111;
  color: #fff;
  text-align: center;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
}

.affiliate-cta:hover {
  background: #333;
}

@media (max-width: 768px) {
  .affiliate-ctas-mobile {
    margin-top: 30px;
  }
}


/* Ensartede, rolige knapper */
.affiliate-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 16px;
  border-radius: 999px;

  background: #f4f4f5;
  color: #111;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;

  border: 1px solid #e2e2e2;

  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.1s ease;
}

/* Hover – diskret */
.affiliate-cta:hover {
  background: #ededee;
  border-color: #ccc;
  transform: translateY(-1px);
}

/* Aktiv klik */
.affiliate-cta:active {
  transform: translateY(0);
}

/* Mobil: lidt større klikflade */
@media (max-width: 768px) {
  .affiliate-cta {
    padding: 12px 18px;
    font-size: 15px;
  }
}
/* ===============================
 * Affiliate platform-grupper (REN)
 * =============================== */

.affiliate-platform {
  margin-bottom: 12px;       /* mindre afstand mellem platforme */
  text-align: center;        /* centrer ALT indhold */
}

.affiliate-platform-name {
  font-size: 13px;
  font-weight: 600;
  color: #555;

          /* tættere på knapperne */
  letter-spacing: 0.02em;
}
.affiliate-platform .affiliate-ctas {
  justify-content: center;   /* centrer knapper under navnet */
}

/* ===============================
 * Affiliate CTA – bog
 * =============================== */

.affiliate-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* =========================================
   FIX: Platform ↔ Knap afstand (ENDGYLDIG)
   ========================================= */

/* Platform-container */
.affiliate-platform {
  margin-bottom: 8px;
  text-align: center;
}

/* Platform-navn */
.affiliate-platform-name {
  margin-bottom: 10px;
  line-height: 1.2;
}

/* Knap-wrapper */
.affiliate-platform .affiliate-ctas {
  margin-top: 0;
  margin-bottom: 0;
  justify-content: center;
}

/* Selve knapperne */
.affiliate-platform .affiliate-cta {
  margin-top: 0;
}

.kilde-skjult {
    display: none;
}

.kilder-toggle {
    margin-top: 1rem;
    background: #111827;
    border: none;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    padding: 10px 14px;
    border-radius: 6px;
}

/* =========================
 * BOG – FILTER (ARCHIVE)
 * ========================= */

.bog-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
  padding: 12px 16px;
  background: #f7f7f7;
  border-radius: 8px;
}

.bog-filter label {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.bog-filter select {
  min-width: 160px;
  padding: 6px 8px;
  font-size: 14px;
}

/* =========================
 * BOG – GRID & KORT
 * ========================= */

.bog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.bog-kort {
  background: #fff;
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform .15s ease, box-shadow .15s ease;
}

.bog-kort:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.bog-thumb img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 8px;
}

.bog-titel {
  font-size: 16px;
  margin: 6px 0 8px;
}

.bog-kort p {
  font-size: 14px;
  margin: 2px 0;
}

/* =========================
 * INDLÆS FLERE
 * ========================= */

#bog-load-more {
  display: block;
  margin: 32px auto 0;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  color: #000;
  border: none;
  cursor: pointer;
}

#bog-load-more:hover {
  background: #D1D5DB;
}

#bog-load-more {
  display: none;
}

/* =========================================
   BOG – FILTER (SAMME STIL SOM DRAB)
   ========================================= */

.bog-filter {
    background: var(--panel);
    border: 1px solid #e3e6eb;
    border-radius: 12px;

    padding: 16px 18px;
    margin-bottom: 28px;

    display: flex;
    flex-wrap: wrap;
    gap: 16px 20px;
    align-items: flex-end;
    justify-content: center;
}

/* label = samme typografi som drab */
.bog-filter label {
    display: flex;
    flex-direction: column;

    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;

    margin: 0;
}

/* selects = samme look som drab */
.bog-filter select {
    min-width: 160px;
    padding: 10px 12px;

    font-size: 0.95rem;
    border-radius: 8px;
    border: 1px solid #cfd4dc;
    background: #ffffff;

    text-align: center;
}

/* focus-state = identisk med drab */
.bog-filter select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(59,130,246,.08);
}

/* =========================================
   BOG – FILTER (MOBIL)
   ========================================= */

@media (max-width: 900px) {
    .bog-filter {
        justify-content: center;
        gap: 14px;
    }

    .bog-filter select {
        min-width: 140px;
    }
}

/* =========================================
   BOG – FILTER: CENTRER OVERSKRIFTER
   ========================================= */

.bog-filter label {
    align-items: center;      /* centrer label-indhold horisontalt */
    text-align: center;       /* centrer selve teksten */
}
