/* --------------------------------------------------
   GLOBALT LAYOUT & BAGGRUND
-------------------------------------------------- */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: url('img/header-egetrae.jpg') center/cover no-repeat fixed;
    color: #fff;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at center,
            rgba(0,0,0,0) 40%,
            rgba(0,0,0,0.25) 70%,
            rgba(0,0,0,0.45) 100%
        ),
        rgba(0,0,0,0.55);
    z-index: -1;
    pointer-events: none;
}

/* --------------------------------------------------
   HEADER
-------------------------------------------------- */
header {
    text-align: center;
    padding: 2.5rem 1rem;
    background-image: url('img/header-egetrae.jpg');
    background-size: cover;
    background-position: center;
    color: #2b2b2b;
    clip-path: polygon(
        0% 6%, 5% 2%, 15% 5%, 25% 3%, 35% 7%, 45% 4%, 
        55% 6%, 65% 2%, 75% 5%, 85% 3%, 95% 6%, 100% 2%,
        100% 94%, 95% 98%, 85% 95%, 75% 97%, 65% 93%, 
        55% 96%, 45% 94%, 35% 98%, 25% 93%, 15% 97%, 
        5% 94%, 0% 98%
    );
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    position: relative;
    z-index: 1;
}

header h1 {
    font-size: 3rem;
    margin: 0;
    font-weight: 800;
}

header h2 {
    font-size: 1.4rem;
    margin: 0.4rem 0 0;
    font-weight: 400;
}

/* --------------------------------------------------
   MENU
-------------------------------------------------- */
nav {
    background: #333;
    padding: 0.7rem;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 0.7rem;
    font-size: 1.05rem;
}

nav a.active {
    font-weight: bold;
    text-decoration: underline;
}

/* Facebook-knap */
nav a.fb {
    background: #1877f2;
    color: white;
    padding: 0.35rem 0.7rem;
    border-radius: 4px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.fb-icon {
    background: white;
    color: #1877f2;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* --------------------------------------------------
   MAIN
-------------------------------------------------- */
main {
    max-width: 900px;
    margin: 2rem auto;
    padding: 1.5rem;
    background: transparent;
    color: #fff;
}

main h2, main h3 {
    margin-top: 0;
}

/* --------------------------------------------------
   TRANSBOX
-------------------------------------------------- */
.transbox {
    background: rgba(0, 0, 0, 0.35);
    padding: 25px;
    border-radius: 12px;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    margin-bottom: 25px;
}

/* --------------------------------------------------
   FORSIDE BILLEDER
-------------------------------------------------- */
.forside-billeder {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.forside-billeder img {
    width: 33%;
    border-radius: 6px;
}

/* --------------------------------------------------
   REEL + SLIDESHOW
-------------------------------------------------- */
.reel-slideshow-wrapper {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    position: relative;
}

.reel-wrapper {
    position: relative;
    width: 300px;
    height: 533px;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}

/* Kant-blokkere */
.kant-blokker {
    position: absolute;
    background: transparent;
    z-index: 10;
    pointer-events: auto;
}

.kant-blokker.top { top: 0; left: 0; width: 100%; height: 25px; }
.kant-blokker.bottom { bottom: 0; left: 0; width: 100%; height: 25px; }
.kant-blokker.left { top: 0; left: 0; width: 25px; height: 100%; }
.kant-blokker.right { top: 0; right: 0; width: 25px; height: 100%; }

/* Slideshow */
.slideshow-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 550px;
    height: 412px;
    border-radius: 10px;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

/* --------------------------------------------------
   GALLERI
-------------------------------------------------- */
.galleri-masonry {
    column-count: 3;
    column-gap: 10px;
}

.galleri-masonry img {
    width: 100%;
    margin-bottom: 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.galleri-masonry img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 10px rgba(0,0,0,0.6);
}

#zoomOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    opacity: 0;
    display: none;
    z-index: 999999;
}

#zoomClone {
    position: fixed;
    display: none;
    z-index: 1000000;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.8);
}

/* --------------------------------------------------
   BESTILLING – GRID
-------------------------------------------------- */
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.full {
    grid-column: 1 / 3;
}

label {
    font-weight: bold;
    margin-bottom: 4px;
    display: block;
}

.dimension-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    align-items: center;
}

.x-symbol {
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    padding-top: 20px;
}

/* --------------------------------------------------
   FELTER – ENSARTET STYLING
-------------------------------------------------- */
input,
textarea,
select {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    background: rgba(0,0,0,0.35) !important;
    color: #fff !important;
    border: 1px solid #aaa;
    border-radius: 6px;
    font-size: 1rem;
}

input:focus,
textarea:focus,
select:focus {
    background: rgba(0,0,0,0.45) !important;
    outline: none;
    border-color: #ddd;
}

/* Dropdowns */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 35px;
}

select option {
    background: rgba(0,0,0,0.85);
    color: #fff;
}

/* --------------------------------------------------
   AUTOFILL – FULD OVERSTYRING
-------------------------------------------------- */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px rgba(0,0,0,0.35) inset !important;
    box-shadow: 0 0 0 1000px rgba(0,0,0,0.35) inset !important;
    -webkit-text-fill-color: #fff !important;
    caret-color: #fff !important;
    border: 1px solid #aaa !important;
    transition: background-color 9999s ease-in-out 0s !important;
}

/* Skjulte felter */
.hidden {
    display: none;
}

/* --------------------------------------------------
   POP-UP TASTATUR
-------------------------------------------------- */
#keypadOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#keypadBox {
    background: #222;
    padding: 20px;
    border-radius: 10px;
    width: 260px;
    text-align: center;
    color: white;
}

.keypad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}

.key-btn {
    background: #444;
    padding: 12px;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
}

.keypad-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

button {
    margin-top: 20px;
    padding: 14px;
    font-size: 18px;
    cursor: pointer;
    width: 100%;
}

/* --------------------------------------------------
   RESPONSIVT
-------------------------------------------------- */
@media (max-width: 700px) {
    .grid {
        grid-template-columns: 1fr;
    }
    .full {
        grid-column: 1;
    }
}
.om-billeder {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.om-billeder img {
    width: 45%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
}
/* Tekst i to kolonner */
.om-tekst {
    column-count: 2;
    column-gap: 40px;
}

.om-tekst p {
    break-inside: avoid;
    margin-bottom: 1.2rem;
}

/* Billeder side om side */
.om-billeder {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.om-billeder img {
    width: 45%; /* samme størrelse som nu */
    max-width: 400px;
    border-radius: 10px;
}
/* --- 2 kolonner til tekst --- */
.two-columns {
    column-count: 2;
    column-gap: 40px;
}

@media (max-width: 800px) {
    .two-columns {
        column-count: 1;
    }
}

/* --- SEO-kasse som transbox --- */
.seo-box {
    background-color: rgba(0, 0, 0, 0.55);
    padding: 20px 30px;
    margin: 40px auto;
    max-width: 1000px;
    border-radius: 8px;
}

/* --- Centrer overskrifter --- */
.transbox h2,
.seo-box h2 {
    text-align: center;
}

/* --- Mørkere tekstfarve --- */
.transbox p,
.seo-box p {
    color: #e0e0e0;
}
