/*
 Theme Name:   DID Website
 Theme URI:    https://generatepress.com
 Description:  GeneratePress child theme
 Author:       Digitalszene - Michael Moebius
 Author URI:   https://www.digitalszene.de
 Template:     generatepress
 Version:      0.1
*/


/** Hoover-Effekt bei Bilder - Footer **/

.grayscale img {
        padding: 0 $grid-gutter-width/2;
        flex-basis: 50%;
        filter: grayscale(100%);
    }
.grayscale a:hover img {
            filter: none;
    }


/** Silbentrennung **/

body {
    -ms-hyphens: auto;
    -webkit-hyphens: auto;
    hyphens: auto;
}


/** Schriftarten lokal **/

@font-face {
font-family:"PT Sans";
src:url("./fonts/PTS55F.eot?") format("eot"),
url("./fonts/PTS55F.woff") format("woff"),
url("./fonts/PTS55F.ttf") format("truetype"),
url("./fonts/PTS55F.svg#PTSans-Regular") format("svg");
font-weight:normal;font-style:normal;
}

@font-face {
font-family:"Latin";
src:url("./fonts/lmmono10-regular.eot?") format("eot"),
url("./fonts/lmmono10-regular.woff") format("woff"),
url("./fonts/lmmono10-regular.ttf") format("truetype"),
url("./fonts/lmmono10-regular.svg#LMMono10-Regular") format("svg");
font-weight:normal;font-style:normal;
}


/** Toggle function **/

.accordion-container {
    display: none;
}
.accordion-container.toggle-open {
    display: block;
}
.accordion-toggle {
    cursor: pointer;
    background-color: #ffffff;
}
.accordion-toggle {
	font-size: 24px;
    padding: 10px 0px;
    margin-top: 0px;
    margin-bottom: 0;
}

.accordion-toggle:after {
    content: '\002B';
    color: #ff4c02;
    font-weight: bold;
    float: right;
    margin-right: 20px;
	margin-top: -40px;
}

.accordion-toggle.toggle-open:after {
    content: "\2212";
}


/** Contact Form 7 - Input Fix **/

span.wpcf7-list-item {
    margin: 0;
}
.wpcf7-form .small {
    font-size: .8em;
}
textarea.wpcf7-textarea {
    max-height: 120px;
}


/** Contact Form 7 - Captcha**/

.wpcf7-form label {
    display: inline-grid;
}


/** Contact Form 7 - Checkbox/Radio Liste **/

.wpcf7-form-control.wpcf7-checkbox,
.wpcf7-form-control.wpcf7-radio {
    display: grid;
}


/** Contact Form 7 - Column Grid **/
.dwp-form {
    width: 100%;
    margin: 0 auto;
}
.dwp-form-row {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.dwp-form-row .wpcf7-form-control,
.wpcf7-form label {
    width: 100%;
}
.dwp-form-column {
    flex: 1;
    padding: 0.5rem 0;
    width: 100%;
}
.dwp-form-column:first-of-type {
    padding-left: 0;
}
.dwp-form-column:last-of-type {
    padding-right: 0;
}


/** Notebook / Desktop **/

@media only screen and ( min-width: 48em ) { 
    .dwp-form-row {
        flex-direction: row;
    }
    .dwp-form-column {
        padding: 0.5rem 1rem;
    }
}


/** Neuester Blog-Beitrag **/

.wp-block-latest-posts li{
	background-color: #00afc4;
	padding: 40px 50px;
	border-radius: 100px;
	color: #FFF;
	margin-bottom: 10px;
	line-height: 1.1;
	text-align: center;
}
.wp-block-latest-posts a{
	color: #FFF;
	display: block;
	font-size: 30px;
	margin-bottom: 10px;
	font-family: "Latin";
}
.wp-block-latest-posts__post-author, .wp-block-latest-posts__post-date {
	margin-right: 15px;
	line-height: 1.1;
}


/** Externe Links mit Pfeil kennzeichnen **/

.entry-content a[href^="http://"]:not([href*="www.dids.de"]):after,
.entry-content a[href^="https://"]:not([href*="www.dids.de"]):after {
content: '\2197';
padding-left: 7px;
font-size: 1em;
}