:root {
    --txt: #000000;
    --highlight: #106099; /*blau*/
    --grey: #F1F1F1;
    --dark: #062134; /*dunkelblau*/
}
html {
    height: 100%;
}
body {
    color: var(--txt);
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "wdth" 100;
    background-color: white;
    line-height: 1.5;
}
/*Sticky Footer*/
body:not(#tinymce) {
    display: flex;
    min-height: 100vh;
    margin: 0 auto;
    flex-direction: column;
}

/**************** Main Content / Freitext ****************/
main {
    min-height: 5em;
    flex: 1 0 auto;
}
main section:not(:first-child) {
    margin: 40px 0;
}
main section .grid-section > div:not(:first-child) h1,
main section .grid-section > div:not(:first-child) h2,
main section .grid-section > div:not(:first-child) h3,
.h1 h1,
.h2 h2 {
    border-top: 0;
    padding-top: 0;
}
h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5 {
    color: var(--highlight);
    font-weight: bold;
    line-height: 1.2;
    border-top: 4px solid var(--highlight);
    padding-top: 10px;
}
h1, .h1, h2, .h2 {
    font-size: 26px;
    text-transform: uppercase;
}
h2, .h2 {
}
h3, .h3 {
    font-size: 20px;
    padding-top: 20px;
    margin-bottom:15px;
}
h4, .h4 {
    color: var(--txt);
    font-size: 18px;
    font-weight: 600;
    border-top:none;
    padding-top:0;
    margin-bottom: 0;
}
h5, .h5 {
    color: var(--txt);
    font-size: 16px;
    font-weight: 600;
    border-top: none;
    padding-top: 0;
}
img {
	max-width:100%;
	height:auto;
}
ul, ol {
    padding-left:16px;
}
p > a:first-child,
.anker ul a {
    position: relative;
    padding-left: 24px;
}
p > a:first-child:before,
.anker ul a:before {
    content: '\203A';
    font-size: 1.7em;
    line-height: 1;
    position: absolute;
    top: -6px;
    left: 0;
}
td p > a:first-child,
a[href^="mailto"]:first-child {
    position:static;
    padding-left:0;
}
td p > a:first-child:before,
a[href^="mailto"]:first-child:before {
    content:'';
    position:static;
}
a, .pseudolink {
    color: var(--highlight);
    transition: all 200ms linear;
}
a:hover, a:focus {
    transition:all 200ms linear;
}
[onclick^="location.href"], [onclick^="window.open"], .pseudolink {
    cursor: pointer;
}
hr {
    border-top: 4px var(--highlight) solid;
    opacity: 1;
    margin-top:80px;
}
td {
    vertical-align:top;
    width:auto !important;
}

/**************** Helpers ****************/
.ptext {
    margin-bottom: 1rem;
}
.imgCoverCenter {
    position: relative;
    overflow: hidden;
}
.imgCoverCenter > img,
.imgCoverCenter > video,
.imgCoverCenter > svg {
    position: absolute;
    /*top: 50%;
left: 50%;
transform: translate(-50%,-50%);*/
    height: 100%;
    width: 100.1%;
    object-fit: cover;
    object-position: right;
}
@media (orientation: portrait) and (max-width: 576px) {
    .imgCoverCenter > video {
        top: auto;
        bottom: 0;
        left: auto;
        right: 0;
        transform: none;
        object-position: 61% bottom;
    }
}

/**************** Navi ****************/
.navbar {
    padding: 7px 0;
}
.navbar-brand {
    position:relative;
    left:-1px;
    max-width:260px;
}
.navbar-toggler {
    border-radius: 0;
    background-color: var(--txt);
    padding:4px 7px;
}
.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem var(--highlight);
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.navbar .navbar-nav .nav-link {
    color: var(--txt);
    font-size: 16px;
    line-height: 1.5;
    padding-left: 62px;
    padding-right: 16px;
}
/*.navbar .navbar-nav .nav-link.dropdown-toggle {
    padding-right: 12px;
}*/
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link:focus,
.navbar-nav .nav-link.active, 
.navbar-nav .nav-link.show {
    color: var(--highlight);
}
.navbar-nav .nav-link.active {
    font-weight: 800;
}
.navbar .navbar-nav .nav-item:last-child .nav-link {
    background:var(--txt);
    color:white;
}
.dropdown-menu {
    border-radius:0;
    border-color:var(--txt);
    margin-left:62px;
}
.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item.active, 
.dropdown-item:active {
    color: var(--highlight);
    background-color:transparent;
}
.dropdown-item.active {
    font-weight:800;
}
/**************** Header ****************/
.banner {
    position: relative;
    overflow: hidden;
    height: clamp(150px,16vw, 300px);
    padding: 12px 0;
}
.banner:before {
    content: '';
    position: absolute;
    inset: 0;
    filter: blur(10px);
    background-size: cover;
    background-position:center;
}
.banner > div {
    height:100%;
}
.banner .inner {
    position: relative;
    background-color: #10609966;
}
.banner h1 {
    color: white;
    font-size:26px;
    font-weight: normal;
    border-top:none;
    padding-top: 12px;
    padding-bottom: 12px;
    margin-bottom: 0;
}
.home .banner {
    height: clamp(200px,45vw, 662px);
}
.home .banner .inner {
    padding: 20px;
    max-width: 540px;
    margin: 0 auto;
}

/**************** Anker - Liste z.B. für Recht ****************/
.anker {
    margin-bottom:clamp(36px,5vw, 100px);
}
.anker ul {
    list-style:none;
    padding:0;
}

.nestedContent .item {
    margin-bottom:64px;
}
.nestedContent .item h4 {
    margin-bottom:1rem;
}
.team .col-auto {
    max-width:50%;
}
.team h2 {
    position: relative;
}
.team h2:before {
    content:url(/assets/img/Icons/person.svg);
    margin-right:10px;
}
.teamKachel {
    list-style: none;
    font-size: 16px;
    padding: 0;
}
.teamKachel li {
    background-color: var(--grey);
    padding: 16px;
    float:left;
    margin-right:32px;
    min-width:235px;
    min-height:92px;
}
.teamKachel img {
    border-radius:50%;
}
.teamKachel .name {
    /*margin-bottom:12px;*/
}
.teamKachel strong {
    font-weight:600;
}

/**************** News / Blog ****************/
.news .row {
    margin-top: 30px;
    margin-bottom: 30px;
}

.blogentry h1 {
    margin-bottom: 24px;
}

.blog-img {
    padding-bottom: 75%;
    overflow: hidden;
    position: relative;
}

.blog-img img {
    position: absolute;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/**************** Team ****************/

.team-img img {
    position: absolute;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.iconData img {
    vertical-align:top;
    margin-top:4px;
}
.iconData img:first-child {
    margin-right:16px;
}

/**************** Gallery ****************/
.gallery-grid {
    padding-top: calc(var(--bs-gutter-x) * .5);
    padding-bottom: calc(var(--bs-gutter-x) * .5);
}

.gallery-item img {
    width: 100%;
    height: 175px;
    object-fit: cover;
    object-position: center;
}

.gallery #lightgallery {
    display: flex;
    flex-wrap: wrap;
    margin-right: -1rem;
}

.gallery #lightgallery > a {
    width: 20%;
    padding-bottom: 1rem;
    padding-right: 1rem;
}

/**************** Top-Link ****************/
aside {
    position: fixed;
    right: 10px;
    bottom: 84px;
    background: white;
    visibility: hidden;
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
}
aside a {
    display: block;
    border:2px solid white;
    border-bottom:none;
    color: var(--txt);
    font-weight: 600;
    text-decoration: none;
}
aside a:after {
    display:block;
    content: url(/assets/img/Icons/chevron-up.svg);
    line-height: 1;
}
aside .txt {
    display:none;
}

/**************** Footer ****************/
footer {
    flex-shrink: 0; /*Sticky Footer*/
    color:white;
    font-size:16px;
    background-color:var(--dark);
}
footer .container {
    padding-top: 30px;
}
footer a {
    color:white;
    text-decoration:underline;
}
footer ul {
    list-style: none;
    padding: 0;
}
footer .container-fluid {
    font-size: 14px;
}
footer .container-fluid li {
    float: left;
    margin-left: 24px;
}
footer .container-fluid li:first-child {
    margin-left: 0;
}

/****************Cookie Consent****************/
#cookie_directive_container {
    color:white;
}
#cookie_directive_container a {
    color: #FFF;
}
#cookie_directive_container a.float-end {
    border:1px solid white;
    background-color: transparent;
    margin-bottom: 10px;
    min-width:0;
    text-decoration: none;
}

/****************Formulare****************/
.form-control {
    border: none;
    background-color: #ededed;
}

div.form-control {
    background-color: transparent;
    padding: 0;
}

.form-control:focus {
    border-color: #ff660063;
    box-shadow: 0 0 0 .2rem rgba(255, 102, 0, 0.21);
}

select.form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 16px 12px;
}

button:not(.navbar-toggler), .btn {
    font-weight: bold;
    color: white;
    background: var(--txt);
    padding: 5px 10px;
    border-radius: 0;
    border: 1px solid var(--txt);
    min-width: 125px;
    position: relative;
    transition: color 200ms linear, border-color 200ms linear, background-color 200ms linear;
    margin: 0.5rem 1rem 1rem 0;
}

.btn:last-child {
    margin-right: 0;
}

button:not(.navbar-toggler):hover, .btn:hover,
button:not(.navbar-toggler):focus, .btn:focus,
button:not(.navbar-toggler):active, .btn:active {
    background: transparent;
    border-color: var(--red);
    color: var(--red);
    transition: color 200ms linear, border-color 200ms linear, background-color 200ms linear;
}

.btn a {
    color: white;
}

.btn a:hover,
.btn a:focus {
    color: var(--red);
}

.btn:hover > a,
.btn:focus > a {
    color: var(--red);
}

.umbraco-forms-field {
    margin-bottom: 1rem;
}

.umbraco-forms-label,
.umbraco-forms-field-wrapper {
    width: 100%;
}

.checkboxlist .form-control {
    display: table-caption;
    padding: 0;
    width: 17px;
    height: 17px;
    border-radius: 5px;
    margin-right: 7px;
}

.row-fluid { /*übernommen von .row in Bootstrap 5 */
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(-1 * var(--bs-gutter-y));
    margin-right: calc(-.5 * var(--bs-gutter-x));
    margin-left: calc(-.5 * var(--bs-gutter-x));
}

.row-fluid > * { /*übernommen von .row > * in Bootstrap 5 */
    flex-shrink: 0;
    /*width: 100%;*/
    max-width: 100%;
    padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left: calc(var(--bs-gutter-x) * .5);
    margin-top: var(--bs-gutter-y);
}

#cookie_directive_container > * {
    background-color: rgba(0,0,0,0.8);
    padding-top: 10px;
    font-size: 16px;
}

/****************Media Queries****************/
@media (min-width: 768px) {
    body {
    }
    .banner h1 {
        font-size: 25px;
    }
    .anker ul {
        column-count: 2;
        column-gap: 96px;
        column-rule: 4px solid var(--highlight);
    }
    /*aside {
        bottom:64px;
        right: 64px;
    }*/
    aside a {
        display:inline-flex;
        align-items: center;
        padding-left: 10px;
    }
    aside a:after {
        margin-left: 10px;
    }
    aside .txt {
        display: inline;
    }
    footer .container-fluid ul {
        float: right;
    }

    .hyphens-xs {
        -moz-hyphens: manual;
        -ms-hyphens: manual;
        -webkit-hyphens: manual;
        hyphens: manual;
    }
}

@media (min-width: 992px) {
    body {
        font-size:16px;
    }
    h1, .h1, h2, .h2 {
        font-size: 48px;
        margin-bottom: 30px;
    }
    h3, .h3 {
        font-size: 24px;
    }
    h4, .h4 {
        font-size: 20px;
    }
    h5, .h5 {
        font-size: 18px;
    }
    
    main section:not(:first-child) {
        margin: 100px 0;
    }
    .banner h1 {
        font-size: 30px;
        padding-top: 24px;
        padding-bottom: 24px;
    }

    /*Navi*/
    .navbar {
        padding: 20px 0;
    }
    .navbar-brand {
        max-width: 310px;
    }
    .navbar .navbar-nav .nav-link {
        padding-left: 16px;
    }
    .navbar .navbar-nav .nav-item:last-child .nav-link {
        margin-left: 16px;
    }
    .dropdown-menu {
        margin-left: 0;
    }

    footer .container {
        padding-top: 80px;
    }
}

@media (min-width: 1200px) {
    .anker ul {
        column-count: 3;
    }
    .banner h1 {
        font-size: 56px;
    }
}

@media (min-width:1400px) {

    /*.container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 1140px;
    }*/
}