/* ============================================================
   GOOGLE FONT & ROOT VARIABLER
============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

:root {
  /* Farver fra designmanual */
  --os-hvid: #faf7f0;
  --os-brun: #bfbb9f;
  --os-roed: #932225;
  --os-blaa: #4f6c90;
  --os-sort: #08090a;

  /* Afledte toner */
  --os-hvid-90: rgba(250, 247, 240, 0.9);
  --os-hvid-50: rgba(250, 247, 240, 0.5);
  --os-hvid-20: rgba(250, 247, 240, 0.2);

  --os-sort: #08090a;
  --os-sort-90: rgba(8, 9, 10, 0.9);
  --os-sort-75: rgba(8, 9, 10, 0.75);
  --os-sort-50: rgba(8, 9, 10, 0.5);
  --os-sort-20: rgba(8, 9, 10, 0.2);

  --os-blaa: #4f6c90;             /* 100% */
  --os-blaa-90: rgba(79, 108, 144, 0.9);
  --os-blaa-75: rgba(79, 108, 144, 0.75);
  --os-blaa-50: rgba(79, 108, 144, 0.5);
  --os-blaa-25: rgba(79, 108, 144, 0.25);


  /* Typografi, spacing og effekter */
  --font-body: 'Montserrat', sans-serif;
  --radius: 8px;
  --shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  --transition: 0.25s ease;
}
/* === TYPOGRAFI — WordPress-inspireret === */
body {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--os-sort);
}

p {
  margin-bottom: 1.2em;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.6em;
  color: var(--os-blaa);
}

h1 { font-size: clamp(1.9rem, 3vw + 1rem, 2.5rem); }
h2 { font-size: clamp(1.5rem, 2vw + 0.8rem, 1.9rem); }
h3 { font-size: clamp(1.2rem, 1.5vw + 0.6rem, 1.4rem); }
h4 { font-size: 1.2rem; }
h5, h6 { font-size: 1rem; }

small { font-size: 0.9rem; }

.h2 {
  font-size: clamp(1.5rem, 2vw + 0.8rem, 1.9rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.6em;
  color: var(--os-blaa)!important;
  text-transform: uppercase;
}

.kndev-btn {
  font-size: 1rem;
  line-height: 1.2;
}

.kndev_sub_text {
  font-size: 0.7rem;
  font-style: italic;
  margin-top: -4px;
}

/* ============================================================
   GLOBAL STYLING
============================================================ */
body {
  font-family: var(--font-body);
  background-color: var(--os-hvid);
  color: var(--os-sort);
  line-height: 1.6;
  margin: 0;
}

/* Links */
a {
  color: var(--os-blaa);
  text-decoration: none;
  transition: color 0.25s ease;
}
a:hover, a:focus { color: var(--os-roed); }

/* Typografi */
strong, b { color: var(--os-roed); }
h1, h2, h3, h4, h5 {
  color: var(--os-blaa);
  font-weight: 700;
}

/* Container og sektioner */
.kndev-container {
  width: min(1200px, 90%);
  margin: 0 auto;
}
.kndev-section {
  padding: 80px 0;
  background: var(--os-hvid);
}
.kndev-section.kndev-gallery { background: var(--os-hvid-50); }
.kndev-section.kndev-faq,
.kndev-section.kndev-contact { background: var(--os-hvid-20); }


/* ============================================================
   FORM ELEMENTER
============================================================ */
input[type="text"], input[type="email"], input[type="tel"], textarea {
  border: 1px solid var(--os-brun);
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--os-sort);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
input:focus, textarea:focus {
  border-color: var(--os-blaa);
  box-shadow: 0 0 0 2px rgba(79,108,144,0.2);
  outline: none;
}

.kndev_section {
  padding-top: 4rem!important;
}


/* ============================================================
   HEADER
============================================================ */

.breadcrumb {
  display: none;
}
.kndev_header_top {
  background: var(--os-blaa);
  color: var(--os-hvid);
  position: relative;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.kndev_header_top.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--os-blaa);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.kndev_header_inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}
.kndev_logo img {
 height: 50px;
}


/* Navigation */

/* --- BURGER --- */
.kndev_burger {
 display: none;
 flex-direction: column;
 justify-content: space-between;
 width: 26px;
 height: 18px;
 cursor: pointer;
 z-index: 1101;
}
.kndev_burger span {
 height: 3px;
 background: var(--os-hvid);
 border-radius: 2px;
 transition: all .3s;
}
.kndev_burger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.kndev_burger.active span:nth-child(2) { opacity: 0; }
.kndev_burger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.kndev_burger::before,
.kndev_burger::after {
 content: '';
 position: absolute;
 left: 0;
 width: 30px;
 height: 3px;
 background-color: white;
 transition: 0.3s;
}

.kndev_burger::before {
 top: -8px;
}

.kndev_burger::after {
 top: 8px;
}
/* --- NAV --- */
.kndev_nav {
 z-index: 1100;
 position: relative
}
.kndev_nav .kndev_menu {
 list-style: none;
 margin: 0; padding: 0;
 display: flex; align-items: center; gap: .25rem;
}
.kndev_nav a,
.kndev_nav .submenu-toggle {
 display: flex; align-items: center; gap: .5rem;
 padding: .75rem 1rem;
 text-decoration: none;
 background: none; border: 0;
 font: inherit; color: inherit;
 cursor: pointer;
}
.kndev_nav .submenu {
 list-style: none;
 margin: 0;
 padding: .5rem 0;
 position: absolute;
 top: 100%;
 left: 0;
 min-width: 220px;
 background: var(--os-blaa);
 border-radius: .5rem;
 display: none;
}
.kndev_nav .submenu li a { color: #fff; display: block; padding: .5rem 1rem; white-space: nowrap; }
.kndev_nav .submenu li a:hover { background: rgba(255,255,255,0.1); }

/* Desktop hover */
@media (hover:hover) and (min-width: 992px) {
 .kndev_nav .has-submenu:hover > .submenu {
  display: block;
 }
}

/* --- Mobil --- */
@media (max-width: 991px) {
 .kndev_burger {
 display: flex;
 }
 .kndev_nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 290px; height: 100vh;
  background: var(--os-blaa);
  transform: translateX(100%);
  transition: transform .3s ease;
  box-shadow: -8px 0 24px rgba(0,0,0,.2);
 }
 .kndev_nav.open {
  transform: translateX(0);
 }
 .kndev_nav .kndev_menu {
  flex-direction: column;
  align-items: stretch;
  padding: 1rem 1rem 1rem 1rem;
 }
 .kndev_nav .submenu {
  position: static;

  display: block!important;
  margin-top: .25rem; padding: 0;
 }
 .kndev_nav .has-submenu.expanded > .submenu {
  display: block;
 }
 .kndev_nav .submenu li a {
   padding: .625rem 1rem .625rem 1.75rem;
 }

  /* Sørg for at den altid er "udfoldet" */
  .has-submenu .submenu {
    display: block !important;
    max-height: none;
    opacity: 1;
    visibility: visible;
  }

  /* Hvis der bruges "expanded" klasser til animation */
  .has-submenu.expanded .submenu {
    display: block;
  }

  /* Fjern evt. pilen (chevron) for et renere look */
  .has-submenu .submenu-toggle .chev {
    display: none;
  }

  /* Fjern klikfunktion på knappen, så den ikke lukker submenuen igen */
  .has-submenu .submenu-toggle {
    pointer-events: none;
  }

}

/* ============================================================
   FOOTER
============================================================ */
.kndev_footer_overlay {
  background: var(--os-blaa-75) url('/img/cms/hero/hero_grass.jpg') center/cover no-repeat;
  background-blend-mode: multiply;
  padding: 80px 20px 60px;
  text-align: center;
  color: var(--os-hvid);
  position: relative;
}
.kndev_footer_overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(0,0,0,0.35) 0%,
    rgba(0,0,0,0.15) 40%,
    rgba(0,0,0,0.05) 100%);
}
.kndev_footer_inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 32px;
  justify-items: center;
}
.kndev_footer_inner a {
  color: var(--os-hvid);
  font-weight: 600;
}
.kndev_footer_inner a:hover {
  color: var(--os-roed);
}
.kndev_footer_inner a:hover { color: var(--os-roed); }
.kndev_footer_social a svg {
  width: 40px; height: 40px;
  fill: #fff;
  transition: transform 0.3s, fill 0.3s;
}
.kndev_footer_social a:hover svg {
  transform: scale(1.15);
  fill: var(--os-roed);
}
.kndev_footer_bottom {
  background: var(--os-blaa);
  color: var(--os-hvid-90);
  text-align: center;
  padding: 16px 10px;
  font-size: 0.95rem;
  border-top: 1px solid rgba(255,255,255,0.25);
}
.kndev_footer_bottom a { color: var(--os-hvid); font-weight: 600; }
.kndev_footer_bottom a:hover {
  color: var(--os-roed);
  text-decoration: underline;
}

/* === BACK TO TOP BUTTON === */
#kndev_backtotop {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--os-blaa);
  color: var(--os-hvid);
  border: none;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  cursor: pointer;
  display: flex;                /* centrering */
  align-items: center;          /* lodret */
  justify-content: center;      /* vandret */
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 9999;
}

#kndev_backtotop.visible {
  opacity: 1;
  transform: translateY(0);
}

#kndev_backtotop:hover {
  background: var(--os-roed);
  color: var(--os-hvid);
}

#kndev_backtotop svg {
  width: 26px;
  height: 26px;
  display: block;
}


/* ============================================================
   HERO SEKTION
============================================================ */
.kndev-hero {
  text-align: center;
  background: var(--os-blaa) url('/img/cms/hero/hero_car.jpg') center/cover no-repeat;
  background-blend-mode: multiply;
  color: var(--os-hvid);
  padding: 160px 0;
}

.kndev-hero-window {
  text-align: center;
  background: var(--os-blaa-50) url('/img/cms/hero/hero_window.jpg') center/cover no-repeat;
  background-blend-mode: multiply;
  color: var(--os-hvid);
  padding: 160px 0;
}


.kndev-hero h1,
.kndev-hero-window h1 {
  font-size: 2.8rem;
  margin-bottom: 12px;
  font-weight: 700;
  color: var(--os-hvid);
}
.kndev-hero p { font-size: 1.25rem; margin-bottom: 28px; }

.kndev_hero_button {

}
.kndev_hero_btn_left {
  margin-right: 25px;
}
.kndev_hero_btn_right {

}
@media (max-width: 768px) {
  .kndev-hero {
    padding: 25px 0 75px 0;
  }
  .kndev_hero_button {
    text-align: center;
  }
  .kndev_hero_btn_left {
    display: blockimportant;
    margin-bottom: 25px;
    margin: 0 auto 25px;
    width: fit-content;
  }
  .kndev_hero_btn_right {
    display: block!important;
    width: fit-content;
    margin: 0 auto;
  }
}


/* ============================================================
   HERO SEKTION - UGENTLIGE TILSYN
============================================================ */
.kndev_service_ugentligt-hero {
  text-align: center;
  background: var(--os-blaa) url('/img/cms/hero/hero_car.jpg') center/cover no-repeat;
  color: var(--os-roed);
  padding: 160px 0;
}

.kndev_service_ugentligt-hero h1 {
  font-size: 2.8rem;
  margin-bottom: 12px;
  font-weight: 700;
  color: var(--os-roed);
}
.kndev_service_ugentligt-hero p { font-size: 1.25rem; margin-bottom: 28px; }

.kndev_hero_button {

}
.kndev_hero_btn_left {
  margin-right: 25px;
}
.kndev_hero_btn_right {

}
@media (max-width: 768px) {
  .kndev_service_ugentligt-hero {
    padding: 25px 0 75px 0;
  }
  .kndev_hero_button {
    text-align: center;
  }
  .kndev_hero_btn_left {
    display: blockimportant;
    margin: 0 auto 25px;
    width: fit-content;
  }
  .kndev_hero_btn_right {
    display: block!important;
    width: fit-content;
    margin: 0 auto;
  }
}


/* ============================================================
   KNAPPER
============================================================ */
.kndev-btn, button, input[type="submit"] {
  display: inline-block;
  background: var(--os-blaa);
  color: var(--os-hvid);
  border: 2px solid var(--os-blaa);
  border-radius: var(--radius);
  padding: 12px 24px;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
}
.kndev-btn:hover, button:hover, input[type="submit"]:hover {
  background: var(--os-hvid);
  color: var(--os-blaa);
  border-color: var(--os-blaa);
}
.kndev-btn-primary {
  background: var(--os-blaa);
  color: var(--os-hvid);
}

.kndev-btn-primary:hover {
 background: var(--os-hvid);
}
@media (max-width: 768px) {
  .kndev_btn_left {
    margin-bottom: 25px;
  }
}

/* ============================================================
   VORES YDELSER & UGENTLIGT TILSYN
============================================================ */
.kndev_section.kndev-services.alt {
  background: linear-gradient(rgba(79,108,144,0.5), rgba(79,108,144,0.25))!important:
/*
  background: linear-gradient(rgba(79,108,144,0.6), rgba(79,108,144,0.25)),
              url('https://dev.osst.kndev.dk/img/cms/hero/hero_grass.jpg') center/cover no-repeat !important;
*/
  color: var(--os-hvid);
}


/* Baggrund og spacing */
.kndev_section.kndev-services {
  background: linear-gradient(180deg, rgba(79,108,144,0.60), rgba(79,108,144,0.40));
  color: var(--os-hvid);
  padding: 0 0 100px;
}


/* Overordnet sektion */
.kndev_section.kndev-services {
  background: linear-gradient(rgba(79,108,144,0.5), rgba(79,108,144,0.25))!important:

  padding: 80px 0;
  width: 100%;
}

.kndev_service_header {
  text-align: center;
}

.kndev_section.kndev-services h2 {
  text-transform: uppercase;
  color: var(--os-blaa);
}
.kndev_section.kndev-services.alt h2,
.kndev_section.kndev-services.alt p { color: var(--os-hvid); }

/* Ugentligt tilsyn (billede + tekst) */
.kndev_service_ugentligt {
  background: var(--os-hvid-50);
  padding: 80px 20px;
}
.kndev_service_row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-bottom: 40px;
}
.kndev_service_image img {
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.kndev_service_text {
  flex: 1 1 480px;
  max-width: 600px;
}
.kndev_service_text h2 {
  color: var(--os-blaa);
  font-size: 2rem;
  margin-bottom: 16px;
}
.kndev_service_text p {
  margin-bottom: 18px;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Priser (fuld bredde) */
.kndev_service_prices {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-bottom: 30px;
  text-align: center;
}
.kndev_service_prices .price-box {
  background: var(--os-hvid);
  border-left: 6px solid var(--os-blaa);
  padding: 18px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.kndev_service_prices .label {
  display: block;
  font-weight: 600;
  color: var(--os-blaa);
  margin-bottom: 6px;
}
.kndev_service_prices strong {
  color: var(--os-roed);
  font-size: 1.15rem;
}

/* Ekstra tekst */
.kndev_service_extra {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.kndev_service_extra p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

/* Øvrige ydelser grid */
.kndev-services-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .kndev-services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .kndev-services-grid { grid-template-columns: repeat(2, 1fr); } }

.kndev-card {
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform var(--transition);
}
.kndev-card:hover { transform: translateY(-4px); }
.kndev-card img { width: 100%; height: auto; }
.kndev-card h3 {
  margin: 16px 0 8px;
  font-size: 1.3rem;
  color: var(--os-blaa);
}
.kndev-card p { padding: 0 16px 24px; }

/* Responsiv tilsyn */
@media (max-width: 768px) {
  .kndev_service_row { flex-direction: column; text-align: center; }
  .kndev_service_text h2 { font-size: 1.7rem; }
}

/* ============================================================
   VORES YDELSER – OPTIMERET VERSION
============================================================ */

/* Ens tekstfarve i hele sektionen */
.kndev_section.kndev-services h2,
.kndev_section.kndev-services h3,
.kndev_section.kndev-services p {
  color: var(--os-hvid);
}

/* Ugentligt tilsyn – afstand som de andre kort */
.kndev_service_ugentligt {
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius);
  padding: 20px 20px 80px;
  margin-bottom: 80px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.kndev_section .kndev_service_ugentligt {
  padding-top: 2rem!important;
}

/* Tekstlayout */
.kndev_service_ugentligt h2 {
  font-size: 2rem;
  color: var(--os-hvid);
  margin-bottom: 20px;
}
.kndev_service_ugentligt p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.8;
}

/* Priser */
.kndev_service_prices .price-box {
  background: var(--os-hvid);
  border: 1px solid var(--os-roed);
  color: var(--os-hvid);
}


.kndev_service_icon {
  margin: 20px auto 0;
  padding-bottom: 10px;
  width: 100%!important;
  max-width: 60px;
  height: 50px!important;
/*
  position: relative;
  top: -75px;
*/
}
.kndev_service_diverse_icon {
  margin: 0 auto;
  width: 100%!important;
  max-width: 60px;
  height: 50px!important;
/*
  position: relative;
  top: -100px;
*/
}



/* ============================================================
   DIVERSE OPGAVER – NYT LAYOUT
============================================================ */
.kndev_service_diverse {
  width: 100%;
  text-align: center;
  background: rgba(255,255,255,0.08);
  padding: 40px 0 100px;
  border-radius: var(--radius);
  margin-top: 30px;
}

/* 3 billeder ovenover */
.kndev_service_diverse .kndev_diverse_photos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.kndev_service_diverse .kndev_diverse_photos img {
  width: 365px;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Tekst og link */
.kndev_service_diverse h3 {
  font-size: 1.8rem;
  color: var(--os-hvid);
  margin-bottom: 16px;
}
.kndev_service_diverse p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 28px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsivt layout */
@media (max-width: 768px) {
  .kndev_service_diverse .kndev_diverse_photos {
    flex-direction: column;
    gap: 16px;
  }
  .kndev_service_diverse .kndev_diverse_photos img {
    width: 90%;
    height: auto;
  }
}


/* ============================================================
   GALLERI
============================================================ */

.kndev_gallery {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  justify-items: center;
  margin-top: 16px;
}

.kndev_gallery img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kndev_gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.kndev_services_gallery .kndev_service {
  text-align: center;
}
.kndev_services_gallery .kndev_service h3 {
  margin-top: 0;
}

/* ====== MODAL ====== */
.kndev_modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  flex-direction: column;
}

.kndev_modal img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 8px;
}

.kndev_modal .close {
  position: absolute;
  top: 20px;
  right: 35px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  font-weight: 300;
  user-select: none;
}

.kndev_modal_nav {
  position: absolute;
  width: 100%;
  display: flex;
  justify-content: space-between;
  top: 50%;
  transform: translateY(-50%);
  padding: 0 40px;
  box-sizing: border-box;
}

.kndev_modal_nav span {
  font-size: 48px;
  color: white;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s;
}

.kndev_modal_nav span:hover {
  color: #DA4304; /* Accentfarve */
}


/* ============================================================
   FAQ
============================================================ */

.kndev-faq {
  background: linear-gradient(rgba(79,108,144,0.25), rgba(79,108,144,0.50))!important;
}

.kndev-faq details {
  background: var(--os-blaa);
  margin-bottom: 10px;
  padding: 16px 20px;
  border-radius: var(--radius);
}
.kndev-faq summary {
  font-weight: 600;
  color: var(--os-hvid);
  cursor: pointer;
}
.kndev-faq p {
  margin-top: 8px;
  color: var(--os-hvid);
}

/* ============================================================
   KONTAKTFORMULAR
============================================================ */
.kndev-contact-form {
  display: grid;
  gap: 16px;
  max-width: 600px;
  margin: 0 auto;
}
.kndev-contact-form input,
.kndev-contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--os-brun);
  border-radius: var(--radius);
  background: #fff;
}
.kndev-contact-form button {
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  background: var(--os-blaa);
  color: #fff;
  border: none;
  transition: background var(--transition);
}
.kndev-contact-form button:hover {
 background: #415b7b;
}


/* ============================================================
   WELCOME BILLEDER
============================================================ */
.kndev_welcome_photos {
  background: var(--os-hvid);
  text-align: center;
  padding: 100px 20px 0 20px;
}
.kndev_photo_stack {
  position: relative;
  max-width: 900px;
  margin: 0 auto 60px;
  height: 420px;
}
.kndev_photo_stack img {
  position: absolute;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition);
  object-fit: cover;
}
.kndev_photo_stack .photo-left {
  width: 360px; height: 240px;
  top: 100px; left: 0;
  transform: rotate(-3deg);
  z-index: 2;
}
.kndev_photo_stack .photo-center {
  width: 280px; height: 380px;
  left: 35%; top: 20px;
/*
  transform: translateX(-50%);
*/
  z-index: 1;
}
.kndev_photo_stack .photo-right {
  width: 360px; height: 240px;
  top: 100px; right: 0;
  transform: rotate(3deg);
  z-index: 2;
}
.kndev_photo_stack img:hover {
  transform: scale(1.05) translateY(-5px);
}
@media (max-width: 768px) {
  .kndev_photo_stack {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px; /* mindre afstand mellem billeder */
    margin: 0 auto;
  }

  .kndev_photo_stack img {
    position: static;
    width: 90%; /* centreret og lidt mindre */
    height: auto;
    transform: none;
    margin: 0 auto;
  }
}


/* ============================================================
   KUNDEUDTALELSER 
============================================================ */

/* Sektion – samme stil som FAQ */
#kundeudtalelser {
  text-align: center;
}

.testimonials {
  background: linear-gradient(rgba(79,108,144,0.50), rgba(79,108,144,0.75))!important;
  padding: 1px 0 100px 0;
}

#kundeudtalelser h2 {

}

/* Karousel */
.carousel {
  position: relative;
/*  max-width: 700px; */
  margin: 0 auto;
}

.testimonial {
  display: none;
  font-size: 1.1rem;
  background: var(--os-hvid);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 0 auto;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.testimonial.active {
  display: block;
}

.testimonial p {
  color: var(--os-blaa);
}


.testimonial span {
  display: block;
  margin-top: 1rem;
  color: var(--os-roed);
  font-weight: 600;
}

/* Navigation dots */
.dots {
  margin-top: 1rem;
}

.dot {
  height: 12px;
  width: 12px;
  margin: 0 5px;
  background-color: var(--os-blaa-25);
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.3s;
}

.dot.active {
  background-color: var(--os-blaa);
}

/* Mobilvenlig */
@media (max-width: 600px) {
  .testimonial {
    font-size: 1rem;
    padding: 1.2rem;
  }
}


/* ============================================================
   CMS
============================================================ */

.kndev-cms-container {
  padding: 25px 0 75px 0!important;
}


/* ============================================================
   KNDEV CONTACTFORM
============================================================ */
.kndevcf-wrap{
  background: linear-gradient(180deg, rgba(79,108,144,0.40), rgba(79,108,144,0.60));
  color: var(--os-hvid, #fff);
  padding: 50px 0;
}

/* Grid og knapplacering */
.kndevcf-form{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.kndevcf-form .full{ grid-column: 1 / -1; }
.kndevcf-actions{
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  justify-content: flex-start;  /* <- holder knappen inde i containeren */
  flex-wrap: wrap;
}

/* Inputs: læsbarhed på mørk baggrund */
.kndevcf-form input,
.kndevcf-form textarea,
.kndevcf-form select{
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  padding: 10px 12px;
  border-radius: 8px;
}
.kndevcf-form input::placeholder,
.kndevcf-form textarea::placeholder{ color: rgba(255,255,255,0.85); }
.kndevcf-form input:focus,
.kndevcf-form textarea:focus{
  outline: none;
  border-color: rgba(255,255,255,0.6);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.15);
}

/* Mobil */
@media (max-width: 768px){
  .kndevcf-form{ grid-template-columns: 1fr; }
}


/* ============================================================
   CONTACTFORM 
============================================================ */

form[data-kndev-contact-extras="1"] .kndev-contact-extra-fields{
  margin-top: 1rem;
  background: var(--kn-soft);
  border: 1px solid var(--kn-border);
  border-radius: 8px;
}

form[data-kndev-contact-extras="1"] .kndev-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem .75rem;
  margin-bottom: .75rem;
}

form[data-kndev-contact-extras="1"] .kndev-col {
  margin-bottom: 1rem;
}  
form[data-kndev-contact-extras="1"] .kndev-col label{
  display:block;
  letter-spacing: .02em;
  margin: 0 0 .25rem 0;
}

form[data-kndev-contact-extras="1"] .kndev-col input{
  width: 100%;
  padding: .55rem .65rem;
  border: 1px solid var(--kn-border);
  border-radius: 6px;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
  font-size: inherit;
}

form[data-kndev-contact-extras="1"] .kndev-col input:focus{
  outline: none;
  border-color: var(--kn-primary);
  box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--kn-primary) 20%, transparent);
}

form[data-kndev-contact-extras="1"] .kndev-sep{
  border: none;
  border-top: 1px solid var(--kn-border);
  margin: .5rem 0 0 0;
}

/* Ensret "Besked" textarea med samme look */
form[data-kndev-contact-extras="1"] textarea{
  border: 1px solid var(--kn-border);
  border-radius: 6px;
  min-height: 120px;
  width: 100%;
  padding: .6rem .7rem;
}
form[data-kndev-contact-extras="1"] textarea:focus{
  outline: none;
  border-color: var(--kn-primary);
  box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--kn-primary) 20%, transparent);
}

/* Små skærme: 1 kolonne */
@media (max-width: 640px){
  form[data-kndev-contact-extras="1"] .kndev-row{
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   DIVERSE 
============================================================ */
.visually-hidden {
  display: none;
}

.kndev_cms_images {
  padding: 1rem 0;
}
.kndev_cms_images img {
  border-radius: 8px;
}

.kndev-cms-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
  width: 100%;
  box-sizing: border-box;
  padding: 2rem 0;
}

/* Standard: billede til venstre (behøver faktisk ikke ekstra CSS) */
.kndev-cms-row--image-left {
  flex-direction: row;
}

/* Variant: billede til højre på desktop */
.kndev-cms-row--image-right {
  flex-direction: row-reverse;
}

.kndev-cms-image {
  flex: 0 0 50%;           /* ca. 50% til billede-kolonnen */
  display: flex;
  align-items: center;
  justify-content: center;
}

.kndev-cms-image img {
  display: block;
  width: 100%;             /* Fylder kun sin kolonne */
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.kndev-cms-text {
  flex: 1 1 auto;
}

/* Mobil: billede altid øverst, uanset left/right */
@media (max-width: 767px) {
  .kndev-cms-row {
    flex-direction: column;  /* Gælder både left og right, da begge har base-klassen */
    align-items: stretch;
  }

  .kndev-cms-image {
    flex: 0 0 auto;
    width: 100%;
    margin-bottom: 1rem;
  }

  .kndev-cms-image img {
    width: 100%;
  }
}