html * {
  box-sizing: border-box;
}

a {
  color: #000;
}

a:hover,
a:focus {
  color: #474747;
  text-decoration: underline;
}

.rounded {
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
}

th {
  text-align: left;
}

table.openhours td:last-child {
  text-align: right;
}

/* HEADER */

.header {
  margin-top: 20px;
}

.bestil-tid-container {
  position: relative;
}

.bestil-tid-container hr {
  border-top: 1px solid #979797;
  border-bottom: 0px solid #979797;
}

.bestil-tid a {
  position: absolute;
  top: -38px;
  left: 20px;
  width: 110px;
  height: 110px;
  font-size: 20px;
  line-height: 22px;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  display: block;
  background-color: #d32085;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  border-radius: 50%;
  padding-top: 31px;
  border: 5px solid #fff;
  text-decoration: none;
}

.bestil-tid a:hover {
  background-color: #ed2496;
}

a.btn-online-booking {
  display: inline-block;
  color: rgba(0,0,0,.5);
  background-color: rgba(0,0,0,.07);
  padding: 2px 8px;
  margin: 3px 2px;
  text-transform: uppercase;
  font-size: 0.65em;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-radius: 5px;
  position: absolute;
  bottom: 15px;
  right: 15px;
}



.well {
  margin-bottom: 0;
  margin-top: 40px;
  padding: 20px 20px 12px 20px;
  text-align: left;
  font-size: 1.5em;
  line-height: 1.3em;
  position: relative;
}

.well img { width: 100%; height: auto; }

@media (max-width: 979px) {
  .well{
    text-align: center;
  }
  a.btn-online-booking {
    position: relative;
    margin: 20px 0;
    bottom: auto;
    right: auto;
  }
}

/* HERO */

.hero {
  margin-top: 40px;
  margin-bottom: 0;
}

.carousel-inner img {
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
}

.carousel-indicators li {
  cursor: pointer;
  background-color: #d32085;
}

/* MAIN NAV */

.main-nav {
  border-bottom: 1px solid #000;
}

.main-nav .nav {
  margin-bottom: 0;
}

.main-nav .nav-pills > .active > a,
.main-nav .nav-pills > .active > a:hover,
.main-nav .nav-pills > .active > a:focus {
  color: #ffffff;
  background-color: #000;
}

.nav-tabs > li,
.nav-pills > li:last-child {
  float: right;
  margin-right: 0;
}

.main-nav .nav-tabs > li:last-child > a,
.main-nav .nav-pills > li:last-child > a {
  margin-right: 0;
  background-color: #d32085;
  color: #fff;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  padding: 13px;
}

.main-nav .nav-tabs > li:last-child > a:hover,
.main-nav .nav-pills > li:last-child > a:hover {
  background-color: #ed2496;
}

.main-nav .nav-tabs > li > a,
.main-nav .nav-pills > li > a {
  margin-right: 0px;
}

.main-nav .nav-tabs > li.active:last-child > a,
.main-nav .nav-pills > li.active:last-child > a {
  background-color: #000;
  color: #fff;
}

.main-nav .nav-pills > li > a {
  margin-bottom: 0;
  -webkit-border-bottom-left-radius: 0;
  -moz-border-bottom-left-radius: 0;
  border-bottom-left-radius: 0;
  -webkit-border-bottom-right-radius: 0;
  -moz-border-bottom-right-radius: 0;
  border-bottom-right-radius: 0;
  padding: 13px 12px;
  font-size: .99em;
}

/* FRONTPAGE CTA */

.cta {
  margin-top: 20px;
  padding: 10px 30px 20px 30px;
  text-align: center;
  min-height: 132px;
}

.cta h3 {
  margin-bottom: 0;
}

.cta p {
  font-size: 1.2em;
  line-height: 1.3em;
}

.outline {
  border: 1px solid #000;
  padding: 30px 30px 50px 30px;
}

.leksikonbox {
  background-color: #fff;
  color: #000;
  height: 100%;
}

.flex {
  display: flex;
}

.leksikonbox a, .black a, .outline a {
  display: inline-block;
  color: #000;
  background-color: #ececec;
  padding: 2px 6px;
  margin: 3px 2px;
  text-transform: uppercase;
  font-size: 0.75em;
  font-weight: bold;
  letter-spacing: 0.05em;
  border-radius: 2px;
}

.leksikonbox p { margin-top: 13px;}

.leksikon h2, .leksikon h3, .leksikon strong {
  margin-top: 20px;
  display: inline-block;
}

.leksikon h1 { margin-top: 40px;}

.black {
  background-color: #000;
  color: #fff;
  padding-top: 30px;
  padding-bottom: 60px;
}

.black a {
  background-color: #fff;
}

/* SUBPAGE */

.info-box {
  margin-top: 40px;
  margin-bottom: 20px;
}

.info-box p {
  margin: 0;
}

.terapeuter-list article.info-box p:first-of-type {
  margin: 0 0 10px 0;
}

.info-box h1,
.info-box h2,
.info-box h3,
.info-box h4,
.info-box h5,
.info-box h6 {
  margin-top: 0;
}

.info-box h3 {
  margin-bottom: 0;
  line-height: 30px;
}

.info-box ul li {
  list-style: none;
  margin-bottom: 4px;
}

.info-box ul li:before {
  content: '\2022';
  display: block;
  position: relative;
  max-width: 0px;
  max-height: 0px;
  left: -17px;
  top: 1px;
  color: #d32085;
  font-size: 20px;
}

.terapeuter {
  margin-bottom: 20px;
}

.terapeuter-list {
  padding: 32px 0 0 0;
  /*  overflow: hidden;*/
}

.terapeuter-list .info-box {
  margin: 15px 0;
}


.terapeuter-img {
  margin: 0 0 20px 0;
}

.one-fourth {
  width: 25%;
  float: left;
  padding: 0 10px;
}

@media (max-width: 640px) {
  .one-fourth {
    width: 50%;
    float: left;
  }
}

@media (max-width: 480px) {
  .one-fourth {
    width: 100%;
    float: none;
    padding: 0px;
    text-align: center;
  }
}

.one-fifth {
  width: 20%;
  float: left;
  padding-right: 20px;
}

.one-sixth {
  width: 16.6667%;
  float: left;
  padding-right: 15px;
  box-sizing: border-box;
}

.one-sixth:last-child {
  padding-left: 5px;
}

/* FOOTER */

footer {
  color: #9c9c9c;
  padding-bottom: 10%;
}

footer a {
  display: inline-block;
  float: right;
  color: inherit;
}

footer a:hover {
  text-decoration: none;
}

.datapolitik p {
  margin-bottom: 15px;
}

/* MEDIA QUERIES */

@media (max-width: 767px) {

  header {
    text-align: center;
  }

  .bestil-tid {
    margin: 60px 0;
  }
  .bestil-tid a {
    left: 50%;
    margin-left: -55px;
    top: 3px;
  }

  .nav-tabs > li,
  .nav-pills > li {
    width: 100%;
    float: none;
  }
  .main-nav .nav-pills > li > a {
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    border: 1px solid #ececec;
    margin-right: 0;
    text-align: center;
  }

  .one-fifth,
  .one-sixth {
    width: 100%;
    padding-right: 0;
  }
  .one-sixth:last-child {
    padding-left: 0;
  }

  .main-nav {
    border-bottom: none;
  }
  .info-box {
    margin-top: 20px;
    margin-bottom: 0;
  }
  .well {
    font-size: 1.1em;
    line-height: 1.3em;
  }
  footer {
    text-align: center;
  }

  footer a {
    display: block;
    float: none;
    padding: 15px;
  }

}

@media (max-width: 979px) and (min-width: 768px) {

  .main-nav .nav-tabs > li > a,
  .main-nav .nav-pills > li > a {
    margin-right: 6px;
  }

}
