* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "segoe ui", sans-serif;

    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.baggrund-video {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    background: #f2f2f2;
}

.baggrund-fallback{
    position: fixed;
    inset: 0;
    z-index: -2;
    background: url("billeder/moodvideo-fallback.webp") center/cover no-repeat;
}


.app-skaerm {
    height: 90vh;
    aspect-ratio: 16/9;
    max-width: 100vw;
    padding: 2% 8% 5%;
    color: #f2f2f2;

/* alt inde i hovedskærmen sklaerer efter den her font-size */
    font-size: min(1.4vmin, 18px);

    display: grid;
    grid-template-columns: 100%;
    grid-template-rows: 12% auto 16%;
    grid-template-areas:
        "top"
        "indhold"
        "bund";
    row-gap: 4%;
    position:relative
}

.topbjaelke {
    grid-area: top;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 3%;
    justify-self: center;
}

.status-ikoner {
    display: flex;
    align-items: center;
    gap: 0.8em;
    font-size: 2em;
    transition: color 0.2s ease;
}

        .ikon-wifi {
            color: #52ffa3; 
        }

        .ikon-batteri {
            color: #ffd164; 
        }

        .ikon-clipboard {
            color: #5e7efd;
        }

.logo-billede {
    height: 4em;
    width: auto;
    object-fit: contain;
}

.ur-tekst {
    font-size: 2em;
    font-weight: 600;
    color: rgba(242, 242, 242, 0.5);

}

.indhold-gitter {
    grid-area: indhold;
    width: 85%;

    display: grid;
    grid-template-columns: repeat(4, minmax(6em, 1fr));
    gap: 2em;

    justify-content: center;
    align-content: center;
    justify-self: center;
    align-self: center;
    position: relative;
}

.indhold-boks {
    position: relative;
    cursor: pointer;
    aspect-ratio: 1 / 1;
    text-decoration: none;
    color: inherit;

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        background-color 0.22s ease;
}


/* indre layout i boksen */
.indhold-boks-indre {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8em;
    padding: 1.5em 1.2em;
}

/* ikon + titel starter med 50% opacity */
.indhold-ikon, .indhold-titel {
    color: rgba(242, 242, 242, 0.5);
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.indhold-ikon {
    font-size: 5em;
}

.indhold-tekst {
    display: flex;
    flex-direction: column;
    gap: 0.3em;
}

.indhold-titel {
    font-size: 1.8em;
    font-weight: 600;
    text-align: center;
}

/* underteksten er skjult som standard */
.indhold-undertekst {
    font-size: 1.2em;
    color: rgba(242, 242, 242, 1);
    text-align: center;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(0.3em);
    transition:
        opacity 0.2s ease,
        max-height 0.2s ease,
        transform 0.2s ease;
}

/* hover: ikon + titel løftes og bliver 100% */
.indhold-boks:hover .indhold-ikon, .indhold-boks:hover .indhold-titel {
    color: rgba(242, 242, 242, 1);
    transform: translateY(-0.25em);
}

/* hover: undertekst fader ind og folder sig ud */
.indhold-boks:hover .indhold-undertekst {
    opacity: 1;
    max-height: 3em;
    transform: translateY(0);
}


.bund-omraade {
    grid-area: bund;
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: center;
}

.bund-dock {
    display: flex;
    align-items: center;
    justify-content: space-around;

    width: min(40em, 70%);
    margin-inline: auto;

    gap: 1.2em;
    padding: 0.9em 2.2em;
    border-radius: 9999em;
}

.dock-knap {
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
}

.dock-knap.glas-indre {
    width: 4em;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 0.8em 1.6em rgba(10, 10, 10, 0.6);
    border-radius: 0.8em;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.dock-ikon {
    color: #f2f2f2;
    font-size: 2.4em;
    transition: color 0.2s ease;
    text-decoration: none;
}

/* ob-logo */
.dock-billede {
    width: 2.6em;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    filter: brightness(0) invert(0.95);
    transition:
        filter 0.2s ease,
        opacity 0.2s ease;
}

/* hover på knap */
.dock-knap.glas-indre:hover {
    transform: translateY(-0.15em);
    box-shadow: 0 1.1em 2em rgba(10, 10, 10, 0.8);
}

.dock-knap:hover .dock-ikon {
    color: #0a0a0a;
}

.dock-knap:hover .dock-billede {
    filter: brightness(0) invert(0.04);
    opacity: 1;
}


/* liquid glass bokse */
.glas-boks {
    background: linear-gradient(
        135deg,
        rgba(70, 70, 70, 0.25),
        rgba(10, 10, 10, 1)
    );
    border-radius: 1.6em;
    border: 0.08em solid rgba(242, 242, 242, 0.35);
    box-shadow:
        0 1.8em 4.5em rgba(10, 10, 10, 0.65),
        inset 0 0 0 0.06em rgba(242, 242, 242, 0.03);
    backdrop-filter: blur(0.5em) saturate(145%) contrast(115%);
    position: relative;
    overflow: hidden;
}

/* liquid glass pills */
.glas-pill {
    background: linear-gradient(
        135deg,
        rgba(70, 70, 70, 0.25),
        rgba(10, 10, 10, 1)
    );
    border-radius: 5em;
    border: 0.08em solid rgba(242, 242, 242, 0.35);
    box-shadow:
        0 1.8em 4.5em rgba(10, 10, 10, 0.65),
        inset 0 0 0 0.06em rgba(242, 242, 242, 0.03);
    backdrop-filter: blur(0.5em) saturate(145%) contrast(115%);
    position: relative;
    overflow: hidden;
}

/* svag bølge/distortion */
.glas-boks::before {
    content: "";
    position: absolute;
    inset: -20%;
    background: radial-gradient(
        circle at 0% 0%,
        rgba(70, 70, 70, 0.25),
        rgba(10, 10, 10, 0.4) 55%
    );
    opacity: 0.2;
    mix-blend-mode: soft-light;
    animation: glas-bolge 12s ease-in-out infinite alternate;
    pointer-events: none;
}

/* lysrefleks */
.glas-boks::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.35),
        rgba(255, 255, 255, 0.05)
    );
    opacity: 0.5;
    pointer-events: none;
}

/* indre pill (logo-felt, dock-knapper osv.) */
.glas-indre {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.25),
        rgba(242, 242, 242, 0.5)
    );
    border-radius: 1.6em;
    border: 0.06em solid rgba(242, 242, 242, 0.5);
    padding: 0.4em 1.5em;
    position: relative;
    overflow: hidden;
}


                                    /* Sideopsætning */

/* side-overlay skjult som standard */
.side {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* selve indholdet på siden */
.side-kort {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 2.5em 3em;
    transform: translateY(0.6em) scale(0.96);
    opacity: 0;
    transition:
        transform 0.35s ease,
        opacity 0.35s ease;
}

.side .side-tekst {
    font-size: 1.2em;
    line-height: 1.5;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    justify-content: center;
}

.side-tekst {
    font-size: 1.2em;
    line-height: 1.5;
    min-height: 0;
    overflow-y: auto;
}

/* skal finde afklaring */
body:has(.side:target) .indhold-gitter > .indhold-boks {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.96);
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}


                                    /* Om Mig */

#side-om-mig .side-kort {
    padding: 2.5em 3em 2.5em 0;
}

/* når siden er aktiv */
.side:target {
    opacity: 1;
    pointer-events: auto;
}

.side:target .side-kort {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.side-header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 1.5em;
}

.side-tilbage {
    position: absolute;
    left: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.3em;
    height: 2.3em;
    font-size: 3em;
    border-radius: 999em;
    text-decoration: none;
    color: rgba(242, 242, 242, 0.8);
}

.side-header-titel {
    font-size: 3em;
    font-weight: 600;
}

.side-overskrift {
    margin-bottom: 1.5em;
}

.side-titel {
    font-size: 2.5em;
    font-weight: 600;
}

.side-under {
    font-size: 1.5em;
    opacity: 0.7;
}

.side-om-mig-indhold {
    display: grid;
    grid-template-columns: minmax(0, 32%) minmax(0, 1fr);
    column-gap: 2.5em;
    align-items: stretch;  /* så kolonnerne fylder hele højden */
    max-width: 100%;
    margin: 0 auto;
    flex: 1 1 auto;
    min-height: 0;
}

/* billed-kolonnen */
.side-om-mig-billede {
    display: flex;
    align-items: flex-end;
}


#ommigbillede {
    float: left;
    width: 100%;
}

/* selve mediet (video OG billede) */
#ommigbillede video,
#ommigbillede img {
    display: block;
    width: 100%;
    height: auto;
}

/* standard: vis video, skjul billede */
#ommigbillede video {
    display: block;
}
#ommigbillede .ommig-billede-fallback {
    display: none;
}

/* Safari: skjul video, vis billede */
.is-safari #ommigbillede video {
    display: none;
}
.is-safari #ommigbillede .ommig-billede-fallback {
    display: block;
}

/* tekst-kolonnen */
.side-om-mig-tekst-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

#side-om-mig .side-tekst {
    font-size: 1.2em;
    line-height: 1.5;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    margin-bottom: 5em;
}


.side .side-tekst {
    font-size: 1.2em;
    line-height: 1.5;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    justify-content: center;
}

.side-tekst {
    font-size: 1.2em;
    line-height: 1.5;
    min-height: 0;
    overflow-y: auto;
}

/* skal finde afklaring */
body:has(.side:target) .indhold-gitter > .indhold-boks {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.96);
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

                                        /* Kodning */

.mappe-liste {
    display: flex;
    flex-direction: column;
    margin-top: auto;
    gap: 0;
    position: relative;
}

.mappe {
    position: relative;
    display: block;
    width: 100%;
    margin-inline: auto;
    color: inherit;
    border-radius: 1.4em;
    text-decoration: none;


    background: linear-gradient(
        180deg,
        rgba(125, 125, 125, 0.35),
        rgba(125, 125, 125, 0.8)
    );
    box-shadow:
        0 1.4em 3em rgba(0, 0, 0, 0.7),
        inset 0 0 0 0.06em rgba(242, 242, 242, 0.05);

    padding-top: 3.2em;
    padding-bottom: 1.4em;
    min-height: 7em;
    margin-top: -2.5em;


    transform: translateY(0);
    z-index: 0;
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        z-index 0s step-end;
}


.mappe:hover {
    transform: translateY(-0.6em);
    background: linear-gradient(
        180deg,
        rgba(125, 125, 125, 0.7),
        rgba(125, 125, 125, 1)
    );    
    box-shadow:
        0 2em 4em rgba(0, 0, 0, 0.9),
        inset 0 0 0 0.06em rgba(242, 242, 242, 0.08);
    z-index: 10;
}

.mappe-indhold {
    padding: 0.2em 1.6em 0 1.6em;
    
}

.mappe-label {
    display: block;
    font-size: 3em;
    font-weight: 500;
}

.mappe-titel {
    display: block;
    font-size: 2em;
    font-weight: 500;
}

.mappe-tekst {
    display: block;
    font-size: 1.2em;
    font-weight: 500;
}

.mappe-top {
    position: absolute;
    left: 0;
    top: -1em;
    height: 4em;
    width: 100%;

    display: flex;
    align-items: center;
    padding: 0 1.6em;

    clip-path: polygon(
        0 0,       /* venstre hjørne løftet */
        30% 0,     /* fladt stykke højt i venstre */
        45% 20%,   /* skrå ned */
        100% 20%,  /* resten af toppen lidt nede */
        100% 100%,
        0 100%
    );

    font-size: 0.9em;
    font-weight: 600;
}

.mappe--groen .mappe-top {
    background: linear-gradient(90deg, #1a8a1a, #3cd93c);
}

.mappe--groen .mappe-titel {
    color: #66ff66;
}

.mappe--roed .mappe-top {
    background: linear-gradient(90deg, #a11313, #ff4a4a);
}

.mappe--roed .mappe-titel {
    color: #ff7a7a;
}

.mappe--blaa .mappe-top {
    background: linear-gradient(90deg, #1240b5, #3c7dff);
}

.mappe--blaa .mappe-titel {
    color: #6bb4ff;
}

.hjemmeside-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5%;
    gap: 0.55em;
    text-align: center;
    font-size: 1em;
    text-decoration: none;
    color: #f2f2f2;
    margin-bottom: 1%;
}

.hjemmeside-rødknap {
    background: linear-gradient(90deg, #a11313, #ff4a4a);
    border-radius: 5em;
    border: 0.08em solid rgba(242, 242, 242, 0.35);
    box-shadow:
        0 1.8em 4.5em rgba(10, 10, 10, 0.65),
        inset 0 0 0 0.06em rgba(242, 242, 242, 0.03);
    backdrop-filter: blur(0.5em) saturate(145%) contrast(115%);
    position: relative;
    overflow: hidden;
}

.hjemmeside-grønknap {
    background: linear-gradient(90deg, #1a8a1a, #3cd93c);
    border-radius: 5em;
    border: 0.08em solid rgba(242, 242, 242, 0.35);
    box-shadow:
        0 1.8em 4.5em rgba(10, 10, 10, 0.65),
        inset 0 0 0 0.06em rgba(242, 242, 242, 0.03);
    backdrop-filter: blur(0.5em) saturate(145%) contrast(115%);
    position: relative;
    overflow: hidden;
}

.hjemmeside-blåknap {
    background: linear-gradient(90deg, #1240b5, #3c7dff);
    border-radius: 5em;
    border: 0.08em solid rgba(242, 242, 242, 0.35);
    box-shadow:
        0 1.8em 4.5em rgba(10, 10, 10, 0.65),
        inset 0 0 0 0.06em rgba(242, 242, 242, 0.03);
    backdrop-filter: blur(0.5em) saturate(145%) contrast(115%);
    position: relative;
    overflow: hidden;
}





                                    /* Grafisk Design */
.galleri {
    margin-top: 0.8em;
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
}

.galleri-gitter {
    column-count: 3;
    column-gap: 1.5em;    
}


.galleri-element {
    position: relative;
    border-radius: 0.8em;
    overflow: hidden;
    cursor: pointer;
    break-inside: avoid;
    margin-bottom: 1.5em;
    display: block;
}

.galleri-billede {
    width: 100%;
    height: auto;
    display: block;
    border-radius: inherit;
    object-fit: contain; 
    
    transform: scale(1.01);
    transition:
        transform 0.25s ease,
        filter 0.25s ease;
}

.galleri-element:hover .galleri-billede {
    transform: scale(1.06);
    filter: brightness(1.1);
}

.galleri-element::after {
    content: "Klik for at se mere";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 2em;
    font-weight: bold;
    letter-spacing: 0.03em;
    color: #f2f2f2;

    background: radial-gradient(circle at center,
        rgba(0, 0, 0, 0.8),
        rgba(0, 0, 0, 0.3)
    );

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    border-radius: inherit;
}

/* vis overlay når man hover */
.galleri-element:hover::after {
    opacity: 1;
}



                                    /* Projektside for GD og Video */
.side-projekt {
    display: flex;
    gap: 2em;
    align-items: flex-start;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.side-projekt-billeder {
    display: flex;
    flex-direction: column;  /* Vertikal stack */
    gap: 1em;
    flex: 0 0 auto;
    max-width: 18rem;
}

/* hvert billede fylder bare kolonnens bredde */
.side-projekt-billede-link {
    display: block;
}

.side-projekt-billede {
    width: 100%;
    height: auto;
    border-radius: 1em;
}

.side-projekt-tekst {
    flex: 1 1 auto;
    font-size: 1.2em;
    line-height: 1.5;
}


                                    /* Zoom overlay til projektbilleder og videoer */

.billede-zoom {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 999;
}

/* når zoom er trykker og hash rammer et sit target */
.billede-zoom:target {
    opacity: 1;
    pointer-events: auto;
}

/* selve det zoomet billede */
.billede-zoom-billede {
    max-height: 90vh;
    max-width: 90vw;
    height: auto;
    width: auto;
    border-radius: 1em;
    box-shadow: 0 1.5em 3em rgba(0, 0, 0, 0.8);
}

/* luk-knap i hjørnet */
.billede-zoom-luk {
    position: fixed;
    top: 1.5rem;
    right: 2rem;
    font-size: 2.5rem;
    color: #f2f2f2;
    text-decoration: none;
    cursor: pointer;
}


/* alle videoprojekter "billede-link" holder på overlay */
.side-video-projekt .side-projekt-billede-link {
    position: relative;
    display: block;
}

/* Fast overlay der siger man kan trykke for at se videoen */
.side-video-projekt .side-projekt-billede-link::after {
    content: "Tryk for at se videoen";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    font-size: 2em;
    font-weight: bold;
    color: #f2f2f2;
    background: radial-gradient(
        circle at center,
        rgba(0, 0, 0, 0.4),
        rgba(0, 0, 0, 0.85)
    );
    opacity: 1;
    pointer-events: none;
    border-radius: inherit;
}


                                    /* Musik-side */

#side-musik .side-kort {
    display: flex;
    flex-direction: column;
}

/* wrapper til sideopsætningen (Tekst, liste og controls) */
.musik-indhold {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 1.2em;
}

/* intro-tekst */
.musik-intro {
    flex: 0 0 auto;
    font-size: 0.95em;
    opacity: 0.85;
}

.musik-playliste {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.35em;
    padding-right: 0.2em;
}

.musik-track {
    display: flex;
    align-items: center;
    gap: 0.9em;
    padding: 0.55em 0.9em;
    border-radius: 0.8em;
    text-decoration: none;
    color: inherit;
    transition:
        background-color 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.musik-track:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-0.5px);
    box-shadow: 0 0.5em 1.2em rgba(0, 0, 0, 0.5);
}

.musik-track-nummer {
    width: 2em;
    font-size: 1em;
    opacity: 0.7;
}

/* midterkolonnen */
.musik-track-main {
    flex: 1 1 auto;
    margin-top: 0.5%;
    margin-bottom: 0.5%;
}

.musik-track-top {
    display: flex;
    align-items: center;
    gap: 0.8em;
}

.musik-track-cover {
    width: 4em;
    aspect-ratio: 1 / 1;
    border-radius: 0.5em;
    object-fit: cover;
    flex-shrink: 0;
}

/* Wrapper */
.musik-track-tekst {
    display: flex;
    flex-direction: column;
    gap: 0.25em;
}

.musik-track-titel {
    font-size: 1em;
    font-weight: 600;
}

.musik-track-artist {
    font-size: 0.9em;
    opacity: 0.75;
}

/* “tid” / projektkategori */
.musik-track-tid {
    font-size: 0.9em;
    opacity: 0.72;
    white-space: nowrap;
}


                                    /* Bunden af musiksiden */

.musik-controls-wrapper {
    margin-top: auto; /* skubber controls ned i bunden af side-kortet */
    display: flex;
    justify-content: center;
}

.musik-controls {
    width: min(50em, 90%);
    display: flex;
    flex-direction: column;
    gap: 0.7em;
    padding: 0.9em 1.5em;
}

/* knappernes wrapper */
.musik-controls-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.7em;
}

.musik-btn {
    width: 3em;
    aspect-ratio: 1 / 1;
    border-radius: 999px;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95em;
    color: #f2f2f2;
    cursor: pointer;
    transition:
        background 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease,
        color 0.18s ease;
}

/* fordi play skal være større */
.musik-btn--play {
    width: 3.2em;
    font-size: 1.1em;
}

.musik-btn:hover {
    background: rgba(242, 242, 242, 0.95);
    color: #0a0a0a;
    transform: translateY(-0.5px);
    box-shadow: 0 0.7em 1.6em rgba(0, 0, 0, 0.6);
}

.musik-tidslinje {
    display: flex;
    align-items: center;
    gap: 0.6em;
    font-size: 0.8em;
    opacity: 0.8;
}

.musik-tidslinje-bar {
    flex: 1 1 auto;
    height: 0.3em;
    border-radius: 999px;
    background: rgba(242, 242, 242, 0.28);
    overflow: hidden;
    position: relative;
}

.musik-tidslinje-fyldt {
    position: absolute;
    inset: 0;
    width: 40%; 
    background: rgba(242, 242, 242, 0.95);
}

.musik-tidslinje-tid {
    min-width: 2.1em;
    text-align: center;
}









                                    /* Spotify og OB popup */

.musik-popup,
.social-popup,
.ob-popup {
  color: #f2f2f2;
  font-size: min(1.4vmin, 18px);
}

.musik-popup-kort,
.social-popup-kort,
.ob-popup-kort {
  max-width: min(32em, calc(100% - 3rem)); 
  width: 100%;
  margin-bottom: 3%;
}

.musik-popup {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 50; 
    margin-bottom: 1%;
}

.musik-popup--aktiv {
    pointer-events: auto;
    opacity: 1;
}

.musik-popup-kort {
    width: min(32em, 90%);
    padding: 1.8em 2em;
    position: relative;
}

.musik-popup-luk {
    position: absolute;
    right: 1.2em;
    top: 1.0em;
    border: none;
    background: transparent;
    font-size: 2em;
    color: rgba(242, 242, 242, 0.8);
    cursor: pointer;
}

.musik-popup-indhold {
    display: flex;
    gap: 1.4em;
    align-items: center;
}

.musik-popup-cover-wrapper {
    flex: 0 0 7em;
    border-radius: 1em;
    overflow: hidden;
}

.musik-popup-cover {
    width: 100%;
    height: auto;
    display: block;
}

.musik-popup-tekst {
    flex: 1 1 auto;
    font-size: 0.95em;
}

.musik-popup-label {
    font-size: 0.8em;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 0.4em;
}

.musik-popup-titel {
    font-size: 1.3em;
    margin-bottom: 0.1em;
}

.musik-popup-artist {
    font-size: 1em;
    opacity: 0.85;
    margin-bottom: 0.2em;
}

.musik-popup-album {
    font-size: 0.9em;
    opacity: 0.7;
    margin-bottom: 0.8em;
}

.musik-popup-knap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4em 1.1em;
    border-radius: 999em;
    border: 0.06em solid rgba(242, 242, 242, 0.7);
    text-decoration: none;
    font-size: 0.9em;
    color: #0a0a0a;
    background: rgba(242, 242, 242, 0.9);
}

.musik-popup-fejl {
    margin-top: 0.6em;
    font-size: 0.8em;
    color: #ffb3b3;
}


                                    /* Some popup */

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.6em;
    margin-top: 0.6em;
}

/* nederste knapper */
.social-links-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6em;
    margin-top: 0.8em;
}

/* fælles stil */
.social-link {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55em;
    text-align: center;
        font-size: 1.1em;

}

.social-link--linkedin {
    background: #0a66c2;
    border-color: #0a66c2;
    color: #f2f2f2;
}

.social-link--facebook {
    background: #1877f2;
    border-color: #1877f2;
    color: #f2f2f2;
}

.social-link--instagram {
    background: radial-gradient(circle at 30% 30%, #fdf497 0, #fdf497 10%, #fd5949 45%, #d6249f 70%, #285aeb 100%);
    border-color: #d6249f;
    color: #0a0a0a;
}

.social-link--spotify {
    background: #1db954;
    border-color: #1db954;
    color: #0a0a0a;
}





/* enkel lille animation til bølge */
@keyframes glas-bolge {
    0%   { transform: translate3d(-5%, -5%, 0) scale(1); }
    100% { transform: translate3d(5%, 5%, 0) scale(1.05); }
}


@media (max-width: 720px) {
    
    .app-skaerm {
        height: 80vh;
        aspect-ratio: 9 / 16;
        width: auto;
        min-width: 90vw;
        padding: 0% 5% 10%;
        font-size: clamp(3px, 1.8vmin, 8px);
        row-gap: 3%;
        margin-top: 0;
    }

    body {
        align-items: flex-start;
        padding-top: 3vh;
    }

    .baggrund-video{ 
        display:none;
    }

    .topbjaelke {
        width: 100%;
        height: 80%;
    }

    .indhold-gitter {
        width: 70%;
        margin: 0 auto;
        grid-template-columns: repeat(2, minmax(30%, 1fr));
        column-gap: 4vw;
        row-gap: 1vh;
    }

    .indhold-boks {
        aspect-ratio: 1 / 1;
    }


    .indhold-ikon {
        font-size: 4em;
    }

    .indhold-titel {
        font-size: 1.2em;
    }

    .indhold-undertekst {
        font-size: 0.8em;
    }

    /* slår hover-effekten fra på bokse */
    .indhold-boks:hover::before {
        border-color: rgba(242, 242, 242, 0);
        opacity: 0;
        transform: scale(1);
    }

    .indhold-boks:hover .indhold-ikon,
    .indhold-boks:hover .indhold-titel {
        color: rgba(242, 242, 242, 0.5);
        transform: translateY(0);
    }

    .indhold-boks:hover .indhold-undertekst {
        opacity: 0;
        max-height: 0;
        transform: translateY(0.3rem);
    }

    /* slår hover fra på dockknapper */
    .dock-knap.glas-indre:hover {
        transform: none;
        box-shadow: 0 0.8em 1.6em rgba(10, 10, 10, 0.6);
    }

    .dock-knap:hover .dock-ikon {
        color: rgba(242, 242, 242, 0.5);
    }

    .dock-knap:hover .dock-billede {
        filter: brightness(0) invert(0.95);
        opacity: 1;
    }

    .bund-dock {
        width: min(25em, 100%);
        gap: 0.9em;
        padding: 0.8em 1.6em;
        justify-content: center;
    }

    .musik-track-cover {
        width: 2.2em;
    }

    .musik-track-titel {
        font-size: 0.9em;
    }

    .musik-track-artist,
    .musik-track-tid {
        font-size: 0.75em;
    }

    .social-links-grid {
        grid-template-columns: 1fr;
    }

    .galleri-gitter {
        column-count: 1;
        column-gap: 0;
    }    


    .side-om-mig-indhold{
        display: grid;
        grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
        grid-template-rows: auto 1fr;
        grid-template-areas:
        "media header"
        "text  text";
        column-gap: 1em;
        row-gap: 1em;
        align-items: start;
        margin: auto 0.5em 0.5em auto;

    }

    #ommigbillede{
        grid-area: media;
        width: 100%;
    }

    /* gør at .side-overskrift og .side-tekst bliver grid-items */
    .side-om-mig-tekst-wrapper{
        display: contents;
    }

    .side-overskrift{
        grid-area: header;
        margin-bottom: 0;   /* så den ikke skubber layoutet */
        align-self: end;
    }

    #side-om-mig .side-tekst{
        grid-area: text;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        max-height: 100%;
        margin-bottom: 1em;
    }

    #ommigbillede video {
        display: none !important;
    }

    #ommigbillede .ommig-billede-fallback {
        display: block !important;
    }

    #side-om-mig .side-kort {
        padding: 2.5em 3em;
    }

    .side-header{
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        align-items: start;
        justify-items: center;
        margin-bottom: 1.5em;
        position: relative;
    }

    .side-tilbage{
        position: static;
        justify-self: start;
        align-self: start;
        margin-right: auto;
    }

    .side-header-titel{
        margin-top: 0.1em;
    }


    .mappe-label {
        font-size: 2em;
    }

    .mappe-titel {
        font-size: 1.5em;
    }

    .mappe-tekst {
        font-size: 1em;
    }

    .mappe {
        margin-top: 0;
        border-radius: 0;
    }

    .hjemmeside-link {
        padding: 4%;
    }

    .side-projekt {
        flex-direction: column;
    }
}