:root {
    --soz-accent: #a3824a;
    --soz-muted-bg: #f2f2f2;
}

/* Section titles with ornament */

.soz-title,
.soz-title .uk-h2,
.soz-title h2,
h2.soz-title {
    color: inherit;
}

.soz-title::after {
    content: "";
    display: block;
    width: 150px;
    height: 18px;
    margin: 18px auto 0;
    background: url("../assets/ornament.svg") center / contain no-repeat;
}

.soz-title-small,
.soz-title-small .uk-h3,
.soz-title-small h3,
.soz-page-title,
.soz-page-title .uk-h1,
.soz-page-title h1 {
    color: inherit;
}

.soz-job-image img,
.soz-job-image .el-image {
    border: 1px solid #ebebeb;
    padding: 6px;
    background: #fff;
    max-width: 300px;
    height: auto;
}

.soz-stellenmarkt h4,
.soz-stellenmarkt .uk-h4 {
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
}

.soz-stellenmarkt h5,
.soz-stellenmarkt .uk-h5 {
    text-transform: none !important;
    letter-spacing: normal !important;
    font-weight: 700 !important;
}

.uk-section-primary .soz-title,
.uk-section-primary .soz-title h2,
.uk-section-primary h2.soz-title {
    color: inherit;
}

.uk-section-primary .soz-title::after,
.soz-ornament-bottom > .uk-container::after {
    background-image: url("../assets/ornament-white.svg");
}

.soz-ornament-bottom > .uk-container::after {
    content: "";
    display: block;
    width: 150px;
    height: 18px;
    margin: 50px auto 0;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

.soz-boxed {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 2px;
}

@media (max-width: 1239px) {
    .soz-boxed {
        margin-left: 20px;
        margin-right: 20px;
    }
}

.uk-section-primary .uk-button-default {
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: transparent;
    color: #fff;
    text-transform: uppercase;
}

.uk-section-primary .uk-button-default:hover {
    background: #fff;
}

.uk-section-primary a:not(.uk-button) {
    color: #fff;
    text-decoration: underline;
}

.uk-section-primary h3,
.uk-section-primary .uk-h3,
.uk-section-primary .uk-h4,
.uk-section-primary .uk-h5 {
    color: #fff;
}

/* Navbar */

.tm-header .uk-navbar-container,
.tm-header-mobile .uk-navbar-container {
    background: #fff;
}

.uk-navbar-nav > li > a {
    font-size: 13px;
    text-transform: none;
    letter-spacing: 0.02em;
    white-space: nowrap;
    color: #222;
    padding-left: 10px;
    padding-right: 10px;
}

.uk-navbar-nav > li.soz-menu-highlight > a,
.uk-nav > li.soz-menu-highlight > a {
    font-weight: 700;
}

.uk-logo img {
    max-height: 44px;
    width: auto;
}

/* Hide leftover default WordPress widgets if a position is still occupied */

.tm-toolbar .widget_block,
.tm-header .widget_block,
.tm-header-mobile .widget_block {
    display: none;
}

/* Hero slideshow */

.soz-hero .el-item {
    background: linear-gradient(135deg, #e9dbe7, #c9a5c4);
}

.soz-hero .uk-position-cover.uk-section-default {
    background: transparent !important;
}

.soz-hero .uk-overlay-default {
    background: rgba(255, 255, 255, 0.65);
}

.soz-hero .uk-text-meta,
.soz-hero .el-meta {
    font-weight: bold;
}

.soz-hero-quote .uk-overlay-default {
    background: transparent;
    box-shadow: none;
}

.soz-hero-quote .el-title {
    max-width: 18em;
    font-weight: 400;
}

/* Inner pages: full-width photos like live LayerSlider, without caption overlay */
.soz-page-hero .uk-slideshow-items {
    min-height: 360px;
}

.soz-page-hero .uk-overlay,
.soz-page-hero .uk-position-cover.uk-section-default {
    display: none;
}

/* Historie accordion */

.soz-history {
    background: var(--soz-muted-bg);
    padding: 10px 20px;
}

.soz-history > :nth-child(n+2) {
    border-top: 1px solid #ddd;
    padding-top: 15px;
}

/* Aktuelles – YOOtheme Grid + Dynamic Content */

.soz-news .el-image,
.soz-news .el-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.soz-news .el-meta,
.soz-news .el-meta time {
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #666;
}

.soz-news .el-title,
.soz-news .el-title.uk-h4,
.soz-news h3.el-title {
    font-weight: 700;
    line-height: 1.35;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.soz-news .el-title,
.soz-news .el-title a,
.soz-news .el-title .uk-link {
    color: var(--soz-accent);
    text-decoration: none;
}

.soz-news .el-title a:hover,
.soz-news .el-title .uk-link:hover {
    color: inherit;
}

.soz-news .el-content {
    font-size: 14px;
}

.soz-news .el-link.uk-button,
.soz-news .uk-button-primary {
    margin-top: 4px;
}

/* Single: graphic icon featured images (team/check/info), not photographs */
.single.soz-featured-icon .uk-article [property="image"] {
    text-align: center;
}

.single.soz-featured-icon .uk-article [property="image"] picture,
.single.soz-featured-icon .uk-article [property="image"] img {
    display: block;
    width: 160px;
    max-width: 160px;
    height: auto;
    margin-left: auto;
    margin-right: auto;
}

.single:not(.soz-featured-icon) .uk-article [property="image"] img {
    max-width: 100%;
    height: auto;
}

/* Legacy shortcode markup (unused on the homepage) */

.soz-news-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    background: var(--soz-muted-bg);
}

.soz-news-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.soz-news-date {
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #666;
}

.soz-news-title,
.soz-news-title.uk-h4,
h3.soz-news-title {
    font-weight: 700;
    line-height: 1.35;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.soz-news-title a {
    color: var(--soz-accent);
    text-decoration: none;
}

.soz-news-title a:hover {
    color: inherit;
}

.soz-news-excerpt {
    font-size: 14px;
}

/* Leitsatz */

.soz-leitsatz blockquote {
    margin: 0;
    font-size: 1.35rem;
    font-style: normal;
    font-weight: bold;
    line-height: 1.5;
    color: #fff;
}

.soz-leitsatz blockquote footer {
    margin-top: 15px;
    font-size: 13px;
    font-weight: bold;
    color: #fff;
}

.soz-leitsatz blockquote footer::before {
    content: none;
}

/* Team */

.soz-team .uk-h5,
.soz-team h3 {
    color: inherit;
}

.soz-people {
    margin-top: 20px;
}

.soz-person {
    margin: 0 0 24px;
}

.soz-person img {
    width: 100%;
    height: auto;
    border: 1px solid #ddd;
}

.soz-person figcaption {
    margin-top: 8px;
    font-weight: 700;
}

.soz-team-grid .el-title,
.soz-team-grid .uk-h2,
.soz-team-grid .uk-h3,
.soz-team-grid h2,
.soz-team-grid h3 {
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
}

.soz-team-grid .el-meta,
.soz-team-grid .uk-text-meta {
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
    font-size: 1.35rem;
    line-height: 1.3;
    margin-bottom: 0.15em;
}

.soz-team-grid .el-image,
.soz-team-grid img {
    border: 1px solid #ebebeb;
    padding: 4px;
    background: #fff;
    max-width: 214px;
    width: 214px;
    height: auto;
}

.soz-beitritt h4,
.soz-beitritt .uk-h4 {
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
}

/* Contact Form 7 */

.soz-form .uk-form-label {
    display: block;
    margin-bottom: 5px;
    text-align: center;
    text-transform: none;
    letter-spacing: normal;
    font-size: 14px;
}

.soz-form .uk-input,
.soz-form .uk-textarea {
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 2px;
}

.soz-form-consent {
    font-size: 13px;
}

.soz-form-consent .wpcf7-list-item {
    margin: 0 5px 0 0;
}

.wpcf7 .wpcf7-not-valid-tip {
    margin-top: 5px;
    font-size: 13px;
    color: #c0392b;
}

.wpcf7 .wpcf7-not-valid {
    border-color: #c0392b;
}

.wpcf7 form .wpcf7-response-output {
    margin: 20px 0 0;
    padding: 10px 15px;
    text-align: center;
}

/* Footer widget */

.soz-footer {
    color: #888;
}

.soz-footer a {
    color: #888;
}

.soz-footer a:hover {
    color: inherit;
}
