/*
Theme Name: SFZ Theme
Description: Theme for the SFZ
Template: oceanwp
Version: 1.0
*/


/*General*/
body {
    hyphens: auto;
}
.content-area {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    border: 0 !important;
}


/*Events*/
.event-info h3 {
    margin-bottom: 0;
    font-size: 20px;
}
.tribe-block__organizer__details::before{
    content: "Ansprechpartner";
    font-weight: bold;
    font-size: 20px;
}
.tribe-block__organizer__details {
    display: none !important;
}
.tribe-block__venue {
    display: none !important;
}
#rtec-form-toggle-button {
    border-radius: 30px;
    color: white;
    border-style: solid;
    border-color: #005794;
    text-transform: uppercase;
    font-weight: bold;
    transition: all .4s ease-out;
}
#rtec-form-toggle-button:hover {
    color: #005794;
    background-color: white;
    transition: all .4s ease-out;
}


/*Startpage*/
.home .page-header {
    display: none;
}
.home #main #content-wrap {
    padding-top: 0;
    padding-bottom: 0;
}
.home #primary {
    margin-bottom: 0 !important;
}
#img-header,#img-footer {
    overflow: hidden;
}
#img-header img,#img-footer img{
    min-width: 500px;
    overflow: hidden;
}
#mathe h1 {
    color: #e7552c;
}
#mathe + .display-posts-listing.no-results p {
    background-color: #e7552c;
}
a[href^="#mathe"] {
    color: #e7552c;
}
#forschen h1 {
    color: #5ba921;
}
#forschen + .display-posts-listing.no-results p {
    background-color: #5ba921;
}
a[href^="#forschen"] {
    color: #5ba921;
}
#arduino h1 {
    color: #57a8dd;
}
#arduino + .display-posts-listing.no-results p {
    background-color: #57a8dd;
}
a[href^="#arduino"] {
    color: #57a8dd;
}
#robotik h1 {
    color: #fb970d;
}
#robotik + .display-posts-listing.no-results p {
    background-color: #fb970d;
}
a[href^="#robotik"] {
    color: #fb970d;
}
#industrie h1 {
    color: #3a5c7f;
}
#industrie + .display-posts-listing.no-results p {
    background-color: #3a5c7f;
}
a[href^="#industrie"] {
    color: #3a5c7f;
}
.home .wp-block-image:last-of-type {
    margin-bottom: 0 !important;
}
.home .wp-block-group.alignwide {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
}
.home .wp-block-group__inner-container:first-of-type {
    display: flex;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: auto;
    justify-content: space-evenly;
}
.home .wp-block-group__inner-container:first-of-type figure {
    padding: 10px;
    min-width: 270px;
    flex-basis: 0;
}
.home .wp-block-group__inner-container:first-of-type figure figcaption {
    max-width: 250px;
    margin: auto;
}
.home .wp-block-group__inner-container:first-of-type figure figcaption a {
    font-size: 24px;
    text-decoration: none !important;
    text-shadow: -2px 2px 10px #aaa;
}
.home .wp-block-group__inner-container:first-of-type figure img {
    max-width: 250px;
    width: 100%;
    margin: auto;
    display: block;
}
@media (min-width: 440px) and (max-width: 550px) {
    .home .wp-block-group__inner-container:first-of-type figure img {
        max-width: 200px;
    }
    .home .wp-block-group__inner-container:first-of-type figure figcaption {
        max-width: 200px;
    }
    .home .wp-block-group__inner-container:first-of-type figure {
        min-width: 220px;
    }
}
@media (max-width: 270px) {
    .home .wp-block-group__inner-container:first-of-type figure {
        min-width: 100%;
    }
}
.home .wp-block-media-text:not(:first-of-type) {
    grid-template-columns: 500px auto !important;
}
.home .wp-block-media-text:not(:first-of-type).has-media-on-the-right {
    grid-template-columns: auto 500px !important;
}
@media (max-width: 1000px) {
    .home .wp-block-media-text:not(:first-of-type) {
        grid-template-columns: 400px auto !important;
    }
    .home .wp-block-media-text:not(:first-of-type).has-media-on-the-right {
        grid-template-columns: auto 400px !important;
    }
}
@media (max-width: 800px) {
    .home .wp-block-media-text:not(:first-of-type) {
        grid-template-columns: 300px auto !important;
    }
    .home .wp-block-media-text:not(:first-of-type).has-media-on-the-right {
        grid-template-columns: auto 300px !important;
    }
}
@media (max-width: 600px) {
    .home .wp-block-media-text:not(:first-of-type) {
        grid-template-columns: 100% !important;
        text-align: center;
    }
    .home .wp-block-media-text:not(:first-of-type).has-media-on-the-right {
        grid-template-columns: 100% !important;magnifier
        text-align: center;
    }
}
.wp-block-media-text:first-of-type h1 {
    hyphens: none;
}
@media (max-width: 330px) {
    .wp-block-media-text:first-of-type h1 {
        hyphens: auto;
    }
}
@media (max-width: 850px) {
    .wp-block-media-text:first-of-type {
        grid-template-columns: 100%;
    }
    .wp-block-media-text:first-of-type .wp-block-media-text__content {
        background-color: rgba(0, 0, 0, 0.4);
        padding: 40px 8%;
        grid-column: 1;
        grid-row: 1;
    }
    .wp-block-media-text:first-of-type h1 {
        color: white;
    }

    .wp-block-media-text:first-of-type .wp-block-media-text__media {
        grid-column: 1;
        grid-row: 1;
        height: 100%;
    }
    .wp-block-media-text:first-of-type .wp-block-media-text__media img {
        object-fit: cover;
        height: 100%;
    }
}


/*Slider*/
.tns-outer {
    margin-top: 20px;
    margin-bottom: 50px;
}
.tns-controls {
    display: flex;
    align-items: center;
    justify-content: center;
}
.tns-controls button {
    margin: 0 10px;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    border-color: #005794;
    border-style: solid;
    background-color: white;
    color: #005794;
    transition: all .4s ease-out;
}
.tns-controls button:hover {
    background-color: #005794;
    color: white;
    transition: all .4s ease-out;
}
.tns-controls i {
    font-size: 20px;
    vertical-align: -20%;
    font-weight: bold;
}
.slider-head {
    position: relative;
}
.slider-head h3 {
    position: absolute;
    bottom: -10px;
    left: 5%;
    color: white;
    line-height: 1.4;
    text-shadow: 1px 1px 0px #222;
    font-size: 30px;
    width: 90%;
    z-index: 99;
}
.slider-head img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
}
.img-overlay {
    background-image: linear-gradient(rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0.75) 100%);
    width: 100%;
    height: 100%;
    position: absolute;
}
.slider-date {
    background-color: #005794;
    padding: 10px;
    color: white;
    font-weight: bold;
}
.slider-link {
    text-decoration: none !important;
}
#slider-mathe .slider-date {
    background-color: #e7552c;
}
#slider-forschen .slider-date {
    background-color: #5ba921;
}
#slider-arduino .slider-date {
    background-color: #57a8dd;
}
#slider-robotik .slider-date {
    background-color: #fb970d;
}
#slider-industrie .slider-date {
    background-color: #3a5c7f;
}


/*Aktuelles slider*/
#slider-aktuelles img {
    border-radius: 15px;
}
#slider-aktuelles h3 {
    padding: 10px 10px 0 10px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 4em;
    margin: 0;
}
#slider-aktuelles p {
    text-align: justify;
}


/*Navigation*/
#site-navigation {
    width: calc(100vw - 355px);
}
#site-navigation-wrap .dropdown-menu {
    width: fit-content;
    width: -moz-fit-content;
    width: -webkit-fit-content;
    margin: 0 auto;
}
.sf-menu ul.sub-menu {
    top: 60%;
}
#searchform-dropdown {
    top: 70%;
    right: calc((100vw - 355px - 971px) / 2);
}
@media (max-width: 1350px) {
    #site-navigation-wrap .dropdown-menu {
        max-width: 700px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    #site-navigation {
        padding: 10px 0;
    }
    #site-navigation-wrap .dropdown-menu >li >a {
        line-height: 50px !important;
    }
    .sf-menu ul.sub-menu {
        top: 70%;
    }
    #searchform-dropdown {
        top: 50%;
        right: calc((100vw - 355px - 830px)/2);
    }
}
@media (max-width: 1150px) {
    #searchform-dropdown {
        top: 85%;
        right: 15px;
    }
}
.oceanwp-mobile-menu-icon a i{
    font-size: 24px;
}
.oceanwp-mobile-menu-icon a span{
    font-size: 24px;
}
#mobile-dropdown {
    max-height: none;
}
#mobile-dropdown a {
    font-size: 24px;
}
#mobile-dropdown .icon-magnifier {
    font-size: 24px;
}
#mobile-dropdown form input[type="search"] {
    font-size: 24px;
}
#mobile-dropdown ul li a .dropdown-toggle:before {
    content: ' ';
    display: inline-block;
    border-bottom: 5px solid #005794;
    border-right: 5px solid #005794;
    height: 20px;
    width: 20px;
    transform: rotate(45deg);
    transition: transform 1s;
}
#mobile-dropdown ul li.active>a>.dropdown-toggle:before {
    content: ' ';
    display: inline-block;
    border-bottom: 5px solid #005794;
    border-right: 5px solid #005794;
    height: 20px;
    width: 20px;
    transform: rotate(-135deg) translate(-8px, -8px);
    transition: transform 1s;
}


/*DPS*/
.display-posts-listing.no-results p {
    color: #fff;
    background-color: #005794;
    border-radius: 9999px;
    box-shadow: none;
    display: inline-block;
    font-size: 1.125em;
    padding: calc(.667em + 2px) calc(1.333em + 2px);
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}
.display-posts-listing.no-results {
    text-align: center;
    margin: 20px;
}


/*Header*/
#site-header {
    background-image: none !important;
}
.background-image-page-header {
    min-height: 200px;
}


/*Footer*/
footer h2 {
    color: white;
    position: relative;
    font-size: 24px;
}
footer h2::before {
    content: "";
    position: absolute;
    display: block;
    left: 0;
    top: 100%;
    width: 35px;
    height: 5px;
    -webkit-border-radius: 10px;
    border-radius: 10px;
    background-color: #005794;
}
#footer-bottom #footer-bottom-menu, #footer-bottom #copyright {
    width: 100%;
    text-align: center;
    padding-right: 0;
}
#footer-widgets .footer-box {
    padding: 0 30px;
}


/* Grid style */
.display-posts-listing.grid {
	display: grid;
	grid-gap: 16px;
}

.display-posts-listing.grid .title {
	display: block;
  text-align: center;
  font-size: 180%;
}

.display-posts-listing.grid img {
	display: block;
	max-width: 100%;
	height: auto;
}

@media (min-width: 600px) {
	.display-posts-listing.grid {
		grid-template-columns: repeat( 2, 1fr );
	}
}

@media (min-width: 1024px) {
	.display-posts-listing.grid {
		grid-template-columns: repeat( 3, 1fr );
	}
}



/*add Material Icons*/
.material-icons {
  font-family: 'Material Icons Round';
  font-weight: normal;
  font-style: normal;
  font-size: 18px;  /* Preferred icon size */
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  vertical-align: -15%;

  /* Support for all WebKit browsers. */
  -webkit-font-smoothing: antialiased;
  /* Support for Safari and Chrome. */
  text-rendering: optimizeLegibility;

  /* Support for Firefox. */
  -moz-osx-font-smoothing: grayscale;

  /* Support for IE. */
  font-feature-settings: 'liga';
}

/* Add Fonts*/
/* roboto-italic - latin */
@font-face {
    font-family: 'Roboto';
    font-style: italic;
    font-weight: 400;
    src: url('./fonts/roboto-v20-latin-italic.eot');
    /* IE9 Compat Modes */
    src: local(''),
        url('./fonts/roboto-v20-latin-italic.eot?#iefix') format('embedded-opentype'),
        /* IE6-IE8 */
        url('./fonts/roboto-v20-latin-italic.woff2') format('woff2'),
        /* Super Modern Browsers */
        url('./fonts/roboto-v20-latin-italic.woff') format('woff'),
        /* Modern Browsers */
        url('./fonts/roboto-v20-latin-italic.ttf') format('truetype'),
        /* Safari, Android, iOS */
        url('./fonts/roboto-v20-latin-italic.svg#Roboto') format('svg');
        /* Legacy iOS */
    font-display: swap
}

/* roboto-regular - latin */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    src: url('./fonts/roboto-v20-latin-regular.eot');
    /* IE9 Compat Modes */
    src: local(''),
        url('./fonts/roboto-v20-latin-regular.eot?#iefix') format('embedded-opentype'),
        /* IE6-IE8 */
        url('./fonts/roboto-v20-latin-regular.woff2') format('woff2'),
        /* Super Modern Browsers */
        url('./fonts/roboto-v20-latin-regular.woff') format('woff'),
        /* Modern Browsers */
        url('./fonts/roboto-v20-latin-regular.ttf') format('truetype'),
        /* Safari, Android, iOS */
        url('./fonts/roboto-v20-latin-regular.svg#Roboto') format('svg');
        /* Legacy iOS */
    font-display: swap
}

/* material icons */
@font-face {
  font-family: 'Material Icons Round';
  font-style: normal;
  font-weight: 400;
  src: url('./fonts/MaterialIconsRound-Regular.woff2') format('woff2');
}
