* {
  font-family: "Myriad Pro", Myriad, "Liberation Sans", "Nimbus Sans L", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* Light mode */
:root {
   --body-bg: #FFFFFF;
   --body-color: #333333;
   --primary: #ec7327;
   --link-text: #333333;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
   :root {
       --body-bg: #29211c;
       --body-color: #FFFFFF;
       --link-text: #FF7837;
   }
   #phone::before {
     background-image: url('./images/phone_white.png') !important;
   }
}


#phone::before {
  background-image: url('./images/phone_black.png');
  background-size: 1em 1em;
  display: inline-block;
  height: 1em;
  width: 1em;
  content: "";
  margin-right: 0.5em;
}

body,
.modal-content {
   background: var(--body-bg);
   color: var(--body-color);
   margin: 0 auto;
   margin-top: 1em;
   max-width: 70em;
}

header a,
footer a {
  text-decoration: none;
}

.hidden {
  display: none;
}

a {
  color: var(--link-text);
  text-decoration: none;
  font-weight: bolder;
}

a:not(.nav_link):hover {
  text-decoration: underline;
}

main {
  padding: 0 1em;
  margin: 0 auto;
  max-width: 70em; // this allows an optimal 80 characters in one line
}

h1 {
  font-family: "Optimum Bold Italic", sans-serif;
  font-size: 2.5rem;
}

.subtitle {
  font-size: 1.5rem;
  margin-left: 2rem;
}

h1, h2, h3 {
  color: var(--primary); // accessible AA for large text
}

.title {
  display: flex;
}


#logo {
  max-height: 6em;
  max-width: 85%;
  height: auto;
}

nav {
  background-color: var(--primary);
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  list-style: none;
  padding: 0;
  max-width: 100%;
}

nav ul li {
  padding: 0.5em;
}

nav ul li a {
  color: white;
  padding: .2em;
  border: 1px transparent solid;
}

#banner {
  width: 100%;
  border-top: .1em solid #f46427;
  border-bottom: .1em solid #f46427;
  padding: .1em 0;
}

h2 {
    display: flex;
}
h2:after {
  flex-grow: 1;
  top: 51%;
  content: '\a0';
  border-radius: 25px;
  border: 0.1em solid var(--primary);
  height: 0;
  margin: auto 0 auto 1em;
}

ul {
  list-style: none;
}

ul.leistungen li::before {
  content: "\2022";
  color: #f46427;
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

ul.leistungen li,
dl dd {
  font-weight: 600;
}

dt {
  float: left;
  clear: left;
  width: 100px;
  text-align: right;
}

dd {
  margin: 0 0 0 110px;
  padding: 0 0 0.5em 0;
}

ul.leistungen {
  column-width: 20em;
  column-gap: 3em;
}

#myBtn {
  display: none;
  position: fixed;
  bottom: 1.5em;
  right: 2em;
  z-index: 99;
  border: none;
  outline: none;
  background-color: var(--primary);
  color: white;
  cursor: pointer;
  padding: .8em;
  border-radius: 15px;
  font-size: 1.2em;
  opacity: 90%;
}

#myBtn:hover {
  background-color: #555; /* Add a dark-grey background on hover */
}

.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
  margin: 15% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  width: 80%; /* Could be more or less, depending on screen size */
}

/* The Close Button */
.close {
  float: right;
  font-size: 2em;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: var(--primary);
  text-decoration: none;
  cursor: pointer;
}

footer .footer-button {
  // overwrite iubenda styles
  border: none;
  background-color: transparent;
  color: white;
  font-weight: bolder;
  cursor: pointer;
  padding: .2em;
  border: 1px transparent solid;
}

.footer-button:hover,
nav ul li a:hover {
  border: 1px white solid;
  border-radius: 1.5em;
}

#overlay {
  position: fixed; /* Sit on top of the page content */
  display: none; /* Hidden by default */
  width: 100%; /* Full width (cover the whole page) */
  height: 100%; /* Full height (cover the whole page) */
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.5); /* Black background with opacity */
  cursor: pointer; /* Add a pointer on hover */
}
#modal {
	background-color: var(--body-bg);
	opacity: .8;
	max-width: 30em;
	margin: 3em auto;
	padding: .5em;
	max-width: 32em;
}
#modal img {
	width: 100%;
}

.only-on-dark {
  display: none;
}

@media (prefers-color-scheme: dark) {
  .only-on-dark {
    display: block;
  }
  
  .only-on-light {
    display: none;
  }
}