@font-face {
    font-family: 'Quicksand';
    font-display: swap;
    src: url('../font/Quicksand-VariableFont_wght.ttf');
}

* {
    font-family: 'Quicksand', sans-serif;
}

html, body {
    min-height: 100vh;
}

body {
    font-size: 20px;
    margin: 0;
    background-color: var(--theme4);
}

header {
    display: flex;
    padding: 2rem 1rem 1rem;
    justify-content: center;
    align-items: center;
    background-color: var(--theme4);
}

nav {
    display: flex;
    flex-wrap: wrap;
    padding: 1rem;
    gap: 0.1rem 1rem;
    justify-content: center;
    position: sticky;
    top: -0.1px;
    background-color: var(--theme4);
    z-index: 99;
}

header img {
    max-width: 100%;
}

main img {
    width: 100%;
    border-radius: 5px;
}

a {
    color: inherit;
    text-decoration: none;
    border-bottom: 2px solid var(--theme3);

}

a:hover {
    border-bottom: 2px solid var(--theme2);
}



nav a {
    padding: 0.5rem 0.75rem;
    border-bottom: 2px solid var(--theme4);
}

nav a.active {
    border-bottom: 2px solid var(--theme3);
}


nav a:hover {
    border-bottom: 2px solid var(--theme2);
}

footer a {
    /*
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--theme4);
    display: inline-block;
    background-color: inherit;
    */

}

footer a:hover {
    /*
    background-color: var(--theme4);
    color: var(--theme3);
    border: 1px solid var(--theme4);
    */
    border-bottom: 2px solid var(--theme4);
}

main {
    hyphens: auto;
    min-height: calc(100vh - 726px);
}

main, footer {
    max-width: 950px;
    margin: auto;
    padding: 1rem;
}

main.admin {
    max-width: inherit;
    margin: inherit
}


h1, h2, h3 {
    color: var(--theme3);
}

footer {
    margin-top: 4rem;
    color: var(--theme4);
    display: flex;
    justify-content: space-around;
    align-items: top;
    gap: 1rem;
    text-align: center;
}


footer > * {
    width: 100%;
    padding: 2rem 0;
}

footer h1, footer h2, footer h3 {
    color: var(--theme4);
}

footer.footer2 > * {
    padding: 0;
}

footer.footer2 {
    display: block;
    margin-top: 0rem;
    color: var(--theme4)
}

footer.footer2 a {
    display: inline;
    border: 0;
    padding: 0;
}


footer.footer2 a:hover{
    background-color: inherit;
    color: var(--theme3);
    border: inherit;
}




.bg-theme1 {
    background-color: var(--theme1);
    color: var(--theme4);
}

.bg-theme3 {
    background-color: var(--theme3);
    color: black;
}



form p {
    position: relative;
}

label {
    display: inline-block;
    position: absolute;
    padding: 0;
    top: 0.5rem;
    left: 0.5rem;
    transition: 0.2s ease;
    z-index: 1;
}

input + label,  textarea + label , select + label {
   color: #AAA;
}

input:not(:placeholder-shown) {   
    color: var(--theme2);
}

input:not(:placeholder-shown) {
    border-color: var(--theme2);
}

input:not(:placeholder-shown) + label {
    transform: translate(-0.5rem , -1.5rem) scale(0.8);
    background-color: var(--theme4);
    padding: 0 0.5rem;
    color: var(--theme2);
}

input:valid,  textarea:valid ,  select:valid {    
    border-color: var(--theme3);
    color: var(--theme3);
}


input:focus + label,  textarea:focus + label, select:focus + label,
input:valid + label,  textarea:valid + label, select:valid + label  {
    transform: translate(-0.5rem , -1.5rem) scale(0.8);
    background-color: var(--theme4);
    padding: 0 0.5rem;
    color: var(--theme3);
}


input, select{
    position: relative;
    display: block;
    width: 100%;
    padding: 0.5rem 0.5rem;
    font-size: 1rem;
    border: 2px solid var(--theme3);
    border-radius: 5px;
    box-sizing: border-box;
    background-color: var(--theme4);
}


input[type=checkbox] {
    display: inline-block;
    border: 0;    
    padding: 0;
    margin-right: 0.5rem;
    width: 24px;
    height: 24px;
    position: relative;
    top: 6px;
    background-color: var(--theme3);
}

input[type=checkbox]:valid + label {
    transform: translate(0 , 0) scale(1);
    background-color: inherit;
    color: var(--theme3);
    left: calc(24px + 0.5rem);
}




textarea {
    width: 100%;
    height: 500px;
    font-size: 1rem;
    padding: 0.5rem;
    border: 2px solid var(--theme3);
    box-sizing: border-box;
    border-radius: 5px;
}

button {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border: 0;
    background-color: var(--theme3);
    color: var(--theme4);
    border-radius: 5px;
}

button:hover {
    background-color: var(--theme2);
}

div.admin {
    max-width: 1000px;
    margin: auto;
    padding: 0.1px 1rem;
    text-align: right;
    color: var(--theme4);
}

.rund {
    border-radius: 100%;
}

#karte {
    width: 999px;
    height: 666px;
    border: 2px solid var(--theme3);
    border-radius: 5px;
}

.rahmen {
    border: 2px solid var(--theme3);
    border-radius: 5px;
}

blockquote {
    border-left: 2px solid var(--theme3);
    background-color: var(--theme5);
    padding: 1px 1rem;
}

.flex {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    flex-grow: 1;
}

.flex > * {
    flex-basis: 100%;
}

.flex textarea {
    height: 100%;
}

.no-link, .no-link:hover {
    border-bottom: none;    
}

.no-link:hover img {
    border: 2px solid var(--theme2);    
}

hr {
    border: 1px solid var(--theme3);    
}

.infobox {
    border-radius: 5px;
    background-color: var(--theme3);
    padding: 0 1rem;
    color: var(--theme4);
}

.infobox h3 {
    color: var(--theme4);
}

.infobox a {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border: 0;
    background-color: var(--theme4);
    color: var(--theme3);
    font-weight: bold;
    border-radius: 5px;
}

.hide, .print {
    display: none;
}

a.explorer {
    background-color: var(--theme3);
    border-radius: 5px;
}

@media screen and (min-width:600px) {
    .screen-mobile {display: none;}
    .screen-tablet {display: block;}
}

@media screen and (max-width:599px){
    .screen-mobile {display: block;}
    .screen-tablet {display: none;}
    img.rechts, img.links {float: none;}
    .flex {flex-direction: column;}
}

@media screen and (max-width:991px){
    footer {flex-wrap: wrap;}
}

@media screen and (min-width:600px){
    main img.rechts {float: right; max-width: 200px; margin: 0 0 1rem 1rem;}    
    main img.links {float: left; max-width: 200px; margin: 0 1rem 1rem 0;}
}

@media screen and (min-width:900px){
    main img.rechts {float: right; max-width: 300px; margin: 0 0 1rem 1rem;}    
    main img.links {float: left; max-width: 300px; margin: 0 1rem 1rem 0;}
}




@media screen and ( max-height:799px ){
    nav {position: relative;}    
}

@media screen and ( min-height:800px ){
    .is-pinned {box-shadow: 0 0 10px grey;}
}


@media print {
    .noprint {display: none !important;}
    .print {display: block !important;}
    body{font-size: 12pt;}   
    main img {display:block; max-width: 300px; margin:auto;}    
    img.rechts {float: right; max-width: 300px; margin: 0 0 1rem 1rem;}    
    img.links {float: left; max-width: 300px; margin: 0 1rem 1rem 0;}
    footer {margin-top: 2rem; color: var(--theme1); text-align: center;}
    footer > * {padding: 0;}
}
