@font-face {
    font-family: Gowun;
    src: url(GowunDodum-Regular.ttf);
}

@font-face {
    font-family: SourGummy;
    src: url(SourGummy-Medium.ttf);
}

.caption img {
    width: 100%;
    max-width: 500px;
    padding: 10px 0px 10px 0px;
}

html, body {
	height:101%;
	text-align:left;
	color:#595959;
	font-size: 1em;
	font-family: Gowun,'Trebuchet MS', Arial;
    margin: auto;
}

p {
	line-height:1.5em;
    font-size: 1.1em;
}

h1, h2, h3 {
    font-family: SourGummy, Georgia;
    font-weight:normal;
    text-align: left;
}

h1 { 
	color:#876a57;
	font-size:1.3em;
}
	
h2 {
	font-size:1.2em;
}

h3 {
	font-size: 1.1em;
	font-style: italic;
}

a,
nav.pagination__wrapper a {
    transition: all 0.4s ease-in-out 0s;
}

a:link, a:visited, a:hover,
nav.pagination__wrapper a:link, nav.pagination__wrapper a:visited, nav.pagination__wrapper a:hover {
	color: #F6C28B;
	font-weight: bold;
	text-decoration: none;
	font-style: normal;
}

nav.pagination__wrapper a {
    font-family: Gowun, 'Trebuchet MS', Arial;
}

nav.pagenavigation a {
    font-weight: normal;
}

a:hover,
nav.pagination__wrapper a:hover {
	color: #FCD7AD;
}

a.btn.btn-sm.btn-secondary.previous::before  {
    content: '‹‹';
}

a.btn.btn-sm.btn-secondary.previous::after {
    content: '‹‹ | ';   
}

a.btn.btn-sm.btn-secondary.next::before, a.btn.btn-sm.btn-secondary.next::after {
    content: '››';
}

nav.pagination__wrapper li a:after {
    position: absolute;
    content: '';
    bottom: 0;
    right: 0;
    width: 0%;
    border-bottom: 0px solid #89000A; 
    transition:0.5s ease;
}

nav.pagination__wrapper li a:hover:after {
    width: 100%;
}

nav li.active.page-item a {
    color: #FCD7AD;
}

hr {
	width:98%;
	color:#595959;
	text-align:center;
	margin-top:0.5em;
	margin-bottom:0.5em;
}

li {
  padding:0.5em;
}

#container {
	/*margin: 1.2em auto;*/
	width:100%;
    display: grid;
    grid-template-columns: 20% 50% 30%;
    grid-template-rows: 4em 1fr 7em 10em 1em 6em;
}

@media (min-width: 800px) {
    #container {grid-template-rows: 5em 1fr 5em 14em;}
}


header {
    grid-column: 1 / 4;
    grid-row: 1 / 2;
    background-color: #876A57;
    position: sticky;
    top: 0em;
    z-index: 2;
    /* rotate: 2deg; */
}

#logo {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    justify-self: center;
    position: sticky;
    top: 0em;
    margin-inline-start: 0.5em;
    z-index: 3;
    /* rotate: -8deg; */
}

@media (max-width: 720px) {#logo {grid-column: 1 / 4; margin-inline-start: 0em;}}

nav {
    grid-column: 2 / 4;
    grid-row: 1 / 2;
    justify-self: flex-start;
    align-self: center;
    position: sticky;
    top: 1.2em;
    z-index: 4;
}

#inhalt,
#system-message-container {
    grid-column: 1 / 4;
    grid-row: 2 / 3;
    max-width: 900px;
    margin: 1em;
    margin-top: 1.5em;
    justify-self: center;
    padding: 0px 15px 0px 15px;
    text-align: justify;
}

 /* @media (min-width: 800px) {
    #inhalt, #system-message-container {margin-top: 1em;}
} */

footer {
    background-color: #876A57;
    color: #FFFFFF;
    grid-column: 1 / 4;
    grid-row: 3 / 7;
}

#kontakt {
    grid-column: 1 / 4;
    grid-row: 3 / 5;
    justify-self: flex-start;
    align-self: center;
    color: #FFFFFF;
    margin-inline-start: 2em;
    margin-inline-end: 1em;
}

#insta {
    grid-column: 1 / 4;
    grid-row: 5 / 6;
    justify-self: flex-start;
    align-self: center;
    margin-inline-start: 2em;
    /* margin-inline-end: 1em; */
}

#nav_rechtlich {
    grid-column: 1 / 4;
    grid-row: 6 / 7;
    justify-self: flex-start;
    margin-inline-start: 2em;
    /* margin-inline-end: 1em; */
}

@media (min-width: 800px) {
    #inhalt {grid-column: 2 / 4; justify-self: flex-start;}
    footer {grid-row: 3 / 5;}
    #kontakt {grid-column: 2 / 3;}
    #insta {grid-column: 3 / 4; grid-row: 3 / 4;}
    #nav_rechtlich {grid-column: 3 / 4; grid-row: 4 / 5;}
}

/* @media (min-width: 1050px) {
    #kontakt {margin-inline-start: 10em;}
} */

#insta img {
    vertical-align: middle;
    padding: 0px 5px 0px 5px;
    height: 1.5em;
    width: auto;
}

#kontakt p, #nav_rechtlich ul {
    font-size: 1em;
} 

#kontakt img {
    vertical-align: middle;
    padding: 0px 10px 3px 0px;
    width: 15px;
}

#kontakt a:link,
#kontakt a:visited,
#nav_rechtlich a:link,
#nav_rechtlich a:visited {
	color: #FFFFFF;
	font-weight: normal;
	text-decoration: none;
	font-style: normal;
}

#kontakt a:hover,
#nav_rechtlich a:hover {
	color: #F6C28B;
	font-weight: normal;
	text-decoration: none;
	font-style: normal;
}

nav ul {padding-inline-start: 25px;}

nav li {
    display: inline;
    color: #FFFFFF;
    padding: 0px 5px 0px 5px;
    font-size:0.9em;
    border-right: 1px solid #FFFFFF;
    font-family: SourGummy, Georgia;
}

nav.mobil {
    background-color: #876A57;
    justify-self: flex-end;
    margin-right: 2em;
}

nav.mobil li {
    display: block;
    font-size: 1.3em;
    border-right: 0px;
    padding: 10px 50px 10px 50px;
}

button#toggle {
    float:right;
    /* margin-top: 0.6em; */
}

#logo img {
    width: 5em;
    border-radius: 50%;
    padding-top: 2px;
}

@media (min-width: 1210px) {
    nav li {font-size: 1.3em; padding: 0px 20px 0px 20px;}
    #logo img {width: 15em;}
    nav ul {padding-inline-start: 10px;}
    nav {top: 1.1em;}
}

nav li a:link, nav li a:visited, nav li a:hover, nav li.current a {
  text-decoration:none;
  font-style:normal;
  font-weight:normal;
  color:#FFFFFF;
  text-align:center;
}

nav li a {
    position: relative;
}

nav li a:hover, nav li.current a {
    color:#F6C28B;
}

nav li a:after {
    position: absolute;
    content: '';
    bottom: 0;
    top: 0;
    right: 0;
    width: 0%;
    border-bottom: 1px solid #F6C28B; 
    border-top: 1px solid #F6C28B;
    transition: 0.5s ease;
}

nav li a:hover:after {
    width: 100%;
}

#nav_rechtlich ul {
    padding-left: 0px;
}

#nav_rechtlich li {
    padding: 0px 0px 10px 0px;
    list-style-type: none;
    color: #FFF;
}

#nav_rechtlich li::before {
    content: '›› ';
    white-space: nowrap;
}

img {
    width: 100%;
    max-width: 600px;
}

/* Spaltenlayout Startseite 
 
.com-content-category-blog__item.blog-item, .mod-articles-items.mod-list li {
    display: grid;
    grid-template-columns: 350px;
    box-shadow: 0 0.25rem 0.625rem 0 rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

figure {
    display:grid;
    grid-template-rows: 100%;
    grid-template-columns: 100%;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    margin-block-start: 0em;
    margin-block-end: 0em;
} 

figure.left.item-image img, figure.mod-articles-image.item-image img {
    width: 350px;
    height: auto;
}

.item-content {
    padding:1em;
}

ul.mod-articles-items.mod-list {
    list-style-type: none;
    padding-inline-start: 0px;
}

@media (min-width: 950px) {
.com-content-category-blog__items.blog-items.columns-3, article.mod-articles-item {
    display:grid;
    column-gap:20px;
    row-gap:10px;}
    
.com-content-category-blog__item.blog-item, .mod-articles-item-content {
        grid-template-rows: 270px 1fr;
        grid-row-gap: 10px;
        margin-bottom: 0px;
    }

.com-content-category-blog__item.blog-item:nth-child(2n-1),
figure.left.item-image:nth-child(2n-1) img,
article.mod-articles-item:nth-child(2n-1),
figure.mod-articles-image.item-image:nth-child(2n-1) img
                                                {grid-column: 1 / 2;}
    
.com-content-category-blog__item.blog-item:nth-child(2n),
figure.left.item-image:nth-child(2n) img            {grid-column: 2 / 3;}

figure.left.item-image:nth-child(1) img,
figure.left.item-image:nth-child(2) img
                                                    {grid-row: 1 / 2;}

.com-content-category-blog__item.blog-item:nth-child(1),
.com-content-category-blog__item.blog-item:nth-child(2)
                                                    {grid-row: 2 / 3;}

figure.left.item-image:nth-child(3) img,
figure.left.item-image:nth-child(4) img
                                                    {grid-row: 3 / 4;}

.com-content-category-blog__item.blog-item:nth-child(3),
.com-content-category-blog__item.blog-item:nth-child(4)
                                                    {grid-row: 4 / 5;}
    
figure.left.item-image:nth-child(5) img,
figure.left.item-image:nth-child(6) img
                                                    {grid-row: 5 / 6;}

.com-content-category-blog__item.blog-item:nth-child(5),
.com-content-category-blog__item.blog-item:nth-child(6)
                                                    {grid-row: 6 / 7;}
    
figure.left.item-image:nth-child(7) img,
figure.left.item-image:nth-child(8) img
                                                    {grid-row: 7 / 8;}
    
.com-content-category-blog__item.blog-item:nth-child(7),
.com-content-category-blog__item.blog-item:nth-child(8)
                                                    {grid-row: 8 / 9;}
    
figure.left.item-image:nth-child(9) img,
figure.left.item-image:nth-child(10) img
                                                    {grid-row: 9 / 10;}
    
.com-content-category-blog__item.blog-item:nth-child(9),
.com-content-category-blog__item.blog-item:nth-child(10)
                                                    {grid-row: 10 / 11;}
    
figure.left.item-image:nth-child(11) img,
figure.left.item-image:nth-child(12) img
                                                    {grid-row: 11 / 12;}
    
.com-content-category-blog__item.blog-item:nth-child(11),
.com-content-category-blog__item.blog-item:nth-child(12)
                                                    {grid-row: 12 / 13;}
}

@media (min-width: 1420px) {
.com-content-category-blog__item.blog-item:nth-child(3n-2),
figure.left.item-image:nth-child(3n-2) img                  {grid-column: 1 / 2;}

.com-content-category-blog__item.blog-item:nth-child(3n-1),
figure.left.item-image:nth-child(3n-1) img                  {grid-column: 2 / 3;}

.com-content-category-blog__item.blog-item:nth-child(3n),
figure.left.item-image:nth-child(3n) img                    {grid-column: 3 / 4;}

figure.left.item-image:nth-child(1) img,
figure.left.item-image:nth-child(2) img,
figure.left.item-image:nth-child(3) img                     {grid-row: 1 / 2;}
    
.com-content-category-blog__item.blog-item:nth-child(1),
.com-content-category-blog__item.blog-item:nth-child(2),
.com-content-category-blog__item.blog-item:nth-child(3)     {grid-row: 2 / 3;}

figure.left.item-image:nth-child(4) img,
figure.left.item-image:nth-child(5) img,
figure.left.item-image:nth-child(6) img                     {grid-row: 3 / 4;}
    
.com-content-category-blog__item.blog-item:nth-child(4),
.com-content-category-blog__item.blog-item:nth-child(5),
.com-content-category-blog__item.blog-item:nth-child(6)     {grid-row: 4 / 5;}

figure.left.item-image:nth-child(7) img,
figure.left.item-image:nth-child(8) img,
figure.left.item-image:nth-child(9) img                     {grid-row: 5 / 6;}
    
.com-content-category-blog__item.blog-item:nth-child(7),
.com-content-category-blog__item.blog-item:nth-child(8),
.com-content-category-blog__item.blog-item:nth-child(9)     {grid-row: 6 / 7;}

figure.left.item-image:nth-child(10) img,
figure.left.item-image:nth-child(11) img,
figure.left.item-image:nth-child(12) img                     {grid-row: 7 / 8;}
    
.com-content-category-blog__item.blog-item:nth-child(10),
.com-content-category-blog__item.blog-item:nth-child(11),
.com-content-category-blog__item.blog-item:nth-child(12)     {grid-row: 8 / 9;}
}


div.items-row:nth-child(2) > div:nth-child(1), div.items-row:nth-child(2) > div:nth-child(2) {
    margin-bottom: 1.1em;
}

*/


/* Google Kalender 
.com-wrapper.contentpane {
    width: 380px;
}

@media (min-width: 700px) {
    .com-wrapper.contentpane {
        width: 600px;
    }
}

@media (min-width: 1000px) {
    .com-wrapper.contentpane {
        width: 900px;
    }
}

@media (min-width: 1200px) {
    .com-wrapper.contentpane {
        width: 1100px;
    }
}

*/