/* =========================
   Reset / Base
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
    font-family: "Source Serif 4", serif;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #111;
    background: #fff;
}


/* =========================
   Layout
========================= */

.container {
  max-width: 900px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.container ul {
  padding-left: 1.25rem;
  margin: 0 0 1rem 0;
}

.container li {
  margin-bottom: 0.25rem;
}

.container p strong:first-child {
  display: inline-block;
  margin-top: 0.75rem;
}

.container h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

/* =========================
   Header
========================= */

header {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid #ddd;
  z-index: 1000;
  padding: 0.75rem 0 0.75rem 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Brand (logo + name) */

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand img {
  display: block;
  height: 48px;
  width: auto;
  flex: 0 0 auto;
  vertical-align: middle;
}

.brand a {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 0.5rem; /* adjust to taste */
}

.brand h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
}

/* =========================
   Navigation
========================= */

nav a {
  margin-left: 1.75rem;
  text-decoration: none;
  color: #111;
  font-size: 1.2rem;
  font-weight: 600;
}

nav a:hover {
  text-decoration: underline;
}


/* =========================
   Sections
========================= */

section {
  padding: 1.5rem 0;
  scroll-margin-top: 90px;
}

#forside {
  padding-top: 3rem;
  padding-bottom: 1.5rem;
}

#ydelser,
#metode,
#partnere,
#kontakt {
  padding-top: 2rem;
  padding-bottom: 1.75rem;
}

#forside h2 {
  font-size: 2.4rem;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.hero-text {
  max-width: 42rem;
  font-size: 1.25rem;
  line-height: 1.75;
}

.hero-text p {
  margin-bottom: 1rem;
}

.hero-text p:last-child {
  margin-bottom: 0;
}

/* Problem section – subtle differentiation */
.problem {
  background-color: #f7f7f5;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  margin-top: 2rem;
  margin-bottom: 2rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

/* Slightly narrower reading width */
.problem .container {
  max-width: 720px;
}

/* Heading: consistent, but with a bit more separation */
.problem h2 {
  margin-top: 0.5rem;
  margin-bottom: 2rem;
}

/* Paragraph rhythm and readability */
.problem p {
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* Emphasis lines (used sparingly in your text) */
.problem p strong {
  font-weight: 600;
}

/* Question block – subtle grouping */
.problem p:nth-of-type(n+4):nth-of-type(-n+9) {
  margin-left: 1rem;
}

/* “Det er her…” lines – give them a bit more weight */
.problem p:nth-of-type(10),
.problem p:nth-of-type(11),
.problem p:nth-of-type(12) {
  margin-top: 1.5rem;
}

/* Slightly more space before key transition */
.problem p strong:first-child {
  display: inline-block;
  margin-top: 1rem;
}

/* =========================
   Footer
========================= */

footer {
  border-top: 1px solid #ddd;
  margin-top: 4rem;
}

footer p {
  font-size: 0.9rem;
  color: #555;
}


/* =========================
   Basic Responsiveness
========================= */

@media (max-width: 700px) {

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    margin-top: 0.5rem;
  }

  nav a {
    margin-left: 0;
    margin-right: 1rem;
  }

  .brand img {
    height: 40px;
  }

}
