/* ===== KGE · /behandlinger/ hub ===== */
:root {
  --ink: #0a1628;
  --navy: #0a1e3c;
  --teal: #3AABB0;
  --teal-dark: #0D4F66;
  --teal-pale: #edf7f8;
  --off-white: #f7f5f0;
  --text: #0a1628;
  --text-mid: #374F66;
  --text-lt: #4B5563;
  --border: #eeeeee;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 100px;
  --sh-sm: 0 2px 12px rgba(14,28,47,.06);
  --sh: 0 8px 32px rgba(14,28,47,.10);
  --sh-lg: 0 20px 60px rgba(14,28,47,.14);
  --container: 1240px;
  --py: 100px;
}

body.page-template-behandlinger,
.kge-beh {
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: #fff;
  font-size: 20px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.kge-beh * { box-sizing: border-box; }
.kge-beh img { max-width: 100%; height: auto; display: block; }

.kge-beh h1, .kge-beh h2, .kge-beh h3, .kge-beh h4 {
  font-family: "Rethink Sans", system-ui, sans-serif;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
  margin: 0;
}
.kge-beh h1 { font-size: clamp(40px, 6vw, 76px); line-height: 1.02; letter-spacing: -0.04em; }
.kge-beh h2 { font-size: clamp(32px, 4.8vw, 58px); line-height: 1.04; }
.kge-beh h3 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.1; }
.kge-beh p { margin: 0 0 1em; color: var(--text); }
.kge-beh a { color: inherit; text-decoration: none; }

.kge-beh__container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 52px);
}

/* eyebrow pill */
.kge-beh__eyebrow {
  display: inline-flex;
  align-items: center;
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: var(--teal-pale);
  border: 1px solid rgba(58,171,176,0.25);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  margin-bottom: 20px;
}

/* buttons */
.kge-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 16px 32px;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  min-height: 48px;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.kge-btn--primary {
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(10,30,60,0.18);
}
.kge-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(10,30,60,0.25); }
.kge-btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.kge-btn--ghost:hover { background: var(--ink); color: #fff; }

/* sections */
.kge-beh__section { padding: var(--py) 0; }
.kge-beh__section--alt { background: var(--off-white); }

.kge-beh__header { max-width: 720px; margin-bottom: 56px; margin-left: auto; margin-right: auto; text-align: center; }
.kge-beh__header--center { margin-left: auto; margin-right: auto; text-align: center; }
.kge-beh .kge-beh__lead { font-size: 20px; line-height: 1.45; color: var(--text-mid); margin-top: clamp(20px, 2.5vw, 40px); }

/* ===== HERO ===== */
.kge-beh__hero {
  background: var(--off-white);
  padding: 0;
}
.kge-beh__hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: min(65vh, 600px);
}
.kge-beh__hero-text {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: clamp(48px, 5vw, 72px) clamp(40px, 5vw, 72px) clamp(48px, 5vw, 72px) clamp(40px, 6vw, 96px);
}
.kge-beh__hero-inner { max-width: 620px; width: 100%; }
.kge-beh__hero h1 { max-width: 620px; }
.kge-beh__hero .kge-beh__lead { max-width: 560px; margin-top: 28px; }
.kge-beh__hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.kge-beh__hero-image { position: relative; overflow: hidden; }
.kge-beh__hero-image img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* Buttons: ensure white text on primary */
.kge-beh .kge-btn--primary,
.kge-beh .kge-btn--primary * { color: #fff !important; }

@media (max-width: 900px) {
  .kge-beh__hero-grid { grid-template-columns: 1fr; min-height: 0; }
}

/* intro strip */
.kge-beh__strip {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
  font-size: 15px;
  color: var(--text-mid);
  text-align: center;
}
.kge-beh__strip span { margin: 0 14px; white-space: nowrap; }

/* ===== HOVEDGRUPPE CARDS ===== */
.kge-beh__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.kge-beh__card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 44px;
  box-shadow: var(--sh);
  border: 1px solid var(--border);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
  color: var(--text);
}
.kge-beh__card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.kge-beh__card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--teal-pale);
  color: var(--teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.kge-beh__card-icon svg { width: 28px; height: 28px; stroke: var(--teal-dark); stroke-width: 1.75; fill: none; }
.kge-beh__card h3 { margin-bottom: 14px; }
.kge-beh__card p { color: var(--text-mid); font-size: 20px; line-height: 1.55; }
.kge-beh__card-link {
  margin-top: auto;
  padding-top: 20px;
  font-weight: 600;
  color: var(--teal-dark);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}
.kge-beh__card-link::after {
  content: "→";
  transition: transform .2s ease;
}
.kge-beh__card:hover .kge-beh__card-link::after { transform: translateX(4px); }

/* ===== 55 MIN SECTION ===== */
.kge-beh__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 48px;
}
.kge-beh__step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px;
}
.kge-beh__step-num {
  font-family: "Rethink Sans", sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: var(--teal-dark);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.kge-beh__step h3 { font-size: 22px; margin-bottom: 12px; }
.kge-beh__step p { color: var(--text-mid); font-size: 20px; line-height: 1.55; margin: 0; }

/* ===== TEAM ===== */
.kge-beh__team {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}
.kge-beh__team-card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 0;
  box-shadow: var(--sh);
  border: 1px solid var(--border);
  overflow: hidden;
}
.kge-beh__team-top {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 32px 36px 0;
}
.kge-beh__team-top h3 { margin-bottom: 4px; }
.kge-beh__team-top .kge-beh__team-role { margin-bottom: 0; }
.kge-beh__team-photo {
  width: 80px;
  min-width: 80px;
  height: 80px;
  min-height: 80px;
  max-height: 80px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
  flex-shrink: 0;
}
.kge-beh__team-body {
  padding: 20px 36px 36px;
}
.kge-beh__team-cta {
  margin-top: 24px;
}
.kge-beh__team-card h3 { margin-bottom: 6px; }
.kge-beh__team-role {
  font-size: 14px;
  font-weight: 600;
  color: var(--teal-dark);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.kge-beh__team-card p { color: var(--text-mid); font-size: 20px; line-height: 1.6; }
.kge-beh__team-card ul { padding-left: 0; list-style: none; margin: 20px 0 0; }
.kge-beh__team-card ul li {
  font-size: 15px;
  color: var(--text-mid);
  padding-left: 24px;
  position: relative;
  margin-bottom: 8px;
}
.kge-beh__team-card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 14px;
  height: 2px;
  background: var(--teal-dark);
}

/* ===== IKKE-LISTE ===== */
.kge-beh__notlist {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.kge-beh__notlist-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
}
.kge-beh__notlist-item h3 {
  font-size: 20px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.kge-beh__notlist-item h3::before {
  content: "✓";
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-pale);
  color: var(--teal-dark);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
}
.kge-beh__notlist-item p { color: var(--text-mid); font-size: 16px; line-height: 1.55; margin: 0; }

/* ===== FINAL CTA ===== */
.kge-beh__final {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 110px 0;
}
.kge-beh__final h2 { color: #fff; }
.kge-beh__final p { color: rgba(255,255,255,0.8); font-size: 20px; max-width: 560px; margin: 20px auto 36px; }
.kge-beh__final .kge-btn--primary {
  background: var(--teal-dark);
}
.kge-beh__final-sub { font-size: 14px; color: rgba(255,255,255,0.6); margin-top: 20px; }
.kge-beh__final-sub a { color: var(--teal); font-weight: 600; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  :root { --py: 64px; }
  .kge-beh__hero { padding: 0; }
  .kge-beh__hero-text { padding: 56px 24px 40px; justify-content: flex-start; }
  .kge-beh__hero-image { min-height: 260px; }
  .kge-beh__grid,
  .kge-beh__team,
  .kge-beh__steps,
  .kge-beh__notlist { grid-template-columns: 1fr; gap: 20px; }
  .kge-beh__card,
  .kge-beh__team-card { padding: 32px; }
  .kge-beh__header { margin-bottom: 40px; }
  .kge-beh__strip { display: none; }
  .kge-beh__hero-ctas { flex-direction: column; align-items: stretch; }
  .kge-beh__hero-ctas .kge-btn { width: 100%; }
}

@media (max-width: 560px) {
  .kge-beh h1 { font-size: clamp(28px, 8vw, 36px); }
  .kge-beh__hero-text { padding-left: 20px !important; padding-right: 20px !important; }
  .kge-beh__hero-inner { padding-left: 0 !important; padding-right: 0 !important; }
  .kge-beh__team-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }
  .kge-beh__team-role { text-align: center; }
}
@media (max-width: 480px) {
  .kge-beh { font-size: 20px; }
  .kge-beh__card,
  .kge-beh__team-card,
  .kge-beh__notlist-item { padding: 26px; }
}

/* Sitewide mobile centering for section content */
@media (max-width: 900px) {
  .kge-home__section, .kge-beh__section, .kge-pris__section,
  .kge-sym__section, .kge-om__section, .kge-kon__section,
  .kge-home__whoami-text, .kge-home__whoami-grid,
  .kge-home__header, .kge-beh__header, .kge-pris__header,
  .kge-home__container > h1, .kge-home__container > h2, .kge-home__container > h3,
  .kge-beh__container > h1, .kge-beh__container > h2, .kge-beh__container > h3,
  .kge-pris__container > h1, .kge-pris__container > h2, .kge-pris__container > h3 {
    text-align: center;
  }
  .kge-home__header, .kge-beh__header, .kge-pris__header {
    margin-left: auto; margin-right: auto;
  }
}

/* Sitewide mobile centering v2: text + buttons */
@media (max-width: 900px) {
  .kge-home__section p, .kge-beh__section p, .kge-pris__section p,
  .kge-sym__section p, .kge-om__section p, .kge-kon__section p,
  .kge-home__whoami-text p, .kge-home__lead, .kge-beh__lead, .kge-pris__lead {
    text-align: center;
  }
  .kge-home__section .kge-btn, .kge-beh__section .kge-btn, .kge-pris__section .kge-btn,
  .kge-sym__section .kge-btn, .kge-om__section .kge-btn, .kge-kon__section .kge-btn,
  .kge-home__whoami-text .kge-btn {
    margin-left: auto; margin-right: auto;
  }
  .kge-home__whoami-text, .kge-home__hero-ctas, .kge-beh__hero-ctas, .kge-pris__hero-ctas {
    justify-content: center; align-items: center;
  }
}

/* Mobile centering v3: keep body text left-aligned for readability */
@media (max-width: 900px) {
  .kge-home__section p, .kge-beh__section p, .kge-pris__section p,
  .kge-sym__section p, .kge-om__section p, .kge-kon__section p,
  .kge-home__whoami-text p, .kge-home__lead, .kge-beh__lead, .kge-pris__lead {
    text-align: left;
  }
}

/* Mobile v4: symlp + broader p left-align */
@media (max-width: 900px) {
  .kge-symlp__section p, .kge-symlp__lead, .kge-symlp p,
  .kge-sym p, .kge-om p, .kge-kon p, .kge-beh p, .kge-pris p, .kge-home p {
    text-align: left;
  }
  .kge-symlp__section h1, .kge-symlp__section h2, .kge-symlp__section h3,
  .kge-symlp h1, .kge-symlp h2, .kge-symlp h3,
  .kge-symlp__section .kge-btn, .kge-symlp .kge-btn {
    text-align: center;
  }
  .kge-symlp__section .kge-btn, .kge-symlp .kge-btn { margin-left: auto; margin-right: auto; }
  /* Centrér rolle-tekst under behandler-navn */
  .kge-symlp__meet-role { text-align: center; }
}

/* Final CTA: fix orphan-ord og venstrestil brødtekst på mobil */
@media (max-width: 900px) {
  .kge-beh__final p { text-align: left; }
  .kge-beh__final-sub { text-wrap: balance; }
}
