/* Layout & Template Styles */
BODY {
    font: 16px Arial, Verdana, Sans-serif;
    line-height: 27px;
    color: #3c3c3c;
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: none;
    -moz-text-size-adjust: none;
    -ms-text-size-adjust: none;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    min-height: 100vh;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -moz-box-orient: vertical;
    -moz-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    --header-offset: 140px;
    scroll-padding-top: var(--header-offset);
    padding-top: 0;
    overflow-x: hidden;
}

BODY.header-is-sticky {
    --header-offset: 72px;
}

#site {
    -webkit-box-flex: 1;
    -webkit-flex: 1 0 auto;
    -moz-box-flex: 1;
    -ms-flex: 1 0 auto;
    flex: 1 0 auto;
}

/* Logo */
#logo {
    background: url(../img/osterhof_logo.svg) no-repeat center center;
    -webkit-background-size: contain;
    -moz-background-size: contain;
    -o-background-size: contain;
    background-size: contain;
    width: 120px;
    height: 120px;
    margin: 0 auto;
    transition: 0.2s;
}

#logo A {
    display: block;
    width: 100%;
    height: 100%;
}

#logo A SPAN {
    display: none;
}

/* Header */
.head {
    position: fixed;
    width: 100%;
    background: #ffffff;
    z-index: 2000;
    height: 140px;
    display: flex;
    line-height: 140px;
    justify-content: center;
    align-items: center;
    transition: 0.2s;
}

.head:after {
    content: "";
    display: none;
    height: 10px;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    background: -moz-linear-gradient(
        top,
        rgba(0, 0, 0, 0.05) 0%,
        rgba(255, 255, 255, 0) 100%
    );
    background: -webkit-linear-gradient(
        top,
        rgba(0, 0, 0, 0.05) 0%,
        rgba(255, 255, 255, 0) 100%
    );
    background: -webkit-gradient(
        linear,
        left top,
        left bottom,
        from(rgba(0, 0, 0, 0.05)),
        to(rgba(255, 255, 255, 0))
    );
    background: -moz-linear-gradient(
        top,
        rgba(0, 0, 0, 0.05) 0%,
        rgba(255, 255, 255, 0) 100%
    );
    background: -o-linear-gradient(
        top,
        rgba(0, 0, 0, 0.05) 0%,
        rgba(255, 255, 255, 0) 100%
    );
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.05) 0%,
        rgba(0, 0, 0, 0) 100%
    );
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0d000000', endColorstr='#00ffffff', GradientType=0);
}

.head.sticky {
    line-height: 72px;
    height: 72px;
    box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.head.sticky::after {
    display: none;
}

.head.sticky #logo {
    width: 96px;
    height: 52px;
    transition: all 0.3s ease;
}

.head.sticky .header-container {
    padding: 10px 0;
    transition: all 0.3s ease;
}

.head.sticky .availability-card {
    transform: scale(0.9);
    transition: all 0.3s ease;
}

/* Subhead */
.subhead {
    width: 100%;
    position: relative;
    line-height: 0;
    margin-top: 0;
}

.subhead .item {
    max-height: 900px;
    overflow: hidden;
}

.subhead .item IMG {
    width: 100%;
    height: auto;
}

/* Hero sizing */
.hero .slick-slide img {
    width: 100%;
    height: 72vh;
    object-fit: cover;
    border-radius: 0;
}

.subhead.sticky {
    margin-top: 0;
}

/* Container */
.cont {
    padding: 60px 0 60px;
}

.inner,
.cont > .item,
.gridwrapper > .item {
    max-width: 1170px;
    width: 94%;
    margin: 0 auto;
    position: relative;
}

.gridwrapper > .item .gridwrapper > .item {
    width: auto;
    max-width: none;
}

.item.small {
    max-width: 950px;
}

.item.contactbutton {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 0px;
}

.overview {
    text-align: center;
}
.overview p {
    color: var(--muted);
    font-size: 20px;
}

/* Footer */
.foot {
    background: #4f4f4f;
    color: #fff;
    font-size: 15px;
}

.foot .inner {
    padding: 30px 0;
    text-align: center;
    display: flex;
}

.foot A {
    color: #fff;
}

.foot P {
    padding: 0;
}

.copy,
.footnav {
    display: inline;
}

.copy {
    margin-right: 20px;
}

.foot .col1 {
    line-height: 40px;
    margin: 0 auto;
}

.foot .col1 .footnav A {
    padding: 7px 20px;
    display: inline-block;
}

.footnav A:hover {
    color: #fff;
}

.foot A.social {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: url(../img/social.svg) no-repeat 0 0;
    -webkit-background-size: auto 40px;
    -moz-background-size: auto 40px;
    -o-background-size: auto 40px;
    background-size: auto 40px;
}

.foot A.social:hover {
    opacity: 0.8;
}

.foot A.social span {
    display: none;
}

.foot A.social.instagram {
    background-position: -47px 0;
}

/* Header Container */
.header-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1170px;
    width: 94%;
    margin: 0 auto;
    padding: 20px 0;
    padding-top: 0px;
    height: auto;
    min-height: 70px;
}

/* Header CTA: visible only when header is sticky */
.header-cta {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    padding: 10px 16px;
    font-size: 14px;
}

.head.sticky .header-cta {
    display: inline-flex;
}

/* Map Container */
.map-container {
    max-width: 1170px;
    width: 94%;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
    display: block;
}

/* Remove dotted focus ring on the logo link (prevents odd outline around anchor icon) */
#logo a,
#logo a:focus,
#logo a:focus-visible {
    outline: none;
    box-shadow: none;
}
