/*
 * webaway6 - Joomla 6 skabelon
 * Genskaber det visuelle udtryk fra det oprindelige "webaway"-tema (2011):
 * lys grå baggrund, "Web Away"-header med logo, blå accentfarve (#5381ac),
 * quicknav-bjælke med Kundecenter-link, samme grundstruktur - men responsivt.
 */

@import url('https://fonts.googleapis.com/css2?family=Titillium+Web:wght@400;600;700&display=swap');

:root {
    --wa-accent: #5381ac;
    --wa-accent-dark: #484747;
    --wa-text: #666666;
    --wa-heading: #333333;
    --wa-bg: #e9e9e9;
    --wa-quicknav-text: #9a9a9a;
    --wa-border: #c8c8c8;
    --wa-max-width: 1100px;
}

* { box-sizing: border-box; }

img { max-width: 100%; height: auto; }

body {
    margin: 0;
    font-family: "Titillium Web", Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: var(--wa-text);
    background: var(--wa-bg);
}

a { color: var(--wa-accent); text-decoration: none; }
a:hover { color: var(--wa-accent-dark); }

h1, h2, h3, h4 { font-family: "Titillium Web", Arial, sans-serif; color: var(--wa-heading); font-weight: 700; }

.wa-wrapper {
    max-width: var(--wa-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- quicknav ---------- */
.wa-quicknav {
    background: #fff;
    border-bottom: 1px solid var(--wa-border);
}
.wa-quicknav-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 16px;
    min-height: 32px;
    padding-top: 4px;
    padding-bottom: 4px;
}
.wa-kundelogin { font-size: 12px; color: var(--wa-quicknav-text); }
.wa-kortlogoer {
    display: inline-block;
    width: 133px;
    height: 16px;
    background: url('../images/kortlogoer.png') top right no-repeat;
}
.wa-clientlogin {
    display: inline-block;
    padding: 4px 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    color: #fff;
    background: var(--wa-accent);
    border-radius: 4px;
}
.wa-clientlogin:hover { background: var(--wa-accent-dark); color: #fff; }

/* ---------- header ---------- */
.wa-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 0;
}
.wa-logo img { display: block; height: 40px; width: auto; }

.wa-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.wa-nav li { margin: 0; }
.wa-nav li a {
    display: block;
    padding: 10px 14px;
    font-weight: 600;
    font-size: 15px;
    color: #7a7a7b;
}
.wa-nav li a:hover,
.wa-nav li.active a,
.wa-nav li a.selected { color: var(--wa-accent); }

.wa-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.wa-nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--wa-heading);
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}
.wa-nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.wa-nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.wa-nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- forside / promo slider (forsiden) ---------- */
.promo {
    position: relative;
    width: 100%;
    max-width: 1009px;
    margin: 20px auto 30px auto;
    aspect-ratio: 1009 / 544;
    background: #fff url('../images/bg_promo.png') no-repeat left bottom;
    background-size: 100% 100%;
    border-radius: 4px;
    overflow: hidden;
}
#slider {
    position: relative;
    width: 100%;
    height: 100%;
}
.slider_item {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease;
}
.slider_item.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}
.promo1, .promo2, .promo3, .promo4 {
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-position: top right;
}
.promo1 { background-image: url('../images/bg_promo_visual_01.png'); background-position: right 3% top 4%; background-size: 59.5% auto; }
.promo2 { background-image: url('../images/bg_promo_visual_02.png'); background-position: right 3% center; background-size: 59.5% auto; }
.promo3 { background-image: url('../images/bg_promo_visual_03.png'); background-position: right 3% center; background-size: 57.2% auto; }

.promo h1 {
    font-size: clamp(24px, 4vw, 45px);
    letter-spacing: -1px;
    color: #343434;
    padding: 9% 0 0 7%;
    margin: 0 0 10px 0;
}
.promo p {
    color: #6c6c6c;
    font-size: 15px;
    padding: 0 0 0 7%;
    margin: 0;
    max-width: 44%;
}
.promo ul {
    list-style: none;
    padding: 10px 0 0 8%;
    margin: 0;
    max-width: 44%;
}
.promo ul li {
    position: relative;
    color: #6c6c6c;
    font-size: 15px;
    padding: 0 0 4px 15px;
}
.promo ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--wa-accent);
}
.promo .buttons { padding: 3% 0 0 7%; }
.promo .buttons a {
    display: inline-block;
    color: #fff;
    padding: 10px 13px;
    font-size: 12px;
    font-weight: 700;
    margin: 0 10px 0 0;
    background: var(--wa-accent);
    border-radius: 5px;
}
.promo .buttons a:hover { background: var(--wa-accent-dark); }
.promo .promonote {
    font-size: 10px;
    margin: 16px 0 0 7%;
    max-width: 44%;
}

@media (max-width: 700px) {
    /* under 700px er boksen for smal til at baggrundsbilledet kan ligge
       "bagved" teksten uden at daekke den. Teksten ligger inde i selve
       .promo1/.promo2/.promo3-elementet (samme div har baade billede og
       tekst), saa vi kan ikke omsortere dem som sidestillede elementer -
       i stedet laegger vi billedet som et synligt felt OVEN OVER teksten
       via padding-top, i stedet for at det ligger "bagved" som baggrund. */
    .promo {
        aspect-ratio: auto;
        height: auto;
        background-image: none;
        margin: 16px auto 24px auto;
    }
    #slider { height: auto; }
    .slider_item {
        position: static;
        opacity: 1;
        visibility: visible;
    }
    .slider_item:not(.is-active) { display: none; }
    .promo1, .promo2, .promo3, .promo4 {
        position: static;
        display: block;
        width: 100%;
        min-height: 0;
        background-position: top center !important;
        /* bredde-baseret storrelse (ikke "contain") saa hoejden er
           forudsigelig og ikke afhaenger af al teksten nedenunder */
        background-size: 68% auto !important;
        padding-top: 54%; /* ~ 68% bredde * billedets egen hoejde/bredde-forhold */
    }
    .promo3 { background-size: 68% auto !important; padding-top: 39%; }
    .promo h1, .promo p, .promo ul, .promo .buttons, .promo .promonote {
        padding-left: 6%;
        padding-right: 6%;
        max-width: 100%;
    }
    .promo h1 { padding-top: 20px; font-size: clamp(22px, 7vw, 32px); }
}

/* ---------- content ---------- */
.wa-content { padding: 20px 0 40px 0; }

.wa-wrapper > .wa-content,
.wa-content { background: transparent; }

.wa-content > * { background: #fff; }

.wa-title {
    position: relative;
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.wa-title h1, .wa-title h2 { margin: 0; }

/* ---------- generiske knapper i artikelindhold (fx bestillingstabel) ---------- */
.buttons a {
    display: inline-block;
    color: #fff;
    padding: 10px 13px;
    font-size: 12px;
    font-weight: 700;
    margin: 3px 10px 2px 0;
    background: var(--wa-accent);
    border-radius: 5px;
}
.buttons a:hover { background: var(--wa-accent-dark); color: #fff; }

/* ---------- oversigt m. ikoner (sidebar) ---------- */
.overview { margin: 20px 0 0 0; }
.overview p {
    padding: 2px 0 0 45px;
    margin: 0 0 25px 0;
    min-height: 34px;
    background-repeat: no-repeat;
    background-position: top left;
}
.overview p span { color: #333; display: block; font-weight: 700; }
.overview p.tools { background-image: url('../images/icons/tools.gif'); }
.overview p.globe { background-image: url('../images/icons/globe.gif'); }
.overview p.database { background-image: url('../images/icons/database.gif'); }
.overview p.mailprotection { background-image: url('../images/icons/mail.gif'); }
.overview p.pie { background-image: url('../images/icons/pie.gif'); }
.overview p.question { background-image: url('../images/icons/question.gif'); }

/* ---------- produktsammenligningstabeller ---------- */
.com-content-article__body table,
#table-a, .domainpricing {
    width: 100%;
    max-width: 100%;
    margin: 0 0 20px 0;
    border-collapse: separate;
    border-bottom: 1px solid #cecece;
}
.com-content-article__body table thead,
#table-a thead, .domainpricing thead {
    background: linear-gradient(#5a5a5a, #333);
}
.com-content-article__body table thead th,
#table-a thead th, .domainpricing thead th {
    color: #fff;
    text-shadow: 0 1px 0 #383838;
    text-align: left;
    font-size: 14px;
    padding: 14px 10px;
}
.com-content-article__body table tbody,
#table-a tbody, .domainpricing tbody { font-size: 0.9em; background: #fcfcfc; }
.com-content-article__body table tbody tr:nth-child(even),
#table-a tbody tr:nth-child(even) { background: #e9e9e9; }
.com-content-article__body table td,
#table-a td, .domainpricing td {
    padding: 10px;
    color: #666;
    font-weight: normal;
    border: none;
    border-left: 1px solid #cecece;
    vertical-align: middle;
}
.com-content-article__body table td.left,
#table-a td.left, .domainpricing td.left {
    color: #333;
    font-weight: 700;
    padding: 10px 10px 10px 15px;
}
.com-content-article__body table td.last,
#table-a td.last, .domainpricing td.last { border-right: 1px solid #cecece; }
.com-content-article__body table td.price,
#table-a td.price, .domainpricing td.price { color: var(--wa-accent); font-size: 14px; }
.com-content-article__body table tr.bestilling td { text-align: center; }

@media (max-width: 700px) {
    /* hvert <td> faar sit data-label (sat af table-responsive.js ud fra
       <th>) og vises som et "kort" i stedet for at klemme en bred
       tabel ind, eller tvinge vandret scroll. */
    .com-content-article__body table,
    #table-a, .domainpricing {
        display: block;
        width: 100%;
        border: 0;
        white-space: normal;
    }
    .com-content-article__body table thead,
    #table-a thead, .domainpricing thead {
        border: 0;
        clip: rect(0 0 0 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
        background: none;
    }
    .com-content-article__body table tbody,
    #table-a tbody, .domainpricing tbody { display: block; background: transparent; }
    .com-content-article__body table tr,
    #table-a tr, .domainpricing tr {
        display: block;
        margin-bottom: 14px;
        background: #fff;
        border: 1px solid #e0e0e0;
        border-radius: 4px;
        overflow: hidden;
    }
    .com-content-article__body table td,
    #table-a td, .domainpricing td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        padding: 10px 12px;
        border: 0;
        border-bottom: 1px solid #eee;
        text-align: right;
    }
    .com-content-article__body table td.left,
    #table-a td.left, .domainpricing td.left {
        padding: 10px 12px;
    }
    .com-content-article__body table tr td:last-child,
    #table-a tr td:last-child { border-bottom: 0; }
    .com-content-article__body table td::before,
    #table-a td::before, .domainpricing td::before {
        content: attr(data-label);
        font-weight: 700;
        color: #333;
        text-align: left;
        margin-right: 12px;
    }
    .com-content-article__body table tr.bestilling td,
    #table-a tr.bestilling td { justify-content: center; }
    .com-content-article__body table tr.bestilling td::before { content: none; }
}

.wa-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-start;
}
.wa-col-left {
    flex: 0 0 260px;
    background: #fff;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.wa-col-right {
    flex: 1 1 0;
    min-width: 0;
    background: #fff;
    border-radius: 4px;
    padding: 24px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.wa-col-full {
    width: 100%;
    background: #fff;
    border-radius: 4px;
    padding: 24px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

@media (max-width: 768px) {
    .wa-row { flex-direction: column; }
    .wa-col-left { flex-basis: auto; width: 100%; }

    /* burger-menu: skjul den normale vandrette menu, vis knappen */
    .wa-nav-toggle { display: flex; }
    .wa-nav {
        display: none;
        width: 100%;
        order: 3;
        margin-top: 8px;
    }
    .wa-nav.is-open { display: block; }
    .wa-nav ul { flex-direction: column; gap: 0; }
    .wa-nav li { border-bottom: 1px solid var(--wa-border); }
    .wa-nav li a { padding: 12px 4px; }
}

/* ---------- footer ---------- */
.wa-footer {
    margin-top: 20px;
    padding: 28px 0;
    background: var(--wa-heading);
    color: #fff;
    text-align: center;
}
.wa-footer a { color: #cfd8e3; }
.wa-footer a:hover { color: #fff; }
.wa-footer p { margin: 0; line-height: 1.8; }
.wa-footer ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 20px;
    margin: 8px 0 0 0;
    padding: 0;
}
.wa-footer ul li { margin: 0; }
