/*
	Theme Name: Traumainstitut
	Theme URI: http://html5blank.com
	Description: HTML5 Blank WordPress Theme
	Version: 1.4.3
	Author: Todd Motto (@toddmotto)
	Author URI: http://toddmotto.com
	Tags: Blank, HTML5, CSS3

	License: MIT
	License URI: http://opensource.org/licenses/mit-license.php
*/

/*------------------------------------*\
    MAIN
\*------------------------------------*/





/* antonio-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Antonio';
    font-style: normal;
    font-weight: 400;
    src: url('./fonts/antonio-v22-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* antonio-700 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Antonio';
    font-style: normal;
    font-weight: 700;
    src: url('./fonts/antonio-v22-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* roboto-condensed-regular - latin */
@font-face {
    font-family: 'Roboto Condensed';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/roboto-condensed-v19-latin-regular.eot'); /* IE9 Compat Modes */
    src: local(''),
        url('fonts/roboto-condensed-v19-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
        url('fonts/roboto-condensed-v19-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
        url('fonts/roboto-condensed-v19-latin-regular.woff') format('woff'), /* Modern Browsers */
        url('fonts/roboto-condensed-v19-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
        url('fonts/roboto-condensed-v19-latin-regular.svg#RobotoCondensed') format('svg'); /* Legacy iOS */
    }
/* roboto-condensed-700 - latin */
@font-face {
    font-family: 'Roboto Condensed';
    font-style: normal;
    font-weight: 700;
    src: url('fonts/roboto-condensed-v19-latin-700.eot'); /* IE9 Compat Modes */
    src: local(''),
        url('fonts/roboto-condensed-v19-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
        url('fonts/roboto-condensed-v19-latin-700.woff2') format('woff2'), /* Super Modern Browsers */
        url('fonts/roboto-condensed-v19-latin-700.woff') format('woff'), /* Modern Browsers */
        url('fonts/roboto-condensed-v19-latin-700.ttf') format('truetype'), /* Safari, Android, iOS */
        url('fonts/roboto-condensed-v19-latin-700.svg#RobotoCondensed') format('svg'); /* Legacy iOS */
}

:root {
    --breite: 1280px;
    --main-color: #97bf0d
}

body {
    margin: 0;
    padding: 0;
    font-family: Roboto;
    color: #006077;
    font-size: 16px;
}

.wrapper {
    width: var(--breite);
    margin: 0 auto;
    /*box-shadow: 0 0 10px rgba(0,0,0,.2);*/
}

/*############### HEADER ###############*/

header {
    border-top: 20px solid #97bf0d;
    padding-top: 30px;
    margin-bottom: 40px;
}

header .headertop {
    display: flex;
    align-items: center;
}

header a {
    margin-left: auto;
}

/*############### MENU ###############*/

#menu ul {
    padding: 0;
    margin: 0;
    font-family: 'Antonio';
    position: relative;
}

#menu ul li {
    display: inline-block;
}

#menu ul li a {
    color: #006077;
    text-decoration: none;
    font-size: 24px;
    padding: 10px 0 10px 0;
    margin-right: 20px;
    /*white-space: nowrap;*/
}

#menu ul li a:hover {
    color: #97bf0d;
}

#menu ul li.current_page_item a {
    border-bottom: 6px solid #006077;
}

#menu ul li:hover > ul {
    display: flex;
}

#menu ul ul {
    width: 100%;
    position: absolute;
    padding: 50px;
    background: #eaeaea;
    display: none;
    margin-top: 10px;
    left: 0;
    z-index: 9999999;
    box-shadow: 0 0 0 100vmax #eaeaea;
    clip-path: inset(0 -100vmax);
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 350px repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    display: none;
	min-height: 457px;
}

#menu ul ul li a {
    border-bottom: 0 !important;
}

.bigmenutext {
    max-width: 400px;
    font-size: 12px;
}

.bigmenutext a {
    font-size: 16px !important;
}

.bigmenutext a:hover {
    color: #006078 !important;
}


ul li:hover > ul {
    display: grid;
}

.bigmenutext {
  grid-column: 1;
  grid-row: 1 / 10;
  padding: 0 15px 0 0;
  font-weight: 500;
  line-height: 1.5;
  color: #333;
  display: flex;
  align-items: center;
}

ul li ul li:not(.bigmenutext) {
  display: flex;
  align-items: center;
}

ul li ul li a {
  color: #333;
  text-decoration: none;
  padding: 5px 0;
}

ul li ul li:not(.bigmenutext) a {
}

.bigmenutext a {
  color: inherit;
  text-decoration: none;
  white-space: normal;
  display: block;
}

ul li ul li a:hover {
  text-decoration: underline;
}

/*############### CONTENT ###############*/

.content p {
    font-family: Roboto;
    color: #006077;
    font-size: 16px;
    line-height: 24px;
}

.content h2 {
    font-family: 'Antonio';
}

h1 {
    font-family: 'Antonio';
    color: #97bf0d;
    font-size: 36px;
    font-weight: normal;
}

.pdf {
    position: relative;
}

.pdf .wp-block-button {
    width: 83%;
}

.pdf a {
    width: 100%;
}

.pdf a::after {
    content: "";
    background: url(./img/pdf.png);
    width: 69px;
    height: 83px;
    position: absolute;
    right: 0;
    top: -10px;
}

.pdf-flyer {
    position: relative;
    border: 10px solid #006077;
    background-color: #006077;
}

.pdf-flyer a {
    color: #fff;
}

.pdf-flyer .wp-element-caption a::after {
    content: "";
    background: url(./img/pdf.png);
    background-size: contain;
    width: calc(69px / 2);
    height: calc(83px / 2);
    position: absolute;
    right: 0;
    bottom: -5px;
}

/*############### SLIDER ###############*/

.n2-section-smartslider {
    box-shadow: 0 0 0 100vmax #f4f4f4;
    clip-path: inset(0 -100vmax);
}

/*############### KURSE ###############*/

.page-template-archive-kurs .content, .single-kurs .content, .kursanmeldung .content {
    background: #f4f4f4;
    padding-top: 10px;
    padding-bottom: 100px;
}

.page-template-archive-kurs footer, .single-kurs footer, .kursanmeldung footer {
    margin-top: 0;
}

#kurse-wrap h4 {
    margin-top: 0;
}

.kursuebersicht {
    display: flex;
    flex-direction: row;
}

.kurskategorien {
    margin-right: 40px;
}

.kurskategorien a {
    display: block;
    color: #fff;
    background: #006077;
    padding: 10px;
    margin-bottom: 4px;
    min-width: 240px;
}

.kurskategorien a.active {
    background: #97bf0d;
}

.kurs {
    display: flex;
    gap: 40px;
    border-bottom: 3px solid #006077;
    padding-top: 28px;
    padding-bottom: 28px;
    min-width: 600px;
}

.kurs .kalenderblatt {
    width: 85px;
    height: 108px;
    background: url(img/kalenderblatt.png);
}

.kurs .kalenderblatt .kalenderblatt-monat {
    text-align: center;
    margin-top: 37px;
    margin-bottom: 0;
    font-size: 20px;
}

.kurs .kalenderblatt .kalenderblatt-tag {
    margin-top: 0px;
    margin-bottom: 0;
    font-size: 34px;
    font-weight: bold;
    line-height: 34px;
    text-align: center;
}

.kurs-daten p {
    color: #82a40b;
    font-size: 18px;
    margin-bottom: 0;
    line-height: 28px;
}

.kurs-titel {
    margin-top: 0;
}

.kurs-titel a {
    color: #006077;
}

.artikel-datum {
    font-size: 18px;
}

.single-kurs .artikelwrapper {
    min-height: 560px;
}

.single-kurs #headline-page h1, .single-kurs #headline-page h2 {
    margin-top: 0;
}

.single-kurs #headline-page h1 span, .single-kurs #headline-page h2 span, .kursanmeldung h1 span, .kursanmeldung h2 span {
    color: #006077;
}

.wp-singular .wp-block-column p:first-child {
    margin-top: 0;
}

.wp-block-accordion-item {
    border-bottom: 2px solid #006077;
}

.wp-block-accordion-heading {
    margin: 10px 0 10px 0;
}

a.button-kursanmeldung {
    margin-top: 30px;
    display: inline-block;
    padding: 15px 30px;
    background: #799f3c;
    text-align: center;
}

a.button-kursanmeldung:hover {
    opacity: .8;
    text-decoration: none;
}

a.button-kursanmeldung p {
    color: #fff;
    margin: 14px 0 0 0;
}

/*############### KACHEL ###############*/

.kachel {
    position: relative;
}

.kachel img {
    position: relative;
    z-index: 2;
    width: 95% !important;
}

.kachel::before {
    content: "";
    width: 100%;
    height: 90%;
    margin-top: 2.5%;
    background: #006078;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.kachel a:hover img {
    opacity: .8;
}

.kachel ~p a {
    color: #799f3c;
    text-decoration: underline;
}

.kachel ~p a:hover {
    color: #006077;
    text-decoration: underline;
}

/*############### KARTE ###############*/

#map {
    height: 400px;
    z-index: 99;
}

.kategorien-select form {
    margin-top: 30px;
    display: inline-block;
}

.kategorien-select select {
    width: auto;
    padding-right: 40px;
    border: 1px solid #97be0d;
}

a.keinfilter {
    color: #97be0d;
    text-decoration: none;
    margin-left: 20px;
}

a.keinfilter:hover {
    text-decoration: underline;
}

.akteure-details {
    padding-bottom: 150px;
}

.akteure-liste {
    display: grid;
    grid-template-columns: 50% 50%;
    grid-column-gap: 20px;
    grid-row-gap: 20px;
    grid-auto-rows: 1fr;
    margin-top: 20px
}

.akteure-liste::before {
    display: none;
}

.akteure-liste div {
    background: #f0f1f1;
    position: relative;
    padding: 20px;
    padding-bottom: 40px;
}

.akteure-liste div h3 {
    color: #97be0d;
    font-size: 18px;
    margin-top: 0;
}

.akteure-liste a.showonmap {
    position: absolute;
    bottom: 0;
    left: 0;
    background: #97be0d;
    width: 100%;
    text-indent: 20px;
    height: 40px;
    line-height: 40px;
    text-decoration: none;
    color: #fff;
}

.akteure-liste a.showonmap:hover {
    text-decoration: underline;
}

.akteure {
    margin-bottom: 100px;
}

.akteure a {
    color: #97be0d;
    text-decoration: none;
    line-height: 60px;
    font-weight: bold;
}

.akteure div {
    height: 60px;
    border-bottom: 1px solid #97be0d;
}

.akteure a:hover {
    text-decoration: underline;
}

/*############### KACHEL ###############*/

/* global box-sizing */
*,
*:after,
*:before {
	-moz-box-sizing:border-box;
	box-sizing:border-box;
	-webkit-font-smoothing:antialiased;
	font-smoothing:antialiased;
	text-rendering:optimizeLegibility;
}
/* html element 62.5% font-size for REM use */
html {
	font-size:62.5%;
}

/* clear */
.clear:before,
.clear:after {
    content:' ';
    display:table;
}

.clear:after {
    clear:both;
}
.clear {
    *zoom:1;
}
img {
	max-width:100%;
	vertical-align:bottom;
}
a {
	color:#444;
	text-decoration:none;
}
a:hover {
	color:#444;
    text-decoration:underline;
}
a:focus {
	outline:0;
}
a:hover,
a:active {
	outline:0;
}
input:focus {
	outline:0;
	border:1px solid #04A4CC;
}

/*############### FORMULAR ###############*/

input[type=submit] {
    background-color: #82a40b;
    color: #fff;
    border: 0;
    padding: 10px 15px !important;
    margin: 20px 0;
}

input[type=submit]:hover {
    cursor: pointer;
    background-color: #006077;
}

.kursanmeldung h3 {
    margin: 40px 0
}

.kursanmeldung label {
    width: 180px;
    display: inline-block;
}

.kursanmeldung .wpcf7-acceptance label {
    width: auto;
}

.kursanmeldung hr {
    margin: 30px 0;
    border: 0;
    border-top: 1px solid #bbb;
}

.kursanmeldung input {
    padding: 4px;
    border: 1px solid #bbb;
}

.kursanmeldung .nachricht label {
    width: auto;
    margin-bottom: 10px;
}

/*############### FOOTER ###############*/

footer {
    border-top: 1px solid #dedede;
    margin-top: 20px;
}

footer a {
    color: #006077;
}

footer a:hover {
    color: #799f3c;
}

/*#################### MOBIL MENÜ ##################*/

.screen1_menu_container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    color: #000;
    padding: 0 10px;
    /*box-shadow: 0 5px 5px rgba(0,0,0,.2);*/
    position: relative;
    /*width: 100vw;*/
    /*left: 0;*/
    z-index: 99999;
}

.screen1_menu_btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 75px;
    height: 75px;
    cursor: pointer;
    transition: all var(--transition) ease-in-out;
}

.screen1_menu_hamburger {
    width: 30px;
    height: 4px;
    background-color: var(--main-color);
    border-radius: 5px;
    z-index: 10;
    transition: all var(--transition) ease;
    z-index: 9999;
}

.screen1_menu_hamburger::before,
.screen1_menu_hamburger::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 4px;
    background: var(--main-color);
    border-radius: 5px;
    transition: all var(--transition) ease;
}

.screen1_menu_hamburger::before {
    transform: translateY(-8px);
}

.screen1_menu_hamburger::after {
    transform: translateY(8px);
}

.screen1_menu_items {
    background:  #97be0d;
    color: #fff;
    position: absolute;
    /*right: 100%;*/
    left: -50%;
    height: 100vh;
    width: 30%;
    padding-top: 100px;
    top: -50px;
    transition: all var(--transition) ease-in-out;
    box-shadow: 0 5px 5px rgba(0,0,0,.2);
    z-index: 9998;
}

.screen1_menu_items li {
    padding: auto;
    text-align: left;
    transition: all var(--transition) ease; 
    list-style-type: none;
	line-height: 32px;
}

.screen1_menu_items li:hover {
    color: #fff;
    text-decoration: underline;
}

.screen1_menu_items li.active {
    color: #fff;
}

.screen1_menu_items li a {
    font-size: 18px;
    line-height: 26px;
    color: #fff;
    text-decoration: none;
}

.screen1_menu_items .current_page_item {
    font-weight: bold;
}

/* animation */
.screen1_menu_btn input:checked ~.screen1_menu_hamburger {
    transform: translateX(-50px);
    background: transparent;
}

.screen1_menu_btn input:checked ~.screen1_menu_hamburger::before {
    transform: rotate(45deg) translate(35px, -35px);
    background: #fff;
}

.screen1_menu_btn input:checked ~.screen1_menu_hamburger::after {
    transform: rotate(-45deg) translate(35px, 35px);
    background: #fff;
}

.screen1_menu_btn input:checked ~.screen1_menu_items {
    left: 0%;
    width: 100%;
}

.screen1_menu_btn input {
    display: none;
}

.screen1_menu_container h4 {
    color: #799f3c;
}

.screen1_menu_container hr {
    width: 75%;
    margin-left: 0px;
    border: 0;
    border-top: 1px solid #828385;
}

/*nav img {
    max-width: 60%;
}*/

nav .logo {
    max-width: 240px;
    margin-right: 8%;
}

nav .logo img {
    width: 100%;
}

.screen1_menu_container a {
    text-decoration: none;
}

.screen1_menu_container a p {
    margin-top: 0;
    position: relative;
    color: #000;
    text-decoration: none;
    font-size: 12px;
}

.screen1_menu_container .bigmenutext {
    display: none;
}

.screen1_menu_container {
    display: none;
}

.screen1_menu_items .sub-menu {
    /*padding-left: 10px;*/
    padding-left: 0;
}

.screen1_menu_items .sub-menu a {
    margin-left: 0;
}

.screen1_menu_items .empty-link a {
    display: none;
}

.screen1_menu_items .empty-link ul li a {
    display: block;
}

/*------------------------------------*\
    RESPONSIVE
\*------------------------------------*/

@media only screen and (max-width:1280px) {
    .wrapper {
        width: 90%;
        margin-left: 5%;
    }
    
    header .wrapper {
        display: none;
    }

    .screen1_menu_container {
        display: flex;
    }

    .kursuebersicht {
        display: flex;
        flex-direction: column-reverse;
    }

    .kurskategorien {
        margin-top: 50px;
    }

    .kurs {
        min-width: 100%;
        width: 100%;
    }

    .kurskategorien {
        margin-right: 0;
    }

    .kurskategorien a {
        width: 100%;
    }

    .akteure-liste {
        grid-template-columns: 100%;
    }
}

@media only screen and (max-width:780px) {
	.kachel img {
		min-height: 260px;
		width: 85vw !important;
	}
}

/*------------------------------------*\
    MISC
\*------------------------------------*/

::selection {
	background:#04A4CC;
	color:#FFF;
	text-shadow:none;
}
::-webkit-selection {
	background:#04A4CC;
	color:#FFF;
	text-shadow:none;
}
::-moz-selection {
	background:#04A4CC;
	color:#FFF;
	text-shadow:none;
}

/*------------------------------------*\
    WORDPRESS CORE
\*------------------------------------*/

.alignnone {
	margin:5px 20px 20px 0;
}
.aligncenter,
div.aligncenter {
	display:block;
	margin:5px auto 5px auto;
}
.alignright {
	float:right;
	margin:5px 0 20px 20px;
}
.alignleft {
	float:left;
	margin:5px 20px 20px 0;
}
a img.alignright {
	float:right;
	margin:5px 0 20px 20px;
}
a img.alignnone {
	margin:5px 20px 20px 0;
}
a img.alignleft {
	float:left;
	margin:5px 20px 20px 0;
}
a img.aligncenter {
	display:block;
	margin-left:auto;
	margin-right:auto;
}
.wp-caption {
	background:#FFF;
	border:1px solid #F0F0F0;
	max-width:96%;
	padding:5px 3px 10px;
	text-align:center;
}
.wp-caption.alignnone {
	margin:5px 20px 20px 0;
}
.wp-caption.alignleft {
	margin:5px 20px 20px 0;
}
.wp-caption.alignright {
	margin:5px 0 20px 20px;
}
.wp-caption img {
	border:0 none;
	height:auto;
	margin:0;
	max-width:98.5%;
	padding:0;
	width:auto;
}
.wp-caption .wp-caption-text,
.gallery-caption {
	font-size:11px;
	line-height:17px;
	margin:0;
	padding:0 4px 5px;
}
.sticky {

}
.bypostauthor {

}

/*------------------------------------*\
    PRINT
\*------------------------------------*/

@media print {
	* {
		background:transparent !important;
		color:#000 !important;
		box-shadow:none !important;
		text-shadow:none !important;
	}
	a,
	a:visited {
		text-decoration:underline;
	}
	a[href]:after {
		content:" (" attr(href) ")";
	}
	abbr[title]:after {
		content:" (" attr(title) ")";
	}
	.ir a:after,
	a[href^="javascript:"]:after,
	a[href^="#"]:after {
		content:"";
	}
	pre,blockquote {
		border:1px solid #999;
		page-break-inside:avoid;
	}
	thead {
		display:table-header-group;
	}
	tr,img {
		page-break-inside:avoid;
	}
	img {
		max-width:100% !important;
	}
	@page {
		margin:0.5cm;
	}
	p,
	h2,
	h3 {
		orphans:3;
		widows:3;
	}
	h2,
	h3 {
		page-break-after:avoid;
	}
}
