:root {
  --bg: #f7f3ee;
  --surface: #ffffff;
  --surface-soft: #fff8f3;
  --text: #1f1f1f;
  --muted: #5f5f5f;
  --primary: #d34a24;
  --primary-dark: #9f2f18;
  --accent: #f0c04b;
  --accent-soft: #ffe6bf;
  --border: #e7ddd2;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 12px 26px rgba(149, 82, 42, 0.12);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(240, 192, 75, 0.12), transparent 28%),
    linear-gradient(180deg, #faf6f0 0%, #f7f3ee 100%);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.12));
}

.brand-logo-text {
  height: auto;
  max-height: 75px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-main {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--primary-dark);
}

.brand-sub {
  font-size: 0.86rem;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a:not(.btn) {
  font-weight: 600;
  color: #333;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.8rem;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), #ef7e2f);
  color: #fff;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(159, 47, 24, 0.18);
}

.btn-small { padding: 10px 16px; }

.btn-secondary {
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  border: 2px solid var(--border);
  box-shadow: none;
}

.btn-light {
  background: #fff;
  color: var(--primary-dark);
}

.full-width { width: 100%; }

.hero { padding: 74px 0 50px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 42px;
  align-items: center;
}

.eyebrow,
.section-tag {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-tag.light { color: #ffe2b0; }

h1, h2, h3 {
  line-height: 1.15;
  margin-top: 0;
}

h1 {
  font-size: clamp(1.9rem, 4vw, 3.6rem);
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  margin-bottom: 16px;
}

.lead {
  font-size: 1.08rem;
  color: #424242;
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 28px 0 24px;
}

.hero-points {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-points li {
  position: relative;
  padding-left: 28px;
  font-weight: 600;
}

.hero-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-weight: 800;
}

.hero-visual { position: relative; }

.hero-photo-card,
.form-card,
.contact-info-box,
.card,
.benefit,
.profile-card,
.about-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-photo-card {
  position: relative;
  overflow: hidden;
  padding: 16px;
  background: linear-gradient(180deg, #fff9f4 0%, #ffffff 100%);
}

.hero-photo {
  width: 100%;
  min-height: 540px;
  object-fit: cover;
  border-radius: 20px;
}

.hero-photo-badge {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(20, 20, 20, 0.78);
  color: #fff;
  backdrop-filter: blur(10px);
}

.hero-photo-badge img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  flex: 0 0 auto;
}

.hero-photo-badge span {
  font-weight: 700;
  line-height: 1.3;
}

.section { padding: 72px 0; }

.muted {
  background: linear-gradient(180deg, rgba(240, 192, 75, 0.08), rgba(255, 255, 255, 0));
}

.about-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  padding: 30px;
  background: linear-gradient(135deg, #ffffff, var(--surface-soft));
}

.about-copy { padding: 6px; }

.profile-card {
  overflow: hidden;
  background: #fff;
}

.profile-image {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.profile-info { padding: 22px; }

.cards,
.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 30px;
}

.card,
.benefit {
  padding: 24px;
  background: linear-gradient(180deg, #fff, #fff9f4);
}

.card h3,
.benefit h3 { margin-bottom: 10px; }

.benefit-number {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--primary);
}

.cta-section { padding: 24px 0 72px; }

.cta-box {
  background: linear-gradient(135deg, #1d1d1d, #3e2b20);
  color: #fff;
  border-radius: 28px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow);
}

.site-footer {
  background: #151515;
  color: #f1f1f1;
  padding: 36px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contact-page { min-height: calc(100vh - 160px); }

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 30px;
  align-items: start;
}

.contact-info-box {
  padding: 24px;
  margin-top: 28px;
}

.contact-profile-box {
  background: linear-gradient(180deg, #fff, #fff9f4);
}

.contact-profile-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.contact-profile-image {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: var(--shadow-soft);
}

.contact-form,
.form-card { width: 100%; }

.form-card {
  padding: 24px;
  background: linear-gradient(180deg, #ffffff, #fffaf6);
}

.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

label {
  font-weight: 700;
  margin-bottom: 8px;
}

input,
textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d7ccc0;
  border-radius: 16px;
  font: inherit;
  background: #fff;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(211, 74, 36, 0.2);
  border-color: var(--primary);
}

.form-note,
.form-status {
  font-size: 0.92rem;
  color: var(--muted);
  margin-top: 14px;
}

.form-status.success { color: #1f7a33; }
.form-status.error { color: #a32525; }

/* MOBIL OPTIMERING */
@media (max-width: 920px) {
  .hero-grid,
  .about-panel,
  .contact-grid,
  .cards,
  .benefits,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-photo { min-height: 420px; }

  /* HER ER RETTELSEN TIL KONTAKT-BOKSEN */
  .cta-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  .nav {
    position: absolute;
    top: 88px;
    left: 16px;
    right: 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
    padding: 18px;
    flex-direction: column;
    align-items: flex-start;
    display: none;
  }

  .nav.open { display: flex; }
  .menu-toggle { display: block; }
}

@media (max-width: 640px) {
  .brand-logo { width: 58px; height: 58px; }
  .brand-main { font-size: 1rem; }
  .brand-sub { font-size: 0.78rem; }
  .hero { padding-top: 44px; }
  .hero-photo-badge {
    left: 14px; right: 14px; bottom: 14px; padding: 12px;
  }
  .hero-photo-badge img { width: 54px; height: 54px; }
  .cta-box, .about-panel, .card, .benefit, .form-card, .contact-info-box { padding: 20px; }
}

.contact-page .section-tag {
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.contact-page h1 { font-size: clamp(2rem, 4vw, 3.2rem); }

.hero-gallery-link {
  display: block;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.hero-gallery-link:hover { transform: translateY(-6px); }

.gallery-badge {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #000000;
  padding: 16px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.hero-gallery-link:hover .gallery-badge {
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  transform: translateX(-50%) translateY(-5px);
}

.gallery-badge .arrow {
  font-size: 1.3rem;
  transition: transform 0.2s ease;
}

.hero-gallery-link:hover .gallery-badge .arrow { transform: translateX(4px); }

/* --- MAPPER TIL UNDER-SIDER --- */
.folder-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 40px;
}

.folder-container { width: 100%; }

.folder-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
  height: 250px; 
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.folder-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(211, 74, 36, 0.2);
}

.folder-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.folder-card:hover img { transform: scale(1.03); }

.folder-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  color: white;
  padding: 30px 20px 20px 20px;
  pointer-events: none;
}

.folder-overlay h3 { margin: 0 0 5px 0; color: white; font-size: 1.5rem; }
.folder-overlay p { margin: 0; color: #ffecd1; font-weight: 600; font-size: 0.9rem; }

.folder-gallery { display: none; }

/* --- FULLSCREEN GALLERI (MODAL) MED PILE --- */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  overflow: hidden;
}

.close-modal {
  position: fixed;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  z-index: 2100;
  background: var(--primary);
  padding: 8px 20px;
  border-radius: 999px;
}

.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
}

.modal-content img {
  max-height: 85vh;
  max-width: 90vw;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  user-select: none;
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: none;
  font-size: 40px;
  padding: 15px 25px;
  cursor: pointer;
  z-index: 2050;
  transition: background 0.3s ease;
  border-radius: 8px;
}

.modal-nav:hover { background: var(--primary); }
.prev-nav { left: 20px; }
.next-nav { right: 20px; }

.image-counter {
  color: #ccc;
  margin-top: 15px;
  font-size: 1rem;
  font-weight: 600;
}

body.modal-open { overflow: hidden; }

@media (max-width: 600px) {
  .modal-nav { font-size: 24px; padding: 10px 15px; }
  .prev-nav { left: 10px; }
  .next-nav { right: 10px; }
}

/* ========================================= */
/* LILLE COOKIE POP-UP KORT                  */
/* ========================================= */
/* ========================================= */
/* FORBEDRET COOKIE POP-UP (CENTERET)       */
/* ========================================= */
.cookie-popup {
  position: fixed;
  bottom: 30px;
  left: 50%; /* Flytter den til midten */
  transform: translateX(-50%); /* Centrerer den præcist */
  width: 90%;
  max-width: 400px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  padding: 25px;
  z-index: 10000;
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Når den er skjult */
.cookie-popup.hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(40px); /* Gør den svævende nedad */
}

.cookie-popup .cookie-content p {
  margin: 0 0 15px 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text);
}

.cookie-popup .cookie-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}