/* ==========================================================================
   1. DESIGN TOKENS & RESET
   ========================================================================== */

:root {
    /* Farver */
    --primary-color: #1A3329;
    --secondary-color: #FDF5EC;
    --accent-color: #1A1A1A;
    --scrollbar-track: rgba(162, 150, 133, 0.522);
    --scrollbar-thumb: hsl(28, 18%, 57%);

    /* Typografi */
    --font-family: "DM Sans", sans-serif;
    --font-family-details: "Ephesis", serif;
    --font-size-body: 16px;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-s: 0.75rem;
    --spacing-sm: 1rem;
    --spacing-m: 1.5rem;
    --spacing-md: var(--spacing-m);
    --spacing-lg: 2.5rem;
    --spacing-xl: 4rem;
    --spacing-xxl: 6rem;
    --spacing-xxxl: 8rem;

    /* Layout & Komponent-mål */
    --header-height: 80px;
    --scroll-indicator-width: 2px;
    --scroll-indicator-thumb-width: 3px;
    --scroll-indicator-offset: 12px;
    --scroll-indicator-length: clamp(56px, 12vh, 96px);
    --toolbox-logo-size: 3.5rem;
    --toolbox-logo-gap: 2rem;
    --toolbox-scroll-duration: 42s;
}

/* Nulstilling og grundlæggende elementer */
*,
*::before,
*::after {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html,
body {
    scrollbar-width: none;
}

html {
    overflow-y: scroll;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 0;
    height: 0;
}

body {
    background-color: var(--secondary-color);
    font-family: var(--font-family);
    font-size: var(--font-size-body);
    margin: 0;
    overflow-x: hidden;
    padding-top: var(--header-height);
}

/* Grundlæggende typografi (Mobile-first) */
h1 {
    font-size: 3.5rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    margin-top: 0;
    font-family: var(--font-family-details);
    font-weight: 200;
    letter-spacing: 0.03em;
}

h2 {
    font-size: 2rem;
    font-weight: 500;
    color: var(--accent-color);
    margin-bottom: 1.2rem;
    margin-top: 0;
    font-family: "Baskervville", serif;
    letter-spacing: 0;
}

h4 {
    font-size: 1rem;
    font-weight: 200;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-family: var(--font-family);
    letter-spacing: 0;
    text-transform: uppercase;
}

p {
    font-size: 1rem;
    line-height: 1.6;
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-family: var(--font-family);
    letter-spacing: 0;
    text-wrap: pretty;
}

a {
    text-decoration: none;
}

li {
    list-style: none;
    padding: 0;
    margin: 0;
}

@media (min-width: 769px) {
    h1 {
        font-size: 5rem;
    }

    p {
        margin-right: 28px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    h1 {
        font-size: 4.5rem;
    }
}


/* ==========================================================================
   2. KNAPPER (BUTTONS)
   ========================================================================== */

.cta-button,
.secondary-button,
.cta-button-projects {
    box-sizing: border-box;
    min-height: 3rem;
    width: min(15rem, 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: 0;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    overflow: hidden;
    margin-inline: auto;
    box-shadow: 0 10px 18px rgba(26, 51, 41, 0.24);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.cta-button {
    background: linear-gradient(135deg, #1a3329 0%, #234437 100%);
    color: var(--secondary-color);
    border: 2px solid var(--primary-color);
}

.secondary-button {
    background: #e3dfd9;
    border: 2px solid #6c6358;
    color: var(--accent-color);
}

.cta-button-projects {
    width: fit-content;
    background: linear-gradient(135deg, #1a3329 0%, #234437 100%);
    color: var(--secondary-color);
    border: 2px solid var(--primary-color);
    margin-top: var(--spacing-sm);
}

.cta-button--about {
    width: min(17rem, 100%);
}

.cta-button--wordpress {
    width: min(17rem, 100%);
}

/* Gruppering af knapper i hero, cases mv. */
.hero-actions,
.project-case__actions,
.under-construction__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin: var(--spacing-m) auto;
    width: 100%;
}

/* Knap lysglimt-effekt (shine) */
.cta-button::before,
.secondary-button::before,
.cta-button-projects::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 70%;
    height: 100%;
    background: linear-gradient(110deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.28) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-20deg);
    transition: left 0.45s ease;
}

/* Knap tilstande (focus, active, hover) */
.cta-button:focus-visible,
.secondary-button:focus-visible,
.cta-button-projects:focus-visible {
    outline: 2px solid #2f6b54;
    outline-offset: 3px;
}

.cta-button:active,
.secondary-button:active,
.cta-button-projects:active {
    transform: translateY(0);
    box-shadow: 0 8px 14px rgba(26, 51, 41, 0.22);
}

/* Pil i knap */
.button-arrow {
    display: inline-flex;
    align-items: center;
    margin-left: 0.5rem;
    transition: max-width 0.3s ease, opacity 0.3s ease, transform 0.3s ease, margin-left 0.3s ease;
    max-width: 2em;
    opacity: 1;
}

@media (max-width: 768px) {
    .cta-button,
    .secondary-button,
    .cta-button-projects,
    .footer-button {
        display: flex;
        max-width: 100%;
        min-height: 3rem;
        margin-inline: auto;
    }

    .hero-actions,
    .project-case__actions,
    .under-construction__actions {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-sm);
        margin: var(--spacing-m) auto;
        width: 100%;
    }

    .aboutme-content .cta-button,
    .about-content .cta-button {
        display: flex;
        margin-inline: auto;
    }
}

@media (min-width: 769px) {
    .cta-button,
    .secondary-button,
    .footer-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        vertical-align: middle;
        white-space: nowrap;
        margin-inline: 0;
    }

    .hero-actions,
    .project-case__actions,
    .under-construction__actions {
        flex-direction: row;
        justify-content: flex-start;
        gap: var(--spacing-m);
        margin-inline: 0;
    }

    .hero-actions .cta-button,
    .hero-actions .secondary-button,
    .project-case__actions .cta-button,
    .project-case__actions .secondary-button,
    .under-construction__actions .cta-button,
    .under-construction__actions .secondary-button {
        margin-inline: 0;
    }

    .site-header__navigation .secondary-button {
        margin-inline: 0;
        width: auto;
    }

    .cta-button:hover,
    .secondary-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 24px rgba(26, 51, 41, 0.3);
    }

    .cta-button:hover::before,
    .secondary-button:hover::before {
        left: 130%;
    }

    .button-arrow {
        max-width: 0;
        opacity: 0;
        margin-left: 0;
        overflow: hidden;
        transform: scale(0.5);
        transform-origin: left center;
    }

    .cta-button:hover .button-arrow,
    .secondary-button:hover .button-arrow,
    .cta-button-projects:hover .button-arrow,
    .footer-button:hover .button-arrow {
        max-width: 2em;
        opacity: 1;
        margin-left: 0.6rem;
        transform: scale(1);
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .button-arrow {
        max-width: 2em;
        margin-left: 0.5rem;
        overflow: visible;
        opacity: 1;
        transform: scale(1);
    }
}


/* ==========================================================================
   3. SCROLL INDIKATORER & SCROLL-TO-TOP KNAP
   ========================================================================== */

.scroll-indicator {
    position: fixed;
    top: 0;
    right: var(--scroll-indicator-offset);
    width: var(--scroll-indicator-width);
    height: 100vh;
    background-color: var(--scrollbar-track);
    border-radius: 1px;
    pointer-events: none;
    z-index: 100;
}

.scroll-indicator__thumb {
    position: absolute;
    top: 0;
    left: 50%;
    width: var(--scroll-indicator-thumb-width);
    height: var(--scroll-indicator-length);
    background-color: var(--scrollbar-thumb);
    border-radius: 2px;
    will-change: transform;
}

.scroll-down-indicator {
    position: static;
    transform: none;
    width: 38px;
    height: 56px;
    margin: 8rem auto 0;
    border: 1.5px solid rgba(26, 51, 41, 0.65);
    border-radius: 999px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    color: var(--primary-color);
    z-index: 6;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

body.is-scrolled .scroll-down-indicator {
    opacity: 0;
    visibility: hidden;
}

.scroll-down-indicator__text {
    display: none;
}

.scroll-down-indicator__line {
    width: 3px;
    height: 8px;
    margin-top: 8px;
    background: var(--primary-color);
    border-radius: 999px;
    position: relative;
    animation: scroll-down-pulse 1.4s ease-in-out infinite;
}

.scroll-down-indicator__line::after {
    display: none;
}

@keyframes scroll-down-pulse {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    30% {
        opacity: 1;
    }
    100% {
        transform: translateY(12px);
        opacity: 0;
    }
}

.scroll-to-top {
    position: fixed;
    bottom: 2.5rem;
    right: 1rem;
    width: 44px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: 1px solid #e7e2da;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(26, 26, 26, 0.18);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.2s ease;
}

.scroll-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(26, 26, 26, 0.25);
}

.scroll-to-top:active {
    transform: translateY(0) scale(0.95);
}

@media (min-width: 769px) {
    .scroll-down-indicator {
        position: absolute;
        left: 50%;
        bottom: calc(var(--spacing-xxxl) * 2.5);
        transform: translateX(-50%);
        width: 48px;
        height: 80px;
        margin: 0;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .scroll-down-indicator {
        display: none;
    }
}

@media (min-width: 1440px) {
    .scroll-down-indicator {
        bottom: calc(var(--spacing-xxxl) * 2.5 - 7rem);
    }
}


/* ==========================================================================
   4. DEKORATIVE BLOMSTER-ELEMENTER & ANIMATIONER
   ========================================================================== */

.flower-left,
.flower-right {
    position: absolute;
    width: var(--flower-width, clamp(250px, 20vw, 270px));
    height: auto;
    pointer-events: none;
    z-index: var(--flower-z, 0);
}

.flower-left {
    left: var(--flower-offset, 0);
    right: auto;
}

.flower-right {
    right: var(--flower-offset, 0);
    left: auto;
}

.flowerOne {
    --flower-offset: calc(var(--spacing-xl) * -0.4);
    bottom: 88%;
    --flower-scale: scale(-1, -1);
    transform: var(--flower-scale);
    opacity: 1;
    clip-path: inset(0 100% 0 0);
    animation: flower-draw-in 1.2s linear 0.08s forwards, flower-hand-settle 0.5s cubic-bezier(0.25, 0.7, 0.2, 1) 1.38s forwards;
}

.flowerTwo {
    --flower-offset: calc(var(--spacing-xl) * -0.9);
    bottom: 38%;
    --flower-scale: scaleX(1);
    opacity: 1;
    clip-path: inset(0 100% 0 0);
    animation: flower-draw-in 1.9s linear 0.46s forwards, flower-hand-settle 0.5s cubic-bezier(0.25, 0.7, 0.2, 1) 2.54s forwards;
}

.flowerOneProjects,
.flowerTwoProjects,
.flowerThreeProjects,
.flowerFourProjects {
    clip-path: inset(0 100% 0 0);
}

.flowerOneProjects {
    --flower-offset: calc(var(--spacing-sm) * -0.9);
    --flower-scale: scale(-1, -1);
    transform: var(--flower-scale);
    animation: flower-draw-in 1.2s linear 0.08s forwards, flower-hand-settle 0.5s cubic-bezier(0.25, 0.7, 0.2, 1) 1.38s forwards;
    top: -80px;
}

.flowerTwoProjects {
    --flower-offset: calc(var(--spacing-xl) * -1.2);
    bottom: 100%;
    --flower-scale: scaleX(1);
    opacity: 1;
    animation: flower-draw-in 1.9s linear 0.46s forwards, flower-hand-settle 0.5s cubic-bezier(0.25, 0.7, 0.2, 1) 2.54s forwards;
}

.flowerThreeProjects {
    --flower-offset: calc(var(--spacing-xl) * -0.4);
    --flower-scale: scale(-1, 1);
    transform: var(--flower-scale);
    translate: 1.4rem 0;
    animation: flower-draw-in 1.2s linear 0.08s forwards, flower-hand-settle 0.5s cubic-bezier(0.25, 0.7, 0.2, 1) 1.38s forwards;
}

.flowerFourProjects {
    top: 6%;
    --flower-offset: calc(var(--spacing-sm) * -0.9);
    --flower-scale: scale(-1, 1);
    animation: flower-draw-in 1.2s linear 0.08s forwards, flower-hand-settle 0.5s cubic-bezier(0.25, 0.7, 0.2, 1) 1.38s forwards;
}

#contact-flower {
    top: -8%;
}

#about-page-flower-one {
    translate: 1.4rem -5rem;
}

#gallery-flower-one {
    top: 10%;
}

@keyframes flower-draw-in {
    0% {
        clip-path: inset(0 100% 0 0);
        opacity: 0.2;
        transform: var(--flower-scale) translateY(0.2px) rotate(-0.1deg);
        filter: blur(0.25px);
    }
    12% {
        opacity: 0.92;
        filter: blur(0);
    }
    100% {
        clip-path: inset(0 0 0 0);
        opacity: 1;
        transform: var(--flower-scale) translateY(0) rotate(0deg);
        filter: blur(0);
    }
}

@keyframes flower-hand-settle {
    0% {
        transform: var(--flower-scale) translateY(0.05px) rotate(0.05deg);
    }
    100% {
        transform: var(--flower-scale) translateY(0) rotate(0deg);
    }
}

@media (max-width: 768px) {
    .projects-header .flowerFourProjects {
        --flower-width: clamp(170px, 50vw, 200px);
        --flower-scale: scale(-1, -1);
        left: auto;
        right: calc(var(--spacing-sm) * -0.9);
        transform: var(--flower-scale);
        translate: 0 -4.4rem;
    }

    #about-flower-two {
        --flower-offset: -2.5rem;
    }

    #about-flower-three {
        translate: 1.4rem -8rem;
    }
}

@media (min-width: 769px) {
    .flowerOne {
        left: auto;
        right: calc(var(--spacing-xl) * -0.4);
        bottom: 84%;
    }

    .flowerTwo {
        left: calc(var(--spacing-md) * -1.2);
        right: auto;
        bottom: 32%;
        scale: 1.5;
    }

    .flowerOneProjects {
        --flower-offset: calc(var(--spacing-xxl) * 0.4);
    }

    #about-flower-three {
        --flower-offset: calc(var(--spacing-xl) * -0.9);
        top: -200px;
    }

    .flowerFourProjects {
        top: 20%;
        right: calc(var(--spacing-sm) * -1.4);
        --flower-scale: scale(-1, 1);
        transform: var(--flower-scale);
        animation: flower-draw-in 1.2s linear 0.08s forwards, flower-hand-settle 0.5s cubic-bezier(0.25, 0.7, 0.2, 1) 1.38s forwards;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .flower-left,
    .flower-right {
        translate: 0 -1rem;
    }

    #flower-two {
        translate: 0 -18rem;
        bottom: 22%;
    }
}

@media (min-width: 769px) and (max-width: 900px) {
    #flower-two {
        bottom: 18%;
    }
}

@media (min-width: 1025px) {
    #about-flower-one {
        top: -80px;
        --flower-offset: calc(var(--spacing-xxl) * -0.2);
    }
}

@media (min-width: 1440px) {
    #flower-two {
        bottom: calc(38% - 5rem);
    }
}


/* ==========================================================================
   5. HEADER & NAVIGATION
   ========================================================================== */

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: var(--secondary-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 1000;
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}

.site-header__logo {
    width: 18rem;
    height: auto;
    transition: width 0.3s ease;
}

.site-header.is-scrolled {
    padding: 0.5rem 1rem;
    box-shadow: 0 4px 20px rgba(26, 26, 26, 0.06);
}

.site-header.is-scrolled .site-header__logo {
    width: 12rem;
}

.site-header__menu-toggle {
    display: inline-flex;
    width: 2.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
    border: none;
    background-color: transparent;
    border-radius: 0;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    z-index: 30;
}

.site-header__menu-icon {
    width: calc(1.25rem + 1px);
    height: 1.5px;
    background-color: var(--primary-color);
    border-radius: 25px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transform-origin: center;
    transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease;
}

.site-header__menu-icon:nth-child(1) {
    top: calc(50% - 0.42rem);
}

.site-header__menu-icon:nth-child(2) {
    top: 50%;
}

.site-header__menu-icon:nth-child(3) {
    top: calc(50% + 0.42rem);
}

.site-header__overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 26, 26, 0.34);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 15;
}

.site-header.menu-open + .site-header__overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.site-header.menu-open .site-header__menu-icon:nth-child(1) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

.site-header.menu-open .site-header__menu-icon:nth-child(2) {
    opacity: 0;
}

.site-header.menu-open .site-header__menu-icon:nth-child(3) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
}

.site-header__navigation {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    width: min(70vw, 300px);
    height: 100vh;
    z-index: 20;
    background-color: var(--secondary-color);
    border-left: 1px solid #e7e2da;
    border-radius: 0;
    padding: 1.25rem;
    box-shadow: -10px 0 24px rgba(26, 26, 26, 0.08);
    flex-direction: column;
    justify-content: center;
    gap: 1.25rem;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.28s ease-out, opacity 0.2s ease-out, visibility 0.2s ease-out;
}

.site-header.menu-open .site-header__navigation {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.site-nav__list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
    padding: 0;
    margin: 0;
}

.site-nav__link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    white-space: nowrap;
    position: relative;
    display: block;
    padding: 0.65rem 0.9rem;
    border-radius: 999px;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.site-nav__link .site-nav__link-text {
    position: relative;
    display: inline-block;
}

.site-nav__link .site-nav__link-text::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.2rem;
    width: 0;
    height: 1.5px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.site-nav__link:focus-visible .site-nav__link-text::after {
    width: 100%;
}

.site-nav__link[aria-current="page"] {
    color: var(--accent-color);
}

.site-nav__link[aria-current="page"] .site-nav__link-text::after {
    width: 100%;
    background-color: var(--accent-color);
}

@media (max-width: 768px) {
    .site-header__logo {
        width: 20rem;
    }

    .site-header.is-scrolled .site-header__logo {
        width: 14rem;
    }
}

@media (min-width: 769px) {
    .site-header {
        padding: 1rem 2rem;
    }

    .site-header__menu-toggle {
        display: none;
    }

    .site-header__navigation {
        position: static;
        width: auto;
        height: auto;
        z-index: auto;
        background-color: transparent;
        border-left: 0;
        border-radius: 0;
        padding: 0;
        box-shadow: none;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 3rem;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: none;
    }

    .site-nav__list {
        flex-direction: row;
        gap: 2.5rem;
        width: auto;
    }

    .site-nav__link {
        display: inline-block;
        padding: 0;
        border-radius: 0;
        font-size: 1rem;
    }

    .site-nav__link:hover .site-nav__link-text::after {
        width: 100%;
    }

    .site-header__logo {
        width: 20rem;
    }

    .site-header.is-scrolled {
        padding: 0.5rem 2rem;
    }

    .site-header.is-scrolled .site-header__logo {
        width: 15rem;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .site-header__menu-toggle {
        display: inline-flex;
    }

    .site-header__navigation {
        position: fixed;
        top: 0;
        right: 0;
        width: min(62vw, 360px);
        height: 100vh;
        z-index: 20;
        box-sizing: border-box;
        padding: 2rem;
        background-color: var(--secondary-color);
        border-left: 1px solid #e7e2da;
        box-shadow: -10px 0 24px rgba(26, 26, 26, 0.08);
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        gap: 1.5rem;
        transform: translateX(100%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.28s ease-out, opacity 0.2s ease-out, visibility 0.2s ease-out;
    }

    .site-header.menu-open .site-header__navigation {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .site-nav__list {
        flex-direction: column;
        gap: 0.85rem;
        width: 100%;
    }

    .site-nav__link {
        display: block;
        padding: 0.65rem 0.9rem;
        border-radius: 999px;
        font-size: 1.2rem;
    }
}

@media (min-width: 1440px) {
    .site-header,
    .site-header.is-scrolled {
        padding-inline: max(2rem, calc((100vw - 1200px) / 2));
    }
}


/* ==========================================================================
   6. FOOTER
   ========================================================================== */

.site-footer {
    position: relative;
    background-color: var(--primary-color, #1a3328);
    color: var(--secondary-color, #eae5d9);
    padding: 3rem 1rem 2rem;
    margin-top: 60px;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: -49px;
    left: 0;
    width: 100%;
    height: 50px;
    background-image: url("../assets/footer_background.svg");
    background-repeat: no-repeat;
    background-size: cover;
}

.site-footer::after {
    content: "";
    position: absolute;
    bottom: calc(var(--spacing-lg) + -20px);
    left: -20px;
    width: 250px;
    height: 200px;
    background-image: url("../assets/flowers.svg");
    background-repeat: no-repeat;
    background-size: contain;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.site-footer h2 {
    color: var(--secondary-color, #eae5d9);
    margin-top: var(--spacing-lg);
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    position: relative;
}

.site-footer h2.has-flower::after {
    content: "";
    position: absolute;
    bottom: calc(var(--spacing-xxxl) * 1.5);
    right: -45px;
    width: 250px;
    height: 250px;
    background-image: url("../assets/flowers.svg");
    background-repeat: no-repeat;
    background-size: contain;
    transform: rotate(180deg);
    pointer-events: none;
}

.site-footer__contact {
    margin-bottom: var(--spacing-xxxl);
}

.site-footer__contact h4 {
    color: var(--secondary-color, #eae5d9);
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.site-footer p {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.site-footer__contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: var(--spacing-xl);
}

.site-footer__contact-list a {
    color: var(--secondary-color, #eae5d9);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    margin-bottom: 0;
    width: fit-content;
}

.site-footer__contact-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.site-footer__copyright {
    text-align: center;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-top: var(--spacing-xxxl);
    font-weight: 200;
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-family);
    letter-spacing: 1px;
}

@media (min-width: 769px) {
    .site-footer {
        display: grid;
        grid-template-columns: 1fr 1fr;
        justify-content: space-between;
        padding: 4rem 5rem 2rem;
        background-size: 200px;
    }

    .site-footer::before {
        top: -79px;
        height: 85px;
        width: 110%;
        background-size: cover;
    }

    .site-footer h2.has-flower::after {
        bottom: calc(var(--spacing-lg) * -1);
        right: -70px;
    }

    .site-footer__contact {
        padding-top: 0;
        padding-left: var(--spacing-xxxl);
    }

    .site-footer__contact-list a {
        position: relative;
    }

    .site-footer__contact-list a::after {
        content: "";
        position: absolute;
        left: calc(20px + 0.75rem);
        bottom: -0.2rem;
        width: 0;
        height: 1px;
        background-color: var(--secondary-color, #eae5d9);
        transition: width 0.3s ease;
    }

    .site-footer__contact-list a:hover::after,
    .site-footer__contact-list a:focus-visible::after {
        width: calc(100% - 20px - 0.75rem);
    }

    .site-footer__copyright {
        grid-column: 1 / -1;
        margin-top: 3rem;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .site-footer {
        display: flex;
        flex-direction: column;
        padding: 4rem 3rem 2rem;
    }

    .site-footer h2.has-flower::after {
        right: -45px;
    }

    .site-footer__contact {
        padding-left: 0;
    }

    .site-footer__copyright {
        width: 100%;
    }
}

@media (min-width: 1440px) {
    .site-footer {
        padding-inline: max(5rem, calc((100vw - 1200px) / 2));
    }

    .site-footer::before {
        top: -100px;
        height: 105px;
    }

    .site-footer::after {
        left: calc((100vw - 1200px) / 2 - 20px);
    }
}


/* ==========================================================================
   7. FORSIDE: HERO & PROJEKT-KARRUSEL
   ========================================================================== */

.hero-section {
    position: relative;
    min-height: 52rem;
    width: min(100% - 2rem, 1200px);
    margin: var(--spacing-sm) auto var(--spacing-lg);
    padding-top: var(--spacing-xxxl);
}

.hero-section p {
    margin-top: var(--spacing-m);
    margin-bottom: var(--spacing-m);
}

#update {
    font-size: 0.8rem;
    color: var(--accent-color);
    margin-top: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
}

.projects-carousel-outer {
    position: relative;
    width: 100%;
}

.projects-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.2rem;
    padding: 2.5rem 3.5rem;
    scrollbar-width: none;
}

.projects-wrapper::-webkit-scrollbar {
    display: none;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: var(--primary-color);
    border: 1px solid #e7e2da;
    color: var(--secondary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

.carousel-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    margin-top: -1.5rem;
}

.carousel-pagination__dot {
    width: 0.65rem;
    height: 0.65rem;
    padding: 0;
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: background-color 200ms ease, transform 200ms ease;
}

.carousel-pagination__dot.is-active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

.carousel-pagination__dot:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

/* Polaroider / Kort i Hero */
figure.projects1,
figure.projects2,
figure.projects3 {
    position: relative;
    box-sizing: border-box;
    width: min(75.6vw, 17.85rem);
    flex: 0 0 min(75.6vw, 17.85rem);
    margin: 2.5rem 0;
    scroll-snap-align: center;
    padding: 0;
    background-color: #ffffff;
    border: 1px solid #e7e2da;
    box-shadow: 0 8px 8px rgba(26, 26, 26, 0.16);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.project-link {
    box-sizing: border-box;
    width: 100%;
    padding: 0.45rem 0.45rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.project-link:focus-visible {
    outline: 2px solid #2f6b54;
    outline-offset: 4px;
    border-radius: 4px;
}

.projects1 img,
.projects2 img,
.projects3 img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.projects1 img,
.projects3 img {
    width: 30%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
}

.projects2 img {
    width: 94%;
}

.projects1 figcaption,
.projects2 figcaption,
.projects3 figcaption {
    margin-top: 0.55rem;
    padding: 0 0.45rem 0.7rem;
    font-size: 1.5rem;
    text-align: center;
    color: var(--accent-color);
    letter-spacing: 0.02em;
    font-family: var(--font-family-details);
}

.projects1 {
    transform: rotate(-4deg);
}

.projects2 {
    transform: rotate(3deg);
}

.projects3 {
    transform: rotate(-3deg);
}

@media (max-width: 768px) {
    .projects-wrapper {
        padding-inline: 0;
    }

    figure.projects1,
    figure.projects2,
    figure.projects3 {
        width: 94%;
        flex-basis: 94%;
        margin-inline: 3%;
    }
}

@media (min-width: 769px) {
    .hero-section {
        min-height: 51rem;
        margin: var(--spacing-lg);
        max-width: 75rem;
        margin-inline: auto;
        padding-top: var(--spacing-xl);
    }

    .hero-section > h1,
    .hero-section > p {
        max-width: min(46vw, 38rem);
    }

    .hero-section > p {
        text-wrap: pretty;
    }

    .projects-carousel-outer {
        position: absolute;
        top: var(--spacing-lg);
        right: 0;
        width: min(46vw, 38rem);
        height: 28rem;
    }

    .projects-wrapper {
        display: block;
        overflow: visible;
        padding: 0;
    }

    .carousel-btn,
    .carousel-pagination {
        display: none;
    }

    figure.projects1,
    figure.projects2,
    figure.projects3 {
        position: absolute;
        width: clamp(10.5rem, 15.75vw, 13.65rem);
        flex: none;
        margin: 0;
    }

    [data-project-step] {
        opacity: 1;
        filter: blur(0);
    }

    .projects1 {
        top: 2.5rem;
        left: 26%;
        transform: rotate(-4deg);
        z-index: 1;
    }

    .projects2 {
        top: 5rem;
        right: 2%;
        transform: rotate(4deg);
        z-index: 2;
    }

    .projects3 {
        top: 16rem;
        left: 30%;
        transform: rotate(8deg);
        z-index: 3;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .hero-section {
        box-sizing: border-box;
        width: calc(100% - 4rem);
        margin-left: auto;
        margin-right: auto;
        min-height: 52rem;
        padding-top: var(--spacing-xxl);
        padding-bottom: 0;
    }

    .hero-section > h1,
    .hero-section > p {
        max-width: 40rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-sm);
    }

    .projects-carousel-outer {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        height: 30rem;
        margin-top: 6rem;
    }

    .projects-wrapper {
        position: relative;
        display: block;
        width: min(100%, 38rem);
        height: 100%;
        margin-inline: auto;
        padding: 0;
        overflow: visible;
    }

    figure.projects1,
    figure.projects2,
    figure.projects3 {
        position: absolute;
        width: clamp(11rem, 27vw, 15rem);
        flex: none;
        margin: 0;
        opacity: 1;
        filter: none;
    }

    .projects1 {
        top: 1.5rem;
        left: 12%;
        transform: rotate(-4deg);
        z-index: 1;
    }

    .projects2 {
        top: 4rem;
        right: 10%;
        left: auto;
        transform: rotate(4deg);
        z-index: 2;
    }

    .projects3 {
        top: 16rem;
        left: 30%;
        right: auto;
        transform: rotate(8deg);
        z-index: 3;
    }

    .carousel-btn,
    .carousel-pagination {
        display: none;
    }
}

@media (min-width: 769px) and (max-width: 900px) {
    .hero-section {
        min-height: 40rem;
    }

    .projects1,
    .projects2,
    .projects3 {
        width: clamp(8.925rem, 19.95vw, 10.5rem);
        opacity: 0.9;
    }

    .projects1 {
        top: 1rem;
        left: 0;
        right: auto;
    }

    .projects2 {
        top: 4rem;
        right: 0;
    }

    .projects3 {
        top: 13rem;
        left: 24%;
        right: auto;
    }
}

@media (min-width: 1440px) {
    .hero-section {
        box-sizing: border-box;
        width: 1200px;
        margin-inline: auto;
    }
}


/* ==========================================================================
   8. FORSIDE: OM MIG INTRO, CITAT & TOOLBOX
   ========================================================================== */

/* Om mig sektion (Forside) */
.section-subtitle {
    font-size: 1rem;
    font-weight: 200;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

section.aboutme-section,
.aboutme-section {
    width: min(100% - 2rem, 1200px);
    margin: var(--spacing-xxl) auto 0;
    padding: var(--spacing-m) 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.aboutme-content .section-subtitle {
    margin-top: 0;
    margin-bottom: 0.1rem;
}

.aboutme-content h2 {
    color: var(--accent-color);
    font-family: "Baskervville", serif;
    font-weight: 500;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.aboutme-content p {
    max-width: 62ch;
    margin-right: 0;
    margin-top: 1rem;
    color: var(--primary-color);
}

.aboutme-content .cta-button {
    margin-bottom: 1.5rem;
    margin-top: 1.5rem;
    margin-left: auto;
    margin-right: auto;
}

.aboutme-image {
    width: 85%;
    height: auto;
    border: 0;
    border-radius: 8px;
    box-shadow: none;
    align-self: center;
}

@media (min-width: 769px) {
    section.aboutme-section {
        margin-top: calc(var(--spacing-xxl) * -1.5);
        padding: 0 var(--spacing-xl) clamp(2.5rem, 5vw, 4rem);
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: var(--spacing-xs);
        width: min(100% - 4rem, 1200px);
        margin-inline: auto;
    }

    section.aboutme-section .aboutme-image {
        order: initial;
        width: 85%;
        margin-top: 0;
        margin-left: 14%;
        flex: 0 0 min(100%, 420px);
    }

    section.aboutme-section .aboutme-content {
        order: initial;
        flex: 1 1 auto;
        min-width: 0;
    }

    .aboutme-content .section-subtitle {
        margin-bottom: 0.06rem;
        margin-top: 0.8rem;
    }

    .aboutme-content h2 {
        margin-bottom: 0.24rem;
    }

    .aboutme-content p:not(.section-subtitle) {
        margin-bottom: 0.9rem;
        max-width: 60ch;
    }

    .aboutme-content .cta-button {
        margin-top: var(--spacing-sm);
        margin-inline: 0;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    section.aboutme-section {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-lg);
        margin-top: 0.5rem;
        padding-inline: 0;
        box-sizing: border-box;
        width: calc(100% - 4rem);
        margin-left: auto;
        margin-right: auto;
    }

    section.aboutme-section .aboutme-content,
    section.aboutme-section .aboutme-image {
        order: initial;
    }

    section.aboutme-section .aboutme-image {
        flex: none;
        width: min(72%, 32rem);
        margin: 0 auto;
    }
}

/* Citat sektion */
.quote-section p:not(.quote-attribution) {
    font-style: italic;
    color: var(--primary-color);
    font-family: var(--font-family-details);
    font-size: 40px;
    line-height: 1.6;
    text-align: center;
}

.quote-section .quote-attribution {
    font-size: 1.2rem;
    font-weight: 200;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: var(--spacing-xxxl);
    text-align: center;
    font-family: var(--font-family);
    letter-spacing: 0;
    text-transform: uppercase;
}

@media (min-width: 769px) {
    .quote-section p:not(.quote-attribution) {
        font-size: 60px;
    }
}

@media (min-width: 1440px) {
    .quote-content {
        width: min(calc(100% - 4rem), 1200px);
        margin-inline: auto;
    }
}

/* Toolbox sektion */
.toolbox {
    padding: 0 var(--spacing-sm) clamp(2.5rem, 7vw, 4rem);
    justify-content: center;
}

.toolbox-content {
    width: min(100% - 2rem, 1200px);
    margin-inline: auto;
}

.toolbox-content .section-subtitle {
    margin-bottom: 1rem;
    margin-top: 0;
    text-align: center;
}

.toolbox-content h2 {
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.toolbox-content p:not(.section-subtitle) {
    margin-top: 0.5rem;
    margin-bottom: var(--spacing-lg);
}

.toolbox-carousel {
    width: 100%;
    overflow: hidden;
    padding-block: 0.4rem;
    mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.toolbox-track {
    display: flex;
    width: max-content;
    will-change: transform;
    animation: toolbox-scroll var(--toolbox-scroll-duration) linear infinite;
}

.toolbox-list {
    display: flex;
    align-items: center;
    gap: var(--toolbox-logo-gap);
    margin: 0;
    padding: 0;
    list-style: none;
    flex-shrink: 0;
}

.toolbox-item {
    flex: 0 0 auto;
    width: var(--toolbox-logo-size);
    height: var(--toolbox-logo-size);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transform-origin: center;
}

.toolbox-item.is-spinning {
    animation: toolbox-logo-spin 700ms ease-in-out 1;
}

.toolbox-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.toolbox-list .toolbox-item:first-child {
    margin-left: 1.5rem;
}

.toolbox-icon[src*="html_logo.svg"],
.toolbox-icon[src*="nodejs_logo.svg"] {
    transform: scale(1.20);
}

.toolbox-icon[src*="elementor_logo.svg"] {
    transform: scale(0.9);
}

@keyframes toolbox-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@keyframes toolbox-logo-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(720deg);
    }
}

.toolbox-carousel:hover .toolbox-track {
    animation-play-state: paused;
}

@media (min-width: 769px) {
    .toolbox {
        padding: 0 var(--spacing-xl) clamp(3rem, 6vw, 5rem);
    }

    .toolbox-content {
        width: min(100% - 4rem, 1200px);
    }

    .toolbox-item {
        width: 4rem;
        height: 4rem;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .toolbox-content {
        box-sizing: border-box;
        width: calc(100% - 4rem);
        margin-left: auto;
        margin-right: auto;
    }
}

@media (min-width: 769px) and (max-width: 900px) {
    .toolbox-item {
        width: 3.4rem;
        height: 3.4rem;
    }
}


/* ==========================================================================
   9. SIDE: OM MIG
   ========================================================================== */

.about-section {
    position: relative;
    padding: var(--spacing-m) 0;
    width: min(100% - 2rem, 1200px);
    margin: var(--spacing-xl) auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.about-content h2,
.about-content h3 {
    color: var(--accent-color);
    font-family: "Baskervville", serif;
    font-weight: 500;
}

.about-content p {
    margin-top: 1rem;
    max-width: 62ch;
    margin-right: 0;
    color: var(--primary-color);
}

.about-content .cta-button {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    margin-inline: auto;
    display: flex;
}

.about-image {
    width: 85%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: none;
    align-self: center;
    margin-inline: auto;
}

.about-signature-container {
    display: grid;
    justify-items: center;
    text-align: center;
}

.about-signature {
    display: block;
    width: min(8rem, 55%);
    height: auto;
    margin-top: 0.5rem;
    margin-bottom: var(--spacing-m);
}

@media (max-width: 768px) {
    .about-section .about-image {
        display: block;
        align-self: center;
        margin-inline: auto;
    }
}

@media (min-width: 769px) {
    .about-section {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-xl);
        align-items: center;
        padding: 0 var(--spacing-lg) clamp(2.5rem, 5vw, 4rem);
    }

    .about-section--reverse .about-content {
        order: 2;
    }

    .about-section--reverse .about-image {
        order: 1;
    }

    .about-content .cta-button {
        margin-top: var(--spacing-sm);
        margin-bottom: 0;
        margin-inline: 0;
        display: inline-flex;
    }

    .about-signature-container {
        margin-top: -3rem;
        justify-items: start;
        text-align: start;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    section.about-section {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-lg);
        box-sizing: border-box;
        width: calc(100% - 4rem);
        margin-left: auto;
        margin-right: auto;
    }

    .about-section--reverse .about-content,
    .about-section--reverse .about-image {
        order: initial;
    }

    .about-section .about-image,
    #about-image-reverse {
        width: min(55%, 32rem);
        margin: 0 auto 1rem;
    }
}

@media (min-width: 1440px) {
    section.about-section {
        box-sizing: border-box;
        width: 1200px;
        margin-inline: auto;
    }
}


/* ==========================================================================
   10. SIDE: PROJEKTOVERSIGT (PROJECTS)
   ========================================================================== */

.projects-container {
    width: min(100% - 2rem, 1200px);
    margin: var(--spacing-xl) auto 0;
}

.projects-header {
    position: relative;
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.projectsh1 {
    font-family: "Baskervville", serif;
}

.projects-header h2 {
    color: var(--accent-color);
    font-family: "Baskervville", serif;
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
}

.projects-header p {
    margin: 0.5rem auto 0 auto;
    max-width: 62ch;
    color: var(--primary-color);
}

/* Filter Navigation */
.projects-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: calc(var(--spacing-sm) * 0.5);
    margin-bottom: var(--spacing-xl);
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 8px;
    font-family: var(--font-family);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease-in-out;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: #fff;
}

/* Cards Layout (Mobil: 1 kolonne) */
.projects-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

/* Enkelt Projekt-Card med heldækkende billede */
.project-card {
    display: flex;
    flex-direction: column;
    position: relative;
    isolation: isolate;
    min-height: 28rem;
    background-color: var(--primary-color);
    border: 0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-inline: 0;
    transition: transform 0.2s ease;
    animation: fadeIn 0.4s ease forwards;
}

.project-card:hover {
    transform: translateY(-4px);
}

.project-card__image-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    z-index: -2;
    background-color: #eee8df;
    overflow: hidden;
}

.project-card__image-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10, 24, 19, 0.94) 0%,
        rgba(10, 24, 19, 0.72) 44%,
        rgba(10, 24, 19, 0.12) 78%
    );
}

.project-card__image {
    width: 100%;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
    object-fit: contain;
    transition: transform 450ms ease;
}

.project-card--cover .project-card__image {
    object-fit: cover;
}

.project-card:hover .project-card__image {
    transform: scale(1.04);
}

.project-card__content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
    justify-content: flex-end;
    padding: var(--spacing-m);
    box-sizing: border-box;
    min-height: 28rem;
    color: #fff;
}

.project-card__tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #fff;
    font-weight: 400;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.project-card__title {
    margin: 0;
    color: #fff;
    font-family: "Baskervville", serif;
    font-weight: 500;
}

.project-card__description {
    margin: 0;
    font-size: 0.95rem;
    color: #fff;
    line-height: 1.5;
    max-width: 62ch;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.project-card .cta-button-projects {
    margin-inline: 0;
    border-color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 768px) {
    .project-card .cta-button-projects {
        margin-inline: auto;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 769px) {
    .projects-container {
        padding-top: 0;
    }

    .projects-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-xl);
    }

    .project-card,
    .project-card__content {
        min-height: clamp(28rem, 37vw, 34rem);
    }

    .project-card {
        margin-left: var(--spacing-sm);
        margin-right: var(--spacing-sm);
        margin-inline: 0;
    }
}

@media (min-width: 769px) and (hover: hover) {
    .project-card__description {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(0.5rem);
        transition: max-height 350ms ease, opacity 250ms ease, transform 350ms ease;
    }

    .project-card:hover .project-card__description,
    .project-card:focus-within .project-card__description {
        max-height: 8rem;
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .projects-container {
        box-sizing: border-box;
        width: calc(100% - 4rem);
        margin-left: auto;
        margin-right: auto;
    }

    .projects-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-xl);
    }

    .project-card {
        width: min(100%, 38rem);
        margin-inline: auto;
    }

    .project-card__description {
        max-height: none;
        overflow: visible;
        opacity: 1;
        transform: none;
    }
}


/* ==========================================================================
   11. SIDE: PROJEKT-CASES
   ========================================================================== */

.project-case {
    width: min(100% - 2rem, 1200px);
    margin: var(--spacing-xxxl) auto var(--spacing-xxxl);
    color: var(--primary-color);
}

.project-case__hero {
    position: relative;
    display: grid;
    gap: var(--spacing-lg);
    align-items: center;
    margin-bottom: var(--spacing-xl);
}

.project-case__hero-content {
    max-width: 42rem;
}

.project-case__eyebrow {
    margin-bottom: var(--spacing-sm);
    color: var(--accent-color);
    font-family: var(--font-family);
    font-size: 0.8rem;
    font-weight: 200;
    letter-spacing: 0;
    text-transform: uppercase;
}

.project-case__title,
.projects-header__title {
    max-width: 19ch;
    color: var(--accent-color);
    font-family: "Baskervville", serif;
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.15;
    margin-top: 0;
    margin-bottom: 1.2rem;
}

.project-case__intro {
    max-width: 62ch;
    font-size: 1rem;
}

.project-case__back-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 400;
    border-bottom: 1px solid currentColor;
    padding-bottom: 0.2rem;
}

.project-case__hero-visual {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: none;
}

.project-case__hero-visual img {
    display: block;
    max-width: 50%;
    margin-inline: auto;
}

.under-construction .project-case__hero {
    min-height: clamp(34rem, 70vh, 48rem);
}

.under-construction .project-case__hero-visual img {
    width: min(100%, 30rem);
    max-width: 100%;
}

.under-construction__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-m);
    margin-top: var(--spacing-lg);
}

/* Alternerende case sektioner */
.project-case__section {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    padding: var(--spacing-m) 0;
    margin-top: var(--spacing-xl);
}

.project-case__section-content {
    max-width: 80ch;
}

.project-case__section-content h2 {
    margin-top: 0;
}

.project-case__image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.project-case__image.project-case__image--bodymap {
    width: 50%;
    justify-self: center;
}

@media (min-width: 769px) {
    .project-case {
        margin-top: var(--spacing-xxl);
    }

    .project-case__hero {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-xl);
        min-height: 0;
    }

    .project-case__title {
        font-size: 3rem;
    }

    .project-case__section {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: var(--spacing-xl);
        margin-top: var(--spacing-xxl);
    }

    .project-case__section--reverse .project-case__section-content {
        order: 2;
    }

    .project-case__section--reverse .project-case__image {
        order: 1;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .project-case {
        box-sizing: border-box;
        width: calc(100% - 4rem);
        margin-left: auto;
        margin-right: auto;
    }

    .project-case__hero,
    .project-case__section {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: var(--spacing-lg);
        min-height: 0;
    }

    .project-case__section--reverse .project-case__section-content,
    .project-case__section--reverse .project-case__image {
        order: initial;
    }

    .project-case__hero-content,
    .project-case__section-content {
        max-width: 48rem;
    }

    .project-case__hero-visual {
        width: 50%;
        height: auto;
        margin-inline: auto;
        border-radius: 8px;
        box-shadow: none;
    }

    .project-case__hero-visual img,
    .project-case__image {
        width: min(100%, 40rem);
        max-width: 80%;
        margin-inline: auto;
    }

    .under-construction .project-case__hero {
        min-height: 38rem;
    }
}


/* ==========================================================================
   12. SIDE: GALLERI & LIGHTBOX
   ========================================================================== */

.project-gallery-section {
    margin-top: var(--spacing-xxl);
}

.project-case > .project-gallery-section:first-child {
    margin-top: 0;
}

.project-gallery-section__intro {
    display: grid;
    justify-items: center;
    max-width: 62ch;
    margin-inline: auto;
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.project-gallery-section__intro > p {
    margin-right: 0;
}

.project-gallery-section__intro h1 {
    margin-top: 0;
    margin-bottom: 1.2rem;
    color: var(--accent-color);
    font-family: "Baskervville", serif;
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: 0;
}

.project-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.project-gallery__item {
    margin: 0;
    overflow: hidden;
    border: 1px solid #e7e2da;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 8px 20px rgba(26, 26, 26, 0.08);
    cursor: pointer;
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.project-gallery__item img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.project-gallery--photos .project-gallery__item img {
    aspect-ratio: 4 / 3;
}

.project-gallery__item figcaption {
    padding: 0.9rem 1rem;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.project-gallery__item:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(26, 26, 26, 0.14);
}

.project-gallery__item:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
}

/* Lightbox Modal */
body.lightbox-open {
    overflow: hidden;
}

.gallery-lightbox[hidden] {
    display: none;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(0.5rem, 2vw, 2rem);
    padding: 0;
    background-color: rgba(10, 20, 16, 0.94);
    backdrop-filter: blur(6px);
}

.gallery-lightbox__figure {
    display: flex;
    width: 100%;
    height: calc(100vh - 5rem);
    min-width: 0;
    margin: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: transparent;
}

.gallery-lightbox__image {
    display: block;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: none;
}

.gallery-lightbox__caption {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.85rem;
    color: var(--secondary-color);
    font-size: 0.95rem;
}

.gallery-lightbox__count {
    white-space: nowrap;
    opacity: 0.7;
}

.gallery-lightbox__button,
.gallery-lightbox__close {
    border: 1px solid rgba(253, 245, 236, 0.55);
    background-color: rgba(253, 245, 236, 0.1);
    color: var(--secondary-color);
    cursor: pointer;
    transition: background-color 180ms ease, transform 180ms ease;
}

.gallery-lightbox__button {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    font-size: 1.1rem;
}

.gallery-lightbox__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    font-size: 1.8rem;
    line-height: 1;
}

.gallery-lightbox__button:hover,
.gallery-lightbox__close:hover {
    background-color: rgba(253, 245, 236, 0.22);
    transform: scale(1.05);
}

.gallery-lightbox__button:focus-visible,
.gallery-lightbox__close:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 3px;
}

@media (max-width: 768px) {
    .gallery-lightbox {
        grid-template-columns: 1fr 1fr;
        align-content: center;
    }

    .gallery-lightbox__figure {
        grid-column: 1 / -1;
        grid-row: 1;
        height: calc(100vh - 10rem);
    }

    .gallery-lightbox__button {
        grid-row: 2;
        justify-self: center;
    }

    .gallery-lightbox__button--previous {
        justify-self: end;
    }

    .gallery-lightbox__button--next {
        justify-self: start;
    }
}

@media (min-width: 769px) {
    .project-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1025px) {
    .project-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


/* ==========================================================================
   13. SIDE: KONTAKT
   ========================================================================== */

.contact-page {
    position: relative;
    width: min(100% - 2rem, 1200px);
    margin: var(--spacing-xl) auto var(--spacing-xxxl);
    color: var(--primary-color);
}

.contact-page__intro {
    position: relative;
    margin-bottom: var(--spacing-lg);
}

.contact-page__eyebrow {
    margin-bottom: var(--spacing-sm);
    color: var(--accent-color);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: center;
}

.contact-page__intro p {
    margin-top: 0;
    text-align: center;
}

.contact-page h1,
.contact-page h2 {
    color: var(--accent-color);
    font-family: "Baskervville", serif;
    font-weight: 500;
    text-align: center;
    margin-top: 0;
    margin-bottom: var(--spacing-sm);
}

.contact-page h1 {
    font-size: 2.2rem;
    line-height: 1.15;
}

.contact-page__content {
    display: grid;
    gap: var(--spacing-xl);
}

.contact-form {
    padding: var(--spacing-m);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: grid;
    gap: var(--spacing-m);
    box-sizing: border-box;
    width: min(100%, 42rem);
    margin-inline: auto;
}

.contact-form__field {
    display: grid;
    gap: 0.4rem;
}

.contact-form__submit {
    justify-self: center;
    margin-inline: 0;
}

.contact-form__submit:disabled {
    cursor: wait;
    opacity: 0.65;
}

.contact-form__status {
    min-height: 1.5em;
    margin: 0;
    text-align: center;
}

.contact-form__status--success {
    color: #276738;
}

.contact-form__status--error {
    color: #a52a2a;
}

.contact-form label {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.75rem;
    border: 1px solid #cfc7bd;
    border-radius: 4px;
    background: #e7e8e5;
    color: var(--accent-color);
    font: inherit;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .contact-page__intro {
        margin-top: 25%;
    }
}

@media (min-width: 769px) {
    .contact-page {
        margin-top: var(--spacing-xxl);
    }

    .contact-page h1 {
        font-size: 3rem;
    }

    .contact-page__content {
        display: flex;
        justify-content: center;
        align-items: start;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .contact-page {
        box-sizing: border-box;
        width: calc(100% - 4rem);
        margin-left: auto;
        margin-right: auto;
    }

    .contact-page h1 {
        font-size: 2.5rem;
    }

    .contact-page__content {
        display: grid;
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .contact-form {
        width: min(100%, 42rem);
        margin-inline: auto;
    }
}


/* ==========================================================================
   14. SCROLL REVEAL & MOTION PREFERENCES (ACCESSIBILITY)
   ========================================================================== */

.scroll-reveal-ready .scroll-reveal {
    opacity: 0;
    transition: opacity 700ms ease-out;
    will-change: opacity;
}

.scroll-reveal-ready .scroll-reveal.is-revealed {
    opacity: 1;
    will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
    .flowerOne,
    .flowerTwo,
    .flowerOneProjects,
    .flowerTwoProjects,
    .flowerThreeProjects,
    .flowerFourProjects {
        animation: none;
        opacity: 1;
        clip-path: inset(0 0 0 0);
        transform: var(--flower-scale);
    }

    [data-project-step] {
        transition: none;
        filter: none;
    }

    .scroll-down-indicator__line::after,
    .scroll-down-indicator__line {
        animation: none;
        transform: translateY(4px);
        opacity: 1;
    }

    .toolbox-track {
        animation: none;
        transform: none;
    }

    .toolbox-item.is-spinning {
        animation: none;
    }

    .scroll-reveal-ready .scroll-reveal,
    .scroll-reveal-ready .scroll-reveal.is-revealed {
        opacity: 1;
        transition: none;
    }
}

