/*
--------------------------------------------------------------
# General
--------------------------------------------------------------
*/

:root {
  --potsdam-blue: #003958;
  --dark-blue-grey: #668799;
  --mid-blue-grey: #a3b7c2;
  --light-blue-grey: #c2cfd6;
  --background: #f2f2f3;
  --white: #fff;
  --light-green: #a7f0d2;
  --light-blue: #98d9ff;
  --light-red: #f0a8c2;
  --smart-city-gradient: linear-gradient(
    315deg,
    var(--light-green) 0%,
    var(--light-blue) 50%,
    var(--light-red) 100%
  );
  --blue-gradient: linear-gradient(
    300deg,
    var(--light-green) 0%,
    var(--light-blue) 0%
  );
  --dark-grey: rgb(255 255 255 / 20%);
}

body {
  font-family: "Open Sans", sans-serif;
  color: var(--potsdam-blue);
  background-color: var(--background);
}

a {
  text-decoration: none;
  color: var(--white);
}

a:hover {
  color: var(--light-blue-grey);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: Raleway, sans-serif;
}

#main {
  margin-top: 90px;
}

p {
  text-align: left;
}

li {
  text-align: left;
}

/* --------------------------------------------------------------
# Back to top button
-------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 998;
  background: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50px;
  transition: all 0.4s;
}

.back-to-top i {
  font-size: 24px;
  color: var(--potsdam-blue);
  line-height: 0;
}

.back-to-top:hover {
  background: var(--light-green);
  color: var(--potsdam-blue);
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

/* --------------------------------------------------------------
# Disable aos animation delay on mobile devices
-------------------------------------------------------------- */
@media screen and (width <= 768px) {
  [data-aos-delay] {
    transition-delay: 0s !important;
  }
}

/* --------------------------------------------------------------
# Navigation Menu
-------------------------------------------------------------- */

/**
* Desktop Navigation 
*/
.navbar {
  padding: 0;
}

.navbar ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
}

.navbar li {
  position: relative;
}

.navbar a,
.navbar a:focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  margin-left: 10px;
  font-family: Raleway, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  transition: 0.3s;
}

.navbar a i,
.navbar a:focus i {
  font-size: 12px;
  line-height: 0;
  margin-left: 5px;
}

.navbar a:hover,
.navbar .active,
.navbar .active:focus,
.navbar li:hover > a {
  background: var(--dark-grey);
  color: var(--white);
}

.navbar .dropdown ul {
  display: block;
  position: absolute;
  left: 10px;
  top: calc(100% + 30px);
  margin: 0;
  padding: 10px 0;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  background: var(--white);
  box-shadow: 0 0 30px rgb(127 137 161 / 25%);
  transition: 0.3s;
}

.navbar .dropdown ul li {
  min-width: 200px;
}

.navbar .dropdown ul a {
  padding: 10px 20px;
  font-size: 15px;
  text-transform: none;
  font-weight: 600;
  color: var(--potsdam-blue);
}

.navbar .dropdown ul a i {
  font-size: 12px;
}

.navbar .dropdown ul a:hover,
.navbar .dropdown ul .active:hover,
.navbar .dropdown ul .active,
.navbar .dropdown ul li:hover > a {
  color: var(--light-blue);
  background-color: transparent;
}

.navbar .dropdown .dropdown-item:active {
  background-color: transparent;
}
.navbar .dropdown:hover > ul {
  opacity: 1;
  top: 100%;
  visibility: visible;
}

.navbar .dropdown .dropdown ul {
  top: 0;
  left: calc(100% - 30px);
  visibility: hidden;
}

.navbar .dropdown .dropdown:hover > ul {
  opacity: 1;
  top: 0;
  left: 100%;
  visibility: visible;
}

@media (width <= 1366px) {
  .navbar .dropdown .dropdown ul {
    left: -90%;
  }

  .navbar .dropdown .dropdown:hover > ul {
    left: -100%;
  }
}

/**
* Mobile Navigation 
*/
.mobile-nav-toggle {
  color: var(--white);
  font-size: 28px;
  cursor: pointer;
  display: none;
  line-height: 0;
  transition: 0.3s;
}

@media (width <= 991px) {
  .mobile-nav-toggle {
    display: block;
  }

  .navbar ul {
    display: none;
  }

  .navbar a:hover,
  .navbar .active,
  .navbar .active:focus,
  .navbar li:hover > a {
    background: var(--dark-grey);
    color: var(--light-blue);
  }
}

.navbar-mobile {
  position: fixed;
  overflow: hidden;
  inset: 0;
  background: var(--potsdam-blue);
  transition: 0.3s;
}

.navbar-mobile .mobile-nav-toggle {
  position: absolute;
  top: 15px;
  right: 15px;
}

.navbar-mobile ul {
  display: block;
  position: absolute;
  inset: 55px 15px 15px;
  padding: 10px 0;
  background-color: var(--white);
  overflow-y: auto;
  transition: 0.3s;
}

.navbar-mobile a,
.navbar-mobile a:focus {
  padding: 10px 20px;
  font-size: 15px;
  color: var(--potsdam-blue);
}

.navbar-mobile a:hover,
.navbar-mobile .active,
.navbar-mobile li:hover > a {
  color: var(--light-blue);
}

.navbar-mobile .dropdown ul {
  position: static;
  display: none;
  margin: 10px 20px;
  padding: 10px 0;
  z-index: 99;
  opacity: 1;
  visibility: visible;
  background: var(--white);
  box-shadow: 0 0 30px rgb(127 137 161 / 25%);
}

.navbar-mobile .dropdown ul li {
  min-width: 200px;
}

.navbar-mobile .dropdown ul a {
  padding: 10px 20px;
}

.navbar-mobile .dropdown ul a i {
  font-size: 12px;
}

.navbar-mobile .dropdown ul a:hover,
.navbar-mobile .dropdown ul .active:hover,
.navbar-mobile .dropdown ul li:hover > a {
  color: var(--light-blue);
}

.navbar-mobile .dropdown > .dropdown-active {
  display: block;
}

/* --------------------------------------------------------------
# Header
-------------------------------------------------------------- */
#header {
  z-index: 997;
  transition: all 0.3s;
  padding: 24px 0;
  background: var(--potsdam-blue);
  background-color: var(--potsdam-blue);
}

#header.header-transparent {
  background: transparent;
}

#header .logo h1 {
  font-size: 24px;
  margin: 0;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 1px;
  font-family: Poppins, sans-serif;
  text-transform: uppercase;
}

#header .logo h1 a,
#header .logo h1 a:hover {
  color: var(--white);
  text-decoration: none;
}

#header .logo img {
  padding: 0;
  margin: 0;
  max-height: 40px;
}

/* --------------------------------------------------------------
# Hero Section
-------------------------------------------------------------- */
#hero {
  width: 100%;
  height: 36vh;
  background-size: cover;
  position: relative;
  margin-bottom: -90px;
  margin-top: 90px;
}

#hero .hero-container {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

#animation-container {
  width: 100%;
  height: 100%;

  /* Set the height to fit in a header, adjust as needed */
  position: absolute;
  top: 0;
  left: 0;
  z-index: -100;
  background-color: var(--white);

  /* Optional background color for the container */
  overflow: hidden;

  /* Hide anything going out of bounds */
}

#hero canvas {
  width: 100%;
  height: 100%;
}

#hero h2 {
  margin: 0 0 10px;
  font-size: 64px;
  font-weight: 700;
  line-height: 56px;
  text-transform: uppercase;
  color: var(--potsdam-blue);
  text-shadow: -1px 0 2px #2f4d5a;
}

#hero .btn-get-started {
  font-size: 36px;
  display: inline-block;
  padding: 4px 0;
  border-radius: 50px;
  transition: 0.3s ease-in-out;
  margin: 10px;
  width: 64px;
  height: 64px;
  text-align: center;
  border: 2px solid var(--potsdam-blue);
  color: var(--potsdam-blue);
}

#hero .btn-get-started:hover {
  padding-top: 8px;
  background: rgb(255 255 255 / 15%);
}

@media (width >= 1024px) {
  #hero {
    background-attachment: fixed;
  }
}

@media (width <= 900px) {
  #hero h1 {
    font-size: 42px;
    line-height: 42px;
  }
}

@media (width <= 768px) {
  #hero h1 {
    font-size: 28px;
    line-height: 36px;
  }

  #hero h2 {
    font-size: 18px;
    line-height: 24px;
    margin-bottom: 30px;
  }
}

/* --------------------------------------------------------------
# Sections General
-------------------------------------------------------------- */
section {
  padding: 60px 0;
  overflow: hidden;
  scroll-margin-top: 90px;
}

.section-bg {
  background-color: var(--background);
}

.section-title {
  text-align: center;
  padding-bottom: 30px;
}

.section-title h2 {
  font-size: 48px;
  font-weight: 300;
  line-height: 56px;
  font-weight: bold;
  position: relative;
  margin-bottom: 50px;
  color: var(--potsdam-blue);
  z-index: 2;
  padding-bottom: 30px;
}

.section-title h3 {
  font-size: 32px;
  font-weight: bold;
  position: relative;
  margin-bottom: 30px;
  color: var(--potsdam-blue);
  z-index: 2;
}

.section-title h3::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 122px;
  height: 66px;
  background: url("../img/section-title-bg.png") no-repeat;
  z-index: -1;
}

/* --------------------------------------------------------------
# Services
-------------------------------------------------------------- */
.services .icon-box {
  padding: 30px;
  position: relative;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 0 29px 0 rgb(68 88 144 / 12%);
  transition: all 0.3s ease-in-out;
  border-radius: 8px;
  z-index: 1;
}

.services .icon-box::before {
  content: "";
  position: absolute;
  background: white;
  inset: 100% 0 0;
  transition: all 0.3s;
  z-index: -1;
}

.services .icon-box:hover::before {
  background: var(--potsdam-blue);
  top: 0;
  border-radius: 0;
}

.services .icon {
  margin-bottom: 15px;
  fill: var(--potsdam-blue);
}

.services .icon i {
  font-size: 48px;
  line-height: 1;
  color: var(--potsdam-blue);
  transition: all 0.3s ease-in-out;
}

.services .icon svg {
  font-size: 48px;
  height: 64px;
  color: var(--potsdam-blue);
  transition: all 0.3s ease-in-out;
}

.services .icon-big svg {
  height: 128px;
}

.services .icon-counter {
  font-size: 64px;
  font-weight: normal;
  color: var(--potsdam-blue);
  transition: all 0.3s ease-in-out;
}

.services .title {
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 18px;
  color: var(--potsdam-blue);
}

.services .description {
  font-size: 15px;
  line-height: 28px;
  margin-bottom: 0;
  color: var(--potsdam-blue);
}

.services .icon-box:hover {
  color: var(--white);
}

.services .icon-box:hover .title {
  color: var(--white);
}

.services .icon-box:hover .description {
  color: var(--white);
}

.services .icon-box:hover .icon i {
  color: var(--white);
}

.services .icon-box:hover .icon-counter {
  color: var(--white);
}

.services .icon-box:hover .icon svg {
  color: var(--white);
}

.services .icon-box:hover .icon {
  color: var(--white);
  fill: white;
}

.services .container .icon-box {
  height: 100%;
}

.icon-box .icon .img-fluid {
  width: 100%;
}

.custom-div-link {
  margin: auto;
}

.icon-box .icon-container {
  color: var(--potsdam-blue);
  fill: var(--potsdam-blue);
}

.icon-container .title {
  font-weight: bold;
}

.icon-box:hover .icon-container {
  color: var(--white);
}

/* --------------------------------------------------------------
# Counts
-------------------------------------------------------------- */
.counts {
  padding-bottom: 30px;
}

.counts .count-box {
  padding: 30px;
  width: 100%;
  align-items: center;
  align-content: center;
  align-self: center;
  text-align: center;
  white-space: nowrap;
  text-align: center;
  white-space: nowrap;
}

.counts .count-box i {
  display: inline-block;
  font-size: 40px;
  color: var(--potsdam-blue);
  padding-bottom: 15px;
}

.counts .count-box span {
  font-size: 48px;
  font-weight: 700;
  /* line-height: 15px; */
  display: inline;
  color: #2f4d5a;
  padding-left: 0.2em;
  padding-top: 15px;
}

.counts .count-box p {
  padding: 0;
  margin-top: 0;
  margin-bottom: 0;
  font-family: Raleway, sans-serif;
  font-size: 14px;
  color: #49788c;
  text-align: center;
  white-space: wrap;
}

/* --------------------------------------------------------------
# Footer
-------------------------------------------------------------- */
#footer {
  background-color: var(--potsdam-blue);
  padding: 0 0 30px;
  color: var(--white);
  font-size: 14px;
}

#footer .footer-top {
  padding: 60px 0 30px;
}

#footer .footer-top .footer-info {
  margin-top: -90px;
  margin-bottom: 15px;
  background: white;
  color: #2f4d5a;
  border-top: 4px solid #67b0d1;
  text-align: center;
  padding: 30px 20px;
}

#footer .footer-top .footer-info h3 {
  font-size: 24px;
  margin: 0 0 20px;
  padding: 2px 0;
  line-height: 1;
  font-weight: 700;
}

#footer .footer-top .footer-info p {
  font-size: 14px;
  line-height: 24px;
  margin-bottom: 0;
  font-family: Raleway, sans-serif;
}

#footer .footer-top .social-links a {
  font-size: 18px;
  display: inline-block;
  background: #2f4d5a;
  color: var(--white);
  line-height: 1;
  padding: 8px 0;
  margin-right: 4px;
  border-radius: 50%;
  text-align: center;
  width: 36px;
  height: 36px;
  transition: 0.3s;
}

#footer .footer-top .social-links a:hover {
  background: #67b0d1;
  color: var(--white);
  text-decoration: none;
}

#footer .footer-top h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  position: relative;
  padding-bottom: 12px;
}

#footer .footer-top .footer-links {
  margin-bottom: 30px;
}

#footer .footer-top .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#footer .footer-top .footer-links ul i {
  padding-right: 2px;
  color: #b5d9e9;
  font-size: 18px;
  line-height: 1;
}

#footer .footer-top .footer-links ul li {
  padding: 10px 0;
  display: flex;
  align-items: center;
}

#footer .footer-top .footer-links ul li:first-child {
  padding-top: 0;
}

#footer .footer-top .footer-links ul a {
  color: var(--white);
  transition: 0.3s;
  display: inline-block;
  line-height: 1;
}

#footer .footer-top .footer-links ul a:hover {
  color: #a2cfe3;
}

#footer .footer-top .footer-newsletter form {
  margin-top: 30px;
  background: var(--white);
  padding: 6px 10px;
  position: relative;
  border-radius: 4px;
}

#footer .footer-top .footer-newsletter form input[type="email"] {
  border: 0;
  padding: 4px;
  width: calc(100% - 110px);
}

#footer .footer-top .footer-newsletter form input[type="submit"] {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  border: 0;
  font-size: 16px;
  padding: 0 20px;
  background: #67b0d1;
  color: var(--white);
  transition: 0.3s;
  border-radius: 4px;
}

#footer .footer-top .footer-newsletter form input[type="submit"]:hover {
  background: #409cc5;
}

#footer .copyright {
  border-top: 1px solid #385b6b;
  text-align: center;
  padding-top: 30px;
}

#footer .credits {
  padding-top: 10px;
  padding-bottom: 10px;
  text-align: center;
  font-size: 14px;
  color: var(--white);
}

#footer .terms {
  padding-bottom: 30px;
  text-align: center;
  font-size: 14px;
  color: var(--white);
}

@media (width <= 575px) {
  #footer .footer-top .footer-info {
    margin: -20px 0 30px;
  }
}

#footer .footer-partners {
  background-color: var(--white);
  padding: 30px 0;
  max-width: 100%;
  overflow: hidden;
}

#footer .footer-partners .container {
  display: flex;
  justify-content: center;
  align-items: center;

  /* align-items: stretch; */
  flex-wrap: wrap;
}

.footer-partners .img-fluid {
  min-width: 100px;
  max-width: 400px;
  height: auto;
  align-items: center;
  justify-content: center;
}

/* For tabs */
#karten-tabs {
  width: auto;
  margin: 0 auto;
}

#karten-tabs .nav-link {
  background-color: var(--white);
  color: var(--potsdam-blue);
  border-radius: 0;
}

#karten-tabs .nav-link:hover {
  background-color: rgb(248 247 247);
}

#karten-tabs .nav-link.active {
  border-bottom-color: var(--potsdam-blue);
  background-color: var(--potsdam-blue);
  color: white;
}

@media (width <= 600px) {
  .nav-item {
    display: grid;
    width: 100%;
  }
}

.dataset-item {
  padding: 16px;
}

@media (width < 576px) {
  .dataset-item {
    width: 100%;
    margin-bottom: 10px !important;
    padding: 0 10px;
  }
}

.dataset-item a {
  color: #003958;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.wohnen-title {
  text-align: center;
  margin-bottom: 0;
  margin-top: 0;
}

h2.wohnen-title {
  margin-top: 40px;
}

/* Link in datenshutz */

.text-image a {
  color: #d93737;
}

#bieber-map-app-container {
  margin-top: 20px;
}

.bieber-map-container {
  height: 800px;
  margin-top: 10px;
}

#bieber-map-instance {
  height: 100%;
}

#bieber-map-instance .leaflet-top {
  z-index: 996 !important;
}

.bieber-map-active-tags {
  margin-bottom: 10px;
}

.bieber-map-active-tag-chip {
  display: inline-block;
  padding: 5px 10px;
  background-color: #f0f0f0;
  border-radius: 20px;
  margin-right: 5px;
  font-size: 14px;
}

.bieber-map-remove-tag {
  cursor: pointer;
  margin-left: 5px;
}

.graph-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

.graph-overlay.visible {
  display: flex;
}

.graph-overlay-content {
  width: 60%;
  height: 60%;
  background: #fff;
  padding: 20px;
  position: relative;
}

.close-graph {
  position: absolute;
  top: 0;
  right: 10px;
  font-size: 30px;
  text-decoration: none;
  color: #000;
}

.graph-overlay-content iframe {
  width: 100%;
  height: 100%;
  border: none;
}
