/* ========================================
   TEKSTFARVE - MALERI SIDE
======================================== */

body {
    color: #4d3f38;
    font-family: Arial, Helvetica, sans-serif;
}

/* Overskrifter */

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #4d3f38;
}


/* Almindelig tekst */

p {
    color: #4d3f38;
}


/* Links */

a {
    color: #4d3f38;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: "Didot", "Times New Roman", serif;
    background-color: #f4f4f4;
    color: #4d3f38;
  }
  
  /* ========================================
   HERO / CONTAINER
======================================== */

.container {
    margin-top: 70px;

    display: grid;
    grid-template-columns: 2fr 1fr;

    gap: 4rem;

    padding: 4rem;

    align-items: center;
}


/* ========================================
   IMAGE
======================================== */

.image-wrapper {
    overflow: hidden;
}


.image-wrapper img {
    width: 100%;
    height: auto;

    opacity: 0;

    transform: scale(1.05);

    animation: imageReveal 1.6s ease forwards;
}


@keyframes imageReveal {

    to {
        opacity: 1;
        transform: scale(1);
    }

}


/* ========================================
   ART PORTFOLIO
======================================== */

.text-wrapper {
    display: flex;
    flex-direction: column;

    align-items: flex-end;
padding: 40px;
    text-align: right;
}


.text-wrapper h1 {

    font-size: 70px;
    line-height: 0.95;

    color: #4d3f38;

    margin: 0;

    opacity: 0;

    transform: translateX(60px);

    animation: textSlide 1.2s ease forwards;
    animation-delay: 0.8s;
}


@keyframes textSlide {

    to {
        opacity: 1;
        transform: translateX(0);
    }

}


/* ========================================
   TEKST UNDER OVERSKRIFT
======================================== */

.portfolio-intro {
    max-width: 480px;

    margin-top: 30px;

    font-size: 18px;

    line-height: 1.6;

    color: #4d3f38;

    text-align: right;

    opacity: 0;

    transform: translateX(60px);

    animation: textSlide 1.2s ease forwards;
    animation-delay: 1.1s;
}


/* ========================================
   CTA
======================================== */

.cta {
    margin-top: 100px;

    font-size: 0.9rem;

    color: #4d3f38;
}

/* ABOUT SECTION */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 6rem 4rem;
  align-items: center;
  padding: 100px;
}

/* START STATE (hidden) */
.about-image img,
.about-text h2,
.about-text p {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* ACTIVE STATE (shown) */
.about-section.is-visible img,
.about-section.is-visible h2,
.about-section.is-visible p {
  opacity: 1;
  transform: translateY(0);
}

/* SMALL DELAY FOR TEXT */
.about-text h2 {
  transition-delay: 0.1s;
}

.about-text p {
  transition-delay: 0.25s;
}
  
.about-image img {
    width: 100%;
    height: auto;
  }
  
  .about-text h2 {
    font-size: 48px;
    margin-bottom: 1rem;
  }
  
  .about-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
  }

  .art-section {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 40px;
    background-color: #c6beac;
    display: flex;
    justify-content: center;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
    
  }
  
  .art-section.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  .art-text {
    flex: 1;
    text-align: center;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    padding-right: 80px;
    padding-left: 30px;
  }
  
  .art-text h2 {
    font-size: 48px;
    margin-bottom: 1rem;
  }

  .image-row-section {
  padding: 50px 0;
  text-align: center;
  background-color: #c6beac;
}

.image-container {
  display: flex;
  justify-content: center;
  gap: 20px; /* afstand mellem billederne */
}

.image-container img {
  width: 400px;      /* fast kvadratisk størrelse */
  height: 400px;
  object-fit: cover; /* sørger for billedet fylder kvadratet uden at strække */
  opacity: 0;        /* start usynlige */
  transform: translateY(50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.image-container.is-visible img {
  opacity: 1;
  transform: translateY(0);
}

.back-btn {
    display: inline-block;

    background: #c6beac;

    border: 1px solid #4d3f38;

    padding: 12px 22px;

    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;

    letter-spacing: 1.5px;
    text-transform: uppercase;

    color: #4d3f38;

    text-decoration: none;

    transition: .3s;

    position: absolute;
    top: 45px;
    left: 65px;

    z-index: 100;
}

.back-btn:hover {
    background: white;

    color: #4d3f38;

    transform: translateY(-5px);
}

/* ---------------------------------------
   HEADER - MALERIER
----------------------------------------- */

.malerier-page .navbar {
    background: #c6beac;
}

.malerier-page .dropdown-menu {
    background: #c6beac;
}


.header {
    position: fixed;

    top: 25px;
    left: 50%;

    transform: translate(-50%, -80px);

    opacity: 0;
    visibility: hidden;

    z-index: 9999;

    transition:
        transform .9s ease-out,
        opacity .9s ease-out;
}


.header.show {
    transform: translate(-50%, 0);

    opacity: 1;
    visibility: visible;
}


.header.hide {
    transform: translate(-50%, -150%);
}


.navbar {
    width: fit-content;

    background: #4d3f38;

    display: flex;
    align-items: center;

    gap: 10px;

    padding: 18px 10px;
}


/* ---------------------------------------
   LOGO
----------------------------------------- */

.logo img {
    width: 45px;
    display: block;
}


/* ---------------------------------------
   MENU
----------------------------------------- */

.nav-links {
    list-style: none;

    display: flex;
    gap: 45px;

    margin: 0;
    padding: 0;
}


.nav-links li {
    position: relative;
}


.nav-links a {
    color: #4d3f38;

    text-decoration: none;

    font-family: sans-serif;
    font-weight: 600;

    position: relative;

    padding-bottom: 5px;
}


/* ---------------------------------------
   HOVER STREG
----------------------------------------- */

.nav-links a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 100%;
    height: 2px;

    background: #4d3f38;

    transform: scaleX(0);
    transform-origin: left;

    transition: .35s;
}


.nav-links a:hover::after {
    transform: scaleX(1);
}


/* ---------------------------------------
   DROPDOWN
----------------------------------------- */

.dropdown-menu {
    position: absolute;

    top: 150%;
    left: 0;

    background: #4d3f38;

    min-width: 180px;

    list-style: none;

    padding: 12px 0;

    opacity: 0;
    visibility: hidden;

    transition: .3s;
}


.dropdown-menu li {
    padding: 10px 20px;
}


.dropdown-menu a {
    display: block;
    width: 100%;
}


.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}


.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   CUSTOM CURSOR – MALERIER
======================================== */

html,
body,
body * {
    cursor: none !important;
}

.malerier-page .cursor {
    width: 14px;
    height: 14px;

    background: #4d3f38;

    position: fixed;
    top: 0;
    left: 0;

    pointer-events: none;

    z-index: 2147483647 !important;

    transform: translate(-50%, -50%) rotate(45deg);

    transition:
        width .2s,
        height .2s,
        background-color .2s;
}

/* =========================================================
   FOOTER
========================================================= */

.kontakt-footer {
    width: 100%;
    background: #F4F4F4;
}

.kontakt-footer .kontakt-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 70px 80px 0;
}

.kontakt-footer .kontakt-title {
    margin: 0;
    padding: 0;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 90px;
    line-height: normal;
    font-weight: 900;
    color: #4D3F38;
    text-transform: uppercase;
}

.kontakt-footer .kontakt-subtitle {
    width: 100%;
    max-width: none;
    margin: 30px 0 40px;
    padding: 0;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    line-height: normal;
    font-weight: 700;
    color: #4D3F38;
    text-transform: uppercase;
}

.kontakt-footer .kontakt-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 35px 0;
    margin: 0;
    border-bottom: 2px solid #4D3F38;
}

.kontakt-footer .kontakt-label,
.kontakt-footer .kontakt-info {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
    line-height: normal;
    font-weight: 700;
    color: #4D3F38;
    text-transform: uppercase;
}

.kontakt-footer .kontakt-info {
    text-decoration: none;
}

.kontakt-footer .kontakt-info:hover {
    opacity: 0.7;
}

.kontakt-footer .footer-billede {
    width: 100%;
    height: 230px;
    margin-top: 80px;
    padding: 0;
    background: #C6BEAC;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.kontakt-footer .footer-billede img {
    display: block;
    width: 90%;
    max-width: 1500px;
    height: auto;
    margin: 0;
    padding: 0;
}

.back-btn{

    background:white;

    border:1px solid #4d3f38;

    padding:18px 20px;

    font-family:var(--font-heading);
    font-size:12px;
    font-weight:600;

    letter-spacing:1.5px;
    text-transform:uppercase;

    color:#4d3f38;

    padding:12px 22px;

    transition:.3s;

}

.back-btn:hover{

    background:white;

    color:#1e281e;

    transform:translateY(-5px);
}

.corner-button.show {

    opacity:1;

    transform:translateY(0);

}
.back-btn {

    background:white;

    border:1px solid #4d3f38;

    padding:18px 20px;

    font-family:Arial, Helvetica, sans-serif    ;
    font-size:12px;
    font-weight:600;

    letter-spacing:1.5px;
    text-transform:uppercase;

    color:#4d3f38;
    transition:.3s;
    position: fixed;

    top: 40px;
    left: 65px;

    z-index: 9999;

    display: inline-block;

    text-decoration: none;
}


.back-btn:hover {
    background: white;

    color: #1e281e;

    transform: translateY(-5px);
}
/* ========================================
   MALERIER – RESPONSIV
======================================== */

.malerier-page .art-menu-toggle {
    display: none;
}

/* Billedrækken kan krympe uden at løbe ud af siden */
.malerier-page .image-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: calc(100% - 40px);
    max-width: 1240px;
    margin: 0 auto;
    gap: 20px;
}

.malerier-page .image-container img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
}

/* MINDRE DESKTOP OG TABLET */
@media screen and (min-width: 901px) and (max-width: 1200px) {
    .malerier-page .container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px;
        padding: 60px 35px;
    }

    .malerier-page .text-wrapper {
        min-width: 0;
        padding: 0;
    }

    .malerier-page .text-wrapper h1 {
        font-size: clamp(3rem, 5.5vw, 4.3rem);
    }

    .malerier-page .about-section {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px;
        padding: 70px 35px;
    }
}

/* MOBIL OG TABLET */
@media screen and (max-width: 900px) {

    /* HEADER */
    .malerier-page .header {
        top: 12px;
        left: 50%;
        width: calc(100% - 32px);
        max-width: 600px;
    }

    .malerier-page .navbar {
        position: relative;
        width: 100%;
        min-height: 64px;
        padding: 12px 18px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: #c6beac;
    }

    .malerier-page .logo img {
        width: 38px;
        height: auto;
    }

    .malerier-page .art-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        padding: 8px 12px;
        border: 1px solid #4d3f38;
        background: transparent;
        color: #4d3f38;
        font: 600 1rem Arial, sans-serif;
    }

    .malerier-page #art-navigation {
        position: absolute;
        inset: 100% 0 auto;
        width: 100%;
        max-height: calc(100dvh - 100px);
        overflow-y: auto;

        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;

        margin: 0;
        padding: 12px 18px 20px;
        background: #c6beac;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    }

    .malerier-page #art-navigation.open {
        display: flex;
    }

    .malerier-page #art-navigation li {
        width: 100%;
    }

    .malerier-page #art-navigation a {
        display: block;
        min-height: 44px;
        padding: 12px 0;
        color: #4d3f38;
        font-size: 1rem;
        text-align: left;
    }

    .malerier-page #art-navigation .dropdown-menu {
        position: static;
        display: none;
        width: 100%;
        min-width: 0;
        padding: 0 0 0 16px;
        background: #c6beac;
        box-shadow: none;
    }

    .malerier-page #art-navigation .dropdown.active > .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
    }

    .malerier-page #art-navigation .dropdown-menu li {
        padding: 0;
    }

    .malerier-page .navbar :is(a, button):focus-visible {
        outline: 2px solid #4d3f38;
        outline-offset: 4px;
    }

    /* TILBAGE-KNAP */
    .malerier-page > .back-btn {
        position: absolute;
        top: 96px;
        left: 20px;
        z-index: 100;
        padding: 10px 14px;
        font-size: 0.7rem;
    }

    /* INTRO MED MALERI OG OVERSKRIFT */
    .malerier-page .container {
        width: 100%;
        margin: 0;
        padding: 160px 6% 60px;
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .malerier-page .image-wrapper,
    .malerier-page .text-wrapper {
        width: 100%;
        max-width: 700px;
        min-width: 0;
        margin: 0 auto;
    }

    .malerier-page .image-wrapper img {
        display: block;
        width: 100%;
        height: auto;
    }

    .malerier-page .image-wrapper p {
        text-align: center;
        line-height: 1.5;
    }

    .malerier-page .image-wrapper img + p {
        margin-top: 14px;
    }

    .malerier-page .text-wrapper {
        padding: 0;
        align-items: center;
        text-align: center;
    }

    .malerier-page .text-wrapper h1 {
        font-size: clamp(2.5rem, 9vw, 4.5rem);
        line-height: 1;
        text-align: center;
    }

    .malerier-page .portfolio-intro {
        max-width: 550px;
        margin-top: 22px;
        font-size: 1.05rem;
        line-height: 1.7;
        text-align: center;
    }

    /* Lodret animation undgår bevægelse ud over skærmkanten */
    .malerier-page .text-wrapper h1,
    .malerier-page .portfolio-intro {
        transform: translateY(24px);
        animation-name: artMobileText;
    }

    @keyframes artMobileText {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* HISTORIEN BAG MIN KUNST */
    .malerier-page .art-section {
        padding: 55px 6%;
    }

    .malerier-page .art-text {
        width: 100%;
        max-width: 700px;
        min-width: 0;
        padding: 0;
        margin: 0 auto;
    }

    .malerier-page .art-text h2,
    .malerier-page .about-text h2 {
        font-size: clamp(2rem, 6vw, 3rem);
        line-height: 1.15;
        margin-bottom: 24px;
    }

    .malerier-page .art-text p,
    .malerier-page .about-text p {
        font-size: 1.05rem;
        line-height: 1.75;
        text-align: left;
    }

    /* AT SE LANDSKABET IGEN */
    .malerier-page .about-section {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
        padding: 60px 6%;
    }

    .malerier-page .about-text,
    .malerier-page .about-image {
        width: 100%;
        max-width: 700px;
        min-width: 0;
        margin: 0 auto;
    }

    .malerier-page .about-image img {
        display: block;
        width: 100%;
        height: auto;
    }

    /* MALERIRÆKKEN */
    .malerier-page .image-row-section {
        padding: 40px 6%;
    }

    .malerier-page .image-container {
        width: 100%;
        gap: 16px;
        align-items: start;
    }

    .malerier-page .image-container img {
        aspect-ratio: auto;
        height: auto;
        object-fit: contain;
    }

    /* FOOTER */
    .malerier-page .kontakt-footer .kontakt-container {
        width: 100%;
        padding: 60px 6%;
    }

    .malerier-page .kontakt-footer .kontakt-title {
        font-size: clamp(2rem, 7vw, 4rem);
        line-height: 1.1;
    }

    .malerier-page .kontakt-footer .kontakt-subtitle {
        font-size: 0.9rem;
        margin: 20px 0 30px;
    }

    .malerier-page .kontakt-footer .kontakt-row {
        flex-direction: column;
        gap: 10px;
        padding: 24px 0;
        text-align: center;
    }

    .malerier-page .kontakt-footer .kontakt-label,
    .malerier-page .kontakt-footer .kontakt-info {
        max-width: 100%;
        font-size: 1rem;
        overflow-wrap: anywhere;
    }

    .malerier-page .kontakt-footer .footer-billede {
        display: none;
    }
}

/* ÉT MALERI PR. RÆKKE PÅ MOBIL */
@media screen and (max-width: 600px) {
    .malerier-page .image-container {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .malerier-page .container {
        padding-inline: 20px;
    }

    .malerier-page .art-section,
    .malerier-page .about-section,
    .malerier-page .image-row-section {
        padding-inline: 20px;
    }
}

/* NORMAL MARKØR PÅ TOUCH-ENHEDER */
@media (hover: none) and (pointer: coarse) {
    html,
    body.malerier-page,
    .malerier-page * {
        cursor: auto !important;
    }

    .malerier-page .cursor {
        display: none;
    }
}