@font-face {
  font-family: 'Alegreya Sans';
  font-style: normal;
  font-weight: 400;
  src: url('/fonts/Alegreya_Sans/AlegreyaSans-Regular.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'Alegreya Sans';
  font-style: normal;
  font-weight: 700;
  src: url('/fonts/Alegreya_Sans/AlegreyaSans-Bold.ttf') format('truetype');
  font-display: swap;
}

/* === Alegreya (Serif) === */
@font-face {
  font-family: 'Alegreya';
  font-style: normal;
  font-weight: 400;
  src: url('/fonts/Alegreya/Alegreya-Italic-VariableFont_wght.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'Alegreya';
  font-style: normal;
  font-weight: 700;
  src: url('/fonts/Alegreya/Alegreya-Bold.ttf') format('truetype');
  font-display: swap;
}







html, body {
    height: 100%;
    margin:0;
    font-family: 'Alegreya Sans', sans-serif;
    font-size: 100%;
    overflow-x: hidden;
    max-width: 100vw;
}

a, a:visited {
    color: #FFFFFF;
    text-decoration: underline;
}

a:hover {
    text-decoration: none;
}

#container {
    max-width: 100vw;
    overflow-x: hidden
}

#content {
    display: block;
    margin: 0 auto;
    min-height: 100vh;
    width: 900px;
}

#impressum {
    display: block;
    margin: 0 auto;
    width: 900px;
    box-sizing: border-box;
    border-top: 1px solid #DEDEDE;
    padding: 30px;
    max-width: 100vw;
}

.grid {
    width: 100vw;
    max-width: 100vh;
    height: 80vw;
    max-height: 60vh;
    font-size: 1rem;
    box-sizing: border-box;
    padding: 20px;
}

.floating-grid {
    width: 100vw;
    max-width: 100vh;
    min-height: 80vw;
    height: auto !important;
    font-size: 1rem;
    box-sizing: border-box;
    padding: 20px;
}

.row {
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.row-floating {
    flex-direction: column;
}

.box {
    position: relative;
    background: #FFFFFF;
    border-radius: 5px;
    box-sizing: border-box;
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: 0%;
    transition: all 2s;
}

.box-floating {
    flex-grow: 1 !important;
    flex-shrink: 0 !important;
    flex-basis: 0 !important;
    transition: none;
}

.box:after {
    content: "";
    float: left;
    display: block;
    padding-top: 100%;
}

.box-active:hover {
    cursor: pointer;
}

.box .inner {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
}

.inner-content {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 20px;
    overflow: scroll;
}

.floating {
    overflow: auto !important;
    position: static !important;
    left: auto !important;
    bottom: auto !important;
    top: auto !important;
    right: auto !important;
}

.inner-content h1 {
    font-family: 'Alegreya', serif;
    font-weight: normal;
    font-size: 2rem;
    line-height: 3rem;
    width: 100%;
    border-bottom: 1px solid #ffffff;
    color: #ffffff;
}

.inner-content h2,
.inner-content h3 {
    font-family: 'Alegreya', serif;
    font-weight: normal;
    font-size: 1.4rem;
    line-height: 1.6rem;
    margin: 10px 0 5px 0;
    width: 100%;
    color: #ffffff;
}

.inner-content h3 {
    margin-top: 15px;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #ffffff;
}

.inner-content p {
    font-size: 1rem;
    line-height: 1.4rem;
    color: #ffffff;
}

.modal {
    position: relative;
}

.modal img {
    max-width: 100%;
}

#sticky-link,
#sticky-link-close {
    display: inline-block;
    padding: 10px 20px;
    margin-right: 15px;
    border-radius: 5px;
    color: #FFFFFF;
    cursor: pointer;
}

#sticky-link {
    background: #379237;
}

#sticky-link-close {
    background: #f77808;
}

.book {
    display: flex;
    align-content: stretch;
    flex-wrap: wrap;
}

.book-cover {
    position: relative;
    flex: 1;
}

.book-text {
    flex: 2;
}

.book img {
    min-width: 300px;
    max-width: 100%;
    max-height: 100%;
}

.box-1 {
    background: url(../img/1-1.png) no-repeat center center; 
    background-size: 80%;
    transition: all 0.3s linear;
}

.box-1:hover {
    background: url(../img/1-1-1.png) no-repeat center center; 
    background-size: 80%;
    transition: all 0.3s linear;
}

.box-3 {
    background: url(../img/3-1.png) no-repeat center center; 
    background-size: 80%;
    transition: all 0.3s linear;
}

.box-3:hover {
    background: url(../img/3-1-1.png) no-repeat center center; 
    background-size: 80%;
    transition: all 0.3s linear;
}

.box-4 {
    background: url(../img/4-1.png) no-repeat center center; 
    background-size: 80%;
    transition: all 0.3s linear;
}

.box-4:hover {
    background: url(../img/4-1-1.png) no-repeat center center; 
    background-size: 80%;
    transition: all 0.3s linear;
}

.box-6 {
    background: url(../img/6-1.png) no-repeat center center; 
    background-size: 80%;
    transition: all 0.3s linear;
}

.box-6:hover {
    background: url(../img/6-1-1.png) no-repeat center center; 
    background-size: 80%;
    transition: all 0.3s linear;
}

.box-orange.highlight {
    background: #f77808 !important;
}

.box-red.highlight {
    background: #dc2229 !important;
}

.box-green.highlight {
    background: #379237 !important;
}

.box-blue.highlight {
    background: #1b71de !important;
}

.highlight {
    flex-grow: 3;
    flex-shrink: 0;
}

.highlight .inner {
    display: none !important;
}

.highlight > .inner-content {
    display: flex !important;
}

.collapse {
    flex-grow: .0000000001;
    visibility: hidden;
    opacity: 0;
}

.flip-container {
    perspective: 1000px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.flip-container:hover .flipper, .flip-container.hover .flipper {
    transform: rotateY(180deg);
}

.flipper {
    transition: 0.6s;
    transform-style: preserve-3d;
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

.front, .back {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: block;
    text-align: center;
}

.front:before,
.back:before {
    content: "";
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}

.front img, .back img {
    vertical-align: middle;
    max-height: auto;
    max-width: 80%;
}

.front {
    z-index: 2;
    transform: rotateY(0deg);
}

.back {
    transform: rotateY(180deg);
}

.disabled {
    opacity: .5;
    pointer-events: none !important;
    user-select: none !important;
    cursor: not-allowed;
}

input[type=text],
input[type=number] {
    font-family: 'Alegreya Sans', sans-serif;
    color: #000000;
    font-size: 1rem;
    height: 30px;
    padding: 5px;
    margin-bottom: 15px;
    margin-right: 10px;
    background: #89b987;
    border: 1px solid #2c7c28;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    outline: none;
}

input.small {
    width: 34px;
}

label {
    display: inline-block;
    min-width: 85px;
    line-height: 1rem;
    height: 100%;
}

::placeholder {
    color: #22621f;
    opacity: 1;
}

:-ms-input-placeholder {
    color: #22621f;
}

::-ms-input-placeholder {
    color: #22621f;
}

.f-row {
    font-size: 1rem;
    line-height: 1.4rem;
    color: #ffffff;
}



