@font-face {
  font-family: 'Frank Ruhl Libre';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/frank-ruhl-libre-reg.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(../fonts/work-sans-light.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/work-sans-medium.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
    --blue1: #0a4958;
    --blue1-rgb: 10, 73, 88;
    --blue2: #add6e0;
    --blue2-rgb: 173, 214, 224;
    --light: #ffffff;
    --light-rgb: 255, 255, 255;
    --grey: #696969;
    --grey-rgb: 105, 105,105;
    --padding: 54px;
    --main-text-color: var(--grey);
    --main-font: 'Work Sans', sans-serif;
    --highlight-font: 'Frank Ruhl Libre', serif;
    --shadow-null: 0 0 0px rgba(0,0,0,0);
    --shadow: 0 0 5px rgba(0,0,0,0.5);
    --flex-base: 230px;
    --max-width: 1800px;
}
html, body {
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
}
html {
    overflow-x: hidden;
    font-size: 22px;
    scrollbar-width: thin;
    scrollbar-color: var(--blue2) var(--light);
    transition: scrollbar-color 0.5s ease-in-out;
}
@media (max-width: 1680px){
html {
    font-size: 20px;
}
}
@media (max-width: 1225px){
html {
    font-size: 18px;
}
}
html:hover {
    scrollbar-color: var(--blue1) var(--light);
}
body {
    font-family: var(--main-font);
    font-weight: 300;
    overflow: hidden;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    color: var(--main-text-color);
    min-width: 300px;
}
body, body * {
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}
html.tpu-body {
    overflow: hidden
}
a {
    text-decoration: none;
    color: var(--blue1);
    transition: color 0.5s ease-in;
}
a:hover {
    color: var(--grey);
}
p {
    margin: 0.5rem 0;
    line-height: 1.7em;
}
h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, .h5 {
    font-weight: 400;
    text-transform: uppercase;
    font-family: var(--highlight-font);
    line-height: 1.2;
    color: var(--blue1);
    letter-spacing: 0.1em;
}
h2, .h2 {
    font-size: 2rem;
    position: relative;
}
h3 {
    font-size: 1rem;
}
.dark {
    background-color: var(--blue1)
}
.dark, .dark h1, .dark h2, .dark h3, .dark h4, .dark h5, .dark .h1, .dark .h2, .dark .h3, .dark .h4, .dark .h5 {
    color: var(--light)
}
.dark a {
    text-decoration: none;
    color: var(--blue2);
    transition: color 0.5s ease-in;
}
.dark a:hover {
    color: var(--light);
}
body a.cta {
    text-transform: uppercase;
    font-weight: 500;
    color: var(--blue1);
    letter-spacing: 0.05em;
}
body .dark a.cta {
    color: var(--light);
}
body img {
    height: auto;
    max-width: 100%;
}
button, .button {
    display: block;
    cursor: pointer;
    background-color: var(--blue1);
    border: none;
    color: var(--light);
    font-family: var(--main-font);
    font-size: 1rem;
    text-transform: uppercase;
    padding: calc(0.25 * var(--padding)) calc(2 * var(--padding));
    transition: background-color 0.5s ease-in-out;
}
.dark button, .dark .button {
    background-color: var(--light);
    color: var(--blue1);
}
button:hover, .button:hover {
    background-color: var(--blue2)
}
.center {
    text-align: center;
}
.table > span {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.table {
    display: block;
}
.table > span > * {
    white-space: nowrap;
}
.table > span > *:first-child {
    flex: 1 1 33%;
}
.table > span > *:last-child {
    flex: 2 1 66%;
}
.table > span > *:only-child {
    flex: 1 1 100%;
}
.table > span > .tcs {
    flex: 0 0 1.5rem;
}
.table.prices > span > *:first-child {
    flex: 1 1 50%;
}
.table.prices > span > *:last-child:not(*:only-child) {
    flex: 1 1 50%;
    text-align: right;
}


/* FLEX */
.flex {
    display: flex;
    flex-flow: row wrap;
    align-content: flex-start;
    width: auto;
    padding: var(--padding)
}
.pad {
    padding: var(--padding)
}
.flex.halfpad {
    padding: calc(1.5 * var(--padding))
}
.flex.halfpad > [class*="box"] {
    padding: calc(0.5 * var(--padding))
}
.flex.nm {
    margin: calc(-1 * var(--padding));
}
.flex.nw {
    flex-flow: row nowrap;
}
.flex.unpad {
    margin: 0 calc(-1 * var(--padding));
    max-width: calc(100% + 2 * var(--padding))
}
.flex.wr {
    flex-flow: row wrap-reverse;
}
.flex.vcenter {
    align-items: center;
    align-content: center;
}
.flex.vstretch {
    align-items: stretch;
    align-content: stretch;
}
.flex.vstart {
    align-items: flex-start !important;
    align-content: flex-start !important;
}
.flex.vend {
    align-items: flex-end !important;
    align-content: flex-end !important;
}
.vcenter[class*="box"] {
    align-self: center;
}
.vend[class*="box"] {
    align-self: flex-end;
}
.box0 {flex: 1 1 calc(0.2 * var(--flex-base));}
.box1 {flex: 1 1 calc(1 * var(--flex-base));}
.box1l {flex: 1 1 calc(1.25 * var(--flex-base));}
.box2 {flex: 2 1  calc(2 * var(--flex-base));}
.box3 {flex: 3 1  calc(3 * var(--flex-base));}
.box4 {flex: 4 1  calc(4 * var(--flex-base));}
.box5 {flex: 5 1  calc(5 * var(--flex-base));}
.box5 {flex: 6 1  calc(6 * var(--flex-base));}
.boxfull {flex: 1 1 100%;}
.box0, .box1, .box2,.box3,.box4,.box5, .box-po, .boxfull {padding: var(--padding);max-width: 100%;}
.flex.box1.fw, .flex.box2.fw,.flex.box3.fw,.flex.box4.fw,.flex.box5.fw {
    width: calc(100% + (2 * var(--padding)));
    max-width: calc(100% + (2 * var(--padding)));
}
.flex > .nopad[class*="box"] {
    padding: 0;
}
.flex > .flex[class*="box"]:not(.fpad) {
    padding: 0;
}
.flex > .divider {
    flex: 1 1 100%;
    padding: 0;
    margin: 0;
}
.flex > .hdivider {
    flex: 0 0 0%;
    padding: 0;
    margin: 0;
}
.flex > .hw + .hdivider {
    flex: 1 1 100%;
    padding: 0;
    margin: 0;
}
@media (max-width: 1225px){
.flex > .divider {
    display: none;
}    
}
img[class^="box"], picture[class^="box"], picture[class^="box"] > img {
    width: 100%;
    display: block;
    height: 100%;
}
/* HEADER */
.header {
    position: relative;
}
.header .logo a {
    display: block;
    margin: 0 auto;
    width: 60%;
    max-width: 400px;
    min-width: 200px;
}
.header .logo a img {
    display: block;
    width: 100%;
}
.header .headertop {
    position: relative;
    width: 100%;
    padding: calc(0.5 * var(--padding)) var(--padding) var(--padding);
    z-index: 10;
    margin-bottom: 4rem;
}
.index .header .headertop {
    position: absolute;
    top: 0;
    margin-bottom: 0;
}
.header .headerimg {
    position: absolute;
    left: 0;
    bottom: 0;
    right:  0;
}
.header .headerimg p, .header .headerimg h1.p {
    max-width: 700px;
    color: var(--blue1)
}
.header .headerimg h1.p {
    margin: 0.5rem 0;
    line-height: 1.7em;
    font-family: var(--main-font);
    font-weight: 300;
    font-size: 1rem;
    text-transform: none;
    letter-spacing: 0;
}
.header .headerimg p.h1 {
    font-size: 4.2rem;
    position: relative;
}

.header .headerimg p.h1:before {
    content: '';
    display: block;
    position: absolute;
    height: 2px;
    width: calc(100% + 2.25 * var(--padding));
    top: 1.2em;
    right: calc(-0.25 * var(--padding));
    background-color: var(--blue1)
}
.header .headerimg p.h1 small {
    margin-top: 0.5em;
    display: block;
    font-family: var(--main-font);
    font-weight: 300;
    font-size: 1.9rem;
    color: rgba(var(--grey-rgb), 0.5);
    letter-spacing: 0.1em;
}
.header .hbg {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}
.header .social {
    position: absolute;
    right: 0;
    top: 0;
    display: flex;
    padding: calc(0.475 * var(--padding));
}
.header .social > * {
    display: block;
    padding: calc(0.125 * var(--padding));
    color: var(--blue1);
    cursor: pointer;
}

/* NAVI */
nav.mainnav {
    position: absolute;
    width: 100%;
    top: 100%;
    left: 0;
    background-color: transparent;
    transition: background-color 0.5s ease-in-out;
}
.sticked nav.mainnav {
    position: fixed;
    top: 0;
    background-color: var(--light);
}
nav.mainnav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}
nav.mainnav ul li {
    position: relative;
}
nav.mainnav ul li:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--blue1);
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
nav.mainnav ul li.active:after {
    opacity: 1
}
nav.mainnav ul li:hover:after {
    opacity: 0.3
}
nav.mainnav ul li a {
    padding: 1rem calc(0.5 * var(--padding));
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
}
.navbutton {
    width: 2rem;
    height: 2rem;
    position: relative;
    margin: 0 0 0 auto;
    z-index: 200;
    cursor: pointer;
    display: none;
}
#menubutton {
    position: absolute;
    width: 270%;
    height: 250%;
    top: -79%;
    left: -93%;
    right: -40%;
    -webkit-transform: translate3d(0, 0, 0);
    -moz-transform: translate3d(0, 0, 0);
    -o-transform: translate3d(0, 0, 0);
    -ms-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    pointer-events: none;
}
#menubutton path {
    fill: none;
    -webkit-transition: stroke-dashoffset 0.5s cubic-bezier(0.25, -0.25, 0.75, 1.25), stroke-dasharray 0.5s cubic-bezier(0.25, -0.25, 0.75, 1.25), stroke 0.5s ease-in;
    -moz-transition: stroke-dashoffset 0.5s cubic-bezier(0.25, -0.25, 0.75, 1.25), stroke-dasharray 0.5s cubic-bezier(0.25, -0.25, 0.75, 1.25), stroke 0.5s ease-in;
    -o-transition: stroke-dashoffset 0.5s cubic-bezier(0.25, -0.25, 0.75, 1.25), stroke-dasharray 0.5s cubic-bezier(0.25, -0.25, 0.75, 1.25), stroke 0.5s ease-in;
    -ms-transition: stroke-dashoffset 0.5s cubic-bezier(0.25, -0.25, 0.75, 1.25), stroke-dasharray 0.5s cubic-bezier(0.25, -0.25, 0.75, 1.25), stroke 0.5s ease-in;
    transition: stroke-dashoffset 0.5s cubic-bezier(0.25, -0.25, 0.75, 1.25), stroke-dasharray 0.5s cubic-bezier(0.25, -0.25, 0.75, 1.25), stroke 0.5s ease-in;
    stroke-width: 40px;
    stroke-linecap: round;
    stroke: var(--blue1);
    stroke-dashoffset: 0px;
}
#menubutton path#top,
#menubutton path#bottom {
    stroke-dasharray: 240px 950px;
}
#menubutton path#middle {
    stroke-dasharray: 240px 240px;
}
.navbutton:hover #menubutton path {
    stroke: var(--grey);
}
.mopen #menubutton path {
    stroke: var(--blue1);
}
.mopen .navbutton:hover #menubutton path {
    stroke: var(--grey);
}
.mopen #menubutton path#top,
.mopen #menubutton path#bottom {
    stroke-dashoffset: -650px;
    stroke-dashoffset: -650px;
}
.mopen #menubutton path#middle {
    stroke-dashoffset: -115px;
    stroke-dasharray: 1px 220px;
} 

/* CONTENT */
.wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
}
.index header.header {
    height: 100vh;
    min-height: 1050px;
}
section {
    min-height: 100vh;
}
section header, section .wimg{
    position: relative;
    background-color: var(--light)
}
section .wimg {
    display: block;
    height: 15rem;
}
section.dark header{
    background-color: var(--blue1)
}
section header img, section .wimg  img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.1
}
section.dark header img {
    opacity: 0.4
}
section .wimg img {
    opacity: 1
}
section header div {
    position: relative;
}
section header h2:after,section header .h2:after {
    content: '';
    display: block;
    position: absolute;
    bottom: -0.3em;
    left: calc(-2 * var(--padding));
    width: calc(2 * var(--padding) + 100%);
    height: 2px;
    background-color: var(--grey)
}
section.dark header h2:after, section.dark header .h2:after {
    background-color: var(--light)
}
section header h2 + p, section header .h2 + p {
    text-transform: uppercase;
    font-size: 1.45rem;
    letter-spacing: 0.1em;
    line-height: 1.2;
}
#leistungen .flex > [class*="box"]{
    display: flex;
    flex-flow: row wrap;
}
#leistungen .flex > [class*="box"] > * {
    flex: 1 1 100%;
}
#leistungen .flex > [class*="box"] > p {
    align-self: flex-end;
}
#leistungen .flex > [class*="box"] a.cta {
    align-self: flex-end;
    margin: 1rem 0;
}
.team > div {
    text-align: center;
    position: relative
}
.team > div * {
    color: var(--grey)
}
.team > div > div {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 2rem;
}
.team > div picture {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    max-height: 400px;
    max-width: 400px;
    padding-bottom: 100%;
    margin: 0 auto
}
.team > div .teamimg {
    display: block;
    width: 100%;
    object-fit: cover;
    height: 100%;
    margin: auto;
    position: absolute;
    top: 0;
    max-width: 400px;
    max-height: 400px;
    border-radius: 100%;
}
.team > div .cta {
    font-size: 0.7rem
}
img.contlogo {
    display: block;
    margin: 0 auto 1rem;
    max-width: 400px
}
.maplink {
    position: relative;
}
.maplink:after {
    content: 'Auf Open Street Maps ansehen';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 2 * var(--padding));
    color: var(--light);
    background-color: rgba(var(--blue1-rgb), 0.5);
    backdrop-filter: blur(5px);
    padding: var(--padding);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-in-out;
    opacity: 0;
}
.maplink:hover:after {
    opacity: 1
}

/* FORM */
div.formular > p {
    font-size: 0.8rem;
    line-height: 1.5em;
}
form {
    text-align: left;
    display: flex;
    flex-flow: row wrap;
    margin: calc(-0.25 * var(--padding));
}
form .form-field, form .form-spacer, .buttons {
    display: block;
    width: 100%;
    margin: calc(0.25 * var(--padding)) 0px;
    padding: 0px calc(0.25 * var(--padding));
}
form .form-field.flex {
    display: flex;
}
form .form-field.quart {
    flex: 1 1 275px;
}
form .form-field.half {
    flex: 1 1 450px;
}
form .form-field.full, form .buttons {
    flex: 1 1 100%;
}
form .form-field.fieldset {
    padding: 0;
    margin: 0;
}
form .form-field.conditional {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    height: auto;
    transition: opacity 0.5s ease-in-out, max-height 0.5s ease-in-out
}
form .form-field.conditional.scond {
    opacity: 1;
    max-height: 1000px;
}
form .form-field .form-label {
    margin-bottom: 5px;
}
.form-input-wrapper, .form-input-wrapper input  {
    width: 100%;
}
.form-data {
    position: relative;
}
.checkboxes {
    display: block;
}
form .buttons, form .button-wrapper {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
}
.buttons > .button:only-of-type, .buttons > button:only-of-type {
    right: 0;
    margin: 0 0 0 auto;
}
.form-textarea-wrapper, .form-textarea-wrapper textarea {
    width: 100%;
}
button[type="reset"]{
    padding: 0;
    background-color: transparent;
    color: var(--blue);
}
.dark button[type="reset"]{
    color: var(--blue);
}
.form-textarea-wrapper textarea {
    min-height: 200px;
    resize: none;
}
input, textarea, select, form fieldset {
    border: none;
    font-size: 1em;
    border-radius: 0;
} 
input, textarea, select, form fieldset {
    background-color: #fff;
    transition: all 0.5s ease-in;
} 
input.hpt {
    opacity: 0;
    position: absolute;
    top: -100%;
    left: -100%;
    visibility: hidden
}
input, textarea, select, input[class*="box"] {
    border: none;
    padding: 10px;
    width: 100%;
    font-size: 1em;
    font-family: inherit;
    font-weight: 300;
    color: var(--blue1);
    background-color: rgba(var(--light-rgb), 0.7);
    transition: background-color 0.5s ease-in, color 0.5s ease-in;
    outline: none
}
form .form-field p {
    padding: 0px calc(0.25 * var(--padding))
}
textarea {
    height: 6rem;
    resize: none;
}
.switchlabel input, .switchlabel textarea {
    color: transparent;
}
.switchlabel ::-webkit-input-placeholder {
    color: transparent;
    transition: color 0.5s ease-in;
}
.switchlabel ::-moz-placeholder {
    color: transparent;
    transition: color 0.5s ease-in;
}
.switchlabel ::-ms-placeholder {
    color: transparent;
    transition: color 0.5s ease-in;
}
.switchlabel ::placeholder {
    color: transparent;
    transition: color 0.5s ease-in;
}
.labelup input, .labelup textarea {
    color: var(--blue1);
}
.labelup ::-webkit-input-placeholder {
    color: var(--blue1);
}
.labelup ::-moz-placeholder {
    color: var(--blue1);
}
.labelup ::-ms-placeholder {
    color: var(--blue1);
}
.labelup ::placeholder {
    color: var(--blue1);
}
input:focus, textarea:focus, select:focus, 
.labelup input, .labelup textarea, .labelup select {
    outline: none;
    background-color: rgba(var(--light-rgb), 1);
}
form fieldset {
    padding: 0;
    display: flex;
    margin: 10px;
    flex: 1 1 100px;
}
form fieldset > .form-field {
    padding: 0;
    margin: 0;
    flex: 2 1 50px;
    min-width: 0;
}
form fieldset > .form-field:last-of-type {
    flex: 1 1 25px;
}
form fieldset > .form-field:first-of-type input {
    border-radius: 5px 0px 0px 5px;
    border-right: none;
}
form fieldset > .form-field:last-of-type input {
    border-radius: 0px 5px 5px 0px;
    border-left: none;
}
div.formular form .form-label {
    display: none;
}
form .form-select-wrapper {
    position: relative;
}

form .switchlabel:not(:first-of-type) {
    position: relative;
    margin-top: 1rem;
}
form label {
    display: block;
}
form .switchlabel > label {
    position: absolute;
    top: 0;
    left: 0;
    padding: 10px calc(10px + 0.25 * var(--padding));
    transform: scale(1);
    transform-origin: bottom left;
    transition: all 0.5s ease-in;
    z-index: 1;
    pointer-events: none;
    color: var(--blue1);
    line-height: 1.2;
}
form .switchlabel.labelup > label {
    top: calc(-0.8rem - (0.5 * var(--padding)));
    transform: scale(0.8);
    color: var(--light);
}


input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button
{
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
    text-align: center;
    padding-left: calc(20px + 1rem);
    padding-right: calc(20px + 1rem);
}
.quantity-nav {
    position: absolute;
    width: 100%;
    height: 2.5em;
    bottom: 0;
    left: 0;
    pointer-events: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.quantity-nav .quantity-button {
    pointer-events: auto;
    color: rgba(var(--base-color-color-rgb), 1);
    width: auto;
    padding: 10px;
    cursor: pointer;
    opacity: 0.33;
    transition: opacity 0.5s ease-in;
}
input:hover + .quantity-nav .quantity-button {
    opacity: 0.7;
}
.quantity-nav .quantity-button:hover {
    opacity: 1;
}
.radio {
	display: block;
}
form input[type='checkbox'],
form input[type='radio'] {
  width:auto;
  float:left;
  margin-right: .75em;
  background:transparent;
  border:none;
}
form input[type='checkbox']:checked,
form input[type='checkbox']:not(:checked),
form input[type='radio']:checked,
form input[type='radio']:not(:checked) {
  background: transparent;
  position: relative;
  visibility: hidden;
  margin:0;
  padding:0;
}

form input[type='checkbox'] + label,
form input[type='radio'] + label {
    cursor: pointer;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}
div.formular form input[type='checkbox'] + label,
div.formular form input[type='radio'] + label {
    display: block !important;
}

form input[type='checkbox']:checked + label::before,
form input[type='checkbox']:not(:checked) + label::before,
form input[type='radio']:checked + label::before,
form input[type='radio']:not(:checked) + label::before {
    content: '';
    display: flex;
    justify-content: center;
    align-items: center;
    width: 1rem;
    height:1rem;
    border-radius: 50%;
    position: relative;
    background-color: var(--blue2);
    background-image: url(../images/check.png);
    margin-right: 0.3em;
    background-size: 0%;
    background-repeat: no-repeat;
    background-position: center;
    transition: all .2s ease-in;
    text-align: center;
    font-size: 1rem;
    line-height: 1.7em;
    text-indent: 0px;
    flex: 0 0 1rem;
}

input[type=radio]:checked + label::before,
input[type=radio]:not(:checked) + label::before {
  border-radius: 50%;
}

form input[type='checkbox']:hover  + label::before,
form input[type='radio']:hover  + label::before {
    background-size: 65%;
    background-repeat: no-repeat;
    background-position: center;
    transition: all .2s ease-in;
}

form input[type='checkbox']:checked  + label::before,
form input[type='radio']:checked  + label::before {
    background-size: 85%;
    background-repeat: no-repeat;
    background-position: center;
    transition: all .2s ease-in;
}

/* Thumbnail */
.thumbnail{
    width: 80px;
    height: 80px;
    padding: 2px;
    float: left;
}

/* LIGHTBOX */
div.gal.flex{
    justify-content: flex-start;
    align-content: flex-start;
    align-items: flex-start;
    margin: calc(-0.5 * var(--padding));
}
img.pu[class*="box"], picture.pu[class*="box"], div.gal > * {
    padding: 0;
    margin: calc(0.5 * var(--padding));
    width: 300px;
    display: block;
    object-fit: cover;
    height: 300px;
    flex: 1 1 300px;
}
picture.pu img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    display: block;
}
img.pu, picture.pu {
    cursor: zoom-in;
    transition: all 0.5s ease-in-out;
    outline: calc(0.5 * var(--padding)) solid transparent;
    outline-offset: calc(-0.499 * var(--padding));
}
img.pu:hover, picture.pu:hover {
    outline-color: var(--red);
}
img.pu[data-img*='.mp4'], img.pu[data-img*='.webm'], img.pu[data-img*='.mov'] {
    cursor: pointer;
}
img.pu[data-img*='.mp4'] + i, img.pu[data-img*='.webm'] + i, img.pu[data-img*='.mov'] + i {
    position: absolute;
    top: 100px;
    left: 0;
    bottom: 0;
    right: 0;
    margin: auto;
    font-size: 3rem;
    width: 3rem;
    height: 3rem;
    color: #fff;
    text-shadow: 0 0 10px #000;
    pointer-events: none;
}
.pu-imagebox {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    margin: auto;
    max-width: 100vw;
    max-height: 100vh;
    background-color: rgba(0,0,0,0.7);
    z-index: 2000;
    width: auto;
    height: auto;
    padding: 40px;
    display: flex;
    flex-flow: column;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    pointer-events: none;
    opacity: 0;
    backdrop-filter: blur(0px);
    transition: opacity 0.5s ease-in, backdrop-filter 0.5s ease-in;
}
html.pu-open {
    overflow: hidden;
}
.pu-imagebox.pu-show {
    pointer-events: all;
    opacity: 1;
    backdrop-filter: blur(5px);
    transition: opacity 0.5s ease-in;
}
.pu-imagebox .pu-caption {
    color: #fff;
}
.pu-sign {
    color: #fff;
    cursor: pointer;
    font-size: 3rem;
    position: absolute;
    -ms-user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none; 
    opacity: 0.7;
    transition: opacity 0.5s ease-in;
}
.pu-sign:hover {
    opacity: 1;
}
.pu-arr {
    top: 0;
    bottom: 0;
    margin: auto;
    height: 1em;
}
.noset .pu-arr {
    display: none;
}
.pu-arr#pu-left {
    left: 20px;
}
.pu-arr#pu-right {
    right: 20px;
}
.pu-close {
    top: 15px;
    right: 20px;
}
.pu-imagewrapper {
    position: relative;
    height: calc(100% - 80px);
    width: calc(100% - 80px);
    margin: 0 auto;
    overflow: hidden;
}
.pu-zoomable {
    cursor: zoom-in;
}
.pu-zoomable.pu-zoom {
    cursor: zoom-out
}
.pu-zoom .pu-imagewrapper {
    overflow: scroll;
    scrollbar-width: thin;
}
.pu-imagewrapper img, .pu-imagewrapper video {
    max-width: 100%;
    max-height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    animation: pu-fadein 0.5s ease-in;
    transition: all 0.5s ease-in;
}
.pu-zoom .pu-imagewrapper img{
    cursor: grab;
    bottom: auto;
}
@keyframes pu-fadein {
    0% {opacity: 0;}
    100% {opacity: 1;}
}
.pu-text {
    color: #fff;
    font-size: 1.5rem;
    text-align: center;
}

/* FOOTER */
footer {
    text-align: center;  
    width: 100%;
    background-color: var(--blue1);
    padding: calc(0.5 * var(--padding));
}
footer * {
    margin: 0;
    color:var(--light);
}

/* POPUPS */
.tpu-box, .sharebuttons, #form-result, .tooltip {
    position: fixed;
    z-index: 2;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--light);
    color: var(--grey);
    opacity: 0;
    pointer-events: none;
    z-index: 2100;
    transition: opacity 0.5s ease-in-out;
}
.tpu-box.tpu-show, .sharebuttons.showbuttons, #form-result.shownotice, .tooltip.ttopen {
    opacity: 1;
    pointer-events: all;
}
.tpu-box > .tpu, .sharebuttons .shbox, #form-result div.notices, #form-result p, .tooltip .tti {
    position: relative;
    display: block;
    width: 90%;
    max-width: 500px;
    margin: 0;
    padding: 20px;
    background-color: transparent;
}
.tpu-box > .tpu {
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: scroll;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    transition: scrollbar-color .5s ease-in-out;
}
.tpu-box > .tpu:hover {
    scrollbar-color: var(--blue1) var(--light);
}
.tpu-box p > span:not(.heading) {
    display: flex;
    width: 100%;
}
.tpu-box p > span > *:first-child {
    flex: 1 1 100px;
}
.tpu-box p > span > *:last-child {
    flex: 2 1 200px;
}
#tpu-close, .closeshare, #sc-close, #closeform, .tooltip .ctt, .pu-close {
    position: absolute;
    z-index: 3000;
    cursor: pointer;
    top: calc(0.5 * var(--padding));
    right: calc(0.5 * var(--padding));
    height: 2rem;
    width: 2rem;
    font-size: 2rem;
    margin: 0;
    text-align: center;
    line-height: 1;
    -ms-user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none; 
}
#tpu-close:hover, .closeshare:hover, #sc-close:hover, #closeform:hover, .tooltip .ctt:hover {
    color: var(--red)
}
.sharebuttons {
    text-align: center;
}
.sharebuttons .shariff ul {
    justify-content: center;
}
.sharebuttons .shariff .orientation-horizontal li, .sharebuttons .shariff .orientation-horizontal li  a {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100%;
}
.sharebuttons .tosoc {
    font-size: 0.7rem;
    line-height: 1.2em;
}
#form-result > p {
    text-align: center;
}
#form-result > p > i {
    display: block;
    margin: 0 auto 0.5em;
    font-size: 3rem;
}

/* TABLET */
@media (max-width: 1225px){
:root {
    --padding: 18px;
}    
.navbutton {
    display: block;
}    
nav.mainnav:after {
    position: fixed;
    content: '';
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(var(--light-rgb), 0.98);
    z-index: 11;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}  
.mopen nav.mainnav:after {
    opacity: 1;
    pointer-events: all;
}   
header .headertop .social {
    left: 0;
    right: auto;
    padding: var(--padding);
}    
.header .social > * {
    padding: 0 calc(0.5 * var(--padding)) 0 0;
}    
header .headertop .logo {
    order: 1;
    flex: 0 0 100%;
    max-height: 170px;
    margin-top: 3rem;
}
nav.mainnav {
    top: 0;
    width: 100%;
    padding: var(--padding);
    position: fixed;
}
nav.mainnav .menubutton, nav.mainnav ul.subnavi.sopen .subback {
    display: block;
}  
nav.mainnav .cm {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
} 
.mopen:not(.smopen) nav.mainnav .cm.menubutton, .smopen nav.mainnav .subback.cm {
    opacity: 1;
    pointer-events: all;
} 
nav.mainnav ul.navi, nav.mainnav ul.subnavi, nav.mainnav ul.subnavi.sopen, .smopen nav.mainnav ul.navi, nav.mainnav ul.subnavi.saopen {
    list-style: none;
    margin: 0;
    padding: var(--padding);
    flex-flow: column;
    background-color: transparent;
    top: 0;
    left: 0;
    position: fixed;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
}
nav.mainnav ul.navi {
    z-index: 100;
}
.mopen:not(.smopen) nav.mainnav ul.navi {
    opacity: 1;
    pointer-events: all;
}
nav.mainnav ul.subnavi {
    overflow: hidden;
    z-index: 102;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
}  
nav.mainnav ul.subnavi.sopen, nav.mainnav ul.subnavi.saopen.sopen {
    opacity: 1;
    pointer-events: all;
    z-index: 21;
}    
nav.mainnav ul li a, nav.mainnav ul li span, nav.mainnav ul.subnavi li a {
    padding: calc(0.5 * var(--padding)) calc(0.95 * var(--padding));
    font-family: var(--highlight-font);
    font-weight: 500;
    font-size: 2rem;
    text-transform: uppercase;
    display: block;
    position: relative;
    line-height: 1em;
    text-align: center;
    color: var(--beige1);
}
nav.mainnav ul li:not(.home) a.active:after, nav.mainnav ul li:not(.home) span.active:after {
    display: none
}    
nav.mainnav ul li.hassub:after {
    display: none;
}
header.header .headerimg {
    height: 70vh;
    width: 100%;
    align-items: center !important;
    align-content: center !important;
} 
.header .headerimg > * {
    flex: 1 1 100%;
    height: auto;
}  
.header .headerimg > picture img {
    object-fit: contain;
    object-position: bottom right;
    max-width: 400px;
    margin: 0 0 0 auto;
    position: absolute;
    bottom: 0;
    right: 0;
    opacity: 0.3;
}    
.header .headerimg p.h1 {
    font-size: 3.2rem;
}
.header .headerimg p.h1 small {
    margin-top: 0.5em;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
}
form .form-field, form .form-spacer, .buttons {
    margin: calc(1 * var(--padding)) 0px;
}    
}
@media only screen 
    and (min-device-width: 375px) 
    and (max-device-width: 812px) 
    and (-webkit-min-device-pixel-ratio: 3), 
    only screen 
    and (min-device-width: 375px) 
    and (max-device-width: 667px) 
    and (-webkit-min-device-pixel-ratio: 2),
    (max-width: 500px)
{
:root {
    --padding: 10px;
}  
.index header.header {
    height: 100vh;
    min-height: 650px;
}    
header.header .headerimg {
    height: auto;
    display: block;
    bottom: calc(10 * var(--padding))
} 
.header .headerimg > picture img {
    object-fit: contain;
    object-position: bottom right;
    max-width: 300px;
    bottom: calc(-15 * var(--padding))
}  
.header .headerimg p.h1 {
    font-size: 2rem;
}
.header .headerimg p.h1 small {
    margin-top: 0.5em;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
}       
}
.empty {
    min-height: 0 !important;
    height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    opacity: 0 !important;
    margin-bottom: 0 !important;
}