/* ==========================================================================
   Klinik for Fodterapi – custom.css (T4 local)
   Thrane.nu · design: _layout_Fodterapi.sketch, "Version 4"
   ========================================================================== */

:root {
  --fk-blaa: #106fb1;
  --fk-blaa-moerk: #0d5d95;
  --fk-moerk: #252b2f;
  --fk-moerkere: #15191c;
  --fk-graa: #e6e6e6;
  --fk-ikon-bg: rgba(59, 68, 73, .54);
  --fk-ikon-kant: #68767d;
  --fk-linje: #343b3f;
  --fk-daempet: #838383;
  --fk-overskrift: "Oswald", "Arial Narrow", sans-serif;
  --fk-tekst: "Source Sans 3", "Source Sans Pro", system-ui, sans-serif;
  --fk-bredde: 1220px;
  --fk-luft: clamp(64px, 8vw, 120px);
}

/* ---------- Grundlag ---------- */
body {
  font-family: var(--fk-tekst);
  font-size: 18px;
  line-height: 1.6;
  color: var(--fk-moerkere);
  background: #fff;
}
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4 {
  font-family: var(--fk-overskrift);
  font-weight: 500;
  color: var(--fk-blaa);
  line-height: 1.2;
  letter-spacing: 0;
}
a { color: var(--fk-blaa); }
a:hover { color: var(--fk-blaa-moerk); }

/* Fokusring kun ved tastatur – aldrig ved klik, og intet flytter sig */
*:focus { outline: none; }
*:focus:not(:focus-visible) { outline: none !important; box-shadow: none !important; }
*:focus-visible {
  outline: 3px solid #77beea !important;
  outline-offset: 3px;
  box-shadow: none !important;
}
a, button, .btn { -webkit-tap-highlight-color: transparent; }
a:active, button:active, .btn:active { transform: none !important; }

.fk-container {
  width: 100%;
  max-width: calc(var(--fk-bredde) + 48px);
  margin: 0 auto;
  padding: 0 24px;
}

.fk-overtitel {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 0 0 18px;
  font-family: var(--fk-tekst);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .8px;
  line-height: 18px;
  text-transform: uppercase;
  color: var(--fk-blaa);
}
.fk-overtitel::before {
  content: "";
  width: 30px;
  height: 2px;
  background: currentColor;
  flex: none;
}
.fk-titel {
  font-size: clamp(34px, 4.2vw, 50px);
  line-height: 1.2;
  margin: 0 0 24px;
}
.fk-brod p { margin: 0 0 29px; }
.fk-brod strong { color: var(--fk-moerkere); font-weight: 700; }

.fk-knap {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 0 22px;
  background: var(--fk-blaa);
  border: 1px solid #fff;
  color: #fff !important;
  font-weight: 800;
  font-size: 18px;
  text-decoration: none !important;
  transition: background-color .2s ease;
}
.fk-knap:hover { background: var(--fk-blaa-moerk); }

.fk-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 18px;
  color: var(--fk-blaa);
  text-decoration: none !important;
}
.fk-link:hover { color: var(--fk-blaa-moerk); }
.fk-link .fk-pil, .fk-knap .fk-pil { font-size: 14px; transition: transform .2s ease; }
.fk-link:hover .fk-pil, .fk-knap:hover .fk-pil { transform: translateX(4px); }

.fk-ikon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--fk-ikon-bg);
  border: 1px solid var(--fk-ikon-kant);
  color: var(--fk-blaa);
  font-size: 16px;
  flex: none;
}

/* "Bestil tid"-knap (mod_custom layout bestiltid) */
.fk-bestil {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 56px;
  padding: 5px 18px;
  background: var(--fk-blaa);
  border: 1px solid #fff;
  color: #fff !important;
  text-decoration: none !important;
  line-height: 1.15;
  transition: background-color .2s ease;
}
.fk-bestil:hover { background: var(--fk-blaa-moerk); }
.fk-bestil__tekst { display: flex; flex-direction: column; }
.fk-bestil__lille { font-size: 12px; font-weight: 500; }
.fk-bestil__nummer { font-size: 18px; font-weight: 800; white-space: nowrap; }
.fk-bestil__ikon { font-size: 22px; margin-left: auto; }

/* ---------- Header ---------- */
#t4-header {
  background: var(--fk-moerk);
  position: sticky;
  top: 0;
  z-index: 1000;
}
#t4-header .header-block { padding: 0; }
#t4-header .container-xxl { max-width: 1448px; padding: 0 24px; }
#t4-header .header-wrap { min-height: 100px; gap: 24px; }
#t4-header .navbar-brand { padding: 0; margin: 0; }
#t4-header .logo-img { width: 442px; max-width: 100%; height: auto; }
#t4-header .logo-img-sm,
.t4-offcanvas .logo-img-sm,
.t4-offcanvas .logo-img { width: 220px; max-width: 100%; height: auto; }
#t4-header .t4-navbar { margin-left: auto !important; margin-right: 0 !important; }
#t4-header .t4-megamenu .navbar-nav > li > a,
#t4-header .t4-megamenu .navbar-nav > li > .nav-link,
#t4-header .t4-megamenu .navbar-nav > li > span {
  color: #fff;
  font-family: var(--fk-tekst);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 1px;
  padding: 10px 20px;
  background: none;
}
#t4-header .t4-megamenu .navbar-nav > li.active > a,
#t4-header .t4-megamenu .navbar-nav > li > a:hover { color: #77beea; }
#t4-header .t4-megamenu .navbar-nav > li > a .item-caret,
#t4-header .t4-megamenu .navbar-nav > li > a .caret { display: none; }
#t4-header .t4-megamenu .dropdown-menu {
  background: var(--fk-moerk);
  border: 0;
  border-top: 2px solid var(--fk-blaa);
  border-radius: 0;
  padding: 10px 0;
  min-width: 260px;
  box-shadow: 0 20px 40px rgba(0,0,0,.25);
}
#t4-header .t4-megamenu .dropdown-menu a,
#t4-header .t4-megamenu .dropdown-menu .dropdown-item {
  color: #fff;
  font-size: 16px;
  padding: 8px 22px;
  background: none;
}
#t4-header .t4-megamenu .dropdown-menu a:hover,
#t4-header .t4-megamenu .dropdown-menu .active > a { color: #77beea; background: rgba(255,255,255,.04); }

#t4-header .t4-megamenu .dropdown-menu .dropdown-menu-inner,
#t4-header .t4-megamenu .dropdown-menu .mega-dropdown-inner { background: var(--fk-moerk); }

/* Menupunktet "Bestil tid" (URL tel:, linkklasse fk-menu-bestil-link, linktitel = lille tekst) vises som knap – mål fra Sketch Version 4: 181 × 56, ingen kant */
#t4-header .t4-megamenu .navbar-nav > li:has(> a.fk-menu-bestil-link) { margin-left: 24px; display: flex; align-items: center; align-self: stretch; }
#t4-header .t4-megamenu .navbar-nav > li > a.fk-menu-bestil-link {
  display: inline-grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-content: center;
  align-items: center;
  column-gap: 12px;
  box-sizing: border-box;
  width: 181px;
  height: 56px;
  min-height: 0;
  padding: 0 11px 0 18px;
  border: 0;
  background: var(--fk-blaa);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0;
  line-height: 1.1;
  white-space: nowrap;
}
#t4-header .t4-megamenu .navbar-nav > li > a.fk-menu-bestil-link::before {
  content: attr(title);
  grid-column: 1; grid-row: 1;
  font-size: 12px; font-weight: 500; line-height: 1.2;
}
#t4-header .t4-megamenu .navbar-nav > li > a.fk-menu-bestil-link > span { grid-column: 1; grid-row: 2; display: block; }
#t4-header .t4-megamenu .navbar-nav > li > a.fk-menu-bestil-link .menu-item-title { padding: 0; font-size: 18px; font-weight: 800; }
#t4-header .t4-megamenu .navbar-nav > li > a.fk-menu-bestil-link::after {
  content: "\f095";
  grid-column: 2; grid-row: 1 / span 2;
  font-family: "Font Awesome 7 Pro";
  font-weight: 900;
  font-size: 24px;
  line-height: 1;
}
#t4-header .t4-megamenu .navbar-nav > li > a.fk-menu-bestil-link:hover { background: var(--fk-blaa-moerk); color: #fff; }

#t4-header .t4-header-r .navbar-toggler { display: none !important; }
#t4-header .t4-offcanvas-toggle { color: #fff; font-size: 22px; padding: 8px; border: 0; }
@media (min-width: 992px) {
  #t4-header .t4-offcanvas-toggle { display: none; }
}

/* Offcanvas (mobil) */
.t4-offcanvas { background: var(--fk-moerk); color: #fff; }
.t4-offcanvas a { color: #fff; }
.t4-offcanvas .t4-off-canvas-header { background: var(--fk-moerkere); }
.t4-offcanvas .t4-off-canvas-header .logo-img { max-width: 220px; height: auto; }
.t4-offcanvas .t4-off-canvas-body a,
.t4-offcanvas .t4-off-canvas-body .nav-link,
.t4-offcanvas .t4-off-canvas-body .nav-header { color: #fff !important; font-size: 18px; background: none !important; }
.t4-offcanvas .t4-off-canvas-body .active > a,
.t4-offcanvas .t4-off-canvas-body a:hover { color: #77beea !important; }
.t4-offcanvas .t4-off-canvas-body li,
.t4-offcanvas .t4-off-canvas-body .nav-item { border-color: rgba(255,255,255,.12) !important; }

/* ---------- Brødkrummer / sidebund ---------- */
#t4-breadcrumbs { background: #f4f4f4; font-size: 14px; }
#t4-breadcrumbs .breadcrumb { margin: 0; padding: 14px 0; background: none; }
.itemid-101 #t4-breadcrumbs, .item-101 #t4-breadcrumbs { display: none; }

/* ---------- Forsiden ---------- */
.item-101 #t4-main-body,
.itemid-101 #t4-main-body { padding: 0; }
.item-101 #t4-main-body > .t4-section-inner,
.item-101 #t4-main-body .container,
.item-101 #t4-main-body .t4-section-inner.container { max-width: none; padding: 0; }
.item-101 #t4-main-body .row { margin: 0; }
.item-101 #t4-main-body .t4-col { padding: 0; }
.item-101 .com-content-article,
.item-101 .item-page { margin: 0; }

.fk-forside { width: 100%; overflow: hidden; }
.fk-forside section { position: relative; }

/* Hero */
.fk-hero {
  min-height: 700px;
  display: flex;
  align-items: center;
  background: #fff;
}
.fk-hero__billede {
  position: absolute;
  overflow: hidden;
  inset: 0 0 0 28%;
}
.fk-hero__billede img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 30%;
}
.fk-hero__billede::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.92) 8%, rgba(255,255,255,.55) 32%, rgba(255,255,255,0) 58%);
}
.fk-hero .fk-container { position: relative; z-index: 1; }
.fk-hero__tekst { max-width: 560px; padding: 90px 0; }
.fk-hero__titel {
  font-size: clamp(52px, 6.2vw, 90px);
  line-height: 1.11;
  margin: 0 0 22px;
}
.fk-hero__intro {
  font-size: 20px;
  line-height: 32px;
  color: var(--fk-moerk);
  max-width: 539px;
  margin: 0 0 32px;
}

/* Fordele-bjælke */
.fk-fordele { background: var(--fk-moerk); color: #fff; }
.fk-fordele__liste {
  list-style: none;
  margin: 0;
  padding: 26px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.fk-fordele__liste li { display: flex; align-items: center; gap: 20px; }
.fk-fordele__tekst { font-size: 16px; font-weight: 700; line-height: 24px; }

/* Velkommen */
.fk-intro { padding: var(--fk-luft) 0 calc(var(--fk-luft) - 30px); }
.fk-to-kol {
  display: grid;
  grid-template-columns: 410px minmax(0, 639px);
  justify-content: space-between;
  gap: 60px;
}
.fk-intro .fk-brod { font-size: 18px; line-height: 29px; padding-top: 36px; }

/* Behandlinger (mørk sektion med blå kort) */
.fk-behandlinger { background: var(--fk-moerk); padding: 58px 0 80px; color: #fff; }
.fk-behandlinger .fk-overtitel,
.fk-behandlinger .fk-titel { color: #fff; }
.fk-behandlinger .fk-titel { margin-bottom: 54px; }
.fk-kort {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.fk-kort__item {
  position: relative;
  background: var(--fk-blaa);
  padding: 30px 30px 26px;
  min-height: 235px;
  transition: background-color .2s ease;
}
.fk-kort__item:hover { background: var(--fk-blaa-moerk); }
.fk-kort__item .fk-ikon { background: #344957; border: 0; margin-bottom: 18px; }
.fk-kort__titel {
  font-size: 30px;
  line-height: 1.5;
  color: #fff;
  margin: 0 0 6px;
}
.fk-kort__titel a { color: #fff; text-decoration: none; }
.fk-kort__titel a::after { content: ""; position: absolute; inset: 0; }
.fk-kort__item p { font-size: 16px; line-height: 26px; margin: 0; max-width: 323px; }

/* Team */
.fk-team { background: var(--fk-graa); padding: 77px 0; }
.fk-team .fk-to-kol { grid-template-columns: minmax(0, 579px) minmax(0, 575px); align-items: start; }
.fk-team__billede img { width: 100%; height: auto; aspect-ratio: 579 / 386; object-fit: cover; display: block; }
.fk-team .fk-brod { color: var(--fk-moerk); font-size: 18px; line-height: 29px; }
.fk-team .fk-brod p { margin-bottom: 18px; }
.fk-team .fk-link { margin-top: 6px; }

/* CTA */
.fk-cta { padding: 84px 0 96px; }
.fk-cta__indhold { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; }
.fk-cta .fk-titel { margin-bottom: 30px; }
.fk-cta p { color: var(--fk-moerk); font-size: 18px; line-height: 29px; max-width: 464px; margin: 0; }
.fk-cta .fk-bestil { margin-top: 13px; }

/* ---------- Undersider ---------- */
.fk-side { padding: 70px 0 90px; }
.fk-side__hoved { margin-bottom: 36px; }
.fk-side__titel { font-size: clamp(38px, 4.4vw, 56px); margin: 0; }
.fk-side__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 70px;
  align-items: start;
}
.fk-side__indhold { font-size: 18px; line-height: 29px; }
.fk-side__indhold::after { content: ""; display: table; clear: both; }
.fk-side__indhold h2 { font-size: 30px; margin: 40px 0 14px; }
.fk-side__indhold h3 { font-size: 24px; margin: 32px 0 12px; }
.fk-side__indhold p { margin: 0 0 22px; }
.fk-side__indhold ul, .fk-side__indhold ol { padding-left: 1.3em; margin: 0 0 22px; }
.fk-side__indhold li { margin-bottom: 8px; }
.fk-side__indhold img { max-width: 100%; height: auto; }
.fk-side__indhold figure { margin: 0 0 24px; }
.fk-side__indhold .billede-hoejre { float: right; width: 38%; max-width: 340px; margin: 6px 0 20px 36px; }
.fk-side__indhold .billede-bred { width: 100%; }
.fk-side__indhold .billedraekke,
.fk-side__indhold .produktgalleri {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  margin: 0 0 26px;
  clear: both;
}
.fk-side__indhold .billedraekke { grid-template-columns: repeat(2, minmax(0, 260px)); }
.fk-side__indhold .billedraekke figure,
.fk-side__indhold .produktgalleri figure { margin: 0; }
.fk-side__indhold .produktgalleri img { aspect-ratio: 1; object-fit: contain; background: #fff; border: 1px solid #eee; padding: 8px; }
.fk-side__indhold table { width: 100%; border-collapse: collapse; margin: 0 0 26px; font-size: 17px; }
.fk-side__indhold td { padding: 11px 0; border-bottom: 1px solid var(--fk-graa); vertical-align: top; }
.fk-side__indhold td:last-child { text-align: right; padding-left: 20px; white-space: nowrap; font-weight: 700; }
.fk-side__indhold .raad-liste li { margin-bottom: 16px; }
.fk-side__indhold .raad-liste li::marker { color: var(--fk-blaa); font-family: var(--fk-overskrift); font-weight: 500; }

.fk-sideboks {
  background: var(--fk-moerk);
  color: #fff;
  padding: 30px;
  position: sticky;
  top: 130px;
}
.fk-sideboks h2 { color: #fff; font-size: 26px; margin: 0 0 10px; }
.fk-sideboks p { font-size: 16px; line-height: 26px; margin: 0 0 20px; }
.fk-sideboks .fk-bestil { width: 100%; }
.fk-sideboks__links { list-style: none; margin: 26px 0 0; padding: 22px 0 0; border-top: 1px solid var(--fk-linje); }
.fk-sideboks__links li { margin: 0 0 6px; }
.fk-sideboks__links a { color: #fff; font-size: 16px; text-decoration: none; }
.fk-sideboks__links a:hover, .fk-sideboks__links .aktiv a { color: #77beea; }

/* Kategorioversigt (kort) */
.fk-kategori__intro { font-size: 20px; line-height: 32px; max-width: 760px; margin: 0 0 40px; color: var(--fk-moerk); }
.fk-oversigt {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.fk-oversigt__item {
  position: relative;
  background: #f4f4f4;
  padding: 30px;
  border-top: 3px solid var(--fk-blaa);
  transition: background-color .2s ease;
  display: flex;
  flex-direction: column;
}
.fk-oversigt__item:hover { background: var(--fk-graa); }
.fk-oversigt__titel { font-size: 26px; margin: 0 0 10px; }
.fk-oversigt__titel a { color: var(--fk-blaa); text-decoration: none; }
.fk-oversigt__titel a::after { content: ""; position: absolute; inset: 0; }
.fk-oversigt__item p { font-size: 16px; line-height: 26px; color: var(--fk-moerk); margin: 0 0 18px; flex: 1; }
.fk-oversigt__mere { font-weight: 800; font-size: 16px; color: var(--fk-blaa); display: inline-flex; gap: 10px; align-items: center; }
.fk-undermenu { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 40px; padding: 0; list-style: none; }
.fk-undermenu a {
  display: inline-block; padding: 8px 16px; border: 1px solid var(--fk-blaa);
  color: var(--fk-blaa); text-decoration: none; font-size: 16px; font-weight: 600;
}
.fk-undermenu a:hover { background: var(--fk-blaa); color: #fff; }

/* Skjul Joomla-standardinfo (forfatter, dato m.m.) hvis den alligevel vises */
.article-info, .article-info-term, .page-header + .article-info { display: none; }

/* ---------- Footer ---------- */
#t4-footnav, #t4-footer { background: var(--fk-moerk); color: #fff; }
#t4-footnav { padding: 80px 0 40px; }
#t4-footnav .t4-section-inner, #t4-footer .t4-section-inner { max-width: calc(var(--fk-bredde) + 48px); padding: 0 24px; }
#t4-footnav .row { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 40px; margin: 0; }
#t4-footnav .row > div { width: auto; max-width: none; padding: 0; flex: none; }
#t4-footnav .module-title, #t4-footnav h3 {
  font-family: var(--fk-overskrift);
  font-size: 22px;
  font-weight: 500;
  color: #fff;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  text-transform: none;
}
#t4-footnav .module-title::after, #t4-footnav .module-title span::after { display: none; }
#t4-footnav .t4-module, #t4-footnav .moduletable { margin: 0; padding: 0; background: none; border: 0; }
#t4-footnav p { font-size: 16px; line-height: 30px; margin: 0 0 6px; color: #fff; }
#t4-footnav a { color: #fff; text-decoration: none; }
#t4-footnav a:hover { color: #77beea; }
#t4-footnav img.fk-footer-logo, #t4-footnav p img { width: 242px; height: auto; margin: 0 0 16px; display: block; }
#t4-footnav .fk-findvej { font-size: 14px; display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; }
#t4-footer { padding: 0; }
#t4-footer .t4-section-inner > .row,
#t4-footer .footer-inner,
#t4-footer .t4-module { border: 0; }
#t4-footer .t4-section-inner {
  border-top: 1px solid var(--fk-linje);
  padding-top: 10px;
  padding-bottom: 10px;
}
#t4-footer, #t4-footer p, #t4-footer a { color: var(--fk-daempet); font-size: 13px; line-height: 29px; }
#t4-footer .fk-bund { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
#t4-footer .fk-bund p { margin: 0; }
/* Sidebund-links: T4 giver footerlinks en 1px border-bottom ved hover – linket flytter sig og hover blinker. Ingen kant, kun farve. */
#t4-footer a:hover,
#t4-footer a:focus,
#t4-footer a:active { border-bottom: 0; background: none; color: #77beea; }
#t4-footer .container, #t4-footer .t4-section-inner.container { max-width: calc(var(--fk-bredde) + 48px); }

/* ---------- Mobil / tablet ---------- */
@media (max-width: 1199.98px) {
  #t4-header .logo-img { width: 340px; }
  #t4-header .t4-megamenu .navbar-nav > li > a { padding: 10px 12px; }
  .fk-to-kol { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .fk-team .fk-to-kol { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 991.98px) {
  #t4-header .header-wrap { min-height: 76px; }
  #t4-header .logo-img { width: 280px; }
  .fk-hero { min-height: 0; flex-direction: column; align-items: stretch; }
  .fk-hero__billede { position: relative; inset: auto; height: 300px; order: -1; }
  .fk-hero__billede::before { background: linear-gradient(0deg, #fff 0%, rgba(255,255,255,0) 45%); }
  .fk-hero__tekst { padding: 10px 0 60px; }
  .fk-fordele__liste { grid-template-columns: repeat(2, 1fr); gap: 22px 20px; }
  .fk-to-kol, .fk-team .fk-to-kol { grid-template-columns: 1fr; gap: 30px; }
  .fk-intro .fk-brod { padding-top: 0; }
  .fk-kort, .fk-oversigt { grid-template-columns: 1fr 1fr; }
  .fk-cta__indhold { flex-direction: column; }
  .fk-side__grid { grid-template-columns: 1fr; gap: 50px; }
  .fk-sideboks { position: static; }
  #t4-footnav .row { grid-template-columns: 1fr 1fr; }
  #t4-footnav .row > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 575.98px) {
  body { font-size: 17px; }
  .fk-side__indhold td:last-child { white-space: normal; min-width: 90px; }
  .fk-side__indhold table { font-size: 16px; }
  .fk-side__indhold h2 { font-size: 26px; }
  #t4-header .logo-img { width: 220px; }
  .fk-hero__billede { height: 230px; }
  .fk-hero__intro { font-size: 18px; line-height: 29px; }
  .fk-knap { font-size: 16px; padding: 0 18px; }
  .fk-fordele__liste { grid-template-columns: 1fr; }
  .fk-kort, .fk-oversigt { grid-template-columns: 1fr; }
  .fk-kort__titel { font-size: 26px; }
  .fk-side { padding: 44px 0 60px; }
  .fk-side__indhold .billede-hoejre { float: none; width: 100%; max-width: none; margin: 0 0 22px; }
  #t4-footnav .row { grid-template-columns: 1fr; }
  #t4-footer .fk-bund { flex-direction: column; gap: 0; }
}

/* Header: ingen streg mod indholdet */
#t4-header { border-bottom: 0; }

/* "by Thrane.nu" nederst til venstre */
.fk-thrane { position: fixed; left: 4px; bottom: 4px; z-index: 1000; margin: 0; line-height: 0; }
.fk-thrane a { display: block; line-height: 0; }
.fk-thrane img { display: block; width: 60px; height: 7px; }

/* Sidebund: © · Cookieindstillinger (menuen Sidebund-links) · Vi passer på dine fødder */
#t4-footer .t4-col.footer { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; }
#t4-footer .custom:has(.fk-bund), #t4-footer .custom:has(.fk-thrane), #t4-footer .fk-bund { display: contents; }
#t4-footer .fk-bund p:first-child { order: 1; }
#t4-footer .navbar { order: 2; padding: 0; }
#t4-footer .fk-bund p:last-child { order: 3; margin-left: auto; }
#t4-footer .fk-bundmenu__liste { display: flex; flex-direction: row; flex-wrap: wrap; gap: 0 22px; margin: 0; padding: 0; }
#t4-footer .fk-bundmenu__liste .nav-link { padding: 0; font-size: 13px; font-weight: 400; text-transform: none; letter-spacing: normal; color: #838383; text-decoration: none; }
#t4-footer .fk-bundmenu__liste .nav-link:hover { color: #fff; }
@media (max-width: 767.98px) {
  #t4-footer .t4-col.footer { flex-direction: column; align-items: flex-start; }
  #t4-footer .fk-bund p:last-child { margin-left: 0; }
}

/* Position side-bund (under indhold + sideboks) – fx MapKit på Kontakt */
.fk-side__bund { margin-top: 64px; }
@media (max-width: 767.98px) { .fk-side__bund { margin-top: 40px; } }

/* MapKit i sitets stil: kantede bokse og knapper (fokusringen ved klik er rettet i MapKit 1.7.1) */
.mapkit.mapkit .mapkit-card {
  border: 0;
  border-top: 3px solid var(--fk-blaa);
  border-radius: 0;
  background: #f4f4f4;
  box-shadow: none;
  padding: 26px 26px 28px;
}
.mapkit.mapkit .mapkit-card::before,
.mapkit.mapkit .mapkit-card::after { display: none; }
.mapkit.mapkit .mapkit-btn,
.mapkit.mapkit a.mapkit-btn,
.mapkit.mapkit a.mapkit-btn:hover {
  border-radius: 0;
  font-weight: 800;
}
.mapkit.mapkit .mapkit-btn:not(.mapkit-btn--ghost):hover { background: var(--fk-blaa-moerk); border-color: var(--fk-blaa-moerk); }
.mapkit .leaflet-bar,
.mapkit .leaflet-bar a,
.mapkit .leaflet-bar button { border-radius: 0 !important; }
.mapkit .leaflet-bar { box-shadow: none; border: 1px solid var(--fk-graa); }

/* Mobilmenu: SideKit erstatter T4's off-canvas – skjul T4's egne menuknapper */
#t4-header .t4-offcanvas-toggle,
#t4-header .navbar-toggler { display: none !important; }
/* SideKit-panelet: kantet lukkeknap (fokusring og SVG-logo er rettet i SideKit 1.13.2) */
.sk-panel .sk-close { border-radius: 0; }
.sk-panel .sk-close:hover { background: var(--fk-blaa); color: #fff; }

/* GalleryKit – produktgallerier på undersider: tynd grå kant om felterne (hele billedet, hvid baggrund og luft er sat i galleriet: Vis hele billedet) */
.fk-side__indhold .gk { margin: 8px 0 28px; }
.fk-side__indhold .gk--grid .gk-media { border: 1px solid var(--fk-graa); border-radius: 0; }
/* MIDLERTIDIG – fjernes når GalleryKit er rettet: ved "Vis hele billedet" får billedet sin naturlige højde (height: 100% virker ikke i et felt med aspect-ratio) og beskæres */
.fk-side__indhold .gk--fit-contain .gk-media { padding: 0; }
.fk-side__indhold .gk--fit-contain .gk-media img { position: absolute; inset: 0; width: 100%; height: 100%; padding: var(--gk-fit-pad, 0); box-sizing: border-box; }

/* Ringeknap i mobilheaderen (mod_custom layout ringknap, position header-r) – kun under lg, til venstre for SideKit-burgeren */
.fk-ringknap { display: none; }
@media (max-width: 991.98px) {
  .fk-ringknap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-right: 30px; /* plads til SideKit-knappen (fast øverst til højre) */
    background: var(--fk-blaa);
    color: #fff !important;
    font-size: 18px;
    text-decoration: none !important;
    transition: background-color .2s ease;
  }
  .fk-ringknap:hover { background: var(--fk-blaa-moerk); }
}
