/* GRUNDLÆGGENDE RESET OG VAR */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --primary-color: #f39c12;
    --dark-bg: #000;
    --darker-grey: #111;
    --text-color: #fff;
    --alert-color: #e74c3c;
    --font-stack: 'Roboto', sans-serif;
    --header-offset: 104px;
    --section-top-padding: 0px;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--header-offset); }
body { 
    font-family: var(--font-stack); 
    background: var(--dark-bg); 
    color: var(--text-color); 
    line-height: 1.5; 
    overflow-x: hidden; 
    -webkit-font-smoothing: antialiased; 
}

body.menu-open { overflow: hidden; }

#top,
#mandskab,
#have,
#handel,
#faktura {
    scroll-margin-top: var(--header-offset);
}

/* HEADER & NAVIGATION */
header { position: fixed; top: 0; width: 100%; z-index: 1000; background: rgba(0,0,0,0.95); border-bottom: 2px solid var(--primary-color); backdrop-filter: blur(5px); }
.top-bar { background: var(--darker-grey); padding: 5px 0; border-bottom: 1px solid #222; }
.top-flex { display: flex; justify-content: space-between; align-items: center; gap: 20px; max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.contact-info-top { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; }
.contact-info-top a { color: var(--primary-color); text-decoration: none; margin-left: 20px; font-size: 0.8rem; font-weight: bold; white-space: nowrap; }

.header-flex { display: flex; justify-content: space-between; align-items: center; padding: 10px 20px; max-width: 1200px; margin: 0 auto; height: 60px; }
.logo-link { font-weight: 900; color: var(--primary-color); font-size: 1.3rem; text-decoration: none; text-transform: uppercase; z-index: 2002; letter-spacing: 1px; }

nav ul { display: flex; list-style: none; gap: 20px; padding: 0; margin: 0; }
nav a { color: #fff; text-decoration: none; font-size: 0.85rem; font-weight: bold; text-transform: uppercase; transition: color 0.3s; padding: 5px; }
nav a:hover { color: var(--primary-color); }

.burger-menu { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; z-index: 2002; padding: 10px; }
.burger-menu span { display: block; width: 28px; height: 3px; background: var(--primary-color); transition: 0.3s; border-radius: 2px; }
.burger-menu.toggle span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.burger-menu.toggle span:nth-child(2) { opacity: 0; }
.burger-menu.toggle span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* SEKTIONER - Fast Justering i Toppen */
.section-bg-design { 
    position: relative; 
    min-height: 100vh; 
    display: flex; 
    align-items: flex-start;
    justify-content: center; 
    background-size: cover; 
    background-position: center; 
    padding: var(--section-top-padding) 20px 40px;
    scroll-margin-top: var(--header-offset);
}

/* Forsiden holdes centreret */
.hero-bg { 
    align-items: center; 
    padding-top: var(--header-offset); 
    scroll-margin-top: 0;
    background-image: url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?auto=format&fit=crop&w=1920&q=80'); 
}

#faktura {
    min-height: 80vh; 
    padding-bottom: 20px;
}

#mandskab,
#have,
#handel,
#faktura {
    padding-top: var(--section-top-padding);
}

.mandskab-bg { background-image: url('https://images.unsplash.com/photo-1541888946425-d81bb19480c5?auto=format&fit=crop&w=1200&q=80'); }
.have-bg { background-image: url('https://pinploy-prod.s3.eu-central-1.amazonaws.com/private%2Fimages_for_articles_gpt%2F1760214501158_771871.webp'); }
.handel-bg { background-image: url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?auto=format&fit=crop&w=1200&q=80'); }
.faktura-bg { background-image: url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?auto=format&fit=crop&w=1200&q=80'); }

.overlay { position: absolute; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.8); }
.overlay.darker { background: rgba(0,0,0,0.88); }
.content-z { position: relative; z-index: 2; width: 100%; max-width: 1000px; }

.glass-box { background: rgba(15, 15, 15, 0.95); border: 1px solid #444; padding: 40px; border-radius: 4px; border-left: 5px solid var(--primary-color); box-shadow: 0 5px 20px rgba(0,0,0,0.5); }
.glass-box.red-border { border-left-color: var(--alert-color); }

h1 { font-size: 3rem; color: var(--primary-color); margin-bottom: 20px; text-transform: uppercase; line-height: 1.1; }
h2 { font-size: 1.8rem; font-weight: 900; margin-bottom: 15px; color: #fff; line-height: 1.25; }
p { margin-bottom: 15px; font-size: 1rem; color: #ccc; }
.cta-text { font-weight: bold; color: var(--primary-color); border-top: 1px solid #333; padding-top: 15px; margin-top: 15px; display: block; }

.alert-red { color: var(--alert-color) !important; }
.invoice-highlight-box { background: rgba(231, 76, 60, 0.1); border: 1px solid var(--alert-color); padding: 20px; margin: 20px 0; border-radius: 4px; text-align: center; }
.invoice-highlight-box a { font-size: 1.3rem; font-weight: 900; color: var(--alert-color); text-decoration: none; word-break: break-all; }
.requirements-box { margin-top: 20px; padding: 20px; background: rgba(255,255,255,0.05); }

.text-columns { display: flex; gap: 30px; margin: 20px 0; }
.col { flex: 1; }
.clean-list-dots { list-style: none; padding: 0; }
.clean-list-dots li { position: relative; padding-left: 20px; margin-bottom: 10px; font-size: 0.95rem; text-align: left; }
.clean-list-dots li::before { content: "•"; position: absolute; left: 0; color: var(--primary-color); font-weight: bold; top: -1px; font-size: 1.2rem; }
.red-dots li::before { color: var(--alert-color) !important; }

.contact-badge { display: inline-block; padding: 15px 20px; background: #000; border: 1px solid var(--primary-color); margin-top: 20px; text-align: left; max-width: 100%; }
.role { font-size: 0.7rem; text-transform: uppercase; color: #888; letter-spacing: 1px; }
.name { font-size: 1.3rem; font-weight: 900; color: #fff; margin: 2px 0 5px; }
.contact-badge a { color: var(--primary-color); font-weight: bold; text-decoration: none; font-size: 1rem; margin-right: 15px; display: inline-block; padding: 5px 0; }

.btn-primary, .btn-secondary { padding: 14px 30px; text-decoration: none; font-weight: bold; margin: 10px 10px 10px 0; display: inline-block; text-transform: uppercase; letter-spacing: 0.5px; transition: transform 0.2s; }
.btn-primary { background: var(--primary-color); color: #000; border: none; }
.btn-secondary { border: 2px solid #fff; color: #fff; background: transparent; }
.hero-btns { margin-top: 20px; }

.scroll-top { position: fixed; bottom: 20px; right: 20px; background: var(--primary-color); color: #000; width: 45px; height: 45px; border-radius: 50%; display: flex; justify-content: center; align-items: center; text-decoration: none; font-weight: bold; z-index: 2000; font-size: 1.2rem; box-shadow: 0 2px 10px rgba(0,0,0,0.3); opacity: 0.9; }

footer { 
    background: #000; 
    padding: 30px 0; 
    text-align: center; 
    border-top: 1px solid #1a1a1a; 
    font-size: 0.85rem; 
    color: #555; 
}

@media (max-width: 900px) {
    :root { --header-offset: 138px; --section-top-padding: 0px; }

    .burger-menu { display: flex; }

    nav {
        position: fixed;
        top: var(--header-offset);
        right: -100%;
        width: min(280px, 84vw);
        height: calc(100dvh - var(--header-offset));
        background: #111;
        padding: 18px 0 24px;
        overflow-y: auto;
        transition: right 0.4s ease;
        z-index: 2001;
        border-left: 1px solid #222;
        box-shadow: -10px 0 24px rgba(0,0,0,0.35);
    }

    nav.active { right: 0; }

    nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 0 18px;
    }

    nav li { width: 100%; }

    nav a {
        display: block;
        width: 100%;
        padding: 14px 12px;
        font-size: 0.95rem;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .text-columns { flex-direction: column; gap: 15px; }
    .glass-box { padding: 30px 20px; margin: 0 10px; }
    h1 { font-size: 2.2rem; }
    .btn-primary, .btn-secondary { width: 100%; margin: 5px 0; }
}

.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.container.header-flex { max-width: 1000px; padding-left: 20px; padding-right: 20px; }

.contact-badge.contact-has-photo { padding: 16px 16px; display:block; }
.contact-flex { display:flex; align-items:flex-start; gap:16px; }
.contact-avatar { width:110px; height:110px; object-fit:cover; border-radius:4px; border:1px solid #444; box-shadow:0 2px 8px rgba(0,0,0,0.35); }
.contact-text { flex:1 1 auto; min-width:0; }

.glass-box { padding: 28px; }
h2 { margin-bottom: 12px; }
p { margin-bottom: 10px; }
.clean-list-dots li { margin-bottom: 6px; }
.text-columns { gap: 24px; }

#faktura .glass-box { background: rgba(15,15,15,0.95); border:1px solid #444; border-left:5px solid var(--alert-color); }

@media (max-height: 860px) {
  .section-bg-design { padding: var(--section-top-padding) 16px 24px; }
  .glass-box { padding: 22px; }
  .contact-avatar { width:98px; height:124px; }
}
@media (max-height: 760px) {
  .section-bg-design { padding: var(--section-top-padding) 14px 20px; }
  .glass-box { padding: 18px; }
  .clean-list-dots li { margin-bottom: 5px; }
}
@media (max-width: 900px) {
  .contact-flex { gap:14px; }
}

/* LENNART JENSEN - TOP VENSTRE SIGNATUR */
.dev-signature {
    flex: 0 0 auto;
}

.dev-signature a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 14px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(243, 156, 18, 0.18);
    background: linear-gradient(90deg, rgba(255,255,255,0.02), rgba(243,156,18,0.05), rgba(255,255,255,0.02));
    overflow: hidden;
    transition: color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}

.dev-signature a::before {
    content: "";
    position: absolute;
    top: 0;
    left: -130%;
    width: 80%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(243, 156, 18, 0.22), transparent);
    transform: skewX(-25deg);
    animation: signatureSweep 4.2s ease-in-out infinite;
}

.dev-signature a:hover {
    color: #fff;
    border-color: rgba(243, 156, 18, 0.45);
    box-shadow: 0 0 14px rgba(243, 156, 18, 0.2), inset 0 0 12px rgba(243, 156, 18, 0.08);
    transform: translateY(-1px);
}

@keyframes signatureSweep {
    0% {
        left: -130%;
        opacity: 0;
    }
    12% {
        opacity: 1;
    }
    55% {
        left: 140%;
        opacity: 0.9;
    }
    100% {
        left: 140%;
        opacity: 0;
    }
}

@media (max-width: 900px) {
    .top-flex {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 8px;
    }

    .dev-signature {
        order: 1;
        width: 100%;
        display: flex;
        justify-content: flex-start;
    }

    .contact-info-top {
        order: 2;
        width: 100%;
        justify-content: flex-end;
        gap: 8px;
    }

    .dev-signature a {
        font-size: 8px;
        letter-spacing: 1.1px;
        padding: 0 10px;
        min-height: 24px;
    }

    .contact-info-top a {
        margin: 0;
    }
}
/* PROFESSIONEL FOOTER OPSÆTNING */
footer {
    background: #000;
    padding: 40px 0;
    border-top: 1px solid #1a1a1a;
    color: #888;
}

.footer-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-info {
    text-align: left;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-info strong {
    color: var(--primary-color); /* Bruger din orange farve til overskrifter */
}

.footer-copyright {
    text-align: right;
    font-size: 0.85rem;
}

/* Sørger for at det ser godt ud på mobil */
@media (max-width: 600px) {
    .footer-layout {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .footer-info, .footer-copyright {
        text-align: center;
    }
}
