/* ============================================
   COOKIE CONSENT BANNER — ai·campus
   Matcher sitens design-tokens
   ============================================ */
:root{
  --c-bg: #F8F4EA;
  --c-paper: #FFFFFF;
  --c-ink: #0F0D0B;
  --c-ink-2: #2A2520;
  --c-ink-3: #4A4239;
  --c-ink-dim: #6B6258;
  --c-rule: #E5DDC9;
  --c-accent: #B23F1E;
}

/* Global navigation highlight for the AI/job page */
.nav-links a.nav-ai-impact{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 4px 9px;
  border-radius: 999px;
  color: #0B3B2C !important;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1.15;
  background: linear-gradient(135deg, rgba(169,244,204,.95), rgba(109,220,159,.92));
  border: 1px solid rgba(44,143,88,.28);
  box-shadow: 0 0 0 1px rgba(169,244,204,.18), 0 0 14px rgba(72,214,134,.28);
  overflow: visible;
}
.nav-links a.nav-ai-impact::before{
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  background: rgba(104,226,158,.32);
  filter: blur(8px);
  opacity: .48;
  z-index: -1;
  animation: ai-nav-glow 2.8s ease-in-out infinite;
}
.nav-links a.nav-ai-impact:hover{
  color: #09281F !important;
  box-shadow: 0 0 0 1px rgba(169,244,204,.3), 0 0 18px rgba(72,214,134,.36);
}
.mobile-menu a.nav-ai-impact{
  margin-top: 10px;
  color: #0B3B2C;
  background: linear-gradient(135deg, rgba(169,244,204,.95), rgba(109,220,159,.92));
  border: 1px solid rgba(44,143,88,.34);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 0 26px rgba(72,214,134,.32);
  font-family: 'Manrope', sans-serif;
  font-size: 17px;
  font-weight: 800;
  text-align: center;
}
@keyframes ai-nav-glow{
  0%,100%{ opacity: .48; transform: scale(.98); }
  50%{ opacity: .82; transform: scale(1.03); }
}
@media (prefers-reduced-motion: reduce){
  .nav-links a.nav-ai-impact::before{ animation: none; }
}

.cc-banner{
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  max-width: 540px;
  margin: 0 auto;
  background: var(--c-paper);
  border: 1px solid var(--c-rule);
  border-radius: 18px;
  box-shadow: 0 28px 70px -24px rgba(15,13,11,0.35);
  padding: 26px 28px;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  transform: translateY(140%);
  opacity: 0;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .45s ease;
}
.cc-banner.cc-show{
  transform: translateY(0);
  opacity: 1;
}
.cc-icon{
  font-size: 22px;
  margin-bottom: 10px;
  line-height: 1;
}
.cc-title{
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: 19px;
  color: var(--c-ink);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.cc-text{
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--c-ink-3);
  margin: 0 0 18px;
}
.cc-text a{
  color: var(--c-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cc-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cc-btn{
  flex: 1;
  min-width: 120px;
  border: none;
  cursor: pointer;
  padding: 12px 18px;
  border-radius: 100px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 600;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.cc-btn-accept{
  background: var(--c-ink);
  color: var(--c-bg);
}
.cc-btn-accept:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -10px rgba(15,13,11,0.5);
}
.cc-btn-reject{
  background: transparent;
  color: var(--c-ink-2);
  border: 1px solid var(--c-rule);
}
.cc-btn-reject:hover{
  border-color: var(--c-ink-2);
  transform: translateY(-2px);
}
.cc-settings-link{
  display: inline-block;
  margin-top: 14px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--c-ink-dim);
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0;
}
.cc-settings-link:hover{ color: var(--c-ink); }

/* Lille "cookie-indstillinger"-knap der altid kan tilgås efter valg */
.cc-reopen{
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 9990;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--c-rule);
  background: var(--c-paper);
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px -8px rgba(15,13,11,0.3);
  transition: transform .18s ease;
  padding: 0;
}
.cc-reopen:hover{ transform: scale(1.08); }
.cc-reopen.cc-visible{ display: flex; }

/* Detaljeret valg (vises når man klikker "Tilpas") */
.cc-detail{
  display: none;
  margin: 4px 0 18px;
  border-top: 1px solid var(--c-rule);
  padding-top: 16px;
}
.cc-detail.cc-open{ display: block; }
.cc-row{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
}
.cc-row-text strong{
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--c-ink);
  margin-bottom: 2px;
}
.cc-row-text span{
  font-size: 12px;
  color: var(--c-ink-dim);
  line-height: 1.45;
}
.cc-toggle{
  flex-shrink: 0;
  position: relative;
  width: 42px; height: 24px;
}
.cc-toggle input{ opacity: 0; width: 0; height: 0; position: absolute; }
.cc-slider{
  position: absolute;
  inset: 0;
  background: var(--c-rule);
  border-radius: 100px;
  transition: background .2s;
}
.cc-slider::before{
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.cc-toggle input:checked + .cc-slider{ background: var(--c-accent); }
.cc-toggle input:checked + .cc-slider::before{ transform: translateX(18px); }

/* Sitewide scroll-to-top button */
.scroll-top-btn{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9980;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(229,221,201,.72);
  background: #0F0D0B;
  color: #F8F4EA;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 16px 38px -18px rgba(15,13,11,.58);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px) scale(.94);
  transition: opacity .2s ease, transform .2s ease, background .2s ease;
}
.scroll-top-btn:hover{
  background: var(--c-accent);
  transform: translateY(0) scale(1.03);
}
.scroll-top-btn.is-visible{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.scroll-top-btn:focus-visible{
  outline: 3px solid rgba(178,63,30,.26);
  outline-offset: 3px;
}

@media (max-width: 600px){
  .scroll-top-btn{
    right: 14px;
    bottom: 14px;
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce){
  .scroll-top-btn{ transition: none; }
}
.cc-toggle input:disabled + .cc-slider{ background: #C8BFA8; opacity: 0.7; }

@media (max-width: 520px){
  .cc-banner{ left: 12px; right: 12px; bottom: 12px; padding: 22px 20px; }
  .cc-btn{ min-width: 0; }
}
@media (prefers-reduced-motion: reduce){
  .cc-banner{ transition: opacity .2s ease; transform: none; }
  .cc-banner.cc-show{ transform: none; }
}
