/*
Theme Name: <em>Hans Spaeth GmbH</em>
Theme URI: https://spaethgmbh.de/
Author: Stephan Lachmuth
Author URI: https://lachmuth-it.de/
Version: 1.0
Description: Theme für spaethgmbh.de
*/

*, body.spaeth {
    font-family: 'PT Sans', sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 20px;
    margin: 0;
    color: #747474;
}

#adminmenu li * {
    color: #ffffff !important;
}

#content {
    padding: 0 4px;
}

#main, #wrapper {
    background-color: #ffffff;
    margin-bottom: 50px;
}

.archive-page .post-thumbnail {
    float: left;
    width: 200px;
    margin-right: 30px;
}

.archive-page .post-content {
    padding-left: 230px;
}


img {
    border-style: none;
    vertical-align: top;
    max-width: 100%;
    height: auto;
}

.slider-wrapper {
    width: 100%;
    margin: 0 auto;
    background-color: #1D2431;
}

.slider img {
    display: none;
}

.slider img:first-child {
    display: block;
}

.row {
    max-width: 940px;
    margin: 0 auto;
}

.row:after {
    content: "";
    display: block;
    clear: both;
}

b {
    font-weight: bold;
}

header {
    margin-top: 15px;
}

header .logo {
    margin: 10px 0 40px 1px;
    float: left;
    overflow: hidden;
}

header nav#nav {
    margin: 0;
    float: right;
    font-size: 14px;
}

header nav#nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 10000;
}

header nav#nav ul:first-child > li {
    border-top: #ffffff 3px solid;
    position: relative;
    float: left;
    margin: 0 35px 0 0;
}

header nav#nav ul li:last-child{
    margin-right:0;
}

header nav#nav ul:first-child > li.current_page_item,
header nav#nav ul:first-child > li.current-menu-item,
header nav#nav ul:first-child > li.current-menu-parent,
header nav#nav ul li:hover {
    border-top: #C63926 3px solid;
}

header nav#nav ul li a {
    display: block;
    height: 60px;
    line-height: 60px;
    color: #333333;
    text-decoration: none;
}

header nav#nav ul li ul {
    display: none;
    position: absolute;
    border-top: 3px solid #C63926;
    top: 58px;
    left: 0;
    width: 170px;
    background-color: #edebeb;
}

header nav#nav ul li:last-child ul {
    left: auto;
    right: 0;
}

header nav#nav ul ul li {
    float: none;
    padding-left: 10px;
    border-top: none;
}

header nav#nav ul ul li:hover {
    float: none;
    padding-left: 10px;
    border-top: none;
    background-color: #e0e0e0;
}


header nav#nav ul li:hover ul,
header nav#nav ul li ul:hover {
    display: block;
}

header #nav-select {
    padding: 5px 1px;
    display: none;
    margin-bottom: 20px;
}

header #nav-select select {
    display: block;
    font-size: 16px;
    font-family: 'PT Sans', sans-serif;
    font-weight: 400;
    color: #333333;
    line-height: 1.3;
    padding: .6em 1.4em .5em .5em;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    border: 1px solid #aaaaaa;
    box-shadow: 0 1px 0 1px rgba(0,0,0,.04);
    border-radius: .2em;
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    background-color: #ffffff;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23aaaaaa%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat, repeat;
    background-position: right .7em top 50%, 0 0;
    background-size: .65em auto, 100%;
}

header #nav-select select::-ms-expand {
    display: none;
}
header #nav-select select:hover {
    border-color: #888;
}
header #nav-select select:focus {
    border-color: #aaa;
    box-shadow: 0 0 1px 3px rgba(59, 153, 252, .7);
    box-shadow: 0 0 0 3px -moz-mac-focusring;
    color: #222;
    outline: none;
}
header #nav-select select option {
    font-weight:normal;
}

.page-title-container {
    height: 87px;
    background-image: url("../img/header_bg.png");
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #f6f6f6;
    border-top: 1px solid #d2d3d4;
    border-bottom: 1px solid #d2d3d4;
    display: table;
    width: 100%;
    margin-bottom: 45px;
}
.page-title {
    display: table-cell;
    vertical-align: middle;
    width: 940px;
    margin: 0 auto;
    overflow: hidden;
}

.page-title-wrapper {
    width: 100%;
    margin: 0 auto;
    max-width: 960px;
    padding: 0 10px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.page-title h1 {
    float: left;
    font-weight: normal;
    font-size: 18px;
    line-height: normal;
    color: #343333;
    margin: 0;
    padding: 0;
    width: 45%;
}

.reading-box {
    background-color: #f3f4f5;
    border-left: 3px #C63926 solid;
    padding: 25px;
    margin-top: 45px;
}

h1 {
    font-weight: 400;
    font-size: 20px;
}

h2 {
    font-weight: 400;
    font-size: 18px;
}

h3 {
    font-size: 16px;
}

a {
    color: #C63926;
    text-decoration: none;
}

hr {
    margin-top: 55px;
    margin-bottom: 25px;
    border: none !important;
    height: 1px !important;
    background-color: #e8e6e6 !important;
    color: #e8e6e6 !important;
}

ul, p, h1, h2, h3 {
    margin-bottom: 20px;
}

.wp-block-columns {
    padding-left: 5px;
}

.aktuelle-projekte img {
    margin-left: 25px;
    margin-top: 25px;
    border: 1px solid #e8e6e6;
}

@media only screen and (max-width: 800px) {
    header nav#nav {
        display: none;
    }

    header #nav-select {
        display: block;
    }

    .archive-page .post-thumbnail {
        float: none;
        width: auto;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .archive-page .post-content {
        padding-left: 0;
    }
}


.clearboth{
    clear: both;
    display: block;
    font-size: 0;
    height: 0;
    line-height: 0;
    width: 100%;
    overflow:hidden;
}


.footer-area {
    border-top: 12px solid #e9eaee;
    background-color: #1d2532;
    padding: 43px 10px 40px;
    color: #8c8989;
}

#footer {
    padding: 18px 10px 12px;
    background: #161c25;
    border-top: 1px solid #3b4049;
}

#footer #copyright {
    color: #8C8989;
    font-size: 12px;
}

.clearfix:after {
    content: "";
    display: table;
    clear: both;
}

/* ----- Breadcrumbs ----- */
.breadcrumbs {
    font-size: 12px;
    color: #8a8a8a;
    margin: -25px 0 20px;
    padding: 0 4px;
}
.breadcrumbs a {
    color: #8a8a8a;
}
.breadcrumbs a:hover {
    color: #C63926;
}
.breadcrumbs .sep {
    margin: 0 6px;
    color: #c8c8c8;
}

/* ----- Lead-Box (Intro auf Landingpages) ----- */
.lead-box {
    background-color: #f3f4f5;
    border-left: 3px #C63926 solid;
    padding: 25px;
    margin-bottom: 35px;
}
.lead-box p:last-child {
    margin-bottom: 0;
}

/* ----- Service-Tile-Grid (Leistungen-Hub) ----- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0 40px;
}
.service-tile {
    border: 1px solid #e8e6e6;
    background-color: #ffffff;
    padding: 20px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
}
.service-tile:hover {
    border-color: #C63926;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.service-tile .tile-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #C63926;
    font-weight: 700;
}
.service-tile .tile-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}
.service-tile h3 {
    margin-bottom: 10px;
    color: #343333;
    font-size: 15px;
    font-weight: 700;
}
.service-tile p {
    flex-grow: 1;
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 19px;
}
.service-tile .tile-link {
    color: #C63926;
    font-weight: 700;
    font-size: 13px;
}

/* ----- Process steps ----- */
.process-steps {
    list-style: none;
    padding: 0;
    counter-reset: step-counter;
    margin: 20px 0 30px;
}
.process-steps li {
    counter-increment: step-counter;
    position: relative;
    padding-left: 55px;
    margin-bottom: 18px;
    min-height: 40px;
}
.process-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 38px;
    height: 38px;
    line-height: 38px;
    text-align: center;
    background-color: #C63926;
    color: #ffffff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 16px;
}
.process-steps li strong {
    display: block;
    color: #343333;
    margin-bottom: 4px;
}

/* ----- Feature list (Vorteile) ----- */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 30px;
}
.feature-list li {
    padding-left: 28px;
    position: relative;
    margin-bottom: 10px;
}
.feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 18px;
    height: 18px;
    background-color: #C63926;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.75.75 0 1 1 1.06-1.06L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0z'/></svg>") no-repeat center / 14px;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.75.75 0 1 1 1.06-1.06L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0z'/></svg>") no-repeat center / 14px;
}

/* ----- FAQ accordion ----- */
.faq-item {
    border-bottom: 1px solid #e8e6e6;
    padding: 14px 0;
}
.faq-item > summary {
    cursor: pointer;
    list-style: none;
    color: #343333;
    font-weight: 700;
    font-size: 14px;
    position: relative;
    padding-right: 30px;
    outline: none;
}
.faq-item > summary::-webkit-details-marker {
    display: none;
}
.faq-item > summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #C63926;
    font-size: 22px;
    line-height: 1;
    font-weight: 400;
}
.faq-item[open] > summary::after {
    content: "–";
}
.faq-item > .faq-answer {
    padding-top: 12px;
}
.faq-item > .faq-answer p:last-child {
    margin-bottom: 0;
}

/* ----- CTA-Box ----- */
.cta-box {
    background-color: #1D2431;
    color: #ffffff;
    padding: 30px;
    margin: 40px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.cta-box * {
    color: #ffffff;
}
.cta-box .cta-text {
    flex: 1 1 60%;
}
.cta-box .cta-text h3 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}
.cta-box .cta-text p {
    color: #c8ccd2;
    margin-bottom: 0;
}
.cta-box .cta-actions {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cta-button {
    display: inline-block;
    background-color: #C63926;
    color: #ffffff !important;
    padding: 12px 22px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 3px;
    text-align: center;
    min-width: 200px;
}
.cta-button:hover {
    background-color: #a82e1f;
}
.cta-button.secondary {
    background-color: transparent;
    border: 2px solid #ffffff;
    padding: 10px 20px;
}
.cta-button.secondary:hover {
    background-color: #ffffff;
    color: #1D2431 !important;
}

/* ----- Trust badges ----- */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 20px 0 30px;
}
.trust-badges .badge {
    background-color: #f3f4f5;
    padding: 12px 18px;
    border-left: 3px solid #C63926;
    flex: 1 1 200px;
    font-size: 13px;
}
.trust-badges .badge strong {
    display: block;
    color: #343333;
    font-size: 14px;
    margin-bottom: 2px;
}

/* ----- Section headings on landing pages ----- */
.lp-section {
    margin-bottom: 35px;
}
.lp-section h2 {
    font-size: 20px;
    color: #343333;
    border-bottom: 1px solid #e8e6e6;
    padding-bottom: 8px;
    margin-bottom: 18px;
}

/* ----- Timeline (Geschichte) ----- */
.timeline {
    list-style: none;
    padding: 0;
    margin: 25px 0 35px;
}
.timeline > li {
    position: relative;
    padding: 4px 0 22px 18px;
}
.timeline > li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    width: 6px;
    height: 6px;
    background-color: #C63926;
    border-radius: 50%;
}
.timeline .year {
    display: block;
    color: #C63926;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}
.timeline ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}
.timeline ul li {
    margin-bottom: 4px;
}

/* ----- Value cards (Philosophie) ----- */
.value-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 25px 0 30px;
}
.value-card {
    background-color: #f3f4f5;
    padding: 22px;
    border-top: 3px solid #C63926;
}
.value-card h3 {
    color: #1D2431;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}
.value-card p {
    margin-bottom: 0;
    font-size: 13px;
    line-height: 20px;
}

/* ----- Home hero ----- */
.home-hero {
    background-color: #f3f4f5;
    border-left: 3px #C63926 solid;
    padding: 30px;
    margin: 35px 0 30px;
}
.home-hero h1 {
    font-size: 26px;
    color: #1D2431;
    margin-bottom: 14px;
    font-weight: 700;
    line-height: 1.25;
}
.home-hero p {
    font-size: 14px;
    line-height: 22px;
    margin-bottom: 12px;
}
.home-hero p:last-child {
    margin-bottom: 0;
}

/* ----- Home section heading ----- */
.home-section {
    margin: 40px 0;
}
.home-section > h2 {
    font-size: 22px;
    color: #1D2431;
    margin-bottom: 8px;
    font-weight: 700;
}
.home-section > .section-intro {
    color: #747474;
    margin-bottom: 22px;
}
.home-section > .section-footer {
    margin-top: 18px;
    text-align: right;
}
.home-section > .section-footer a {
    font-weight: 700;
}

/* ----- Branchen / industry tiles ----- */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.industry-tile {
    background-color: #f3f4f5;
    padding: 18px;
    border-top: 3px solid #C63926;
}
.industry-tile h3 {
    color: #1D2431;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}
.industry-tile p {
    font-size: 13px;
    line-height: 19px;
    margin-bottom: 0;
}

/* ----- References logos ----- */
.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    align-items: center;
}
.references-grid .ref-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e8e6e6;
    padding: 12px;
    background-color: #ffffff;
    min-height: 80px;
    transition: border-color 0.2s ease;
}
.references-grid .ref-logo:hover {
    border-color: #C63926;
}
.references-grid .ref-logo img {
    max-height: 60px;
    width: auto;
    max-width: 100%;
    margin: 0;
    border: none;
}

@media only screen and (max-width: 800px) {
    .service-grid {
        grid-template-columns: 1fr;
    }
    .cta-box {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .cta-box .cta-actions {
        width: 100%;
    }
    .cta-button {
        width: 100%;
    }
    .home-hero {
        padding: 22px;
    }
    .home-hero h1 {
        font-size: 22px;
    }
    .industry-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .value-grid {
        grid-template-columns: 1fr;
    }
}
