@import url("../../shared/css/variables.css");
@import url("../../shared/css/style.css");

/* --------------------------------------------------
   GLOBALT
-------------------------------------------------- */

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);

    background-image: url('../img/bg-mainhome.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: var(--private-bg);

    color: #111;
}

.col-left {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: #111;

    background: rgba(255,255,255,0.75);
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(0,0,0,0.25);
}


/* --------------------------------------------------
   MENU
-------------------------------------------------- */

.menu {
    position: sticky;
    top: 0;
    z-index: 999;
    background: var(--private-primary);
    padding: 10px 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

.menu-list {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.menu-list a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 6px 12px;
    border-radius: 5px;
    transition: var(--transition-speed);
}

.menu-list a:hover,
.menu-list a.active {
    background: rgba(255,255,255,0.1);
}

.menu-list .active {
    background: var(--private-accent);
}


/* --------------------------------------------------
   HERO (hvis du bruger hero-om senere)
-------------------------------------------------- */

/* HERO – om-mig  (om-mig) */
.hero-om {
    height: 260px;
    background-image: url('../img/hero-om-mig.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin-bottom: 35px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 25px rgba(0,0,0,0.25);
}

.hero-om::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.15) 100%);
}

/* HERO – INDEX (VELKOMSTMÅTTEN) */
.hero-privat {
    height: 260px;
    background-image: url('../img/hero-forside.jpg'); /* ← SKIFT NAVN HVIS BILLEDET HEDDER NOGET ANDET */
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin-bottom: 35px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 25px rgba(0,0,0,0.25);
}

.hero-privat::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.15) 100%);
}

.hero-kontakt,
.hero-galleri {
    height: 260px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin-bottom: 35px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 25px rgba(0,0,0,0.25);
}

.hero-kontakt {
    background-image: url('../img/hero-kontakt.jpg');
}

.hero-galleri {
    background-image: url('../img/hero-galleri.jpg');
}

.hero-kontakt::after,
.hero-galleri::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.15) 100%);
}


/* --------------------------------------------------
   OM-MIG LAYOUT
-------------------------------------------------- */

.main-content {
    margin-top: 20px;
}

.om-wall {
    background: rgba(255,255,255,0.85);
    padding: 20px;
    border-radius: 10px;
}

.om-loft {
    height: 20px;
    background: #d8d4cb;
    border-radius: 6px;
    margin-bottom: 20px;
}

/* To kolonner: billede til venstre, tekst til højre */
.om-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
}

/* Venstre: portræt */
.om-left {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

/* Højre: alle tekstsektioner */
.om-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Profilbillede */
.profil-billede {
    width: 200px;
    height: auto;
    border-radius: 10px;
    display: block;
    box-shadow: 0 0 20px rgba(0,0,0,0.35);
}


/* --------------------------------------------------
   SEKTIONER
-------------------------------------------------- */

.om-section {
    background: #ffffff;
    padding: 25px 30px;
    border-radius: 10px;
    box-shadow: 0 0 18px rgba(0,0,0,0.15);
}

.om-section h2 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: #222;
    font-weight: 600;
}

.om-section h3 {
    font-size: 1.2rem;
    margin-top: 15px;
    margin-bottom: 5px;
    color: #333;
}

.om-section p {
    line-height: 1.7;
    font-size: 1.02rem;
    color: #333;
    margin-bottom: 8px;
}

.om-section ul {
    margin: 0 0 10px 18px;
    padding: 0;
}

.om-section ul li {
    margin-bottom: 4px;
}


/* --------------------------------------------------
   KNAP "TILBAGE"
-------------------------------------------------- */

.knap {
    margin-top: 20px;
    text-align: center;
}

.knap a {
    display: inline-block;
    padding: 8px 18px;
    background: var(--private-primary);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(0,0,0,0.25);
    transition: var(--transition-speed);
}

.knap a:hover {
    background: var(--private-accent);
}

.site-footer {
    background: var(--private-primary);
    color: #fff;
}


/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */

.footer {
    background: #2c2c2c;
    color: #eee;
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    margin-top: 25px;
    box-shadow: 0 0 15px rgba(0,0,0,0.25);
}

/* PRIVAT LOGO */
.privat-logo img {
    width: 120px;
    margin-bottom: 10px;
}

/* SKYGGEBOKS UNDER HERO */
.index-shadow-box {
    width: 100%;
    height: 20px;
    background: rgba(0,0,0,0.15);
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 0 20px rgba(0,0,0,0.35);
}

/* GRID MED TO KASSER */
.index-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 20px;
}

/* KASSERNE */
.index-box {
    background: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 0 18px rgba(0,0,0,0.15);
}

.index-box h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.6rem;
    color: #222;
}

/* ========== LOGO I TOPPEN ========== */
.privat-logo {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 10px;
}

.privat-logo img {
    width: 90px;
    height: auto;
    opacity: 0.95;
    filter: drop-shadow(0 0 4px rgba(0,0,0,0.25));
}


/* ========== HERO (VELKOMSTMÅTTEN) ========== */
.hero-privat {
    height: 260px;
    background-image: url('../img/hero-forside.jpg'); /* ← DIN MÅTTE */
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 25px rgba(0,0,0,0.25);
}

.hero-privat::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.18) 100%);
}

/* ========== SKYGGEBOKS UNDER HERO ========== */
.index-shadow-box {
    width: 100%;
    height: 18px;
    background: rgba(0,0,0,0.12);
    border-radius: 10px;
    margin: 15px 0 25px 0;
    box-shadow: 0 0 20px rgba(0,0,0,0.35);
}


/* ========== GRID MED TO KASSER ========== */
.index-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 40px;
}


/* ========== KASSERNE ========== */
.index-box {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 0 18px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.index-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(0,0,0,0.25);
}

.index-box h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.6rem;
    color: #222;
    font-weight: 600;
}

.index-box p {
    line-height: 1.6;
    color: #333;
}


/* ========== MOBILVENLIGT ========== */
@media (max-width: 800px) {
    .index-grid {
        grid-template-columns: 1fr;
    }

    .privat-logo img {
        width: 70px;
    }

    .hero-privat {
        height: 200px;
    }
}

/* -------------------------------------- */
/* HERO – HISTORIE */
/* -------------------------------------- */

.hero-historie {
    height: 260px;
    background-image: url('../img/hero-historie.jpg'); /* skift til dit billede */
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 0 25px rgba(0,0,0,0.25);
    position: relative;
    overflow: hidden;
}

.hero-historie::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.18) 100%);
}

/* -------------------------------------- */
/* CONTENT BOXES */
/* -------------------------------------- */

.content-box {
    background: rgba(255,255,255,0.85);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 0 18px rgba(0,0,0,0.15);
}

.content-box h2 {
    margin-top: 0;
    font-size: 1.8rem;
    color: #222;
}

/* -------------------------------------- */
/* BILLEDER I HISTORIE-SIDEN */
/* -------------------------------------- */

.historie-billede {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 25px 0 10px 0;
}

.historie-billede img {
    width: 100%;
    max-width: 350px;
    border-radius: 12px;
    box-shadow: 0 0 18px rgba(0,0,0,0.25);
}

/* -------------------------------------- */
/* FOOTER */
/* -------------------------------------- */

.footer {
    text-align: center;
    padding: 15px;
    margin-top: 30px;
    background: rgba(0,0,0,0.4);
    color: #fff;
    border-radius: 8px;
}

/* -------------------------------------- */
/*   PRIVAT – BEDRE TEKSTKONTRAST         */
/* -------------------------------------- */

.content-box {
    background: rgba(255, 255, 255, 0.96);
    color: #111;
    padding: 25px;
    margin: 40px 0;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 0 20px rgba(0,0,0,0.08);
}

.content-box h1,
.content-box h2 {
    margin-bottom: 15px;
    font-size: 26px;
    color: #111;
    letter-spacing: 0.5px;
}

.content-box p,
.content-box li,
.content-box strong,
.content-box label {
    color: #111;
}

.content-box p {
    line-height: 1.7;
    margin-bottom: 15px;
}

/* Kapitel linje */
.chapter-line {
    border: none;
    border-top: 1px solid rgba(0,0,0,0.1);
    margin: 50px 0;
}

/* -------------------------------------- */
/*   HISTORIE – BILLEDER                  */
/* -------------------------------------- */

.historie-billede {
    width: 100%;
    max-width: 350px;
    margin: 25px auto;
    text-align: center;
}

.historie-billede img {
    width: 100%;
    height: auto;
    max-width: 350px;
    border-radius: 6px;
    box-shadow: 0 0 12px rgba(0,0,0,0.4);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.historie-billede img:hover {
    transform: scale(1.02);
}

/* -------------------------------------- */
/*   LIGHTBOX – SMÅ JUSTERINGER           */
/* -------------------------------------- */

.lb-data .lb-caption {
    font-size: 16px;
    color: #eee;
}

.lb-data .lb-number {
    color: #ccc;
}

/* -------------------------------------- */

.custom-lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.92);
    padding: 20px;
    z-index: 9999;
}

.custom-lightbox.active {
    display: flex;
}

.custom-lightbox .lightbox-inner {
    max-width: 100%;
    max-height: 100%;
    text-align: center;
    padding: 24px;
    background: #f8f1e5;
    border: 12px solid #e7cfab;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.custom-lightbox img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 12px;
    border: 8px solid #fff7e6;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
}

.custom-lightbox .lightbox-caption {
    color: #4d4030;
    margin-top: 16px;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 90vw;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.05);
}

.custom-lightbox .close-lightbox {
    position: absolute;
    top: 18px;
    right: 18px;
    color: #fff;
    font-size: 2.2rem;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
}

.custom-lightbox .close-lightbox:hover {
    color: #f5f5f5;
}

/* -------------------------------------- */
/*   TIL-TOP KNAP                         */
/* -------------------------------------- */

#toTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 12px 16px;
    font-size: 22px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 12px rgba(150, 200, 255, 0.4);
}

#toTopBtn:hover {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 18px rgba(180, 220, 255, 0.8);
    transform: scale(1.1);
}

/* -------------------------------------- */
/*   HERO – HISTORIE SIDE                 */
/* -------------------------------------- */

.hero-historie {
    width: 100%;
    height: 220px;
    background: url('../img/hero-historie.jpg') center/cover no-repeat;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

/* Kontakt bokse */
.kontakt-box {
    background: #ffffff;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 6px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Formular */
.kontakt-form label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

.m-p-g {
    max-width: 100%;
    margin: 0 auto;
}

.m-p-g__thumbs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 160px;
    gap: 18px;
    grid-auto-flow: dense;
    padding: 18px;
    background: #f6efe3;
    border: 10px solid #e6d2ac;
    border-radius: 24px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.m-p-g__thumbs-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 14px;
    border: 8px solid #f8ead1;
    background: #fdf7ed;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.65), 0 8px 18px rgba(0,0,0,0.12);
    transition: transform 0.25s ease, filter 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

.m-p-g__thumbs-img:hover {
    transform: scale(1.03);
    filter: brightness(1.05);
}

.m-p-g__thumbs-img[data-layout="wide"] {
    grid-column: span 2;
}

.m-p-g__thumbs-img[data-layout="tall"] {
    grid-row: span 2;
}

.m-p-g__thumbs-img[data-layout="wide"][data-layout="tall"] {
    grid-column: span 2;
    grid-row: span 2;
}

.m-p-g__fullscreen {
    position: fixed;
    z-index: 999;
    inset: 0;
    display: none;
    background: rgba(0,0,0,0.92);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.m-p-g__fullscreen.active {
    display: flex;
}

.m-p-g__fullscreen-img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 14px;
    box-shadow: 0 0 30px rgba(0,0,0,0.4);
}

.m-p-g__controls-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: none;
    font-size: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
}

@media (max-width: 900px) {
    .m-p-g__thumbs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 140px;
    }
}

@media (max-width: 620px) {
    .m-p-g__thumbs {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
    }
}

.kontakt-form input,
.kontakt-form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.kontakt-form button {
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #0058a3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.kontakt-form button:hover {
    background-color: #004b8a;
}

/* Privat knap */
.privat-knap {
    display: inline-block;
    padding: 10px 20px;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-weight: bold;
}

.privat-knap:hover {
    background-color: #e0e0e0;
}

/* Footer */
.site-footer {
    margin-top: 40px;
    padding: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    border-top: 1px solid #ddd;
    background-color: #fafafa;
}

/* Tilbage-knap (kun til index) */
.back-wrapper {
    width: 100%;
    text-align: center;
    margin-top: 20px;
}

.back-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: 0.2s ease;
}

.back-btn:hover {
    background: #ccc;
}
