@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap");

/* ================================
   THEME (DIN PALETTE)
   ================================ */
:root {
  --text: #050315;
  --background: #fbfbfe;
  --primary: #2f27ce;
  --secondary: #dedcff;
  --accent: #433bff;

  /* ekstra helpers */
  --surface: #ffffff;
  --muted: rgba(5, 3, 21, 0.65);
  --border: rgba(5, 3, 21, 0.1);

  --shadow-sm: 0 8px 22px rgba(16, 24, 40, 0.1);
  --shadow-md: 0 14px 40px rgba(16, 24, 40, 0.14);
  --shadow-lg: 0 18px 55px rgba(16, 24, 40, 0.18);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;

  --grad: linear-gradient(135deg, var(--primary), var(--accent));
  --grad-hover: linear-gradient(135deg, var(--accent), var(--primary));
}

/* ================================
   BODY
   ================================ */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  position: relative;
  color: var(--text);
  background: var(--background);
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../img/background/background.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  filter: blur(7px);
  transform: scale(1.1);
  z-index: -1;
  opacity: 0.55; /* lidt mere roligt */
}

/* Main */
.main {
  font-family: "DM Sans", sans-serif;
}

/* ================================
   NAVBAR (bruges ikke i din index lige nu,
   men farverne er tilpasset)
   ================================ */
.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
}

.navbarLogo {
  padding-top: 0;
}

.navbarOptions {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.navbarLogo .logo {
  width: 150px;
  height: auto;
  vertical-align: middle;
}

.navbarOptions ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 40px;
  align-items: center;
  padding-top: 50px;
}

.navbarOptions li {
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
  font-weight: 700;
  font-family: "DM Sans", sans-serif;
}

.navbarLink {
  color: var(--text);
  text-decoration: none;
}

/* ================================
   HERO / CURVED HEADER
   ================================ */
.curved {
  /* før: #4194e1 */
  background: var(--grad);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.curved h1 {
  font-size: 6rem;
  font-family: "DM Sans", sans-serif;
  margin-top: 0;
  padding-top: 28px;
  letter-spacing: -0.02em;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.curved p {
  font-size: 1rem;
  font-family: "DM Sans", sans-serif;
  margin-top: 0 5rem 0 5rem;
}

.curved svg {
  display: block;
  z-index: 5;
}

/* ================================
   BUTTONS
   ================================ */
.buttonProjects,
.buttonContact,
.buttonHome {
  display: inline-block;
  padding: 14px 28px;
  margin: 10px 10px 0 0;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px; /* mere “clean” */
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(6px);
}

.buttonProjects,
.buttonContact,
.buttonHome {
  background: rgba(255, 255, 255, 0.14);
}

.buttonProjects:hover,
.buttonContact:hover,
.buttonHome:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.22);
  background: rgba(255, 255, 255, 0.2);
}

.active {
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.26);
  border-color: rgba(255, 255, 255, 0.35);
}

/* ================================
   MIDDLE SECTION
   ================================ */
.middlesection {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px 40px 40px;
  margin-top: -300px;
  gap: 40px;
}

.middleText {
  flex: 1;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
  margin-top: -10px;
}

.middlesection img {
  max-width: 400px;
  height: auto;
  border-radius: var(--radius-lg);
  font-family: "DM Sans", sans-serif;
  margin-top: -50px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.middleHeading {
  font-size: 1.8rem;
  font-weight: 900;
  font-family: "DM Sans", sans-serif;
  margin-bottom: 10px;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.middleContent {
  display: flex;
  flex-direction: row;
  gap: 40px;
  flex: 1;
  margin-top: 100px;
}

.textBlock {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ================================
   SECTION ANIMATION
   ================================ */
.latestProductSection {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 40px;
}

.middlesection,
.latestProductSection,
.contactSection {
  opacity: 0;
  transform: translateX(-100px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
  will-change: opacity, transform;
}

.middlesection.show,
.latestProductSection.show,
.contactSection.show {
  opacity: 1;
  transform: translateX(0);
}

/* ================================
   CARDS WRAPPER / SURFACES
   ================================ */
.textBlockBackground {
  background: rgba(251, 251, 254, 0.75); /* matcher background men “glass” */
  border-radius: var(--radius-lg);
  text-align: center;
  padding: 22px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.55);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  backdrop-filter: blur(10px);
}

.cardsWrapper {
  display: flex;
  flex-direction: row;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;

  background: rgba(251, 251, 254, 0.75);
  padding: 25px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
}

.cardSecondHeading {
  background: rgba(251, 251, 254, 0.85);
  padding: 10px 14px;
  width: fit-content;
  border-radius: 999px;
  font-size: 16px;
  margin-top: -30px;
  margin-bottom: 0px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: var(--text);
}

/* ================================
   CARD
   ================================ */
.card {
  display: grid;
  grid-template-columns: 300px;
  grid-template-rows: 210px 210px 80px;
  grid-template-areas: "image" "text" "stats";

  font-family: "DM Sans", sans-serif;
  border-radius: var(--radius-lg);
  background-color: rgba(255, 255, 255, 0.92);
  text-align: center;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  cursor: pointer;

  transform: preserve-3d;
  perspective: 1000px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-image {
  grid-area: image;
  background: url("../img/products/hest.webp");
  border-top-left-radius: calc(var(--radius-lg) - 3px);
  border-top-right-radius: calc(var(--radius-lg) - 3px);
  background-size: cover;
  background-position: center;
}

.card-text {
  grid-area: text;
  margin: 25px;
  transform: translateZ(30px);
}

.card-text .date {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.card-text p {
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
}

.card-text h2 {
  margin-top: 6px;
  margin-bottom: 8px;
  font-size: 28px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.card-stats {
  grid-area: stats;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  border-bottom-left-radius: calc(var(--radius-lg) - 3px);
  border-bottom-right-radius: calc(var(--radius-lg) - 3px);
  background: var(--grad);
}

.card-stats .stat {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 10px;
  color: white;
}

.card-stats .type {
  font-size: 12px;
  font-weight: 600;
  text-transform: none;
  opacity: 0.95;
}

.card-stats .value {
  font-size: 18px;
  font-weight: 900;
}

.cardHeading {
  font-size: 1.9rem;
  font-weight: 950;
  font-family: "DM Sans", sans-serif;
  margin-bottom: 10px;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Farve-ikon */
.card-stats .type img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease-in-out;
}

.card-stats .type img:hover {
  transform: scale(2.6);
}

.type {
  position: relative;
  display: inline-block;
}

/* Tooltip */
.tooltip {
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(5, 3, 21, 0.92);
  color: white;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: rgba(5, 3, 21, 0.92) transparent transparent transparent;
}

.type:hover .tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(-5px);
}

/* ================================
   CONTACT
   ================================ */
.contactSectionHeading {
  text-align: center;
  margin-top: 60px;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 950;
  letter-spacing: -0.01em;
}

.contactSectionBackground {
  background: rgba(251, 251, 254, 0.78);
  padding: 22px;
  max-width: 520px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
}

.contactSectionBackground form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contactSectionBackground label {
  font-weight: 800;
  color: var(--text);
}

.contactSectionBackground input,
.contactSectionBackground textarea {
  padding: 12px 12px;
  border: 1px solid rgba(5, 3, 21, 0.14);
  border-radius: 12px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.9);
  outline: none;
  transition:
    box-shadow 0.2s ease,
    border-color 0.2s ease;
  color: var(--text);
}

.contactSectionBackground input:focus,
.contactSectionBackground textarea:focus {
  border-color: rgba(67, 59, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(67, 59, 255, 0.15);
}

.contactSectionBackground button {
  padding: 12px;
  border: none;
  background: var(--grad);
  color: white;
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 900;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
  box-shadow: 0 14px 32px rgba(47, 39, 206, 0.22);
}

.contactSectionBackground button:hover {
  background: var(--grad-hover);
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(47, 39, 206, 0.28);
}

/* ================================
   ERRORS / SUCCESS
   ================================ */
.error {
  color: #d93025;
  font-size: 14px;
  margin-top: -8px;
  margin-bottom: 4px;
  font-family: "DM Sans", sans-serif;
}

.general-error {
  margin-bottom: 15px;
  padding: 10px 14px;
  background: #ffe5e5;
  border: 1px solid #d93025;
  border-radius: 12px;
  color: #8b0000;
  font-size: 14px;
  font-family: "DM Sans", sans-serif;
}

/* Success pop-up overlay */
.success-popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.success-popup.show {
  display: flex;
}

.success-box {
  background: rgba(255, 255, 255, 0.95);
  padding: 24px 28px;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  max-width: 360px;
  font-family: "DM Sans", sans-serif;
  border: 1px solid rgba(5, 3, 21, 0.1);
  backdrop-filter: blur(10px);
}

.success-box h2 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.4rem;
  color: var(--text);
}

.success-box p {
  margin-bottom: 18px;
  font-size: 0.95rem;
  color: var(--muted);
}

.success-box button {
  padding: 10px 18px;
  border: none;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  font-size: 0.95rem;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
  box-shadow: 0 14px 32px rgba(47, 39, 206, 0.22);
}

.success-box button:hover {
  background: var(--grad-hover);
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(47, 39, 206, 0.28);
}

/* ================================
   FOOTER
   ================================ */
.footer {
  background: var(--grad);
  color: white;
  padding: 40px 20px;
  font-family: "DM Sans", sans-serif;
  margin-top: 80px;
}

.footerContent {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
}

.footerColumn {
  flex: 1;
  min-width: 250px;
}

.footerColumn h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.footerColumn p,
.footerColumn a {
  font-size: 0.95rem;
  color: white;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footerColumn a:hover {
  opacity: 0.85;
}

.socialIcons a img {
  width: 28px;
  height: 28px;
  margin-right: 12px;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.28));
}

.socialIcons a img:hover {
  transform: scale(1.2);
}

/* ================================
   SCROLLBAR
   ================================ */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: var(--grad);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--grad-hover);
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .navbar {
    height: auto;
    padding: 10px 20px;
  }

  .navbarOptions ul {
    gap: 24px;
    padding-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .curved h1 {
    font-size: 3.8rem;
    padding-top: 22px;
  }

  .middlesection {
    margin-top: -150px;
    padding: 20px 24px 40px 24px;
    gap: 24px;
  }

  .middlesection img {
    max-width: 320px;
    margin-top: -20px;
  }

  .middleContent {
    margin-top: 60px;
    gap: 24px;
  }

  .contactSectionBackground {
    max-width: 90%;
  }
}

/* Mobil (max-width: 768px) */
@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
  }

  .navbar {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: auto;
    padding: 10px 0 20px 0;
  }

  .navbarLogo .logo {
    width: 120px;
  }

  .navbarOptions ul {
    flex-direction: column;
    gap: 12px;
    padding-top: 15px;
  }

  .navbarOptions li {
    font-size: 18px;
  }

  .curved h1 {
    font-size: 2.6rem;
    padding: 0 10px;
    padding-top: 20px;
  }

  .buttonProjects,
  .buttonContact,
  .buttonHome {
    width: 100%;
    max-width: 260px;
    text-align: center;
  }

  .middlesection {
    flex-direction: column;
    align-items: flex-start;
    margin-top: -120px;
    padding: 20px 16px 40px 16px;
    gap: 20px;
  }

  .middleText {
    font-size: 1rem;
    margin-top: 0;
  }

  .middlesection img {
    max-width: 100%;
    margin-top: 0;
    align-self: center;
  }

  .middleContent {
    flex-direction: column;
    margin-top: 40px;
    gap: 20px;
  }

  .textBlock {
    width: 100%;
  }

  .latestProductSection {
    padding: 40px 16px;
    gap: 24px;
  }

  .cardsWrapper {
    padding: 16px;
    gap: 20px;
  }

  .card {
    grid-template-columns: 1fr;
    grid-template-rows: 200px auto 70px;
    width: 100%;
    max-width: 360px;
  }

  .card-text {
    margin: 20px 16px;
  }

  .cardSecondHeading {
    margin-top: 10px;
    font-size: 15px;
  }

  .footer {
    margin-top: 40px;
    padding: 30px 16px;
  }

  .footerContent {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }

  .footerColumn {
    min-width: 100%;
  }

  .contactSectionBackground {
    margin: 0 16px;
    max-width: 100%;
  }
}

/* Ekstra lille mobil (max-width: 480px) */
@media (max-width: 480px) {
  .curved h1 {
    font-size: 2.2rem;
  }

  .middlesection {
    margin-top: -90px;
  }

  .card {
    max-width: 100%;
  }

  .navbarOptions li {
    font-size: 16px;
  }
}

/* Projekter CTA (Se alle projekter) */
.projectCta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.projectCta::after {
  content: "→";
  font-weight: 900;
  opacity: 0.9;
}

.projectCta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: rgba(251, 251, 254, 0.95);
}

/* Projektside layout */
.pageWrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 80px;
  margin-top: -30px;
}

.pageTitle {
  font-size: 2.2rem;
  font-weight: 950;
  margin: 0 0 6px 0;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.pageSub {
  margin: 0 0 22px 0;
  color: var(--muted);
  line-height: 1.6;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0 24px;
}

.searchBox {
  flex: 1;
  min-width: 240px;
  display: flex;
  gap: 10px;
}

.searchBox input {
  width: 100%;
  padding: 12px 12px;
  border: 1px solid rgba(5, 3, 21, 0.14);
  border-radius: 999px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.9);
  outline: none;
  transition:
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.searchBox input:focus {
  border-color: rgba(67, 59, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(67, 59, 255, 0.15);
}

.pillRow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  border: 1px solid rgba(5, 3, 21, 0.1);
  background: rgba(251, 251, 254, 0.85);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.pill:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.pillPrimary {
  background: var(--grad);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}

/* Projekt-grid */
.projectGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.projectCard {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.projectCard:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.projectImg {
  height: 210px;
  background-size: cover;
  background-position: center;
}

.projectBody {
  padding: 18px;
}

.projectDate {
  font-weight: 900;
  font-size: 12px;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.02em;
}

.projectTitle {
  margin: 8px 0 8px;
  font-size: 22px;
  font-weight: 950;
  color: var(--text);
  letter-spacing: -0.01em;
}

.projectDesc {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
}

.projectMeta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(5, 3, 21, 0.08);
}

/* Badge med farve-ikon */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(222, 220, 255, 0.55); /* secondary-ish */
  border: 1px solid rgba(5, 3, 21, 0.08);
  font-weight: 900;
  font-size: 13px;
  color: var(--text);
}

.badge img {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(5, 3, 21, 0.12);
}

.price {
  font-weight: 950;
  color: var(--text);
}

/* Responsiv grid */
@media (max-width: 1024px) {
  .projectGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .projectGrid {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   Forside-projekter: samme design som projektsiden
   ========================================= */

/* Brug samme grid/kort-styling på forsiden */
.latestProductSection .cardsWrapper {
  /* cardsWrapper er allerede “glass”, det er fint */
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

/* Mobil/tablet responsiv */
@media (max-width: 1024px) {
  .latestProductSection .cardsWrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .latestProductSection .cardsWrapper {
    grid-template-columns: 1fr;
  }
}

/* Kort på forsiden: match projektside */
.latestProductSection .card {
  display: block;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transform: none;
  perspective: none;
}

/* Hover som projektside */
.latestProductSection .card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* Billede som top */
.latestProductSection .card-image {
  height: 210px;
  border-radius: 0;
  background-size: cover;
  background-position: center;
}

/* Tekst */
.latestProductSection .card-text {
  margin: 0;
  padding: 18px;
  transform: none;
}

.latestProductSection .card-text .date {
  font-weight: 900;
  font-size: 12px;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.02em;
}

.latestProductSection .card-text h2 {
  margin: 8px 0 8px;
  font-size: 22px;
  font-weight: 950;
  color: var(--text);
  letter-spacing: -0.01em;
}

.latestProductSection .card-text p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
  font-weight: 400;
}

/* Fjern gammel “blå stats-bar” look og lav en clean meta-række */
.latestProductSection .card-stats {
  background: transparent !important;
  border-radius: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 18px;
  border-top: 1px solid rgba(5, 3, 21, 0.08);
}

/* “Farve badge” */
.latestProductSection .card-stats .stat:first-child .type {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(222, 220, 255, 0.55); /* secondary-ish */
  border: 1px solid rgba(5, 3, 21, 0.08);
  font-weight: 900;
  font-size: 13px;
  color: var(--text);
}

/* Gør farve-ikonet valgfrit (du kan beholde det, men small) */
.latestProductSection .card-stats .stat:first-child img {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(5, 3, 21, 0.12);
  box-shadow: none;
}

/* Skjul “Farver”-overskrift og tooltip på forsiden for clean look */
.latestProductSection .card-stats .stat:first-child .value,
.latestProductSection .tooltip {
  display: none !important;
}

/* Pris */
.latestProductSection .card-stats .stat:last-child {
  align-items: flex-end;
}

.latestProductSection .card-stats .stat:last-child .value {
  display: none; /* skjul "Pris" label */
}

.latestProductSection .card-stats .stat:last-child .type {
  font-weight: 950;
  font-size: 18px;
  color: var(--text);
}

/* =========================================
   Projektside animationer (samme stil som forsiden)
   ========================================= */

/* Hele indholdet (pageWrap) */
.projectsPage .pageWrap {
  opacity: 0;
  transform: translateX(-80px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
  will-change: opacity, transform;
  margin-top: -210px;
}

.projectsPage .pageWrap.show {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger på hvert projekt-kort */
.projectsPage .projectCard {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
  will-change: opacity, transform;
}

.projectsPage .projectCard.in {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   Nye forsidesektioner: bestilling, galleri, anmeldelser
   ========================================= */

.infoSection {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 20px;
}

.sectionHeader {
  text-align: left;
  margin-bottom: 18px;
}

.sectionTitle {
  margin: 0 0 6px 0;
  font-size: 2rem;
  font-weight: 950;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.sectionSub {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  max-width: 750px;
}

/* ---------- Bestilling (Steps) ---------- */
.stepsGrid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stepCard {
  background: rgba(251, 251, 254, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 18px;
  backdrop-filter: blur(10px);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.stepCard:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.stepIcon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 950;
  color: #fff;
  background: var(--grad);
  box-shadow: 0 14px 32px rgba(47, 39, 206, 0.22);
  margin-bottom: 10px;
}

.stepCard h3 {
  margin: 0 0 6px 0;
  font-size: 18px;
  font-weight: 950;
  color: var(--text);
}

.stepCard p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- Galleri ---------- */
.galleryGrid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.galleryItem {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  display: block;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.galleryItem:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.galleryItem img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 0.35s ease;
}

.galleryItem:hover img {
  transform: scale(1.08);
}

.galleryTag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  font-size: 12px;
  background: rgba(5, 3, 21, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

/* ---------- Anmeldelser ---------- */
.reviewGrid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.reviewCard {
  background: rgba(251, 251, 254, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 18px;
  backdrop-filter: blur(10px);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.reviewCard:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.reviewStars {
  font-weight: 950;
  letter-spacing: 0.06em;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
  font-size: 14px;
}

.reviewText {
  margin: 0 0 14px 0;
  color: var(--muted);
  line-height: 1.7;
}

.reviewMeta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgba(5, 3, 21, 0.08);
  padding-top: 12px;
}

.reviewName {
  font-weight: 950;
  color: var(--text);
}

.reviewTag {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(222, 220, 255, 0.55);
  border: 1px solid rgba(5, 3, 21, 0.08);
  font-weight: 900;
  font-size: 12px;
  color: var(--text);
}

/* ---------- Animation (samme som forsiden) ---------- */
.infoSection {
  opacity: 0;
  transform: translateX(-100px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
  will-change: opacity, transform;
}

.infoSection.show {
  opacity: 1;
  transform: translateX(0);
}

/* ---------- Responsiv ---------- */
@media (max-width: 1024px) {
  .stepsGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .galleryGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .reviewGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .stepsGrid {
    grid-template-columns: 1fr;
  }
  .galleryGrid {
    grid-template-columns: 1fr;
  }
  .reviewGrid {
    grid-template-columns: 1fr;
  }
  .galleryItem img {
    height: 220px;
  }
}

/* =========================================
   Før/efter slider (match til tema)
   ========================================= */

.beforeAfterGrid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 768px) {
  .beforeAfterGrid {
    grid-template-columns: 1fr;
  }
}

.beforeAfter {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  height: 320px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none; /* vigtig til drag på mobil */
}

.beforeAfter:hover {
  box-shadow: var(--shadow-lg);
}

.beforeAfter img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}

.beforeAfter .afterWrap {
  position: absolute;
  inset: 0;
  width: 50%; /* start position */
  overflow: hidden;
}

.beforeAfter .label {
  position: absolute;
  top: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  color: #fff;
  background: rgba(5, 3, 21, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  z-index: 5;
}

.beforeAfter .label.before {
  left: 12px;
}

.beforeAfter .label.after {
  right: 12px;
}

.beforeAfter .divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 0;
  z-index: 6;
}

.beforeAfter .dividerLine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1px;
  width: 2px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(5, 3, 21, 0.1);
}

.beforeAfter .handle {
  position: absolute;
  top: 50%;
  left: -22px;
  width: 44px;
  height: 44px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: var(--grad);
  box-shadow: 0 14px 32px rgba(47, 39, 206, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
}

.beforeAfter .handle::before {
  content: "↔";
  color: #fff;
  font-weight: 950;
  font-size: 18px;
  line-height: 1;
}

.beforeAfter .hint {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 5;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  color: #fff;
  background: rgba(5, 3, 21, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

/* =========================================
   TRUST-SIGNALER
   ========================================= */
.trustGrid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.trustCard {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(251, 251, 254, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 18px;
  backdrop-filter: blur(10px);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.trustCard:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.trustIcon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 950;
  color: #fff;
  background: var(--grad);
  box-shadow: 0 14px 32px rgba(47, 39, 206, 0.22);
  flex: 0 0 auto;
}

.trustCard h3 {
  margin: 0 0 4px 0;
  font-size: 18px;
  font-weight: 950;
  color: var(--text);
}

.trustCard p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* =========================================
   FRA-PRISER
   ========================================= */
.priceGrid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.priceCard {
  background: rgba(251, 251, 254, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 18px;
  backdrop-filter: blur(10px);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.priceCard:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.priceTop {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.priceTop h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 950;
  color: var(--text);
}

.fromPrice {
  font-weight: 950;
  color: var(--muted);
}

.fromPrice span {
  font-size: 22px;
  font-weight: 950;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.01em;
}

.priceCard p {
  margin: 0 0 12px 0;
  color: var(--muted);
  line-height: 1.6;
}

.priceHint {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(222, 220, 255, 0.55);
  border: 1px solid rgba(5, 3, 21, 0.08);
  font-weight: 900;
  font-size: 12px;
  color: var(--text);
}

.priceNote {
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 14px 16px;
  color: var(--muted);
  backdrop-filter: blur(10px);
}

/* =========================================
   LEVERING & BETALING
   ========================================= */
.shipPayGrid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.shipPayCard {
  background: rgba(251, 251, 254, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 18px;
  backdrop-filter: blur(10px);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.shipPayCard:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.shipPayIcon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(222, 220, 255, 0.55);
  border: 1px solid rgba(5, 3, 21, 0.08);
  font-size: 18px;
  margin-bottom: 10px;
}

.shipPayCard h3 {
  margin: 0 0 6px 0;
  font-size: 18px;
  font-weight: 950;
  color: var(--text);
}

.shipPayCard p {
  margin: 0 0 12px 0;
  color: var(--muted);
  line-height: 1.6;
}

.miniTag {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(222, 220, 255, 0.55);
  border: 1px solid rgba(5, 3, 21, 0.08);
  font-weight: 900;
  font-size: 12px;
  color: var(--text);
}

/* =========================================
   FAQ (Accordion)
   ========================================= */
.faqWrap {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faqItem {
  width: 100%;
  text-align: left;
  cursor: pointer;
  border: 0;
  padding: 0;
  background: rgba(251, 251, 254, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 16px 16px;
  backdrop-filter: blur(10px);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  position: relative;
}

.faqItem:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.faqQ {
  display: block;
  font-weight: 950;
  color: var(--text);
  padding-right: 42px;
}

.faqIcon {
  position: absolute;
  right: 16px;
  top: 14px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 950;
  color: #fff;
  background: var(--grad);
  box-shadow: 0 14px 32px rgba(47, 39, 206, 0.22);
}

.faqA {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.7;
  display: none;
}

.faqItem.open .faqA {
  display: block;
}

.faqItem.open .faqIcon {
  background: var(--grad-hover);
}

/* =========================================
   Responsiv
   ========================================= */
@media (max-width: 1024px) {
  .trustGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .priceGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .shipPayGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .trustGrid {
    grid-template-columns: 1fr;
  }
  .priceGrid {
    grid-template-columns: 1fr;
  }
  .shipPayGrid {
    grid-template-columns: 1fr;
  }
}

.footerLegal {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  opacity: 0.95;
}

.footerLegal a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
}

.footerLegal a:hover {
  opacity: 0.85;
  text-decoration: underline;
}

.footerDot {
  color: rgba(255, 255, 255, 0.75);
}

/* =========================================
   Legal pages (Privatliv / Betingelser) - premium layout
   ========================================= */

.legalContainer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px 90px;
}

.legalShell {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
  align-items: start;
}

@media (max-width: 1024px) {
  .legalShell {
    grid-template-columns: 1fr;
  }
}

/* Left sticky nav */
.legalNav {
  position: sticky;
  top: 18px;
  background: rgba(251, 251, 254, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  padding: 16px;
}

@media (max-width: 1024px) {
  .legalNav {
    position: relative;
    top: auto;
  }
}

.legalNavTitle {
  font-weight: 950;
  color: var(--text);
  margin: 0 0 10px 0;
  letter-spacing: -0.01em;
}

.legalNavList {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legalNavList a {
  text-decoration: none;
  color: var(--text);
  font-weight: 850;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(5, 3, 21, 0.08);
  background: rgba(255, 255, 255, 0.65);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.legalNavList a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.85);
}

.legalNavList a .chev {
  opacity: 0.7;
  font-weight: 950;
}

/* Right content area */
.legalMain {
  background: rgba(251, 251, 254, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  padding: 18px;
}

.legalHeader {
  padding: 8px 6px 14px;
  border-bottom: 1px solid rgba(5, 3, 21, 0.08);
  margin-bottom: 14px;
}

.legalKicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(222, 220, 255, 0.55);
  border: 1px solid rgba(5, 3, 21, 0.08);
  font-weight: 950;
  font-size: 12px;
  color: var(--text);
}

.legalTitle {
  margin: 12px 0 6px;
  font-size: 2.2rem;
  font-weight: 950;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.legalIntro {
  margin: 0 0 6px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 820px;
}

/* Section cards */
.legalSection {
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(5, 3, 21, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 16px;
}

.legalSectionHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.legalSectionTitle {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 950;
  color: var(--text);
  letter-spacing: -0.01em;
}

.legalBadge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-weight: 950;
  box-shadow: 0 14px 32px rgba(47, 39, 206, 0.22);
}

.legalSection p,
.legalSection li {
  color: var(--muted);
  line-height: 1.75;
}

.legalSection ul {
  margin: 8px 0 0 18px;
}

/* Footer CTA row on legal pages */
.legalActions {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid rgba(5, 3, 21, 0.08);
}

/* Page animation (reuse your existing show classes) */
.legalContainer {
  opacity: 0;
  transform: translateX(-80px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
  will-change: opacity, transform;
}
.legalContainer.show {
  opacity: 1;
  transform: translateX(0);
}

html {
  scroll-behavior: smooth;
}

/* Legal sections: stagger/scroll animation */
.legalSection {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  will-change: opacity, transform;
}

.legalSection.in {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   PROJEKTER.PHP – samme look som forsiden
   (badge + pris row, samme spacing/størrelser)
   ========================================= */

/* Gør dit projectGrid til samme grid som på forsiden */
.projectsPage #projectGrid.cardsWrapper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;

  /* behold din “glass” wrapper (du har den allerede på .cardsWrapper) */
}

/* Responsiv – præcis som forsiden */
@media (max-width: 1024px) {
  .projectsPage #projectGrid.cardsWrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .projectsPage #projectGrid.cardsWrapper {
    grid-template-columns: 1fr;
  }
}

/* Kort på projektsiden: match forsiden */
.projectsPage #projectGrid .card {
  display: block;
  width: 100%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;

  /* fjern “3D card” effekten fra den gamle .card */
  transform: none;
  perspective: none;
}

.projectsPage #projectGrid .card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* ===========================
   ✅ PROJEKTER.PHP: Billede som top (samme som forsiden)
   =========================== */
.projectsPage #projectGrid .card-image {
  width: 100%;
  height: 210px;
  margin: 0;

  /* fyld hele top-området (ikke cirkel) */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* card'en har overflow:hidden + border-radius, så vi behøver ikke runde her */
  border-radius: 0;
}

/* Lidt lavere billede på små mobiler */
@media (max-width: 480px) {
  .projectsPage #projectGrid .card-image {
    height: 180px;
  }
}


/* Tekst: samme spacing */
.projectsPage #projectGrid .card-text {
  margin: 0;
  padding: 14px 18px 18px; /* lidt op, så den passer pænt med cirklen */
  transform: none;
}

.projectsPage #projectGrid .card-text .date {
  font-weight: 900;
  font-size: 12px;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.02em;
}

.projectsPage #projectGrid .card-text h2 {
  margin: 8px 0 8px;
  font-size: 22px;
  font-weight: 950;
  color: var(--text);
  letter-spacing: -0.01em;
}

.projectsPage #projectGrid .card-text p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
  font-weight: 400;
}

/* Nederste row: badge + pris (som på forsiden) */
.projectsPage #projectGrid .card-stats {
  background: transparent !important;
  border-radius: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 18px;
  border-top: 1px solid rgba(5, 3, 21, 0.08);
}

/* Badge */
.projectsPage #projectGrid .card-stats .stat:first-child .type {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(222, 220, 255, 0.55);
  border: 1px solid rgba(5, 3, 21, 0.08);
  font-weight: 900;
  font-size: 13px;
  color: var(--text);
}

/* Badge ikon */
.projectsPage #projectGrid .card-stats .stat:first-child img {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(5, 3, 21, 0.12);
  box-shadow: none;
  object-fit: cover;
}

/* Skjul “Farver” og “Pris” labels i bunden, så det matcher billedet */
.projectsPage #projectGrid .card-stats .stat:first-child .value,
.projectsPage #projectGrid .card-stats .stat:last-child .value {
  display: none !important;
}

/* Pris højre */
.projectsPage #projectGrid .card-stats .stat:last-child {
  align-items: flex-end;
}

.projectsPage #projectGrid .card-stats .stat:last-child .type {
  font-weight: 950;
  font-size: 18px;
  color: var(--text);
}

/* =========================================
   Farvegalleri (assets/img/colors)
   ========================================= */
.colorGrid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.colorItem {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  display: block;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  padding: 14px 12px 16px;
  text-align: center;
}

.colorItem:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.colorItem img {
  width: 100%;
  height: 90px;
  object-fit: contain; /* vigtigt til farve-swatch billeder */
  display: block;
  border-radius: 14px;
}

.colorTag {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  color: #fff;
  background: rgba(5, 3, 21, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

/* Responsiv */
@media (max-width: 1024px) {
  .colorGrid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .colorGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =========================================
   ✅ PROJEKTER.PHP: farve-badge (ikon + tekst på samme linje)
   Sæt DENNE nederst i styles.css og fjern dubletterne
   ========================================= */

/* Projektside: sørg for teksten ikke bliver hvid (din base .stat er hvid) */
.projectsPage #projectGrid .card-stats .stat {
  color: var(--text);
}

/* Første stat (farver) skal være venstre-justeret */
.projectsPage #projectGrid .card-stats .stat:first-child {
  align-items: flex-start;
}

/* Sidste stat (pris) højre-justeret */
.projectsPage #projectGrid .card-stats .stat:last-child {
  align-items: flex-end;
}

/* Badge container (Farve: ...) – ALT på samme linje */
.projectsPage #projectGrid .card-stats .stat:first-child .type.colorBadge {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  flex-wrap: nowrap;        /* ✅ IKKE wrap = ingen ny linje mellem icons og tekst */
  white-space: nowrap;      /* ✅ holder teksten på samme linje */

  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(222, 220, 255, 0.55);
  border: 1px solid rgba(5, 3, 21, 0.08);

  font-weight: 900;
  font-size: 13px;
  color: var(--text);
  line-height: 1;
}

/* Thumbs-række (3 farver) */
.projectsPage #projectGrid .card-stats .stat:first-child .colorThumbs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;           /* ✅ forhindrer flex i at strække */
}

/* Farve-ikoner: altid runde og aldrig aflange */
.projectsPage #projectGrid .card-stats .stat:first-child .colorThumbs img {
  width: 18px;
  height: 18px;
  aspect-ratio: 1 / 1;      /* ✅ perfekt kvadrat */
  flex: 0 0 18px;           /* ✅ låser størrelsen */
  display: block;

  border-radius: 999px;
  object-fit: cover;
  object-position: center;

  border: 1px solid rgba(5, 3, 21, 0.12);
  background: #fff;
  box-shadow: none;

  transform: none !important; /* ✅ slå din store hover-zoom fra her */
}

/* Tekst lige i midten */
.projectsPage #projectGrid .card-stats .stat:first-child .colorLabel {
  display: inline-block;
  vertical-align: middle;
}

/* Hvis du vil: undgå at badge bliver for bred – så den ikke skubber layoutet */
@media (max-width: 480px) {
  .projectsPage #projectGrid .card-stats .stat:first-child .type.colorBadge {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* ================================
   HERO STATS (projects + reviews)
   ================================ */
.heroStats {
  margin-top: 18px;
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  padding: 0 18px 18px 18px;
}

.heroStat {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
  padding: 12px 16px;
  border-radius: 16px;

  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);

  color: #fff;
  text-decoration: none;

  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.heroStat:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.22);
}

.heroStatNumber {
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  min-width: 34px;
}

.heroStatText {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.heroStatLabel {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.92;
}

.heroStatSub {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.86;
}

.heroStatArrow {
  margin-left: auto;
  font-size: 18px;
  opacity: 0.85;
  transform: translateX(0);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.heroStat:hover .heroStatArrow {
  transform: translateX(2px);
  opacity: 1;
}

/* Mobil: pæn stack */
@media (max-width: 520px) {
  .heroStat {
    width: min(560px, 100%);
    min-width: 0;
  }
}

/* ================================
   HERO -> INTRO: flyt bokse op
================================ */
.middlesection{
  position: relative;
  z-index: 5;              /* sørger for at boksene ligger pænt over bølgen */
  margin-top: -370px;      /* <-- justér denne hvis du vil mere/mindre op */
  padding-top: 0;
}

/* Responsiv: mindre "løft" på små skærme */
@media (max-width: 900px){
  .middlesection{ margin-top: -70px; }
}
@media (max-width: 600px){
  .middlesection{ margin-top: -40px; }
}
