/* ===============================
   Reset & Base
=============================== */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
  font-family: "Helvetica Neue", sans-serif;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: Arial, sans-serif;
  /*background-color: #fff;*/ /* fallback mobil */
  background: url("img/elbil-oplading.jpg");
  overflow-x: hidden;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}
a {
  color: #fff;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ===============================
   Knapper
=============================== */
.btn {
  display: inline-block;
  padding: 0.6em 1.2em;
  background-color: #55ca1c;
  color: white;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.btn:hover {
  background-color: #429012;
}
.knap-deaktiveret {
  background-color: #a0c4a2;
  color: #f0f0f0;
  padding: 0.5rem 1.2rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  opacity: 0.7;
  cursor: not-allowed;
}
.knap-mellemrum {
  margin: 0.5rem;
}

/* ===============================
   Adsense og banners
=============================== */
.adsense-banner {
  margin: 2rem auto;
  max-width: 100%;
  text-align: center;
}
.test-ad, .banner {
  background-color: #e0e0e0;
  color: #555;
  text-align: center;
  border: 1px solid #ccc;
  padding: 20px;
  border-radius: 8px;
  font-weight: bold;
}
.ad-horizontal {
  max-width: 1000px;
  margin: 20px auto;
}
.banner-desktop { display: block; }
.banner-mobile { display: none; }
@media (max-width: 768px) {
  .banner-desktop { display: none; }
  .banner-mobile { display: block; }
}
.ad-container:empty,
.ad-container ins.adsbygoogle:empty {
  display: none !important;
}
.ad-container {
  margin: 2rem 0;
  text-align: center;
  min-height: 0;
  overflow: hidden;
}
.ad-container ins.adsbygoogle {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: 100% !important;
}

/* ===============================
   Container
=============================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===============================
   Top-bar
=============================== */
.top-bar {
  background-color: #111;
  padding: 0.5rem 2rem;
  text-align: right;
}
.top-bar .landevaelger {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  font-size: 1rem;
  border: none;
  border-radius: 0.5rem;
  background-color: #fff;
  padding: 0.6rem 2.5rem 0.6rem 0.6rem;
  background-image: url('data:image/svg+xml;utf8,<svg fill="black" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 1rem;
  color: #000;
  min-width: 120px;
}

/* ===============================
   Hero sektion
=============================== */
.hero {
  position: relative;
  width: 100%;
  height: 450px; /* desktop-højde */
  display: flex;
  align-items: flex-end; /* tekst nederst */
  padding-bottom: 3rem;
  color: white;
  text-shadow: 0 0 8px rgba(0,0,0,0.7);
  border-bottom: 1px solid rgb(85,202,28); /* #55ca1c */
  background: none; /* dropper hero-billedet, bruger body-baggrund */
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(85,202,28,0.1); /* grøn overlay */
  z-index: 1;
}

.hero-text {
  position: relative; /* over overlay */
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}



.hero .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem; /* lidt luft i siderne */
  width: 100%;
}

.hero-text {
  position: relative;
  z-index: 2;
  padding: 2rem 0; /* fjern horisontal padding, følger container */
}

.hero-text h1 {
  font-size: 3.5rem;
  margin: 0 0 1rem;
  color: rgb(85,202,28);
}

.hero-text p {
  font-size: 1.2rem;
  max-width: 400px;
  margin-bottom: 1.5rem;
}

.btn-primary {
  background-color: #b3ff00;
  color: #000;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.btn-primary:hover {
  background-color: #95cc00;
}

/* ===============================
   About sektion
=============================== */
.about-outer {
  width: 100vw;
  background-color: #fff;
  color: #000;
  padding: 40px;
  box-sizing: border-box;
  margin-bottom: 250px;
  border-top: 1px solid #55ca1c;
  border-bottom: 1px solid #55ca1c;
}
.about {
  background-color: #fff;
  max-width: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin: 0 auto;
  padding: 60px 20px;
  box-sizing: border-box;
}
.about-text {
  flex: 1;
}
.about-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
.about-text p {
  font-size: 1.1rem;
  line-height: 1.6;
}
.about-image {
  flex: 1;
  text-align: center;
}
.about-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
}

/* ===============================
   Features med trin og cirkelbillede
=============================== */
.features-image-with-steps {
  padding: 4rem 0;
  background-color: #f3fdf0;
  border-top: 1px solid #55ca1c;
  border-bottom: 1px solid #55ca1c;
}
.features-wrapper {
  display: flex;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
  gap: 2rem;
  align-items: flex-start;
  justify-content: flex-start;
}
.features-image {
  flex: 0 0 300px;
  height: 300px;
}
.features-image img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.features-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.features-text h2,
.features-text p {
  margin-bottom: 1.5rem;
  color: #000;
}
.features-text h2 {
  font-size: 2rem;
  font-weight: bold;
}
.features-steps {
  list-style: none;
  counter-reset: step-counter;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-left: 0;
}
.features-steps li {
  position: relative;
  padding-left: 80px;
}
.features-steps li::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #55ca1c;
  color: #fff;
  font-weight: bold;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.features-steps li h3 {
  margin: 0 0 0.3rem 0;
  font-size: 1.25rem;
  font-weight: bold;
  color: #000;
}
.features-steps li p {
  margin: 0;
  font-size: 1rem;
  color: #333;
}

/* ===============================
   FAQ sektion
=============================== */
.faq-section {
  width: 100vw;
  background-color: #d0f2cc;
  color: #000;
  padding: 40px 0;
  border-top: 1px solid #55ca1c;
  border-bottom: 1px solid #55ca1c;
}
.faq-section .faq-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: left;
}
.faq-item {
  border-bottom: 1px solid #55ca1c;
  margin-bottom: 20px;
}
.faq-question {
  background: none;
  border: none;
  font-size: 1.1rem;
  font-weight: bold;
  padding: 0.8rem 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.faq-icon {
  color: #4CAF50;
  font-size: 1.8rem;
  transition: transform 0.25s ease, color 0.2s ease;
}
.faq-question:hover .faq-icon {
  color: #43a047;
}
.faq-item.active .faq-icon {
  transform: rotate(90deg);
}
.faq-answer {
  height: 0;
  overflow: hidden;
  transition: height 0.3s ease;
}
.faq-answer.open {
  height: auto;
  overflow: visible;
}
.toggle-info-box {
  height: 0;
  overflow: hidden;
  transition: height 0.3s ease;
}
.faq-points {
  counter-reset: faq-counter;
  padding-left: 1.5em;
  margin: 0;
}
.faq-points li {
  margin-bottom: 1.5em;
  line-height: 1.5;
  position: relative;
  list-style: decimal;
}
.faq-points li strong {
  display: block;
  margin-bottom: 0.3em;
  font-size: 1.05em;
}

/* ===============================
   Beregner sektion
=============================== */
.beregner-outer {
  background-color: #55ca1c;
  width: 100vw;
  padding: 40px 20px;
  box-sizing: border-box;
}
.beregner-container {
  max-width: 900px;
  margin: 0 auto;
  color: #fff;
  font-family: Arial, sans-serif;
}
.beregner-overskrift {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.3;
}
@media (min-width: 768px) {
  .beregner-overskrift { font-size: 28px; }
}
form.beregn-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}
.form-row > .form-group {
  flex: 1 1 0;
  min-width: 180px;
  display: flex;
  flex-direction: column;
}
label {
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 16px;
  color: #fff;
}
.info-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  border-radius: 50%;
  background-color: #fff;
  color: rgb(85,202,28);
  font-size: 12px;
  font-weight: bold;
  margin-left: 6px;
}

input[type="number"],
select {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
  background: #fff;
  color: #111;
  width: 100%;
  box-sizing: border-box;
  appearance: none;
  transition: border-color 0.3s ease;
}
select {
  background-image: url("data:image/svg+xml,%3csvg fill='none' stroke='%23000' stroke-width='2' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3e%3c/path%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
  padding-right: 40px;
}
input[type="number"]:focus,
select:focus {
  border-color: #004d00;
  outline: none;
}
.beregn-knap {
  background: #fff;
  color: #55ca1c;
  border: 2px solid #fff;
  font-weight: 600;
  padding: 12px 26px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  height: 48px;
  align-self: flex-start;
  min-width: 150px;
  white-space: nowrap;
}
.beregn-knap:hover {
  background: #4cb119;
  border-color: 2px #fff;
  color: #fff;
}
#resultat {
  margin-top: 20px;
  font-size: 16px;
  min-height: 50px;
  color: #fff;
}
.info-text {
  font-size: smaller;
  color: #e0e0e0;
  margin-top: 5px;
  max-width: 300px;
}
#ansvarsfraskrivelse {
  color: #fff;
  font-size: 0.85rem;
  margin-top: 1rem;
  max-width: 900px;
  line-height: 1.4;
  opacity: 0.85;
}

/* ===============================
   Cookie-banner
=============================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: #333;
  color: white;
  padding: 15px;
  text-align: center;
  font-size: 14px;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.cookie-banner p {
  margin: 0;
}
.cookie-banner a {
  color: #55ca1c;
  text-decoration: underline;
}
.cookie-banner button {
  background: #55ca1c;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}
.cookie-banner button:hover { background: #429012; }
.cookie-banner .btn-secondary {
  background: #555;
}
.cookie-banner .btn-secondary:hover {
  background: #444;
}

/* ===============================
   Footer
=============================== */
.footer {
  background-color: #111;
  color: #bbb;
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.9rem;
  border-top: 1px solid #55ca1c;
}

/* ===============================
   Mobil & Responsive
=============================== */
@media (max-width: 768px) {

  body {
    background: none;
    margin: 0;
    padding: 0;
  }

  /* Hero */
.hero {
  height: 400px; /* lavere hero på mobil */
  padding-bottom: 2rem;
  padding-left: 20px;;
  background-image: url("img/hero.jpg");
  overflow-x: hidden;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  }

  .hero-text {
    padding-left: 15px;  /* venstrekant med resten af indhold */
    padding-right: 15px;
  }

  .hero-text h1 {
    font-size: 2.6rem;
    line-height: 1.2;
    word-break: break-word;
  }

  .hero-text p {
    font-size: 0.95rem;
  }

  /* About */
  .about-outer {
    margin-top: 40px;
    margin-bottom: 1px;
    padding: 20px;
    border:  none;
  }
  
  .about {
    flex-direction: column;       /* tekst først */
    text-align: left;
    padding: 40px 20px;
  }

  .about-text {
    order: 0;
  }

  .about-image {
    order: 1;
    width: 100%;
    height: 200px;               /* ønsket højde på mobil */
    overflow: hidden;             /* beskærer billedet */
    margin: 20px 0;
    border-radius: 12px;
  }

  .about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;            /* skalerer billedet og beskærer proportionelt */
    object-position: center;      /* kan ændres til top eller bottom hvis ønskes */
    display: block;
  }

  .about .btn {
    order: 2;
    margin-top: 15px;
    align-self: flex-start;
  }

  .about-text h2 { font-size: 1.6rem; }
  .about-text p { font-size: 1rem; }

  /* Features */
  .features-image-with-steps{
    border: none;
    margin-bottom: 0px;
    }

  .features-wrapper {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 1rem;
    padding-right: 1rem;
    border: none;
  }
  .features-image { 
    display: none; 
  }
  .features-steps li { 
    padding-left: 60px; 
  }
  .features-steps li::before { 
    left: 0; 
    transform: translateX(10px); 
    margin-right: 1rem; }

  /* FAQ */
  .faq-section .faq-container { 
    padding: 0 1rem; 
 border: none;
} 
  /* Beregner */
  .form-row { flex-direction: column; }
  .beregn-knap { width: 100%; align-self: stretch; }

  /* Footer padding */
  .footer { padding: 2rem 1rem; }

   .features-wrapper {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 1.5rem;   /* lidt luft til venstre */
    padding-right: 1.5rem;  /* lidt luft til højre */
    gap: 2rem;               /* afstand mellem feature-tekstblokke */
  }

  .features-image {
    display: none; /* skjul cirkelbilledet på mobil */
  }

  .features-text {
    width: 100%;
  }

  /* Luft mellem overskrift/tekst og punktliste */
  .features-text h2,
  .features-text p {
    margin-bottom: 1rem;
  }

  .features-steps {
    margin-top: 1.5rem;      /* ekstra luft over selve punktlisten */
    padding-left: 0;          /* fjern ekstra indrykning */
  }

  .features-steps li {
    margin-bottom: 1.5rem;   /* luft mellem punkterne */
    padding-left: 75px;       /* plads til nummercirkel */
    text-align: center;
  }

  .features-steps li::before {
    left: 0;
    transform: none;
  }
}

