/* Formate für Cool Village 
blau1   447093
blau2   184461
grÃ¼n1   1c5d3b
grÃ¼n2   044c26
grau    d7d4db            */

:root {
    --blau1: #447193;    
    --blau2: #184567;
    --blau3: #9ebbd2;
    --grau:  #d7d4db;
    --grau2: #666565;
    --gruen2: #044c26;
    --fill-color: #ffffff;
    --weiss: #ffffff;
    --gelb: #ffd762;
    --orange: #ffa500;
    --verlauf:  linear-gradient(to right, #2c5a7e, #447193);
}

@font-face {
    font-family: bernd;
    src: url(bernhc.ttf);
}

@font-face {
    font-family: chelt;
    src: url(cheltrm_.ttf);
}

@font-face {
    font-family: vag;
    src: url(VAGRound.ttf);    
}

@font-face {
    font-family: vagl;
    src: url(Vagroln.ttf);
}



html,body {
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100%;
    font-family: vag1,Arial,sans-serif;
    font-size: 12pt;
    scroll-behavior: smooth;
} 





*, *:before, *:after {
    box-sizing: border-box;
}

hr {
    border: 1px solid white;
}

.orange,.gold {
    color: orange;
}

.s9 {
    font-size: 9pt;
}

.winzig {
    font-size: 8pt;
    font-style: italic;
}

.lh {
    line-height: 2em;
}

a:link,a:visited,a:active {
    text-decoration: none;
    color: var(--blau1);
}

#kontakt a, #kontakt a:link, #kontakt a:visited, #kontakt a:active {
    color: var(--blau1);
    font-weight: bold;
}

#events a,a:link,a:visited,a:active {
    color: var(--gelb);
}

a:hover,#kalbox a:hover {
    color: var(--orange);
}

span.ltrText {
    unicode-bidi: bidi-override;
    direction: rtl;
    cursor: pointer;
}

.full {
    width: 100%;
}

/* ---------------------------------------------------------------- */
/* Smartphones and Tablets */

@media screen and (max-width: 1000px) {
    
    .h1 {
        font-size: 40pt;
    }
    .h2 {
        font-size: 13pt;
    }
    
    #logobox {
    background-color: var(--blau1);

        justify-content: center;
    }
    
    #logobox .links,#logobox .rechts {
        flex: 0 1 300px;
    }
    
    #logobox img {
        width: 100%;    
    }
    
    #hbox {
        display: flex;
        justify-content: flex-end;
        text-align: right;
    }
    
    .hamburg,.checked {
        display: flex;
        z-index: 50;
    }
    
 
    #nav {
        display: none; 
        background: var(--nav);
        text-align: right;
        text-transform: uppercase;
    }

    #nav a {
        padding: 0 0.5em;
    }

    #nav ul {
        display: block;
    }
    #nav ul li {
        float: none;
        text-align: right;
    }
    #nav ul li a {
        line-height: 35px;
        width: 100%;
    }

    #nav ul li ul li a {
        text-align: right;
        margin-left: 0.5em;
    }
    .sub {
        position: static;
    }

    #nav ul li a[href] {
        margin-left: 1.4em;
    }

    .pseudo:before {
        padding-left: -0.5em;
        padding-right: 7px;
        content: url('../grafiken/pfeil-u.png');
    }

    .actNav:before {
        padding-right: 7px;
        content: url('../grafiken/pfeil-o.png');
    }

    #nav ul ul li a {
        /*padding: 0.5em;  */
    }
    
    .bigbox {
        display: flex;
        flex-direction: column;
        
    }
    
    .bluebox,.whitebox,.bigbox,.box,.picbox {
        flex: 0 0 300px;
        padding: 0.8em;
    }
    
    .picbox img,#bigpic img {
        width: 90%;    
    }
}


/* ---------------------------------------------------------------- */
/* PC */

@media screen and (min-width: 1001px) {
    
body {
    display: grid;
    grid-template-rows: 120px 80px 1fr 60px;
    grid-template-columns: 400px 1fr 400px;
}
    .h1 {
       font-size: 80pt;
    }
    .h2 {
        font-size: 14pt;
    }
    
    #logobox {
        grid-column: 1/4;
        grid-row: 1/3;
        flex-direction: row;
        flex-wrap: wrap;
        flex: 0 1 100%;
        max-height: 200px;
    }

    #village {
        grid-row: 1/2;
        grid-column: 3/4;
        height: 120px;
    }
    
    #navbox {
        padding-bottom: 1em;
    }

#logobox .links {
    flex: 0 1 40%;
}

#logobox .rechts {
    flex: 0 1 60%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}


    #hbox {
        display: none;
    }
    
    .bluebox,.whitebox {
        flex: 0 0 400px;
        padding: 1em;
    }
    
    .box {
        flex: 0 0 400px;
        padding: 1em;
        margin: 1em;
    }
    
    figure {
        max-width: 400px;
    }
    
    figure img {
        width: 100%;          
    }
    
    .boxX:nth-child(even) {
        flex: 0 1 600px;
        margin: 0 2em;
    }
    
    .fullbox:nth-child(even) {
        background-color: var(--blau3);
    }
    
    .wrapper {
    grid-row: 3/4;
    grid-column: 1/4;         
    }
    
}    

/* ---------------------------------------------------------------- */
/* Allgemein gültige Styles */

.wrapper,.fullbox {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 0 1em;
}

#footer {
    grid-row: 4/5;
    grid-column: 1/4;
    background: var(--blau1);
    margin: 1em 0 0 0;
    padding: 0;
    display: flex;
}

.bigbox {
    flex: 1 1 100%;
    min-height: 500px;
    display: flex;
    justify-content: space-around;
    margin: 1em 0;
}

#logobox {
    flex-direction: row;
    flex-wrap: wrap;
    background-color: var(--blau1);
    padding: 1em 2em;
    display: flex;
}

#bigpic {
    z-index: 999;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10,10,10,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
}

#bigpic img {
    transform: scale(1.2);
}





#jahre {
    display: flex;
    justify-content: center;
}

#monate ul{
    list-style-type: none;
    font-size: 18pt;
    font-family: vag;
    color: white;        
}

#monate li {
    cursor: pointer;
}

#monate li:hover {
    color: orange;
}

#missingTerm {
    margin-top: 4em;
}

.pfeil {
    padding: 0 1em;
    width: 20px;
    display: flex;
    align-items: center;
    
}

.pfeil img {
    cursor: pointer;
    height: 24px;
}

.hidden {
    display: none;
}



.h1 {
    color: var(--blau1);
    text-shadow: -1px -1px 3px var(--blau2), 2px 2px 4px var(--blau1);
}

.h2 {
    color: var(--grau);
    font-family: vag;
}

.h3 {
    font-family: vag;
    font-size: 24pt;
    color: var(--weiss);
}

.h5 {
    font-size: 20pt;
    color: var(--weiss);
}

* img:not(.picto):not('#village') {
    width: 100%;
}

figure img {
    cursor: pointer;
}


.bluebox {
    background-image: var(--verlauf);
    box-shadow: 5px 5px 10px #000;
    padding: 0.8em;
    color: var(--weiss);
}

.bluebox h3 {
    color: var(--weiss);
}

.whitebox {
    margin: 1em;
    padding: 0.8em;
    box-shadow: 5px 5px 10px #000;
}

.galbox {
    flex: 0 1 100%;
}

.spendenbox {
    color: #000;
    font-size: 9pt;
    font-style: italic; 
    display: flex;
    flex-direction: column;
    margin-top: 2em;
}

.spendenbox p {
    flex: 0 1 200px;
}

.spendenbox .but {
    flex: 0 0 100px;
}
.spendenbox img {
    width: 90%;
}
.spendenbox a {
    color: #000;
    font-variant: small-caps;
}

.section {
    flex: 1 1 100%;
    display: flex;
    flex-wrap: wrap;
}


.box {
    text-align: justify;    
    hyphens: auto;
    margin: 1em;
}

.box:nth-child(odd) {
    background-color: var(--blau1);
    box-shadow: 5px 5px 10px #000;
    color: var(--weiss);
}

.box:nth-child(even) {
    
}

.box.picbox {
    background: none;
    box-shadow: none;
}

.letter {
    font-size: 1.6em;
    font-family: vag;
    color: var(--grau2);
}

.highlight a{
    background-color: #5FBA7D !important;
    color: #fff !important;
    border-radius: 50%;
}

#events h4 {
    font-family: vag;
    font-size: 16pt;
            
}

#events h5 {
    font-family: vag;
    font-size: 14pt;
    margin-bottom: -0.5em;
}

#events .t9 {
    font-size: 9pt;
}

#events hr  {
    margin-top: -1em;
    margin-bottom: -1em;
}

#events p {
    margin-bottom: 4em;
}

#events div {
    display: none;
    color: var(--grau);
}

#events div.aktM {
    display: block;
}

#impic {
    width: 100%;
}

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

.mpics {
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;    
}

.mpics figure {
    height: 160px;
    width: 120px;
    border: 2px groove var(--blau1);
    padding: 0.3em;
}

.mpics figure img {
    width: 100%;
    max-height: 100px;
}

.mpics figcaption {
    font-size: 9pt;
    width: 100%;
    text-align: center;
}



/* -------------------------------------- */
/* Kalender */

.ui-datepicker {
    width: 100%;
    font-family: vag, Arial, sans-serif;
    font-size: 18pt;
    color: var(--blau2);
}

.ui-widget-content {
    border: none !important;
    
}

.ui-datepicker-header {
    background-color: var(--blau1);
    color: var(--weiss);
    font-weight: normal;
}

.ui-datepicker-prev span {
    background-image: url(../grafiken/pfeilL.png) !important;
    background-position: 0px 0px !important;
    background-size: cover !important;
    
}

.ui-datepicker-next span {
    background-image: url(../grafiken/pfeilR.png) !important;
    background-position: 0px 0px !important;
    background-size: cover !important;

}

.ui-datepicker-calendar {
    backgound: var(--weiss) !important;
}
.ui-datepicker-calendar th {
    font-weight: normal !important;
}

.ui-state-active:hover {
    border: none !important;
}

/* -------------------------------------- */
/* Navigation */

#navbox {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
}
#nav ul,#footer ul {
    display: flex;
    list-style-type: none;
    width: 100%;
    flex-direction: row;
}

#nav ul {
    padding: 0.5em 2em;
    
}

#footer ul {
    padding: 0;
    justify-content: center;
    align-items: center;
}

#nav li,#footer li {
    padding: 0 1em;
    display: inline-block;
}

#nav a, .nav2 a,#footer a {
    position: relative;
    display: block;
    padding: 4px 0;
    font-family: vag;
    font-size: 20pt;
    text-decoration: none;
    text-transform: uppercase;
    -webkit-text-stroke: 1px var(--fill-color);
    background: linear-gradient(var(--fill-color) 0 100%) left / 0 no-repeat;
    color: transparent;
    background-clip: text;
    transition: 0.5s linear;
}

#footer a {
    font-size: 16pt;
}

#nav a.aktSite, .nav2 a.aktPunkt,#footer a.aktSite {
    -webkit-text-stroke: 1px var(--orange);
    background: linear-gradient(var(--orange) 0 100%) left / 0 no-repeat;
    background-clip: text;
}

#nav a:hover, .nav2 a:hover,#footer a:hover {
    background-size: 100%;
}

/* Hamburger */


.hamburg {
    display: block;
    width: 35px;
    height: 35px;
    position: relative;
    margin-left: auto;
    margin-right: auto;
    border-radius: 4px;
    transition: border-radius: .5s;
}

.line {
    position: absolute;
    left: 0px;
    height: 4px;
    width: 25px;
    background: var(--weiss);
    border-radius: 2px;
    display: block;
    transition: 0.5s;
    transform-origin: center;
}

.line:nth-child(1) { top: 10px; }
.line:nth-child(2) { top: 20px; }
.line:nth-child(3) { top: 30px; }

.hamburg.checked .line:nth-child(1) {
    transform: translateY(10px) rotate(-45deg);
}

.hamburg.checked .line:nth-child(2) {
    opacity: 0;
}

.hamburg.checked .line:nth-child(3) {
    transform: translateY(-10px) rotate(45deg);
}

/* Hamburger 2 fÃ¼r Seite Geschichte --- Webkit nachtragen */
.con {
    cursor: pointer;
    display: block;
    height: 60px;
    padding: 0.5em 2.5em;
    transition: all .7s ease;
    z-index: 99;
}

.con:hover .bar {
    background-color: var(--orange);
}

.bar {
    display: block;
    height: 5px;
    width: 30px;
    background: var(--blau1);
    margin: 5px auto;
    transition: all .7s ease;
}

.col {
    display: block;
    width: 24%;
    text-align: center;
    height: auto;
    position: sticky;
}

.middle {
    margin: 0 auto;
}

.submenu {
    position: fixed;
    top: 200px;
    z-index: 99;
    height: 1px;
    overflow: visible;
    transition: all .5s ease;
    transform: translateX(-240px);
    width: 330px;
    color: var(--weiss);
    display: none;
}

.submenu.zeigN {
    transform: translateX(0px);
    background: var(--blau2);
}



.submenu.zeigN .arrow-top-r {
    transform: rotateZ(-45deg) translateY(4px);     /* -45deg .. 11px  w=25px */
    width: 22px;
}

.submenu.zeigN .arrow-middle-r {
    transform: translateX(10px);
}

.submenu.zeigN .arrow-bottom-r {
    transform: rotateZ(45deg) translateY(-4px);
    width: 22px;
}

/* Adminbereich */
#adminwrapper {
    grid-row: 1/5;
    grid-column: 1/4;
    display: grid;
    grid-template-rows: 200px 1fr;
    grid-template-columns: 300px 1fr 200px;
    width: 100%;
    height: 100vh;
    
}

#adminnav {
    grid-row: 2/3;
    grid-column: 1/2;
    background: var(--blau1);
}

#oben {
    grid-row: 1/2;
    grid-column: 1/3;
    background: var(--blau1);
}

#oben img {
    width: 500px;
}

#hello {
    grid-row: 1/2;
    grid-column: 3/4;
    background: var(--blau1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#workbox {
    grid-row: 2/3;
    grid-column: 2/3;
    padding: 2em;
}

label {
    width: 150px;
    display: inline-block;
}

#cropBox {
    display: none;
}

.cropper-container,#cropDiv {
    width: 400px;
    height: 300px;
}

#canvas {
    display: block;
    max-width: 100%;
}

.preview {
    width: 300px;
    height: 200px;
    overflow: hidden;
}

#vorschau {
    position: absolute;
    top: 250px;
    right: 50px;
}
