/* =========================================================================
   Kjelds Vikarer - Offentligt design
   Farver: mørkegrøn, hvid, mørkegrå, lysegrå + vinter (blå/hvid)
   ========================================================================= */

:root {
    --green-900: #16281c;
    --green-800: #1f3d2b;
    --green-700: #295437;
    --green-600: #337044;
    --green-500: #3f8a54;
    --accent:    #d8a24a;

    --grey-900:  #23282b;
    --grey-700:  #4a5155;
    --grey-500:  #7b8489;
    --grey-300:  #d7dcdf;
    --grey-200:  #e9edee;
    --grey-100:  #f5f7f7;
    --white:     #ffffff;

    --text:      #23282b;
    --text-soft: #4a5155;
    --border:    #dfe4e6;

    --radius-sm: 8px;
    --radius:    14px;
    --radius-lg: 22px;

    --shadow-sm: 0 1px 3px rgba(22, 40, 28, .08), 0 1px 2px rgba(22, 40, 28, .05);
    --shadow:    0 10px 30px rgba(22, 40, 28, .10);
    --shadow-lg: 0 22px 50px rgba(22, 40, 28, .16);

    --container: 1180px;
    --header-h: 74px;

    --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Vinterpalette */
.is-winter {
    --green-900: #123049;
    --green-800: #123049;
    --green-700: #1a4d78;
    --green-600: #22648f;
    --green-500: #2c7bab;
    --accent:    #7fc4e8;

    --text:      #14252f;
    --text-soft: #40555f;
    --border:    #d8e6ef;
    --grey-100:  #f4f9fc;
    --grey-200:  #e6f1f7;
}

/* ---------------------------------------------------------------- Reset */
* { box-sizing: border-box; }

/* Logo: billedet vises kun, når filen findes (styres af main.js) */
[data-logo] { display: none !important; }
.js-on img[data-logo]:not([data-logo-error]) { display: inline-block !important; }
.js-on .admin-brand__logo:not([data-logo-error]) { display: block !important; }
.js-logo [data-logo-fallback] { display: none !important; }
.js-logo img[data-logo]:not([data-logo-error]) { display: inline-block !important; }
.js-logo .admin-brand__logo:not([data-logo-error]) { display: block !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
}

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

a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--green-600); }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; color: var(--green-900); font-weight: 700; }
p { margin: 0 0 1em; }

address { font-style: normal; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--green-800);
    color: #fff;
    padding: 12px 18px;
    z-index: 999;
    border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ------------------------------------------------------------- Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 24px;
    border-radius: 999px;
    border: 2px solid transparent;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
    cursor: pointer;
    text-align: center;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--phone {
    background: var(--green-600);
    color: #fff;
    box-shadow: 0 8px 20px rgba(41, 84, 55, .28);
}
.btn--phone:hover { background: var(--green-700); color: #fff; }

.btn--lg { padding: 16px 30px; font-size: 18px; }
.btn--xl { padding: 20px 34px; font-size: 21px; width: 100%; }
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn--block { width: 100%; }

.btn--ghost {
    background: transparent;
    border-color: var(--green-600);
    color: var(--green-700);
}
.btn--ghost:hover { background: var(--green-600); color: #fff; }

/* -------------------------------------------------------------- Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: var(--header-h);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--green-900);
    font-weight: 800;
}
.brand:hover { color: var(--green-800); }

.brand__logo {
    order: 1;
    height: 52px;
    width: auto;
    max-width: 210px;
    object-fit: contain;
}

.brand__mark {
    order: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    min-width: 66px;
    padding: 0 10px;
    border: 2px dashed var(--grey-300);
    border-radius: var(--radius-sm);
    background: var(--grey-100);
    color: var(--grey-500);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    white-space: nowrap;
}

.brand__name {
    font-size: 21px;
    letter-spacing: -.01em;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    padding: 0 11px;
    background: var(--grey-100);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--green-900);
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav ul {
    display: flex;
    align-items: center;
    gap: 22px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.main-nav a {
    color: var(--text-soft);
    font-weight: 600;
    font-size: 15.5px;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--green-700); border-bottom-color: var(--green-600); }

.contact-strip {
    background: var(--green-800);
    color: #fff;
    font-size: 14.5px;
}
.contact-strip__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    padding-top: 8px;
    padding-bottom: 8px;
}
.contact-strip a { color: #fff; font-weight: 700; }
.contact-strip a:hover { color: #ffe4b5; }
.is-winter .contact-strip { background: var(--green-700); }

/* ---------------------------------------------------------------- Hero */
.hero {
    position: relative;
    overflow: hidden;
    padding: 60px 0 70px;
    background:
        radial-gradient(1100px 480px at 12% -10%, rgba(63, 138, 84, .18), transparent 62%),
        linear-gradient(160deg, #ffffff 0%, var(--grey-100) 100%);
    border-bottom: 1px solid var(--border);
}
.hero--winter {
    background:
        radial-gradient(1000px 460px at 85% -10%, rgba(44, 123, 171, .22), transparent 60%),
        linear-gradient(160deg, #f4f9fc 0%, #e3f0f8 100%);
}

.hero__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(290px, .85fr);
    gap: 42px;
    align-items: center;
}

.hero__eyebrow {
    display: inline-block;
    margin-bottom: 16px;
    padding: 7px 15px;
    border-radius: 999px;
    background: rgba(41, 84, 55, .1);
    color: var(--green-700);
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}
.is-winter .hero__eyebrow { background: rgba(34, 100, 143, .14); }

.hero__logo { margin-bottom: 18px; }
.hero__logo-img {
    order: 1;
    height: 150px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}
.hero__logo-placeholder {
    order: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 168px;
    height: 84px;
    padding: 0 22px;
    border: 2px dashed var(--grey-300);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .8);
}
.hero__logo-frame {
    color: var(--grey-500);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .16em;
}

.hero__title {
    font-size: clamp(34px, 5.6vw, 62px);
    letter-spacing: -.02em;
    margin-bottom: .25em;
}

.hero__lead--big {
    font-size: clamp(26px, 4.2vw, 44px);
    font-weight: 800;
    letter-spacing: .06em;
    color: var(--green-700);
    margin: 0 0 .3em;
}
.hero__sub {
    font-size: clamp(17px, 2.1vw, 21px);
    color: var(--text-soft);
    margin-bottom: .5em;
}
.hero__phone {
    font-size: clamp(30px, 5vw, 46px);
    font-weight: 800;
    color: var(--green-700);
    letter-spacing: -.01em;
    margin: 0 0 18px;
}

.hero__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 22px;
}
.hero__note {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--grey-700);
}

.hero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    list-style: none;
    margin: 28px 0 0;
    padding: 20px 0 0;
    border-top: 1px solid var(--border);
    font-size: 15px;
    color: var(--text-soft);
}
.hero__facts strong { color: var(--green-900); margin-right: 6px; }

.hero__card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow);
}
.hero__card-title {
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--grey-500);
    margin-bottom: 6px;
}
.hero__card-company { font-size: 22px; font-weight: 800; color: var(--green-900); margin-bottom: 10px; }
.hero__card address { color: var(--text-soft); margin-bottom: 12px; }
.hero__card-phone { margin: 0 0 6px; font-size: 27px; font-weight: 800; }
.hero__card-phone a { color: var(--green-700); }
.hero__card-cvr { font-size: 15px; color: var(--grey-700); margin-bottom: 18px; }
.hero__card-note { margin: 12px 0 0; font-size: 13.5px; color: var(--grey-700); text-align: center; }

/* --------------------------------------------------------------- Sne */
.snow { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.snow span {
    position: absolute;
    top: -12px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 0 6px rgba(120, 180, 220, .8);
    animation-name: snowfall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}
@keyframes snowfall {
    0%   { transform: translateY(-20px) translateX(0); opacity: 0; }
    10%  { opacity: .95; }
    100% { transform: translateY(560px) translateX(38px); opacity: .1; }
}
@media (prefers-reduced-motion: reduce) {
    .snow { display: none; }
}

/* ------------------------------------------------------------ Sections */
.section { padding: 76px 0; }
.section--alt { background: var(--grey-100); }

.section__head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.section__title { font-size: clamp(26px, 3.6vw, 38px); letter-spacing: -.015em; }
.section__intro { color: var(--text-soft); font-size: 17.5px; margin: 0; }

/* --------------------------------------------------------------- Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.card {
    position: relative;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 26px 26px;
    box-shadow: var(--shadow-sm);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    overflow: hidden;
}
.card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--green-600), var(--green-500));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--grey-300); }
.card:hover::before { transform: scaleX(1); }

.card--highlight {
    border-color: var(--green-600);
    box-shadow: 0 14px 34px rgba(34, 100, 143, .18);
}
.card--highlight::before { transform: scaleX(1); }

.card__icon {
    font-size: 38px;
    line-height: 1;
    margin-bottom: 16px;
}
.card__title { font-size: 21px; margin-bottom: 8px; }
.card__text { color: var(--text-soft); font-size: 16px; margin-bottom: 14px; }
.card__link { font-weight: 700; font-size: 15px; color: var(--green-700); }
.card__link:hover { color: var(--green-600); }

.services-note {
    margin: 40px auto 0;
    max-width: 780px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--border);
    border-left: 5px solid var(--green-600);
    border-radius: var(--radius);
    padding: 22px 26px;
    color: var(--text-soft);
    box-shadow: var(--shadow-sm);
}
.services-note a { color: var(--green-700); }

/* ------------------------------------------------------------- Om os */
.om {
    display: grid;
    grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr);
    gap: 48px;
    align-items: center;
}
.om__content p { color: var(--text-soft); font-size: 17px; }
.om__highlight {
    font-weight: 800;
    color: var(--green-800) !important;
    background: rgba(41, 84, 55, .08);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    display: inline-block;
}
.om__list { list-style: none; margin: 22px 0; padding: 0; display: grid; gap: 10px; }
.om__list li { font-weight: 600; color: var(--green-800); }

.om__media {
    position: relative;
    min-height: 300px;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(700px 340px at 30% 10%, rgba(63, 138, 84, .22), transparent 65%),
        linear-gradient(150deg, var(--grey-100), #ffffff);
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    padding: 30px;
}
.is-winter .om__media {
    background:
        radial-gradient(700px 340px at 30% 10%, rgba(44, 123, 171, .25), transparent 65%),
        linear-gradient(150deg, #eaf4fa, #ffffff);
}
.om__badge {
    display: grid;
    place-items: center;
    min-width: 170px;
    min-height: 92px;
    padding: 16px 22px;
    background: #fff;
    border: 2px dashed var(--grey-300);
    border-radius: var(--radius);
}
.om__badge img { max-height: 110px; width: auto; max-width: 100%; }
.om__badge img[data-logo] { margin: 0 auto; }
.om__badge span { color: var(--grey-500); font-size: 12px; font-weight: 800; letter-spacing: .16em; }

.om__year {
    position: absolute;
    bottom: 22px;
    right: 22px;
    background: var(--green-800);
    color: #fff;
    border-radius: var(--radius-sm);
    padding: 12px 18px;
    text-align: center;
}
.om__year strong { display: block; font-size: 22px; line-height: 1.1; }
.om__year span { font-size: 12px; opacity: .85; }

/* ----------------------------------------------------------- Kontakt */
.contact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
    align-items: stretch;
}
.contact__info,
.contact__action {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 34px;
    box-shadow: var(--shadow-sm);
}
.contact__company { font-size: 26px; margin-bottom: 10px; }
.contact__address { font-size: 18px; color: var(--text-soft); margin-bottom: 22px; }

.contact__list { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; }
.contact__list dt { font-weight: 700; color: var(--green-900); }
.contact__list dd { margin: 0; color: var(--text-soft); }
.contact__list a { font-weight: 700; }

.contact__action {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    background: linear-gradient(165deg, var(--green-800), var(--green-900));
    border-color: transparent;
    color: #fff;
}
.contact__action-title { color: rgba(255, 255, 255, .82); font-weight: 600; margin-bottom: 18px; }
.contact__action .btn--phone {
    background: #fff;
    color: var(--green-800);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
}
.contact__action .btn--phone:hover { background: #f1f6f2; color: var(--green-900); }
.contact__action-phone {
    font-size: 30px;
    font-weight: 800;
    margin: 18px 0 6px;
    letter-spacing: .01em;
}
.contact__action-note { color: rgba(255, 255, 255, .9); margin: 0; }

/* --------------------------------------------------------- CTA-band */
.cta-band {
    background: linear-gradient(160deg, var(--green-700), var(--green-900));
    color: #fff;
    padding: 48px 0;
}
.cta-band__inner {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.cta-band__title { color: #fff; font-size: clamp(21px, 3vw, 30px); margin-bottom: 8px; }
.cta-band__text { color: rgba(255, 255, 255, .88); margin: 0; max-width: 620px; }
.cta-band__action { text-align: center; }
.cta-band__action .btn--phone {
    background: #fff;
    color: var(--green-800);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .25);
}
.cta-band__action .btn--phone:hover { background: #eef4ef; color: var(--green-900); }
.cta-band__note { display: block; margin-top: 10px; color: rgba(255, 255, 255, .9); font-size: 14px; font-weight: 700; }

/* ------------------------------------------------------------- Footer */
.site-footer { background: var(--grey-900); color: #cbd3d6; font-size: 15.5px; }
.site-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 34px;
    padding: 54px 20px 40px;
}
.site-footer h3 {
    color: #fff;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: .09em;
    margin-bottom: 14px;
}
.site-footer a { color: #cbd3d6; }
.site-footer a:hover { color: #fff; }

.brand--footer { color: #fff; margin-bottom: 12px; }
.brand--footer .brand__name { color: #fff; }
.brand--footer .brand__mark { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .25); color: #9fb0b6; }
.brand--footer .brand__logo { height: 50px; }

.site-footer__muted { color: #96a4a9; font-size: 14.5px; }

.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.site-footer__banner {
    background: var(--green-800);
    color: #fff;
    text-align: center;
    padding: 14px 0;
    font-size: 16px;
}

.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 20px 0;
    font-size: 14px;
    color: #93a0a5;
}
.site-footer__bottom p { margin: 0; text-align: center; }

/* ------------------------------------------------------ Mobil ring-bar */
.call-bar {
    display: none;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 200;
    background: var(--green-600);
    color: #fff;
    font-weight: 800;
    font-size: 18px;
    text-align: center;
    padding: 16px;
    border-radius: 999px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .28);
}
.call-bar:hover { color: #fff; background: var(--green-700); }
.is-winter .call-bar { background: var(--green-700); }

/* ------------------------------------------------------------ Respons */
@media (max-width: 1000px) {
    .hero__inner { grid-template-columns: 1fr; gap: 34px; }
    .om { grid-template-columns: 1fr; gap: 30px; }
    .om__media { order: -1; min-height: 220px; }
    .contact { grid-template-columns: 1fr; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    .nav-toggle { display: flex; }
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        background: #fff;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
        padding: 14px 20px 20px;
        display: none;
    }
    .main-nav.is-open { display: flex; }
    .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
    .main-nav ul li { border-bottom: 1px solid var(--border); }
    .main-nav ul li:last-child { border-bottom: 0; }
    .main-nav a { display: block; padding: 15px 2px; font-size: 17px; border-bottom: 0; }
    .nav-phone { margin-top: 12px; width: 100%; }

    .site-header__inner { position: relative; flex-wrap: wrap; }

    .call-bar { display: block; }
    body { padding-bottom: 84px; }

    .section { padding: 56px 0; }
    .hero { padding: 40px 0 54px; }
    .brand__name { font-size: 18px; }
    .brand__logo { height: 42px; max-width: 150px; }
    .brand__mark { height: 38px; min-width: 58px; font-size: 10px; }
}

@media (max-width: 620px) {
    body { font-size: 16.5px; }
    .site-footer__grid { grid-template-columns: 1fr; gap: 26px; padding-top: 40px; }
    .contact__info, .contact__action { padding: 24px; }
    .hero__card { padding: 22px; }
    .hero__facts { gap: 8px 18px; font-size: 14.5px; }
    .card { padding: 24px 20px; }
    .cta-band__inner { justify-content: center; text-align: center; }
}

/* --------------------------------------------------- Print (forside) */
@media print {
    .site-header, .call-bar, .cta-band, .site-footer, .snow { display: none !important; }
    body { font-size: 12pt; }
}
