/*  Author:   Martin Stettler (http://dieweberei.ch/)
  	Version:  11122015
*/

/* ==========================================================================
   BASE STYLES
   ========================================================================== */

html,
body,
ul {
    margin:0;
    padding:0;
    background-color: #f4f2f1;
    font: normal 16px 'Droid Sans', Arial, sans-serif;
    color: #555555;
    line-height: 1.4;
}

/* for footer bottom */
html {
    height: 100%;
    width: 100%;
}

body {
    height: 100%;
    width: 100%;
    display: table;
    table-layout: fixed;
    margin: 0 auto;
}

footer {
    display: table-row;
}

h1,
h2,
h3,
h5 {
    font-family: 'PT Sans', Arial, sans-serif;
    font-weight: 400;
    margin-bottom: 10px; /* default */
    line-height: 1.4;
}

p.title {
    font-family: 'PT Sans', Arial, sans-serif;
    font-weight: 400; 
}

p.lead {
    font-family: 'PT Sans', Arial, sans-serif;
    font-weight: 700;
    font-size: 16px;
}

h2 {
    font-size: 27px;
    margin: 0;
    padding-bottom: 20px;
    color: #3e3e3e;
}

.content h2 span,
h5 span {
  position:relative;
  text-align:center;
  padding-bottom: 10px;
}

.content h2 span::after,
h5 span::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 2px;
  background: #0058ad;
  bottom: 0;
  left: 0;
}

h3 {
    font-size: 18px;
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 5px;
}

h5 {
    font-size: 60px;
    margin-bottom: 30px;
}
h1,
p.title,
.navbar,
.navbar-nav,
.navbar-nav > li > a {
    -webkit-transition: all .3s;
    -moz-transition: all .3s;
    transition: all .3s;
}

strong {
    font-weight: 700;
}

i {
    white-space: nowrap;
    font-style: normal;
}

li {
    list-style-type: none; /* for text-danger in form */
}

.middle-grey {
    background: #e3e3e3;
}

.dark-grey-1 {
    background: #b9bab9;
}

.dark-grey-2 {
    background: #a7a7a7;
}

.dark-grey-3 {
    background: #939393;
}

a,
a:hover {
    color: #0058ad;
    text-decoration: none;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    transition: all 0.5s;
}

a:hover,
a:active {
    color: #555555;
}

a.inline {
    
    text-decoration: none;
}

footer a[href^="tel"] {
    color: #555555 !important;
    cursor: pointer !important;
}

.dark-grey-1 a[href^="tel"] {
    color: #FFF !important;
    cursor: pointer !important;
}

a.inline:hover,
a.inline:active {
    color: #0058ad;
}

.dark-grey-3 a {
    color: #FFF;
    border-bottom: 1px solid #FFF;
}

.dark-grey-3 a:hover {
    border-bottom: 1px solid transparent;
}

.spacer25 {
    height: 25px;
    width: 100%; 
    font-size: 0; 
    margin: 0; 
    padding: 0; 
    border: 0; 
    display: block; 
}

.p-0 {
    padding: 0;
}

@media (min-width: 768px) {
    .ps-0 {
        padding-left: 0;
    }
    .pe-0 {
        padding-right: 0;
    }
}

/* ==========================================================================
   Browse Happy prompt lte IE 7
   ========================================================================== */

.browsehappy {
    margin: 0.2em 0;
    background: #cc0033;
    color: #FFF;
    padding: 0.5em;
}

.browsehappy a {
    color: #FFF;
    text-decoration: underline;
}

.browsehappy a:hover {
    text-decoration: none;
}

/* ==========================================================================
   HEADER & LOGO
   ========================================================================== */

.navbar-brand {
  height: 70px;
  padding: 15px 15px;
}

.navbar-brand.shrink {
    height: 50px;
    padding: 5px 15px;
}

h1 {
    font-size: 18px;
    margin: 0;
}

.navbar-brand.shrink h1 {
    font-size: 16px;
}

p.title {
    font-size: 24px;
    color: #0058ad;
    margin-bottom: 10px;
}

.navbar-brand.shrink p.title {
    font-size: 20px;
    margin: 0;
}

@media (max-width: 320px) {
    
    .navbar-brand {
        max-width: 280px;
    }

    .navbar-brand h1 {
        font-size: 13px;
    }

    .navbar-brand p.title {
        font-size: 18px;
        margin: 0;
    }
}

@media (max-width: 480px) {
    .navbar-brand {
        height: 50px;
        padding: 5px 15px;
    }

    .navbar-brand h1 {
        font-size: 16px;
    }

    .navbar-brand p.title {
        font-size: 20px;
        margin: 0;
    }
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

body {
    padding-top: 72px; /* = navbar height */
}

body.not_found {
    padding-top: 0;
}

.navbar-toggle {
  margin-right: 0;
  border: 0;
  margin-top: 12px;
  border-radius: 3px;
  z-index: 2000;
}

/* for Safari */
.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
  background-color: #939393 !important;
}

@media (max-width: 320px) {
    .navbar-toggle {
        position: absolute;
        top: 0;
        right: 0;
    }
}

@media (max-width: 767px) {
    .navbar-toggle {
        margin-right: 15px;
    }

    .navbar-offcanvas {
        padding-left: 15px;
    }
}

@media (min-width: 768px) and (max-width: 992px) {
    .navbar-toggle {
        position: absolute;
        right: 15px;
    }
}

.navbar { /* header full-width */
    height: 72px;
    margin-bottom: 20px;
    border: 0;
    background: #FFF;
}

.navbar.shrink {
    height: 49px;
    -webkit-box-shadow: 0px 3px 3px 0px rgba(0,0,0,0.15);
    -moz-box-shadow: 0px 3px 3px 0px rgba(0,0,0,0.15);
    box-shadow: 0px 3px 3px 0px rgba(0,0,0,0.15);
}

@media (max-width: 320px) {
    .navbar.shrink {
        height: 75px;
    }
}
@media (min-width: 768px) {
  .navbar-nav > li > a {
        padding-top: 26px;
        padding-bottom: 26px;
        font-size: 16px;
        text-transform: uppercase;
  }

  .navbar-nav.shrink > li > a {
        padding-top: 15px;
        padding-bottom: 15px;
  }
}

@media (min-width: 768px) {
    .navbar-offcanvas {
        padding-left: 0px;
    }
}
.navbar-default .navbar-nav > li > a {
  color: #777;
  background-color: #FFF;
}
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
  color: #0058ad;
  background-color: #FFF;
}
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
  color: #FFF;
  background-color: #0058ad;
}

/* Change the NavBar Breakpoint */
@media (max-width: 991px) {
    .navbar-header {
        float: none;
    }
    .navbar-left,
    .navbar-right {
        float: none !important;
    }
    .navbar-toggle {
        display: block;
    }
    .navbar-collapse {
        border-top: 1px solid transparent;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
    }
    .navbar-fixed-top {
        top: 0;
        border-width: 0 0 1px;
    }
    .navbar-collapse.collapse {
        display: none!important;
    }
    .navbar-nav {
        float: none!important;
        margin-top: 7.5px;
    }
    .navbar-nav>li {
        float: none;
    }
    .navbar-nav>li>a {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .collapse.in {
        display:block !important;
    }
}

/* Make Navigation Toggle on Desktop Hover */
@media (min-width: 992px) {
    .dropdown:hover .dropdown-menu {
        display: block;
    }     
}

/* ==========================================================================
   CONTENT
   ========================================================================== */

section.content.no-image {
    border-top: 9px solid #e3e3e3;
}

section.content .row {
    margin: 40px 0;
}

@media (max-width: 992px ) {
    .content .col-md-4 {
        padding-bottom: 25px;
    }

    .content .col-md-4:last-child {
        padding-bottom: 0;
    }
}

@media (min-width: 768px ) {
    .content .col-md-4,
    .content .col-md-12 {
        padding-left: 0;
    }
}

.header-image-outer {
    position: relative;
    margin: 0 auto;
    max-width: 1360px;
}

.claim-outer {
    position: relative;
    max-width: 1170px;
    margin: 0 auto;
}

@media (min-width: 768px) and (max-width: 992px) {
    .claim-outer,
    .teaser {
        max-width: 750px;
    }
}

@media (min-width: 992px) and (max-width: 1200px) {
    .claim-outer,
    .teaser {
        width: 970px;
    }
}

/* Claim HOME */
@media (max-width: 599px) {
    .claim {
        display: none;
    }
}

.claim {
    position: absolute;
    left: 15px;
    top: 50px;
    max-width: 220px;
}

.fullsize-image img {
    width: 100%;
    height: auto;
}

p.headline,
p.subline {
    font-family: 'PT Sans', Arial, sans-serif;
    font-weight: 400;
}

p.headline {
    font-size: 24px;
    line-height: 1.1;
    color: #0058ad;
}

p.subline {
    font-size: 16px;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .claim {
        top: 120px;
        max-width: 270px;
    }

    p.headline {
        font-size: 40px;
    }

    p.subline {
        font-size: 24px;
    }
}

@media (min-width: 768px) and (max-width: 992px) {
    .claim {
        top: 50px;
    }
}

.container-fluid {
    position: relative;
}

.teaser {
    position: relative;
    padding: 0 15px;
    max-width: 1170px;
}

@media (min-width: 992px ) and (max-width: 1200px) {
    .full-image {
        position: relative;
        margin-bottom: 125px;
    }

    .teaser {
        position: absolute;
        margin: 0 auto;
        left: 0;
        right: 0;
        bottom: -125px;
    }

    .content.image {
        margin-top: -125px;
    }
}

@media (min-width: 1200px ) {
    .full-image {
        margin-bottom: 65px;
    }

    .teaser {
        position: absolute;
        margin: 0 auto;
        left: 0;
        right: 0;
        width: 1170px;
        bottom: -65px;
    }
}

/* latest */
.latest {
    border: 2px solid #0058ad;
    background: #FFF;
    padding: 15px 30px;
}

/* 3 Teaser blocks */
.teaser .col-lg-4 {
    padding: 15px;
    color: #FFF;
    -webkit-flex: 1;
            flex: 1;   
}

.teaser h2,
.teaser p {
    color: #FFF;
}

.teaser p {
    margin: 0;
}

.teaser a.inline {
    color: #FFF;
}

.teaser a.inline:hover {
    color: #3e3e3e;
}

@media (min-width: 992px ) {
    .row-eq-height {
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        flex-direction: row;
    }
}

.row-eq-height {
    background: #a7a7a7;
}

/* Table opening hours Teaser */
.rwd-table {
    margin: 0;
    width: 100%;
}

.rwd-table tr {
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.rwd-table tr:first-child {
    border-top: 0;
}

.rwd-table tr:last-child {
    border-bottom: 0;
}

.rwd-table th {
    display: none;
}

.rwd-table td {
    display: block;
}

.rwd-table td:first-child {
    padding-top: 3px;
}

.rwd-table td:last-child {
    padding-bottom: 3px;
}

.rwd-table td:before {
    content: attr(data-th) ": ";
    font-weight: normal;
    width: 100px;
    display: inline-block;
}

@media (min-width: 480px) {
    .rwd-table td:before {
        display: none;
    }
    .rwd-table td:last-child {
        text-align: right;
    }
}

.rwd-table th, .rwd-table td {
    text-align: left;
}

@media (min-width: 480px) {
  .rwd-table th, .rwd-table td {
    display: table-cell;
    padding: .25em .5em;
  }
  .rwd-table th:first-child, .rwd-table td:first-child {
    padding-left: 0;
  }
  .rwd-table th:last-child, .rwd-table td:last-child {
    padding-right: 0;
  }
}

ul.default li {
    font-family: 'PT Sans', Arial, sans-serif;
    font-weight: 700;
    color: #3e3e3e;
    list-style-type: none;
    text-indent:-15px;
    margin-left: 30px;
    padding-bottom: 25px;
}

ul.default li:last-child {
    padding-bottom: 0;
}

ul.default li:before {
    content: url(../graphics/tooth3.svg);
    display: inline-block;
    width: 20px;
    height: 19px;
}

#map {
    height: 300px;
}

@media (min-width: 768px ) {
  #map {
        height: 500px;
  }
}

@media (min-width: 992px ) {
  #map {
        height: 630px;
  }
}

/* Team */

img.spacer {
    display: none;
}

@media (min-width: 768px) {
    img.spacer {
        display: inline-block;
    }
}

/* 2 images */

.equal-row {
        display: flex;
        flex-wrap: wrap;
}

.equal-row > div {
    display: flex;
    align-items: stretch;
}

.equal-row img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures both images fill their boxes proportionally */
    padding-bottom: 40px;
}

/* Optional: Make sure images stack on xs screens */
@media (max-width: 767px) {
  .equal-row {
        display: block;
  }
  .equal-row img {
        height: auto;
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer {
    background-color: #e3e3e3;
    
}

footer p {
    text-align: center;
    line-height: 1.4;
    padding: 25px 0;
}

/* ==========================================================================
   SELECTION
   ========================================================================== */

::-moz-selection {
    text-shadow: none;
    background: #b9e5e8;
}

::selection {
    text-shadow: none;
    background: #b9e5e8;
}

img::selection {
    background: 0 0;
}

img::-moz-selection {
    background: 0 0;
}

body {
    webkit-tap-highlight-color: #b9e5e8;
}

