:root {
  --green: #0a6847;
  --yellow: #f3ca52;
  --input-bg-color: #fff;
  --input-text-color: #2d2d2d;
  --text: #303030;
  --light: hsl(0, 0%, 100%);
  --footer-text: #ffffff;
  --footer-hover: #f1c40f;
  --gradient: #0b6344;
}

* {
  font-family: 'Roboto', sans-serif;
  text-decoration: none;
  outline: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*::selection {
  background: var(--green);
  color: #fff;
}

html {
  font-size: 62%;
  overflow-x: hidden;
}

header {
  width: 95%;
  background: rgba(255, 255, 255, 0.8);
  position: fixed;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  z-index: 1000;
  transition: 0.2s;
}
.header-active {
  top: 0;
  width: 100%;
  border-radius: 0;
  box-shadow: 0 0.1rem 0.3rem rgba(0, 0, 0, 0.3);
}

header .navbar ul {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}
header .navbar li {
  margin: 0 1rem;
}
header .navbar li a {
  font-size: 2rem;
  color: var(--green);
  transition: 2s;
}

header .navbar li a:hover,
header .navbar li .active {
  color: var(--yellow);
}

header .logo {
  font-size: 2.5rem;
  color: var(--yellow);
}

header .logo i {
  color: var(--green);
  padding: 0 0.2rem;
}
header .fa-bars {
  font-size: 3rem;
  color: var(--green);
  cursor: pointer;
  display: none;
  transition: 0.2s;
}

header .fa-times {
  transform: rotate(180deg);
  color: var(--yellow);
}

/* suggestions */
/* =============================================== */
#suggestions {
  width: 85vh;
  font-size: 1.6rem;
  font-weight: 400;
  display: none;
  position: absolute;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 0 0.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.dropdown-item {
  background: #fff;
  padding: 2rem 2.2rem;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.2s;
}

.dropdown-item:hover {
  background-color: #f0f0f0;
}

/*table*/
/* =============================================== */

#resultTable {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  border-radius: 0.5rem;
  overflow: hidden;
  font-size: 1.6rem;
}
th,
td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #ddd;
  color: #171717;
}
td {
  white-space: nowrap;
}

thead {
  color: rgb(0, 0, 0);
  background-color: #ebebeb;
}

tbody tr:hover {
  background-color: #f0f0f0;
}

tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

tbody tr:nth-child(odd) {
  background-color: #ffffff;
}

th {
  width: 100%;
  font-weight: 600;
  letter-spacing: 1px;
}

/*Home*/
/* =============================================== */

.home {
  min-height: 110vh;
  background: linear-gradient(rgb(15, 80, 6, 0.6), rgba(255, 234, 0, 0.7)),
    url(../img/solar.jpg) no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0;
  overflow: hidden;
  position: relative;
}

.home .content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-flow: column;
  padding-top: 14rem;
  padding-bottom: 8rem;
  text-align: center;
}
.home .contentMap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-flow: column;
  padding: 2rem;
  text-align: center;
}

.home .content h1 {
  font-size: 5.5rem;
  color: #fff;
  padding: 0 1rem;
  text-shadow: 0 0.5rem 0.7rem rgba(0, 0, 0, 0.2);
}

.info-box {
  width: 100%;
  position: relative;
  text-align: left;
  padding: 1rem;
  background-color: #eeeee9;
  border-left: 4px solid var(--green);
  border-radius: 4px;
  display: flex;
  vertical-align: middle;
  gap: 0.5rem;
}
.info-box p i {
  font-size: 1.6em;
  font-weight: 400;
  color: #1c1c1c;
  margin-top: auto;
  margin-bottom: auto;
}
.info-box p {
  text-align: left;
  display: inline-flex;
  width: 100%;
  padding: 0.5rem;
}

#lightbulb {
  color: #ffd900;
  margin-right: 1.5%;
  font-size: 3.75rem;
  float: left;
}
.home .content p {
  font-size: 2.5rem;
  color: #f6f6f6;
  padding: 1rem 20rem;
}

.home .box-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
}
.home .box-container .box {
  width: 90vh;
  background: #fbfbfb;
  text-align: center;
  border-radius: 1rem;
  box-shadow: 0 0.3rem 0.5rem rgba(0, 0, 0, 0.5);
  margin: 1.7rem;
  cursor: pointer;
  margin-bottom: 4%;
}

#mapLeft {
  height: 60vh;
  width: 85vh;
}

.home::before {
  content: '';
  position: absolute;
  bottom: -25%;
  left: 50%;
  transform: translate(-50%);
  backdrop-filter: blur(10px);
  border-top: 70vh solid rgba(255, 255, 255, 0.85);
  width: 120%;
  border-radius: 50%;
  z-index: -1;
}
/* entfernt den halben Kreis*/
.home.hide-before::before {
  display: none;
}

.fa-magnifying-glass.hide-before::before {
  display: none;
}

h2 {
  font-size: 3rem;
  color: var(--green);
  text-align: center;
  padding: 0 1rem;
  padding-top: 1.5rem;
  letter-spacing: 0.15rem;
  font-weight: 500;
}

.title {
  padding: 0 1.5rem;
  font-size: 1.75rem;
  text-align: center;
  font-weight: 400;
  color: #1c1c1c;
  margin-bottom: 1.7%;
}

#show,
#show2,
#show3,
#show4,
#show5,
#resultTable {
  display: none;
}

/* form */
/* =============================================== */

.form__field {
  position: relative;
  width: 85vh;
  font-weight: 500;
  font-size: 1.9rem;
  background: var(--input-bg-color);
  color: var(--input-text-color);
  box-shadow: 0 6px 10px 0 rgba(0, 0, 0, 0.2);
  border: 0;
  outline: 0;
  padding: 22px 18px;
}

.search-container {
  position: relative;
  width: 100%;
}

.search-container i {
  position: absolute;
  right: 2%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: rgb(222, 222, 222);
  cursor: pointer;
}

/* Selecter */
/* =============================================== */
.stoer-select {
  padding: 1rem;
  font-size: 1.6rem;
  color: var(--input-text-color);
  background-color: var(--input-bg-color);
  border: 2px solid var(--green);
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  white-space: nowrap;
}

.stoer-select option {
  width: fit-content;
  font-size: 1.6rem;
  color: var(--input-text-color);
  background-color: var(--input-bg-color);
  padding: 1rem;
}

.stoer-select option:disabled {
  color: #aaa;
  font-style: italic;
}

.stoer-select option:hover {
  background-color: #f0f0f0;
}
/* Button */
/* =============================================== */
.form-container {
  width: 100%;
  gap: 1rem;
}
.form-group {
  display: flex;
  margin-top: 2%;
  margin-bottom: 2%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex: 1;
}
#show2 {
  flex-wrap: wrap;
}

.stoer-button {
  min-width: auto;
  white-space: nowrap;
  justify-content: center;
  align-items: center; /*das ist eig schon gererbt*/
  height: 10%;
  padding: 1.2rem;
  font-size: 1.4rem;
  color: var(--light);
  background-color: var(--green);
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.stoer-button:hover {
  background-color: var(--yellow);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.stoer-button:active {
  background-color: var(--green);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

/* Styling für das Eingabefeld */
.stoer-input {
  height: 10%;
  padding: 1rem;
  font-size: 1.6rem;
  border: 2px solid var(--green);
  border-radius: 0.5rem;
  background-color: var(--input-bg-color);
  color: var(--input-text-color);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.wide {
  gap: 1rem;
}
.stoer-button,
.stoer-input,
.form-group,
.stoer-select {
  display: flex;
  flex: 1;
  min-width: 0;
}

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

.footer {
  background: linear-gradient(to top, var(--green), var(--gradient));
  color: var(--footer-text);
  text-align: center;
  padding: 2.5rem 0;
  font-size: 1.7rem;
  width: 100%;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  color: var(--footer-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--footer-hover);
}
/* Impressum*/
/* =============================================== */
.impressum {
  position: relative;
  min-height: 100vh;
}
a {
  color: var(--green);
}
a:hover {
  color: #032b1d;
}
.impressum .content h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-flow: column;
  padding-top: 8rem;
  text-align: center;
}
/*auskommentiert*/
body > div.impressum > div > div > p {
  color: white;
  display: flex;
  align-items: left;
  justify-content: center;
  padding-left: 20%;
  text-align: left;
  flex-flow: column;
  font-size: 2.5rem;
}
.impressum .content {
  background-color: var(--yellow);
}
.gradient-banner h1 {
  width: 100%;
  font-size: 6.5rem;
  color: white;
  padding: 0 1rem;
  text-shadow: 0 0.5rem 0.7rem rgba(0, 0, 0, 0.2);
}
.gradient-banner {
  text-align: center;
  height: 25rem;
  background: url('/img/wave.svg') no-repeat bottom;
  background-size: 100%;
}
.impressum h2 {
  align-items: left;
  justify-content: center;
  text-align: left;
  padding-left: 10%;
  font-weight: 550;
  letter-spacing: normal;
  font-size: 3rem;
}

.impressum p {
  padding: 1%;
  font-size: 2.5rem;
  color: var(--text);
  padding-right: 8%;
  padding-left: 10%;
  hyphens: auto;
}
body > div.impressum > p:nth-child(11) {
  margin-bottom: 3%;
}

@media (max-width: 1500px) {
  html {
    font-size: 55%;
  }
  #lightbulb {
    font-size: 3.5rem;
  }
  .stoer-input,
  .stoer-select {
    min-width: auto;
  }
  .stoer-button,
  .stoer-input,
  .form-group,
  .stoer-select {
    flex-wrap: wrap;
    flex: 1;
  }
  .home .box-container {
    flex-direction: column;
    align-items: center;
  }
  .impressum h2 {
    text-align: center;
    padding: 0;
    padding-top: 3%;
  }
  .impressum p {
    padding: 3%;
  }
}

@media (max-width: 768px) {
  .stoer-button,
  .stoer-input,
  .form-group,
  .stoer-select {
    flex: 1;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
  }

  html {
    font-size: 50%;
  }

  header .fa-bars {
    display: block;
  }

  header .navbar {
    position: fixed;
    top: -100rem;
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 1rem;
    opacity: 0;
    transition: 2rem 0;
  }

  header .navbar ul {
    flex-flow: column;
    padding: 2rem 0;
  }

  header .navbar ul li {
    margin: 1rem 0;
    width: 100%;
    text-align: center;
  }

  header .navbar ul li {
    font-size: 3rem;
    display: block;
  }

  header .nav-toggle {
    top: 5.5rem;
    opacity: 1;
  }

  .home .content p {
    padding: 1.5rem 2rem;
  }

  .home::before {
    display: none;
  }

  #mapLeft {
    height: 35vh;
    width: 100%;
  }

  .formLength,
  .form__field {
    width: 100%;
    position: relative;
  }
  #suggestions {
    width: 100%;
  }

  #resultTable {
    font-size: 1.5rem;
    overflow-x: auto;
  }
  .home .content h1 {
    font-size: 4rem;
  }
  .home .content p {
    font-size: 2rem;
  }

  th,
  td {
    padding: 0.4rem;
  }
  .home .box-container .box {
    width: 94%;
    margin: 1rem;
  }
  .home .box-container {
    flex-direction: column;
    align-items: center;
  }
}
