/* ============================================================
   IT-Connect — fælles header (samme menu/look på ALLE undersider)
   Selvstændig + namespaced (.itc-hdr*) så den ikke kolliderer med
   den enkelte sides øvrige styles. Matcher forsidens navbar.
   Sprog-dropdown (.lang-switch) styres af /lang-toggle.js.
   ============================================================ */
.itc-hdr {
  position: sticky; top: 0; z-index: 1000;
  display: flex; align-items: center;
  height: 72px; padding: 0 clamp(20px, 3.5vw, 56px);
  background: rgba(10, 22, 40, 0.85);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.itc-hdr.scrolled { background: rgba(10, 22, 40, 0.98); box-shadow: 0 4px 40px rgba(0,0,0,0.4); }
.itc-hdr-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; max-width: 1400px; margin: 0 auto; }

.itc-hdr-logo { display: flex; align-items: center; text-decoration: none; flex: none; }
.itc-hdr-logo img { width: 120px; height: 44px; object-fit: contain; display: block; }

.itc-hdr-nav { display: flex; align-items: center; gap: 1.3rem; }
.itc-hdr-nav a {
  position: relative; font-size: 0.85rem; font-weight: 500; letter-spacing: 0.01em;
  color: #9fb0c0; text-decoration: none; white-space: nowrap; transition: color 0.25s ease;
}
.itc-hdr-nav a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 2px;
  background: #00E5FF; border-radius: 2px; transform: scaleX(0); transition: transform 0.25s ease;
}
.itc-hdr-nav a:hover { color: #ffffff; }
.itc-hdr-nav a:hover::after { transform: scaleX(1); }
.itc-hdr-nav a.active { color: #ffffff; }
.itc-hdr-nav a.active::after { transform: scaleX(1); }

.itc-hdr-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.itc-hdr-support {
  font-size: 0.85rem; font-weight: 500; color: #9fb0c0;
  border: 1px solid rgba(255,255,255,0.12); background: transparent;
  padding: 8px 18px; border-radius: 8px; text-decoration: none; transition: all 0.25s ease;
}
.itc-hdr-support:hover { color: #fff; border-color: rgba(255,255,255,0.28); background: rgba(255,255,255,0.05); }
.itc-hdr-contact {
  font-size: 0.85rem; font-weight: 600; color: #0a1628; background: #00E5FF;
  padding: 9px 22px; border-radius: 8px; text-decoration: none; letter-spacing: 0.02em; transition: all 0.25s ease;
}
.itc-hdr-contact:hover { background: #00B8D9; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,229,255,0.35); }

/* sprog-dropdown (genbruger .lang-switch så lang-toggle.js virker) */
.itc-hdr .lang-switch { position: relative; }
.itc-hdr .lang-toggle-btn {
  display: flex; align-items: center; gap: 6px; cursor: pointer;
  background: transparent; border: 1px solid rgba(255,255,255,0.12); color: #cfdae3;
  padding: 7px 10px; border-radius: 8px; font: 600 0.8rem/1 'DM Sans', sans-serif; transition: all 0.25s ease;
}
.itc-hdr .lang-toggle-btn:hover { color: #fff; border-color: rgba(0,229,255,0.5); }
.itc-hdr .lang-toggle-btn svg { width: 16px; height: 16px; }
.itc-hdr .lang-caret { width: 12px !important; height: 12px !important; opacity: 0.7; }
.itc-hdr .lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 150px;
  background: #0e1c30; border: 1px solid rgba(255,255,255,0.12); border-radius: 10px;
  padding: 6px; display: none; flex-direction: column; gap: 2px; box-shadow: 0 16px 40px rgba(0,0,0,0.45);
}
.itc-hdr .lang-switch.is-open .lang-menu { display: flex; }
.itc-hdr .lang-option {
  display: flex; align-items: center; gap: 8px; background: transparent; border: none; cursor: pointer;
  color: #cfdae3; font: 500 0.85rem/1 'DM Sans', sans-serif; padding: 9px 12px; border-radius: 7px; text-align: left;
}
.itc-hdr .lang-option:hover { background: rgba(255,255,255,0.06); color: #fff; }
.itc-hdr .lang-option.is-active { color: #00E5FF; }
.itc-hdr .lang-option .flag { font: 700 0.6rem/1 'DM Sans', sans-serif; letter-spacing: .05em; border: 1px solid currentColor; border-radius: 4px; padding: 2px 4px; opacity: .8; }

/* hamburger + mobilmenu */
.itc-hdr-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.itc-hdr-burger span { display: block; width: 24px; height: 2px; background: #e8f0f5; border-radius: 2px; transition: 0.25s ease; }
.itc-hdr-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.itc-hdr-burger.is-open span:nth-child(2) { opacity: 0; }
.itc-hdr-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.itc-hdr-mobile {
  display: none; position: fixed; top: 72px; left: 0; right: 0; z-index: 999;
  flex-direction: column; background: rgba(10,22,40,0.98); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.08); padding: 8px 5% 18px;
}
.itc-hdr-mobile.open { display: flex; }
.itc-hdr-mobile a {
  font-size: 1rem; font-weight: 500; color: #cfdae3; text-decoration: none;
  padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.itc-hdr-mobile a:last-child { border-bottom: none; }
.itc-hdr-mobile a:hover { color: #00E5FF; }

@media (max-width: 1279px) {
  .itc-hdr-nav, .itc-hdr-support, .itc-hdr-contact { display: none; }
  .itc-hdr-burger { display: flex; }
}

.skip-link{position:absolute;left:-9999px;top:0;z-index:100000;background:#00E5FF;color:#04222a;padding:10px 16px;border-radius:0 0 8px 0;font-weight:700;text-decoration:none}
.skip-link:focus{left:0}

/* ── Ydelser-dropdown (injiceres af itc-header.js — samme menu på alle sider) ── */
.itc-hdr-drop { position: relative; display: flex; align-items: center; }
.itc-hdr-drop-trigger {
  position: relative; display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.9rem; font-weight: 500; letter-spacing: 0.01em;
  color: #9fb0c0; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: color 0.25s ease;
}
.itc-hdr-nav .itc-hdr-drop-trigger::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 24px; height: 2px;
  background: #00E5FF; border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
}
.itc-hdr-drop:hover .itc-hdr-drop-trigger,
.itc-hdr-drop:focus-within .itc-hdr-drop-trigger { color: #fff; }
.itc-hdr-drop:hover .itc-hdr-drop-trigger::after,
.itc-hdr-drop:focus-within .itc-hdr-drop-trigger::after { transform: scaleX(1); }
.itc-hdr-drop-caret { width: 11px; height: 11px; opacity: 0.75; transition: transform 0.25s ease; }
.itc-hdr-drop:hover .itc-hdr-drop-caret,
.itc-hdr-drop:focus-within .itc-hdr-drop-caret { transform: rotate(180deg); }
.itc-hdr-drop-menu {
  position: absolute; top: 100%; left: 0; margin-top: 14px;
  min-width: 236px; background: #0e1c30; border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 2px;
  box-shadow: 0 18px 46px rgba(0,0,0,0.5);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease; z-index: 1001;
}
.itc-hdr-drop-menu::before { content: ''; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.itc-hdr-drop:hover .itc-hdr-drop-menu,
.itc-hdr-drop:focus-within .itc-hdr-drop-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.itc-hdr-drop-menu a {
  display: block; font-size: 0.88rem; font-weight: 500; color: #cfdae3;
  padding: 10px 12px; border-radius: 8px; text-decoration: none; white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
.itc-hdr-drop-menu a::after { display: none; }
.itc-hdr-drop-menu a:hover { background: rgba(0,229,255,0.10); color: #fff; }

/* mobil: ydelses-underpunkter under "Ydelser" */
.itc-hdr-mobile a.itc-hdr-msub { padding-left: 22px; font-size: 0.94rem; color: #9fb0c0; }
.itc-hdr-mobile a.itc-hdr-msub::before { content: '– '; opacity: 0.5; }
.itc-hdr-mobile a.itc-hdr-msub:hover { color: #00E5FF; }
/* Mobil "Ydelser" accordion — foldet sammen som default, tap for at folde ud */
.itc-hdr-mobile .itc-hdr-mtoggle { display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.itc-hdr-mcaret { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.6; transition: transform 0.25s; }
.itc-hdr-mtoggle.is-open .itc-hdr-mcaret { transform: rotate(180deg); }
.itc-hdr-msub-group { display: flex; flex-direction: column; overflow: hidden; max-height: 0; transition: max-height 0.32s cubic-bezier(0.4,0,0.2,1); }
.itc-hdr-msub-group.open { max-height: 520px; }
@media (prefers-reduced-motion: reduce) { .itc-hdr-msub-group, .itc-hdr-mcaret { transition: none; } }

/* ── Fælles footer (.itc-ftr) — samme på alle undersider/artikler ── */
.itc-ftr { background:#0a1628; border-top:1px solid rgba(255,255,255,0.08); color:#9fb0c0; font-family:'DM Sans',system-ui,-apple-system,sans-serif; padding:64px 5% 28px; }
.itc-ftr-inner { max-width:1200px; margin:0 auto; }
.itc-ftr-top { display:grid; grid-template-columns:1.5fr 1fr 1fr 1.1fr; gap:40px; padding-bottom:36px; border-bottom:1px solid rgba(255,255,255,0.08); }
.itc-ftr-brand img { width:120px; height:44px; object-fit:contain; display:block; }
.itc-ftr-desc { font-size:0.9rem; line-height:1.7; margin:16px 0 18px; max-width:320px; }
.itc-ftr-social { display:inline-flex; align-items:center; justify-content:center; width:38px; height:38px; border:1px solid rgba(255,255,255,0.14); border-radius:9px; color:#9fb0c0; transition:color .25s,border-color .25s; }
.itc-ftr-social:hover { color:#00E5FF; border-color:#00E5FF; }
.itc-ftr-social svg { width:18px; height:18px; }
.itc-ftr-col h3 { font-family:'Outfit',sans-serif; font-size:0.95rem; font-weight:700; color:#fff; margin:0 0 16px; }
.itc-ftr-col ul { list-style:none; margin:0; padding:0; }
.itc-ftr-col li { margin-bottom:10px; }
.itc-ftr-col a { color:#9fb0c0; text-decoration:none; font-size:0.9rem; transition:color .25s; }
.itc-ftr-col a:hover { color:#00E5FF; }
.itc-ftr-contact { margin:0 0 10px; line-height:1.6; font-size:0.9rem; }
.itc-ftr-contact a { color:#9fb0c0; text-decoration:none; transition:color .25s; }
.itc-ftr-contact a:hover { color:#00E5FF; }
.itc-ftr-col a.itc-ftr-cta { display:inline-block; margin-top:8px; background:#00E5FF; color:#0a1628; font-weight:700; font-size:0.85rem; padding:9px 18px; border-radius:8px; text-decoration:none; transition:background .25s; }
.itc-ftr-col a.itc-ftr-cta:hover { background:#00B8D9; color:#0a1628; }
.itc-ftr-bottom { padding-top:22px; }
.itc-ftr-bottom p { font-size:0.8rem; color:#7a8ea0; margin:0; line-height:1.6; }
.itc-ftr-bottom a { color:#9fb0c0; text-decoration:none; }
.itc-ftr-bottom a:hover { color:#00E5FF; }
@media (max-width:860px){ .itc-ftr-top{ grid-template-columns:1fr 1fr; gap:32px; } }
@media (max-width:520px){ .itc-ftr-top{ grid-template-columns:1fr; gap:28px; } }
