@import url('https://fonts.verwaltungsportal.de/import/?family=Arimo:400,400i,700,700i');

html {
    max-width: 1930px;
    margin-left: auto;
    margin-right: auto;
    background: #f0ebe6;
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    scrollbar-color: #0170ad #ffffff;
    scrollbar-width: thin;
}

body {
    font-family: "Arimo", sans-serif;
    font-weight: 400;
    color: #666666;
    background: #ffffff;
    font-size: clamp(1rem, 2vw, 1.125rem);
    /* 1rem = 16px */
    line-height: 1.5;
}

body:has(#searchToggle[open]) {
    overflow: hidden;
}

a {
    color: #0170ad;
}

a:is(:hover, :focus) {
    color: #0170ad;
    text-decoration: underline;
}

b,
strong {
    font-weight: 700;
}


/* ------------------------------------------- topbar ------------------------------------------ */

#topbar {
    font-size: 1rem;
    padding: 29px 0;
}

@media (max-width: 991px) {
    #topbar {
        padding: 35px 0 15px 0;
        border-top: 40px solid #003c5d;
    }
}

/* ------------------------------------------- logo ------------------------------------------ */

#logo {
    display: inline-block;
}

#logo img {
    display: block;
}


@media (max-width: 991px) {
    #logo img {
        max-width: calc(100vw - 120px);
        width: 100%;
    }
}

/* ------------------------------------------- contact ------------------------------------------ */

.telIcon,
.mailIcon {
    color: #666666;
    padding-left: 30px;
    font-size: 1rem;
    background-position: center left;
    background-repeat: no-repeat;
}

@media (max-width: 991px) {

    .telIcon,
    .mailIcon {
        max-width: 83%;
        margin: auto;
        color: #fff;
        background-position: left 12px center;
    }

    .telIcon a,
    .mailIcon a {
        color: #fff;
    }
}

.telIcon {
    background-image: url('../img/telefon-icon-dark.png');
}

.mailIcon {
    margin-top: 12px;
    background-image: url('../img/mail-icon-dark.png');

}

:is(.telIcon, .mailIcon) a {
    color: #0170ad;
    text-decoration: underline;
}

/* #region ------------------------------------ search ------------------------------------------ */

#searchButton {
    display: block;
    cursor: pointer;
    font-size: 0;
    width: 40px;
    height: 40px;
    background: url('../img/icon-suche-dunkel.png') center top 6px /26px auto no-repeat;
    border: 1px solid transparent;
    border-radius: 50%;
    transition: background 200ms linear;
    position: relative;
}

#searchButton::before,
#searchButton::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #ffffff;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    opacity: 0;
    transition: width 300ms ease, opacity 300ms ease;
}

#searchButton::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}


#searchToggle {
    margin-left: -10px;
}

#searchToggle #searchButton:is(:hover) {
    background-color: rgba(0, 0, 0, 0.08);
}

#searchToggle[open] #searchButton:is(:hover) {
    background-color: rgba(255, 255, 255, 0.1);
}

#searchToggle[open] #searchButton {
    position: relative;
    z-index: 103;
    background-position: center;
    border-color: #fff;
    background-image: none;
}

#searchToggle[open] #searchButton::before,
#searchToggle[open] #searchButton::after {
    width: 20px;
    opacity: 1;
}


#search {
    background: transparent;
    backdrop-filter: blur(0);
    transition: background 200ms linear, filter 200ms linear;
}

#searchToggle[open] #search {
    position: fixed;
    z-index: 102;
    padding: 30vh 10vw;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

#search_input,
#search_submit {
    border: none;
    border-bottom: 1px solid #ffffff;
    height: 50px;
}

#search_input {
    color: #ffffff;
    font-size: 20px;
    font-style: normal;
    background: transparent;
    padding: 15px;
    width: 100%;
    max-width: 700px;
}

@media (min-width: 1200px) {
    #search_input {
        max-width: 900px;
    }
}

#search_submit {
    width: 50px;
    flex-shrink: 0;
    background: url('../img/suche-icon.png') center top 16px no-repeat;
    padding: 0;
    cursor: pointer;
    font-size: 0;
    transition: background-color 300ms linear;
}

#search_submit:is(:hover, :focus) {
    background-color: rgba(255, 255, 255, 0.2);
}

#search input::placeholder {
    color: #ffffff !important;
    opacity: 1 !important;
    font-style: normal !important;
}

/* #endregion --------------------------------- search ------------------------------------------ */

/* ------------------------------------------- header ------------------------------------------- */

header {
    background: #0b263b;
    position: relative;
    color: #ffffff;
}

@media (min-width: 992px) {
    #header-position {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100;
    }
}

/* #region ---------------------------------- navigation ---------------------------------------- */

/* burgermenu for tablet */

@media (max-width: 991px) {
    nav.horizontally {
        position: static !important;
    }

    #burgerButton {
        font-size: 0;
        border: none !important;
        display: block;
        height: 50px;
        width: 60px;
        border-radius: 2px;
        padding: 6px 8px;
        cursor: pointer;
        background-color: #ffffff;
        box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08);
    }

    #burgerButton::before,
    #burgerButton::after,
    #burgerButtonInner {
        background-color: #326185;
        border-radius: 2px;
        position: absolute;
        width: 40px;
        height: 3px;
        left: 10px;
        transition: transform 200ms linear, opacity 200ms linear;
    }

    #burgerButton[aria-expanded="true"] #burgerButtonInner {
        transform: rotate(-45deg) translate(-6px, 6px);
    }

    #burgerButton[aria-expanded="true"]::before {
        opacity: 0;
    }

    #burgerButton[aria-expanded="true"]:after {
        transform: rotate(45deg) translate(-4px, -6px);
    }

    #burgerButtonInner {
        top: 16px;
    }

    #burgerButton::before {
        top: 24px;
        content: "";
    }

    #burgerButton::after {
        top: 32px;
        content: "";
    }

    .navbar-nav {
        margin: 20px 0;
    }

    .navbar-collapse {
        width: calc(100% - 90px);
        max-width: 300px;
        top: 0;
        background: #0b263b;
        position: fixed;
        left: -100%;
        bottom: 0;
        z-index: 100;
        height: auto !important;
        opacity: 0;
        pointer-events: none;
        visibility: hidden;
        overflow-y: auto;
        transition: left 300ms linear, opacity 300ms linear, box-shadow 600ms linear;
        box-shadow: 250px 0 50vw 50vw rgba(255, 255, 255, 0);
    }

    .dropdown-toggle-button {
        background: #0b263b;
    }

    .navbar-collapse:is([aria-expanded="true"], .in) {
        left: 0;
        opacity: 1;
        pointer-events: auto;
        visibility: visible;
        box-shadow: 250px 0 50vw 50vw rgba(0, 0, 0, 0.6);
    }

    .navbar-header {
        position: fixed;
        top: 15px;
        right: 15px;
        z-index: 101;
    }

    .dropdown-toggle-button-wrapper {
        top: 6px;
    }

    .dropdown-toggle-button-wrapper2 {
        top: 6px;
    }
}

/* menu desktop */

@media (min-width: 992px) {
    nav.horizontally {
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        right: 0;
        top: 0;
        max-width: 1930px;
        width: 100% !important;
        z-index: 101;
        transition: background 150ms linear, border 150ms linear;
        border-top: 1px solid transparent;
        border-bottom: 1px solid transparent;
    }

    .is-sticky nav.horizontally {
        border-color: rgba(255, 255, 255, 0.5);
        background: #0b263b;
    }

    nav.horizontally .navbar-nav {
        display: flex;
        justify-content: center;
        padding: 10px 0;
        align-items: center;
        gap: 35px;
        flex-wrap: wrap;
        border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    }

    .is-sticky nav.horizontally .navbar-nav {
        border: none;
        background: transparent;
    }

    nav.horizontally .navbar-nav li[class*="toplevel"]>ul {
        display: flex !important;
        flex-wrap: wrap;
        pointer-events: none;
        position: absolute;
        opacity: 0;
        top: 150%;
        left: 15px;
        right: 15px;
        z-index: 1000;
        padding: 30px;
        transform-origin: top center;
        visibility: hidden;
        transition: top 200ms linear, opacity 200ms linear;
    }

    nav.horizontally .navbar-nav>li:is(.open, :hover)>ul,
    nav.horizontally .navbar-nav>li.open:focus-within>ul {
        pointer-events: auto !important;
        opacity: 1 !important;
        visibility: visible;
        top: 100%;
    }

    nav.horizontally .navbar-nav>li.open>ul {
        pointer-events: none !important;
        opacity: 0 !important;
        visibility: hidden;
    }

    nav.horizontally .navbar-nav>li:is(:hover, :focus)>ul {
        z-index: 1003;
    }

    nav.horizontally li[class*="secondlevel"] {
        margin-bottom: 15px;
        width: 33.33%;
        padding: 0 15px;
    }

    nav.horizontally [class*="secondlevel"]>ul {
        display: block !important;
    }
}

/* toplevel */

nav.horizontally a[class*="toplevel"] {
    color: #ffffff;
    font-weight: 700;
    text-align: left;
    padding: 10px 35px;
    position: relative;
    font-size: 1.25rem;
    font-variant: small-caps;
    line-height: 1.2;
    text-decoration: none;
}

@media (min-width: 992px) {
    nav.horizontally a[class*="toplevel"] {
        padding: 17px 50px;
        text-align: center;
    }
}

/* toplevel-over */

nav.horizontally li[class*="toplevel"]:is(:hover, :focus-within)>a,
nav.horizontally li[class*="toplevel"]>a:is(:hover, :focus),
nav.horizontally li[class*="toplevel"].open>a,
nav.horizontally li[class*="toplevel"].open>a:is(:hover, :focus),
nav.horizontally li[class*="toplevel"][class*="_over"]>a,
nav.horizontally li[class*="toplevel"][class*="_over"]>a:is(:hover, :focus) {
    color: #003959;
    background: #fff url(../img/logo-hover.png) no-repeat right bottom -1px;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"]>ul {
    background: #ffffff;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.2);
}

@media (min-width: 992px) {
    nav.horizontally [class*="toplevel"]>ul::after {
        content: "";
        position: absolute;
        display: block;
        height: 2px;
        left: 0;
        right: 0;
        top: -2px;
    }

    nav.horizontally [class*="secondlevel"]>ul {
        padding-top: 10px;
    }
}

/* secondlevel + thirdlevel */

nav.horizontally a[class*="secondlevel"] {
    color: #666666;
    font-size: 1.25rem;
    border-bottom: 1px solid rgba(1, 112, 173, 0.4);
}

nav.horizontally a[class*="thirdlevel"] {
    color: #666666;
    font-size: 1rem;
}

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
    background-color: transparent;
    font-weight: 400;
    text-align: left;
    position: relative;
    line-height: 1.2;
    text-decoration: none;
    padding: 10px 35px;
}

@media (min-width: 992px) {
    nav.horizontally a[class*="secondlevel"] {
        padding: 5px 0 12px 0;
        font-size: 1.25rem;
        text-align: center;
    }

    nav.horizontally a[class*="thirdlevel"] {
        padding: 6px 15px;
        text-align: center;
    }

    nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
        text-align: left;
    }
}

/* secondlevel + thirdlevel over */

nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]):is(:hover, :focus-within)>a,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])>a:is(:hover, :focus),
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]).open>a,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]).open>a:is(:hover, :focus),
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])[class*="_over"]>a,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])[class*="_over"]>a:is(:hover, :focus) {
    color: #0170ad;
}

/* #endregion ------------------------------- navigation ---------------------------------------- */

/* -------------------------------------------- banner ------------------------------------------ */

#slider {
    max-height: clamp(300px, 42vw, 450px);
    position: relative;
}

@media (min-width: 992px) {
    body.index #slider {
        min-height: 450px;
        max-height: clamp(450px, 67vw, 800px);
    }

    #headerpic a.nivo-prevNav {
        left: 65px;
    }

    #headerpic a.nivo-nextNav {
        right: 65px;
    }
}

.slider-wrapper {
    height: 100% !important;
}

.slider-mask {
    display: none;
}

@media (min-width: 768px) {
    .slider-mask {
        display: block;
        background: linear-gradient(to bottom, rgba(1, 43, 67, 0.95) 0%, rgba(1, 43, 67, 0) 80%);
    }
}

/* ------------------------------------------- content ------------------------------------------ */

#content>.row {
    row-gap: 30px;
}

#content {
    text-align: left;
    padding-top: clamp(30px, 6vw, 70px);
    padding-bottom: clamp(30px, 8vw, 90px);
}

@media (min-width: 992px) {
    #content>.row>*+* {
        padding-left: clamp(30px, 4vw, 45px);
    }
}

/* ----------------------------------------- content tab ---------------------------------------- */

.contactTab {
    color: #ffffff;
    padding: clamp(35px, 4vw, 50px);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: #012b43;
    line-height: 1.6;
    border: 1px solid #0170ad;
    box-shadow: inset 0 0 0 14px #ffffff;
}

@media (min-width: 768px) {
    .contactTab {
        font-size: 1.0625rem;
    }
}

.contactTab a {
    color: #ffffff;
    border-bottom: 1px solid #ffffff;
    text-decoration: none;
}

.contactTab a:not(:is([href*="mailto"], [href*="tel"])) {
    border: 1px solid #ffffff;
    font-size: 0.9375rem;
    display: inline-block;
    padding: 5px 12px;
    margin-top: 20px;
}

.contactTab a:not(:is([href*="mailto"], [href*="tel"])):is(:hover, :focus) {
    background: #ffffff;
    color: #012b43;
}

.contactTab .tabHeadline {
    color: #fff;
    font-size: 1.5rem;
    font-variant: small-caps;
    margin-bottom: 18px;
    font-weight: 700;
}

.contactTab table :is(td, th) {
    padding: 0;
}

/* -------------------------------------- h1 - h6, newslink ------------------------------------- */

.h4link a:is(:link, :hover, :focus, :visited),
h6,
h5,
h4,
h3,
h2,
h1 {
    color: #012b43;
    font-weight: 700;
    line-height: 1.2;
}

h1,
.h1,
.legacy_h1 {
    font-size: 1.875rem;
}

h2,
.h2,
.legacy_h2 {
    font-size: 1.75rem;
}

h3,
.h3,
.legacy_h3 {
    font-size: 1.625rem;
}

h4,
.h4,
.h4link a:is(:link, :hover, :focus, :visited) .legacy_h4 {
    font-size: 1.5rem;
}

h5,
.h5,
.legacy_h5 {
    font-size: 1.375rem;
}

h6,
.h6,
.legacy_h6 {
    font-size: 1.25rem;
}

/* --------------------------------------------- contact ---------------------------------------- */

#contactFooter>.row {
    row-gap: 30px;
}

@media (min-width: 992px) {
    #contactFooter::before {
        content: '';
        position: absolute;
        background: url(../img/logo-immobilienservice-martin-weiss.png) no-repeat;
        width: 366px;
        height: 105px;
        bottom: 0;
        left: 375px;
    }
}

#contactFooter {
    background: #012b43;
    position: relative;
    color: #fff;
    padding: clamp(30px, 4vw, 65px) 0;
    font-size: 1rem;
    hyphens: auto;
}

#contactFooter .tabHeadline {
    font-size: 22px;
    color: #fff;
    font-weight: 700;
    font-variant: small-caps;
    margin-bottom: 20px;
}

#contactFooter a {
    color: #fff;
}

#contactFooter .tab {
    padding-right: 62px;
}

#contactFooter ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

#contactFooter ul>li {
    padding-left: 26px;
    min-height: 11px;
    background: url('../img/check-icon.png') center left no-repeat;
}

#contactFooter ul>li+li {
    margin-top: 8px;
}

/* --------------------------------------------- footer ----------------------------------------- */

footer table :is(td, th) {
    padding: 0;
}

footer {
    background-color: #fff;
    color: #666666;
    font-size: 0.9375rem;
}

#footer {
    padding: 30px 0;
}

@media (min-width: 992px) {
    #footer {
        padding: 14px 0;
    }
}

@media (max-width: 767px) {
    #footer>.row>.col-xs-12+* {
        border-top: 1px solid rgba(0, 0, 0, 0.2);
        margin-top: 20px;
        padding-top: 20px;
    }
}

#innerfooter ul {
    padding: 0;
}

#innerfooter li {
    display: inline-block;
}

#innerfooter a {
    color: #666666;
    text-decoration: none;
}

#innerfooter a:is(:hover, :focus) {
    color: #0170ad;
    text-decoration: underline;
}

#innerfooter li+li {
    margin-left: clamp(15px, 2vw, 35px);
}

/* ------------------------------------------ vernetzt ------------------------------------------ */

#vernetzt {
    gap: 12px;
    text-align: right;
    font-size: 0.9375rem;
    color: #666666;
    line-height: 1.3;
    font-weight: 400;
    text-decoration: none;
}

#vernetzt span span {
    display: block;
}

#vernetzt b {
    color: #0170ad;
    font-weight: 400;
}