/****** STORE SKRÆME ******/

@media only screen and (min-width: 1920px) {}


/****** BÆRBAR / MINDRE SKÆRME ******/

@media only screen and (max-width: 1240px) {
     :root body {
        /* Font sizes */
        --h1: 43px;
        --h2: 28px;
        --h3: 22px;
        --h4: 19px;
        --h5: 15px;
        --h6: 13px;
        --p: 15px;
        /* Gaps */
        --gap-l: 60px;
        --gap-m: 25px;
        --gap-s: 20px;
        /* Sidebar */
        --sidebar-width: 280px;
    }

    /* ===== Alstrup Vision ===== */
    /* Sektionerne må ikke gå helt ud til skærmkanten, når indholdsbredden er større end skærmen */
    .section-wrap.av-ydelser > .section,
    .section-wrap.av-tilbyder > .section,
    .section-wrap.av-hvem > .section,
    .section-wrap.av-trio > .section,
    .section-wrap.av-kontakt > .section,
    .section-wrap.av-footer > .section {
        box-sizing: border-box;
        padding-inline: var(--gap-m);
    }
    /* ===== END Alstrup Vision ===== */
}

@media only screen and (max-width: 1100px) {
    /* ===== Alstrup Vision ===== */
    /* Fire kort bliver for smalle til lange titler - skift til to kolonner */
    .av-cards {
        --av-cols: 2;
        --grid-4-cols: 2;
    }

    .av-card h3 {
        font-size: 19px;
    }

    /* Fem kort i to kolonner - det sidste centreres */
    .av-cards.av-cards-5 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .av-cards.av-cards-5 > *,
    .av-cards.av-cards-5 > :nth-child(4) {
        grid-column: auto;
    }

    .av-cards.av-cards-5 > :nth-child(5) {
        grid-column: 1 / -1;
        justify-self: center;
        width: calc(50% - 14px);
    }

    /* Forsidens karrusel: 2 kort synlige */
    .home #ydelser .av-cards-5 {
        --av-carousel-gap: 20px;
        grid-auto-columns: calc((100% - var(--av-carousel-gap)) / 2);
    }
    /* ===== END Alstrup Vision ===== */
}


/****** IPADS - VERTIKALT ******/

@media only screen and (max-width: 959px) {
     :root body {
        /* Grid columns */
        --grid-2-cols: 1;
        --grid-3-cols: 2;
        --grid-4-cols: 2;
        --grid-5-cols: 3;
        --grid-6-cols: 3;
        --grid-7-cols: 4;
        --grid-8-cols: 4;
        --grid-9-cols: 5;
        --grid-10-cols: 5;
        --grid-11-cols: 6;
        --grid-12-cols: 6;
    }
    /* Move this rule if you change the the grid columns */
    .last-on-mobile {
        order: 66;
    }

    /* ===== Alstrup Vision ===== */
    .av-cards {
        --av-cols: 2;
    }

    .av-cards.columns-3 {
        --av-cols: 2;
    }

    .av-tilbyder-grid,
    .av-team-intro,
    .av-kontakt-grid,
    .av-contact-page {
        grid-template-columns: 1fr;
    }

    .av-team-intro {
        gap: 32px;
    }

    .av-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .main-navigation .menu > li.menu-cta {
        margin-left: 0;
    }

    /* "Vi tilbyder dig": tre punkter på række så længe der er plads (undgår 2+1) */
    .av-tilbyder-grid {
        --grid-3-cols: 3;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
    }

    .av-tilbyder-item {
        font-size: 16px;
    }
    /* ===== END Alstrup Vision ===== */
}

@media only screen and (max-width: 810px) {}


/****** MINDRE END IPADS VERTIKALT ******/

@media only screen and (max-width: 782px) {}

@media only screen and (max-width: 767px) {
     :root body {
        /* Font sizes */
        --h1: 30px;
        --h2: 25px;
        --h3: 20px;
        --h4: 18px;
        --h5: 14px;
        --h6: 12px;
        --p: 14px;
        /* Gaps */
        --gap-l: 50px;
        --gap-m: 20px;
        --gap-s: 15px;
        /* Outer margin */
        --content-margin: 0;
    }

    /* ===== Alstrup Vision ===== */
    .home .main-slider-section .image-aligner img {
        height: 72vh;
        min-height: 480px;
        max-height: 640px;
        object-position: 62% 62%;
    }

    .home .main-slider-section .slides::after {
        background: linear-gradient(to top, rgb(17 24 14 / 85%) 0%, rgb(17 24 14 / 60%) 50%, rgb(17 24 14 / 35%) 100%);
    }

    .home .main-slider-section .slider-text {
        align-items: flex-end;
        padding: var(--gap-m) 20px 40px;
    }

    /* Hero-knapperne stables i fuld bredde */
    .home .main-slider-section .stom-button {
        display: block;
        margin: 10px 0 0;
    }

    .home .main-slider-section .stom-button:first-of-type {
        margin-top: 28px;
    }

    .home .main-slider-section .stom-button a {
        display: block;
        text-align: center;
    }

    .av-person-section img {
        float: none;
        display: block;
        width: 200px;
        margin: 0 0 20px;
    }

    .av-kontakt-form {
        padding: 22px;
    }

    .section-wrap.av-ydelser > .section,
    .section-wrap.av-tilbyder > .section,
    .section-wrap.av-hvem > .section,
    .section-wrap.av-trio > .section,
    .section-wrap.av-kontakt > .section,
    .section-wrap.av-footer > .section {
        box-sizing: border-box;
        padding-inline: 20px;
    }
    /* ===== END Alstrup Vision ===== */
}

@media only screen and (max-width: 639px) {
    /* ===== Alstrup Vision ===== */
    .av-cards,
    .av-cards.columns-3,
    .av-team,
    .av-footer-grid {
        grid-template-columns: 1fr;
    }

    .av-cards {
        --grid-3-cols: 1;
        --grid-4-cols: 1;
    }

    .av-cards.av-cards-5 {
        grid-template-columns: 1fr;
    }

    /* Forsidens karrusel: ét kort ad gangen, med en flig af det næste som hint om at man kan swipe */
    .home #ydelser .av-cards-5 {
        --av-carousel-gap: 14px;
        grid-template-columns: none;
        grid-auto-columns: 86%;
    }

    .av-cards.av-cards-5 > :nth-child(5) {
        width: auto;
        justify-self: stretch;
    }

    .av-kontakt-tekst > p > img {
        width: 96px;
        height: 120px;
    }

    .av-tilbyder-grid {
        --grid-3-cols: 1;
        grid-template-columns: 1fr;
        gap: 32px;
    }
    /* ===== END Alstrup Vision ===== */
}

@media only screen and (max-width: 639px) {
     :root body {
        /* Grid columns */
        --grid-2-cols: 1;
        --grid-3-cols: 1;
        --grid-4-cols: 1;
        --grid-5-cols: 1;
        --grid-6-cols: 1;
        --grid-7-cols: 1;
        --grid-8-cols: 1;
        --grid-9-cols: 1;
        --grid-10-cols: 1;
        --grid-11-cols: 1;
        --grid-12-cols: 1;
    }
}

/****** ALSTRUP VISION - FINPUDSNING TABLET/MOBIL (nov 2026) ******/

@media only screen and (min-width: 640px) and (max-width: 959px) {
    /* ===== Alstrup Vision ===== */
    /* Kort i to kolonner: et ulige sidste kort centreres i stedet for at stå alene til venstre */
    .av-cards.columns-3 > :last-child:nth-child(odd) {
        grid-column: 1 / -1;
        justify-self: center;
        width: calc(50% - 14px);
    }
    /* ===== END Alstrup Vision ===== */
}

@media only screen and (max-width: 767px) {
    /* ===== Alstrup Vision: mobil-finpudsning ===== */

    /* Forsidens topbillede fylder altid hele heroen, også når teksten er høj (ingen stribe i bunden) */
    .home .main-slider-section .slide-element,
    .home .main-slider-section .image-aligner {
        height: 100%;
    }

    .home .main-slider-section .image-aligner img {
        height: 100%;
        min-height: 520px;
        max-height: none;
    }

    .home .main-slider-section .slider-text {
        padding: 56px 20px 36px;
    }

    .home .main-slider-section h1 {
        font-size: clamp(30px, 8.6vw, 36px);
    }

    /* Hero-knapper: "Book en snak" i fuld bredde, de to sekundære side om side */
    .home .main-slider-section .slider-text-inner-wrapper {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .home .main-slider-section .slider-text-inner-wrapper > :not(.stom-button) {
        flex: 0 0 100%;
    }

    .home .main-slider-section .stom-button,
    .home .main-slider-section .stom-button:first-of-type {
        flex: 1 1 calc(50% - 5px);
        margin: 0;
    }

    .home .main-slider-section .stom-button:first-of-type {
        flex-basis: 100%;
        margin-top: 18px;
    }

    /* Undersider: lavere topbillede, så indholdet kommer hurtigere frem */
    body:not(.home) .main-slider-section .image-aligner img {
        height: clamp(200px, 34vh, 280px);
    }

    /* Lange danske ord ("Organisationsudvikling") skal kunne stå på én linje */
    body:not(.home) .entry-title {
        margin-bottom: 20px;
        font-size: clamp(23px, 6.8vw, 30px);
        overflow-wrap: break-word;
        hyphens: auto;
    }

    body:not(.home) .entry-content h2 {
        font-size: clamp(21px, 5.8vw, 25px);
    }

    .av-card h3 {
        font-size: clamp(16px, 4.6vw, 19px);
    }

    /* ===== END Alstrup Vision: mobil-finpudsning ===== */
}


/****** MOBILER ******/

@media only screen and (max-width: 479px) {}

@media only screen and (max-width: 400px) {}