/* === Grunnoppsett === */
body {
  background-color: #f5f5f5;
  font-family: system-ui, sans-serif;
  font-size: 14px;
  padding: 110px 20px 40px;
  overflow-x: hidden;
}

/* === Navigasjon === */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #333;
  z-index: 1000;
}
ul {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1400px;
}
li {
  margin: 0 4px;
}
li a {
  display: block;
  padding: 14px 16px;
  color: white;
  text-decoration: none;
  text-align: center;
}
li a:hover {
  background-color: #111;
}

/* === Sentrert innhold === */
.content-centered {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}
.content-centered table {
  width: 100%;
  margin-top: 20px;
}
.content-centered p {
  max-width: 700px;
  margin: 0 auto 10px;
}

/* === Sticky søkefelt === */
.sticky-search-wrapper {
  position: sticky;
  top: 48px;
  background-color: #f5f5f5;
  z-index: 999;
  padding: 10px 0;
}
#search {
  width: 100%;
  max-width: 600px;
  height: 40px;
  font-size: 16px;
  border: 1px solid gray;
  padding: 10px;
  border-radius: 5px;
  background-color: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
  display: block;
}

/* === Tabell === */
#table-wrapper {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 1400px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
th,
td {
  text-align: left;
  padding: 10px;
  font-size: 1em;
  vertical-align: top;
}
th {
  background-color: #1aaa9a;
  color: white;
  font-weight: 600;
}
td {
  background-color: #f2f2f2;
}
td div {
  margin-bottom: 2px;
}
tbody tr {
  border-bottom: 2px solid #ccc;
}
tbody td:first-child,
tbody td:nth-child(2) {
  font-weight: 600;
}
.result-item {
  padding: 2px 0;
  border-bottom: 1px solid #ddd;
  min-height: 1.2em;
}
.result-item:last-child {
  border-bottom: none;
}
tr:nth-child(even) td {
  background-color: #f2f2f2;
}
tr:hover td {
  background-color: #08a4947b !important;
}

/* === Knapper (hvis aktuelt senere) === */
button {
  padding: 10px 16px;
  font-size: 15px;
  border: 1px solid grey;
  background: white;
  border-radius: 5px;
  cursor: pointer;
}
button:hover {
  background-color: #e0e0e0;
}

/* === Mobiltilpasning === */
@media (max-width: 768px) {
  nav {
    display: none;
  }
  h1 {
    font-size: 1.8rem;
    line-height: 2.2rem;
  }
  #search {
    top: 0;
    font-size: 14px;
    height: 36px;
  }
  table {
    font-size: 13px;
    min-width: unset;
  }
  th,
  td {
    padding: 8px;
  }
}
