/*
Theme Name: YOOtheme Gnisten El-Teknik ApS
Theme URI: https://gnisten-el-teknik.com
Description: Child theme til YOOtheme Pro. Alle tilpasninger af CSS, funktioner og skabeloner lægges her, så de overlever en opdatering af YOOtheme Pro.
Author: IT-NØRDEN
Author URI: https://arslan.dk
Template: yootheme
Version: 1.0.7
Text Domain: yootheme-child
*/

/* ==========================================================================
   Egne tilpasninger skrives herunder.
   Skriv IKKE i YOOtheme Pro-temaets egen style.css - den bliver overskrevet
   ved næste opdatering.
   ========================================================================== */

/* Eksempel: telefonnummeret i headeren
.tm-header .uk-button-primary {
    font-weight: 700;
}
*/

/* ==========================================================================
   Fuldbredde-sektioner i sidens indhold
   YOOtheme laegger indholdet i en 1200px container. Sektionerne brydes ud,
   saa farvebaand og hero naar helt ud til kanten, mens teksten holdes centreret.
   ========================================================================== */
.uk-article .uk-section {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: calc(50vw - 600px);
    padding-right: calc(50vw - 600px);
}
@media (max-width: 1279px) {
    .uk-article .uk-section { padding-left: 40px; padding-right: 40px; }
}
@media (max-width: 639px) {
    .uk-article .uk-section { padding-left: 20px; padding-right: 20px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.uk-article .itn-hero {
    margin-top: -70px;
    padding-left: 0;
    padding-right: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 78vh;
    display: flex;
    align-items: center;
}
.itn-hero-overlay {
    background: linear-gradient(90deg, rgba(14,18,24,.92) 0%, rgba(14,18,24,.78) 45%, rgba(14,18,24,.55) 100%);
}
.itn-hero h1 {
    margin-bottom: .2em;
    line-height: 1.1;
}
.itn-hero .uk-text-lead {
    max-width: 34em;
}
.itn-hero .itn-trust {
    border-top: 1px solid rgba(255,255,255,.22);
    padding-top: 22px;
}
.itn-hero .itn-trust .el-item {
    font-size: .8125rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    opacity: .85;
}
@media (max-width: 959px) {
    .uk-article .itn-hero { min-height: 0; margin-top: -40px; }
    .itn-hero-overlay { background: rgba(20,26,33,.8); }
}

/* ==========================================================================
   Baggrundsvideo i hero
   ========================================================================== */
.itn-hero-video {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.itn-hero-video { filter: brightness(.72) contrast(1.02); }
.itn-hero-video iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 56.25vw;
    min-width: 177.78vh;
    min-height: 100%;
    border: 0;
}
.itn-hero-video + .itn-hero-overlay { z-index: 1; }
@media (max-width: 959px) {
    .itn-hero-video { display: none; }
}

/* Kraftigere overlay naar der koerer video bag ved */
.itn-hero:has(.itn-hero-video) .itn-hero-overlay {
    background: linear-gradient(90deg, rgba(10,14,20,.88) 0%, rgba(10,14,20,.72) 28%, rgba(10,14,20,.3) 55%, rgba(10,14,20,0) 78%);
}
.itn-hero h1, .itn-hero .uk-text-lead {
    text-shadow: 0 1px 18px rgba(0,0,0,.55);
}

/* Sikr fuld kontrast paa hero-tekst */
.itn-hero h1 { color: #fff; }
.itn-hero .uk-text-lead { color: rgba(255,255,255,.92); }
.itn-hero .itn-trust .el-item { color: rgba(255,255,255,.8); }

/* Tekstkontrast i hero */
.uk-article .itn-hero h1 { color: #fff !important; }
.uk-article .itn-hero .uk-text-lead { color: rgba(255,255,255,.95) !important; }
.uk-article .itn-hero .itn-trust .el-item { color: rgba(255,255,255,.82) !important; }


/* --- Rettelser 10.09.2026 --- */

/* Hero: indholdet skal ligge OVER den moerke overlay-gradient.
   Uden dette males overlayet hen over overskrift og knapper. */
.itn-hero .uk-container { position: relative; z-index: 2; }
.itn-hero-overlay { z-index: 1; }

/* Logo: begraens stoerrelsen, ellers klemmes navigationen sammen */
.uk-logo img,
.uk-navbar-item .uk-logo img { max-width: 260px; width: 100%; height: auto; }
@media (max-width: 1200px) { .uk-logo img { max-width: 210px; } }
@media (max-width: 640px)  { .uk-logo img { max-width: 170px; } }

/* Navigation: undgaa at menupunkter braekker over to linjer */
.uk-navbar-nav > li > a { white-space: nowrap; }


/* --- Builder-layouts (YOOtheme) --- */
.itn-hero { position: relative; }
.itn-hero::before { content:''; position:absolute; top:0; right:0; bottom:0; left:0; z-index:1;
  background: linear-gradient(90deg, rgba(10,14,20,.88) 0%, rgba(10,14,20,.72) 28%, rgba(10,14,20,.3) 55%, rgba(10,14,20,0) 78%); }
.itn-hero > * { position: relative; z-index: 2; }

/* Kort i builder-grid */
.itn-cards .el-item { background:#fff; border:1px solid rgba(0,0,0,.08); padding:30px 30px 24px; }
.itn-cards .el-title { margin-top:0; }

/* --- Brandfarver, hentet fra logoet --- */
:root {
  --itn-blaa: #00608F;
  --itn-blaa-moerk: #004E75;
  --itn-orange: #F97A00;
  --itn-orange-moerk: #C25F00;
}

/* Primaer CTA: orange med moerk tekst. Holder kontrasten baade paa
   hvid baggrund og paa moerke sektioner og hero. */
.uk-button-primary {
  background-color: var(--itn-orange) !important;
  color: #1a1a1c !important;
  border-color: transparent !important;
}
.uk-button-primary:hover,
.uk-button-primary:focus {
  background-color: var(--itn-orange-moerk) !important;
  color: #fff !important;
}

/* Sekundaer knap paa lys baggrund: blaa kant */
.uk-section-default .uk-button-default,
.uk-section-muted .uk-button-default {
  background: transparent !important;
  color: var(--itn-blaa) !important;
  border: 1px solid var(--itn-blaa) !important;
}
.uk-section-default .uk-button-default:hover,
.uk-section-muted .uk-button-default:hover {
  background: var(--itn-blaa) !important;
  color: #fff !important;
}

/* Sekundaer knap paa moerk baggrund og i hero: hvid kant, hvid tekst */
.uk-section-primary .uk-button-default,
.uk-section-secondary .uk-button-default,
.itn-hero .uk-button-default {
  background: transparent !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.75) !important;
}
.uk-section-primary .uk-button-default:hover,
.uk-section-secondary .uk-button-default:hover,
.itn-hero .uk-button-default:hover {
  background: #fff !important;
  color: #1a1a1c !important;
}

/* Links i broedtekst: blaa, orange ved hover */
.uk-section:not(.uk-section-primary) .el-content a:not(.uk-button),
.uk-section:not(.uk-section-primary) .uk-panel a:not(.uk-button) {
  color: var(--itn-blaa);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.uk-section:not(.uk-section-primary) .el-content a:not(.uk-button):hover,
.uk-section:not(.uk-section-primary) .uk-panel a:not(.uk-button):hover {
  color: var(--itn-orange-moerk);
}

/* Navigation: orange streg under den aktive side */
.uk-navbar-nav > li > a:hover { color: var(--itn-blaa); }
.uk-navbar-nav > li.uk-active > a { color: var(--itn-blaa); }
.uk-navbar-nav > li.uk-active > a::after {
  content: '';
  display: block;
  height: 2px;
  background: var(--itn-orange);
  margin-top: 4px;
}

/* Kort: orange kant ved hover */
.itn-cards .el-item { transition: border-color .2s ease, box-shadow .2s ease; }
.itn-cards .el-item:hover { border-color: var(--itn-orange); box-shadow: 0 6px 20px rgba(0,0,0,.06); }

/* Hero paa mobil: den vandrette gradient daekker ikke, naar billedet
   fylder hele bredden - brug en lodret, moerkere overlay i stedet. */
@media (max-width: 959px) {
  .itn-hero::before {
    background: linear-gradient(180deg, rgba(10,14,20,.90) 0%, rgba(10,14,20,.80) 55%, rgba(10,14,20,.92) 100%);
  }
  .itn-hero { background-image: linear-gradient(180deg, rgba(10,14,20,.86) 0%, rgba(10,14,20,.80) 55%, rgba(10,14,20,.90) 100%) !important; }
  .itn-hero .uk-text-lead { font-size: 1rem; }
}

/* Hero-overlay paa mobil laegges paa selve hero-boksen, saa den
   ligger sikkert oven paa sektionens baggrundsbillede. */
@media (max-width: 959px) {
  .itn-hero {
    background-image: linear-gradient(180deg, rgba(10,14,20,.86) 0%, rgba(10,14,20,.80) 55%, rgba(10,14,20,.90) 100%);
  }
}

/* --- Moerk navbar --- */
.uk-navbar-container {
  background-color: #303033 !important;
}
/* Negativ udgave af logoet, saa El-Teknik og undertitlen kan laeses paa moerk bund */
.uk-logo img {
  content: url('/wp-content/uploads/2026/09/Gnisten-El-Teknik_logo-moerk-bund.png');
}
.uk-navbar-nav > li > a,
.uk-navbar-toggle,
.uk-navbar-item {
  color: rgba(255,255,255,.75) !important;
}
.uk-navbar-nav > li > a:hover,
.uk-navbar-nav > li.uk-active > a,
.uk-navbar-toggle:hover {
  color: #fff !important;
}
.uk-navbar-nav > li.uk-active > a::after {
  background: var(--itn-orange);
}
.uk-navbar-dropdown {
  background-color: #303033 !important;
}
.uk-navbar-dropdown-nav > li > a { color: rgba(255,255,255,.75) !important; }
.uk-navbar-dropdown-nav > li > a:hover,
.uk-navbar-dropdown-nav > li.uk-active > a { color: #fff !important; }

/* Navbar: lidt liv - toning og orange kant forneden */
.uk-navbar-container {
  background-image: linear-gradient(180deg, #35353A 0%, #2A2A2D 100%) !important;
  border-bottom: 3px solid var(--itn-orange);
}

/* --- Billedstoerrelser --- */
/* Fotos fyldte over 800 px i hoejden og dominerede siderne.
   Nu beskaeres de til et baand. Logoer og maerker er lavere
   end graensen og roeres ikke. */
.uk-section .el-image {
  max-height: 420px !important;
  width: 100%;
  object-fit: cover;
}
@media (max-width: 959px) {
  .uk-section .el-image { max-height: 260px !important; }
}

/* --- Egen footer --- */
/* YOOthemes standardfooter (Fuse-kreditering) skjules */
.tm-page > footer { display: none !important; }

.itn-footer { background: #232427; color: rgba(255,255,255,.72); font-size: .95rem; }
.itn-footer .uk-container { padding-top: 60px; padding-bottom: 50px; }
.itn-footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 50px; }
.itn-footer h3 { color: #fff; font-size: 1rem; letter-spacing: 1.5px; text-transform: uppercase; margin: 0 0 18px; }
.itn-footer p { margin: 0 0 14px; line-height: 1.7; }
.itn-footer a { color: rgba(255,255,255,.72); text-decoration: none; }
.itn-footer a:hover { color: var(--itn-orange); }
.itn-footer-tid { font-size: .88rem; color: rgba(255,255,255,.55); }
.itn-footer-link { border-bottom: 1px solid var(--itn-orange); padding-bottom: 2px; }

.itn-footer-liste { list-style: none; margin: 0; padding: 0; }
.itn-footer-liste li { margin-bottom: 9px; }

.itn-footer-ikoner { display: flex; gap: 10px; margin-top: 18px; }
.itn-footer-ikoner a {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--itn-orange); color: #1a1a1c;
}
.itn-footer-ikoner a:hover { background: var(--itn-orange-moerk); color: #fff; }
.itn-footer-ikoner .itn-fb { background: #1877F2; color: #fff; }
.itn-footer-ikoner .itn-fb:hover { background: #0f5fd0; color: #fff; }

.itn-footer-maerker { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.itn-footer-maerker div { display: flex; flex-direction: column; gap: 3px; line-height: 1.5; }
.itn-footer-maerker strong { color: #fff; font-weight: 600; }
.itn-footer-maerker span { font-size: .88rem; color: rgba(255,255,255,.6); }
.itn-footer-maerker .itn-tekniq { background: #fff; padding: 6px; border-radius: 4px; }

.itn-footer-bund { background: #1a1a1c; padding: 16px 0; font-size: .85rem; color: rgba(255,255,255,.5); }
.itn-footer-bund .uk-container { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

@media (max-width: 959px) {
  .itn-footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .itn-footer .uk-container { padding-top: 44px; padding-bottom: 36px; }
}
@media (max-width: 639px) {
  .itn-footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .itn-footer-bund .uk-container { flex-direction: column; gap: 8px; }
}
