/* 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;
}

html { scroll-behavior: smooth; }
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; 
}

/* 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: flex-end; max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.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 */
.section-bg-design { 
    position: relative; 
    min-height: 100vh; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background-size: cover; 
    background-position: center; 
    padding: 80px 20px 40px; 
}

/* Faktura-sektion tilpasset til "enden af siden" */
#faktura {
    min-height: 80vh; 
    padding-bottom: 20px;
}

.hero-bg { background-image: url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?auto=format&fit=crop&w=1920&q=80'); }
.mandskab-bg { background-image: url('https://images.unsplash.com/photo-1541888946425-d81bb19480c5?auto=format&fit=crop&w=1200&q=80'); }
.nedrivning-bg { background-image: url('https://bolius-prod.s3.amazonaws.com/_processed_/7/8/csm_nedrivningteaser_0c83321af2.jpg'); }
.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; }

/* PROFESSIONEL FOOTER */
footer { 
    background: #000; 
    padding: 30px 0; 
    text-align: center; 
    border-top: 1px solid #1a1a1a; 
    font-size: 0.85rem; 
    color: #555; 
}
.developer-info { 
    margin-top: 8px; 
    font-size: 0.65rem; 
    color: #333; 
    letter-spacing: 1px;
    text-transform: uppercase;
}
.developer-info a { 
    color: #444; 
    text-decoration: none; 
    transition: color 0.3s;
    font-weight: 500;
}
.developer-info a:hover { 
    color: var(--primary-color); 
}

/* MOBIL OPTIMERING */
@media (max-width: 900px) {
    .burger-menu { display: flex; }
    nav { position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; background: #111; padding-top: 80px; transition: 0.4s; z-index: 2001; }
    nav.active { right: 0; }
    nav ul { flex-direction: column; align-items: center; gap: 30px; }
    .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; }
}

/* === Offline v3: alignment + vertical guideline + contact avatar inside box === */
/* Consistent container width across header & content */
.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.container.header-flex { max-width: 1000px; padding-left: 20px; padding-right: 20px; }

/* Vertical orange line continuing through header */
.vertical-guideline { position: fixed; top:0; bottom:0; left: max(20px, calc((100vw - 1000px)/2 + 20px)); border-left: 5px solid var(--primary-color); pointer-events:none; z-index:500; opacity:.9; }

/* Contact avatar inside the contact-badge */
.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; }

/* Compact layout so content fits within viewport without page scroll after nav click */
.section-bg-design { padding: 72px 20px 28px; }
.glass-box { padding: 28px; }
h2 { margin-bottom: 12px; }
p { margin-bottom: 10px; }
.clean-list-dots li { margin-bottom: 6px; }
.text-columns { gap: 24px; }

/* Keep Faktura visual box strong */
#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: 64px 16px 24px; }
  .glass-box { padding: 22px; }
  .contact-avatar { width:96px; height:96px; }
}
@media (max-height: 760px) {
  .section-bg-design { padding: 60px 14px 20px; }
  .glass-box { padding: 18px; }
  .clean-list-dots li { margin-bottom: 5px; }
}
@media (max-width: 900px) {
  .contact-flex { gap:14px; }
}
