/* ========================================
   BERIT GRANBERG – ZONETERAPI
   Enkel, nordisk og professionel
======================================== */


/* FARVER OG TYPOGRAFI */

:root {
    --brown: #704b3d;
    --brown-dark: #503a30;
    --green: #788675;
    --green-dark: #5f6c5c;

    --cream: #f5f1e8;
    --cream-light: #faf8f2;
    --white: #fffefa;

    --text: #45433e;
    --muted: #6f6c65;
    --line: rgba(112, 75, 61, 0.13);

    --heading: "Cormorant Garamond", serif;
    --body: "Montserrat", sans-serif;

    --radius: 14px;
    --shadow: 0 12px 35px rgba(60, 45, 35, 0.08);

    /* De fire kortfarver fra forsiden – bruges også på knapperne på undersiderne */
    --card-rust: linear-gradient(150deg, #7a4436, #93584a);        /* rødbrun som logoets skrift */
    --card-terracotta: linear-gradient(150deg, #874a3a, #9c5d4b);  /* mørk fersken */
    --card-sage: linear-gradient(150deg, #5b5f45, #747a59);        /* mørk salvie fra bladene */
    --card-rose: linear-gradient(150deg, #6e3a3c, #8c5052);        /* mørk støvet rosa */
    --card-moss: linear-gradient(150deg, #4f5c4b, #687763);        /* mosgrøn – lidt køligere, som sidens egen grønne */
}

/* Knapperne glider blødt fra farve til farve, ligesom en farveskala:
   støvet rosa → rødbrun → terrakotta → salvie → mosgrøn – og så forfra */
.jump-nav a,
.about-facts li {
    background: var(--card-rose);
}

.jump-nav a:nth-child(5n+2),
.about-facts li:nth-child(5n+2) {
    background: var(--card-rust);
}

.jump-nav a:nth-child(5n+3),
.about-facts li:nth-child(5n+3) {
    background: var(--card-terracotta);
}

.jump-nav a:nth-child(5n+4),
.about-facts li:nth-child(5n+4) {
    background: var(--card-sage);
}

.jump-nav a:nth-child(5n+5),
.about-facts li:nth-child(5n+5) {
    background: var(--card-moss);
}

/* Kontakt: ikonerne for telefon, mail og adresse i samme farveskala som knapperne */
.contact-item .contact-icon {
    background: var(--card-rust);
    color: #fff;
}

.contact-item:nth-of-type(2) .contact-icon { background: var(--card-terracotta); }
.contact-item:nth-of-type(3) .contact-icon { background: var(--card-sage); }

/* "Skriv til mig": telefon og mail som ovenfor, Facebook og Instagram i de rosa toner.
   (Ingen grønne her, da panelet selv er grønt) */
.contact-form-alt li span { background: var(--card-rust); }
.contact-form-alt li:nth-child(2) span { background: var(--card-terracotta); }
.contact-form-social-links a span { background: var(--card-rose); }
.contact-form-social-links a:nth-child(2) span { background: var(--card-rust); }

/* Behandlinger-siden (6 knapper): tre varme farver og så tre mørkere grønne,
   så rækken slutter roligt i det grønne, og den hvide tekst står klart */
.jump-nav a:nth-child(3) {
    background: linear-gradient(150deg, #74503c, #8a6249);   /* blød varm brun – mindre orange end terrakotta */
}

.jump-nav a:nth-child(4) {
    background: linear-gradient(150deg, #5e5a3e, #726e50);   /* olivenbrun – bro mellem brun og grøn */
}

.jump-nav a:nth-child(5) {
    background: linear-gradient(150deg, #4c5038, #62674a);   /* mørk salvie */
}

.jump-nav a:nth-child(6) {
    background: linear-gradient(150deg, #3d4a3c, #526150);   /* mørk mosgrøn */
}


/* GENERELT */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* plads til den sticky menu */
}

body {
    margin: 0;
    color: var(--text);
    font-family: var(--body);
    font-size: 15px;
    line-height: 1.75;
    background-color: var(--cream);
}

/* Baggrundsbilledet ligger i sit eget lag, så farverne kan skrues op */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: url("assets/baggrund.jpg") center center / cover no-repeat;
    filter: saturate(1.1);   /* 1 = original, højere = mere farve */

    /* Hvilket udsnit af billedet, der vises – sættes pr. side på <body>,
       fx style="--bg-pos: 30% 70%; --bg-zoom: 1.4" (find værdierne med ?baggrund) */
    background-position: var(--bg-pos, 50% 50%);
    transform: scale(var(--bg-zoom, 1));
    transform-origin: var(--bg-pos, 50% 50%);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

h1, h2, h3 {
    font-family: var(--heading);
    color: var(--brown-dark);
}

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

.eyebrow {
    display: block;
    margin-bottom: 12px;
    color: var(--green-dark);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow-light {
    color: rgba(255, 254, 250, 0.85);
}


/* KNAPPER OG LINKS */

.button-primary,
.button-outline {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 13px 26px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.button-primary {
    background: var(--brown);
    border: 1px solid var(--brown);
    color: #fff;
}

.button-primary:hover {
    background: var(--brown-dark);
    border-color: var(--brown-dark);
    color: #fff;
}

.button-outline {
    border: 1px solid rgba(112, 75, 61, 0.4);
    color: var(--brown-dark);
    background: rgba(250, 248, 242, 0.6);
}

.button-outline:hover {
    border-color: var(--brown);
    background: var(--cream-light);
}

.button-small {
    padding: 9px 20px;
    font-size: 0.75rem;
}

.button-block {
    width: 100%;
    margin-top: 28px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--brown);
    color: var(--brown);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    transition: gap 0.2s ease;
}

.text-link:hover {
    gap: 18px;
    color: var(--brown-dark);
}


/* NAVIGATION */

/* Øverst på siden er menuen helt gennemsigtig ... */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background 0.3s ease, border-color 0.3s ease;
}

/* ... og får først baggrund, når man ruller ned (klassen sættes i script.js).
   På mobil får den også baggrund, når menuen er foldet ud, så den kan læses */
.site-header.is-scrolled,
.site-header:has(.navbar-collapse.show, .navbar-collapse.collapsing) {
    background: rgba(78, 112, 70, 0.34);   /* mørkere grøn, stadig gennemsigtig */
    border-bottom-color: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(16px) saturate(1.2); /* slører det bagved */
    -webkit-backdrop-filter: blur(16px) saturate(1.2); /* til Safari */
}

.navbar {
    min-height: 84px;
    padding: 10px 0;
}

.nav-inner {
    max-width: 1350px;
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    color: var(--brown-dark);
    font-family: var(--heading);
    font-size: 1.7rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.navbar-brand:hover {
    color: var(--green);
}

.brand-logo {
    display: block;
    width: 68px;
    height: 68px;
    object-fit: contain;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Skjul det lille logo, mens det store logo i heroen kan ses */
.site-header.hide-logo .brand-logo {
    opacity: 0;
    visibility: hidden;
}

.navbar-nav {
    align-items: center;
    gap: 32px;
}

/* På computer: menupunkterne står i midten, logoet til venstre og "Ring"-knappen til højre */
@media (min-width: 992px) {

    /* Samme margen i begge sider som sidens indhold, så logoet flugter med indholdet
       til venstre, og "Ring"-knappen ikke stikker ud over billedet til højre */
    .nav-inner {
        --nav-side: max(5%, calc((100vw - 1250px) / 2));
        position: relative;
        max-width: none;
        padding-left: var(--nav-side);
        padding-right: var(--nav-side);
    }

    .navbar-nav {
        width: 100%;
        justify-content: center;
        padding-right: 68px;   /* samme bredde som logoet, så punkterne står midt på skærmen */
    }

    .nav-cta-item {
        position: absolute;
        top: 50%;
        right: var(--nav-side);
        transform: translateY(-50%);
    }
}

.navbar .nav-link {
    position: relative;
    padding: 8px 0 !important;
    color: var(--brown-dark);
    font-family: var(--heading);
    font-size: 1.3rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.navbar .nav-link::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--green);
    transition: width 0.2s ease;
}

.navbar .nav-link:hover {
    color: var(--green);
}

.navbar .nav-link:hover::after {
    width: 100%;
}

/* UNDERMENU – Behandlinger */

.nav-dropdown {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
}

/* Selve menuen */
.nav-dropdown .dropdown-menu {
    min-width: 230px;
    padding: 10px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 16px 40px rgba(40, 35, 30, 0.14);
}

.nav-dropdown .dropdown-item {
    padding: 9px 14px;
    border-radius: 8px;
    color: var(--brown-dark);
    font-family: var(--heading);
    font-size: 1.1rem;
    font-weight: 600;
}

.nav-dropdown .dropdown-item:hover,
.nav-dropdown .dropdown-item:focus {
    background: var(--cream);
    color: var(--brown);
}

/* På computer: menuen folder sig ud, når man holder musen over */
@media (min-width: 992px) {

    .nav-dropdown .dropdown-menu {
        top: 100%;
        left: -14px;
        margin-top: 0;
    }

    /* Usynlig bro, så menuen ikke lukker, når musen flyttes ned til den */
    .nav-dropdown .dropdown-menu::before {
        content: "";
        position: absolute;
        top: -14px;
        left: 0;
        right: 0;
        height: 14px;
    }

    .nav-dropdown:hover > .dropdown-menu,
    .nav-dropdown:focus-within > .dropdown-menu {
        display: block;
    }
}

/* På mobil: kun hovedpunkterne, så menuen ikke bliver alt for lang */
@media (max-width: 991px) {

    .nav-dropdown .dropdown-menu {
        display: none;
    }
}

.navbar-toggler {
    border-color: rgba(112, 75, 61, 0.35);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(112, 75, 61, 0.12);
}


/* HERO */

.hero-section {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    align-items: stretch;
    overflow-x: clip;   /* båndet må ikke give vandret scroll */
}

.hero-copy {
    min-width: 0;
    /* Venstre kant flugter med sidens indhold, selv på store skærme */
    padding: 48px clamp(30px, 5vw, 70px) 70px max(5%, calc((100vw - 1250px) / 2));
}

/* Logo i stort med citatet ved siden af */
.hero-brand {
    display: flex;
    align-items: center;
    gap: clamp(24px, 4vw, 56px);
}

.hero-logo {
    flex-shrink: 0;
    margin: -34px 0;   /* logoet stikker ud over båndet foroven og forneden */
}

.hero-logo img {
    display: block;
    height: clamp(135px, 13vw, 185px);   /* logoets størrelse – større tal = større logo */
    width: auto;
}

.hero-quote {
    max-width: 380px;
    margin: 0;
    color: var(--brown-dark);
    font-family: var(--heading);
    font-size: clamp(1.35rem, 1.75vw, 1.65rem);   /* citatet i banneret – sidste tal er største størrelse */
    font-style: italic;
    line-height: 1.3;
    text-align: center;                        /* centreret tekst */
}

/* Tyndt bånd bag logo og citat */
.hero-brand {
    position: relative;
    isolation: isolate;
    margin-top: 0;   /* båndet ligger højt; logoet stikker op i luften over det */
    padding: 18px 0;
}

/* Citat med "Zoneterapi i Aabenraa" under */
.hero-tagline {
    text-align: center;
}

.hero-tagline .eyebrow {
    margin: 0 0 10px;   /* står over citatet */
    font-family: var(--body);   /* h1, men skal ligne den lille tekst */
    line-height: 1.5;
}

/* Selve båndet – går helt ud til kanterne, så det ikke ligner en boks */
.hero-brand::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: -100vmax;
    right: -100vmax;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* Behandlinger – luft i stedet for streg */
.hero-treatments {
    margin-top: 56px;
}

.hero-subheading {
    margin: 0 0 18px;
    font-size: clamp(1.6rem, 2.1vw, 2rem);   /* lidt mindre, så det ikke råber */
    font-weight: 500;
    line-height: 1.1;
}


/* PORTRÆT – firkantet og helt ude i højre side */

.portrait-wrap {
    position: relative;
    margin: 0;
    min-height: 100%;
}

/* Rammen bestemmer, hvor billedet står; billedet indeni kan beskæres */
.portrait-frame {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.portrait {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* På computer og tablet: billedet står i højre side med luft omkring.
   Toppen stikker lidt op over det hvide bånd, og bunden flugter med de nederste kort,
   fordi luften forneden er den samme som i venstre side (.hero-copy) */
@media (min-width: 768px) {

    /* Billedet følger venstre sides højde i stedet for at bestemme den.
       Luften til højre spejler sidens venstre margen.
       --portrait-top: afstand fra toppen. 48px = flugter med båndet; mindre = højere op */
    .portrait-frame {
        --portrait-top: 12px;
        top: var(--portrait-top);
        left: 0;
        width: calc(100% - max(5%, calc((100vw - 1250px) / 2)));
        height: calc(100% - var(--portrait-top) - 70px);   /* minus luften foroven og forneden */
    }

    /* Beskæring: billedet gøres bredere end rammen, så højre side skæres fra.
       112% = ca. 11% af højre side skjules. 100% = ingen beskæring */
    .portrait {
        width: 90%;
        object-position: left top;
    }
}


/* SEKTIONER */

.section {
    padding: clamp(70px, 9vw, 110px) 5%;
}

.section-light {
    background: rgba(250, 248, 242, 0.9);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-container {
    max-width: 1150px;
    margin: 0 auto;
}

.section h2 {
    margin: 0 0 14px;
    font-size: clamp(2.3rem, 3.6vw, 3.2rem);
    font-weight: 500;
    line-height: 1.1;
}


/* BEHANDLINGSKORT */

.treatment-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.treatment-card {
    padding: 16px 20px;
    background: rgba(255, 254, 250, 0.78);  /* lys og frisk mod baggrunden */
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(60, 45, 35, 0.06);
    transition: transform 0.25s ease, background 0.25s ease;
}

.treatment-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 254, 250, 0.92);
}

.treatment-card h3 {
    margin: 0 0 10px;
    color: var(--brown);
    font-size: 1.45rem;
    font-weight: 600;
    line-height: 1.15;
}

.treatment-card ul {
    margin: 0;
    padding-left: 18px;
    color: var(--text);
    font-size: 0.82rem;
    line-height: 1.95;
}

.treatment-card li::marker {
    color: var(--green);
}

/* AFPRØVNING: hvert kort i sin egen mørke farve fra logoet.
   Slet hele denne blok for at få de lyse kort tilbage */
.treatment-card {
    --card-from: #874a3a;   /* mørk fersken / terrakotta */
    --card-to: #9c5d4b;
    --card-line: #f0c0a8;
    border-radius: 9px;     /* lidt mindre runde hjørner, så de passer bedre til det firkantede billede */
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 220, 205, 0.25), transparent 55%),
        linear-gradient(150deg, var(--card-from), var(--card-to));
    border-color: rgba(226, 168, 152, 0.4);
    box-shadow: 0 12px 30px rgba(90, 45, 35, 0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    -webkit-font-smoothing: antialiased;   /* lys tekst på mørk baggrund står skarpere (Mac) */
    -moz-osx-font-smoothing: grayscale;
}

.treatment-card:nth-child(3) { --card-from: #6a3a2f; --card-to: #82493c; --card-line: #e2a898; }   /* mørkere rødbrun, så det skiller sig fra kortet ovenover */
.treatment-card:nth-child(2) { --card-from: #5b5f45; --card-to: #747a59; --card-line: #c9d0ae; }   /* mørk salvie fra bladene */
.treatment-card:nth-child(4) { --card-from: #6e3a3c; --card-to: #8c5052; --card-line: #e6b0b0; }   /* mørk støvet rosa */

.treatment-card:hover {
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 220, 205, 0.25), transparent 55%),
        linear-gradient(150deg, var(--card-from), var(--card-to));
    box-shadow: 0 18px 38px rgba(90, 45, 35, 0.28);
    filter: brightness(1.06);
}

.treatment-card h3 {
    margin-bottom: 8px;
    color: #fff;
    font-size: 1.3rem;
    -webkit-font-smoothing: auto;   /* overskriften må gerne stå lidt fyldigere */
    -moz-osx-font-smoothing: auto;
}

/* Enkel liste med små, runde punkter – helt hvid tekst, så den står skarpt */
.treatment-card ul {
    padding-left: 18px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.8;
}

.treatment-card li::marker {
    color: var(--card-line);   /* punktet i en lys udgave af kortets farve */
}


/* BEHANDLINGER – glidende bånd */

.treatments-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 30px;
}

.treatments-head h2 {
    margin-bottom: 0;
}

/* Lille pause-knap, så man kan stoppe båndet */
.marquee-toggle {
    flex-shrink: 0;
    padding: 7px 18px;
    background: rgba(250, 248, 242, 0.7);
    border: 1px solid rgba(112, 75, 61, 0.35);
    border-radius: 50px;
    color: var(--brown-dark);
    font-size: 0.75rem;
    font-weight: 600;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.marquee-toggle:hover {
    background: var(--cream-light);
    border-color: var(--brown);
}

/* Båndet – kanterne toner blødt ud */
.marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.marquee-track {
    display: flex;
    gap: 22px;
    width: max-content;
    margin: 0;
    padding: 6px 0 24px;
    list-style: none;
    animation: marquee 70s linear infinite;   /* højere tal = langsommere */
}

/* Stopper, når man holder musen over, bruger tastaturet eller trykker pause */
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track,
.marquee.is-paused .marquee-track {
    animation-play-state: paused;
}

/* Kortene er kopieret én gang i script.js, så vi flytter præcis ét sæt */
@keyframes marquee {
    to {
        transform: translateX(calc(-50% - 11px));   /* 11px = halvdelen af gap */
    }
}

.marquee-card {
    position: relative;
    display: block;
    width: clamp(220px, 21vw, 280px);
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: 0 12px 30px rgba(60, 45, 35, 0.12);
}

.marquee-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.marquee-card:hover img {
    transform: scale(1.05);
}

.marquee-name {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 50px 22px 18px;
    background: linear-gradient(transparent, rgba(50, 35, 28, 0.78));
    color: var(--white);
    font-family: var(--heading);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.15;
}

/* AFPRØVNING: rødbrun baggrund i logoets farve bag "Mine behandlinger".
   Slet hele denne blok for at få den lyse baggrund tilbage */
.treatments-section {
    background:
        radial-gradient(circle at 15% 0%, rgba(255, 220, 205, 0.16), transparent 50%),
        linear-gradient(160deg, #82493c, #6a3a2f);   /* samme mørke rødbrune som kortet "Smerter og spændinger" */
    border-color: rgba(0, 0, 0, 0.1);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.treatments-section .treatments-head h2 {
    color: #fff;
}

.treatments-section .marquee-toggle {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.treatments-section .marquee-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.7);
}

.treatments-section .marquee-card {
    box-shadow: 0 14px 34px rgba(30, 12, 8, 0.35);
}


/* ANMELDELSER */

.review-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;   /* hver boks er kun så høj som sin anmeldelse */
    gap: 20px;
    margin-top: 30px;
}

.review-card {
    display: flex;
    flex-direction: column;
    gap: 18px;   /* fast luft mellem anmeldelse og navn */
    margin: 0;
    padding: 30px 28px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.review-card blockquote {
    margin: 0 0 22px;
    color: var(--brown-dark);
    font-family: var(--heading);
    font-size: 1.35rem;
    font-style: italic;
    line-height: 1.4;
}

.review-card figcaption {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}


/* OM MIG */

.about-panel {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: clamp(40px, 6vw, 80px);
    padding: clamp(36px, 5vw, 64px);
    background: rgba(255, 254, 250, 0.94);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.about-quote {
    margin: 0;
    padding-left: 28px;
    border-left: 2px solid var(--green);
    color: var(--brown);
    font-family: var(--heading);
    font-size: clamp(1.7rem, 2.6vw, 2.3rem);
    font-style: italic;
    font-weight: 500;
    line-height: 1.3;
}

.about-copy p {
    max-width: 520px;
    color: var(--text);
}

.about-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 22px 0 28px;
    padding: 0;
    list-style: none;
}

.about-facts li {
    padding: 6px 12px;   /* lidt smallere, så alle fem står på én linje på computer */
    white-space: nowrap;
    border-radius: 50px;
    color: #fff;   /* farven sættes øverst i filen – samme fire farver som kortene på forsiden */
    font-size: 0.75rem;
    font-weight: 600;
    -webkit-font-smoothing: antialiased;
}


/* UNDERSIDER – fælles */

/* Markér den side, man er på, i menuen */
.navbar .nav-link.active {
    color: var(--brown);
}

.navbar .nav-link.active::after {
    width: 100%;
}

.page-lead {
    color: var(--brown-dark);
    font-family: var(--heading);
    font-size: 1.45rem;
    font-style: italic;
    line-height: 1.4;
}

/* Intro med tekst og billede */
.page-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    align-items: center;
    gap: clamp(40px, 6vw, 90px);
    max-width: 1250px;
    margin: 0 auto;
    padding: clamp(50px, 7vw, 90px) 5%;
}

.page-intro h1 {
    margin: 0 0 22px;
    font-size: clamp(2.8rem, 4.6vw, 4.2rem);
    font-weight: 500;
    line-height: 1.05;
}

.page-intro-copy > p {
    max-width: 560px;
}

/* Den kursive indledning står på én linje på computer */
.page-intro-copy > .page-lead {
    max-width: none;
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);   /* sidste tal = største størrelse */
}

.page-intro-photo {
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: 0 18px 45px rgba(60, 45, 35, 0.15);
}

.page-intro-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: 30% center;   /* lavere % = mere af venstre side, hvor Berit står */
}

/* Bund-sektion med knap til kontakt */
.page-cta {
    text-align: center;
}

.page-cta h2 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    font-weight: 500;
    line-height: 1.1;
}

.page-cta p {
    color: rgba(255, 254, 250, 0.88);
}

.page-cta-button {
    margin-top: 14px;
    background: var(--white);
    border-color: var(--white);
    color: var(--brown-dark);
}

.page-cta-button:hover {
    background: var(--cream);
    border-color: var(--cream);
    color: var(--brown-dark);
}


/* OM MIG – SIDEN */

/* Profilsektionen – Berit i højre side af billedet, teksten til venstre */
.profile-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;   /* billedet må ikke give vandret scroll */
    background: var(--cream);
}

/* Billedet ligger i sit eget lag og fylder hele sektionen fra kant til kant */
.profile-section::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: url("assets/berit2.jpg") 20% center / cover no-repeat;   /* lavere % = Berit længere til højre */
    filter: sepia(0.18) hue-rotate(-15deg) saturate(1.05);   /* svag, rosa-varm tone i stedet for gul – sepia 0 = original */
}

.profile-section .section-container {
    max-width: 1250px;
}

/* Profilteksten – centreret i et lyst, gennemsigtigt panel */
.profile-text {
    max-width: 700px;
    margin: 0;
    padding: clamp(32px, 4vw, 54px);
    background: rgba(255, 254, 250, 0.8);   /* højere tal = mindre gennemsigtig */
    border-radius: var(--radius);
    box-shadow: 0 18px 45px rgba(60, 45, 35, 0.12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-size: 1.05rem;
    line-height: 1.85;
    text-align: center;
}

.profile-text > :last-child {
    margin-bottom: 0;
}

.profile-text p {
    margin-bottom: 1.3em;
}

.profile-text .page-lead {
    margin-top: 0;
    font-size: 1.75rem;
}

/* Citatet om englene – som en stor overskrift for sig selv */
.quote-band {
    padding: clamp(56px, 6.5vw, 90px) 5%;
    background: linear-gradient(180deg, #fdfbf7, #f4ede2);   /* blød hvid til beige */
    text-align: center;
}

.quote-band-figure {
    max-width: 820px;
    margin: 0 auto;
}

/* Store, bløde anførselstegn omkring citatet */
.quote-mark {
    margin: 0 0.06em;
    color: #9c7468;
    font-size: 1.8em;
    font-style: normal;
    line-height: 0;
    vertical-align: -0.3em;
    opacity: 0.55;
}

.quote-band-text {
    margin: 0;
    color: var(--brown);
    font-family: var(--heading);
    font-size: clamp(1.6rem, 2.7vw, 2.4rem);
    font-style: italic;
    font-weight: 500;
    line-height: 1.3;
}

/* Afsender med en tynd streg på hver side */
.quote-band-author {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-top: 26px;
    color: var(--green-dark);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.quote-band-author::before,
.quote-band-author::after {
    content: "";
    width: 40px;
    height: 1px;
    background: currentColor;
    opacity: 0.5;
}

.education-head {
    max-width: 720px;
    margin-bottom: 40px;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.education-card {
    padding: 26px 26px 20px;
    background: rgba(255, 254, 250, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(60, 45, 35, 0.06);
}

.education-card-wide {
    grid-column: 1 / -1;
}

.education-card h3 {
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    color: var(--brown);
    font-size: 1.45rem;
    font-weight: 600;
    line-height: 1.15;
}

.education-card dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 16px;
    margin: 0;
    font-size: 0.82rem;
}

.education-card dt {
    color: var(--green-dark);
    font-weight: 700;
    white-space: nowrap;
}

.education-card dd {
    margin: 0 0 8px;
    color: var(--text);
}

/* Den brede boks får to kolonner med rejser */
.education-card-wide dl {
    grid-template-columns: auto 1fr auto 1fr;
}

/* Undersider på tablet */
@media (max-width: 991px) {

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

    .page-intro-photo {
        width: min(100%, 460px);
    }

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

    .education-card-wide dl {
        grid-template-columns: auto 1fr;
    }

    /* Billedet øverst med Berit synlig – teksten lægger sig nedenunder */
    .section.profile-section {
        padding-top: 62vw;
    }

    /* Billedet øverst og større, så Berit ses tydeligt over teksten */
    .profile-section::before {
        top: 0;
        bottom: auto;
        left: auto;
        right: -35%;
        width: 170%;
        aspect-ratio: 3 / 2;
        background-position: center;
    }

    .profile-text {
        max-width: none;
        background: rgba(255, 254, 250, 0.92);
    }
}

/* Undersider på mobil */
@media (max-width: 767px) {

    .page-intro {
        padding: 40px 20px 60px;
    }

    .education-grid {
        grid-template-columns: 1fr;
    }
}


/* Om mig: menuen får en dæmpet salvie (som bladene i billederne)
   i stedet for den stærkere grøn */
.page-om-mig .site-header.is-scrolled,
.page-om-mig .site-header:has(.navbar-collapse.show, .navbar-collapse.collapsing) {
    background: rgba(150, 156, 132, 0.32);
    border-bottom-color: rgba(112, 75, 61, 0.12);
}


/* KONTAKT – SIDEN */

.contact-page {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: stretch;
    gap: clamp(30px, 5vw, 50px);
    max-width: 1100px;
    margin: 0 auto;
}

.contact-page .contact-card h2 {
    margin: 0 0 26px;
    font-size: 2rem;
    font-weight: 600;
}

/* Google Maps-kortet */
.contact-map {
    min-height: 380px;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: 0 14px 40px rgba(40, 35, 30, 0.12);
}

.contact-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 380px;
    border: 0;
}

/* Kortet fylder hele sektionen – kontaktkortet svæver ovenpå i venstre side */
.contact-map-section {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 620px;
    overflow: hidden;
}

.contact-map-section .contact-map {
    position: absolute;
    inset: 0;
    z-index: 0;
    min-height: 0;
    border-radius: 0;
    box-shadow: none;
}

.contact-map-section .contact-map iframe {
    min-height: 0;
}

/* SKRIV TIL MIG – tekst til venstre, formular i et hvidt kort til højre */
.contact-form-section {
    background: rgba(255, 254, 250, 0.55);
    border-top: 1px solid rgba(255, 255, 255, 0.6);
}

/* Ét samlet kort: grøn tekstside til venstre, formularen til højre */
.contact-form-wrap {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    max-width: 1050px;
    margin: 0 auto;
    overflow: hidden;
    background: var(--white);
    border-radius: calc(var(--radius) + 6px);
    box-shadow: 0 24px 60px rgba(60, 45, 35, 0.16);
}

.contact-form-intro {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: clamp(32px, 5vw, 56px);
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 0%, rgba(255, 255, 255, 0.14), transparent 50%),
        linear-gradient(160deg, var(--green), var(--green-dark));
    color: rgba(255, 254, 250, 0.9);
}

.contact-form-intro h2 {
    color: #fff;
    font-size: clamp(2.4rem, 3.8vw, 3.2rem);
}

.contact-form-intro p {
    margin-bottom: 30px;
    line-height: 1.75;
}

/* Telefon og mail som alternativ til formularen */
.contact-form-alt {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 22px 0 0;
    list-style: none;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.contact-form-alt li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
}

.contact-form-alt span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
}

.contact-form-alt a {
    color: #fff;
    overflow-wrap: anywhere;
}

.contact-form-alt a:hover {
    text-decoration: underline;
}

/* Facebook og Instagram under telefon og mail */
.contact-form-social {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.contact-form-social-label {
    display: block;
    margin-bottom: 12px;
    color: rgba(255, 254, 250, 0.75);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.contact-form-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.contact-form-social-links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 5px 16px 5px 5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.contact-form-social-links a:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}

.contact-form-social-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
}

.contact-form-social-links svg {
    width: 15px;
    height: 15px;
    fill: #fff;
}

/* Logoet som et svagt vandmærke helt nederst – hele logoet ses, og det rammer aldrig teksten */
.contact-form-logo {
    align-self: flex-start;
    width: 120px;
    margin-top: auto;
    padding-top: 36px;
    opacity: 0.2;
    filter: brightness(0) invert(1);
    pointer-events: none;
}

.contact-form {
    display: grid;
    align-content: start;
    gap: 18px;
    padding: clamp(28px, 5vw, 56px);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-field {
    display: grid;
    gap: 6px;
    margin: 0;
}

.form-field > span {
    color: var(--brown-dark);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.form-field small {
    color: var(--muted);
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--cream-light);
    border: 1px solid rgba(112, 75, 61, 0.2);
    border-radius: 10px;
    color: var(--text);
    font: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field textarea {
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(120, 134, 117, 0.2);
}

/* Spam-fælden: usynlig for mennesker, men robotter udfylder den */
.form-trap {
    position: absolute;
    left: -9999px;
}

.form-note {
    margin: 0;
    color: var(--muted);
    font-size: 0.8rem;
}

.form-note a {
    color: var(--brown);
}

.contact-form-button {
    justify-self: start;
    cursor: pointer;
}

.form-status {
    margin: 0;
    font-size: 0.9rem;
}

.form-status:empty {
    display: none;
}

.form-status.is-success {
    color: var(--green-dark);
    font-weight: 600;
}

.form-status.is-error {
    color: #9b3d2f;
}

@media (max-width: 767px) {

    .contact-form-wrap,
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* PRIVATLIV OG COOKIES – en smal, let læselig tekstspalte på en lys flade */
.legal-section {
    background: rgba(255, 254, 250, 0.6);
}

.legal-text {
    max-width: 720px;
    margin: 0 auto;
}

.legal-text h2 {
    margin: 40px 0 10px;
    font-size: 1.8rem;
    font-weight: 600;
}

.legal-text h2:first-child {
    margin-top: 0;
}

.legal-text a {
    color: var(--brown);
}

.legal-updated {
    margin-top: 40px;
    color: var(--muted);
    font-size: 0.85rem;
}

/* Før kortet er hentet: en blød flade med knappen "Vis kortet" */
.map-consent {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 380px;
    padding: 30px 20px;
    background:
        radial-gradient(circle at 70% 40%, rgba(120, 134, 117, 0.28), transparent 55%),
        linear-gradient(135deg, var(--cream-light), var(--cream));
}

/* På computer står boksen i højre side, så den ikke gemmer sig bag kontaktkortet */
@media (min-width: 768px) {
    .contact-map-section .map-consent {
        padding-left: min(50%, 520px);
    }
}

.map-consent-box {
    max-width: 340px;
    text-align: center;
}

.map-consent-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    font-size: 1.6rem;
}

.map-consent-box h3 {
    margin: 0 0 10px;
    font-size: 1.7rem;
    font-weight: 600;
}

.map-consent-box p {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 0.9rem;
}

.map-consent-box p a {
    color: var(--brown);
}

.map-consent-button {
    display: block;
    margin: 0 auto 14px;
    cursor: pointer;
}

/* Kontaktkortet ligger over kortet; resten af kortet kan stadig trækkes i */
.contact-map-section .contact-page {
    display: block;
    width: 100%;
    max-width: 1100px;
}

.contact-map-section .contact-card {
    position: relative;
    z-index: 1;
    max-width: 420px;
}

@media (max-width: 767px) {

    /* På mobil: kontaktkortet øverst, kortet nedenunder i fuld bredde */
    .section.contact-map-section {
        display: block;
        min-height: 0;
        padding-bottom: 0;
    }

    .contact-map-section .contact-card {
        max-width: none;
    }

    .contact-map-section .contact-map {
        position: relative;
        height: 340px;
        margin: 30px -20px 0;
    }
}


/* Knapperne på lys baggrund */
.social-links-dark a {
    border-color: rgba(112, 75, 61, 0.35);
    color: var(--brown-dark);
}

.social-links-dark a:hover {
    background: var(--white);
    border-color: var(--brown);
    color: var(--brown-dark);
}

@media (max-width: 767px) {

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


/* FIND VEJ – SIDEN */

.directions-section {
    background: rgba(255, 254, 250, 0.45);   /* samme blide hvide lag som på Priser */
    border-top: 1px solid rgba(255, 255, 255, 0.6);
}

.directions {
    display: grid;
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

/* Ét trin: billede til venstre, tekst til højre */
.direction-step {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(24px, 4vw, 50px);
    padding: clamp(20px, 3vw, 28px);
    background: rgba(255, 254, 250, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: var(--radius);
    box-shadow: 0 12px 30px rgba(60, 45, 35, 0.08);
}

.direction-step-text-only {
    grid-template-columns: 1fr;
}

.direction-photo {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 4 / 3;
}

.direction-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;   /* så skiltet øverst i billedet kommer med */
}

/* Pladsholder, indtil billedet er lagt i assets */
.photo-placeholder {
    display: none;
}

.direction-photo.is-missing {
    display: flex;
    align-items: center;
    justify-content: center;
    background: repeating-linear-gradient(135deg, #f1ebe1, #f1ebe1 12px, #ece4d8 12px, #ece4d8 24px);
    border: 1px dashed rgba(112, 75, 61, 0.3);
}

.direction-photo.is-missing .photo-placeholder {
    display: block;
    padding: 20px;
    color: var(--muted);
    font-size: 0.8rem;
    text-align: center;
}

/* Det store, runde trin-nummer */
.direction-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 14px;
    background: var(--brown);
    border-radius: 50%;
    color: var(--white);
    font-family: var(--heading);
    font-size: 1.5rem;
    font-weight: 600;
}

.direction-text h2 {
    margin: 0 0 10px;
    font-size: clamp(1.7rem, 2.4vw, 2.1rem);
    font-weight: 500;
    line-height: 1.15;
}

.direction-text p {
    max-width: 500px;
    margin: 0;
}

.directions-help {
    max-width: 1000px;
    margin: 34px auto 0;
    text-align: center;
}

.directions-help a {
    color: var(--brown);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 767px) {

    .direction-step {
        grid-template-columns: 1fr;
    }
}

/* AFPRØVNING: trinene i samme farver og rækkefølge som de fire kort på forsiden.
   Slet hele denne blok for at få de lyse bokse tilbage */
.direction-step {
    --step-from: #4f5c4b;   /* mosgrøn – trinene glider fra grøn til rødbrun */
    --step-to: #687763;
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 220, 205, 0.22), transparent 55%),
        linear-gradient(150deg, var(--step-from), var(--step-to));
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 14px 34px rgba(90, 45, 35, 0.2);
    color: rgba(255, 245, 238, 0.92);
    -webkit-font-smoothing: antialiased;
}

.direction-step:nth-child(2) { --step-from: #5e5a3e; --step-to: #726e50; }   /* olivenbrun – bro mellem grøn og brun */
.direction-step:nth-child(3) { --step-from: #74503c; --step-to: #8a6249; }   /* varm brun */
.direction-step:nth-child(4) { --step-from: #7a4436; --step-to: #93584a; }   /* rødbrun som skriften i logoet */

.direction-step .direction-text h2 {
    color: #fff;
}

.direction-step .direction-number {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Pladsholderen til manglende billeder – lys og diskret på den mørke baggrund */
.direction-step .direction-photo.is-missing {
    background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08) 12px, rgba(255, 255, 255, 0.14) 12px, rgba(255, 255, 255, 0.14) 24px);
    border-color: rgba(255, 255, 255, 0.35);
}

.direction-step .direction-photo.is-missing .photo-placeholder {
    color: rgba(255, 245, 238, 0.85);
}


/* PRISER – SIDEN */

/* Baggrund: sidens baggrundsbillede fortsætter fra toppen,
   med et blidt, hvidt og gennemsigtigt lag ovenpå */
.prices-section {
    background: rgba(255, 254, 250, 0.45);   /* højere tal = mere hvidt */
    border-top: 1px solid rgba(255, 255, 255, 0.6);
}

/* Prisliste til venstre, praktisk info til højre */
.prices-page {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: stretch;   /* begge kolonner lige høje */
    gap: clamp(30px, 5vw, 60px);
    max-width: 1050px;
    margin: 0 auto;
}

.price-card h2,
.info-column h2 {
    margin: 0 0 14px;
    font-size: clamp(1.9rem, 2.6vw, 2.3rem);
    font-weight: 500;
    line-height: 1.1;
}

.price-card .price-list + h2 {
    margin-top: 40px;
}

.price-card .price-list {
    box-shadow: 0 12px 30px rgba(60, 45, 35, 0.08);
}

/* Spædbørn med et blødt rosa skær fra logoet */
.price-list-baby {
    background: linear-gradient(160deg, #fbf3ef, #f3e3dc);
}

/* Praktisk info – grønt panel */
/* Kolonnen strækker boksen, så dens top flugter med Voksne-listen
   og bunden med Spædbørn-listen */
.info-column {
    display: flex;
    flex-direction: column;
}

.info-card {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: clamp(28px, 4vw, 40px);
    background: rgba(95, 108, 92, 0.94);
    border-radius: var(--radius);
    box-shadow: 0 14px 40px rgba(40, 35, 30, 0.15);
    color: rgba(255, 254, 250, 0.9);
}

.info-card .button-primary {
    align-self: flex-start;
    margin-top: auto;   /* knappen nederst i boksen */
}

/* Liste med små flueben */
.bring-list {
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.bring-list li {
    position: relative;
    padding: 6px 0 6px 28px;
    color: var(--white);
    font-weight: 500;
}

.bring-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #cfe0c8;
    font-weight: 700;
}

.bring-list small {
    color: rgba(255, 254, 250, 0.7);
    font-weight: 400;
}

@media (max-width: 767px) {

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


/* BEHANDLINGER – SIDEN */

.treatments-intro {
    padding: clamp(50px, 7vw, 90px) 5% clamp(40px, 5vw, 60px);
    text-align: center;
}

.treatments-intro h1 {
    margin: 0 0 14px;
    font-size: clamp(2.8rem, 4.6vw, 4.2rem);
    font-weight: 500;
    line-height: 1.05;
}

.treatments-intro .page-lead {
    max-width: 620px;
    margin: 0 auto 30px;
}

/* Bredere tekst, så sætningen kan stå på én linje (bruges på Behandlinger) */
.treatments-intro .page-lead-wide {
    max-width: 820px;
}

/* Små knapper, der hopper ned til hver behandling */
.jump-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.jump-nav a {
    padding: 8px 18px;
    border-radius: 50px;
    color: #fff;   /* farven sættes øverst i filen – samme fire farver som kortene på forsiden */
    font-size: 0.78rem;
    font-weight: 600;
    -webkit-font-smoothing: antialiased;
    box-shadow: 0 6px 16px rgba(90, 45, 35, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.jump-nav a:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(90, 45, 35, 0.22);
    filter: brightness(1.08);
}

/* Én behandling: billede på den ene side, tekst på den anden */
.treatment-detail {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(40px, 6vw, 90px);
    max-width: 1150px;
    margin: 0 auto;
}

/* Hver anden behandling har billedet til højre */
.treatment-detail-reverse .treatment-photo {
    order: 2;
}

.treatment-photo {
    margin: 0;
}

.treatment-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: 0 18px 45px rgba(60, 45, 35, 0.14);
}

.treatment-copy p {
    max-width: 560px;
}

.treatment-copy .page-lead {
    margin-bottom: 18px;
}

.treatment-copy .text-link {
    margin-top: 10px;
}

/* Citat midt i en behandling – anførselstegn og afsender, i samme stil som citatet på Om mig.
   Står på linje med teksten over, uden boks */
.treatment-quote {
    margin: 30px 0;
    padding: 0;
}

.treatment-quote blockquote {
    margin: 0;
    color: var(--brown);
    font-family: var(--heading);
    font-size: clamp(1.1rem, 1.5vw, 1.25rem);   /* så citatet står på to linjer på computer */
    font-style: italic;
    font-weight: 500;
    line-height: 1.35;
}

.treatment-quote .quote-band-author {
    margin-top: 16px;
}

.treatment-quote .quote-band-author::before {
    display: none;   /* kun streg efter navnet, da citatet står venstrestillet */
}

@media (max-width: 991px) {

    .treatment-detail {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Billedet altid øverst på mindre skærme */
    .treatment-detail-reverse .treatment-photo {
        order: 0;
    }

    .treatment-photo {
        width: min(100%, 480px);
    }

    .treatment-photo img {
        aspect-ratio: 4 / 3;
    }
}


/* PRISER */

.prices-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(40px, 6vw, 80px);
}

.prices-inner p {
    max-width: 440px;
    margin-bottom: 26px;
    color: var(--text);
}

.price-list {
    margin: 0;
    padding: 10px 32px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    list-style: none;
}

.price-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.price-list li:last-child {
    border-bottom: 0;
}

.price-list span {
    color: var(--brown-dark);
    font-family: var(--heading);
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.2;
}

.price-list small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-family: var(--body);
    font-size: 0.72rem;
    font-weight: 500;
}

.price-list strong {
    color: var(--brown);
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
}


/* KONTAKT */

.contact-section {
    padding: clamp(70px, 9vw, 110px) 5%;
    background: rgba(95, 108, 92, 0.92);
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    align-items: center;
    gap: 65px;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-copy h2 {
    margin: 0 0 22px;
    color: var(--white);
    font-size: clamp(3rem, 4.5vw, 4.5rem);
    font-weight: 500;
    line-height: 1;
}

.contact-copy p {
    max-width: 450px;
    color: rgba(255, 254, 250, 0.88);
}

.contact-card {
    padding: 34px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 14px 40px rgba(40, 35, 30, 0.15);
}

.contact-card h3 {
    margin: 0 0 26px;
    font-size: 2rem;
    font-weight: 600;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

a.contact-item:hover p {
    color: var(--green-dark);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    background: rgba(120, 134, 117, 0.15);
    border-radius: 50%;
    color: var(--green-dark);
    font-size: 1.15rem;
}

.contact-label {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.contact-item p {
    margin: 2px 0 0;
    color: var(--brown-dark);
    font-size: 0.88rem;
    overflow-wrap: anywhere;
    transition: color 0.2s ease;
}


/* Lille "Vis på Google Maps"-link under adressen */
.contact-map-link {
    display: inline-block;
    margin-top: 4px;
    color: var(--green-dark);
    font-size: 0.75rem;
    font-weight: 600;
}

/* Link til Find vej-siden i kontaktkortet */
.contact-find-way {
    display: block;
    margin: -4px 0 4px 57px;   /* flugter med teksten ved siden af ikonerne */
    color: var(--brown);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact-find-way:hover {
    color: var(--brown-dark);
}

/* Facebook og Instagram i kontaktsektionen */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 18px;
    border: 1px solid rgba(255, 254, 250, 0.5);
    border-radius: 50px;
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 600;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.social-links a:hover {
    background: rgba(255, 254, 250, 0.15);
    border-color: var(--white);
    color: var(--white);
}

.social-links svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}


/* FOOTER */

.site-footer {
    padding: 60px 5% 22px;
    background: var(--brown-dark);
    color: var(--cream);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 1fr;
    gap: 60px;
    max-width: 1150px;
    margin: 0 auto;
    padding-bottom: 40px;
}

.footer-brand {
    max-width: 330px;
}

.footer-logo {
    display: block;
    width: 64px;
    height: 64px;
    margin-bottom: 10px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-brand h2 {
    margin: 0 0 10px;
    color: var(--white);
    font-size: 2rem;
    font-weight: 500;
}

.footer-brand p {
    color: rgba(255, 253, 248, 0.7);
    font-size: 0.82rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-column h3 {
    margin: 0 0 17px;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 500;
}

.footer-column a,
.footer-column p {
    margin: 0 0 8px;
    color: rgba(255, 253, 248, 0.72);
    font-size: 0.8rem;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: #fff;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* Facebook og Instagram som runde ikoner */
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.footer-social a:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.5);
}

.footer-social svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    max-width: 1150px;
    margin: 0 auto;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 253, 248, 0.55);
    font-size: 0.72rem;
}

/* "Privatliv og cookies" og "Website designet af MIVIDE" – uden understregning */
.footer-bottom a {
    color: rgba(255, 253, 248, 0.8);
    font-weight: 600;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #fff;
}


/* TABLET */

@media (max-width: 991px) {

    .navbar {
        min-height: 76px;
    }

    .navbar-nav {
        align-items: flex-start;
        gap: 4px;
    }

    .navbar-collapse {
        padding: 15px 0 20px;
    }

    .nav-cta-item {
        margin-top: 12px;
    }

    .hero-section {
        grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.7fr);
    }

    /* Logo og citat under hinanden, når der er mindre plads */
    .hero-brand {
        flex-direction: column;
        align-items: center;   /* logo og citat centreret over hinanden */
        gap: 16px;
    }

    /* Citatet ligger under logoet her, så logoet stikker kun ud foroven */
    .hero-logo {
        margin-bottom: 0;
    }

    .about-panel,
    .prices-inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .contact-inner {
        gap: 35px;
    }

    .footer-content {
        gap: 35px;
    }
}


/* MOBIL */

@media (max-width: 767px) {

    .navbar {
        min-height: 70px;
    }

    .brand-logo {
        width: 54px;
        height: 54px;
    }

    .navbar-brand {
        gap: 10px;
        font-size: 1.45rem;
    }

    .hero-section {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        padding: 44px 20px 60px;
    }

    .hero-logo {
        margin: 0;   /* på mobil holder logoet sig inde i banneret */
    }

    .hero-logo img {
        height: 96px;
    }

    .hero-brand {
        margin-top: 36px;
    }

    .hero-treatments {
        margin-top: 56px;
    }

    /* På mobil: billedet øverst, i fuld bredde */
    .portrait-wrap {
        order: -1;
        aspect-ratio: 4 / 3;
    }

    .section,
    .contact-section {
        padding: 65px 20px;
    }

    .about-panel {
        padding: 30px 24px;
    }

    .marquee-card {
        width: 200px;
    }

    .review-grid {
        grid-template-columns: 1fr;
    }

    .price-list {
        padding: 6px 22px;
    }

    .contact-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-card {
        padding: 28px 22px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 35px 20px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}


/* SMÅ MOBILER */

@media (max-width: 480px) {

    .treatment-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 5px;
    }
}


/* HJÆLPEVÆRKTØJ – vælg udsnit af baggrundsbilledet (kun med ?baggrund) */

.bg-picker {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
    display: grid;
    gap: 8px;
    width: 280px;
    padding: 16px 18px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 14px 40px rgba(40, 35, 30, 0.25);
    font-size: 0.8rem;
}

.bg-picker strong {
    color: var(--brown-dark);
    font-family: var(--heading);
    font-size: 1.2rem;
}

.bg-picker label {
    display: grid;
    gap: 2px;
    color: var(--muted);
    font-weight: 600;
}

.bg-picker input {
    width: 100%;
    accent-color: var(--brown);
}

.bg-picker code {
    padding: 8px;
    background: var(--cream);
    border-radius: 6px;
    color: var(--brown-dark);
    font-size: 0.72rem;
}

.bg-picker button {
    padding: 8px;
    background: var(--brown);
    border: 0;
    border-radius: 50px;
    color: #fff;
    font-weight: 600;
}


/* TILGÆNGELIGHED */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }

    /* Båndet står stille – man kan i stedet scrolle/swipe sidelæns */
    .marquee {
        overflow-x: auto;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .marquee-track {
        animation: none;
    }

    .marquee-track [aria-hidden="true"],
    .marquee-toggle {
        display: none;
    }
}


/* "Sådan foregår en behandling" (Behandlinger) – et indrammet kort i mørk mosgrøn,
   der svæver over baggrundsbilledet: tekst til venstre, billedet fylder kortets højre del */
.section.approach-section {
    padding: 0 5% clamp(70px, 9vw, 110px);
}

.approach-section .treatment-detail {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);   /* tekst og billede får lige meget plads */
    align-items: stretch;
    gap: 0;
    max-width: 1250px;   /* samme bredde som menuen – lidt bredere end behandlingerne */
    background: linear-gradient(150deg, #3d4a3c, #526150);   /* mørk mosgrøn som knappen "Fjernhealing" – skift farverne her */
    border: 1px solid #2f3a2e;   /* mørk kant i samme grønne tone */
    border-radius: var(--radius);
    box-shadow: 0 24px 60px rgba(35, 45, 32, 0.22);
    overflow: hidden;   /* billedet følger kortets runde hjørner */
}

.approach-section .treatment-copy {
    align-self: center;
    padding: clamp(40px, 5vw, 68px);
}

.approach-section h2 {
    margin-bottom: 16px;
    color: #fff;
    font-size: min(2.4rem, 3vw);   /* skalerer med skærmen, så overskriften altid står på én linje */
    white-space: nowrap;
}

.approach-section .treatment-copy .page-lead {
    margin-bottom: 22px;
    color: #e3e8d6;   /* lys salviegrøn */
    font-size: clamp(1.15rem, 1.5vw, 1.3rem);
}

.approach-section .treatment-copy p {
    color: rgba(255, 255, 255, 0.86);
}

.approach-section .treatment-copy > :last-child {
    margin-bottom: 0;
}

.approach-section .treatment-photo {
    height: 100%;
}

.approach-section .treatment-photo img {
    height: 100%;
    min-height: 480px;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: 45% center;   /* flyt udsnittet – højere % = mere af højre side */
    border-radius: 0;
    box-shadow: none;
}

@media (max-width: 991px) {
    .approach-section .treatment-detail {
        grid-template-columns: 1fr;
    }

    .approach-section h2 {
        font-size: min(2.4rem, 6.6vw);
    }

    /* På mobil: billedet øverst i kortet, teksten under */
    .approach-section .treatment-photo {
        width: 100%;
        height: auto;
    }

    .approach-section .treatment-photo img {
        min-height: 0;
        height: auto;
        aspect-ratio: 3 / 2;
    }

    .approach-section .treatment-copy {
        padding: 32px 24px 40px;
    }
}


/* Find vej: introteksten på tre linjer – én sætning pr. linje på computer */
.treatments-intro .page-lead-lines {
    max-width: 960px;
}

@media (max-width: 991px) {
    .page-lead-lines br {
        display: none;   /* på mindre skærme flyder teksten bare videre */
    }
}


/* Knapperne på Om mig og Behandlinger toner blødt frem én ad gangen, når siden åbner.
   Bruger "translate" i stedet for "transform", så hover-effekten på knapperne stadig virker */
@keyframes chip-fade-in {
    from {
        opacity: 0;
        translate: 0 6px;
    }
    to {
        opacity: 1;
        translate: 0 0;
    }
}

.jump-nav a,
.about-facts li {
    animation: chip-fade-in 2.4s cubic-bezier(0.33, 0, 0.2, 1) both;   /* langsom og rolig – knapperne glider ind over hinanden */
    animation-delay: 0.3s;   /* første knap – de næste starter 0,3 sek. efter, mens den forrige stadig toner frem */
}

.jump-nav a:nth-child(2), .about-facts li:nth-child(2) { animation-delay: 0.6s; }
.jump-nav a:nth-child(3), .about-facts li:nth-child(3) { animation-delay: 0.9s; }
.jump-nav a:nth-child(4), .about-facts li:nth-child(4) { animation-delay: 1.2s; }
.jump-nav a:nth-child(5), .about-facts li:nth-child(5) { animation-delay: 1.5s; }
.jump-nav a:nth-child(6), .about-facts li:nth-child(6) { animation-delay: 1.8s; }

/* Ingen animation for dem, der har slået bevægelse fra på deres computer/telefon */
@media (prefers-reduced-motion: reduce) {
    .jump-nav a,
    .about-facts li {
        animation: none;
    }
}


/* Behandlinger: en fin streg tegner sig langsomt fra venstre mod højre under hver overskrift,
   når man scroller ned til den (klassen is-drawn sættes af script.js) */
.treatment-detail-section:not(.approach-section) .treatment-copy h2::after {
    content: "";
    display: block;
    width: 150px;   /* stregens længde */
    height: 1.5px;
    margin-top: 14px;
    background: linear-gradient(90deg, var(--line-color, #93584a), transparent);   /* toner ud mod højre */
    transform-origin: left center;
}

/* Hver streg i samme farve som behandlingens knap øverst på siden – fra rosa til grøn */
#zoneterapi       { --line-color: #8c5052; }   /* støvet rosa */
#zoneterapi-boern { --line-color: #93584a; }   /* rødbrun */
#healing          { --line-color: #8a6249; }   /* varm brun */
#kranio-sakral    { --line-color: #726e50; }   /* olivenbrun */
#massage          { --line-color: #62674a; }   /* mørk salvie */
#fjernhealing     { --line-color: #526150; }   /* mosgrøn */
.js-draw-lines .treatment-detail-section:not(.approach-section) .treatment-copy h2::after {
    transform: scaleX(0);
    transition: transform 2.2s cubic-bezier(0.33, 0, 0.2, 1) 0.2s;   /* langsom og rolig */
}

.js-draw-lines .treatment-detail-section.is-drawn .treatment-copy h2::after {
    transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
    .js-draw-lines .treatment-detail-section:not(.approach-section) .treatment-copy h2::after {
        transform: none;
        transition: none;
    }
}


/* FORSIDE – "Mange kommer til mig med…": kort der folder sig ud ét ad gangen.
   Klassen is-interactive sættes af script.js (uden JavaScript vises de fire kort som før).
   Farverne kommer fra kortene ovenfor – her styres kun form, guldkant og bevægelse */
.hero-treatments {
    container-type: inline-size;   /* så kortene kan rette sig efter feltets bredde */
}

.treatment-grid.is-interactive {
    display: flex;
    gap: 12px;
    height: 284px;   /* fast højde, så billedet til højre flugter med kortene */
}

.treatment-grid.is-interactive .treatment-card {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    padding: 20px 18px;
    border: 1px solid rgba(214, 183, 125, 0.55);   /* fin guldkant */
    cursor: pointer;
    transition:
        flex-grow 1.4s cubic-bezier(0.33, 0, 0.2, 1),
        border-color 1.2s ease,
        box-shadow 1.2s ease,
        filter 1.2s ease;
    filter: saturate(0.9) brightness(0.96);   /* de små kort træder lidt tilbage */
}

/* En tynd indre guldramme – giver kortene et roligt, eksklusivt præg */
.treatment-grid.is-interactive .treatment-card::before {
    content: "";
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(232, 205, 150, 0.22);
    border-radius: 5px;
    pointer-events: none;
    transition: border-color 1.2s ease;
}

.treatment-grid.is-interactive .treatment-card:hover {
    transform: none;   /* kortet hopper ikke – det folder sig ud i stedet */
}

/* Det åbne kort: bredere, lidt lysere og med en tydeligere guldkant */
.treatment-grid.is-interactive .treatment-card.is-active {
    flex-grow: 2.3;
    border-color: rgba(222, 192, 132, 0.9);
    box-shadow: 0 18px 40px rgba(90, 45, 35, 0.28);
    filter: none;
    cursor: default;
}

.treatment-grid.is-interactive .treatment-card.is-active::before {
    border-color: rgba(232, 205, 150, 0.4);
}

.treatment-grid.is-interactive .treatment-card h3 {
    margin: 0 0 14px;
    font-size: 1.25rem;
    line-height: 1.15;
}

.treatment-grid.is-interactive .treatment-card.is-active h3 {
    font-size: 1.5rem;
    transition: font-size 1.2s cubic-bezier(0.33, 0, 0.2, 1);
}

.treatment-grid.is-interactive .treatment-card.is-active ul {
    font-size: 0.88rem;
    line-height: 2.1;
}

/* Lille guld-plus nederst i de lukkede kort – viser, at de kan åbnes */
.treatment-grid.is-interactive .treatment-card::after {
    content: "+";
    position: absolute;
    left: 18px;
    bottom: 16px;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border: 1px solid rgba(222, 192, 132, 0.6);
    border-radius: 50%;
    color: rgba(240, 218, 170, 0.9);
    font-size: 1rem;
    line-height: 1;
    transition: opacity 0.8s ease;
}

.treatment-grid.is-interactive .treatment-card.is-active::after {
    opacity: 0;
}

/* Listen toner først frem, når kortet er foldet ud */
.treatment-grid.is-interactive .treatment-card ul {
    width: max-content;   /* teksten brydes ikke om, mens kortet ændrer bredde */
    opacity: 0;
    translate: 0 6px;
    transition: opacity 0.6s ease, translate 0.6s ease;
}

.treatment-grid.is-interactive .treatment-card.is-active ul {
    opacity: 1;
    translate: 0 0;
    transition: opacity 1.4s ease 0.6s, translate 1.4s cubic-bezier(0.33, 0, 0.2, 1) 0.6s;
}

/* Smalt felt (fx mobil): kortene under hinanden – det åbne kort folder sig ud nedad */
@container (max-width: 560px) {
    .treatment-grid.is-interactive {
        flex-direction: column;
        height: auto;
    }

    .treatment-grid.is-interactive .treatment-card {
        flex: none;
        padding: 16px 20px;
    }

    .treatment-grid.is-interactive .treatment-card h3 {
        margin: 0;
    }

    .treatment-grid.is-interactive .treatment-card::after {
        left: auto;
        right: 18px;
        bottom: 50%;
        translate: 0 50%;
    }

    .treatment-grid.is-interactive .treatment-card.is-active::after {
        bottom: auto;
        top: 16px;
        translate: none;
    }

    .treatment-grid.is-interactive .treatment-card ul {
        max-height: 0;
        overflow: hidden;
        transition: max-height 1.2s cubic-bezier(0.33, 0, 0.2, 1), opacity 0.6s ease, translate 0.6s ease;
    }

    .treatment-grid.is-interactive .treatment-card.is-active ul {
        max-height: 180px;   /* plads til fem punkter */
        margin-top: 10px;
        transition: max-height 1.4s cubic-bezier(0.33, 0, 0.2, 1), opacity 1.4s ease 0.4s, translate 1.4s ease 0.4s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .treatment-grid.is-interactive .treatment-card,
    .treatment-grid.is-interactive .treatment-card ul {
        transition: none;
    }
}


/* "Ring"-knappen i menuen: af og til ruller knappernes farver blødt hen over den,
   fulgt af et svagt lysskær. Langsomt og roligt – resten af tiden står den stille */
.nav-cta-item .button-primary {
    position: relative;
    overflow: hidden;
    isolation: isolate;   /* farvelaget lægger sig bag teksten */
}

/* Farvebåndet: rosa → rødbrun → terrakotta → salvie → mosgrøn – samme som knapperne */
.nav-cta-item .button-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(100deg, #8c5052, #93584a, #9c5d4b, #747a59, #687763, #8c5052);
    background-size: 300% 100%;
    opacity: 0;
    animation: ring-colors 24s ease-in-out 3s infinite;   /* hvert 24. sek., første gang efter 3 sek. */
}

/* Lysskæret, der glider fra venstre mod højre */
.nav-cta-item .button-primary::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -60%;
    width: 45%;
    z-index: -1;
    background: linear-gradient(100deg, transparent, rgba(255, 245, 225, 0.35), transparent);
    transform: skewX(-18deg);
    opacity: 0;
    animation: ring-shine 24s ease-in-out 3s infinite;
}

@keyframes ring-colors {
    0%, 78%  { opacity: 0; background-position: 0% 50%; }
    83%      { opacity: 1; }
    94%      { opacity: 1; }
    100%     { opacity: 0; background-position: 100% 50%; }
}

@keyframes ring-shine {
    0%, 84%  { left: -60%; opacity: 0; }
    86%      { opacity: 1; }
    95.5%    { left: 120%; opacity: 1; }
    96%, 100% { left: 120%; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .nav-cta-item .button-primary::before,
    .nav-cta-item .button-primary::after {
        animation: none;
    }
}

/* Find vej: trinene toner roligt frem ét ad gangen, når man scroller ned til dem
   (klassen is-revealed sættes af script.js) */
.js-reveal-steps .direction-step {
    opacity: 0;
    translate: 0 24px;
    transition:
        opacity 1.6s cubic-bezier(0.33, 0, 0.2, 1),
        translate 1.6s cubic-bezier(0.33, 0, 0.2, 1);
}

.js-reveal-steps .direction-step.is-revealed {
    opacity: 1;
    translate: 0 0;
}

@media (prefers-reduced-motion: reduce) {
    .js-reveal-steps .direction-step {
        opacity: 1;
        translate: none;
        transition: none;
    }
}


/* Kontakt: e-mailadressen i "Skriv til mig" må ikke brydes midt i ordet */
.contact-form-alt a {
    white-space: nowrap;
}


/* Mobil: forsidebilledet zoomes lidt ind, så Berits ansigt står midt i billedet.
   Ansigtet sidder ca. 37,5 % fra venstre og 25 % fra toppen af det originale foto */
@media (max-width: 767px) {
    .portrait {
        width: 134%;        /* mindst mulig zoom, der stadig kan centrere ansigtet (under 134 % kommer der hul i siden) */
        max-width: none;    /* Bootstrap begrænser ellers billeder til 100 % */
        height: auto;
        left: -0.25%;       /* = 50 % − 37,5 % × 134 % → ansigtet vandret i midten */
        top: -16%;          /* flyt op/ned: minus = billedet rykker op (mindre luft over hovedet) */
        object-fit: initial;
    }

    /* Højt billede på mobil – banneret med logo og tekst lægger sig hen over den nederste del */
    .portrait-wrap {
        aspect-ratio: 2 / 3;   /* billedets format – fx 3 / 4 = lidt lavere */
    }

    .hero-copy {
        position: relative;
        z-index: 1;            /* teksten ligger oven på billedet */
        margin-top: -345px;    /* hvor højt banneret står over billedet – mere minus = højere op */
    }

    .hero-brand::before {
        background: rgba(255, 255, 255, 0.55);   /* gennemsigtighed – lavere tal = mere af billedet ses */
        backdrop-filter: blur(5px);              /* sløring – lavere tal = skarpere billede bag banneret */
        -webkit-backdrop-filter: blur(5px);
    }
}

/* Tablet: billedet er smalt og højt her – flyt udsnittet, så ansigtet står i midten */
@media (min-width: 768px) and (max-width: 991px) {
    .portrait {
        object-position: 22% top;
    }
}
