/* =========================
   BASE CSS
   ========================= */

/* ROOT / VARIABLES */
:root {
  /* Brand */
  --color-primary: #58A670;
  --color-accent: #C49B5E;

  /* Backgrounds */
  --color-bg: #F7FAF7;
  --color-bg-2: #EEF3EE;
  --color-bg-header: #F7FAF7;
  --color-bg-header-secondary: #EEF3EE;
  --color-bg-footer: #202223;
  --color-surface: #F7FAF7;

  /* Text */
  --color-text: #202223;           /* standard tekst */
  --color-text-light: #F7FAF7;     /* på mørk baggrund */
  --color-text-muted: #4B5563;     /* mindre vigtig */
  --color-text-muted-light: #D1D5DB;

  /* UI */
  --color-border: #E8ECE8;
  --color-border-strong: #D1D5DB;

  /* Sizes */
  --header-height: 90px;
  --container: 1200px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  /* Shadow */
  --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,.08);

  /* Spacing */
  --space-xxs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
}

/* RESET / BASE */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
}

p {
  margin-top: 0;
}

/* MEDIA (IMAGES / VIDEO) */
img, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* LINKS */
a {
  color: inherit;
  text-decoration: none;
}

/* LISTS */
ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* FORMS */
button, input, textarea, select {
  font: inherit;
}


/* LAYOUT / CONTAINER */
.container {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
}


/* SECTIONS (SPACING SYSTEM) */
.section {
  padding: 5rem 0;
}


/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;

  padding: .9rem 1.2rem;
  border-radius: var(--radius-md);

  background: var(--color-primary);
  color: var(--color-text-light);

  border: none;
  cursor: pointer;

  transition: .2s ease;
}

.btn:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;

  padding: .9rem 1.2rem;
  border-radius: var(--radius-md);

  background: transparent;
  color: var(--color-text);

  border: 1px solid var(--color-text);
  cursor: pointer;

  transition: .2s ease;
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: var(--color-text-light);
  transform: translateY(-2px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

/* CARDS */
.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}


/* UTILITIES */
.text-center {
  text-align: center;
}


/* RESPONSIVE */
@media (max-width: 1000px) {
  .section {
    padding: 3rem 0;
  }

  .btn {
    width: 100%;
  }
}


/* =========================
   HEADER BASE
   ========================= */
body {
  padding-top: var(--header-height);
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;

  padding: 0 2rem;
  background: var(--color-bg-header);
  z-index: 1000;

  box-shadow: 0 10px 40px rgba(0,0,0,0.06);
}

/* =========================
   LOGO
   ========================= */

.logo-link {
  justify-self: start;
}

.logo {
  height: 50px;
  width: auto;
}

/* =========================
   NAV (DESKTOP)
   ========================= */

.nav {
  justify-self: center;
  display: flex;
  gap: 2.5rem;
}

.nav a {
  text-decoration: none;
  color: #202223;
  font-weight: 500;
  transition: 0.2s ease;
}

.nav a:hover {
  color: #58A670;
}

/* =========================
   DESKTOP DROPDOWN
   ========================= */
/* BASE */
.dropdown {
  position: relative;
}

/* MENU hidden state */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;

  min-width: 200px;
  padding: 8px 0;

  background: #ffffff; /* tydelig baggrund igen */
  border-radius: 12px;

  box-shadow: 0 10px 30px rgba(0,0,0,0.08);

  display: flex;
  flex-direction: column;

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);

  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;

  pointer-events: none;

  backdrop-filter: blur(8px);
}

/* SHOW ON HOVER */
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* dropdown trigger link */
.dropdown > a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;

  display: flex;
  align-items: center;
  gap: 6px;

  transition: color 0.2s ease;
}

.dropdown-menu a {
  padding: 10px 14px;
  text-decoration: none;
  color: var(--color-text);
  transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-menu a:hover {
  background: var(--color-bg-header-secondary);
  color: var(--color-primary);
}

/* hover state = samme som dine andre links */
.nav a:hover,
.dropdown > a:hover {
  color: var(--color-primary);
}

/* ARROW rotation */
.arrow {
  font-size: 0.7em;
  margin-left: 4px;
  display: inline-block;
  transition: transform 0.2s ease, color 0.2s ease;
}

.dropdown:hover .arrow {
  transform: rotate(180deg);
  color: var(--color-primary);
}

/* =========================
   LANGUAGE SWITCH
   ========================= */

.lang-switch {
  justify-self: end;
  position: relative;
}

.lang-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;

  background: var(--color-bg-header);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);

  display: flex;
  flex-direction: column;

  min-width: 140px;
  padding: 8px 0;

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);

  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
}

.lang-switch:hover .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-menu a {
  padding: 10px 14px;
  text-decoration: none;
  color: #202223;
}

.lang-menu a:hover {
  background: var(--color-bg-header-secondary);
  color: var(--color-primary)
}

/* =========================
   HAMBURGER (MOBILE)
   ========================= */

.hamburger {
  display: none;
  justify-self: start;

  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
}

/* =========================
   MOBILE MENU
   ========================= */

.mobile-menu {
  position: fixed;
  top: 90px;
  left: 0;
  width: 100%;

  background: #fff;

  padding: 20px 25px;

  display: none;

  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.mobile-menu.open {
  display: block;
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* links */
.mobile-menu a {
  display: block;
  padding: 14px 0;

  font-size: 1.1rem;
  font-weight: 500;

  color: #202223;
  text-decoration: none;

  border-bottom: 1px solid #f1f1f1;
}

.mobile-menu a:hover {
  color: #58A670;
}

/* dropdown sektion */
.mobile-dropdown > a {
  font-weight: 600;
  display: block;
  padding: 14px 0;
}

/* submenu */
.mobile-submenu {
  padding-left: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-submenu a {
  font-size: 1rem;
  font-weight: 400;
  color: #4b5563;
  border: none;
  padding: 8px 0;
}

/* =========================
   MOBILE DROPDOWN
   ========================= */

.mobile-submenu {
  display: none;
  flex-direction: column;
  padding-left: 15px;
  gap: 8px;
}

.mobile-dropdown.open .mobile-submenu {
  display: flex;
}

.mobile-toggle {
  width: 100%;
  text-align: left;

  background: none;
  border: none;

  font-size: 1.1rem;
  font-weight: 600;

  padding: 14px 0;
  cursor: pointer;

  color: #202223;
  border-bottom: 1px solid #f1f1f1;
}

.mobile-toggle .arrow {
  display: inline-block;
  margin-left: 6px;
  transition: transform 0.25s ease;
}

/* når menu er åben */
.mobile-dropdown.open .mobile-toggle .arrow {
  transform: rotate(180deg);
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 1000px) {

  .header {
    grid-template-columns: auto 1fr auto;
    padding: 0 1rem;
  }

  /* show hamburger */
  .hamburger {
    display: block;
  }

  /* center logo */
  .logo-link {
    justify-self: center;
  }

  /* hide desktop nav */
  .nav {
    display: none;
  }

  /* keep language right */
  .lang-switch {
    justify-self: end;
  }
}


/* =========================
   FOOTER – GENERELT
   ========================= */

footer {
  width: 100%;
  margin: 0;
  padding: 0;
}


/* =========================
   NYHEDSMAIL (LYS)
   ========================= */

footer .newsletter {
  background-color: var(--color-bg-2);
  padding: 40px 20px;
  text-align: center;
}

footer .newsletter h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #222;
  font-weight: bold;
}

footer .newsletter p {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #555;
  line-height: 1.5;
}

footer .newsletter-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

footer .newsletter-location {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  width: 250px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

footer .newsletter-button {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background-color: #202223;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}

footer .newsletter-button:hover {
  background-color: #555;
}


/* =========================
   SORT FOOTER-BUND
   ========================= */

.footer-bottom {
  background-color: #202223;
  color: #F7FAF7;
  padding: 50px 40px 20px;
}


/* =========================
   SOCIAL BAR
   ========================= */

.social-bar {
  padding: 25px 0;
}

.social-inner {
  display: flex;
  justify-content: center;
  gap: 40px;
  font-size: 22px;
}

.social-inner a {
  color: #202223;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.8;
}

.social-inner a:hover {
  transform: translateY(-4px);
  opacity: 1;
}


/* =========================
   LOKATIONER (DESKTOP)
   ========================= */

.footer-locations {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: start;
}

/* Kolonner */
.footer-column {
  display: flex;
  flex-direction: column;
}

/* KOLDING – VENSTRE */
.footer-column:nth-child(1) {
  text-align: left;
  align-items: flex-start;
}

/* FREDERICIA – MIDTEN */
.footer-column:nth-child(2) {
  text-align: center;
  align-items: center;
}

/* HADERSLEV – HØJRE */
.footer-column:nth-child(3) {
  text-align: right;
  align-items: flex-end;
}

.footer-column h3 {
  margin-bottom: 12px;
}

.footer-column p {
  margin-bottom: 12px;
  line-height: 1.6;
}

.footer-column a {
  color: #F7FAF7;
  text-decoration: none;
}

.footer-column a:hover {
  text-decoration: underline;
}


/* =========================
   SOCIALE IKONER
   ========================= */

.social-links {
  display: flex;
  gap: 10px;
}

.footer-column:nth-child(1) .social-links {
  justify-content: flex-start;
}

.footer-column:nth-child(2) .social-links {
  justify-content: center;
}

.footer-column:nth-child(3) .social-links {
  justify-content: flex-end;
}

.social-links img {
  width: 22px;
  transition: transform 0.2s ease;
}

.social-links img:hover {
  transform: scale(1.1);
}


/* =========================
   Politik
   ========================= */
.footer-policies {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-policies a {
  font-size: 13px;
  color: var(--color-text-light);
  opacity: 0.7;
  text-decoration: none;
  transition: 0.2s ease;
}

.footer-policies a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* =========================
   COPYRIGHT
   ========================= */

footer .copyright {
  margin-top: 20px;
  text-align: center;
  font-size: 12px;
  opacity: 0.7;
}

/* =========================
   MOBIL
   ========================= */
@media (max-width: 700px) {

  .footer-locations {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* OVERSKRIV desktop nth-child */
  .footer-column:nth-child(1),
  .footer-column:nth-child(2),
  .footer-column:nth-child(3) {
    text-align: center !important;
    align-items: center;
  }

  .footer-column .social-links {
    justify-content: center !important;
  }
}


/* =========================
   error page
   ========================= */
.error-page {
  position: relative;
  min-height: 100vh;

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 40px;

  /* 👉 BAGGRUNDEN */
  background: url("/andet/billeder/404.png") center/cover no-repeat;
}

/* mørk overlay så tekst kan læses */
.error-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

/* indhold ovenpå */
.error-content {
  position: relative;
  z-index: 2;

  max-width: 600px;
  text-align: center;

  color: white;
}

.error-content h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.error-content p {
  margin-bottom: 25px;
  opacity: 0.9;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.error-page .btn-secondary {
  color: white;
  border-color: white;
  background: transparent;
}

/* hover stadig grøn som resten af sitet */
.error-page .btn-secondary:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.error-page .btn {
  width: auto;
  display: inline-flex;
}


/* =========================
   Cookies
   ========================= */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;

  background: white;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);

  padding: 1rem;
  border-radius: var(--radius-md);

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;

  z-index: 9999;
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
}

.cookie-banner button {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
}

#accept-cookies {
  background: var(--color-primary);
  color: var(--color-text-light);
}

#decline-cookies {
  background: #eee;
  color: var(--color-text);
}

.cookie-link {
  display: inline-block;
  padding: 8px 12px;
  text-decoration: none;

  color: var(--color-text);
  border: 1px solid #ddd;
  border-radius: 6px;

  font-size: 14px;
}

.cookie-link:hover {
  background: var(--color-bg-header-secondary);
}