﻿/* ============================================================
ladetjek-shared.css — Fælles design-system for LadeTjek.dk
Inkludér denne fil på ALLE sider:
<link rel="stylesheet" href="/ladetjek-shared.css">
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&display=swap');

/* ── CSS VARIABLER ── */
:root {
  --primary:      #0f172a;
  --accent:       #2563eb;
  --accent-hover: #1d4ed8;
  --accent-light: #eff6ff;
  --warm:         #f97316;
  --bg:           #f8fafc;
  --white:        #ffffff;
  --text-main:    #1e293b;
  --text-muted:   #64748b;
  --success:      #10b981;
  --warning:      #f59e0b;
  --danger:       #ef4444;
  --border:       #e2e8f0;
  --nav-height:   70px;
  --radius-lg:    20px;
  --radius-xl:    24px;
  --shadow-card:  0 4px 24px rgba(15,23,42,0.06);
  --shadow-lg:    0 10px 40px rgba(15,23,42,0.10);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  max-width: 100vw;
  overflow-x: hidden;
  margin: 0; padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; }

/* ── CONTAINER ── */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ════════════════════════════════════════
   NAVIGATION
   ════════════════════════════════════════ */
.lt-nav {
  background: var(--white);
  height: var(--nav-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 3000;
  border-bottom: 1px solid var(--border);
}
.lt-nav .logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}
.lt-nav .logo img {
  height: 86px;
  width: auto;
  display: block;
}
.lt-nav .nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.search-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.7;
  padding: 8px;
  border-radius: 8px;
  transition: 0.15s;
  color: var(--primary);
}
.search-btn:hover { opacity: 1; background: var(--bg); }

.hamburger-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 8px;
  border-radius: 8px;
  transition: 0.15s;
  min-width: 42px;
  min-height: 42px;
  flex-shrink: 0;
}
.hamburger-btn:hover { background: var(--bg); }
.bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: 0.3s;
}

/* ════════════════════════════════════════
   SIDE MENU
   ════════════════════════════════════════ */
.side-menu {
  position: fixed;
  top: 0; right: -360px;
  width: 320px;
  height: 100vh;
  background: var(--white);
  z-index: 5000;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -10px 0 40px rgba(0,0,0,0.12);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.side-menu.open { right: 0; }

.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 1;
  flex-shrink: 0;
}
.menu-header img { height: 36px; width: auto; }
.close-btn {
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
  padding: 4px 8px;
  border-radius: 8px;
  transition: 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.close-btn:hover { color: var(--primary); background: var(--bg); }

.menu-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(15, 23, 42, 0.55);
  z-index: 4000;
  display: none;
  opacity: 0;
  transition: opacity 0.3s;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.menu-overlay.open { display: block; opacity: 1; }

body.menu-open { overflow: hidden; }

.menu-section-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin: 24px 20px 6px;
  font-weight: 800;
}
.side-menu-content a {
  display: flex;
  flex-direction: column;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid var(--bg);
  transition: all 0.15s;
}
.side-menu-content a small {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 2px;
}
.side-menu-content a:hover {
  color: var(--accent);
  background: var(--accent-light);
  padding-left: 26px;
}
.side-menu-content .sub-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 9px 20px 9px 35px;
  border-bottom: none;
}
.side-menu-content .sub-link:hover { color: var(--accent); }

/* ════════════════════════════════════════
   BYLINE (Brian-badge)
   ════════════════════════════════════════ */
.byline-box {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  background: rgba(255,255,255,0.08);
  padding: 12px 20px;
  border-radius: 100px;
  width: fit-content;
  border: 1px solid rgba(255,255,255,0.15);
}
.byline-box img {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  object-fit: cover;
  flex-shrink: 0;
}
.byline-box strong { display: block; color: white; font-size: 0.95rem; }
.byline-box span { color: #94a3b8; font-size: 0.8rem; }

/* ════════════════════════════════════════
   KNAPPER
   ════════════════════════════════════════ */
.btn-primary {
  display: inline-block;
  padding: 14px 28px;
  background: var(--accent);
  color: white !important;
  text-decoration: none !important;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37,99,235,0.3);
}
.btn-outline {
  display: inline-block;
  padding: 13px 26px;
  background: transparent;
  color: var(--primary) !important;
  text-decoration: none !important;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid var(--border);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
}
.action-btn {
  display: inline-block;
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 14px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.2s;
  cursor: pointer;
  border: none;
  font-family: inherit;
  font-size: 1rem;
}
.action-btn.accent { background: var(--accent); }
.action-btn:hover { opacity: 0.9; transform: translateY(-2px); }

/* ════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════ */
.lt-footer {
  background: var(--primary);
  color: white;
  padding: 60px 20px 40px;
  text-align: center;
  margin-top: 80px;
}
.lt-footer .footer-logo {
  height: 70px;
  width: auto;
  margin-bottom: 16px;
  filter: grayscale(100%) opacity(0.5);
}
.lt-footer .footer-tagline {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 24px;
}
.lt-footer .footer-tagline strong { color: white; }
.lt-footer .footer-nav {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.lt-footer .footer-nav a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.15s;
}
.lt-footer .footer-nav a:hover { color: white; }
.lt-footer .footer-copy { color: #475569; font-size: 0.8rem; }

/* ════════════════════════════════════════
   AFFILIATE DISCLAIMER
   ════════════════════════════════════════ */
.affiliate-note {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  line-height: 1.6;
}

/* ════════════════════════════════════════
   NAVIGATION TOGGLE SCRIPT (JS)
   Inkludér dette script på alle sider:

   function toggleMenu() {
     document.getElementById('sideMenu').classList.toggle('open');
     document.getElementById('menuOverlay').classList.toggle('open');
     document.body.classList.toggle('menu-open');
   }
   ════════════════════════════════════════ */

/* ════════════════════════════════════════
   MOBILE — FÆLLES
   ════════════════════════════════════════ */
@media (max-width: 768px) {
  .lt-footer { padding: 40px 16px 30px; margin-top: 60px; }
  .lt-footer .footer-nav { gap: 16px; }
  .byline-box { padding: 10px 16px; }
  .byline-box img { width: 38px; height: 38px; }
}