html * {
    -webkit-text-size-adjust: none;
}

#invisible,
.invisible {
    display: none;
}

@font-face {
    font-family: "calligraph";
    src: url("../fonts/calligraph421-bt-roman-webfont.ttf") format("truetype");
}

@media print {
    .no-print,
    .no-print * {
        display: none !important;
    }
}

#printMenu {
    padding: 3% 5% 3% 5%;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    font-size: 1.5em;
}

#printMenu a {
    font-weight: bold;
    text-decoration: underline;
    color: #002443;
}

#printMenu a:hover {
    font-weight: bold;
    text-decoration: underline;
    color: #304e67;
}

/*
Colors nach Design Layout Reinhard:


Background-Content: #fff6DC; lighter #E6DAB8 heavier
Background-Content: #fff2cd; normal

Background-MainNav: #002443;
Background-Footer: #002443;
Background-FooterBoxen: #3b611e;


HOME:
Headline: #bc5f0b;
subHeadline: #00396c;

Color nach eigenem Ermessen:

Background-SubNav: #304E67;
*/

body {
    margin: 0;
    padding: 0;
    font: 62.5% Verdana, Geneva, "DejaVu Sans", sans-serif;
    text-align: center;
    color: #000000;
    background-image: url("/imgs/backgrounds/background01.jpg");
    background-size: 100%;
    background-repeat: no-repeat;
    background-color: #bc5f0b;
}

/*-----------------------
------CONTAINER----------
-----------------------*/

#container {
    margin: 2% auto;
    max-width: 980px;
    width: 100%;
    text-align: left;
    background-color: #fff8e6;
    font-size: inherit;
    overflow: auto;
    border-radius: 10px;
    transition: margin 0.3s, border-radius 0.3s;
}

@media only screen and (max-width: 979px) {
    #container {
        margin: 0px auto;
        border-radius: 0px;
    }
}
@media only screen and (max-width: 799px) {
    #container {
        margin-bottom: 50px;
    }
} /*Because of the mobile footer*/

/*-----------------------
------Header-------------
-----------------------*/

#header {
    width: 100%;
    height: 190px;
    background-size: 980px 190px;
    background-image: url("/imgs/headers/header_standard_1.jpg");
    background-repeat: no-repeat;
    background-position: top right;
    transition: position 0.3s, height 0.3s, background-position 0.3s, padding 0.3s;
}
@media screen and (min-width: 800px) and (max-width: 979px) {
}
@media screen and (min-width: 600px) and (max-width: 799px) {
    #header {
        position: relative;
        z-index: 0;
        height: auto;
        padding: 1%;
        box-sizing: border-box;
        background-position: center right;
    }
}
@media screen and (min-width: 400px) and (max-width: 799px) {
    #header {
        position: relative;
        z-index: 0;
        height: auto;
        padding: 1%;
        box-sizing: border-box;
        background-position: center;
    }
}
@media screen and (max-width: 399px) {
    #header {
        position: relative;
        z-index: 0;
        height: auto;
        padding: 1%;
        box-sizing: border-box;
        background-position: center;
    }
}

#header .logoWrapper {
    background-color: rgba(255, 255, 255, 0.85);
    width: 35%;
    height: 100%;
    box-shadow: 2em 0em 2em 1em rgba(255, 255, 255, 0.85);
    transform: padding 0.3s, width 0.3s, box-shadow 0.3s, border-radius 0.3s;
}
@media screen and (min-width: 800px) and (max-width: 979px) {
    #header .logoWrapper {
        padding-left: 5px;
    }
}
@media screen and (min-width: 600px) and (max-width: 799px) {
    #header .logoWrapper {
        width: 100%;
        box-shadow: none;
        padding: 1%;
        box-sizing: border-box;
        border-radius: 20px;
    }
}
@media screen and (min-width: 400px) and (max-width: 599px) {
    #header .logoWrapper {
        width: 100%;
        box-shadow: none;
        padding: 1%;
        box-sizing: border-box;
        border-radius: 20px;
    }
}
@media screen and (max-width: 399px) {
    #header .logoWrapper {
        width: 100%;
        box-shadow: none;
        padding: 1%;
        box-sizing: border-box;
        border-radius: 20px;
    }
}

#header .logoImg {
    margin: 1% 25% 0% 25%;
    height: 120px;
    width: auto;
    transition: margin 0.3s, position 0.3s, height 0.3s, width 0.3s;
}
@media screen and (min-width: 800px) and (max-width: 979px) {
}
@media screen and (min-width: 600px) and (max-width: 799px) {
    #header .logoImg {
        display: block;
        position: relative;
        margin: auto;
        height: auto;
        width: 90px;
    }
}
@media screen and (min-width: 400px) and (max-width: 599px) {
    #header .logoImg {
        display: block;
        position: relative;
        margin: auto;
        height: auto;
        width: 90px;
    }
}
@media screen and (max-width: 399px) {
    #header .logoImg {
        display: block;
        position: relative;
        margin: auto;
        height: auto;
        width: 90px;
    }
}

#header h2 {
    margin: 0 0 0 2%;
    font-size: 2.7em;
    font-weight: normal;
    font-family: "calligraph";
    color: #bc5f0b;
    transform: font-size 0.3s, margin 0.3s, width 0.3s, text-align 0.3s;
}
@media screen and (min-width: 800px) and (max-width: 979px) {
    #header h2 {
        font-size: 2.65em;
    }
}
@media screen and (min-width: 600px) and (max-width: 799px) {
    #header h2 {
        font-size: 4.5em;
        margin: 0 0 0 0;
        width: 100%;
        text-align: center;
    }
}
@media screen and (min-width: 400px) and (max-width: 599px) {
    #header h2 {
        font-size: 3.5em;
        margin: 0 0 0 0;
        width: 100%;
        text-align: center;
    }
}
@media screen and (max-width: 399px) {
    #header h2 {
        font-size: 2.5em;
        margin: 0 0 0 0;
        width: 100%;
        text-align: center;
    }
}

#header h1 {
    margin: 0 0 0 2%;
    font-size: 1.5em;
    font-weight: normal;
    color: #3b611e;
    transform: font-size 0.3s, margin 0.3s, width 0.3s, text-align 0.3s;
}
@media screen and (min-width: 800px) and (max-width: 979px) {
    #header h1 {
        font-size: 1.45em;
    }
}
@media screen and (min-width: 600px) and (max-width: 799px) {
    #header h1 {
        font-size: 2.5em;
        margin: 0 0 0 0;
        width: 100%;
        text-align: center;
    }
}
@media screen and (min-width: 400px) and (max-width: 599px) {
    #header h1 {
        font-size: 2em;
        margin: 0 0 0 0;
        width: 100%;
        text-align: center;
    }
}
@media screen and (max-width: 399px) {
    #header h1 {
        font-size: 1.5em;
        margin: 0 0 0 0;
        width: 100%;
        text-align: center;
    }
}

#header a {
    text-decoration: none;
}

/*-----------------------
------Some Globals-------
-----------------------*/

.text-center {
    text-align: center;
}
.left {
    float: left;
}
.right {
    float: right;
}
.clear {
    clear: both;
}
.fancyFont {
    font-family: "calligraph";
}
.noDisplay {
    display: none;
}
ul,
li,
input,
select,
th,
td,
table {
    font-size: inherit;
}
.width100 {
    width: 100%;
}
.width90 {
    width: 90%;
}
.width80 {
    width: 80%;
}
.width70 {
    width: 70%;
}
.width65 {
    width: 65%;
}
.width60 {
    width: 60%;
}
.width55 {
    width: 55%;
}
.width50 {
    width: 50%;
}
.width40 {
    width: 40%;
}
.width30 {
    width: 30%;
}
.width25 {
    width: 25%;
}
.width20 {
    width: 20%;
}
.width10 {
    width: 10%;
}
.red {
    color: red;
}
.green {
    color: #3b611e;
}
.subtext {
    font-size: 0.8em;
}

/*---------------------
-----MAINNAV-----------
---------------------*/

#mainnav {
    background-color: #002443;
}
@media screen and (min-width: 800px) and (max-width: 979px) {
}
@media screen and (min-width: 450px) and (max-width: 799px) {
    #mainnav {
        position: relative;
        z-index: 1;
    }
}
@media screen and (max-width: 449px) {
    #mainnav {
        position: relative;
        z-index: 1;
    }
}

#mainnav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

#mainnav li {
    float: left;
    padding: 0;
    margin: 0;
}

#mainnav li a {
    display: block;
    height: 44px;
    text-align: center;
    font-size: 1.55em;
    line-height: 44px;
    text-decoration: none;
    background-color: #002443;
    color: #ffffff;
    transition: background-color 0.3s, font-size 0.3s, height 0.3s, line-height 0.3s, width 0.3s;
}
@media screen and (min-width: 800px) and (max-width: 979px) {
    #mainnav li a {
        font-size: 1.5em;
        height: 44px;
        line-height: 44px;
    }
}
@media screen and (min-width: 450px) and (max-width: 799px) {
    #mainnav li a {
        font-size: 1.5em;
        height: 44px;
        line-height: 44px;
    }
}
@media screen and (max-width: 449px) {
    #mainnav li a {
        font-size: 1.5em;
        height: 44px;
        line-height: 44px;
        border-bottom: 3px solid #304e67;
    }
}

#mainnav li.workshops {
    width: 20%;
}
#mainnav li.haeuser {
    width: 20%;
}
#mainnav li.dozenten {
    width: 20%;
}
#mainnav li.aboutWorkshops {
    width: 20%;
}
#mainnav li.aboutUs {
    width: 20%;
}
@media screen and (min-width: 800px) and (max-width: 979px) {
    #mainnav li.workshops {
        width: 20%;
    }
    #mainnav li.haeuser {
        width: 19%;
    }
    #mainnav li.dozenten {
        width: 19%;
    }
    #mainnav li.aboutWorkshops {
        width: 24%;
    }
    #mainnav li.aboutUs {
        width: 18%;
    }
}
@media screen and (min-width: 450px) and (max-width: 799px) {
    #mainnav li.workshops {
        width: 33%;
    }
    #mainnav li.haeuser {
        width: 34%;
    }
    #mainnav li.dozenten {
        width: 33%;
    }
    #mainnav li.aboutWorkshops {
        width: 50%;
    }
    #mainnav li.aboutUs {
        width: 50%;
    }
}
@media screen and (max-width: 449px) {
    #mainnav li.workshops {
        width: 100%;
    }
    #mainnav li.haeuser {
        width: 100%;
    }
    #mainnav li.dozenten {
        width: 100%;
    }
    #mainnav li.aboutWorkshops {
        width: 100%;
    }
    #mainnav li.aboutUs {
        width: 100%;
    }
}

#mainnav li a.active {
    background-color: #304e67;
    font-weight: bold;
}

#mainnav li a:hover {
    background-color: #304e67;
}

#mainnav ul ul {
    display: none;
    position: absolute;
    z-index: 999;
    margin-left: 5px;
}

#mainnav li li {
    float: none;
}

#mainnav li li a {
    background-color: #304e67;
    color: #ffffff;
    text-align: left;
    padding: 0px 24px 0px 18px;
    font-size: 1.35em;
    height: 38px;
    line-height: 38px;
    width: auto;
    border-left: 1px solid #002443;
    border-right: 1px solid #002443;
    border-top: 1px dotted #000000;
    border-collapse: collapse;
    border-bottom: 0px solid #000;
}
@media screen and (min-width: 800px) and (max-width: 979px) {
    #mainnav li li a {
        font-size: 1.3em;
        height: 34px;
        line-height: 34px;
    }
}
@media screen and (min-width: 600px) and (max-width: 799px) {
    #mainnav li li a {
        font-size: 1.3em;
        height: 34px;
        line-height: 34px;
    }
}
@media screen and (min-width: 400px) and (max-width: 599px) {
    #mainnav li li a {
        font-size: 1.3em;
        height: 34px;
        line-height: 34px;
    }
}
@media screen and (max-width: 399px) {
    #mainnav li li a {
        font-size: 1.3em;
        height: 34px;
        line-height: 34px;
    }
}

#mainnav li li a.active {
    background-color: #6e8395;
    font-weight: bold;
}

#mainnav li li a:hover {
    background-color: #6e8395;
}

#mainnav li li a.last {
    border-bottom: 1px dotted #000000;
}

* html li li {
    display: inline;
} /* IE6 Bugfix... */

/*---------------------
-----CONTENT GENERAL---
---------------------*/

@media only screen and (max-width: 599px) {
    #contents .mobilecenter {
        text-align: center;
    }
}

#contents {
    float: left;
    box-sizing: border-box;
    width: 68%;
    padding: 40px 20px 60px 36px;
    overflow: hidden;
    font-size: 1.4em; /*hoho*/
    transition: padding 0.3s, width 0.3s;
}

#contents.full {
    width: 100%;
    padding: 40px 36px 60px 36px;
}

@media screen and (min-width: 800px) and (max-width: 979px) {
    #contents {
        padding: 36px 18px 55px 20px;
    }
}
@media screen and (min-width: 600px) and (max-width: 799px) {
    #contents {
        padding: 30px 16px 55px 16px;
        width: 100%;
    }
}
@media screen and (min-width: 400px) and (max-width: 599px) {
    #contents {
        padding: 25px 12px 45px 12px;
        width: 100%;
    }
}
@media screen and (max-width: 399px) {
    #contents {
        padding: 20px 10px 45px 10px;
        width: 100%;
    }
}

#contents p {
    text-align: left;
    line-height: 1.5em;
    hyphens: auto;
    -webkit-hyphens: auto;
    margin: 1.5em 0;
}

#contents ul {
    padding: 0% 0% 0% 1.2em; /*UL comes standard with 40-left*/
    margin: 1% 0 1% 0; /*UL comes standard with 14top, 14bottom*/
    line-height: 1.5em;
}

#contents a {
    color: #002443;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s;
}

#contents a:hover {
    color: #304e67;
    font-weight: bold;
    text-decoration: none;
}

#contents h2 {
    margin-top: 1.3em;
    font-size: 1.7em;
    font-family: "calligraph";
    color: #3b611e;
    text-shadow: 1px 2px 2px rgba(59, 97, 30, 0.2);
}
@media screen and (min-width: 800px) and (max-width: 979px) {
    #contents h2 {
        font-size: 1.7em;
        margin-top: 1.3em;
    }
}
@media screen and (min-width: 600px) and (max-width: 799px) {
    #contents h2 {
        font-size: 1.65em;
        margin-top: 1.25em;
    }
}
@media screen and (min-width: 400px) and (max-width: 599px) {
    #contents h2 {
        font-size: 1.6em;
        margin-top: 1.2em;
        text-align: center;
    }
}
@media screen and (max-width: 399px) {
    #contents h2 {
        font-size: 1.55em;
        margin-top: 1.15em;
        text-align: center;
    }
}

#contents h4 {
    font-size: 1.15em;
    margin: 2em 0 1em 0;
    font-weight: 600;
}

#contents h5 {
    margin: 1em 0 1em 0;
    font-weight: bold;
    font-size: 1.05em;
}

#contents a img {
    transition: background-color 0.3s;
}

#contents a img:hover {
    background-color: #304e67;
}

#contents hr {
    border-top: 1px solid #e6dab8;
}

/*Backlink führst zurück zur letzte Eltern-Seite, Design passt, nur auf Mobiles muss es mittig*/
@media only screen and (max-width: 599px) {
    .backLink {
        text-align: center;
    }
}

/*---------------------
-----SIDEBAR GENERAL---
---------------------*/

#sidebar {
    float: right;
    width: 32%;
    padding: 4em 3em 2em 3em;
    box-sizing: border-box;
    overflow: auto;
    font-size: 1.2em;
    line-height: 1.5em;
    color: #666666;
    background-color: #fff2cd;
    border-left: 1px solid #fff8e6;
    border-bottom: 1px solid #fff8e6;
    box-shadow: inset 16px 0 8px -8px #fff8e6, inset 0 -16px 8px -8px #fff8e6;
    border-bottom-left-radius: 5px;
    transition: box-shadow 0.3s, padding 0.3s, width 0.3s;
    display: flex;
    flex-flow: column nowrap;
    justify-content: flex-start;
    align-items: flex-start;
    align-content: flex-start;
}
@media only screen and (max-width: 979px) {
    #sidebar {
        padding: 4em 2em 2em 2em;
        box-shadow: none;
    }
}
@media only screen and (max-width: 799px) {
    #sidebar {
        padding: 4em 3em 2em 3em;
        width: 100%;
        align-items: center;
        align-content: center;
        font-size: 1.3em;
    }
}
@media only screen and (max-width: 499px) {
    #sidebar {
        padding: 1em;
    }
}

#sidebar h2 {
    font-size: 1.75em;
    font-family: "calligraph";
    color: #888;
    padding: 0px 0px 0px 28px;
    margin-bottom: 12px;
    margin-left: 6px;
}

@media only screen and (max-width: 799px) {
    #sidebar h2 {
        text-align: center;
        padding: 0;
    }
}

#sidebar h4 {
    font-size: 1.3em;
    font-weight: bold;
}

#sidebar .panel {
    margin: 0 0 1em 0;
    /*padding: 0.5em 0;*/
    background-image: url("../imgs/quote_bg.png");
    background-repeat: no-repeat;
    background-size: 50px auto;
    transition: width 0.3s, border-bottom 0.3s, margin 0.3s, padding 0.3s;
}

@media only screen and (max-width: 799px) {
    #sidebar .panel {
        background-position: center top;
        padding-top: 35px;
    }

    #sidebar #servicePanel {
        display: none;
    }
}

#sidebar .panel ul {
    padding-left: 15px;
}

#sidebar p {
    hyphens: auto;
    -webkit-hyphens: auto;
}

@media only screen and (max-width: 799px) {
    #sidebar p.linkList {
        text-align: center;
    }
}

#sidebar a {
    color: #666666;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

#sidebar a:hover {
    color: #999999;
    text-decoration: none;
    font-weight: bold;
}

#sidebar a img {
    transition: background-color 0.3s;
}

#sidebar a img:hover {
    background-color: #304e67;
}

/*---------------------
-----SIDEBAR SPECIALS--
---------------------*/

#sidebar .news-divider-top {
    height: 10px;
    width: 100%;
    clear: both;
}

#sidebar .news-divider-bottom {
    border-bottom: 1px dotted #f7d092;
    padding-bottom: 5px;
    margin: 0px 30% 5px 30%;
}

#sidebar .quote_link,
#sidebar .quote_link a,
#sidebar .quote_link a:hover {
    font-weight: normal !important;
}

#sidebar .quote_text {
    font-style: italic;
}

#sidebar .quote_workshop,
#sidebar .quote_workshop a,
#sidebar .quote_workshop a:hover {
    font-size: 0.8em;
}

#sidebar img {
    max-width: 100%;
}

#sidebar .newshead {
    text-decoration: underline;
    font-size: 1.05em;
}

#sidebar .subtext {
    font-size: 0.8em;
}

/*---------------------
-----CONTENT/SIDEBAR---
---------------------*/

#contents h1,
#sidebar h1 {
    font-size: 2.4em;
    font-family: "calligraph";
    color: #bc5f0b;
    text-shadow: -16px -8px 10px rgba(247, 208, 146, 0.6);
    background-image: url("../imgs/quote_bg.png");
    background-repeat: no-repeat;
    background-size: 100px auto;
    background-position: 0px 0px;
    margin: 0px;
    padding: 35px 0px 0px 75px;
    line-height: 1.2em;
}

@media screen and (min-width: 800px) and (max-width: 979px) {
    #contents h1,
    #sidebar h1 {
        font-size: 2.2em;
    }
}
@media screen and (min-width: 600px) and (max-width: 799px) {
    #contents h1,
    #sidebar h1 {
        font-size: 2.1em;
    }
}
@media screen and (min-width: 400px) and (max-width: 599px) {
    #contents h1,
    #sidebar h1 {
        font-size: 2em;
        padding: 40px 0px 0px 0px;
        text-align: center;
        background-size: 50px;
        background-position: center top;
        text-shadow: -12px -6px 10px rgba(247, 208, 146, 0.6);
    }
}
@media screen and (max-width: 399px) {
    #contents h1,
    #sidebar h1 {
        font-size: 1.9em;
        padding: 40px 0px 0px 0px;
        text-align: center;
        background-size: 50px;
        background-position: center top;
        text-shadow: -10px -5px 10px rgba(247, 208, 146, 0.6);
    }
}

#contents h3,
#sidebar h3 {
    font-size: 1.35em;
    text-transform: uppercase;
    font-weight: normal;
    margin: 2em 0 1em 0em;
}

#contents img,
#sidebar img {
    border: 2px solid #002443;
    padding: 2px;
    background-color: #fff2cd;
    box-sizing: border-box;
}

#contents .imgLeft,
#sidebar .imgLeft {
    float: left;
    padding: 0px 20px 20px 0px;
}

#contents .imgRight,
#sidebar .imgRight {
    float: right;
    padding: 0px 0px 20px 20px;
}

/*---------------------
-----CONTENT FOOTER----
---------------------*/
/*Region below workshop description with dotted line -> Service (BACK, PRINT, SPREAD WORD)*/

#contentFoot {
    padding-top: 5px;
    border-top: 1px dotted #002443;
}

/*---------------------
------Footer-----------
---------------------*/

#footer {
    background-color: #002443;
    background: url("../imgs/footerbackground_1006x400.jpg");
    background-position: top center;
    clear: both;
    overflow: auto;
    padding: 3em 2em;
    color: white;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: stretch;
    align-content: flex-start;
    transition: background 0.3s;
}
@media only screen and (max-width: 979px) {
    #footer {
        background: #002443;
        padding: 2em 1em;
    }
}

#footer a {
    color: #b2b2b2;
    text-decoration: none;
    font-weight: normal;
}

#footer a:hover {
    color: white;
    text-decoration: none;
    font-weight: normal;
}

#footer .headline {
    font-size: 1.5em;
    font-weight: bold;
}

#footer #box1 {
    order: 1;
    flex-grow: 2;
    transition: flex-grow 0.3s;
}
#footer #box2 {
    order: 2;
    flex-grow: 2;
    transition: flex-grow 0.3s;
}
#footer #box3 {
    order: 3;
    flex-grow: 4;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: space-around;
    align-items: start;
    transition: flex-grow 0.3s, align-item 0.3s;
}
#footer #box3 img {
    width: 110px;
    height: auto;
    padding: 3px;
}
#footer #box4 {
    order: 4;
    flex-grow: 1;
    transition: flex-grow 0.3s;
}

#footer .adressbox {
    font-size: 1.4em;
    line-height: 1.5em;
    padding: 0 1em;
    color: #b2b2b2;
}
#footer .linkbox {
    font-size: 1.3em;
    line-height: 1.6em;
    padding: 0 1em;
    transition: text-align 0.3s, margin 0.3s;
}

@media screen and (min-width: 800px) and (max-width: 979px) {
    #footer #box1 {
        flex-grow: 1;
    }
    #footer #box2 {
        flex-grow: 1;
    }
    #footer #box3 {
        flex-grow: 1;
    }
    #footer #box4 {
        flex-grow: 1;
    }
}

@media screen and (min-width: 500px) and (max-width: 799px) {
    #footer #box1 {
        order: 1;
        flex-grow: 1;
    }
    #footer #box2 {
        order: 2;
        flex-grow: 1;
    }
    #footer #box3 {
        order: 3;
        flex-grow: 1;
        align-items: center;
    }
    #footer .linkbox {
        text-align: center;
        margin: 0 0 15px 0;
    }
}
@media screen and (max-width: 499px) {
    #footer #box1 {
        order: 1;
        flex-grow: 1;
    }
    #footer #box2 {
        order: 2;
        flex-grow: 1;
    }
    #footer #box3 {
        order: 3;
        flex-grow: 1;
        align-items: center;
    }
    #footer .linkbox {
        width: 100%;
        text-align: center;
        margin: 0 0 15px 0;
    }
}

@media screen and (min-width: 800px) and (max-width: 979px) {
}
@media screen and (min-width: 600px) and (max-width: 799px) {
    #footer .adressbox {
        width: 100%;
        margin: 0px;
        text-align: center;
        border-top: 1px solid #304e67;
        padding-top: 20px;
    }
}
@media screen and (min-width: 400px) and (max-width: 599px) {
    #footer .adressbox {
        width: 100%;
        margin: 0px;
        text-align: center;
        border-top: 1px solid #304e67;
        padding-top: 20px;
    }
}
@media screen and (max-width: 399px) {
    #footer .adressbox {
        width: 100%;
        margin: 0px;
        text-align: center;
        border-top: 1px solid #304e67;
        padding-top: 20px;
    }
}

/*---------------------
----FIXED FOOTER FOR MOBILE DEVICES
---------------------*/

#mobileFooter {
    display: none;
}

@media only screen and (max-width: 799px) {
    #mobileFooter {
        position: fixed;
        left: 0px;
        bottom: 0px;
        z-index: 80;
        height: 55px;
        width: 100%;
        background: #002443;
        border-top: 1px solid #304e67;
        display: flex;
        flex-flow: row wrap;
        justify-content: space-around;
        align-items: flex-end;
    }

    #mobileFooter a {
        font-size: 1.3em;
        color: #b2b2b2;
        text-decoration: none;
        text-align: center;
        height: 55px;
        display: flex;
        flex-flow: column nowrap;
        justify-content: space-evenly;
        align-items: center;
    }

    #mobileFooter a img {
        max-height: 16px;
    }
}

/*---------------------
----CONTENT: HOME------
---------------------*/

#slideshowWrapper {
    width: 50%;
    position: relative;
    z-index: 1;
    padding-bottom: 10px;
}
@media screen and (min-width: 800px) and (max-width: 979px) {
}
@media screen and (min-width: 600px) and (max-width: 799px) {
}
@media screen and (min-width: 400px) and (max-width: 599px) {
}
@media screen and (max-width: 399px) {
    #slideshowWrapper {
        width: 100%;
    }
}

#slideshowWrapper.right {
    float: right;
    margin: 0em 0 1em 1em;
}

#slideshowWrapper.left {
    float: left;
    margin: 0em 1em 1em 0;
}

.slider {
    position: relative;
    height: 200px;
    margin: 1%;
}
@media screen and (min-width: 800px) and (max-width: 979px) {
}
@media screen and (min-width: 600px) and (max-width: 799px) {
    .slider {
        height: 200px;
    }
}
@media screen and (min-width: 400px) and (max-width: 599px) {
}
@media screen and (max-width: 399px) {
    .slider {
        padding: 25px 0px 30px 0px;
    }
}

.slider img {
    width: calc(100% - 8px);
    height: auto;
    position: absolute;
    z-index: 1;
    box-shadow: #000 0em 0em 0em; /*HACK FOR JQUERY: Img shrink on start on fading out no it stays normal*/
}

.slider img.active {
    z-index: 3;
}

#contents .feedback_panel {
    margin: 0em 0;
    width: 100%;
    padding: 2em 1.5em 1em 3.5em;
    background-image: url("../imgs/quote_bg.png");
    background-repeat: no-repeat;
    background-size: 70px auto;
    background-position: 0% 7%;
    box-sizing: border-box;
    /*border-bottom: 1px dotted #bc5f0b;
	border-top: 1px dotted #bc5f0b;*/
    font-size: 0.95em;
}

#contents .feedback_panel.home {
    border-bottom: 1px dotted #bc5f0b;
    border-top: 1px dotted #bc5f0b;
}

#contents .feedback_text {
    /*font-family: 'calligraph';*/
    padding: 0;
    font-style: italic;
    line-height: 1.5em;
}

#contents .feedback_subtext {
    padding: 5px;
    font-size: 0.85em;
}

/*---------------------
-----------------------
-----Haeuser--------------
-----------------------*/

#haeuserListe p {
    text-align: left;
}

#haeuserListe .haus_box {
    width: 100%;
    overflow: hidden;
    margin: 0% 0% 20px 0%;
    padding: 0% 0% 20px 0%;
    border-bottom: 1px solid #f7d092;
}

#haeuserListe .haus_img {
    width: 47%;
    float: left;
    margin: 0px 3% 0px 0px;
    box-sizing: border-box;
    transition: width 0.3s, margin 0.3s;
}
@media screen and (min-width: 800px) and (max-width: 979px) {
}
@media screen and (min-width: 600px) and (max-width: 799px) {
}
@media screen and (min-width: 500px) and (max-width: 599px) {
}
@media screen and (max-width: 499px) {
    #haeuserListe .haus_img {
        width: 100%;
        margin: 0px 0px 10px 0px;
    }
}

#haeuserListe .haus_img img {
    width: 100%;
    transition: background-color 0.3s;
}

#haeuserListe .haus_img img:hover {
    background-color: #304e67;
}

#haeuserListe .haus_textbody {
    width: 50%;
    float: left;
    transition: width 0.3s;
}
@media screen and (min-width: 800px) and (max-width: 979px) {
}
@media screen and (min-width: 600px) and (max-width: 799px) {
}
@media screen and (min-width: 500px) and (max-width: 599px) {
}
@media screen and (max-width: 499px) {
    #haeuserListe .haus_textbody {
        width: 100%;
    }
}

#haeuserListe .haus_textbody .subtext {
    font-size: 0.8em;
}

#haeuserListe h3 {
    font-size: 1.2em;
    font-family: Verdana, Geneva, "DejaVu Sans", sans-serif;
    text-decoration: none;
    font-weight: bold;
    margin-top: 0px;
}

/*---------------------
-----------------------
-----Haus-Seite--------
-----------------------*/

#haus iframe {
    width: 100%;
    height: 400px;
}

/*---------------------
-----Dozenten----------
---------------------*/

#dozenten {
    overflow: auto;
}

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

#dozenten h3 a,
#dozenten h3 a:hover {
    color: black;
    font-weight: normal;
}

#dozenten .dozent_box {
    width: 29%;
    margin: 0% 2% 20px 2%;
    box-sizing: border-box;
    float: left;
    transition: width 0.3s, margin 0.3s, padding 0.3s;
}
@media screen and (min-width: 800px) and (max-width: 979px) {
    #dozenten .dozent_box {
        width: 29%;
        margin: 0% 2% 20px 2%;
    }
}
@media screen and (min-width: 600px) and (max-width: 799px) {
    #dozenten .dozent_box {
        width: 29%;
        margin: 0% 2% 20px 2%;
    }
}
@media screen and (min-width: 400px) and (max-width: 599px) {
    #dozenten .dozent_box {
        width: 46%;
        margin: 0% 2% 20px 2%;
    }
}
@media screen and (max-width: 399px) {
    #dozenten .dozent_box {
        width: 100%;
        margin: 0% 0% 20px 0%;
        padding: 0% 0% 20px 0%;
        border-bottom: 1px solid #f7d092;
    }
}

#dozenten .dozent_box img {
    position: relative;
    width: 100%;
    height: auto;
    transition: background-color 0.3s;
}

#dozenten .dozent_box img:hover {
    background-color: #304e67;
}

#dozenten .dozent_text {
    margin-top: 5px;
    text-align: center;
    font-weight: bold;
}
@media screen and (min-width: 800px) and (max-width: 979px) {
    #dozenten .dozent_text {
        font-size: 0.9em;
    }
}
/*---------------------
-----Dozent-Seite------
---------------------*/

#dozent .img_container {
    display: block;
    width: 100%;
    text-align: center;
    margin: 2em 0;
}

#dozent .img_container img {
    max-width: 512px;
    max-height: 350px;
    box-sizing: border-box;
}

@media only screen and (max-width: 550px) {
    #dozent .img_container img {
        max-width: 100%;
        max-height: default;
    }
}

/*---------------------
--WORKSHOP-ITEM-LISTE--
---------------------*/

#workshopList {
    margin: 1em 0;
}

#workshopList .item {
    border: 1px solid #002443;
    border-top: 3px solid #002443;
    margin: 10px 0% 10px 0%;
}

#workshopList .item_head a, a:hover /*General Link Look in head*/ {
    text-decoration: none;
}

#workshopList .item_head {
    border-left: 10px solid #002443;
    border-right: 30px solid #002443;
    background-color: #304e67;
    color: white;
    font-variant: small-caps;
    padding: 0.75em 0.75em;
    overflow: auto;
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-end;
    align-items: center;
    align-content: center;
}

@media only screen and (max-width: 550px) {
    #workshopList .item_head {
        border-left: 5px solid #002443;
        border-right: 15px solid #002443;
        padding: 0.75em 0.5em;
        justify-content: flex-end;
    }
}

#workshopList .item_head a {
    flex-grow: 1;
    flex-shrink: 1;
}

#workshopList .item_head h4 {
    text-decoration: none;
    margin: 0;
    font-size: 1.25em;
    line-height: 1em;
    transition: color 0.3s, font-size 0.3s;
}

/*Color Behaviour of Title*/
#workshopList .item_head h4 {
    color: #ffffff;
}
#workshopList .item_head h4:hover {
    color: #d8d8d8;
}
#workshopList .closed h4 {
    color: #999999 !important;
}
#workshopList .closed h4:hover {
    color: #e8e8e8 !important;
}

#workshopList .item_head .item_closed_flag {
    flex-grow: 0;
    flex-shrink: 0;
    font-weight: bold;
    padding-left: 0.75em;
    line-height: 2em;
}

#workshopList .item_subtext {
    text-align: left;
    clear: both;
    font-size: 0.75em;
    border-bottom: 1px dotted #304e67;
    background-color: #fff6dc;
    padding: 0.5em 1em;
    margin: 0px;
    transition: padding 0.3s;
}

#workshopList .item_body {
    background-color: #fff2cd;
    overflow: auto;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
    align-content: center;
    padding: 1em 0em;
}

@media only screen and (max-width: 550px) {
    #workshopList .item_body {
        justify-content: center;
        flex-flow: row wrap;
    } /* damit der button in die mitte rutscht */
}

#workshopList ul {
    order: 1;
    flex-grow: 1;
    box-sizing: border-box;
    float: left;
    padding: 0 0 0 24px; /*UL comes standard with 40-left*/
    margin: 0; /*UL comes standard with 14top, 14bottom*/
    line-height: 1.3em;
    font-size: 0.95em;
    transition: font-size 0.3s, padding 0.3s, width 0.3s, margin 0.3s;
}

@media only screen and (max-width: 550px) {
    #workshopList ul {
        width: 100%;
        margin-bottom: 1em;
    } /* damit die Liste die ganze Breite überspannt und nicht in der mitte steht */
}

#workshopList ul a {
    /*links inside the UL*/
    font-weight: bold;
    text-decoration: none;
}

#workshopList ul a:hover {
    /*links inside the UL*/
    font-weight: bold;
    text-decoration: none;
}

#workshopList .item_button {
    order: 2;
    flex-grow: 0;
    flex-shrink: 0;
    width: 200px;
    box-sizing: border-box;

    padding: 4px 10px;
    margin-right: 15px;
    text-align: center;
    text-decoration: none;
    line-height: 1.1em;

    border-radius: 8px;
    color: #002443;
    background-color: #fffaeb;
    border: 2px solid #304e67;
    border-left: 5px solid #002443;
    border-right: 5px solid #002443;
    transition: background-color 0.3s, color 0.3s, margin 0.3s, width 0.3s, font-size 0.3s;
}

@media only screen and (max-width: 550px) {
    #workshopList .item_button {
        margin-right: 0px;
    }
}

#workshopList .item_button:hover {
    color: white;
    background-color: #304e67;
    border: 2px solid #002443;
    border-left: 5px solid #002443;
    border-right: 5px solid #002443;
}

#workshopList .item_button_text {
    font-size: 0.9em;
    font-weight: bold;
}
#workshopList .item_button_subtext {
    font-size: 0.75em;
    font-weight: normal;
}

#workshopList .marked {
    color: #3b611e;
}

/*---------------------------
--WORKSHOP DESCRIPTION PAGE--
---------------------------*/

#workshop .hotbox {
    width: 39%;
    background-color: #fff2cd;
    border: 1px solid #002443;
    padding: 1em;
    margin: 0 1em 1em 0;
    position: relative;
    z-index: 2;
    transition: font-size 0.3s, width 0.3s;
    box-sizing: border-box;
    text-align: left;
    hyphens: auto;
    -webkit-hyphens: auto;
    font-size: 0.95em;
}
@media screen and (min-width: 800px) and (max-width: 979px) {
    #workshop .hotbox {
        font-size: 0.95em;
        width: 44%;
    }
}
@media screen and (min-width: 600px) and (max-width: 799px) {
    #workshop .hotbox {
        font-size: 1em;
        width: 41%;
    }
}
@media screen and (min-width: 450px) and (max-width: 599px) {
    #workshop .hotbox {
        width: 51%;
        font-size: 0.95em;
    }
}
@media screen and (max-width: 449px) {
    #workshop .hotbox {
        width: 100%;
        font-size: 1em;
        margin: 0 0 20px 0;
    }
}

#workshop .hotbox .item {
    margin: 5% 0% 5% 0%;
}
@media screen and (min-width: 800px) and (max-width: 979px) {
}
@media screen and (min-width: 600px) and (max-width: 799px) {
}
@media screen and (min-width: 450px) and (max-width: 599px) {
}
@media screen and (max-width: 449px) {
    #workshop .hotbox .item {
        margin: 4% 0% 4% 0%;
    }
}

#workshop .hotbox hr {
    background: #333;
    height: 1px;
    border: none;
}

#workshop .hotbox .subtext {
    font-size: 0.8em;
}

#workshop .hotbox .button {
    transition: all 0.3s;
    padding: 2% 4% 2% 4%;
    margin: 10% 0 7% 0;

    min-height: 32px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    justify-items: center;

    text-align: center;
    font-weight: bold;
    text-decoration: none;
    line-height: 1.1em;

    border-radius: 8px;

    color: #002443;
    background-color: #fffaeb;
    border: 2px solid #304e67;
    border-left: 5px solid #002443;
    border-right: 5px solid #002443;
}

#workshop .hotbox .button.disabled {
    opacity: 40%;
    color: #002443;
    background-color: #fffaeb;
    border: 2px solid #304e67;
    border-left: 5px solid #002443;
    border-right: 5px solid #002443;
}

#workshop .hotbox .button:hover {
    color: white;
    background-color: #304e67;
    border: 2px solid #002443;
    border-left: 5px solid #002443;
    border-right: 5px solid #002443;
}

#workshop .hotbox .button.disabled:hover {
    opacity: 40%;
    color: #002443;
    background-color: #fffaeb;
    border: 2px solid #304e67;
    border-left: 5px solid #002443;
    border-right: 5px solid #002443;
}

#workshop .hotbox .button .button_text {
    font-size: 1em;
}
#workshop .hotbox .button .button_subtext {
    font-size: 0.75em;
    font-weight: normal;
}

#workshop ul {
    margin: 0 0 0 1em;
    padding: 0;
}

#workshop ul li {
    left: 1em;
    padding-right: 1em;
    position: relative;
    z-index: 1;
}
​

/*---------------------
------aboutUs--------
---------------------*/

#aboutUs img {
    max-width: 30%;
    max-height: 200px;
}

#aboutUs img.left {
    float: left;
    margin: 0% 3% 10px 0%;
}

#aboutUs img.right {
    float: right;
    margin: 0% 0% 10px 3%;
}

/*---------------------
------Forms------------
---------------------*/

form {
    margin: 1em 0 1em 0;
}

#form {
    background-color: #fff2cd;
    border: 1px solid #002443;
}

#form .full {
    width: 100%;
}

#form .item {
    margin-bottom: 1.5em;
    padding: 0 1.5em;
    box-sizing: border-box;
}

#form table {
    margin-bottom: 1em;
}

#form h4 {
    padding: 0.75em 1em;
    text-decoration: none;
    margin-bottom: 1.5em;
    font-size: 1.5em;
    font-variant: small-caps;
    border-top: 1px dotted #002443;
    border-bottom: 1px dotted #002443;
    border-right: 30px solid #002443;
    border-left: 10px solid #002443;
}

#form h4.first {
    border-top: 0px dotted black;
    margin-top: 0;
}

#form h5 {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

#form .itemButton {
    margin: 2em 0;
    padding: 0 1em;
}

#form .itemButton .submitButton {
    padding: 1em 2em 1em 2em;
    font-weight: bold;
    border-radius: 8px;
    line-height: 1.1em;
    color: #002443;
    background-color: #fffaeb;
    border: 2px solid #304e67;
    border-left: 5px solid #002443;
    border-right: 5px solid #002443;
}

#form .itemButton .submitButton:hover {
    color: white;
    background-color: #304e67;
    border: 2px solid #002443;
    border-left: 5px solid #002443;
    border-right: 5px solid #002443;
    cursor: pointer;
}

#form .subtext {
    font-size: 0.8em;
}

#form .errorMsg {
    color: red;
    font-size: 0.9em;
}

#form textarea {
    width: 100%;
    box-sizing: border-box;
}

#form div.forceThird {
    width: 30%;
    margin: 0 1% 0 1%;
    box-sizing: border-box;
}

#form div.forceThird input {
    width: 100%;
    box-sizing: border-box;
}

#form .agbBox {
    width: 100%;
    height: 200px;
    box-sizing: border-box;
    overflow: auto;
    font-size: 1em;
    line-height: 1.2em;
    font-family: monospace;
    background-color: white;
    color: black;
    border: 1px solid darkgray;
    box-shadow: 1px 1px 1px 0 lightgray inset;
    padding: 2px 3px;
}

#form .roomtable {
    width: 100%;
    box-sizing: border-box;
    border-spacing: 0px 1px;
    border-collapse: separate;
}

#form .roomtable td {
    border-bottom: 1px dotted #002443;
    padding: 0.75em 0.5em;
    font-size: 1em;
}

#form .roomtable tr.head td {
    border-bottom: 2px double #002443;
    border-top: 1px dotted #002443;
    padding-left: 1em;
    padding-right: 1em;
    padding-top: 2em;
    background-color: #f5e5ba;
}

/* #form .roomtable tr:first-child td {
    border-bottom: 2px double #002443;
} */

#form .roomtable td:first-child {
    padding-left: 1em;
}

#form .roomtable td:last-child {
    padding-right: 1em;
}

@media only screen and (max-width: 599px) {
    #form .roomtable td {
        font-size: 0.85em;
    }
}
@media only screen and (max-width: 399px) {
    #form .roomtable td {
        font-size: 0.8em;
    }
}

#form .roomtable td.doppelzimmer,
#form .roomtable td.einzelzimmer {
    white-space: nowrap;
    vertical-align: top;
}

#form .roomtable td.doppelzimmer .pricetag,
#form .roomtable td.einzelzimmer .pricetag {
    font-weight: bold;
}

/* 
#form .roomtable td.option {
    width: 60%;
}

@media only screen and (max-width: 599px) {
    #form .roomtable td.option {
        width: 50%;
    }
}
@media only screen and (max-width: 399px) {
    #form .roomtable td.option {
        width: 45%;
    }
} */

/*#form .roomtable td.price {width: 20%;}
@media screen and (min-width: 800px) and (max-width: 979px) {}
@media screen and (min-width: 600px) and (max-width: 799px) {}
@media screen and (min-width: 400px) and (max-width: 599px) {
	#form .roomtable td.option {width: 50%;}
	#form .roomtable td.price {width: 25%;}
}
@media screen and (max-width: 399px) {
	#form .roomtable td.option {width: 45%;}
	#form .roomtable td.price {width: 27%;}
}
/

/*TABLE FOR ROOMS*/

#roomtable tr.bottom_border td {
    border-bottom: 1px dotted black;
}

#messageBox {
    background-color: #fff2cd;
    border: 1px solid #002443;
    margin-bottom: 1em;
}

.msg {
    box-sizing: border-box;
    background-repeat: no-repeat;
    background-size: 30px auto;
    background-position: 2% 2%;
    hyphens: auto;
    -webkit-hyphens: auto;
    text-align: left;
}

.success {
    color: green;
    background-image: url("../imgs/msgSuccess.png");
    padding: 0 1em 0 55px;
    font-weight: bold;
    min-height: 30px;
}

.error {
    color: red;
    background-image: url("../imgs/msgError.png");
    padding: 0 1em 0 55px;
    font-weight: bold;
    min-height: 30px;
}

.note {
    color: blue;
    background-image: url("../imgs/msgNote.png");
    padding: 0 1em 0 55px;
    font-weight: bold;
    min-height: 30px;
}

.neutral {
    padding: 0 1em 0 1em;
}

/*---------------------
-----------------------
-----Galerie----------
-----------------------*/

#gallery {
    /*Flex Props*/
    display: flex;
    flex-direction: column;
    row-gap: 12px;
    /*General Layout*/
    width: 100%;
}

#gallery .imgPanel {
    /*Flex Props*/
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-content: center;
    /*General Layout*/
    padding: 5px;
    /*background-color: blue;*/
}

#gallery .imgPanel img {
    /*Flex Props*/

    /*General Layout*/
    width: 100%;
    max-width: 512px;
    max-height: 512px;
}

/*---------------------
-----------------------
-----Popup Box-----
-----------------------*/

#popupBox .imgBox {
    position: absolute;
    top: 100px;
    left: 100px;
    display: none;
    z-index: 50;

    border: 2px solid #002443;
    background-color: #fff2cd;

    padding: 10px;
}

#popupBox .controlFrame {
    margin: auto;
}

#popupBox a {
    text-decoration: none;
    font-weight: bold;
}

#popupBox a:hover {
    text-decoration: none;
    font-weight: bold;
}

#popupBox .imgFrame {
    margin: auto;
    transform: rotate(0.02deg);
    -webkit-transform: rotate(0.02deg);
    -moz-transform: rotate(0.02deg);
}

/*--------------------------
-------LOADINGSCREEN--------
--------------------------*/

#loadingScreen {
    background-color: #fff2cd;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 200;
    opacity: 1;
}

#loadingScreen .headline {
    font-family: "calligraph";
    color: #bc5f0b;
    font-size: 1.7em;
}
@media screen and (min-width: 800px) and (max-width: 979px) {
}
@media screen and (min-width: 600px) and (max-width: 799px) {
    #loadingScreen .headline {
        font-size: 1.6em;
    }
}
@media screen and (min-width: 400px) and (max-width: 599px) {
    #loadingScreen .headline {
        font-size: 1.5em;
    }
}
@media screen and (max-width: 399px) {
    #loadingScreen .headline {
        font-size: 1.4em;
    }
}

#loadingScreen .subline {
    font-family: "calligraph";
    color: #3b611e;
    font-size: 2em;
    line-height: 1.2em;
}
@media screen and (min-width: 800px) and (max-width: 979px) {
}
@media screen and (min-width: 600px) and (max-width: 799px) {
    #loadingScreen .subline {
        font-size: 1.85em;
    }
}
@media screen and (min-width: 400px) and (max-width: 599px) {
    #loadingScreen .subline {
        font-size: 1.7em;
    }
}
@media screen and (max-width: 399px) {
    #loadingScreen .subline {
        font-size: 1.55em;
    }
}

#loadingMessage {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 10% 0 0 0;
    z-index: 201;
}
@media screen and (min-width: 800px) and (max-width: 979px) {
}
@media screen and (min-width: 600px) and (max-width: 799px) {
    #loadingMessage {
        margin-top: 15%;
    }
}
@media screen and (min-width: 400px) and (max-width: 599px) {
    #loadingMessage {
        margin-top: 20%;
    }
}
@media screen and (max-width: 399px) {
    #loadingMessage {
        margin-top: 25%;
    }
}

/*---------------------
------Magnifier--------
---------------------*/

#magBox {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 750px;
    height: auto;
    z-index: 100;
    box-sizing: border-box;
}

@media only screen and (max-width: 750px) {
    #magBox {
        width: 98%;
    }
}

#magImg {
    max-width: 750px;
    max-height: 600px;
    width: auto;
    height: auto;
    border: 2px solid #002443;
    padding: 2px;
    background-color: #fff2cd;
    box-sizing: border-box;
}

@media only screen and (max-width: 750px) {
    #magImg {
        max-width: 98%;
    }
}

@media only screen and (max-height: 600px) {
    #magImg {
        max-height: 570px;
    }
}
@media only screen and (max-height: 550px) {
    #magImg {
        max-height: 520px;
    }
}
@media only screen and (max-height: 500px) {
    #magImg {
        max-height: 470px;
    }
}
@media only screen and (max-height: 450px) {
    #magImg {
        max-height: 420px;
    }
}
@media only screen and (max-height: 400px) {
    #magImg {
        max-height: 370px;
    }
}
@media only screen and (max-height: 350px) {
    #magImg {
        max-height: 320px;
    }
}

#magMask {
    display: none;
    position: fixed;
    margin: auto;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 99;
    background-color: black;
    opacity: 0.5;
}

#magSub #magGalleryControls {
    text-align: center;
}

/*---------------------
----Gallery Magnifier--
---------------------*/

#galOverlay {
    display: none;
    position: fixed;
    margin: auto;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 100;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.65);
}

#galOverlay #galFrame {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    position: relative;
}

#galOverlay #galFrame a {
    color: white;
    text-decoration: none;
    width: 100px;
    height: 100%;
    color: white;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 3em;
    font-weight: bold;
    transition: width 0.3s, height 0.3s, font-size 0.3s, font-weight 0.3s;
}

#galOverlay #galFrame a:hover {
    color: #666666;
}

#galOverlay #galFrame #galFrameControlLeft {
    order: 1;
}

#galOverlay #galFrame #galImage {
    order: 2;
    max-width: 800px;
    max-height: 600px;
    padding: 5px 0px;
    background-color: rgba(0, 0, 0, 0.8);
    transition: width 0.3s, height 0.3s;
}

#galOverlay #galFrame #galFrameControlRight {
    order: 3;
}

#galOverlay #galFrame #galCaption {
    position: absolute;
    bottom: 20px;
    left: 120px;
    max-width: 560px;
    z-index: 102;
    color: rgba(255, 255, 255, 1);
    text-shadow: 1.5px 1.5px 1.5px rgba(0, 0, 0, 1);
    font-size: 1.5em; /*sdagae*/
    font-weight: bold;
    text-align: left;
    transition: font-size 0.3s, left 0.3s, bottom 0.3s;
}

#galOverlay #galFrame #galCounter {
    position: absolute;
    bottom: 20px;
    right: 120px;
    z-index: 102;
    color: rgba(255, 255, 255, 1);
    text-shadow: 1.5px 1.5px 1.5px rgba(0, 0, 0, 1);
    font-size: 1.3em; /*sdagae*/
    transition: font-size 0.3s, right 0.3s, bottom 0.3s;
}

#galOverlay #galFrame #galFrameControlClose {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    position: absolute;
    top: 20px;
    right: 120px;
    font-size: 1.5em;
    font-weight: bold;
    /*color: rgba(255,255,255,1);
	text-shadow: 1.5px 1.5px 1.5px rgba(0, 0, 0, 1); */
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 102;
    transition: font-size 0.3s, right 0.3s, top 0.3s;
}

@media screen and (min-width: 800px) and (max-width: 979px) {
    #galOverlay #galFrame #galImage {
        max-width: 600px;
        max-height: 475px;
    }
    #galOverlay #galFrame a {
        width: 90px;
        height: 100%;
        font-size: 2.6em;
    }
    #galOverlay #galFrame #galCaption {
        left: 105px;
        bottom: 9px;
        font-size: 1.4em;
    }
    #galOverlay #galFrame #galCounter {
        right: 105px;
        bottom: 9px;
        font-size: 1.4em;
    }
    #galOverlay #galFrame #galFrameControlClose {
        width: 36px;
        height: 36px;
        border-radius: 18px;
        right: 105px;
        top: 9px;
        font-size: 1.4em;
    }
}

@media screen and (min-width: 600px) and (max-width: 799px) {
    #galOverlay #galFrame #galImage {
        max-width: 400px;
        max-height: 400px;
    }
    #galOverlay #galFrame a {
        width: 80px;
        height: 100%;
        font-size: 2.3em;
    }
    #galOverlay #galFrame #galCaption {
        left: 90px;
        bottom: 8px;
        font-size: 1.3em;
    }
    #galOverlay #galFrame #galCounter {
        right: 90px;
        bottom: 8px;
        font-size: 1.3em;
    }
    #galOverlay #galFrame #galFrameControlClose {
        width: 32px;
        height: 32px;
        border-radius: 16px;
        right: 90px;
        top: 8px;
        font-size: 1.3em;
    }
}

@media screen and (min-width: 400px) and (max-width: 599px) {
    #galOverlay #galFrame #galImage {
        max-width: 240px;
        max-height: 300px;
    }
    #galOverlay #galFrame a {
        width: 70px;
        height: 100%;
        font-size: 2em;
    }
    #galOverlay #galFrame #galCaption {
        left: 75px;
        bottom: 7px;
        font-size: 1.2em;
        font-weight: normal;
    }
    #galOverlay #galFrame #galCounter {
        right: 75px;
        bottom: 7px;
        font-size: 1.2em;
        font-weight: normal;
    }
    #galOverlay #galFrame #galFrameControlClose {
        width: 28px;
        height: 28px;
        border-radius: 14px;
        right: 75px;
        top: 7px;
        font-size: 1.2em;
        font-weight: normal;
    }
}

@media screen and (max-width: 399px) {
    #galOverlay #galFrame #galImage {
        max-width: 200px;
        max-height: 300px;
    }
    #galOverlay #galFrame a {
        width: 60px;
        height: 100%;
        font-size: 1.7em;
    }
    #galOverlay #galFrame #galCaption {
        left: 62px;
        bottom: 6px;
        font-size: 1em;
        font-weight: normal;
    }
    #galOverlay #galFrame #galCounter {
        right: 62px;
        bottom: 6px;
        font-size: 1em;
        font-weight: normal;
    }
    #galOverlay #galFrame #galFrameControlClose {
        width: 24px;
        height: 24px;
        border-radius: 12px;
        right: 62px;
        top: 6px;
        font-size: 1em;
        font-weight: normal;
    }
}

/*---------------------
-----------------------
-----Newsletter Archiv-----
-----------------------*/

#newsletterListe {
    background-color: #fff2cd;
    border: 1px solid #002443;
}

#newsletterListe h4 {
    padding: 1% 1.5%;
    text-decoration: none;
    margin: 0;
    font-size: 1em;
    border-top: 1px dotted #002443;
    border-right: 30px solid #002443;
    border-left: 10px solid #002443;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: flex-end;
    align-content: flex-start;
}

#newsletterListe h4.first {
    border-top: 0px dotted black;
    margin: 0;
}

#newsletterListe h4 a {
    font-weight: normal;
}

#newsletterListe h4 a:hover {
    font-weight: normal;
    text-decoration: underline;
}

#newsletterListe .subtext {
    font-size: 0.8em;
}

#newsletterControls {
    box-sizing: border-box;
    width: 100%;
    background-color: #fff2cd;
    border: 1px solid #002443;
    padding: 5px 5px;
    margin: 1.5em 0em;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-content: center;
    align-items: center;
}

#newsletterControls .control {
    box-sizing: border-box;
    font-size: 0.8em;
    line-height: 1.5em;
    width: 150px;
}
@media only screen and (max-width: 550px) {
    #newsletterControls .control {
        width: 110px;
    }
}

#newsletterControls .leftBox {
    text-align: left;
    order: 1;
}
#newsletterControls .rightBox {
    text-align: right;
    order: 3;
}
#newsletterControls .centerInfo {
    order: 2;
    box-sizing: border-box;
    text-align: center;
    font-size: 1.3em;
    line-height: 1.2em;
    font-family: "calligraph";
    color: #3b611e;
    text-shadow: 1px 2px 2px rgba(59, 97, 30, 0.2);
}

/*---------------------
-----------------------
-----Random Image on Sidebar-----
-----------------------*/

#sidebarRandomImage {
    transition: background-color 0.3s;
}

#sidebarRandomImage:hover {
    background-color: #304e67;
}

/*---------------------
Workshop Archiv Headbox
-----------------------*/

#archiveWSHeadbox {
    box-sizing: border-box;
    width: 100%;
    background-color: #fff2cd;
    border: 1px solid #002443;
    padding: 12px 12px;
    margin: 0px 0px 24px 0px;
    text-align: center;
    line-height: 1.5;
}
