/*
 Theme Name:   specdialog Theme
 Description:  Theme für specdialog | specmediation – sönke petersen consulting
 Author:       Lars Badke
 Author URI:   https://www.larsbadke.com
 Version:      2.0
 Text Domain:  spec
*/

/* Raleway, lokal gehostet (SIL Open Font License) */
@font-face {
    font-display: swap;
    font-family: 'Raleway';
    font-style: normal;
    font-weight: 300;
    src: url('fonts/raleway-v37-latin-300.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Raleway';
    font-style: italic;
    font-weight: 300;
    src: url('fonts/raleway-v37-latin-300italic.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Raleway';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/raleway-v37-latin-regular.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Raleway';
    font-style: italic;
    font-weight: 400;
    src: url('fonts/raleway-v37-latin-italic.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Raleway';
    font-style: normal;
    font-weight: 600;
    src: url('fonts/raleway-v37-latin-600.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Raleway';
    font-style: italic;
    font-weight: 600;
    src: url('fonts/raleway-v37-latin-600italic.woff2') format('woff2');
}

:root {
    --spec-dark: #23495f;
    --spec-mid: #1f7a92;
    --spec-light: #61b1c3;
    --spec-grey: #c8c8c8;
    --spec-text: #333;
}

html {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Raleway', Arial, sans-serif;
    font-weight: 300;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: var(--spec-text);
    background: #fff;
    word-break: break-word;
    hyphens: auto;
    font-variant-numeric: lining-nums;
}

p {
    color: var(--spec-text);
    margin-bottom: 1.2em;
}

strong, b {
    font-weight: 600;
    color: #222;
}

a {
    color: var(--spec-dark);
}

a:focus, a:hover {
    color: var(--spec-mid);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', Arial, sans-serif;
    color: #222;
}

h2, .h2 {
    font-size: 28px;
    font-weight: 300;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 18px;
}

h3, .h3 {
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 30px;
}

h4, .h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--spec-dark);
    margin: 2em 0 0.6em;
}

h2 + h4 {
    margin-top: 1em;
}

@media (min-width: 1200px) {
    .container {
        max-width: 1000px;
    }
}

/* -------------------------------------------- */
/* ----------------- HEADER ------------------- */
/* -------------------------------------------- */

header#main-header {
    background: #fff;
    padding: 40px 0 6px;
}

#main-header .wrapper {
    display: flex;
    flex-direction: column;
}

#logo {
    display: inline-block;
    width: 420px;
    max-width: 75%;
    margin-bottom: 36px;
}

#logo img {
    width: 100%;
    height: auto;
}

.navBtn {
    display: none;
    font-size: 28px;
    color: var(--spec-dark);
    cursor: pointer;
}

#menu-header {
    padding: 0;
    margin: 0;
    list-style-type: none;
}

#menu-header li {
    display: inline-block;
}

#menu-header li + li::before {
    content: "|";
    color: #222;
    padding: 0 0.6em;
}

#menu-header li a {
    font-size: 15px;
    font-weight: 400;
    color: #222;
    text-decoration: none;
}

#menu-header li a:hover {
    color: var(--spec-mid);
    text-decoration: none;
}

.claim strong {
    color: var(--spec-dark);
}

@media (max-width: 992px) {
    header#main-header {
        padding-top: 20px;
    }

    #main-header .wrapper {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }

    #logo {
        margin: 0;
        width: 300px;
    }

    .navBtn {
        display: block;
        margin-left: auto;
    }

    .menu-header-container {
        order: 4;
        width: 100%;
    }

    #menu-header {
        display: none;
        padding: 15px 0 5px;
    }

    #menu-header li {
        display: block;
    }

    #menu-header li + li::before {
        content: none;
    }

    #menu-header li a {
        display: block;
        padding: 6px 0;
    }
}

/* -------------------------------------------- */
/* --------------- STREIFEN / BANNER ---------- */
/* -------------------------------------------- */

.stripes {
    position: relative;
    display: flex;
    height: 30px;
    padding-top: 10px;
}

.stripes::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(to right, #b3c0c8, #d2e4e9 50%, #f5fafb);
}

.stripes span {
    flex: 1;
}

.stripes span:nth-child(1) { background: var(--spec-dark); }
.stripes span:nth-child(2) { background: var(--spec-mid); }
.stripes span:nth-child(3) { background: var(--spec-light); }

.banner {
    padding: 0;
    margin-top: 0;
}

.banner-image {
    aspect-ratio: 2139 / 443;
    min-height: 140px;
    background-size: cover;
    background-position: center center;
}

.banner-title {
    background: var(--spec-dark);
    color: #fff;
    font-size: 36px;
    font-weight: 300;
    line-height: 1;
    padding: 9px 0 11px;
}

@media (max-width: 768px) {
    .stripes {
        height: 18px;
        padding-top: 6px;
    }

    .stripes::before {
        height: 6px;
    }

    .banner-title {
        font-size: 26px;
    }
}

/* -------------------------------------------- */
/* ------------------ BLÖCKE ------------------ */
/* -------------------------------------------- */

.block {
    position: relative;
    padding: 70px 0 30px;
}

.block .container > *:last-child {
    margin-bottom: 0;
}

.block + .banner {
    margin-top: 60px;
}

.block.has-bg {
    padding: 90px 0;
    margin-top: 40px;
}

.block.has-bg + .banner {
    margin-top: 0;
}

.block ul {
    list-style: none;
    padding-left: 0;
}

.block ul li::before {
    content: "- ";
}

.anchor {
    position: absolute;
    top: 0;
}

/* Vita: Jahreszahl + Text */
.block p strong:first-child {
    display: inline-block;
    min-width: 7.5em;
}

/* Kontakt */
.kontakt_block {
    text-align: center;
    padding-bottom: 80px;
}

.kontakt-logo {
    width: 315px;
    max-width: 90%;
    margin: 10px auto 30px;
}

.kontakt-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    text-align: left;
}

.kontakt-bild {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--spec-dark);
    object-fit: cover;
    object-position: center top;
}

.kontakt-text p {
    margin: 0;
}

.kontakt-text a {
    color: inherit;
}

.kontakt-text p + p {
    margin-top: 1em;
}

@media (max-width: 768px) {
    .block {
        padding-top: 40px;
    }

    .block.has-bg {
        padding: 50px 0;
    }

    .block + .banner {
        margin-top: 40px;
    }

    h2, .h2 {
        font-size: 22px;
    }

    .kontakt-row {
        flex-direction: column;
        text-align: center;
    }
}

/* -------------------------------------------- */
/* ----------------- FOOTER ------------------- */
/* -------------------------------------------- */

footer#main-footer {
    background: var(--spec-dark);
    padding-bottom: 70px;
    font-size: 13px;
    line-height: 1.55;
    color: #fff;
}

footer#main-footer .stripes::before {
    background: linear-gradient(to right, var(--spec-dark), #6d8797 33%, var(--spec-mid) 33%, var(--spec-mid) 67%, var(--spec-light) 67%);
}

footer#main-footer .container {
    padding-top: 50px;
}

footer#main-footer a {
    color: #fff;
    text-decoration: none;
    font-weight: 300;
}

footer#main-footer a:hover {
    text-decoration: underline;
}

footer#main-footer ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

#main-footer .wrapper {
    display: flex;
    gap: 40px;
}

#main-footer .wrapper > div:nth-of-type(1) { width: 190px; }
#main-footer .wrapper > div:nth-of-type(2) { width: 340px; }
#main-footer .wrapper > div:nth-of-type(3) { width: 120px; }

@media (max-width: 992px) {
    #main-footer .wrapper {
        flex-direction: column;
        gap: 20px;
    }

    #main-footer .wrapper > div {
        width: 100% !important;
    }

    footer#main-footer {
        padding-bottom: 40px;
    }

    footer#main-footer .container {
        padding-top: 30px;
    }
}

/* -------------------------------------------- */
/* ------------------ DIVERSES ---------------- */
/* -------------------------------------------- */

#toTop {
    position: fixed;
    z-index: 10;
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--spec-mid);
    color: #fff;
    border-radius: 3px;
    cursor: pointer;
}

#toTop svg {
    height: 40px;
}

.sektionen_block .sektion {
    border-bottom: 3px solid #e0e0e0;
    margin-bottom: 60px;
    padding-bottom: 60px;
}

.sektionen_block .sektion:last-of-type {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}
