/* ==========================================================================
   Sten og Gerts - template.css
   Samler den gamle skabelons content.css, default.css, extras.css og de
   responsive filer i een fil. Farver: roed #F2452E, moerk #332E2B.
   ========================================================================== */

/* ---------- Skrifttype (hostet paa sitet, ingen Google-opkald) ---------- */
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 100; font-display: swap; src: url('../fonts/roboto-latin-100-normal.woff2') format('woff2'); }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/roboto-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/roboto-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/roboto-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/roboto-latin-700-normal.woff2') format('woff2'); }

:root {
  --sg-red: #F2452E;
  --sg-dark: #332E2B;
  --sg-menu-text: #c4c4c4;
}

/* ---------- Basis ---------- */
html, body { margin: 0; padding: 0; }
body.sg-body {
  background: #fff;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 80%;
  line-height: 23px;
  color: var(--sg-dark);
  overflow-x: hidden;
  position: relative;
}
.sg-body *, .sg-body *::before, .sg-body *::after { box-sizing: border-box; }

h1, span.h1span {
  display: block;
  font-size: 310%;
  padding: 0 0 15px;
  margin: 0 0 15px 0;
  color: var(--sg-red);
  font-weight: 200;
  line-height: 1.25;
  border-bottom: 1px solid var(--sg-red);
}
h2, span.h2span { display: block; font-size: 150%; padding: 0; margin: 0; color: var(--sg-red); font-weight: 400; }
h3, span.h3span { display: block; font-size: 140%; padding: 0; margin: 0; color: var(--sg-dark); font-weight: 400; }

a { outline: none; }
a, a:visited, a:active { color: var(--sg-red); text-decoration: none; font-weight: bold; }
a:hover { color: var(--sg-red); }
a:focus-visible { outline: 2px solid var(--sg-red); outline-offset: 2px; }

img { border: none; outline: 0; max-width: 100%; height: auto; }
hr { display: block; border: none; border-top: 1px solid var(--sg-red); }

p { margin: 0; padding: 0; }
table, table tr, table tr td { border: none; padding: 0; margin: 0; }
.com-content-article li, .item-page li { list-style-image: url('../../../../../images/icons/other/bullet.gif'); }

/* Tabeller i artikler */
.striber tr:first-child td { background-color: var(--sg-red); color: #fff; font-size: 120%; font-weight: 600; border: none; }
.striber { border-collapse: collapse; border: 1px solid #dadada; }
.striber tr td { padding: 5px; }
.striber tr:nth-child(odd) { background-color: #eee; }
.striber tr:nth-child(even) { background-color: #fff; }
.striber2 { border-collapse: collapse; }
.striber2 tr td { padding: 5px 0; border-bottom: 1px solid #ddd; }
.divPadding { padding: 12px; }
.tableStyleBox { background: #f4f4f4; border: 1px solid #dadada; }
.nonResponsive tr td { float: none !important; display: table-cell !important; }

/* Hover-effekter (bruges i artikler) */
.grow, .shrink, .float, .sink { transition: transform .3s; transform: translateZ(0); }
.grow:hover, .grow:focus { transform: scale(1.1); }
.shrink:hover, .shrink:focus { transform: scale(.9); }
.float:hover, .float:focus { transform: translateY(-5px); }
.sink:hover, .sink:focus { transform: translateY(5px); }

a.readmore-link { background-color: var(--sg-red); color: #fff; padding: 5px 8px; text-decoration: none; }
a.readmore-link:hover { background-color: var(--sg-dark); }

/* Foregaaende/naeste-artikel bruges ikke */
.pagenavigation, .pager { display: none; }

/* Skjul artiklens egen titel/metadata - sitet bruger overskrifter i teksten */
.com-content-article .page-header,
.com-content-article .article-info,
.com-content-article__header { display: none; }

/* ---------- Topbjaelke ---------- */
.sg-topbar {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 90px;
  background: var(--sg-dark);
  box-shadow: 0 4px 4px rgba(0, 0, 0, .4);
  z-index: 1;
}

/* ---------- Side-wrapper (1600 px inkl. 20 px padding) ---------- */
.sg-page {
  position: relative;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header: logo + menu ---------- */
.sg-header { position: relative; height: 0; z-index: 5; }
.sg-logo { position: absolute; top: 21px; left: -20px; line-height: 0; }
.sg-logo img { display: block; max-width: 100%; height: auto; }
.sg-logo p { margin: 0; }

.sg-menu { position: absolute; top: 0; right: 0; }
.sg-menu-toggle { display: none; }
.sg-menu ul { list-style: none; margin: 0; padding: 0; }
.sg-menu .mod-menu, .sg-menu > .sg-menu-list > ul { display: flex; align-items: flex-start; }
.sg-menu li { position: relative; margin: 0; padding: 0; list-style: none; }
.sg-menu li > a,
.sg-menu li > span {
  display: block;
  padding: 2px 14px;
  font-size: 18px;
  line-height: 23px;
  font-weight: 400;
  color: var(--sg-menu-text);
  background: var(--sg-dark);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.sg-menu li > a:hover, .sg-menu li > a:focus,
.sg-menu li.current > a, .sg-menu li.active > a { color: #fff; }

/* Pil paa menupunkter med undermenu */
.sg-menu li.parent > a::after, .sg-menu li.deeper > a::after {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  margin-left: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
}

/* Joomlas ekstra knap til undermenu skjules paa skrivebord (hover/fokus aabner menuen) */
.sg-menu .mod-menu__toggle-sub { display: none; }

/* Undermenu (dropdown) */
.sg-menu li > ul {
  display: none;
  position: absolute;
  left: 0; top: 100%;
  min-width: 100%;
  background: var(--sg-dark);
  box-shadow: 0 4px 6px rgba(0, 0, 0, .35);
  z-index: 20;
}
.sg-menu li:hover > ul, .sg-menu li:focus-within > ul { display: block; }
.sg-menu li > ul a, .sg-menu li > ul span {
  font-size: 15px;
  padding: 6px 14px;
  border-bottom: 0;
}
.sg-menu li > ul li + li { border-top: 1px solid rgba(255, 255, 255, .08); }

/* ---------- Hero / slider ---------- */
.sg-hero {
  position: relative;
  height: 590px;
  background: var(--sg-dark);
  overflow: hidden;
  z-index: 0;
}
.sg-slider { position: absolute; inset: 0; }
.sg-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 0s linear 1s;
}
.sg-slide.is-active { opacity: 1; visibility: visible; transition: opacity 1s ease; }
.sg-layers {
  position: absolute;
  top: -10px; left: 50%;
  width: 940px; height: 600px;
  margin-left: -470px;
  transform-origin: 50% 0;
}
.sg-l { position: absolute; display: block; white-space: nowrap; margin: 0; }
.sg-h { color: #fff; font: bold 58px/56px Arial, Helvetica, sans-serif; text-shadow: 0 0 10px rgba(0, 0, 0, .35); }
.sg-s { color: #fff; font: normal 40px/44px Arial, Helvetica, sans-serif; text-shadow: 0 0 10px rgba(0, 0, 0, .35); }
.sg-s2 { color: #fff; font: normal 32px/40px Arial, Helvetica, sans-serif; text-shadow: 0 0 10px rgba(0, 0, 0, .35); }

.sliderbutton, a.sliderbutton, a.sliderbutton:visited {
  border: 2px solid #fff;
  color: #fff;
  display: inline-block;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.4;
  padding: 15px;
  text-align: center;
  text-decoration: none;
  transition: background .2s ease-out, color .2s ease-out;
  background: var(--sg-red);
}
.sliderbutton:hover, a.sliderbutton:hover { background: #fff; color: var(--sg-red); }

/* ---------- Indhold ---------- */
.sg-main { padding: 32px 0 0; min-height: 200px; }
.sg-body:not(.sg-has-hero) .sg-main { padding-top: 120px; }
.sg-main > :first-child { margin-top: 0; }
.com-content-article { position: relative; }
.com-content-article table { max-width: 100%; }
.sg-main .com-content-article::after { content: ""; display: block; height: 46px; }

/* Joomla-systembeskeder */
.sg-main joomla-alert, .sg-main .alert { margin-bottom: 16px; }

/* ---------- Bund ---------- */
.sg-footer { margin: 20px 0; }
.sg-footer .moduletable, .sg-footer .mod-custom, .sg-footer .custom {
  background-color: var(--sg-red);
  padding: 15px;
  color: #fff;
  text-align: center;
  font-size: 105%;
}
.sg-footer a { color: var(--sg-dark); text-decoration: none; }
.sg-footer p { margin: 0; }

/* ---------- Lightbox ---------- */
.sg-lb {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0, 0, 0, .75);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.sg-lb img { max-width: 90%; max-height: 90%; background: #fff; padding: 10px; }
.sg-lb-close {
  position: absolute; top: 14px; right: 18px;
  background: none; border: 0; color: #fff; font-size: 38px; line-height: 1; cursor: pointer;
}

/* ---------- Cookie-besked ---------- */
.sg-cookie {
  position: fixed;
  right: 0; top: 12%;
  width: 235px;
  background: rgba(0, 0, 0, .92);
  color: #fff;
  border-radius: 5px 0 0 5px;
  z-index: 9999;
  font-size: 12px;
  line-height: 16px;
}
.sg-cookie[hidden] { display: none; }
.sg-cookie a, .sg-cookie a:visited { color: #fff; text-decoration: underline; }
.sg-cookie-head { padding: 14px 8px 4px; font-size: 16px; line-height: 36px; display: flex; align-items: center; gap: 10px; }
.sg-cookie-dot {
  width: 24px; height: 24px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff 0 15%, transparent 16%), radial-gradient(circle at 65% 60%, #000 0 8%, transparent 9%), #fff;
  display: inline-block; flex: none;
}
.sg-cookie-text { padding: 5px 8px 10px; }
.sg-cookie-text p { margin: 14px 0 0; }
.sg-cookie-ok {
  display: block; width: 100%; margin-top: 14px; padding: 5px;
  background: #fff; color: #000; border: 0; border-radius: 2px;
  font: inherit; text-align: center; cursor: pointer;
}
.sg-cookie-ok:hover { background: #aaa; }

/* ---------- 1280-1599 px ---------- */
@media (max-width: 1599px) {
  .sg-page { max-width: 1366px; }
}
@media (max-width: 1365px) {
  .sg-page { max-width: 1280px; }
}

/* ---------- Under 1280 px ---------- */
@media (max-width: 1279px) {
  .sg-hero { height: 480px; }
}

/* ---------- 768-979 px ---------- */
@media (max-width: 979px) {
  .com-content-article table { max-width: 100%; width: 100% !important; height: auto !important; table-layout: fixed; }
  .com-content-article td { overflow-wrap: anywhere; }
  .sg-menu li > a, .sg-menu li > span { font-size: 14px; padding: 2px 9px; line-height: 21px; }
  .sg-hero { height: 400px; }
}

/* ---------- Under 768 px (mobil) ---------- */
@media (max-width: 767px) {
  .sg-topbar { height: 56px; }
  .sg-hero { display: none; }
  .sg-logo { top: 8px; left: 0; }
  .sg-logo img { max-height: 44px; width: auto; }
  .sg-menu { right: 0; top: 0; width: 100%; }
  .sg-menu-toggle {
    display: block;
    position: absolute; right: 0; top: 8px; z-index: 30;
    background: var(--sg-red); color: #fff;
    border: 0; padding: 9px 18px; font: inherit; font-size: 16px; cursor: pointer;
  }
  .sg-menu-list { display: none; position: absolute; top: 56px; left: -20px; right: -20px; background: #292929; z-index: 25; }
  .sg-menu.is-open .sg-menu-list { display: block; }
  .sg-menu .mod-menu, .sg-menu > .sg-menu-list > ul { display: block; }
  .sg-menu li > a, .sg-menu li > span { font-size: 17px; padding: 11px 20px; background: #292929; border-top: 1px solid rgba(255,255,255,.12); }
  .sg-menu li > ul { display: block; position: static; box-shadow: none; background: #292929; }
  .sg-menu li > ul a { padding-left: 36px; font-size: 15px; }
  .sg-menu li.parent > a::after, .sg-menu li.deeper > a::after { display: none; }

  .sg-main { padding-top: 80px; }
  h1, span.h1span { font-size: 210%; }

  /* Tabeller i artikler staar under hinanden */
  .com-content-article table, .com-content-article table tbody, .com-content-article table tr, .com-content-article table td {
    display: block; width: 100% !important;
  }
  .com-content-article table.nonResponsive, .com-content-article table.nonResponsive tbody { display: table; }
  .com-content-article table.nonResponsive tr { display: table-row; }
  .com-content-article table.nonResponsive td { display: table-cell; width: auto !important; }
  iframe[src^="https://www.google.com/maps/"] { max-height: 200px; }

  .sg-cookie { top: 0; width: 100%; border-radius: 0; max-height: 80vh; overflow: auto; }
}
