/* Text Alignment */
* {
    text-align: center;
}

div.bannerwrap div {
    text-align: left;
}

div.bannerwrap div div.banner_titlewrap,
div.bannerwrap div div.banner_titlewrap h1,
div.bannerwrap div div.banner_titlewrap p.slogan {
    text-align: left;
}

li.articlewrap article table,
div.g-recaptcha div,
table {
    margin-left: auto;
    margin-right: auto;
    width: auto;
}

div.g-recaptcha {
    display: flex;
    justify-content: center;
}

.details-content {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-flow: column wrap;
}

details {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Horizontal Rules */
hr {
    height: 20px;
    border: none;
    border-top: 0;
    background: url("/images/divider.webp") center / contain no-repeat;
}

/* Tables */
li.articlewrap article table tr td:first-of-type {
    text-align: right;
}

li.articlewrap article table tr td {
    text-align: left;
}

table {
    margin: 0 auto;
}

/* Images & Media */
img {
    width: auto;
    max-width: 100%;
    max-height: auto;
}

video, embed, object {
    width: 100%;
}

video {
    display: block;
}

main img {
    -webkit-box-shadow: 0;
    -moz-box-shadow: 0;
    box-shadow: 0;
    border-radius: 0;
    display: block;
    margin: 0 auto;
}

img#noshadow {
    -webkit-box-shadow: 0;
    -moz-box-shadow: 0;
    box-shadow: 0;
}

img#noradius {
    border-radius: 0;
}

/* Headers */
main header h2 {
    line-height: 1;
    padding: 0;
    margin: 0;
    margin-bottom: 1rem;
}

main h3,
aside h3 {
    margin: 0;
    color: #555555;
    line-height: 1;
    width: 100%;
}

li.articlewrap article h3 {
    padding: 0;
    background: transparent;
}

li.articlewrap article h3.insidearticle {
    padding-left: 0;
}

/* Main Header Content */
header.mainheader_center div.grid0,
header.mainheader_center div.grid12 {
    width: 97.91666666666667%;
    padding: 0;
    margin: 0;
}

header.mainheader div p,
header.mainheader h2 {
    padding: 0 1rem;
}

header.mainheader div p {
}

div.wrap main section#content header.mainheader {
    /* margin-bottom und border-bottom werden direkt in mainheader.php gesetzt */
}

/* Articles */
section#content ul li {
    margin-bottom: 2rem;
    display: inline-block;
    position: relative;
    list-style-type: none;
}

section#content ul li ul li {
    /* border-bottom: 0; */
}

section#content ul li:last-of-type {
    /* border-bottom: 0; */
}

div.wrap main section#content article {
    max-width: 100%;
    display: flex;
    flex-flow: row wrap;
    margin-bottom: 0;
    overflow: hidden;
    min-height: 50px;
}

/* Fade-in Animation */
.fadein {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s, transform 1s;
}

.fadein.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Forms */
form section article {
    display: inline-block;
    border-top: 1px solid #dddddd;
    padding-top: 1.2rem;
    margin-top: 1.5rem;
}

form section article:first-of-type {
    border-top: 0;
    padding-top: 0;
    margin-top: 0;
}

/* Aside */
aside section {
    border-top: 1px solid #dddddd;
    padding-top: 1.2rem;
}

aside section:first-of-type {
    border-top: 0;
    padding-top: 0;
}

/* Paragraphs */
main p,
aside p {
    margin-top: 0;
    margin-bottom: 0.8rem;
}

main p:last-of-type {
    margin-bottom: 0;
}

main p.artikelinfo,
aside p.artikelinfo {
    font-size: 13px;
    font-size: 0.8125rem;
    color: #999;
}

/* Links */
main a,
aside a {
    color: #0e6296;
    text-decoration: none;
}

main a:hover,
aside a:hover {
    color: rgba(33,33,33,1);
}

/* Lists */
main ul,
aside ul {
    list-style-type: none;
    padding: 0;
    margin: 1em 0 2em 2em;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
}

div.textwrap ul {
    list-style-type: square;
}

/* Buttons */
div.wrap main section#content div a div.buttonstyle {
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.buttonstyle {
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 0.25rem;
    width: auto;
    padding: 0.5rem 1rem;
    color: #555555;
    background: rgba(221,210,197,1);
    margin-bottom: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.buttonstyle:hover {
    color: white;
    text-decoration: underline;
    background: rgba(221,210,197,1);
}

/* Image Wrappers */
.imgwrap::before,
.imgwrap::after {
    display: block;
    background: yellow;
}

.imgwrap {
    white-space: nowrap;
    display: flex;
}

/* Article Layout */
li.articlewrap article {
    width: 100%;
    padding-bottom: 0;
    padding-top: 0;
}

li.articlewrap {
    border-radius: 1rem;
    overflow: hidden;
}

ul {
    list-style-position: inside;
}

/* Background & Border Classes */
li.bgc {
    background: rgba(221,210,197,1);
}

li.nobgc {
    background: transparent;
}

li.brd {
    border: 2px solid white;
}

li.nobrd {
    border: 0;
}

/* Spacing for borderless articles */
li.nobrd article .textwrap.imgright {
    padding-top: 1rem;
    padding-right: 0;
}

li.nobrd article div.textwrap.imgleft {
    padding-top: 1rem;
    padding-left: 0;
}

li.nobrd article div.textwrap.imgtop {
    padding-top: 1rem;
}

li.nobrd article .textwrap.noimg {
    padding-top: 0;
}

li.nobrd article .textwrap.imgbottom {
    padding-bottom: 1rem;
}

/* Circle Element */
.circle {
    width: 4rem;
    height: 4rem;
    font-size: 4rem;
    background: rgba(221,210,197,1);
    border-radius: 50%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    float: right;
}

.circle::before {
    content: '\279C';
    color: #555555;
    font-size: 0.7em;
    font-weight: bold;
    position: relative;
}

/* Info Messages */
table.infomessage_collection {
    background: rgba(221,210,197,1);
    padding: 1rem;
}

table.infomessage_collection td {
    padding: 1rem;
}

/* Details */
details {
    cursor: pointer;
    display: inline-block;
    position: relative;
}

summary {
    display: block;
    overflow: hidden;
    height: auto;
    padding: 0.5rem 1rem;
    color: #555555;
    background: rgba(221,210,197,1);
    width: max-content;
    border: 1px solid #ccc;
    border-radius: 0.25rem;
    line-height: 1.7;
    margin: 0 auto;
    text-align: center;
}

summary span {
    line-height: 1.7 !important;
}

/* News */
small.news {
    margin-top: 1rem;
}

small.news a {
    color: #555555;
}

/* Team */
div.mail span.genericon.genericon-mail,
div.phone span.genericon.genericon-phone {
    line-height: 1.7;
    font-size: 1.1rem;
}

article.team {
    flex-flow: column wrap;
}

article.team div a {
    color: #555555;
}

article.team div.name {
    font-size: 1.5rem;
    font-weight: bold;
}

article.team div.title {
    font-size: 1.3rem;
    font-style: italic;
}

article.team div.phone {
    width: 100%;
}

article.team div.mail {
    width: 100%;
}

/* Contact & Maps */
#map-canvas {
    height: 270px;
    margin: 0px;
    padding: 0px;
    -webkit-box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.3);
    -moz-box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.3);
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.3);
    border-radius: 0;
}

#map-canvas img {
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    border-radius: 0;
    max-width: none;
}

.noarrow a[href^="http"]:before {
    content: none;
}

#map-canvas a[href^="http"]:before {
    content: none;
}

#map-canvas.fullscreen {
    height: 600px;
}

/* Business Hours */
.businesshours table {
    margin-bottom: 1rem;
}

.businesshours td {
    padding: 5px 10px;
}

.businesshours td:first-of-type {
    padding-left: 0;
    font-weight: bold;
}

.businesshours td:nth-of-type(3) {
    /* border-left: 1px solid #ddd; */
}

.businesshours td:last-of-type {
    padding-right: 0;
}

/* Gallery */
ul.gallery {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, auto));
    gap: 16px;
    list-style: none;
    padding: 0;
}

li.gallery-item {
    border-radius: 1rem;
    background: rgba(221,210,197,1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

li.gallery-item a h3 {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

li.gallery-item a {
    color: #555555;
}

.gallery_imgcontainer {
    width: 100%;
}

.gallery_imgcontainer .gallery-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.gallery_imgcontainer p {
    margin: 0.5rem;
}

/* Header Text */
header.mainheader div.headertext {
    display: block;
    vertical-align: top;
    color: #555555;
    font-size: 1.1rem;
    font-family: 'Open Sans', tahoma, arial, sans-serif;
}

/* Icons Upload */
.icons_add img,
.uploadsicons img {
    max-width: 100px;
}

/* Link Tiles */
div.linkwrap {
    position: relative;
    display: block;
}

div.linkwrap a span {
    position: relative;
    z-index: 1;
}

div.link-overlay {
    z-index: 3;
    background: rgba(255,255,255,0.1);
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    pointer-events: auto;
    overflow: hidden;
    transition: background 0.3s ease;
}

div.link-overlay:hover {
    background: rgba(255,255,255,0.4);
}

div.linktext {
    padding-top: unset;
    padding-left: unset;
    padding-right: 1rem;
    padding-bottom: unset;
    z-index: 2;
    background: rgba(0,0,0,0.3);
    position: absolute;
    bottom: 20%;
    left: 0;
    height: 30%;
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: right;
    align-items: center;
}

div.linktext span {
    display: inline;
    vertical-align: middle;
    color: white;
    line-height: 1;
    font-size: calc(70% + 1vw);
}

/* Image & Text Wrappers */
div.imgwrap,
div.textwrap {
    display: inline-block;
    vertical-align: top;
    position: relative;
    height: 100%;
}

.textwrap:not(.imgleft):not(.imgright),
.imgwrap:not(.imgleft):not(.imgright) {
    width: 100%;
}

li.nobrd.nobgc article .textwrap,
li.nobrd.nobgc article .textwrap h3 {
    padding: 0;
}

div.textwrap {
    padding: 0 1rem;
}

div.textwrap h3:first-child,
div.textwrap p:first-child {
    padding-top: 1rem;
}

div.textwrap h3:last-child,
div.textwrap p:last-child,
div.textwrap div:last-child {
    padding-bottom: 1rem;
}

div.linkwrap a div.slider-containercss button {
    opacity: 0;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Desktop Anpassungen */
@media screen and (min-width: 768px) {
    * {
        text-align: center;
    }

    header.mainheader div p,
    header.mainheader h2 {
        padding: 0;
    }

    header.mainheader div p {
        margin-top: 0;
        margin-bottom: 1rem;
    }

    div.headerwrap.mainheader_center header.mainheader {
        margin-left: 1.041666666667%;
        margin-right: 1.041666666667%;
    }

    header.mainheader a {
        text-decoration: none;
    }

    div.g-recaptcha div {
        margin: 0;
    }

    li.articlewrap article table tr td,
    li.articlewrap article table tr td:first-of-type {
        text-align: left;
    }

    li.nobrd article .textwrap.imgright {
        padding-top: 0;
        padding-right: 1rem;
    }

    li.nobrd article div.textwrap.imgleft {
        padding-top: 0;
        padding-left: 1rem;
    }

    li.nobrd article .textwrap.imgtop {
        padding-top: 1rem;
    }

    li.nobrd article .textwrap.imgbottom {
        padding-bottom: 1rem;
    }

    div.wrap aside {
        float: right;
        padding-left: 20px;
        border-left: 1px solid #dddddd;
    }

    main div.fullscreen {
        width: 100%;
        clear: both;
    }

    main img.fullscreen {
        display: table;
        margin: 0 auto;
    }

    main h3,
    aside h3 {
        border-top: 0;
    }

    div.wrap main section#content header.mainheader {
        border-bottom: 0 !important;
    }

    form h3 {
        border-top: 1px solid #dddddd;
    }

    form h3:first-of-type {
        border-top: 0;
    }

    section#content ul li {
        /* border-bottom: 0; */
    }

    div.wrap main section#content article.grid1,
    div.wrap main section#content article.grid2,
    div.wrap main section#content article.grid3,
    div.wrap main section#content article.grid4,
    div.wrap main section#content article.grid5,
    div.wrap main section#content article.grid6,
    div.wrap main section#content article.grid7,
    div.wrap main section#content article.grid8,
    div.wrap main section#content article.grid9,
    div.wrap main section#content article.grid10,
    div.wrap main section#content article.grid11 {
        margin-top: 0;
        padding-top: 0;
    }

    div.wrap main section#content article:first-of-type {
        margin-top: 0;
        padding-top: 0;
    }

    div.wrap main section#content article div.contact {
        border-right: 1px solid #dddddd;
        height: 100%;
    }

    div.wrap main section#content article div.contact:last-of-type {
        border-right: 0;
    }

    div.employeephoto {
        width: auto;
        margin-right: 2rem;
    }
}