
/*
 SNEPPEVEJ 8 - KOMPLET USER.CSS
 Joomla / Cassiopeia
 Version 7 - 18. november 2026
*/

/* =========================================
   GRUNDINDSTILLINGER
========================================= */

.sp8-page {
    --sp8-green: #2e4840;
    --sp8-dark: #172b23;
    --sp8-gold: #c7a77b;
    --sp8-sand: #f7f4ec;
    --sp8-text: #23332f;

    width: 100%;
    min-width: 0;
    color: var(--sp8-text);
    background: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 17px;
    line-height: 1.65;
}

.sp8-page,
.sp8-page * {
    box-sizing: border-box;
}

.sp8-page * {
    min-width: 0;
}

.sp8-page a {
    text-decoration: none;
}

.sp8-page h1,
.sp8-page h2,
.sp8-page h3 {
    margin-top: 0;
    line-height: 1.16;
}

.sp8-page h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(36px, 4.5vw, 60px);
    font-weight: normal;
}

.sp8-page img {
    display: block;
    max-width: 100%;
}

.sp8-page [id] {
    scroll-margin-top: 25px;
}

/* =========================================
   NAVIGATION
========================================= */

.sp8-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 35px;
    background: #ffffff;
}

.sp8-brand {
    color: #23332f !important;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 0.18em;
    white-space: nowrap;
    text-decoration: none !important;
}

.sp8-navlinks {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.sp8-navlinks a {
    color: #23332f !important;
    font-size: 13px;
    text-decoration: none !important;
}

.sp8-navlinks a:hover {
    color: #94744b !important;
    text-decoration: underline !important;
}

/* =========================================
   KNAPPER
========================================= */

.sp8-page a.sp8-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 23px;
    border: 1px solid #c7a77b;
    border-radius: 3px;
    background: #c7a77b;
    color: #172b23 !important;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none !important;
    opacity: 1;
    visibility: visible;
}

.sp8-page a.sp8-btn:hover,
.sp8-page a.sp8-btn:focus {
    background: #d9bb92;
    border-color: #d9bb92;
    color: #172b23 !important;
}

.sp8-page a.sp8-btn-small {
    padding: 11px 18px;
    font-size: 13px;
}

.sp8-page a.sp8-btn-outline {
    background: rgba(15, 35, 28, 0.25);
    border: 1px solid #ffffff;
    color: #ffffff !important;
}

.sp8-page a.sp8-btn-outline:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff !important;
}

/* =========================================
   FORSIDE MED HUSBILLEDE
========================================= */

.sp8-hero {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    min-height: 650px;
    padding: 70px clamp(25px, 7vw, 100px);

    background-color: #263d34;
    background-image:
        linear-gradient(
            90deg,
            rgba(14, 30, 24, 0.82) 0%,
            rgba(14, 30, 24, 0.58) 48%,
            rgba(14, 30, 24, 0.12) 100%
        ),
        url("/images/huset/hus-forside.jpg");

    background-position: center, center;
    background-size: cover, cover;
    background-repeat: no-repeat, no-repeat;
    color: #ffffff;
}

/* Forsidetekst er altid synlig */

.sp8-hero-content {
    display: block;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 760px;
    color: #ffffff;
    opacity: 1;
    visibility: visible;
    transform: none;
    animation: none;
    transition: none;
}

.sp8-hero-content h1,
.sp8-hero-content p,
.sp8-hero-content span,
.sp8-hero-content a {
    opacity: 1;
    visibility: visible;
    animation: none;
}

.sp8-eyebrow {
    margin: 0 0 24px;
    color: #f1ddbd !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.sp8-hero h1 {
    display: block;
    max-width: 740px;
    margin: 0 0 25px;
    color: #ffffff !important;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(40px, 5.2vw, 72px);
    font-weight: normal;
    line-height: 1.12;
    letter-spacing: -0.035em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.sp8-hero-second {
    display: block;
    margin-top: 8px;
    color: #e4c298 !important;
    font-style: italic;
}

.sp8-lead {
    max-width: 550px;
    margin: 0;
    color: #ffffff !important;
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.6;
}

.sp8-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
}

/* =========================================
   NØGLETAL UNDER FORSIDEN
========================================= */

.sp8-hero-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    padding: 24px 30px;
    background: #172b23;
    color: #ffffff;
}

.sp8-hero-facts > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-align: center;
}

.sp8-hero-facts strong {
    display: block;
    color: #ffffff;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.sp8-hero-facts span {
    display: block;
    color: #e4e8e4;
    font-size: 13px;
}

/* =========================================
   SEKTIONER
========================================= */

.sp8-section {
    width: 100%;
    padding: clamp(60px, 7vw, 105px)
             clamp(24px, 7vw, 105px);
    color: #23332f;
    background: #ffffff;
}

.sp8-kicker {
    margin: 0 0 16px;
    color: #947b59;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.sp8-section h2 {
    margin: 0 0 24px;
    color: #23332f;
}

.sp8-section h2 em {
    display: block;
    color: #809486;
    font-style: italic;
}

.sp8-section p {
    line-height: 1.75;
}

.sp8-section-sub {
    max-width: 660px;
    font-size: 18px;
}

/* =========================================
   INTRODUKTION
========================================= */

.sp8-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 8%;
}

.sp8-prose {
    max-width: 650px;
    font-size: 18px;
}

.sp8-prose p {
    margin: 0 0 20px;
}

/* =========================================
   BILLEDGALLERI
========================================= */

.sp8-gallery-section {
    background: #f7f4ec;
}

.sp8-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 35px;
}

.sp8-photo {
    position: relative;
    overflow: hidden;
    margin: 0;
    aspect-ratio: 5 / 4;
    background: #deded7;
}

.sp8-photo-wide {
    grid-column: span 2;
    aspect-ratio: 2 / 1;
}

.sp8-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sp8-photo figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 35px 20px 14px;
    color: #ffffff;
    font-size: 14px;
    background: linear-gradient(
        transparent,
        rgba(0, 0, 0, 0.65)
    );
}

.sp8-note {
    margin-top: 18px;
    color: #647068;
    font-size: 12px;
}

/* =========================================
   BELIGGENHED - FULD BREDDE
========================================= */

.sp8-nature {
    display: block;
    width: 100%;
    background: #e6e9e0;
}

/* Skjul den tomme billedplads */

.sp8-nature-photo {
    display: none;
}

.sp8-nature-copy {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: clamp(65px, 7vw, 110px)
             clamp(24px, 7vw, 100px);
    color: #23332f;
}

.sp8-nature-copy h2 {
    max-width: 850px;
    margin-bottom: 28px;
    color: #23332f;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 5vw, 65px);
    font-weight: normal;
    line-height: 1.15;
}

.sp8-nature-copy p:not(.sp8-kicker) {
    max-width: 760px;
    margin-bottom: 18px;
    font-size: 18px;
    line-height: 1.8;
}

/* =========================================
   FORBEDRINGER
========================================= */

.sp8-improvements {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    margin-top: 38px;
}

.sp8-improvements article {
    min-width: 0;
    height: 100%;
    padding: 27px;
    background: #f7f4ec;
    border-top: 3px solid #c7a77b;
    overflow-wrap: break-word;
}

.sp8-improvements article span {
    color: #947b59;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.sp8-improvements h3 {
    margin: 12px 0;
    color: #23332f;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    font-weight: normal;
}

.sp8-improvements p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
}

/* =========================================
   OPVARMNING
========================================= */

.sp8-heat {
    width: 100%;
    margin-top: 30px;
    padding: 25px 30px;
    background: #e8eee8;
    border-left: 4px solid #647e70;
}

.sp8-heat h3 {
    margin: 0 0 10px;
    color: #23332f;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
}

.sp8-heat p {
    margin: 0;
}

/* =========================================
   BOLIGEN I TAL - RETTET LAYOUT
========================================= */

.sp8-page .sp8-facts {
    display: grid;
    grid-template-columns:
        minmax(0, 0.85fr)
        minmax(0, 1.15fr);
    align-items: start;
    gap: clamp(25px, 4vw, 65px);
    width: 100%;
    max-width: 100%;
    background: #2e4840;
    color: #ffffff;
    overflow: hidden;
}

.sp8-facts > div {
    min-width: 0;
    max-width: 100%;
}

.sp8-facts h2,
.sp8-facts p {
    color: #ffffff;
}

.sp8-facts .sp8-kicker {
    color: #e4c298;
}

/* Hver oplysning får sin egen plads */

.sp8-page dl.sp8-facts-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 0 24px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow: visible;
}

.sp8-page .sp8-facts-grid > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    min-width: 0;
    max-width: 100%;
    padding: 15px 0 18px;
    border-bottom:
        1px solid rgba(255, 255, 255, 0.25);
    overflow-wrap: anywhere;
}

.sp8-page .sp8-facts-grid dt {
    display: block;
    float: none;
    clear: both;
    width: 100%;
    max-width: 100%;
    margin: 0 0 6px;
    padding: 0;
    color: #d6e0d9;
    font-size: 12px;
    font-weight: normal;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.sp8-page .sp8-facts-grid dd {
    display: block;
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
    overflow-wrap: anywhere;
    word-break: normal;
}

/* Kontantprisen */

.sp8-page .sp8-facts-grid dd:last-child {
    max-width: 100%;
}

/* Link til EDC via mail */

.sp8-textlink {
    display: inline-block;
    max-width: 100%;
    margin-top: 20px;
    color: #e8c69b !important;
    text-decoration: underline !important;
    overflow-wrap: anywhere;
}

/* =========================================
   PLANTEGNING
========================================= */

.sp8-floorplan {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr) minmax(0, 1fr);
    gap: 45px;
    align-items: center;
    background: #f7f4ec;
}

.sp8-floorplan figure {
    margin: 0;
}

.sp8-floorplan img {
    width: 100%;
    min-height: 230px;
    object-fit: contain;
    background: #ffffff;
}

.sp8-floorplan figcaption {
    padding-top: 10px;
    color: #647068;
    font-size: 12px;
}

/* =========================================
   KOMMENDE BOLIGFILM
========================================= */

.sp8-film {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}

.sp8-film-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    aspect-ratio: 16 / 9;
    padding: 30px;
    background: linear-gradient(
        130deg,
        #d6ddd2,
        #7b9482
    );
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    text-align: center;
}

/* =========================================
   FREMVISNING
========================================= */

.sp8-cta {
    width: 100%;
    padding: 90px 25px;
    background: #263e35;
    color: #ffffff;
    text-align: center;
}

.sp8-cta .sp8-kicker {
    color: #e4c298;
}

.sp8-cta h2 {
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(40px, 5vw, 65px);
    font-weight: normal;
}

.sp8-cta h2 em {
    display: block;
    color: #e4c298;
}

.sp8-cta > p {
    max-width: 650px;
    margin: 0 auto 25px;
    line-height: 1.75;
}

.sp8-cta .sp8-btn-light {
    background: #e7cb9e;
    border-color: #e7cb9e;
}

.sp8-cta-fine {
    margin-top: 22px !important;
    color: #d6e0d9;
    font-size: 12px;
}

/* =========================================
   FOOTER
========================================= */

.sp8-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 26px 35px;
    background: #f1eee8;
    color: #23332f;
    font-size: 12px;
}

.sp8-footer a {
    color: #23332f !important;
    text-decoration: underline !important;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 1100px) {

    .sp8-nav {
        justify-content: center;
    }

    .sp8-page .sp8-facts {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .sp8-page dl.sp8-facts-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .sp8-intro,
    .sp8-floorplan,
    .sp8-film {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .sp8-improvements {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .sp8-hero {
        min-height: 600px;
    }
}

/* =========================================
   MOBIL
========================================= */

@media (max-width: 650px) {

    .sp8-page {
        font-size: 16px;
    }

    .sp8-nav {
        padding: 20px 16px;
        gap: 15px;
    }

    .sp8-brand {
        font-size: 17px;
    }

    .sp8-navlinks {
        width: 100%;
        justify-content: center;
        gap: 10px 15px;
    }

    .sp8-navlinks a {
        font-size: 12px;
    }

    .sp8-nav .sp8-btn-small {
        width: 100%;
    }

    .sp8-hero {
        min-height: 590px;
        padding: 55px 24px;
        background-position: center, center;
    }

    .sp8-hero h1 {
        font-size: clamp(37px, 9vw, 52px);
    }

    .sp8-hero-second {
        margin-top: 12px;
    }

    .sp8-lead {
        font-size: 17px;
    }

    .sp8-hero-actions {
        gap: 10px;
    }

    .sp8-hero-facts {
        grid-template-columns: 1fr 1fr;
        gap: 20px 10px;
        padding: 22px 15px;
    }

    .sp8-hero-facts strong {
        font-size: 18px;
    }

    .sp8-section {
        padding: 55px 22px;
    }

    .sp8-gallery {
        gap: 10px;
    }

    .sp8-photo-wide {
        aspect-ratio: 4 / 3;
    }

    .sp8-photo:not(.sp8-photo-wide) {
        aspect-ratio: 3 / 4;
    }

    .sp8-nature-copy {
        padding: 55px 25px;
    }

    .sp8-nature-copy p:not(.sp8-kicker) {
        font-size: 16px;
    }

    .sp8-improvements {
        grid-template-columns: 1fr;
    }

    .sp8-page .sp8-facts {
        grid-template-columns: 1fr;
    }

    .sp8-page dl.sp8-facts-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .sp8-page .sp8-facts-grid > div {
        padding: 12px 0 16px;
    }

    .sp8-page .sp8-facts-grid dd {
        font-size: 17px;
    }

    .sp8-cta {
        padding: 65px 22px;
    }

    .sp8-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
