icons-flex-box {
    display:flex;
    gap: 20px;
    justify-content: space-evenly;
}

icon-flex-box > p {
    text-align: center;
}

.front-page-icon-link {
    color: inherit !important;
    display: block;
    text-decoration: none !important;
}

.front-page-icon-link p {
    text-align: center;
    text-decoration: underline;
}

.front-page-icon-link icon-flex {
    box-shadow: 0 3px 8px rgba(35, 49, 51, 0.14);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.front-page-icon-link:hover icon-flex {
    box-shadow: 0 10px 18px rgba(35, 49, 51, 0.22);
    transform: translateY(-4px);
}

.front-page-icon-link:focus-visible {
    outline: 3px solid var(--color-brand-primary);
    outline-offset: 5px;
}

@media (prefers-reduced-motion: reduce) {
    .front-page-icon-link icon-flex {
        transition: none;
    }
}

h1, h2, h3, h4 * {
    word-break: break-all;
}

.front-page-icon-link icon-flex,
icons-flex-box icon-flex {
    display:block;
    width:max(10vw, 140px);
    height:max(10vw, 140px);
    margin:auto;
    border-radius: 50%;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

@media only screen and (max-width: 600px) {
    icons-flex-box {
        flex-direction: column;
        text-align: center;
    }
    .front-page-icon-link icon-flex,
    icon-flex {
        width:max(60vw) !important;
        height:max(60vw) !important;
    }
}

hero-content-boxes {
    width: 100%;
    height: 100%;
    top:0;
    left:0;
    position: absolute;
}

hero-content-box {
    width:100vw;
    height:100%;
    display: block;
}

hero-header {
    display:block;
    font-size:14vw;
    padding-top:min(37vh, 440px);
    text-align:center;
    color:rgba(255,255,255,0.3);
}

@keyframes hero-headline-settle {
    from {
        color: rgba(215, 255, 235, 0.52);
        text-shadow:
            0 2px 22px rgba(16, 31, 24, 0.34),
            0 0 20px rgba(105, 231, 185, 0.18);
    }

    to {
        color: rgba(255, 255, 255, 0.3);
        text-shadow:
            0 2px 16px rgba(16, 31, 24, 0.2),
            0 0 0 rgba(105, 231, 185, 0);
    }
}

@media only screen and (min-width: 802px) {
    hero-content-box.active hero-header {
        animation: hero-headline-settle 0.9s ease-out both;
    }
}

@media (prefers-reduced-motion: reduce) {
    hero-content-box.active hero-header {
        animation: none;
    }
}

hero-tagline {
    display:block;
    text-align:center;
    padding-top:min(25vh, 300px);
    padding-left:5vw;
    padding-right:5vw;
}

hero-images {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

hero-images > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    top:0;
    left:0;
    position: absolute;
}

hero-content-box {
    width: 100%;
    height: 100%; 
    position: absolute;
    background-color: rgba(0,0,0,0.5);
    z-index:2;
}

#hero-section {
    height:100vh;
    height:min(100svh, max(900px, 62.5vw));
    width:100%;
    text-align: left;
    position: relative;
}
/*#hero-section {
    background-image: url('/global/images/models/billeder/family.webp');
    background-position-y: center;
    background-position-x: center;
    background-size: cover;
    padding-top: var(--section-padding-y);
    padding-bottom: var(--section-padding-y);
    min-height:80vh;
    text-align: left;
    position: relative;
}*/
/*
#hero-section::before {
  content: "";
  position: absolute;
    z-index: 0;
  pointer-events: none;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.95) 0%,
    rgba(255,255,255,0.85) 20%,
    rgba(255,255,255,0.60) 40%,
    rgba(255,255,255,0.0) 70%
  );
}
*/


#hero-section > section-headers {
    text-align: left;
    padding-top:0;
        position: relative;
        z-index: 1;
}

#hero-section h1 {
    text-align: left;
}

#samarbejdspartnere_logoer {
    display: flex;
    width: 100%;
    justify-content: space-evenly;
    align-items: center; /* Vertically center children */
    flex-wrap: wrap;
    gap: 20px;
}

#samarbejdspartnere_logoer img {
    max-height:60px;
    max-width:200px;
}

#samarbejdspartnere_logoer a {
    display: inline-flex;
    transition: transform 180ms ease;
}

#samarbejdspartnere_logoer a:hover {
    transform: translateY(-2px);
}

#samarbejdspartnere_logoer a:focus-visible {
    outline: 3px solid var(--color-brand-primary);
    outline-offset: 5px;
}

@media (prefers-reduced-motion: reduce) {
    #samarbejdspartnere_logoer a {
        transition: none;
    }
}

#tiny-house-types-container {
    top:80%;
}

#modeller .model-card > .model-card-plantegning + model-card-text {
    margin-top: calc(var(--model-card-margin) * 0.25);
}

.front-page-open-house {
    width: 100%;
    padding: 88px 5vw 0;
    position: absolute;
    z-index: 100000;
    text-align: center;
    font-size: 95%;
    box-sizing: border-box;
}

.front-page-open-house a {
    color: #ffffff;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 3px 8px 5px;
    border-bottom: 1px solid rgba(201, 165, 122, 0.75);
    text-decoration: none;
    text-shadow: 0 2px 10px rgba(16, 31, 24, 0.55);
    transition: border-color 0.18s ease, color 0.18s ease;
}

.front-page-open-house-label {
    color: var(--color-brand-secondary);
    font-size: 0.55em;
    font-weight: 700;
}

.front-page-open-house-location {
    font-size: 0.8em;
}

.front-page-open-house a strong > span {
    display: inline-block;
    transition: transform 0.18s ease;
}

.front-page-open-house a:hover,
.front-page-open-house a:focus-visible {
    border-color: var(--color-white);
    color: var(--color-white);
    outline: none;
}

.front-page-open-house a:hover strong > span,
.front-page-open-house a:focus-visible strong > span {
    transform: translateX(4px);
}

.front-page-open-house a:focus-visible {
    outline: 2px solid var(--color-white);
    outline-offset: 4px;
}

.front-page-intro-lead {
    padding-top: 26px;
    margin-bottom: 14px;
}

.front-page-intro-details {
    margin-bottom: 46px;
}

.front-page-intro-details summary {
    color: var(--color-brand-primary);
    cursor: pointer;
    font-weight: 700;
}

.front-page-intro-details summary::marker {
    color: var(--color-brand-primary);
}

.front-page-intro-details p {
    margin: 12px 0 0;
}

@media only screen and (min-width: 802px) {
    .front-page-intro-details summary {
        display: none;
    }

    .front-page-intro-details p {
        margin-top: 0;
    }
}

@media only screen and (max-width: 801px) {
    .front-page-open-house {
        padding-top: 102px;
        font-size: 20px;
        line-height: 1.25;
        text-shadow: 0 2px 10px rgba(16, 31, 24, 0.55);
    }

    .front-page-open-house a {
        padding: 3px 8px 5px;
        background-color: transparent;
        border-bottom: 1px solid rgba(201, 165, 122, 0.75);
        border-radius: 0;
        box-shadow: none;
    }

    .front-page-open-house-location {
        font-size: 0.8em;
    }

    .front-page-open-house strong {
        font-weight: 600;
    }


    .front-page-h1 {
        display:none !important;
    }
    .front-page-h1-mobile {
        display:inline !important;
    }
    .front-page-h1-subtitle {
        font-size: 94% !important;
        white-space: nowrap;
    }
    hero-header {
        padding-top:min(30vh, 360px);
        color: rgba(239, 244, 238, 0.92);
        text-shadow: 0 2px 14px rgba(16, 31, 24, 0.5);
    }
    hero-tagline {
        padding-top:min(10vh, 120px);
    }
    #tiny-house-types-container {
        top:66%;
    }
}

@media only screen and (max-width: 1040px) {
    h1 {
        line-height: 105%;
        font-size:28px;
    }
}

.tilbud-section {
    background: linear-gradient(180deg, #f4f4cc 0%, #ececb9 100%);
    padding-bottom: var(--section-padding-y);
}

.tilbud-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(16px, 2.6vw, 30px);
}

.tilbud-card {
    background-color: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    padding: clamp(16px, 2vw, 28px);
}

.tilbud-card:only-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, calc(50% - 15px));
}

.tilbud-card h3 {
    margin-top: 4px;
    margin-bottom: 14px;
    line-height: 1.25;
}

.tilbud-card p {
    margin-bottom: 12px;
}

.tilbud-badge {
    display: inline-block;
    margin: 0;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 78%;
    letter-spacing: 0.03em;
    font-weight: 700;
    text-transform: uppercase;
}

.tilbud-card-handvaerker .tilbud-badge {
    background-color: rgba(79, 111, 115, 0.14);
    color: #294448;
}

.tilbud-card-udvikling .tilbud-badge {
    background-color: rgba(173, 72, 39, 0.16);
    color: #6f2610;
}

.tilbud-card-udvikling {
    border-color: rgba(173, 72, 39, 0.28);
    box-shadow: 0 10px 24px rgba(80, 45, 25, 0.12);
}

.tilbud-actions {
    margin-top: 18px;
    margin-bottom: 14px;
}

@media only screen and (max-width: 860px) {
    .tilbud-grid {
        grid-template-columns: 1fr;
    }

    .tilbud-card {
        padding: 18px;
    }

    .tilbud-card:only-child {
        width: 100%;
    }
}