/*
 Theme Name:   SMZ
 Theme URI:    https://www.koerbler.com/
 Description:  Hello Elementor Child Theme
 Author:       Koerbler GmbH
 Author URI:   https://www.koerbler.com/
 Template:     hello-elementor
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
 Text Domain:  smz
*/

a {
    /* color: inherit !important; */
}

/* Header navmenu */

header {
    font-weight: normal;
}

header .sub-menu {
    background: #fff8f0 !important;
    padding: 1.5rem 2rem !important;
}

header .sub-menu .hfe-sub-menu-item {
    padding: 0 !important;
    padding-block: 0.5rem !important;
}

header .sub-menu .menu-item {
    border: none !important;
}

/* header .sub-menu .parent-has-child .sub-menu {
  width: auto !important;
  height: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  grid-template-rows: repeat(4, 1fr) !important;
  background: #CCDEF5 !important;
  column-gap: 2.5rem !important;
  row-gap: 10px !important;
} */

header .sub-menu .parent-has-child .sub-menu {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    width: 500px;
    background: #ccdef5 !important;
    height: fit-content;
    gap: 1rem;
    width: fit-content !important;
    left: 0;
}

header .sub-menu .parent-has-child .sub-menu > li {
    flex-basis: 25%;
}

.hfe-nav-menu > nav > ul > .menu-item:last-child > .sub-menu {
    left: unset;
    right: 0;
}

@media screen and (max-width: 1470px) {
    .hfe-nav-menu > nav > ul > .menu-item:nth-child(2) > .sub-menu {
        left: unset;
        right: 0;
    }
}

header .sub-menu .parent-has-child .sub-menu li {
    display: flex;
    align-items: center;
}

header .sub-menu .parent-has-child .sub-menu a {
    padding: 0 !important;
}

.hfe-nav-menu .sub-menu li.menu-item {
    position: static;
}

header .elementor-widget-wrap.elementor-element-populated {
    padding: 0 !important;
}

/* Additional Links Header */
.header-additional-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
}

.header-additional-link img {
    height: 1.5rem;
}

.header-additional-link span {
    font-size: 16px;
}

/* Footer */
footer {
    font-size: 16px;
}

footer nav {
    font-weight: normal;
}

.hero-section {
    min-height: 60vh;
}

/* Startseite Section 1 */

.cards-category {
    min-height: 800px;
}

.card-topic-container ul {
    list-style: none;
    display: grid;
    font-size: 15px;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    padding: 0;
}

.card-topic-container li {
    width: 90vw;

    max-width: 400px;
}

@media screen and (max-width: 1400px) {
    .card-topic-container li {
        width: 25vw;
    }
}

.cards-category .elementor-widget-container {
    display: flex;
    align-items: center;
    flex-direction: column;
}

@media screen and (max-width: 1300px) {
    .card-topic-container ul {
        gap: 2rem;
    }
}

@media screen and (max-width: 980px) {
    .card-topic-container ul {
        grid-template-columns: repeat(1, 1fr);
        gap: 5rem;
    }

    .card-topic-container li {
        width: 90vw;
    }
}

.card-topic-container .card-container {
    min-height: 600px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.card-topic-container .card-container img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 200ms all ease;
}

.card-topic-container .card-content {
    padding: 2rem;
    width: 100%;
    font-size: 1rem;
    background: #194278bd;
    position: absolute;
    bottom: 0;
    left: 0;
    height: 45%;
    color: white;
    text-align: center;
}

.card-topic-container .card-content h3 {
    font-weight: bold;
}

.card-topic-container .card-content p {
    font-size: 16px;
    font-weight: normal;
    text-overflow: ellipsis;
}

.card-topic-container .card-container:hover img {
    transform: scale(1.05);
}

/* Startseite Section 2 */
.card-location-wrapper .card-container {
    min-height: 30rem;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.card-location-wrapper .card-container img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 200ms all ease;
}

.card-location-wrapper .card-content {
    padding: 2rem;
    width: 100%;
    font-size: 1rem;
    background: #ccdef5bd;
    position: absolute;
    bottom: 0;
    left: 0;
    color: #194278;
    text-align: center;
}

.card-location-wrapper .card-content h3 {
    font-weight: bold;
}

.card-location-wrapper .card-container:hover img {
    transform: scale(1.05);
}

.stadtarbeit {
    min-height: 900px;
}

/* Startseite Section 3 Termine */

.termine-section {
    min-height: 100vh;
    background-size: cover;
}

.termine-section > div > div > div {
    min-height: 100vh;
}

.termine-li {
    list-style: none;
    min-height: 500px;
}

@media screen and (max-width: 1025px) {
    .termine-li {
        max-width: 450px;
        margin-inline: auto;
    }
}

.home .termine,
.page .termine {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    margin-inline: auto;
    max-width: 1350px;
    padding-inline: 16px;
}

@media screen and (max-width: 1300px) {
    .home .termine,
    .page .termine {
        gap: 2rem;
    }
}

@media screen and (max-width: 1250px) {
    .home .termine {
        grid-template-columns: repeat(1, 1fr);
        place-items: center;
    }

    .home .termine-li {
        max-width: 450px;
        min-height: unset;
    }
}

@media screen and (max-width: 1000px) {
    .home .termine,
    .page .termine {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

.termin-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    color: white !important;
    text-decoration: none !important;
    padding: 3rem;
    border: 1px solid white;
    height: 100%;
}

.termin-wrapper div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 2rem;
}

.termin-wrapper h3 {
    font-size: 32px;
    font-weight: bold;
}

.termin-wrapper .text {
    font-size: 18px;
    font-weight: normal;
}

.termin-wrapper .bold {
    font-size: 18px;
    font-weight: 700;
}

/* Startseite Section 4 News */
.news {
    font-size: 20px !important;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media screen and (max-width: 767px) {
    .news {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .news li {
        margin-inline: auto;
    }
}

.elementor-search-form--skin-full_screen .elementor-search-form__container {
    background: rgba(25, 66, 120, 0.8) !important;
}

.elementor-search-form--skin-full_screen
    .elementor-search-form__toggle
    .e-font-icon-svg-container,
.elementor-search-form--skin-full_screen .elementor-search-form__toggle i {
    background: transparent !important;
}

.news li {
    width: 100%;
    max-width: 350px;
    list-style: none;
    min-height: 500px;
}

.news .image-wrapper {
    position: relative;
    height: 20rem;
    width: 100%;
}

.news .image-wrapper img {
    position: absolute !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: 200ms all ease;
}

.news li a:hover .image-wrapper img {
    transform: scale(1.05);
}

.news .image-wrapper div {
    width: 100% !important;
    position: absolute;
    bottom: 1rem;
    left: 50%;
    width: max-content;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #ffe2c2;
    padding: 0.4em 2em;
    border-radius: 3rem;
    text-align: center;
    font-size: 14px;
}

.news .image-wrapper div .date {
    font-weight: normal !important;
    font-size: 14px !important;
    margin-top: -0.23rem !important;
}

.news .news-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
}

.news .news-container .content {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
}

.news .news-container .content h4 {
    margin-top: 2rem;
    font-weight: bold;
    font-size: 1.6rem;
}

.news .news-container .content p {
    margin-top: -10px;
    font-size: 16px;
    font-weight: normal;
}

.more-news-btn a {
    background: #194278;
}

.more-news-btn a span {
    color: white;
}

.hero.container-relative {
    position: relative !important;
}

.hero-container-relative .hero-icon {
    position: absolute;
    right: 50%;
    bottom: 50%;
    transform: translate(50%, calc(50% + 10px));
    z-index: 2;
    border-radius: 50%;
    height: 150px;
}

.familienberatung-card {
    aspect-ratio: 1;
}

.beratungsangebot-wrapper > div {
    gap: 2rem;
}

.beratungsangebot-wrapper-tablet > div {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

#content
    > div
    > div.elementor.elementor-4867
    > section.elementor-section.elementor-top-section.elementor-element.elementor-element-ead6cd6.elementor-section-boxed.elementor-section-height-default.elementor-section-height-default
    > div
    > div
    > div
    > section
    .elementor-container.elementor-column-gap-custom {
    gap: 2rem;
}

.pre-footer-wrapper {
    color: white;
    display: flex;
    gap: 7rem;
}

.pre-footer-wrapper div {
    width: 2px;
    height: initial;
    background: white;
    align-self: stretch;
}

.pre-footer-wrapper a {
    color: white !important;
    padding: 0.5em 1em;
    margin-block: 2rem;
    font-size: 34px;
    border: 2px solid white;
    text-decoration: none !important;
}

@media screen and (max-width: 767px) {
    .pre-footer-wrapper {
        gap: 0;
        align-items: center;
        flex-direction: column;
    }
}

.no-underline a {
    text-decoration: none !important;
}

.footer-image {
    max-height: 12rem;
}

.break-word h2 {
    word-break: break-all !important;
}

a.hfe-menu-item,
a.hfe-sub-menu-item,
a.header-additional-link {
    color: #194278 !important;
}

a.hfe-sub-menu-item-active {
    font-weight: bold;
}

li.menu-item-has-children:has(a.hfe-sub-menu-item-active)
    > div
    > a.hfe-sub-menu-item {
    color: #ffb05c !important;
}

table tbody > tr:nth-child(odd) > td,
table tbody > tr:nth-child(odd) > th {
    background-color: unset;
}

.zentrum-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.zentrum-list li {
    min-height: 500px;
}

.zentrum-list a {
    position: relative;
    min-height: 500px;
    display: block;
    overflow: hidden;
}

.zentrum-list img {
    height: 100%;
    width: 100%;
    position: absolute;
    object-fit: cover;
    transition: 200ms all ease;
}

.zentrum-list .card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ccdef5bd;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.zentrum-list .card-content h3 {
    color: #194278;
    font-size: 1.75rem !important;
    font-weight: bold !important;
}

.zentrum-list li:hover img {
    transform: scale(1.05);
}

@media screen and (max-width: 1140px) {
    .zentrum-list {
        display: flex;
        flex-direction: column;
        padding-inline: 1.5rem;
        align-items: center;
        gap: 2.5rem !important;
    }

    .zentrum-list li {
        max-width: 450px;
        width: 100%;
    }

    .news {
        padding-inline: 1.5rem !important;
    }

    .news li {
        max-width: 450px;
    }
}
@media screen and (max-width: 1420px) {
    .zentrum-list {
        gap: 2rem;
    }

    .card-topic-container .card-content {
        height: 53%;
        padding: 1.5rem;
    }
}

@media screen and (max-width: 1259px) {
    .card-topic-container .card-content h3 {
        font-size: 24px;
    }

    .card-topic-container .card-content p {
        font-size: 15px;
    }
}

@media screen and (max-width: 1050px) {
    .card-topic-container .card-content p {
        font-size: 14px;
    }
}

@media screen and (max-width: 980px) {
    .card-topic-container .card-content h3 {
        font-size: 28px;
    }

    .card-topic-container .card-content p {
        font-size: 18px;
    }
}

@media screen and (max-width: 1170px) {
    .zentrum-list {
        gap: 1rem;
    }

    .news {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

.news a {
    color: #363636;
}

.link-color-fix a {
    color: #363636;
}

.news {
    margin: 0;
    padding: 0;
}

@media screen and (max-width: 440px) {
    .termin-wrapper {
        padding: 1.5rem;
    }

    .card-topic-container .card-container {
        min-height: 630px !important;
    }
}

.smz-btn a {
    background: #194278;
    color: white !important;
    padding: 1em 2em;
    background-color: #194278 !important;
    border: none !important;
    text-decoration: none !important;
}

.termine-search {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 0;
    gap: 1.5rem;
    padding: 0;
}

.termine-search li {
    min-height: 500px;
}

.termine-search li a {
    min-height: 500px;
    position: relative;
    padding: 0;
}

.termine-search img {
    position: absolute;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.termine-search .card-header,
.termine-search .card-footer {
    position: absolute;
    left: 0;
    width: 100%;
    background: #194278cc;
    margin: 0;
    padding: 1rem 2rem;
    font-size: 16px;
    font-weight: 700;
}

.termine-search .card-header {
    top: 0;
}

.termine-search .card-footer {
    bottom: 0;
    min-height: 50%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
}

.termine-search h3 {
    font-size: 24px;
}

.termine-search .text {
    line-height: 1.5rem;
    height: 3rem;
    overflow: hidden;
}

.termine a {
    color: #154377 !important;
    border-color: #154377 !important;
}

li.hfe-has-submenu li.hfe-has-submenu li.hfe-has-submenu .sub-menu {
    height: fit-content !important;
    grid-template-columns: 1fr !important;
    top: 100% !important;
    left: 0;
    width: 100% !important;
    background: #ffffff !important;
}

#oneLineText {
    line-height: 1.5rem;
    height: 1.5rem;
    overflow: hidden;
}
