/* =====================================
   BASE & VARIABLER
   - Samler farver, typografi og generelle tokens
   - Tilføjer fallback-værdier for manglende custom properties
===================================== */
:root {
  /* Line-height multipliers (bruges nu faktisk nedenfor) */
  --body-lh-mult: 1.375;      /* 16px * 1.375 = 22px */
  --headline-lh-mult: 1.2;    /* lidt tættere til overskrifter */

  /* Fallbacks hvis ikke sat andetsteds */
  --body-font-size: 16px;
  --headline-font-size: 32px;

  /* Design tokens */
  --radius-pill: 50px;
  --radius-sm: 5px;
  --radius-md: 8px;
  --transition: 0.5s;

  /* Farver (findes allerede i brug) */
  /* --primary-color, --secondary-color, --navigation-color,
     --navigation-text-color, --sektion_background_color,
     --sidebar-background-color, --banner-color,
     --bannertext-color, --footer_color-color,
     --footertext_color-color, --socialicons_color-color */
}

/* =====================================
   TYPOGRAFI
===================================== */
html { font-size: 100%; }
body,
.panel,
.conventus .panel,
.cvt_element table,
.cvt_bt,
.cvt_boxtitel,
.cvt_uos,
.panel-title.cvt_1 {
  font-family: Poppins, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

h1, h2, h3, h4, h5 { font-weight: 700; color: #17375A; line-height: var(--headline-lh-mult); }
a { font-weight: 600; }

/* Globalt – brug link-farven alle steder */
a,
a:visited {
  color: var(--links-color)!important;
}

a:hover,
a:focus {
  color: color-mix(in srgb, var(--links-color) 85%, black)!important;
  text-decoration: underline;
}

.site-footer a { color: var(--links-color)!important; }



/* Basetekst på tværs af content-områder */
:where(body, .indholdtekst, .post-content-inner, .cvt_element, .conventus) :where(p, li, td, th, span) {
  font-size: var(--body-font-size);
  line-height: var(--body-lh-mult);
  font-weight: 400;
}

/* Overskrifter i content-områder */
:where(.panel-heading h1, .panel-heading h3, .subpages-nav h2,
       .indholdtekst h1, .indholdtekst h2, .indholdtekst .cvt_uos,
       .hold-content h1, .hold-content h2,
       .cvt_element span h1, .cvt_element span h2,
       .indholdtekst h1 strong span, .indholdtekst h2 strong span,
       .indholdtekst table td span h1, .indholdtekst table td span h2) {
  font-size: var(--headline-font-size);
  font-weight: 600;
}

/* =====================================
   LAYOUTSEKTIONER
===================================== */
.indholdssektion { background-color: var(--sektion_background_color); }
.indholdssektion .indholdtekst { background: #FFF; padding: 15px; }
.sidebar { background-color: var(--sidebar-background-color); padding: 15px; }
.sidebar-content { padding: 15px; }

.indholdtekst h2, .indholdtekst h3 { margin: 15px 0 5px; }

/* =====================================
   LINKS & MENU
===================================== */
:where(td a, li a, .indholdssektion a, .sidebar-content a, .indholdtekst a,
       .kommendedage .cvt_uos, #top-menu li.current-menu-item > a,
       .et-pb-icon, .boardmember a:hover, #top-menu li.current-menu-ancestor > a,
       .mobile_menu_bar::before, .mobile_menu_bar::after) {
  color: var(--primary-color);
  transition: var(--transition);
}

.loginformular .et-pb-icon {color:var(--links-color)!important;}

.faq-accordion__q b { font-weight: 500; }

.nav a { color: var(--navigation-text-color); }

#top-menu li.current-menu-ancestor > a,
#top-menu li.current-menu-item > a {
  color: var(--navigation-text-color);
  border-bottom: 1px var(--navigation-text-color) solid;
  padding-bottom: 10px;
}

.sub-menu li { background: none; }

#top-menu .sub-menu li > a,
#top-menu .sub-menu li.current-menu-item > a { color:#000; border-bottom: 1px #FFF solid; }

#top-menu li li a { min-width: 245px; }
.nav li ul { border: 0; min-width: 285px; max-width: 90vw; }

/* Call-to-action i menu – DO NOT MODIFY (per krav) */
.et-fixed-header .divi-life-cta-menu a,
.divi-life-cta-menu a {
  background-color: #222;
  padding: 15px 25px !important;
  border-radius: 25px;
  color: #fff !important;
  text-align: center;
  font-weight: 700;
}
.et-fixed-header .divi-life-cta-menu a:hover,
.divi-life-cta-menu a:hover {
  background-color: #15821D;
  opacity: 1;
}
.et-fixed-header .divi-life-cta-menu a { color: #FFF !important; }

/* =====================================
   TABELLER
===================================== */
.my-custom-table { margin-bottom: 25px; }
.my-custom-table tbody tr:nth-child(even) { background-color: #f2f2f2; }
.my-custom-table td { padding: 10px 5px; font-size: 16px; vertical-align: top; }


.cvt_uos  {background:var(--banner-color)!important;color:var(--bannertext-color)!important;}
.panel-heading {background:var(--banner-color)!important;color:var(--bannertext-color)!important;}
.panel-heading h3 {background:var(--banner-color)!important;color:var(--bannertext-color)!important;}






/* =====================================
   KNAPPER (GLOBAL)
===================================== */
button.faq-accordion__trigger { background: none; color: #000; }

.et_pb_button {
  font-weight: 400;
  min-width: 200px;
  line-height: 41px;
  text-align: center;
  color:#FFF!important;
}

.btn {
  font-size: 16px;
  border: 0;
  padding: 10px 25px;
  min-width: 120px;
  border-radius: var(--radius-md);
}
.btn.btn-default { background: #000; color: #FFF; }
.btn.btn-info { background: #3131ee; color: #FFF; }
.btn.btn-success { background: #79b026; color: #FFF; }

/* Primære inputs/knapper i content */
.indholdtekst :is(input[type=button], input[type=submit], input[type=reset], button) {
  background: #222;
  color: #fff;
  padding: 8px 25px;
  border-radius: var(--radius-pill);
  border: none;
  font-size: 18px;
  margin-right: 15px;
  text-shadow: none;
  width: auto;
  max-width: none;
}

.indholdtekst :is(.btn.btn-default:hover,
                 input[type=button]:hover,
                 input[type=submit]:hover,
                 input[type=reset]:hover,
                 button:hover) {
  color: #fff;
  cursor: pointer;
  text-shadow: none;
  border: none;
}

/* Fælles hover */
:where(.newsletter-content input[type="button"]:hover,
       .cvt_boxtitel,
       .conventus .cvt_boxtitel,
       .loginformular .cvt_bt:hover,
       .et_pb_button:hover) {
  background-color: var(--links-color)!important;
  transition: var(--transition);
  text-decoration:none!important;
}

.ccms-forside-knap { background: #000; border-radius: var(--radius-pill); padding: 10px 35px; margin-right: 15px; }

.conventus .btn.btn-default { color: #FFF; font-size:16px; border-radius:var(--radius-pill); padding:10px 25px; border:none; }

.indholdtekst :is(.btn.btn-default:hover,
                  input[type="button"]:hover,
                  input[type="submit"]:hover,
                  input[type="reset"]:hover,
                  button:hover,
                  .ccms-forside-knap:hover) { background: var(--primary-color); }

a.big-button.bigblack { color: #FFF; }
.big-button.bigblack {
  background: #000; border: 0; color: #FFF; padding: 15px 35px;
  font-size: 18px; font-weight: 500; border-radius: var(--radius-pill);
}

.ccms-forside-knap.ccms-forside-knap--2,
.ccms-forside-knap.ccms-forside-knap--1 {
  background: #000;
  color: #FFF !important;
  border-radius: 50px;
  padding: 10px 35px !important;
}

/* =====================================
   PANELS & CONVENTUS
===================================== */
.panel, .conventus .panel { box-shadow: none; border-radius: 0; }
.panel-title.cvt_1 { font-size: 16px; font-weight: 500; }

.cvt_element { display: inline-block; }
.cvt_element table { background: #fff; }
.cvt_bt { font-size: 16px; padding: 12px 25px; }
.cvt_boxtekst.cvt_3 { font-size: 16px; }
.cvt_os { font-size: 20px; padding: 25px; }
.cvt_element a { font-size: 100%; }

#cvt_billetserier { font-size: 14px; }
#cvt_billetserier td { width: 30%; }

/* =====================================
   DIVERSE
===================================== */
.boardmember { margin-right: 1%; margin-bottom: 5vh; min-height: 285px; }
.boardmember a { color: #222; }
input[type="button"] { padding: 12px; margin: 10px 0; }
.et_portfolio_image .et_overlay::before { content: "\054"; color: #79B026; }

/* =====================================
   FARVER & BANNERS
===================================== */
a.more-link {
  background-color: #222;
  padding: .55em 2em;
  color: #fff !important;
  border-radius: var(--radius-pill);
  text-transform: none;
  margin-top: 25px;
  display: inline-block;
  transition: var(--transition);
}
a.more-link:hover { background: var(--primary-color);text-decoration:none!important; }

.et_pb_fullwidth_header.et_pb_fullwidth_header_0_tb_body,
.topbanner { background-color: var(--secondary-color); opacity: 0.9; }
#main-header { background-color: var(--navigation-color); }
.baggrundfooter { background-color: var(--footer_color-color); }
.baggrundfooter :is(.et_pb_text a, a, p, h3) { color: var(--footertext_color-color); }
.baggrundfooter :is(.et_pb_text a:hover, a:hover) { color: var(--primary-color); }
.baggrundfooter a { text-shadow: none; }

/* Banner/panel titler */
.panel-default > .panel-heading,
.conventus .panel-default > .panel-heading,
.cvt_boxtitel,
.cvt_uos {
  border: none;
  background-color: var(--banner-color);
  color: #222;
}
.cvt_uos, .panel-title.cvt_1 { color: var(--bannertext-color); font-weight: 500; }
.cvt_uos, .panel-heading { padding: 15px; }
.cvt_boxtitel.cvt_1, .pull-left { font-weight: 600; }
.cvt_boxtitel.cvt_1 { color: var(--bannertext-color); padding: 5px 15px; line-height: 45px; }

/* =====================================
   SOCIAL ICONS
===================================== */
.socii_icon { width: 50px; display: inline-block; text-align: center; font-weight: 700; }
.socii_icon,
.fab.fa-facebook,
.fab.fa-instagram,
.fa.fa-address-card,
.fab.fa-linkedin { color: var(--socialicons_color-color); }
.socii_icon:hover,
.fab.fa-facebook:hover,
.fab.fa-instagram:hover,
.fa.fa-address-card:hover,
.fab.fa-linkedin:hover { color: var(--primary-color); }

/* =====================================
   COOKIE BANNER
===================================== */
#pjAcceptCookieBar { background: #404040d6; width: 100%; height: 100%; z-index: 99999999999; }
#pjAcceptCookieBar .pjAcceptCookieBarShell {
  width: 90%; margin: 0 auto; margin-top: 35vh; max-width: 350px; padding: 50px;
  background: #fff; border-radius: var(--radius-sm);
}
#pjAcceptCookieBar .pjAcceptCookieBarBtn { background: #79B026; border-radius: var(--radius-pill); transition: var(--transition); }
#pjAcceptCookieBar .pjAcceptCookieBarBtn:hover { background: #222; }
#pjAcceptCookieBar .pjAcceptCookieBarBtn, #pjAcceptCookieBar .pjAcceptCookieBarBtn::after { transition: none; }
.pjAcceptCookieBarShell p { color: #222; }

/* =====================================
   RESPONSIVE
===================================== */
@media (max-width: 810px) {
  h1, h2 { font-size: 25px; }
  .indholdtekst table td { line-height: 24px; }
  .skjulmobilknap.button.divi-life-cta-menu,
  .skjulmobil { display: none !important; }
  .skjuldesktopknap.divi-life-cta-menu.menu-item a { margin-top: 50px; }
  button, .indholdtekst input[type=button], .et_pb_button { font-size: 16px;color:#FFF!important; }
  .kontaker-content .table_body td { width: 100%; display: block; }
  .btn.btn-info.info-knap.knapper_horisontal,
  .btn.btn-success.tilmeld-knap.knapper_horisontal { width: 100%; margin: 10px 0; }
  #cvt_billetserier { font-size: 16px; width: 100%; }
  #cvt_billetserier td { width: 100%; display: block; float: left; }
  #cvt_billetserier tr { margin: 15px 0; display: block; float: left; }
  #cvt_billetserier th { display: none; }

  #mobile_menu li a { font-size: 16px; }

  .ccms-forside-knap { width: 100%; text-align: center; margin: 15px 0; }
}

@media (min-width: 811px) {
  .skjuldesktop { display: none !important; }
  .skjuldesktopknap { display: none !important; }
}

/* =====================================
   SIDEINDHOLD-SKABELON
===================================== */
.topbarbanner.undersider .topbanner { padding-top: 0; padding-bottom: 5vh; }
.kontaker-content .cvt_element { margin-top: -50px; }

/* Newsletter-knap i sideindhold */
.sideindhold .newsletter-content input[type="button"] {
  font-size: 15px; cursor: pointer; text-shadow: none; color: #fff; border: 0;
  background: #222; border-radius: var(--radius-pill); min-width: 300px;
}

/* Default-knapper i sideindhold */
.sideindhold .indholdtekst .btn.btn-default {
  background: #dcdcdc; color: #222; padding: 8px 25px; border-radius: var(--radius-pill);
  border: 2px solid #dcdcdc; font-size: 16px; margin-right: 15px; text-shadow: none;
  width: auto; max-width: none;
}

/* Primærknapper i sideindhold */
.sideindhold .indholdtekst :is(input[type=button], input[type=submit], input[type=reset], button) {
  background: #222; color: #fff; padding: 8px 25px; border-radius: var(--radius-pill);
  border: 2px solid #222; font-size: 16px; margin-right: 15px; text-shadow: none;
  width: auto; max-width: none;
}
.sideindhold .indholdtekst :is(input[type=button], input[type=submit], input[type=reset], button):hover {
  background: #17861e; border: 2px solid #17861e; color: #fff; cursor: pointer;
}

/* Success/Info knapper i sideindhold */
.sideindhold .btn.btn-success, .sideindhold .btn.btn-info { border-radius: var(--radius-pill); }
.sideindhold .btn.btn-success { background: #17861e; }
.sideindhold .btn.btn-info    { background: #32349b; }

/* Indhold og billeder */
.sideindhold .hold-content .cvt_uos { margin-top: 25px; display: block; }
.sideindhold .hold-content table tr { border-bottom: 1px solid #000; }
.sideindhold .indholdtekst img { border-radius: var(--radius-sm); border: 0; }
.sideindhold .indholdtekst .alignright.size-full { margin-left: 25px; margin-bottom: 25px; }

/* Conventus blokke */
.sideindhold .cvt_element table { background: #fff; margin: 1%; font-family: Poppins, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }
@supports not (display: grid) {
  .sideindhold .cvt_element { display: block; }
  .sideindhold .cvt_element table { max-width: 31%; float: left; }
}
.sideindhold .cvt_element a { font-size: 15px; }

/* Skjuler første celle i første tabel */
.sideindhold .cvt_element > table:first-child > tbody > tr:first-child > td:first-child {
  background: #fff; font-size: 25px; color: #17375A; padding-bottom: 25px; display: none;
}

/* =====================================
   SMÅ FIXES / ENKELT-REGLER
===================================== */
.sideindhold .indholdtekst table { width: 100%; }
.sideindhold .indholdtekst table td { border: 0; }

.sideindhold .indholdtekst table,
.sideindhold .indholdtekst { /* bevar fuld bredde tabel i sideindhold */ }

/* Bevar specifikke overrides fra originalen */
.cvt_62752 { border: none; }

/* Header spacing (Divi) */
#page-container { padding-top: 84px; }
#et-top-navigation { padding-top: 20px; }
