body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #121212;
  color: #fff;
}
header {
  background-color: #1e1e1e;
  padding: 15px 30px;
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.logo a {
  color: #ffcc00;
  font-size: 1.5rem;
  text-decoration: none;
}
.links a {
  margin-left: 20px;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}
.links a:hover {
  color: #ffcc00;
}
.hero {
  text-align: center;
  padding: 100px 20px;
  background: linear-gradient(to right, #1e1e1e, #2a2a2a);
}
.hero h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}
.hero p {
  font-size: 1.2rem;
  color: #ccc;
}
.cta {
  display: inline-block;
  margin-top: 20px;
  background-color: #ffcc00;
  color: #121212;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
}
.content {
  padding: 40px 20px;
  max-width: 800px;
  margin: auto;
}
input, textarea, button {
  display: block;
  width: 100%;
  max-width: 500px;
  margin: 10px auto;
  padding: 10px;
  border-radius: 5px;
  border: none;
  font-size: 1rem;
}
textarea {
  height: 120px;
}
button {
  background-color: #ffcc00;
  color: #121212;
  font-weight: bold;
  cursor: pointer;
}
button:hover {
  background-color: #e6b800;
}

.annonsekort-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}
.annonsekort {
  background-color: #1e1e1e;
  border-radius: 10px;
  padding: 15px;
  width: 300px;
  box-shadow: 0 0 10px rgba(255,255,255,0.05);
  text-align: left;
}
.annonsekort img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}
.annonsekort h3 {
  color: #ffcc00;
  margin: 0 0 10px;
}
.annonsekort p {
  font-size: 0.9rem;
  margin: 5px 0;
}
.annonsekort a {
  display: inline-block;
  margin-top: 10px;
  background-color: #ffcc00;
  color: #121212;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
}
.annonsekort a:hover {
  background-color: #e6b800;
}
::selection {
  background-color: #ffcc00; /* Bakgrunnsfarge for markert tekst */
  color: #121212; /* Farge på den markerte teksten */
}
.site-header {
  background-color: #121212;
  text-align: center;
  padding: 20px;
}

.logo img {
  max-height: 55px;
  width: auto;
  object-fit: contain;
}

.forside-bilde {
  width: 100%;
  max-width: 600px;
  height: auto;
  margin: 20px auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(0,0,0,0.2);
}
.paginering {
  text-align: center;
  margin-top: 30px;
}

.paginering a {
  display: inline-block;
  margin: 0 5px;
  padding: 8px 12px;
  color: #ffcc00;
  text-decoration: none;
  font-weight: bold;
  border: 1px solid #444;
  border-radius: 4px;
}

.paginering a.aktiv,
.paginering a:hover {
  background-color: #ffcc00;
  color: #121212;
}
.form-step {
  border: 1px solid #ccc;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  background-color: #f9f9f9;
}

.form-group {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 10px;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
}

button {
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 6px;
  border: none;
  background-color: #007bff;
  color: white;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #0056b3;
}

.form-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.progress {
  font-weight: bold;
  margin-bottom: 15px;
  background-color: #e9ecef;
  padding: 10px;
  border-radius: 6px;
}
/* === Stegvis skjema === */
.form-step {
  background-color: #1e1e1e;
  border: 1px solid #333;
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 40px;
  color: #fff;
  box-shadow: 0 0 12px rgba(0,0,0,0.2);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #444;
  background-color: #121212;
  color: #fff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #aaa;
}

.form-group select {
  background-color: #121212;
}

.form-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

button {
  background-color: #ffcc00;
  color: #121212;
  font-weight: bold;
  padding: 12px 20px;
  font-size: 1rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

button:hover {
  background-color: #e6b800;
}

.progress {
  font-weight: bold;
  margin-bottom: 20px;
  background-color: #2a2a2a;
  padding: 12px;
  border-left: 5px solid #ffcc00;
  border-radius: 6px;
  color: #ffcc00;
}

#valgte-filer-info {
  color: #aaa;
  font-size: 0.9rem;
  margin-top: 8px;
  text-align: center;
}
.form-navigation {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
}

.form-navigation button {
  min-width: 120px;
}
#konstruksjon-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 18, 18, 0.85);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.konstruksjon-popup {
  background-color: #1e1e1e;
  color: #fff;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  max-width: 400px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.konstruksjon-popup h2 {
  margin-top: 0;
  color: #ffcc00;
}

.konstruksjon-popup button {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #ffcc00;
  color: #121212;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
}

.konstruksjon-popup button:hover {
  background-color: #e6b800;
}
@media (max-width: 480px) {
  .konstruksjon-popup {
    width: 90%;
    font-size: 0.95rem;
    padding: 20px;
  }

  .konstruksjon-popup button {
    width: 100%;
  }
}
/* === Mobilvennlig navigasjon === */
.menu-toggle {
  display: none;
}

/* Små skjermer */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #ffcc00;
    margin-left: auto;
    cursor: pointer;
  }

  .links {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #1e1e1e;
    padding: 10px 0;
    text-align: center;
  }

  .links a {
    margin: 10px 0;
    padding: 10px 20px;
  }

  .links.show {
    display: flex;
  }

  nav {
    flex-direction: column;
    align-items: flex-start;
  }
}
.grayscale {
  filter: grayscale(100%);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.grayscale:hover {
  filter: none;
  opacity: 1;
}
.solgt-banner {
  position: absolute;
  top: 15px;
  left: -20px;
  background-color: #ffcc00;
  color: #121212;
  font-weight: bold;
  padding: 4px 25px;
  transform: rotate(-45deg);
  font-size: 0.75rem;
  box-shadow: 0 0 6px rgba(0,0,0,0.3);
  z-index: 2;
  pointer-events: none;
  white-space: nowrap;
}
.annonsekort {
  position: relative; /* viktig for at hjørnebånd skal fungere */
}
.fylkefilter-skjema {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 30px;
  background-color: #1e1e1e;
  padding: 15px 20px;
  border-radius: 8px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.fylkefilter-skjema label {
  font-weight: bold;
  color: #ffcc00;
}

.fylkefilter-skjema select {
  padding: 10px;
  font-size: 1rem;
  border-radius: 6px;
  background-color: #121212;
  color: #fff;
  border: 1px solid #444;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='white' viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'><polygon points='0,0 140,0 70,80'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
}
<style>
#popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.popup-boks {
  background-color: #1e1e1e;
  padding: 25px;
  border-radius: 10px;
  max-width: 400px;
  color: #fff;
  text-align: center;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}
</style>
/* === Popup bekreftelse solgt === */
#popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.popup-boks {
  background-color: #1e1e1e;
  padding: 25px;
  border-radius: 10px;
  max-width: 400px;
  color: #fff;
  text-align: center;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* === Rediger skjema stil === */
.rediger-skjema {
  background-color: #1e1e1e;
  padding: 25px;
  border-radius: 12px;
  max-width: 700px;
  margin: auto;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  color: #fff;
}
.rediger-skjema .form-element {
  margin-bottom: 20px;
}
.rediger-skjema label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}
.rediger-skjema input,
.rediger-skjema textarea,
.rediger-skjema select {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #444;
  background-color: #121212;
  color: #fff;
}
.rediger-skjema textarea {
  height: 120px;
}
.eksisterende-bilde img {
  max-width: 200px;
  border-radius: 6px;
  margin-top: 8px;
}
.form-actions {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.knapp-liten {
  background-color: #ffcc00;
  color: #121212;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
}
.knapp-liten:hover {
  background-color: #e6b800;
}
.ekstra-bilder {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
  justify-content: center;
}
.bilde-item {
  position: relative;
}
.bilde-item img {
  width: 120px;
  border-radius: 5px;
}
.bilde-item a {
  position: absolute;
  top: 2px;
  right: 2px;
  background: red;
  color: white;
  border-radius: 50%;
  padding: 2px 7px;
  text-decoration: none;
  font-size: 1rem;
}
.lagret-melding {
  background-color: #2a2a2a;
  padding: 12px 20px;
  border-left: 5px solid #28a745;
  margin-bottom: 20px;
  border-radius: 6px;
  font-weight: bold;
  color: #90ee90;
}
.systemmelding {
  background-color: #2a2a2a;
  border-left: 4px solid #ffcc00;
  padding: 15px;
  border-radius: 8px;
  color: #fff;
  margin-bottom: 20px;
}
