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

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

* {
    box-sizing: border-box; }
    
html,
body,
ul { /* ul to be help-block full left */
    margin:0;
    padding:0;
    background-color: #FFF; /* color def for form */
    font: normal 18px 'Roboto', Arial, sans-serif; /* no color def for form! */
    font-weight: 400;
    line-height: 1.4; }
/* no color def for form validation */
    
ul {
    background-color: transparent; }

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

h1,
h2,
h3,
h4 {
    line-height: 1.4;
    margin: 0;
    padding: 0; }

p {
    margin: 0 0 10px; /* Bootstrap */
    line-height: 1.4; }

a,
a:hover {
    text-decoration: none; }

/* smooth shrinking */
a,
a:hover,
a.navbar-brand,
a.navbar-brand.shrink,
a.navbar-brand span,
a.navbar-brand.shrink span,
.navbar-nav.shrink {
    -webkit-transition: all 0.25s;
        -moz-transition: all 0.25s;
            transition: all 0.25s; }        

/* ==========================================================================
   HTML-EDITOR (REDACTOR)
   ========================================================================== */

@media only screen and (min-width: 768px) {
    
    .flex-container {
        display: -webkit-box;
        display: -moz-box;
        display: -ms-flexbox;
            display: flex;
        -ms-flex-wrap: wrap;
        -webkit-flex-wrap: wrap;
            flex-wrap: wrap; } 

    /* for Safari to wrap elements correctly */
    .flex-container:before,
    .flex-container:after {
        content: normal; }  
}

h1,
h2,
h6 {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 36px;
    color: #504d49;
    margin-bottom: 40px;
    line-height: 1.2;
    text-transform: uppercase;
-webkit-hyphens: auto;
   -moz-hyphens: auto;
        hyphens: auto; }

@media only screen and (min-width: 768px) {
        
    h1,
    h2,
    h6 {
        font-size: 56px; }
}

.content.ci-color h2,
.content.ci-color p,
.content.ci-color td {
    color: #e7e7e6; }

h3 {
    font-size: 25px;
    font-weight: 500;
    color: #504d49;
    padding-bottom: 10px;
    border-bottom: 1px solid #504d49;
    margin-bottom: 25px;
    text-transform: uppercase; }

h3 em {
    color: #a73235;
    font-style: normal; }

p,
ul {
    color: #504d49;
    margin: 0 0 30px; /* Bootstrap */
    line-height: 1.4; }

p strong {
    font-weight: 500;
    color: #a73235;
    font-size: 24px;
    text-transform: uppercase; }

.content li {
    font-weight: 500;
    color: #504d49;
    list-style: none;
    font-size: 24px;
    text-transform: uppercase; }

.content a {
    color: #504d49; }

.email-contact a,
.content a:hover,
.content a:active,
.content li a,
.content li strong,
strong a,
a strong,
.not-found a {
    color: #a73235 !important; }

.email-contact a:hover,
.content li a:hover,
strong a:hover,
a:hover strong,
.not-found a:hover {
    color: #504d49 !important; }

.content a[href$=".pdf"]:before,
.content a[href$=".doc"]:before {
    content: " ";
    background-size: 100% 100%;
    width: 22px;
    height: 29px;
    background-image: url(../img/file-icon.svg);
    float: left;
    margin-right: 10px;
    margin-top: 2px; }

.content a[href$=".pdf"],
.content a[href$=".doc"],
.content ul a {
    font-weight: 500;
    color: #a73235; }

.content a:hover[href$=".pdf"],
.content a:hover[href$=".doc"] {
    color: #504d49; }

.content img {
    max-width: 100%;
    height: auto; }

/* Tables */
table {
    width: 100%;
    margin-bottom: 30px; }

table > tbody > tr > td {
    width: auto;
    padding: 5px 0;
    line-height: 1.4;
    vertical-align: top;
    border-top: 0; }

table > tbody > tr > td {
    font-weight: 400; }

table > tbody > tr > td > p {
    margin-bottom: 0; }

/* Mobile view */
@media only screen and (max-width: 991px){

    table {
        width: 100%; }

    table > tbody > tr > td {
        padding: 5px;
        display: block;
        width: 100%; }
    table {
       border: 1px solid #e7e7e6; }

    table > tbody > tr {
       border-bottom: 1px solid #e7e7e6; }

    table > tbody > tr:last-child {
       border-bottom: 0; }

    table > tbody > tr > td {
       border: 0; }
}

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

.browsehappy {
    position: absolute;
    top: 100px;
    z-index: 3000;
    background: #CC0033;
    color: #FFF;
    padding: 8px; }

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

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

/* ==========================================================================
   HEADER (Navigation containers & Logo)
   ========================================================================== */

/* Header background full-width */
.navbar {
    background: #a73235;
    border-bottom: 0;
    height: 90px; }

.navbar.shrink {
    height: 0;
    min-height: 0;
    -webkit-transition: all 0.25s;
    -moz-transition: all 0.25s;
        transition: all 0.25s; }

.navbar-header {
    background: transparent;
    float: none; 
    padding: 0;
    height: 90px; } /* Height = logo height plus navbar-header padding */

@media only screen and (min-width: 768px) { 
    .navbar, 
    .navbar-header { 
        height: 130px; }

    .navbar {
        background: #a73235;
        background: rgba(167, 50, 53, 0.9); }  

}

/* Blend mode – only Chrome & Firefox */
/* Chrome 29 + */
@media screen and (-webkit-min-device-pixel-ratio:0) and (min-resolution:.001dpcm) {
    .navbar {
        background-color: #a73235;
        background-color: rgba(167, 50, 53, 1);
        background-size: 100% auto;
        background-image: url(../img/navbar-bg.png);
        background-image: url(../img/shutterstock426958651-w1920.jpg);
        background-blend-mode: multiply; } 

    .navbar.shrink {
        background-color: #a73235;
        background-color: rgba(167, 50, 53, 0.65);
        background-size: 100% auto;
        background-image: url(../img/navbar-bg.png);
        background-blend-mode: multiply; }  
}

/* Firefox */
@-moz-document url-prefix() { 
    .navbar {
        background-color: #a73235;
        background-color: rgba(167, 50, 53, 1);
        background-size: 100% auto;
        background-image: url(../img/navbar-bg.png);
        background-image: url(../img/shutterstock426958651-w1920.jpg);
        background-blend-mode: multiply; } 

    .navbar.shrink {
        background-color: #a73235;
        background-color: rgba(167, 50, 53, 0.65);
        background-size: 100% auto;
        background-image: url(../img/navbar-bg.png);
        background-blend-mode: multiply; }  
}

/* Navigation container */
.navbar-nav {
    width: 100%;
    margin: 0;
    margin-top: 50px; /* Navbar height */
    background: transparent; } 

.navbar-header.shrink {
    height: 0;
    -webkit-transition: all 0.25s;
    -moz-transition: all 0.25s;
        transition: all 0.25s; }

.navbar-fixed-top .container-fluid {
        max-width: 1170px; }

@media only screen and (min-width: 1200px) { /* Change the nav breakpoint */

    .navbar.shrink {
        height: 50px;
        -webkit-transition: all 0.25s;
        -moz-transition: all 0.25s;
            transition: all 0.25s;
        -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); }

    .navbar-header {
        float: left; }

    .navbar-header.shrink {
        height: 50px; }

    .navbar-nav {
        width: auto;
        margin: 0; }

}

/* Logo */
.logo.shrink {
    -webkit-transform: translateY(-150px);
        -moz-transform: translateY(-150px);
            transform: translateY(-150px);
        -webkit-transition: all 0.25s;
        -moz-transition: all 0.25s;
            transition: all 0.25s; }

.navbar-brand {
    padding: 15px 15px 15px 0; /* Bootstrap */
    color: #FFF; }

a.navbar-brand span {
    display: block;
    text-indent: -9999px;
    width: 183px;
    height: 60px;
    background-image: url(../img/garage-haldi.svg);
    background-size: 183px 60px; }

@media only screen and (min-width: 768px) {

    .navbar > .container-fluid .navbar-brand {
        padding: 15px 15px; } /* Bootstrap */

    a.navbar-brand {
        margin-top: 10px; }
    
    a.navbar-brand span {
        width: 260px;
        height: 86px;
        background-size: 260px 86px; }    
}

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

/* Naviation element */
.navbar-nav > li {
    float: none; }

/* Navigation colors */

.navbar-default .navbar-nav > li > a {
    font-size: 15px;
    color: #cdcdcc;
    padding-left: 10px;
    padding-right: 10px;
    text-transform: uppercase;
    background-color: transparent; }

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
    color: #FFF;
    background-color: transparent; }

/* Mobile navigation */
.navbar-toggle {
    display: block; /* for visibility above 768px */
    margin-top: 15px;
    z-index: 1000;
    background: #FFF; }

@media only screen and (min-width: 1200px) { /* Change the nav breakpoint */
    
    .navbar-toggle {
        display: none; } /* for hiding in desktop */  
}

/* Offcanvas */
.navbar-offcanvas {
    position: relative; }

.offcanvas-toggle,
.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
    background: transparent;
    border-radius: 0;
    border: 1px solid #FFF; }

.offcanvas-toggle.shrink {
    background: #a73235; }

.offcanvas-toggle:hover,
.navbar-default .navbar-toggle.is-open,
.offcanvas-toggle.is-open:hover {
    background: #FFF !important;
    border: 1px solid #FFF; }

.offcanvas-toggle.is-open {
    background: #FFF !important;
    border: 1px solid #FFF; }

.offcanvas-toggle .icon-bar {
    background: #FFF !important;
    -webkit-transition: all .25s ease-in-out;
            transition: all .25s ease-in-out; }

 .navbar-toggle:hover .icon-bar,
 .offcanvas-toggle.is-open .icon-bar {
    background: #a73235 !important; }

.offcanvas-toggle.is-open .icon-bar:nth-child(1) {
    -webkit-transform: rotate(45deg) translate(5px, 4px);
        -ms-transform: rotate(45deg) translate(5px, 4px);
            transform: rotate(45deg) translate(5px, 4px); }

.offcanvas-toggle.is-open .icon-bar:nth-child(2) {
    opacity: 0; }

.offcanvas-toggle.is-open .icon-bar:nth-child(3) {
    -webkit-transform: rotate(-45deg) translate(4px, -4px);
        -ms-transform: rotate(-45deg) translate(4px, -4px);
            transform: rotate(-45deg) translate(4px, -4px); }

@media only screen and (max-width: 1199px) { /* Change the nav breakpoint */
    
    .offcanvas-stop-scrolling {
        height: 100%;
        overflow: hidden; }

    .navbar-default .navbar-offcanvas {
        background-color: #a73235;
        background-color: rgba(167, 50, 53, 0.95); }

    .navbar-offcanvas {
        position: fixed;
        height: 100% !important;
        width: 100%;
        max-width: 250px;
        left: -250px;
        top: 0;
        padding-left: 0;
        padding-right: 0; /* 15px; */
        z-index: 999;
        overflow: auto; /* scroll */
        -webkit-overflow-scrolling: touch;
        -webkit-transition: all 0.15s ease-in;
                transition: all 0.15s ease-in; }

    .navbar-offcanvas.in {
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.3); }

    .navbar-offcanvas.navbar-offcanvas-fade {
        opacity: 0; }

    .navbar-offcanvas.navbar-offcanvas-fade.in {
        opacity: 1; }

    .navbar-offcanvas.offcanvas-transform.in {
        -webkit-transform: translateX(250px);
            -ms-transform: translateX(250px);
                transform: translateX(250px); }

    .navbar-offcanvas.offcanvas-position.in {
        left: 0; }

    .navbar-offcanvas.navbar-offcanvas-right {
        left: auto;
        right: -250px; }

    .navbar-offcanvas.navbar-offcanvas-right.offcanvas-transform.in {
        -webkit-transform: translateX(-250px);
            -ms-transform: translateX(-250px);
                transform: translateX(-250px); }

    .navbar-offcanvas.navbar-offcanvas-right.offcanvas-position.in {
        left: auto;
        right: 0; }
}

/* Desktop navigation */
@media only screen and (min-width: 1200px) { /* Change the nav breakpoint */

    .navbar-nav {
        margin-top: 79px }

    .navbar-nav.shrink {
        margin-top: 0; }
    
    .navbar-nav > li { /* make left navigation elements float left */
        float: left; }

    .navbar-default .navbar-nav > li > a:after {
        content:' | ';
        padding-left: 10px; }

    .navbar-default .navbar-nav > li:last-child > a:after {
        content:''; }

    .navbar-default .navbar-nav > li:last-child > a {
        padding-right: 0; }
        
}

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

@media (max-width: 767px) {
    body {
        padding-top: 90px; }
}

section.content {
    position: relative;
}

.fullwidth-image {
    position: relative; }

.phone-button {
    position: absolute;
    bottom: 35px;
    right: 8vw; }

.phone-button a:hover {
    cursor: pointer; }

.phone-button img {
    width: 100%;
    width: 20vw;
    max-width: 296px;
    height: auto; }

.email-contact {
    text-align: right;
    margin-top: 15px; }

.content {
    padding-top: 50px;
    padding-bottom: 30px; }

.content.bright  {
    background-color: #FFF; }

.content.ci-color  {
    background-color:#a73235; } 

.content.dark  {
    background-color:#e7e7e6; } 

.flex-article-full {
    margin-bottom: 30px; }

.flex-article-full:last-child {
    margin-bottom: 0; }

.flex-article-full img {
    margin-bottom: 30px; }

.anchor {
    display: block;
    height: 0; /* same height as header */
    margin-top: 0; /* same height as header */
    visibility: hidden; }

@media only screen and (min-width: 1200px) {

    .anchor {
        height: 50px;
        margin-top: -50px; }
}

.occasion {
    position: relative; }

.occasion a img {
    position: absolute;
    top: 0;
    right: 15px;
    width: 100px;
    max-width: 100px;
    height: auto; }

@media only screen and (min-width: 768px) {
    .occasion a img {
        width: 100%;
        max-width: 180px;
        height: 87px; }    
}

/* Base car */
.base-car {
    position: absolute;
    bottom: 0;
    padding-left: 15px;
    padding-right: 15px; }

.base-car img {
    width: 700px;
    max-width: 80%;
    height: auto; }

@media only screen and (min-width: 768px) {
    .base-car {
        padding-left: 50px;
        padding-right: 50px; } 
}

/* ==========================================================================
   FORM
   ========================================================================== */

#contact {
    position: relative; }

#contact {
    padding-bottom: 150px;
}

#contact li {
    font-size: 18px;
    font-weight: 400;
    text-transform: none;
    color: #a73235; }

.icon {
    position: absolute;
    bottom: 0;
    left: 15px; }

.icon span {
    display: block;
    text-indent: -9999px;
    width: 165px;
    height: 94px;
    background-image: url(../graphics/matti-law-icon.svg);
    background-size: 165px 94px; }

.help-block {
    margin: 0; }

#contact-form .form-group input,
#contact-form .form-group textarea {
    font-size: 15px;
    padding: 5px 7px;
    background-color: #FFF;
    border: 0;
    border-radius: 0;
    font-weight: normal;
    color: #504d49;
    -webkit-box-shadow: 1px 1px 7px 0px rgba(0,0,0,0.15);
    -moz-box-shadow: 1px 1px 7px 0px rgba(0,0,0,0.15);
    box-shadow: 1px 1px 7px 0px rgba(0,0,0,0.15); }

label {
    font-family: 'Roboto', Arial, sans-serif;
    font-weight: normal;
    color: #504d49;
    padding-top: 5px;
    padding-left: 0px; }

.honeypot {
    display: none; }

#contact-form .list-unstyled li {   /* check default list-style on line 164 */
    padding-left: 0;
    background-color: transparent !important; }

#contact-form .list-unstyled li:before {
    content: ''; }

#success {
    font-family: 'Roboto', Arial, sans-serif !important;
    font-weight: normal;
    color: #FFF;
    border: 0;
    border-radius: 0; }

.alert-success,
.alert-danger {
    border-radius: 0; }

.has-error input,
.has-error textarea {
    border: 1px solid #a73235 !important;
    margin-bottom: 10px; }

/* Error message */
#contact li {
    font-size: 18px;
    font-weight: 400;
    text-transform: none;
    color: #a73235; }

.btn {
    border-color: transparent;
    background-color: #504d49;
    font-size: 18px;
    padding: 4px 15px;
    color: #FFF;
    font-weight: 500;
    text-transform: uppercase;
    border-radius: 0;
    border: 0;
    -webkit-transition: background linear 300ms; }

.btn:hover,
.btn:focus,
.btn.active {
    border-color: transparent;
    background-color: #a73235;
    color: #FFF;
    -webkit-transition: background linear 300ms; }

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

footer .container {
    padding-top: 25px;
    padding-bottom: 25px; }

footer,
footer ul {
    background: #a73235; }

footer ul {
    margin-bottom: 0; }

footer,
footer li,
footer a {
    color: #e7e7e6;
    font-size: 16px; }

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

footer a:hover {
    color: #FFF;
    text-decoration: none; }

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

::-moz-selection {
    text-shadow: none;
    background: #333;
    color: #FFF; }

::selection {
    text-shadow: none;
    background: #333;
    color: #FFF; }

img::selection {
    background: 0 0; }

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

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

a[href^="tel"], 
a[href^="sms"]{
    color:inherit; 
    cursor:default; 
    text-decoration:none; }