
/*
Theme Name: TBM
Theme URI: https://tbmedien.de
Author: TBM
Description: Individuelles WordPress-Theme für TBM Werbetechnik Berlin.
Version: 1.0.0
Text Domain: tbm
*/


/* Lokale TBM-Schriften */
@font-face {
    font-family: 'Inter';
    src: url('fonts/inter-400.woff2') format('woff2');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('fonts/inter-500.woff2') format('woff2');
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('fonts/inter-600.woff2') format('woff2');
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: 'Space Grotesk';
    src: url('fonts/space-grotesk-600.woff2') format('woff2');
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

/* =========================================================
   01. DESIGN SYSTEM
========================================================= */

:root {
    --tbm-navy: #101C36;
    --tbm-blue: #2457FF;
    --tbm-lime: #D9FF42;
    --tbm-white: #FFFFFF;
    --tbm-concrete: #E9E7E2;
    --tbm-black: #171717;

    --tbm-font: 'Inter', Arial, Helvetica, sans-serif;

    --tbm-container: 1440px;
    --tbm-padding: clamp(22px, 5vw, 80px);
}

/* TBM TYPOGRAFIE: Inter für Mengentext, Arial für prägnante Headlines */
h1, h2, h3, h4, h5, h6 {
    font-family: Arial, Helvetica, sans-serif;
}

/* =========================================================
   02. RESET & GRUNDLAYOUT
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--tbm-font);
    color: var(--tbm-black);
    background: var(--tbm-white);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

::selection {
    color: var(--tbm-navy);
    background: var(--tbm-lime);
}

.tbm-homepage,
.tbm-page-container {
    width: 100%;
}

/* =========================================================
   03. HEADER & NAVIGATION
========================================================= */

.tbm-header {
    position: relative;
    z-index: 100;
    width: 100%;
    background: var(--tbm-white);
    border-bottom: 1px solid rgba(16, 28, 54, 0.12);
}

.tbm-header-inner {
    width: 100%;
    max-width: 1800px;
    min-height: 100px;
    margin: 0 auto;
    padding: 18px var(--tbm-padding);

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
}

.tbm-logo {
    flex-shrink: 0;
}

.tbm-logo img {
    width: auto;
    max-width: 170px;
    max-height: 65px;
    object-fit: contain;
}

.tbm-logo-text {
    display: block;
    color: var(--tbm-navy);
    font-size: 46px;
    font-weight: 900;
    letter-spacing: -5px;
    line-height: 1;
}

.tbm-navigation {
    margin-left: auto;
}

.tbm-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(16px, 2.5vw, 38px);

    margin: 0;
    padding: 0;
    list-style: none;
}

.tbm-menu li {
    margin: 0;
    padding: 0;
}

.tbm-menu a {
    color: var(--tbm-navy);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: color 0.2s ease;
}

.tbm-menu a:hover {
    color: var(--tbm-blue);
}

.tbm-header-contact {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    padding: 13px 20px;
    color: var(--tbm-white);
    background: var(--tbm-blue);

    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;

    transition: background 0.2s ease, color 0.2s ease;
}

.tbm-header-contact:hover {
    color: var(--tbm-navy);
    background: var(--tbm-lime);
}

.tbm-header-contact span {
    font-size: 17px;
}

/* =========================================================
   04. HERO
========================================================= */

.tbm-hero {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;

    min-height: min(760px, 85vh);
    padding: 90px var(--tbm-padding) 120px;

    color: var(--tbm-white);
    background: var(--tbm-navy);
    overflow: hidden;
}

.tbm-hero::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    right: 4%;
    top: 4%;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;

    pointer-events: none;
}

.tbm-hero-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
}

.tbm-eyebrow {
    margin: 0 0 28px;
    color: var(--tbm-blue);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.tbm-hero .tbm-eyebrow {
    color: var(--tbm-lime);
}

.tbm-hero h1 {
    margin: 0;
    color: var(--tbm-white);

    font-size: clamp(64px, 9.5vw, 150px);
    font-weight: 900;
    line-height: 0.82;
    letter-spacing: -0.085em;
    text-transform: uppercase;
}

.tbm-hero h1 span {
    color: var(--tbm-lime);
}

.tbm-hero-description {
    max-width: 430px;
    margin: 38px 0 30px;

    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(16px, 1.5vw, 20px);
    line-height: 1.6;
}

.tbm-hero-visual {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 20px;
}

.tbm-hero-image-placeholder {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    width: 100%;
    max-width: 510px;
    min-height: 470px;

    padding: 32px;
    color: var(--tbm-navy);
    background: var(--tbm-lime);

    transform: rotate(3deg);
    box-shadow: 20px 20px 0 var(--tbm-blue);
}

.tbm-hero-image-placeholder strong {
    font-size: clamp(45px, 6vw, 85px);
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: -0.07em;
}

.tbm-hero-image-placeholder > span {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.tbm-hero-bottom {
    position: absolute;
    bottom: 0;
    left: var(--tbm-padding);
    right: var(--tbm-padding);

    display: flex;
    justify-content: space-between;
    gap: 20px;

    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.25);

    color: rgba(255, 255, 255, 0.65);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

/* =========================================================
   05. BUTTONS & LINKS
========================================================= */

.tbm-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 25px;

    min-height: 58px;
    padding: 16px 24px;

    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.tbm-button:hover {
    transform: translateY(-4px);
}

.tbm-button-primary {
    color: var(--tbm-navy);
    background: var(--tbm-lime);
}

.tbm-button-primary:hover {
    color: var(--tbm-white);
    background: var(--tbm-blue);
}

.tbm-button-light {
    color: var(--tbm-navy);
    background: var(--tbm-white);
}

.tbm-button-light:hover {
    background: var(--tbm-lime);
}

.tbm-button span {
    font-size: 18px;
}

/* =========================================================
   06. INTRO
========================================================= */

.tbm-intro {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    column-gap: 50px;
    row-gap: 20px;

    max-width: var(--tbm-container);
    margin: 0 auto;
    padding: 145px var(--tbm-padding);
}

.tbm-intro .tbm-eyebrow {
    grid-column: 1;
    margin-top: 14px;
}

.tbm-intro h2 {
    grid-column: 2;
    margin: 0;

    color: var(--tbm-navy);
    font-size: clamp(42px, 6vw, 82px);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: -0.07em;
}

.tbm-intro h2 span {
    color: var(--tbm-blue);
}

.tbm-intro > p:last-child {
    grid-column: 2;
    max-width: 570px;
    margin: 25px 0 0;

    color: #555;
    font-size: 18px;
    line-height: 1.7;
}

/* =========================================================
   07. LEISTUNGEN
========================================================= */

.tbm-services {
    padding: 110px var(--tbm-padding) 130px;
    color: var(--tbm-white);
    background: var(--tbm-navy);
}

.tbm-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    max-width: var(--tbm-container);
    margin: 0 auto 55px;
}

.tbm-section-heading .tbm-eyebrow {
    margin-bottom: 18px;
    color: var(--tbm-lime);
}

.tbm-section-heading h2 {
    margin: 0;

    color: var(--tbm-white);
    font-size: clamp(45px, 7vw, 95px);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.075em;
}

.tbm-section-heading h2 span {
    display: inline-block;
    margin-left: 20px;
    color: var(--tbm-lime);

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    vertical-align: middle;
}

.tbm-service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    max-width: var(--tbm-container);
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.tbm-service-item {
    position: relative;
    display: grid;
    grid-template-columns: 55px 1fr 30px;
    align-items: center;
    gap: 15px;

    min-height: 125px;
    padding: 25px 20px 25px 0;

    border-bottom: 1px solid rgba(255, 255, 255, 0.3);

    transition: background 0.2s ease, padding 0.2s ease;
}

.tbm-service-item:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.tbm-service-item:nth-child(even) {
    padding-left: 30px;
}

.tbm-service-item > span:first-child {
    color: var(--tbm-lime);
    font-size: 12px;
    font-weight: 800;
}

.tbm-service-item h3 {
    margin: 0;

    color: var(--tbm-white);
    font-size: clamp(19px, 2.5vw, 30px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.15;
}

.tbm-service-arrow {
    color: var(--tbm-lime);
    font-size: 25px;
    text-align: right;
    transition: transform 0.2s ease;
}

.tbm-service-item:hover {
    padding-right: 30px;
    background: rgba(255, 255, 255, 0.06);
}

.tbm-service-item:hover .tbm-service-arrow {
    transform: translate(5px, -5px);
}

/* =========================================================
   08. ABOUT TBM
========================================================= */

.tbm-about {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 50px;

    max-width: var(--tbm-container);
    margin: 0 auto;
    padding: 150px var(--tbm-padding);
}

.tbm-about-label .tbm-eyebrow {
    margin-bottom: 20px;
}

.tbm-about-label > span {
    color: #777;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.tbm-about-content h2 {
    margin: 0;

    color: var(--tbm-navy);
    font-size: clamp(40px, 6vw, 80px);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: -0.075em;
}

.tbm-about-content h2 span {
    color: var(--tbm-blue);
}

.tbm-about-content > p {
    max-width: 570px;
    margin: 35px 0;

    color: #555;
    font-size: 18px;
    line-height: 1.8;
}

.tbm-text-link {
    display: inline-flex;
    align-items: center;
    gap: 20px;

    padding-bottom: 8px;
    border-bottom: 2px solid var(--tbm-blue);

    color: var(--tbm-navy);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;

    transition: color 0.2s ease;
}

.tbm-text-link:hover {
    color: var(--tbm-blue);
}

/* =========================================================
   09. FINAL CONTACT
========================================================= */

.tbm-final {
    position: relative;
    padding: 120px var(--tbm-padding) 135px;

    color: var(--tbm-white);
    background: var(--tbm-blue);
    overflow: hidden;
}

.tbm-final::after {
    content: "TBM";
    position: absolute;
    right: -25px;
    bottom: -130px;

    color: rgba(255, 255, 255, 0.08);
    font-size: clamp(200px, 35vw, 500px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.1em;

    pointer-events: none;
}

.tbm-final .tbm-eyebrow {
    position: relative;
    z-index: 1;
    color: var(--tbm-lime);
}

.tbm-final h2 {
    position: relative;
    z-index: 1;

    margin: 0 0 45px;
    color: var(--tbm-white);

    font-size: clamp(90px, 17vw, 230px);
    font-weight: 900;
    line-height: 0.75;
    letter-spacing: -0.1em;
}

.tbm-final .tbm-button {
    position: relative;
    z-index: 1;
}

/* =========================================================
   10. NORMALE WORDPRESS-SEITEN
========================================================= */

.tbm-page-container {
    max-width: var(--tbm-container);
    min-height: 500px;
    margin: 0 auto;
    padding: 100px var(--tbm-padding) 140px;
}

.tbm-page-header {
    margin-bottom: 50px;
}

.tbm-page-header h1 {
    margin: 0;

    color: var(--tbm-navy);
    font-size: clamp(45px, 7vw, 95px);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.075em;
}

.tbm-page-header h1 a {
    color: inherit;
}

.tbm-page-body {
    max-width: 950px;
    font-size: 18px;
    line-height: 1.8;
}

.tbm-page-body h2,
.tbm-page-body h3 {
    margin-top: 55px;
    color: var(--tbm-navy);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.tbm-page-body h2 {
    font-size: clamp(30px, 4vw, 52px);
}

.tbm-page-body h3 {
    font-size: 30px;
}

.tbm-page-body a {
    color: var(--tbm-blue);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.tbm-page-body img {
    margin: 35px 0;
}

.tbm-page-body ul,
.tbm-page-body ol {
    padding-left: 25px;
}

.tbm-page-content {
    margin-bottom: 60px;
}

/* =========================================================
   11. FOOTER
========================================================= */

.tbm-footer {
    padding: 75px var(--tbm-padding) 25px;
    color: var(--tbm-white);
    background: var(--tbm-navy);
}

.tbm-footer-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr;
    gap: 50px;

    max-width: var(--tbm-container);
    margin: 0 auto;
    padding-bottom: 70px;
}

.tbm-footer-logo {
    display: block;
    color: var(--tbm-lime);

    font-size: 75px;
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.09em;
}

.tbm-footer-brand p {
    margin-top: 25px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.7;
}

.tbm-footer-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;

    margin: 0;
    padding: 0;
    list-style: none;
}

.tbm-footer-menu a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-weight: 700;
    transition: color 0.2s ease;
}

.tbm-footer-menu a:hover {
    color: var(--tbm-lime);
}

.tbm-footer-contact a {
    display: inline-block;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--tbm-lime);

    color: var(--tbm-lime);
    font-size: 14px;
    font-weight: 900;
}

.tbm-footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;

    max-width: var(--tbm-container);
    margin: 0 auto;
    padding-top: 22px;

    border-top: 1px solid rgba(255, 255, 255, 0.2);

    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
}

/* =========================================================
   12. WORDPRESS-ALLGEMEINE ELEMENTE
========================================================= */

.alignleft {
    float: left;
    margin: 10px 30px 20px 0;
}

.alignright {
    float: right;
    margin: 10px 0 20px 30px;
}

.aligncenter {
    display: block;
    margin: 30px auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    color: #777;
    font-size: 13px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.gallery img {
    width: 100%;
    height: auto;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =========================================================
   13. RESPONSIVE TABLET
========================================================= */

@media (max-width: 1000px) {

    .tbm-header-inner {
        gap: 20px;
    }

    .tbm-menu {
        gap: 15px;
    }

    .tbm-menu a {
        font-size: 11px;
    }

    .tbm-hero {
        grid-template-columns: 1fr 0.8fr;
        padding-top: 80px;
        padding-bottom: 110px;
    }

    .tbm-hero-image-placeholder {
        min-height: 360px;
    }

    .tbm-intro,
    .tbm-about {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .tbm-intro h2,
    .tbm-intro > p:last-child {
        grid-column: 1;
    }
}

/* =========================================================
   14. RESPONSIVE MOBILE
========================================================= */

@media (max-width: 700px) {

    :root {
        --tbm-padding: 22px;
    }

    .tbm-header-inner {
        min-height: 78px;
        flex-wrap: wrap;
        gap: 12px;
    }

    .tbm-logo img {
        max-width: 120px;
        max-height: 48px;
    }

    .tbm-logo-text {
        font-size: 38px;
    }

    .tbm-navigation {
        order: 3;
        width: 100%;
        margin: 0;
        overflow-x: auto;
    }

    .tbm-menu {
        justify-content: flex-start;
        gap: 22px;
        padding: 8px 0 5px;
        white-space: nowrap;
    }

    .tbm-menu a {
        font-size: 10px;
    }

    .tbm-header-contact {
        padding: 10px 13px;
        font-size: 10px;
    }

    .tbm-hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 75px var(--tbm-padding) 90px;
    }

    .tbm-hero h1 {
        font-size: clamp(64px, 15vw, 105px);
    }

    .tbm-hero-description {
        margin-top: 28px;
        font-size: 16px;
    }

    .tbm-hero-visual {
        margin-top: 45px;
        padding: 15px 10px 25px;
    }

    .tbm-hero-image-placeholder {
        min-height: 330px;
        padding: 25px;
    }

    .tbm-hero-image-placeholder strong {
        font-size: 60px;
    }

    .tbm-hero-bottom {
        left: var(--tbm-padding);
        right: var(--tbm-padding);
        font-size: 8px;
    }

    .tbm-intro {
        padding-top: 90px;
        padding-bottom: 90px;
    }

    .tbm-intro h2 {
        font-size: clamp(40px, 11vw, 62px);
    }

    .tbm-intro > p:last-child {
        font-size: 16px;
    }

    .tbm-services {
        padding-top: 85px;
        padding-bottom: 90px;
    }

    .tbm-section-heading {
        margin-bottom: 35px;
    }

    .tbm-section-heading h2 {
        font-size: 55px;
    }

    .tbm-service-grid {
        grid-template-columns: 1fr;
    }

    .tbm-service-item,
    .tbm-service-item:nth-child(even) {
        min-height: 95px;
        padding: 20px 5px 20px 0;
        border-right: 0;
    }

    .tbm-service-item h3 {
        font-size: 22px;
    }

    .tbm-about {
        padding-top: 90px;
        padding-bottom: 100px;
    }

    .tbm-about-content h2 {
        font-size: clamp(39px, 10vw, 60px);
    }

    .tbm-about-content > p {
        font-size: 16px;
    }

    .tbm-final {
        padding-top: 90px;
        padding-bottom: 100px;
    }

    .tbm-final h2 {
        font-size: clamp(85px, 21vw, 145px);
    }

    .tbm-footer-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-bottom: 45px;
    }

    .tbm-footer-logo {
        font-size: 65px;
    }

    .tbm-footer-bottom {
        flex-direction: column;
        gap: 8px;
    }

    .tbm-page-container {
        padding-top: 65px;
        padding-bottom: 90px;
    }

    .tbm-page-header h1 {
        font-size: clamp(42px, 12vw, 65px);
    }

    .tbm-page-body {
        font-size: 16px;
    }

    .gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

}

/* =========================================================
   15. KLEINE BILDSCHIRME
========================================================= */

@media (max-width: 380px) {

    .tbm-hero h1 {
        font-size: 58px;
    }

    .tbm-hero-bottom span:last-child {
        display: none;
    }

    .tbm-service-item h3 {
        font-size: 19px;
    }

    .tbm-button {
        width: 100%;
    }

}


/* =========================================================
   16. TBM STARTSEITE – NEUER HERO UND BILDBEREICHE
   Diese Regeln betreffen nur die Startseite.
========================================================= */

.tbm-hero-reworked {
    min-height: 760px;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: clamp(30px, 4vw, 70px);
    padding-top: 82px;
    padding-bottom: 112px;
}

.tbm-hero-reworked .tbm-hero-content {
    max-width: 760px;
}

.tbm-hero-reworked h1 {
    font-size: clamp(76px, 8.2vw, 142px);
    line-height: 0.82;
    letter-spacing: -0.075em;
    margin: 32px 0 36px;
}

.tbm-hero-reworked h1 span {
    color: var(--tbm-lime);
}

.tbm-hero-reworked .tbm-button-primary {
    color: var(--tbm-navy);
    background: var(--tbm-lime);
}

.tbm-hero-reworked .tbm-button-primary:hover {
    color: var(--tbm-white);
    background: var(--tbm-blue);
}

.tbm-hero-visual {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.tbm-hero-photo {
    position: relative;
    margin: 0;
    width: 100%;
    aspect-ratio: 0.98 / 1;
    max-height: 610px;
    background: var(--tbm-concrete);
    border: 12px solid var(--tbm-lime);
    box-shadow: 18px 18px 0 var(--tbm-blue);
    transform: rotate(1.5deg);
    overflow: hidden;
}

.tbm-hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
}

.tbm-hero-photo-label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 22px 26px 18px;
    color: var(--tbm-navy);
    background: var(--tbm-lime);
    border-top: 2px solid var(--tbm-navy);
}

.tbm-hero-photo-label span {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.tbm-hero-photo-label strong {
    font-size: clamp(25px, 3vw, 43px);
    line-height: 0.92;
    letter-spacing: -0.055em;
    text-transform: uppercase;
}

.tbm-hero-stamp {
    position: absolute;
    z-index: 3;
    right: -18px;
    top: -24px;
    padding: 14px 18px;
    color: var(--tbm-navy);
    background: var(--tbm-white);
    border: 2px solid var(--tbm-navy);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: 0.06em;
    transform: rotate(5deg);
}

.tbm-hero-reworked .tbm-hero-bottom {
    left: var(--tbm-padding);
    right: var(--tbm-padding);
}

.tbm-home-seo-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 8%;
    align-items: start;
}

.tbm-home-seo-intro > .tbm-eyebrow {
    grid-column: 1 / -1;
}

.tbm-home-seo-intro h2 {
    margin-top: 0;
}

.tbm-seo-intro-copy {
    max-width: 650px;
    font-size: 18px;
}

.tbm-seo-intro-copy p:first-child {
    margin-top: 0;
}

.tbm-seo-intro-copy a {
    color: var(--tbm-blue);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.tbm-home-references {
    padding: 110px var(--tbm-padding) 120px;
    color: var(--tbm-white);
    background: var(--tbm-navy);
}

.tbm-reference-heading {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 20px 8%;
    margin-bottom: 55px;
}

.tbm-reference-heading .tbm-eyebrow {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--tbm-lime);
}

.tbm-reference-heading h2 {
    margin: 0;
    font-size: clamp(60px, 8vw, 118px);
    line-height: 0.82;
    letter-spacing: -0.075em;
}

.tbm-reference-heading h2 span {
    color: var(--tbm-lime);
}

.tbm-reference-heading > p:last-child {
    max-width: 470px;
    margin: 0 0 5px;
    color: rgba(255,255,255,0.78);
}

.tbm-reference-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.tbm-reference-card {
    min-height: 390px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--tbm-navy);
    overflow: hidden;
    transition: transform 0.25s ease;
}

.tbm-reference-card:hover {
    transform: translateY(-8px) rotate(-1deg);
}

.tbm-reference-card-one {
    background: var(--tbm-lime);
}

.tbm-reference-card-two {
    color: var(--tbm-white);
    background: var(--tbm-blue);
}

.tbm-reference-card-three {
    background: var(--tbm-concrete);
}

.tbm-reference-number,
.tbm-reference-link {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.tbm-reference-card strong {
    font-size: clamp(42px, 5vw, 72px);
    line-height: 0.84;
    letter-spacing: -0.065em;
}

.tbm-all-references {
    display: inline-flex;
    margin-top: 35px;
    color: var(--tbm-lime);
}

.tbm-home-seo-text {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 8%;
    padding: 100px var(--tbm-padding);
    background: var(--tbm-concrete);
}

.tbm-home-seo-text h2 {
    max-width: 520px;
    margin: 0;
    color: var(--tbm-navy);
    font-size: clamp(38px, 5vw, 68px);
    line-height: 0.95;
    letter-spacing: -0.055em;
}

.tbm-home-seo-text-copy {
    max-width: 700px;
    font-size: 18px;
}

.tbm-home-seo-text-copy p:first-child {
    margin-top: 0;
}

@media (max-width: 900px) {
    .tbm-hero-reworked {
        grid-template-columns: 1fr 0.9fr;
        min-height: 650px;
        gap: 28px;
    }

    .tbm-hero-reworked h1 {
        font-size: clamp(62px, 8vw, 92px);
    }

    .tbm-hero-photo {
        aspect-ratio: 0.82 / 1;
    }

    .tbm-reference-card {
        min-height: 300px;
    }
}

@media (max-width: 700px) {
    .tbm-hero-reworked {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        min-height: 0;
        padding-top: 62px;
        padding-bottom: 95px;
    }

    .tbm-hero-reworked h1 {
        font-size: clamp(66px, 16vw, 105px);
    }

    .tbm-hero-visual {
        margin: 25px 12px 10px 0;
    }

    .tbm-hero-photo {
        aspect-ratio: 1 / 1;
        max-height: none;
    }

    .tbm-hero-stamp {
        right: -8px;
    }

    .tbm-home-seo-intro,
    .tbm-reference-heading,
    .tbm-home-seo-text {
        grid-template-columns: 1fr;
    }

    .tbm-home-seo-intro h2 {
        margin-bottom: 15px;
    }

    .tbm-reference-heading {
        gap: 22px;
    }

    .tbm-reference-grid {
        grid-template-columns: 1fr;
    }

    .tbm-reference-card {
        min-height: 290px;
    }

    .tbm-home-references {
        padding-top: 80px;
        padding-bottom: 85px;
    }

    .tbm-home-seo-text {
        gap: 24px;
        padding-top: 75px;
        padding-bottom: 75px;
    }
}


/* =========================================================
   TBM STARTSEITE – NEWS / BLOG
   Beiträge werden über WordPress > Beiträge gepflegt.
========================================================= */
.tbm-home-news {
    padding: 115px max(6vw, calc((100vw - 1440px) / 2));
    background: #e9e7e2;
    color: #101c36;
}
.tbm-news-heading {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    align-items: end;
    gap: 50px;
    margin-bottom: 55px;
}
.tbm-news-heading h2 {
    margin: 12px 0 0;
    color: #101c36;
    font-size: clamp(58px, 8vw, 112px);
    line-height: .88;
    letter-spacing: -.065em;
    font-weight: 900;
}
.tbm-news-heading h2 span { color: #2457ff; }
.tbm-news-heading > p {
    max-width: 440px;
    margin: 0 0 7px;
    font-size: 19px;
    line-height: 1.55;
}
.tbm-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}
.tbm-news-card {
    min-width: 0;
    background: #fff;
    color: #101c36;
    display: flex;
    flex-direction: column;
}
.tbm-news-image {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 1.48 / 1;
    background: #2457ff;
}
.tbm-news-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.tbm-news-card:hover .tbm-news-image img { transform: scale(1.035); }
.tbm-news-image-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    color: #d9ff42;
    font-size: 23px;
    font-weight: 900;
    letter-spacing: .08em;
}
.tbm-news-card-content { padding: 25px 25px 28px; flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.tbm-news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin: 0 0 17px;
    color: #2457ff;
    font-size: 11px;
    line-height: 1.4;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}
.tbm-news-card h3 { margin: 0 0 12px; font-size: 26px; line-height: 1.08; letter-spacing: -.035em; }
.tbm-news-card h3 a { color: #101c36; text-decoration: none; }
.tbm-news-excerpt { margin: 0 0 23px; font-size: 15px; line-height: 1.6; }
.tbm-news-read-more { margin-top: auto; color: #2457ff; font-size: 12px; font-weight: 900; letter-spacing: .08em; text-decoration: none; }
.tbm-news-read-more span, .tbm-news-all span { margin-left: 8px; }
.tbm-news-empty {
    grid-column: 1 / -1;
    padding: 45px;
    background: #101c36;
    color: #fff;
}
.tbm-news-empty > span { color: #d9ff42; font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.tbm-news-empty h3 { margin: 18px 0 8px; font-size: clamp(30px, 4vw, 48px); }
.tbm-news-empty p { max-width: 560px; margin: 0; line-height: 1.6; }
.tbm-news-all { display: inline-block; margin-top: 34px; }
@media (max-width: 850px) {
    .tbm-home-news { padding: 85px 6vw; }
    .tbm-news-heading { grid-template-columns: 1fr; gap: 22px; }
    .tbm-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .tbm-home-news { padding: 70px 6vw; }
    .tbm-news-grid { grid-template-columns: 1fr; gap: 18px; }
    .tbm-news-card-content { padding: 22px; }
    .tbm-news-heading h2 { font-size: clamp(55px, 15vw, 78px); }
    .tbm-news-empty { padding: 30px 24px; }
}


/* TBM Startseite – Bildflächen und Kontakt-CTAs */
.tbm-service-item { position: relative; overflow: hidden; isolation: isolate; min-height: 190px; display:flex; flex-direction:column; justify-content:flex-end; padding:22px; color:#fff; background:#101c36; }
.tbm-service-image { position:absolute; inset:0; z-index:-2; width:100%; height:100%; object-fit:cover; transition:transform .35s ease; }
.tbm-service-item:after { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(180deg,rgba(16,28,54,.05),rgba(16,28,54,.86)); }
.tbm-service-item:hover .tbm-service-image { transform:scale(1.05); }
.tbm-reference-card { position:relative; overflow:hidden; isolation:isolate; background:#101c36; }
.tbm-reference-image { position:absolute; inset:0; z-index:-2; width:100%; height:100%; object-fit:cover; transition:transform .4s ease; }
.tbm-reference-card:after { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(180deg,rgba(16,28,54,.12),rgba(16,28,54,.78)); }
.tbm-reference-card:hover .tbm-reference-image { transform:scale(1.04); }
.tbm-news-image img { display:block; width:100%; height:100%; object-fit:cover; }
.tbm-about-photo { min-height:360px; overflow:hidden; }
.tbm-about-photo img { width:100%; height:100%; min-height:360px; display:block; object-fit:cover; }
.tbm-section-cta { display:inline-flex; margin-top:28px; }
.tbm-intro .tbm-section-cta, .tbm-home-seo-text .tbm-section-cta { margin-top:24px; }
@media(max-width:700px) { .tbm-service-item { min-height:150px; } .tbm-about-photo,.tbm-about-photo img { min-height:240px; } }


/* =========================================================
   17. LAYOUT-KORREKTUR – LEISTUNGSKACHELN UND REFERENZEN
   Überschreibt ältere, widersprüchliche Regeln weiter oben.
========================================================= */

.tbm-home-services .tbm-service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    max-width: var(--tbm-container);
    margin: 0 auto;
    padding: 0;
    border: 0;
}

.tbm-home-services .tbm-service-item,
.tbm-home-services .tbm-service-item:nth-child(odd),
.tbm-home-services .tbm-service-item:nth-child(even) {
    position: relative;
    isolation: isolate;
    display: block;
    min-width: 0;
    min-height: 270px;
    overflow: hidden;
    padding: 26px 28px;
    border: 0;
    border-radius: 0;
    background: var(--tbm-navy);
    color: var(--tbm-white);
    text-decoration: none;
    box-sizing: border-box;
}

.tbm-home-services .tbm-service-item::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(180deg, rgba(16, 28, 54, .08) 5%, rgba(16, 28, 54, .22) 38%, rgba(16, 28, 54, .94) 100%);
    pointer-events: none;
}

.tbm-home-services .tbm-service-image {
    position: absolute;
    z-index: -2;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    opacity: .88;
    transition: transform .35s ease;
}

.tbm-home-services .tbm-service-item > span:first-child {
    position: absolute;
    top: 24px;
    left: 28px;
    z-index: 1;
    display: block;
    margin: 0;
    padding: 7px 10px;
    color: var(--tbm-navy);
    background: var(--tbm-lime);
    font-size: 12px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .08em;
}

.tbm-home-services .tbm-service-item h3 {
    position: absolute;
    z-index: 1;
    left: 28px;
    right: 76px;
    bottom: 26px;
    margin: 0;
    padding: 0;
    color: var(--tbm-white);
    font-size: clamp(22px, 2.4vw, 34px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -.045em;
    overflow-wrap: break-word;
}

.tbm-home-services .tbm-service-item .tbm-service-arrow {
    position: absolute;
    z-index: 1;
    right: 26px;
    bottom: 25px;
    display: block;
    margin: 0;
    padding: 0;
    color: var(--tbm-lime);
    font-size: 28px;
    line-height: 1;
}

.tbm-home-services .tbm-service-item:hover {
    padding: 26px 28px;
    background: var(--tbm-navy);
}

.tbm-home-services .tbm-service-item:hover .tbm-service-image {
    transform: scale(1.045);
}

.tbm-home-services .tbm-service-item:hover .tbm-service-arrow {
    transform: translate(4px, -4px);
}

.tbm-home-services .tbm-section-cta {
    display: inline-flex;
    margin-top: 32px;
}

/* Referenzkarten: Bilder bleiben Hintergrund, Texte liegen sauber darüber. */
.tbm-home-references .tbm-reference-card {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-width: 0;
    min-height: 430px;
    overflow: hidden;
    padding: 28px;
    box-sizing: border-box;
}

.tbm-home-references .tbm-reference-image {
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

.tbm-home-references .tbm-reference-card::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(180deg, rgba(16, 28, 54, .06), rgba(16, 28, 54, .88));
    pointer-events: none;
}

.tbm-home-references .tbm-reference-number,
.tbm-home-references .tbm-reference-card strong,
.tbm-home-references .tbm-reference-link {
    position: relative;
    z-index: 1;
}

.tbm-home-references .tbm-reference-card strong {
    display: block;
    margin: 24px 0;
    color: #fff;
    font-size: clamp(32px, 4vw, 58px);
    line-height: .95;
    overflow-wrap: anywhere;
}

@media (max-width: 900px) {
    .tbm-home-services .tbm-service-item,
    .tbm-home-services .tbm-service-item:nth-child(odd),
    .tbm-home-services .tbm-service-item:nth-child(even) {
        min-height: 230px;
    }
    .tbm-home-references .tbm-reference-card {
        min-height: 350px;
    }
}

@media (max-width: 600px) {
    .tbm-home-services .tbm-service-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }
    .tbm-home-services .tbm-service-item,
    .tbm-home-services .tbm-service-item:nth-child(odd),
    .tbm-home-services .tbm-service-item:nth-child(even) {
        min-height: 205px;
        padding: 20px;
    }
    .tbm-home-services .tbm-service-item > span:first-child {
        top: 20px;
        left: 20px;
    }
    .tbm-home-services .tbm-service-item h3 {
        left: 20px;
        right: 65px;
        bottom: 22px;
        font-size: clamp(24px, 7vw, 32px);
    }
    .tbm-home-services .tbm-service-item .tbm-service-arrow {
        right: 20px;
        bottom: 21px;
    }
    .tbm-home-references .tbm-reference-card {
        min-height: 340px;
    }
}

/* =========================================================
   18. REFERENZKARTEN – TYPOGRAFIE WIE BEI DEN LEISTUNGEN
   Weiße Titel und Kategorie, gelbes Projekt-Label.
========================================================= */
.tbm-home-references .tbm-reference-card {
    color: #fff;
}

.tbm-home-references .tbm-reference-number {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 12px;
    background: #d9ff42;
    color: #101c36;
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .1em;
}

.tbm-home-references .tbm-reference-card strong {
    color: #fff;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .28);
}

.tbm-home-references .tbm-reference-link {
    align-self: flex-start;
    display: inline-block;
    width: fit-content;
    padding: 7px 10px;
    background: #d9ff42;
    color: #101c36;
    font-size: 10px;
    line-height: 1.25;
    font-weight: 900;
    letter-spacing: .08em;
}

/* =========================================================
   TBM HEADER NAVIGATION UPDATE — 2026-11-06 */

.tbm-header-inner { min-height: 108px; }
.tbm-logo img, .tbm-header .custom-logo {
    max-width: 204px; max-height: 78px; width: auto; height: auto;
}
.tbm-menu > li { position: relative; }
.tbm-menu > li.menu-item-has-children > a::after {
    content: "⌄"; display: inline-block; margin-left: 7px;
    font-size: 13px; transform: translateY(-1px);
}
.tbm-menu .sub-menu {
    position: absolute; top: calc(100% + 16px); left: -18px; z-index: 200;
    display: none; min-width: 230px; margin: 0; padding: 12px 0;
    list-style: none; background: #fff; border-top: 3px solid var(--tbm-lime);
    box-shadow: 0 12px 30px rgba(16, 28, 54, .14);
}
.tbm-menu li:hover > .sub-menu, .tbm-menu li:focus-within > .sub-menu { display: block; }
.tbm-menu .sub-menu li a {
    display: block; padding: 10px 18px; font-size: 12px; white-space: nowrap;
}
.tbm-menu .sub-menu li a:hover { background: #f2f4f7; }
.tbm-menu .sub-menu .sub-menu { top: -12px; left: 100%; }
.tbm-header-contact { flex-shrink: 0; }
@media (max-width: 1000px) {
    .tbm-header-inner { min-height: 96px; }
    .tbm-logo img, .tbm-header .custom-logo { max-width: 180px; max-height: 68px; }
}
@media (max-width: 700px) {
    .tbm-header-inner { min-height: 78px; }
    .tbm-logo img, .tbm-header .custom-logo { max-width: 145px; max-height: 54px; }
    .tbm-menu .sub-menu {
        position: static; display: block; min-width: 0; padding: 4px 0 4px 12px;
        border: 0; box-shadow: none; background: transparent;
    }
    .tbm-menu .sub-menu li a { padding: 7px 8px; }
} 
/* TBM Dropdown-Fix: Untermenü ohne Hover-Lücke */
.tbm-menu .sub-menu {
    top: 100%;
    margin-top: 0;
}

/* Der Dropdown-Bereich bleibt direkt mit dem Hauptmenüpunkt verbunden. */
.tbm-menu > li.menu-item-has-children {
    padding-bottom: 0;
}

.tbm-menu > li.menu-item-has-children > .sub-menu {
    margin-top: 0;
}

/* Untermenü auch per Tastatur erreichbar. */
.tbm-menu > li.menu-item-has-children:focus-within > .sub-menu {
    display: block;
}
/* =========================================================
   TBM FOOTER – überarbeiteter Footer
   Diesen Block ganz unten an style.css anhängen.
========================================================= */

.tbm-footer {
    padding: 68px var(--tbm-padding) 24px;
    color: #ffffff;
    background: #101C36;
}

.tbm-footer-inner {
    display: grid;
    grid-template-columns: minmax(260px, 1.25fr) minmax(180px, .75fr) minmax(220px, .8fr);
    gap: clamp(36px, 6vw, 100px);
    max-width: var(--tbm-container);
    margin: 0 auto;
    padding-bottom: 58px;
}

.tbm-footer-brand-logo {
    margin-bottom: 22px;
}

.tbm-footer-brand-logo .custom-logo-link {
    display: inline-block;
    line-height: 0;
}

.tbm-footer-brand-logo img.custom-logo {
    display: block;
    width: auto;
    max-width: 230px;
    max-height: 92px;
    object-fit: contain;
}

.tbm-footer-logo-fallback {
    color: #ffffff;
    font-size: 64px;
    font-weight: 900;
    line-height: .9;
    letter-spacing: -.08em;
}

.tbm-footer-tagline {
    max-width: 320px;
    margin: 0 0 12px;
    color: rgba(255,255,255,.92);
    font-size: 15px;
    line-height: 1.65;
}

.tbm-footer-since {
    margin: 0;
    color: rgba(255,255,255,.58);
    font-size: 12px;
    line-height: 1.7;
}

.tbm-footer-heading {
    margin: 5px 0 22px;
    color: #D9FF42;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tbm-footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.tbm-footer-links a,
.tbm-footer-contact a:not(.tbm-footer-cta) {
    color: rgba(255,255,255,.86);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: color .2s ease;
}

.tbm-footer-links a:hover,
.tbm-footer-contact a:not(.tbm-footer-cta):hover,
.tbm-footer-legal a:hover {
    color: #D9FF42;
}

.tbm-footer-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 23px;
    padding: 13px 17px;
    color: #101C36;
    background: #D9FF42;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    transition: transform .2s ease, background .2s ease;
}

.tbm-footer-cta:hover {
    color: #101C36;
    background: #ffffff;
    transform: translateY(-2px);
}

.tbm-footer-contact .tbm-footer-phone,
.tbm-footer-contact .tbm-footer-email,
.tbm-footer-location {
    display: block;
    width: fit-content;
    margin: 0 0 13px;
}

.tbm-footer-location {
    color: rgba(255,255,255,.58);
    font-size: 13px;
}

.tbm-footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 25px;
}

.tbm-footer-socials a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid rgba(255,255,255,.28);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.tbm-footer-socials a:hover {
    border-color: #D9FF42;
    color: #D9FF42;
}

.tbm-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    max-width: var(--tbm-container);
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.2);
    color: rgba(255,255,255,.52);
    font-size: 11px;
}

.tbm-footer-legal a {
    color: rgba(255,255,255,.72);
    text-decoration: none;
    transition: color .2s ease;
}

@media (max-width: 800px) {
    .tbm-footer {
        padding-top: 52px;
    }
    .tbm-footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 38px 28px;
        padding-bottom: 42px;
    }
    .tbm-footer-brand {
        grid-column: 1 / -1;
    }
    .tbm-footer-brand-logo img.custom-logo {
        max-width: 205px;
        max-height: 82px;
    }
}

@media (max-width: 520px) {
    .tbm-footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .tbm-footer-brand {
        grid-column: auto;
    }
    .tbm-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
}
/* TBM Footer – Kontaktbutton */
.tbm-footer .tbm-footer-contact .tbm-footer-cta {
    color: #101C36 !important;
    background: #D9FF42;
}

.tbm-footer .tbm-footer-contact .tbm-footer-cta:hover {
    color: #101C36 !important;
    background: #FFFFFF;
}

/* TBM SVG-Logo – Header und Footer */
.tbm-header-logo-image {
    display: block;
    width: 230px;
    max-width: 100%;
    height: auto;
}

.tbm-footer .tbm-footer-logo-image {
    display: block;
    width: 230px;
    max-width: 100%;
    height: auto;
}

.tbm-footer {
    background-color: #171D35 !important;
}

@media (max-width: 768px) {
    .tbm-header-logo-image,
    .tbm-footer .tbm-footer-logo-image {
        width: 205px;
    }
}


/* TBM LOGO – KORREKTUR HEADER UND FOOTER */

.tbm-header .tbm-header-inner > .tbm-logo {
    display: block !important;
    flex: 0 0 230px !important;
    width: 230px !important;
    line-height: 0;
    visibility: visible !important;
    opacity: 1 !important;
}

.tbm-header .tbm-header-inner > .tbm-logo img.tbm-header-logo-image {
    display: block !important;
    width: 230px !important;
    max-width: 230px !important;
    height: auto !important;
    max-height: none !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.tbm-footer .tbm-footer-logo-image {
    display: block !important;
    width: 230px !important;
    max-width: 230px !important;
    height: auto !important;
}

@media (max-width: 1000px) {
    .tbm-header .tbm-header-inner > .tbm-logo {
        flex-basis: 180px !important;
        width: 180px !important;
    }

    .tbm-header .tbm-header-inner > .tbm-logo img.tbm-header-logo-image {
        width: 180px !important;
        max-width: 180px !important;
    }
}

@media (max-width: 700px) {
    .tbm-header .tbm-header-inner > .tbm-logo {
        flex-basis: 145px !important;
        width: 145px !important;
    }

    .tbm-header .tbm-header-inner > .tbm-logo img.tbm-header-logo-image {
        width: 145px !important;
        max-width: 145px !important;
    }
}


/* =========================================================
   TBM KONTAKTSEITE – eigenes, lokal begrenztes Layout
   Einfügen am ENDE der style.css
========================================================= */

.tbm-contact-page {
    --contact-navy: #101C36;
    --contact-lime: #D9FF42;
    --contact-blue: #2457FF;
    --contact-ink: #171717;
    --contact-muted: #626875;
    width: 100%;
    overflow: hidden;
    color: var(--contact-ink);
}

.tbm-contact-page * { box-sizing: border-box; }

.tbm-contact-wrap {
    width: min(1160px, 90%);
    margin: 0 auto;
}

.tbm-contact-page h1,
.tbm-contact-page h2,
.tbm-contact-page h3,
.tbm-contact-page p { margin-top: 0; }

.tbm-contact-page h1,
.tbm-contact-page h2 {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 900;
    letter-spacing: -0.055em;
    line-height: .98;
}

.tbm-contact-hero {
    position: relative;
    color: #fff;
    background: var(--contact-navy);
    padding: clamp(75px, 10vw, 135px) 0 35px;
}

.tbm-contact-hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    column-gap: 7%;
    align-items: end;
}

.tbm-contact-eyebrow,
.tbm-contact-kicker {
    color: var(--contact-lime);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.tbm-contact-eyebrow { grid-column: 1 / -1; margin-bottom: 35px; }

.tbm-contact-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(68px, 11vw, 150px);
    line-height: .78;
    letter-spacing: -.085em;
}

.tbm-contact-hero h1 span,
.tbm-contact-hero-copy h2 { color: var(--contact-lime); }

.tbm-contact-hero-copy { max-width: 460px; padding-bottom: 8px; }
.tbm-contact-hero-copy h2 { margin-bottom: 20px; font-size: clamp(30px, 4vw, 48px); }
.tbm-contact-hero-copy p { color: rgba(255,255,255,.78); font-size: 17px; line-height: 1.75; }

.tbm-contact-button {
    display: inline-flex;
    gap: 30px;
    align-items: center;
    margin-top: 12px;
    padding: 16px 21px;
    color: var(--contact-navy) !important;
    background: var(--contact-lime);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-decoration: none !important;
    transition: transform .2s ease, background .2s ease;
}
.tbm-contact-button:hover { transform: translateY(-3px); background: #fff; }
.tbm-contact-button span { font-size: 19px; }

.tbm-contact-hero-meta {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 95px;
    padding: 18px 0 0;
    border-top: 1px solid rgba(255,255,255,.22);
    color: rgba(255,255,255,.58);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
}

.tbm-contact-details { padding: clamp(75px, 9vw, 125px) 0; background: #fff; }
.tbm-contact-details-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(35px, 7vw, 90px); align-items: stretch; }
.tbm-contact-info .tbm-contact-kicker,
.tbm-contact-map-section .tbm-contact-kicker,
.tbm-contact-form-section .tbm-contact-kicker { color: var(--contact-blue); margin-bottom: 20px; }

.tbm-contact-info h2 { color: var(--contact-navy); font-size: clamp(37px, 5vw, 65px); margin-bottom: 24px; }
.tbm-contact-info h2 span { color: var(--contact-blue); }
.tbm-contact-intro { max-width: 470px; color: var(--contact-muted); line-height: 1.8; margin-bottom: 35px; }

.tbm-contact-detail-link {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 15px;
    align-items: center;
    padding: 19px 0;
    border-top: 1px solid #dfe3e9;
    color: var(--contact-navy) !important;
    text-decoration: none !important;
}
.tbm-contact-detail-label { grid-column: 1 / -1; color: #7b8290; font-size: 10px; font-weight: 900; letter-spacing: .13em; }
.tbm-contact-detail-link strong { font-size: clamp(18px, 2vw, 23px); }
.tbm-contact-arrow { color: var(--contact-blue); font-size: 22px; }
.tbm-contact-address { display: grid; gap: 7px; padding: 19px 0 0; border-top: 1px solid #dfe3e9; color: var(--contact-navy); }
.tbm-contact-address strong { font-size: 17px; }
.tbm-contact-address > span:last-child { color: var(--contact-muted); line-height: 1.6; }

.tbm-contact-photo {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 530px;
    padding: clamp(25px, 4vw, 45px);
    color: var(--contact-navy);
    background: var(--contact-lime);
    overflow: hidden;
}
.tbm-contact-photo::before,
.tbm-contact-photo::after { content: ""; position: absolute; border: 1px solid rgba(16,28,54,.22); border-radius: 50%; pointer-events: none; }
.tbm-contact-photo::before { width: 440px; height: 440px; right: -100px; top: -100px; }
.tbm-contact-photo::after { width: 300px; height: 300px; right: -30px; top: -30px; }
.tbm-contact-photo-mark { position: relative; z-index: 1; font-size: 13px; font-weight: 900; letter-spacing: .08em; }
.tbm-contact-photo-mark span { font-weight: 500; }
.tbm-contact-photo-caption { position: relative; z-index: 1; display: grid; gap: 9px; }
.tbm-contact-photo-caption strong { max-width: 420px; font-size: clamp(30px, 4.5vw, 58px); line-height: .95; letter-spacing: -.06em; }
.tbm-contact-photo-caption span { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.tbm-contact-photo-corner { position: absolute; right: 30px; bottom: 25px; font-size: 65px; font-weight: 300; line-height: 1; }

.tbm-contact-form-section { padding: clamp(75px, 9vw, 125px) 0; background: #f0f1ed; }
.tbm-contact-form-heading { max-width: 800px; margin-bottom: 45px; }
.tbm-contact-form-heading h2 { color: var(--contact-navy); font-size: clamp(42px, 7vw, 86px); margin-bottom: 20px; }
.tbm-contact-form-heading h2 span { color: var(--contact-blue); }
.tbm-contact-form-heading > p:last-child { color: var(--contact-muted); font-size: 17px; }
.tbm-contact-form-card { padding: clamp(22px, 4vw, 48px); background: #fff; box-shadow: 0 15px 50px rgba(16,28,54,.07); }

/* WPForms – nur auf dieser Seite */
.tbm-contact-page .wpforms-container { margin: 0 !important; }
.tbm-contact-page .wpforms-field { padding: 0 0 22px !important; }
.tbm-contact-page .wpforms-field-label { color: var(--contact-navy) !important; font-size: 13px !important; font-weight: 800 !important; margin-bottom: 8px !important; }
.tbm-contact-page .wpforms-field input,
.tbm-contact-page .wpforms-field textarea {
    width: 100% !important;
    max-width: 100% !important;
    border: 1px solid #d6dbe3 !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: var(--contact-navy) !important;
    padding: 14px 15px !important;
    box-shadow: none !important;
}
.tbm-contact-page .wpforms-field input:focus,
.tbm-contact-page .wpforms-field textarea:focus { border-color: var(--contact-blue) !important; outline: 2px solid rgba(36,87,255,.12) !important; }
.tbm-contact-page .wpforms-field-description { color: #747b86 !important; font-size: 12px !important; line-height: 1.6 !important; }
.tbm-contact-page .wpforms-submit-container { padding-top: 8px !important; }
.tbm-contact-page .wpforms-submit {
    min-height: 54px !important;
    padding: 15px 25px !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: var(--contact-navy) !important;
    background: var(--contact-lime) !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
    cursor: pointer;
}
.tbm-contact-page .wpforms-submit:hover { color: #fff !important; background: var(--contact-blue) !important; }

.tbm-contact-map-section { padding: clamp(75px, 9vw, 120px) 0; background: #fff; }
.tbm-contact-map-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 35px; }
.tbm-contact-map-heading h2 { margin: 0; color: var(--contact-navy); font-size: clamp(40px, 6vw, 76px); }
.tbm-contact-map-heading h2 span { color: var(--contact-blue); }
.tbm-contact-map-heading > p { margin: 0; color: var(--contact-muted); font-weight: 700; line-height: 1.7; }
.tbm-contact-map-frame { width: 100%; height: clamp(300px, 42vw, 500px); background: #e7e9e5; }
.tbm-contact-map-frame iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(.92); }
.tbm-contact-map-link { display: inline-flex; gap: 25px; margin-top: 20px; color: var(--contact-navy) !important; font-size: 11px; font-weight: 900; letter-spacing: .08em; text-decoration: none !important; }
.tbm-contact-map-link span { color: var(--contact-blue); font-size: 18px; }

.tbm-contact-outro { padding: clamp(75px, 10vw, 135px) 0; color: #fff; background: var(--contact-blue); }
.tbm-contact-outro p { color: var(--contact-lime); font-size: 11px; font-weight: 900; letter-spacing: .15em; }
.tbm-contact-outro h2 { margin: 18px 0 35px; color: #fff; font-size: clamp(54px, 10vw, 125px); line-height: .84; }
.tbm-contact-outro h2 span { color: var(--contact-lime); }
.tbm-contact-outro a { display: inline-flex; gap: 28px; align-items: center; padding-bottom: 9px; border-bottom: 2px solid var(--contact-lime); color: #fff !important; font-size: 11px; font-weight: 900; letter-spacing: .1em; text-decoration: none !important; }
.tbm-contact-outro a span { color: var(--contact-lime); font-size: 20px; }

@media (max-width: 760px) {
    .tbm-contact-hero-inner { grid-template-columns: 1fr; gap: 35px; }
    .tbm-contact-hero h1 { font-size: clamp(70px, 17vw, 115px); }
    .tbm-contact-hero-copy { max-width: 560px; }
    .tbm-contact-hero-meta { margin-top: 65px; font-size: 8px; }
    .tbm-contact-details-grid { grid-template-columns: 1fr; }
    .tbm-contact-photo { min-height: 360px; }
    .tbm-contact-map-heading { align-items: start; flex-direction: column; }
}

@media (max-width: 480px) {
    .tbm-contact-wrap { width: calc(100% - 40px); }
    .tbm-contact-hero-meta { flex-direction: column; gap: 8px; }
    .tbm-contact-photo { min-height: 300px; }
    .tbm-contact-form-card { padding: 20px 16px; }
    .tbm-contact-map-frame { height: 320px; }
}


/* =========================================================
   TBM MOBILE NAVIGATION – KORREKTUR
   Diesen Block ganz unten an die bestehende style.css anhängen.
   Er ersetzt NICHT die vorhandenen Desktop-Regeln.
========================================================= */

/* Desktop: Hamburger ausblenden */
.tbm-mobile-toggle {
    display: none;
}

@media (max-width: 700px) {
    .tbm-header {
        z-index: 500;
    }

    .tbm-header-inner {
        position: relative;
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        min-height: 78px;
        padding: 12px 20px;
    }

    .tbm-logo {
        flex: 0 1 auto;
        min-width: 0;
    }

    .tbm-logo img,
    .tbm-header .custom-logo {
        display: block;
        width: auto;
        max-width: 125px;
        max-height: 48px;
    }

    .tbm-header-contact {
        flex: 0 0 auto;
        margin-left: auto;
        padding: 11px 12px;
        font-size: 10px;
        gap: 7px;
    }

    .tbm-header-contact span {
        font-size: 15px;
    }

    /* Hamburger-Button */
    .tbm-mobile-toggle {
        flex: 0 0 42px;
        display: flex;
        width: 42px;
        height: 42px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        padding: 0;
        border: 1px solid rgba(16, 28, 54, .2);
        border-radius: 0;
        background: #fff;
        cursor: pointer;
    }

    .tbm-mobile-toggle span {
        display: block;
        width: 19px;
        height: 2px;
        background: var(--tbm-navy);
        transition: transform .2s ease, opacity .2s ease;
    }

    .tbm-mobile-toggle[aria-expanded="true"] span:first-child {
        transform: translateY(7px) rotate(45deg);
    }

    .tbm-mobile-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .tbm-mobile-toggle[aria-expanded="true"] span:last-child {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Menü als aufklappbares Panel unter der Kopfzeile */
    .tbm-header .tbm-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 600;
        width: 100%;
        max-height: calc(100vh - 90px);
        margin: 0;
        padding: 12px 22px 22px;
        overflow-y: auto;
        background: #fff;
        border-top: 1px solid rgba(16, 28, 54, .12);
        box-shadow: 0 14px 28px rgba(16, 28, 54, .16);
    }

    .tbm-header .tbm-navigation.is-open {
        display: block;
    }

    .tbm-header .tbm-menu {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        width: 100%;
        margin: 0;
        padding: 0;
        white-space: normal;
    }

    .tbm-header .tbm-menu > li {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0;
        border-bottom: 1px solid #e5e8ed;
    }

    .tbm-header .tbm-menu > li > a {
        display: block;
        padding: 15px 2px;
        color: var(--tbm-navy);
        font-size: 13px;
        line-height: 1.35;
        white-space: normal;
    }

    .tbm-header .tbm-menu > li.menu-item-has-children > a::after {
        float: right;
        content: "+";
        margin-left: 12px;
        font-size: 18px;
        line-height: 1;
    }

    .tbm-header .tbm-menu > li.menu-item-has-children.submenu-open > a::after {
        content: "−";
    }

    /* Untermenüs standardmäßig geschlossen – kein dauerhaft aufgeklapptes Menü */
    .tbm-header .tbm-menu .sub-menu {
        display: none !important;
        position: static;
        min-width: 0;
        margin: 0;
        padding: 0 0 8px 14px;
        border: 0;
        box-shadow: none;
        background: transparent;
    }

    .tbm-header .tbm-menu li.submenu-open > .sub-menu {
        display: block !important;
    }

    .tbm-header .tbm-menu .sub-menu li {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .tbm-header .tbm-menu .sub-menu li a {
        display: block;
        padding: 10px 4px;
        color: #46516a;
        font-size: 12px;
        line-height: 1.4;
        white-space: normal;
    }

    /* Desktop-Hover-Regeln dürfen das mobile Menü nicht öffnen */
    .tbm-header .tbm-menu li:hover > .sub-menu,
    .tbm-header .tbm-menu li:focus-within > .sub-menu {
        display: none;
    }

    .tbm-header .tbm-menu li.submenu-open:hover > .sub-menu,
    .tbm-header .tbm-menu li.submenu-open:focus-within > .sub-menu {
        display: block !important;
    }
}






/* =========================================================
   TBM STARTSEITE – RESPONSIVE BASISKORREKTUR
   Gilt ausschließlich für die Startseite.
   Desktop-Grundgestaltung bleibt erhalten; Tablet und Mobile
   erhalten klar definierte Layouts.
========================================================= */

.tbm-homepage {
    min-width: 0;
    overflow: clip;
}

/* Die drei Elemente des Über-TBM-Bereichs bilden bewusst
   ein Bild links und den Textbereich rechts. */
.tbm-homepage .tbm-about {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    grid-template-rows: auto 1fr;
    align-items: start;
    column-gap: clamp(28px, 5vw, 72px);
    row-gap: 18px;
}

.tbm-homepage .tbm-about-photo {
    grid-column: 1;
    grid-row: 1 / 3;
    min-width: 0;
    min-height: 100%;
}

.tbm-homepage .tbm-about-photo img {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
}

.tbm-homepage .tbm-about-label {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
}

.tbm-homepage .tbm-about-content {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
}

.tbm-homepage .tbm-home-seo-text > .tbm-section-cta {
    grid-column: 2;
    justify-self: start;
}

/* TABLET: 701–1000 px */
@media (min-width: 701px) and (max-width: 1000px) {
    .tbm-homepage .tbm-hero-reworked {
        grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
        align-items: center;
        gap: clamp(22px, 3vw, 34px);
        min-height: 0;
        padding: 68px 5vw 108px;
    }

    .tbm-homepage .tbm-hero-reworked .tbm-hero-content {
        min-width: 0;
    }

    .tbm-homepage .tbm-hero-reworked h1 {
        font-size: clamp(58px, 7.4vw, 82px);
        line-height: 0.86;
        overflow-wrap: normal;
    }

    .tbm-homepage .tbm-hero-description {
        max-width: 390px;
        margin: 26px 0 24px;
        font-size: 16px;
    }

    .tbm-homepage .tbm-hero-visual {
        padding: 14px 12px 18px;
    }

    .tbm-homepage .tbm-hero-photo {
        aspect-ratio: 0.88 / 1;
        max-height: 500px;
        border-width: 9px;
        box-shadow: 12px 12px 0 var(--tbm-blue);
        transform: rotate(1deg);
    }

    .tbm-homepage .tbm-hero-photo-label {
        padding: 16px 18px 14px;
        gap: 6px;
    }

    .tbm-homepage .tbm-hero-photo-label strong {
        font-size: clamp(23px, 2.8vw, 34px);
    }

    .tbm-homepage .tbm-hero-stamp {
        right: -5px;
        top: -12px;
        padding: 10px 12px;
        font-size: 10px;
    }

    .tbm-homepage .tbm-home-seo-intro {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        column-gap: 5%;
        padding-top: 100px;
        padding-bottom: 100px;
    }

    .tbm-homepage .tbm-home-seo-intro h2 {
        font-size: clamp(42px, 6vw, 64px);
    }

    .tbm-homepage .tbm-seo-intro-copy {
        font-size: 16px;
    }

    .tbm-homepage .tbm-home-services {
        padding: 85px 5vw 95px;
    }

    .tbm-homepage .tbm-home-services .tbm-service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .tbm-homepage .tbm-home-services .tbm-service-item,
    .tbm-homepage .tbm-home-services .tbm-service-item:nth-child(odd),
    .tbm-homepage .tbm-home-services .tbm-service-item:nth-child(even) {
        min-height: 220px;
        padding: 20px;
    }

    .tbm-homepage .tbm-home-services .tbm-service-item > span:first-child {
        top: 18px;
        left: 18px;
    }

    .tbm-homepage .tbm-home-services .tbm-service-item h3 {
        left: 20px;
        right: 58px;
        bottom: 20px;
        font-size: clamp(20px, 2.5vw, 26px);
        line-height: 1.08;
        overflow-wrap: break-word;
    }

    .tbm-homepage .tbm-home-services .tbm-service-item .tbm-service-arrow {
        right: 18px;
        bottom: 18px;
        font-size: 25px;
    }

    .tbm-homepage .tbm-home-references {
        padding: 85px 5vw 95px;
    }

    .tbm-homepage .tbm-reference-heading {
        grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
        gap: 20px 5%;
    }

    .tbm-homepage .tbm-reference-heading h2 {
        font-size: clamp(58px, 7.5vw, 82px);
    }

    .tbm-homepage .tbm-reference-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .tbm-homepage .tbm-home-references .tbm-reference-card {
        min-height: 330px;
        padding: 22px;
    }

    .tbm-homepage .tbm-home-references .tbm-reference-card:last-child {
        grid-column: 1 / -1;
        min-height: 280px;
    }

    .tbm-homepage .tbm-home-references .tbm-reference-card strong {
        font-size: clamp(34px, 4.8vw, 52px);
    }

    .tbm-homepage .tbm-home-news {
        padding: 85px 5vw;
    }

    .tbm-homepage .tbm-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .tbm-homepage .tbm-news-card-content {
        padding: 20px;
    }

    .tbm-homepage .tbm-news-card h3 {
        font-size: 22px;
    }

    .tbm-homepage .tbm-about {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        gap: 16px 5%;
        padding-top: 100px;
        padding-bottom: 100px;
    }

    .tbm-homepage .tbm-about-photo,
    .tbm-homepage .tbm-about-photo img {
        min-height: 420px;
    }

    .tbm-homepage .tbm-about-content h2 {
        font-size: clamp(38px, 5vw, 56px);
    }

    .tbm-homepage .tbm-about-content > p {
        margin: 24px 0;
        font-size: 16px;
    }

    .tbm-homepage .tbm-home-seo-text {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        gap: 28px 5%;
        padding: 80px 5vw;
    }

    .tbm-homepage .tbm-home-seo-text h2 {
        font-size: clamp(36px, 4.8vw, 54px);
    }

    .tbm-homepage .tbm-home-seo-text-copy {
        font-size: 16px;
    }
}

/* SMARTPHONE: bis 700 px */
@media (max-width: 700px) {
    .tbm-homepage .tbm-hero-reworked {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        min-height: 0;
        padding: 54px 22px 92px;
    }

    .tbm-homepage .tbm-hero-reworked .tbm-hero-content {
        width: 100%;
        max-width: none;
    }

    .tbm-homepage .tbm-hero-reworked .tbm-eyebrow {
        margin-bottom: 22px;
        font-size: 10px;
        line-height: 1.5;
    }

    .tbm-homepage .tbm-hero-reworked h1 {
        margin: 0;
        font-size: clamp(58px, 15.5vw, 94px);
        line-height: 0.86;
        letter-spacing: -0.075em;
    }

    .tbm-homepage .tbm-hero-description {
        max-width: 430px;
        margin: 25px 0 22px;
        font-size: 16px;
        line-height: 1.55;
    }

    .tbm-homepage .tbm-hero-reworked .tbm-button {
        width: auto;
        max-width: 100%;
        min-height: 54px;
        padding: 14px 18px;
    }

    .tbm-homepage .tbm-hero-visual {
        width: calc(100% - 12px);
        margin: 38px 8px 18px 0;
        padding: 8px 8px 12px;
    }

    .tbm-homepage .tbm-hero-photo {
        width: 100%;
        aspect-ratio: 1.08 / 1;
        max-height: none;
        border-width: 7px;
        box-shadow: 9px 9px 0 var(--tbm-blue);
        transform: rotate(0.5deg);
    }

    .tbm-homepage .tbm-hero-photo img {
        object-position: center 42%;
    }

    .tbm-homepage .tbm-hero-photo-label {
        gap: 5px;
        padding: 13px 14px 12px;
    }

    .tbm-homepage .tbm-hero-photo-label span {
        font-size: 8px;
        line-height: 1.35;
    }

    .tbm-homepage .tbm-hero-photo-label strong {
        font-size: clamp(22px, 6vw, 32px);
    }

    .tbm-homepage .tbm-hero-stamp {
        top: -12px;
        right: -3px;
        padding: 9px 11px;
        font-size: 9px;
    }

    .tbm-homepage .tbm-hero-reworked .tbm-hero-bottom {
        left: 22px;
        right: 22px;
        bottom: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        padding: 13px 0;
        font-size: 8px;
        line-height: 1.35;
    }

    .tbm-homepage .tbm-home-seo-intro {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
        padding: 76px 22px 78px;
    }

    .tbm-homepage .tbm-home-seo-intro > .tbm-eyebrow,
    .tbm-homepage .tbm-home-seo-intro h2,
    .tbm-homepage .tbm-home-seo-intro .tbm-seo-intro-copy,
    .tbm-homepage .tbm-home-seo-intro > .tbm-section-cta {
        grid-column: 1;
    }

    .tbm-homepage .tbm-home-seo-intro > .tbm-eyebrow {
        margin: 0;
        font-size: 10px;
        line-height: 1.5;
    }

    .tbm-homepage .tbm-home-seo-intro h2 {
        margin: 0;
        font-size: clamp(42px, 11.5vw, 62px);
        line-height: 0.94;
    }

    .tbm-homepage .tbm-seo-intro-copy {
        max-width: none;
        font-size: 16px;
        line-height: 1.65;
    }

    .tbm-homepage .tbm-seo-intro-copy p {
        margin: 0 0 16px;
    }

    .tbm-homepage .tbm-home-seo-intro > .tbm-section-cta {
        justify-self: start;
        width: auto;
        margin-top: 4px;
    }

    .tbm-homepage .tbm-home-services {
        padding: 72px 22px 82px;
    }

    .tbm-homepage .tbm-home-services .tbm-section-heading {
        display: block;
        margin-bottom: 30px;
    }

    .tbm-homepage .tbm-home-services .tbm-section-heading .tbm-eyebrow {
        margin-bottom: 14px;
    }

    .tbm-homepage .tbm-home-services .tbm-section-heading h2 {
        font-size: clamp(43px, 12vw, 58px);
        line-height: 0.95;
    }

    .tbm-homepage .tbm-home-services .tbm-section-heading h2 span {
        display: block;
        margin: 12px 0 0;
        font-size: 10px;
    }

    .tbm-homepage .tbm-home-services .tbm-service-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .tbm-homepage .tbm-home-services .tbm-service-item,
    .tbm-homepage .tbm-home-services .tbm-service-item:nth-child(odd),
    .tbm-homepage .tbm-home-services .tbm-service-item:nth-child(even) {
        min-height: 190px;
        padding: 18px;
    }

    .tbm-homepage .tbm-home-services .tbm-service-item > span:first-child {
        top: 16px;
        left: 16px;
        padding: 7px 9px;
        font-size: 11px;
    }

    .tbm-homepage .tbm-home-services .tbm-service-item h3 {
        left: 18px;
        right: 58px;
        bottom: 18px;
        font-size: clamp(23px, 7vw, 30px);
        line-height: 1.06;
    }

    .tbm-homepage .tbm-home-services .tbm-service-item .tbm-service-arrow {
        right: 17px;
        bottom: 17px;
        font-size: 24px;
    }

    .tbm-homepage .tbm-home-services > .tbm-section-cta {
        display: flex;
        width: 100%;
        margin-top: 25px;
    }

    .tbm-homepage .tbm-home-references {
        padding: 76px 22px 82px;
    }

    .tbm-homepage .tbm-reference-heading {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
        margin-bottom: 30px;
    }

    .tbm-homepage .tbm-reference-heading h2 {
        font-size: clamp(56px, 15vw, 78px);
        line-height: 0.86;
    }

    .tbm-homepage .tbm-reference-heading > p:last-child {
        max-width: none;
        font-size: 15px;
        line-height: 1.6;
    }

    .tbm-homepage .tbm-reference-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 13px;
    }

    .tbm-homepage .tbm-home-references .tbm-reference-card,
    .tbm-homepage .tbm-home-references .tbm-reference-card:last-child {
        grid-column: auto;
        min-height: 310px;
        padding: 21px;
    }

    .tbm-homepage .tbm-home-references .tbm-reference-card strong {
        margin: 18px 0;
        font-size: clamp(42px, 12vw, 58px);
        line-height: 0.9;
    }

    .tbm-homepage .tbm-reference-number {
        font-size: 9px;
    }

    .tbm-homepage .tbm-reference-link {
        max-width: 100%;
        font-size: 9px;
        overflow-wrap: anywhere;
    }

    .tbm-homepage .tbm-home-references > .tbm-section-cta {
        display: flex;
        width: 100%;
        margin-top: 26px;
    }

    .tbm-homepage .tbm-all-references {
        margin-top: 25px;
        font-size: 11px;
    }

    .tbm-homepage .tbm-home-news {
        padding: 72px 22px 78px;
    }

    .tbm-homepage .tbm-news-heading {
        grid-template-columns: minmax(0, 1fr);
        gap: 17px;
        margin-bottom: 30px;
    }

    .tbm-homepage .tbm-news-heading h2 {
        font-size: clamp(52px, 14vw, 76px);
        line-height: 0.9;
    }

    .tbm-homepage .tbm-news-heading > p {
        font-size: 15px;
        line-height: 1.6;
    }

    .tbm-homepage .tbm-news-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .tbm-homepage .tbm-news-card-content {
        padding: 20px;
    }

    .tbm-homepage .tbm-news-card h3 {
        font-size: 23px;
        line-height: 1.12;
    }

    .tbm-homepage .tbm-about {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto;
        gap: 18px;
        padding: 76px 22px 82px;
    }

    .tbm-homepage .tbm-about-photo,
    .tbm-homepage .tbm-about-photo img {
        grid-column: 1;
        grid-row: auto;
        width: 100%;
        min-height: 0;
        height: auto;
        aspect-ratio: 1.25 / 1;
    }

    .tbm-homepage .tbm-about-label,
    .tbm-homepage .tbm-about-content {
        grid-column: 1;
        grid-row: auto;
    }

    .tbm-homepage .tbm-about-label .tbm-eyebrow {
        margin: 0 0 8px;
    }

    .tbm-homepage .tbm-about-content h2 {
        font-size: clamp(38px, 10.5vw, 58px);
        line-height: 0.98;
    }

    .tbm-homepage .tbm-about-content > p {
        margin: 22px 0;
        font-size: 16px;
        line-height: 1.65;
    }

    .tbm-homepage .tbm-about-content .tbm-section-cta {
        display: flex;
        width: 100%;
        margin-top: 22px;
    }

    .tbm-homepage .tbm-home-seo-text {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        padding: 72px 22px 78px;
    }

    .tbm-homepage .tbm-home-seo-text h2 {
        font-size: clamp(38px, 10vw, 56px);
        line-height: 0.98;
    }

    .tbm-homepage .tbm-home-seo-text-copy {
        font-size: 16px;
        line-height: 1.65;
    }

    .tbm-homepage .tbm-home-seo-text > .tbm-section-cta {
        grid-column: 1;
        justify-self: stretch;
        width: 100%;
        margin-top: 0;
    }

    .tbm-homepage .tbm-final {
        padding: 78px 22px 88px;
    }

    .tbm-homepage .tbm-final h2 {
        margin-bottom: 34px;
        font-size: clamp(76px, 21vw, 132px);
        line-height: 0.82;
    }

    .tbm-homepage .tbm-final .tbm-button {
        width: auto;
        max-width: 100%;
    }
}

/* Sehr schmale Smartphones */
@media (max-width: 380px) {
    .tbm-homepage .tbm-hero-reworked h1 {
        font-size: clamp(54px, 15vw, 60px);
    }

    .tbm-homepage .tbm-hero-photo-label {
        padding: 11px 12px 10px;
    }

    .tbm-homepage .tbm-home-services .tbm-service-item,
    .tbm-homepage .tbm-home-services .tbm-service-item:nth-child(odd),
    .tbm-homepage .tbm-home-services .tbm-service-item:nth-child(even) {
        min-height: 175px;
    }

    .tbm-homepage .tbm-home-services .tbm-service-item h3 {
        font-size: 22px;
    }

    .tbm-homepage .tbm-home-references .tbm-reference-card,
    .tbm-homepage .tbm-home-references .tbm-reference-card:last-child {
        min-height: 285px;
    }
}


/* TBM Projekt-Slideshow – responsive, sechs echte Referenzmotive */
.tbm-project-slider { position:relative; overflow:hidden; }
.tbm-project-slider-track { display:flex; width:100%; transition:transform .65s cubic-bezier(.22,.7,.2,1); will-change:transform; }
.tbm-project-slide { position:relative; flex:0 0 100%; min-width:0; height:clamp(360px, 48vw, 650px); overflow:hidden; background:#101c36; }
.tbm-project-slide img { display:block; width:100%; height:100%; object-fit:cover; object-position:center; }
.tbm-project-slide::after { content:""; position:absolute; inset:35% 0 0; background:linear-gradient(transparent,rgba(16,28,54,.82)); pointer-events:none; }
.tbm-project-caption { position:absolute; z-index:1; left:clamp(20px,4vw,54px); right:20px; bottom:clamp(22px,4vw,48px); color:#fff; }
.tbm-project-caption span { display:inline-block; padding:8px 11px; background:#d9ff42; color:#101c36; font-size:11px; line-height:1; font-weight:900; letter-spacing:.1em; }
.tbm-project-caption h3 { margin:18px 0 0; color:#fff; font-size:clamp(38px,6.5vw,88px); line-height:.88; letter-spacing:-.065em; }
.tbm-project-slider-controls { display:flex; align-items:center; justify-content:center; gap:22px; padding:18px 0 4px; }
.tbm-slider-arrow { display:grid; place-items:center; width:44px; height:44px; border:1px solid rgba(255,255,255,.45); border-radius:50%; background:transparent; color:#fff; font-size:24px; cursor:pointer; transition:background .2s,color .2s; }
.tbm-slider-arrow:hover { background:#d9ff42; border-color:#d9ff42; color:#101c36; }
.tbm-slider-dots { display:flex; align-items:center; gap:9px; }
.tbm-slider-dot { width:8px; height:8px; padding:0; border:0; border-radius:50%; background:rgba(255,255,255,.4); cursor:pointer; }
.tbm-slider-dot.is-active { width:25px; border-radius:8px; background:#d9ff42; }
@media (max-width:600px) {
 .tbm-project-slide { height:390px; }
 .tbm-project-slide img { object-position:center; }
 .tbm-project-caption h3 { font-size:clamp(34px,10vw,54px); }
 .tbm-project-slider-controls { gap:15px; }
}
@media (prefers-reduced-motion:reduce) { .tbm-project-slider-track { transition:none; } }


/* Hero-Slideshow: sechs TBM-Projekte im bestehenden schrägen Bildrahmen */
.tbm-hero-photo { isolation:isolate; }
.tbm-hero-slides { position:absolute; inset:0; overflow:hidden; background:#101c36; }
.tbm-hero-slides img { position:absolute; inset:0; display:block; width:100%; height:100%; object-fit:cover; object-position:center 42%; opacity:0; transition:opacity .8s ease; }
.tbm-hero-slides img.is-active { opacity:1; }
.tbm-hero-slide-controls { position:absolute; z-index:2; right:14px; bottom:142px; display:flex; align-items:center; gap:10px; padding:7px 9px; color:#fff; background:rgba(16,28,54,.82); font-size:10px; font-weight:800; letter-spacing:.08em; }
.tbm-hero-slide-controls button { display:grid; place-items:center; width:30px; height:30px; border:1px solid rgba(255,255,255,.65); border-radius:50%; color:#fff; background:transparent; font-size:18px; line-height:1; cursor:pointer; }
.tbm-hero-slide-controls button:hover { color:#101c36; background:#d9ff42; border-color:#d9ff42; }
@media (max-width:600px) { .tbm-hero-slide-controls { right:9px; bottom:133px; gap:7px; padding:5px 7px; } .tbm-hero-slide-controls button { width:27px; height:27px; } }
@media (prefers-reduced-motion:reduce) { .tbm-hero-slides img { transition:none; } }


/* TBM Hero-Slideshow: Bildausschnitte etwas nach oben verschieben */
.tbm-homepage .tbm-hero-slides img {
    object-position: center 60%;
}
@media (max-width: 600px) {
    .tbm-homepage .tbm-hero-slides img {
        object-position: center 60%;
    }
}


/* TBM Hero-Slideshow – Feinschliff der Bildausschnitte und Projekttitel */
.tbm-hero-slides img {
    object-position: center 72%;
}
.tbm-hero-slides img.tbm-slide-3d {
    object-fit: contain;
    object-position: center center;
    transform: scale(.84);
}
.tbm-hero-slide-title {
    position: absolute;
    z-index: 3;
    left: 24px;
    top: 24px;
    max-width: calc(100% - 48px);
    padding: 9px 13px 8px;
    color: #101c36;
    background: #d9ff42;
    border: 1px solid #101c36;
    font-size: clamp(12px, 1.15vw, 17px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: .055em;
    text-transform: uppercase;
    transform: rotate(-1.5deg);
    pointer-events: none;
}
@media (max-width: 600px) {
    .tbm-hero-slides img { object-position: center 72%; }
    .tbm-hero-slides img.tbm-slide-3d { transform: scale(.84); }
    .tbm-hero-slide-title {
        left: 12px;
        top: 12px;
        max-width: calc(100% - 24px);
        padding: 7px 9px 6px;
        font-size: 11px;
    }
}


/* TBM HERO – Bildfenster und gelbe Infokarte sind getrennte, responsive Bereiche */
.tbm-homepage .tbm-hero-photo {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 860px;
    max-height: none;
    aspect-ratio: auto;
    overflow: hidden;
    border: 12px solid var(--tbm-lime);
    background: var(--tbm-lime);
}
.tbm-homepage .tbm-hero-image-window {
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 0;
    overflow: hidden;
    background: var(--tbm-navy);
}
.tbm-homepage .tbm-hero-slides {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.tbm-homepage .tbm-hero-slides img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 78%;
}
.tbm-homepage .tbm-hero-slides img.tbm-slide-3d {
    object-fit: contain;
    object-position: center;
    transform: scale(1);
}
.tbm-homepage .tbm-hero-slide-title {
    top: 18px;
    left: 18px;
}
.tbm-homepage .tbm-hero-slide-controls {
    right: 14px;
    bottom: 14px;
}
.tbm-homepage .tbm-hero-photo-label {
    position: relative;
    inset: auto;
    flex: 0 0 auto;
    width: 100%;
    min-height: 0;
    padding: 20px 26px 18px;
    border-top: 2px solid var(--tbm-navy);
}
@media (max-width: 900px) {
    .tbm-homepage .tbm-hero-photo {
        max-width: 100%;
    }
    .tbm-homepage .tbm-hero-image-window {
        aspect-ratio: 4 / 3;
    }
}
@media (max-width: 600px) {
    .tbm-homepage .tbm-hero-photo {
        border-width: 8px;
    }
    .tbm-homepage .tbm-hero-image-window {
        aspect-ratio: 4 / 3;
    }
    .tbm-homepage .tbm-hero-slides img {
        object-position: center 78%;
    }
    .tbm-homepage .tbm-hero-slides img.tbm-slide-3d {
        transform: scale(1);
    }
    .tbm-homepage .tbm-hero-photo-label {
        padding: 16px 16px 14px;
    }
    .tbm-homepage .tbm-hero-photo-label strong {
        font-size: clamp(25px, 7vw, 36px);
    }
    .tbm-homepage .tbm-hero-slide-title {
        top: 12px;
        left: 12px;
        max-width: calc(100% - 24px);
        font-size: 11px;
    }
}


/* Projekttitel in der Slideshow: nur gelbe Schrift, kein Kasten */
.tbm-homepage .tbm-hero-slide-title {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    color: #d9ff42 !important;
    box-shadow: none !important;
    font-weight: 900;
    font-size: clamp(16px, 1.55vw, 24px);
    line-height: 1.05;
    letter-spacing: .045em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .75);
    transform: none;
}
@media (max-width: 600px) {
    .tbm-homepage .tbm-hero-slide-title {
        font-size: clamp(13px, 3.4vw, 18px);
    }
}


/* Gesamten Hero-Bildblock inklusive gelber Werbetechnik-Karte kompakter darstellen */
.tbm-homepage .tbm-hero-photo {
    width: 84%;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 900px) {
    .tbm-homepage .tbm-hero-photo {
        width: 92%;
        max-width: 100%;
    }
}
@media (max-width: 600px) {
    .tbm-homepage .tbm-hero-photo {
        width: 100%;
    }
}

/* Freightliner / Lokomotive: Bildausschnitt gezielt etwas nach unten setzen.
   Die übrigen Slideshow-Bilder bleiben unverändert. */
.tbm-homepage .tbm-hero-slides img:nth-of-type(3) {
    object-position: center 45% !important;
}
@media (max-width: 600px) {
    .tbm-homepage .tbm-hero-slides img:nth-of-type(3) {
        object-position: center 45% !important;
    }
}


/* TBM – aktuelle Startseitenanpassungen (09.11.2026) */

/* Leistungskacheln etwas schmaler und mit transparenten Piktogrammen */
.tbm-homepage .tbm-home-services .tbm-service-grid {
    max-width: 1320px;
}
.tbm-homepage .tbm-home-services .tbm-service-item {
    background: #101c36;
}
.tbm-homepage .tbm-home-services .tbm-service-item::after {
    background: linear-gradient(180deg, rgba(16,28,54,.02) 0%, rgba(16,28,54,.08) 42%, rgba(16,28,54,.96) 100%);
}
.tbm-homepage .tbm-home-services .tbm-service-image {
    z-index: -1;
    inset: 7% 5% auto auto;
    width: min(54%, 270px);
    height: 76%;
    object-fit: contain;
    object-position: center;
    opacity: 1;
    filter: none;
}
.tbm-homepage .tbm-home-services .tbm-service-item > span:first-child {
    z-index: 2;
}
.tbm-homepage .tbm-home-services .tbm-service-item h3,
.tbm-homepage .tbm-home-services .tbm-service-item .tbm-service-arrow {
    z-index: 2;
}
.tbm-homepage .tbm-home-services .tbm-service-item:hover .tbm-service-image {
    transform: scale(1.045);
}
.tbm-homepage .tbm-reference-heading h2 span {
    color: #fff !important;
}
.tbm-homepage .tbm-hero-stamp {
    max-width: 270px;
    color: #101c36;
    background: #fff;
    text-align: center;
    line-height: 1.15;
    letter-spacing: .06em;
}
@media (max-width: 600px) {
    .tbm-homepage .tbm-home-services .tbm-service-item {
        min-height: 205px;
    }
    .tbm-homepage .tbm-home-services .tbm-service-image {
        inset: 5% 4% auto auto;
        width: 56%;
        height: 78%;
    }
    .tbm-homepage .tbm-hero-stamp {
        max-width: 185px;
        font-size: 9px;
    }
}


/* TBM – Überarbeitung Leistungskacheln: heller, klarer abgegrenzt */
.tbm-homepage .tbm-home-services .tbm-service-grid {
    max-width: 1240px;
    gap: 18px;
}

.tbm-homepage .tbm-home-services .tbm-service-item,
.tbm-homepage .tbm-home-services .tbm-service-item:nth-child(odd),
.tbm-homepage .tbm-home-services .tbm-service-item:nth-child(even) {
    min-height: 225px;
    padding: 20px 22px;
    border: 1px solid #c8ced8;
    border-radius: 3px;
    background: #e9edf2;
    color: #101c36;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .10);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.tbm-homepage .tbm-home-services .tbm-service-item::after {
    display: none;
    content: none;
}

.tbm-homepage .tbm-home-services .tbm-service-image {
    z-index: 0;
    inset: 8% 5% auto auto;
    width: min(55%, 245px);
    height: 68%;
    object-fit: contain;
    object-position: center;
    opacity: 1;
    filter: none;
    transition: transform .25s ease;
}

.tbm-homepage .tbm-home-services .tbm-service-item > span:first-child {
    top: 17px;
    left: 18px;
    z-index: 2;
    padding: 6px 9px;
    color: #101c36;
    background: #d7e600;
    font-size: 11px;
}

.tbm-homepage .tbm-home-services .tbm-service-item h3 {
    left: 20px;
    right: 58px;
    bottom: 18px;
    z-index: 2;
    color: #d2df00;
    font-size: clamp(21px, 2.25vw, 29px);
    text-shadow: 0 1px 1px rgba(16, 28, 54, .14);
}

.tbm-homepage .tbm-home-services .tbm-service-item .tbm-service-arrow {
    right: 18px;
    bottom: 18px;
    z-index: 2;
    color: #101c36;
}

.tbm-homepage .tbm-home-services .tbm-service-item:hover {
    padding: 20px 22px;
    background: #f1f3f6;
    border-color: #aeb8c6;
    box-shadow: 0 7px 18px rgba(0, 0, 0, .14);
    transform: translateY(-2px);
}

.tbm-homepage .tbm-home-services .tbm-service-item:hover .tbm-service-image {
    transform: scale(1.045);
}

@media (max-width: 900px) {
    .tbm-homepage .tbm-home-services .tbm-service-grid {
        gap: 13px;
        max-width: 760px;
    }
    .tbm-homepage .tbm-home-services .tbm-service-item,
    .tbm-homepage .tbm-home-services .tbm-service-item:nth-child(odd),
    .tbm-homepage .tbm-home-services .tbm-service-item:nth-child(even) {
        min-height: 210px;
    }
}

@media (max-width: 600px) {
    .tbm-homepage .tbm-home-services .tbm-service-grid {
        gap: 12px;
    }
    .tbm-homepage .tbm-home-services .tbm-service-item,
    .tbm-homepage .tbm-home-services .tbm-service-item:nth-child(odd),
    .tbm-homepage .tbm-home-services .tbm-service-item:nth-child(even) {
        min-height: 185px;
        padding: 18px;
    }
    .tbm-homepage .tbm-home-services .tbm-service-image {
        inset: 7% 4% auto auto;
        width: 58%;
        height: 67%;
    }
    .tbm-homepage .tbm-home-services .tbm-service-item h3 {
        left: 17px;
        right: 50px;
        bottom: 16px;
        font-size: clamp(21px, 6vw, 27px);
    }
    .tbm-homepage .tbm-home-services .tbm-service-item .tbm-service-arrow {
        right: 15px;
        bottom: 15px;
    }
}


/* TBM – Leistungskacheln deutlicher trennen und Hover verstärken */
.tbm-homepage .tbm-home-services .tbm-service-grid {
    column-gap: 24px;
    row-gap: 24px;
    max-width: 1200px;
}

.tbm-homepage .tbm-home-services .tbm-service-item,
.tbm-homepage .tbm-home-services .tbm-service-item:nth-child(odd),
.tbm-homepage .tbm-home-services .tbm-service-item:nth-child(even) {
    border: 1px solid #b9c2cf;
    border-radius: 7px;
    box-shadow: 0 4px 12px rgba(16, 28, 54, .13);
    transform: translateY(0) scale(1);
    transition:
        transform .28s cubic-bezier(.2,.8,.2,1),
        box-shadow .28s ease,
        border-color .28s ease,
        background-color .28s ease;
}

.tbm-homepage .tbm-home-services .tbm-service-item:hover,
.tbm-homepage .tbm-home-services .tbm-service-item:focus-visible {
    border-color: #d2df00;
    background: #f7f8fa;
    box-shadow: 0 13px 28px rgba(16, 28, 54, .22);
    transform: translateY(-6px) scale(1.025);
    z-index: 3;
}

.tbm-homepage .tbm-home-services .tbm-service-item:hover .tbm-service-image,
.tbm-homepage .tbm-home-services .tbm-service-item:focus-visible .tbm-service-image {
    transform: scale(1.10);
}

.tbm-homepage .tbm-home-services .tbm-service-item:hover h3,
.tbm-homepage .tbm-home-services .tbm-service-item:focus-visible h3 {
    color: #b7c500;
}

.tbm-homepage .tbm-home-services .tbm-service-item:hover .tbm-service-arrow,
.tbm-homepage .tbm-home-services .tbm-service-item:focus-visible .tbm-service-arrow {
    transform: translate(6px, -6px);
}

@media (max-width: 900px) {
    .tbm-homepage .tbm-home-services .tbm-service-grid {
        column-gap: 16px;
        row-gap: 16px;
    }
    .tbm-homepage .tbm-home-services .tbm-service-item:hover,
    .tbm-homepage .tbm-home-services .tbm-service-item:focus-visible {
        transform: translateY(-4px) scale(1.015);
    }
}

@media (max-width: 600px) {
    .tbm-homepage .tbm-home-services .tbm-service-grid {
        gap: 14px;
    }
    .tbm-homepage .tbm-home-services .tbm-service-item:hover,
    .tbm-homepage .tbm-home-services .tbm-service-item:focus-visible {
        transform: translateY(-3px) scale(1.01);
    }
}


/* TBM – Korrektur Referenzheadline und finale Leistungskachel-Proportionen */
.tbm-homepage .tbm-reference-heading h2 {
    font-size: clamp(60px, 8vw, 118px);
    line-height: .82;
    letter-spacing: -.075em;
}
.tbm-homepage .tbm-reference-heading h2 span {
    display: block;
    margin: 0;
    color: #fff !important;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    line-height: inherit;
    vertical-align: baseline;
}

.tbm-homepage .tbm-home-services .tbm-service-grid {
    max-width: 1080px;
}

.tbm-homepage .tbm-home-services .tbm-service-image {
    width: min(60.5%, 270px);
    height: 75%;
}

.tbm-homepage .tbm-home-services .tbm-service-item h3 {
    color: #101c36;
    text-shadow: none;
}

@media (max-width: 900px) {
    .tbm-homepage .tbm-home-services .tbm-service-grid {
        max-width: 684px;
    }
    .tbm-homepage .tbm-home-services .tbm-service-image {
        width: 66.5%;
    }
}

@media (max-width: 600px) {
    .tbm-homepage .tbm-reference-heading h2 {
        font-size: clamp(56px, 15vw, 78px);
        line-height: .86;
    }
    .tbm-homepage .tbm-home-services .tbm-service-grid {
        max-width: 100%;
    }
    .tbm-homepage .tbm-home-services .tbm-service-image {
        width: 64%;
        height: 74%;
    }
}


/* TBM TYPOGRAFIE – lokale Inter-Schrift für Mengentext */
.tbm-homepage,
.tbm-homepage p,
.tbm-homepage li,
.tbm-homepage a,
.tbm-homepage button,
.tbm-homepage input,
.tbm-homepage textarea,
.tbm-homepage label,
.tbm-homepage small,
.tbm-homepage .tbm-eyebrow,
.tbm-homepage .tbm-service-item > span,
.tbm-homepage .tbm-project-caption span {
    font-family: 'Inter', Arial, Helvetica, sans-serif;
}

/* Die markanten TBM-Überschriften behalten bewusst ihre bisherige Schrift. */
.tbm-homepage h1,
.tbm-homepage h2,
.tbm-homepage h3,
.tbm-homepage h4,
.tbm-homepage h5,
.tbm-homepage h6 {
    font-family: Arial, Helvetica, sans-serif;
}

/* TBM TYPOGRAFIE – Slideshow-Beschriftungen behalten die kräftige bisherige Schrift */
.tbm-homepage .tbm-project-caption,
.tbm-homepage .tbm-project-caption span,
.tbm-homepage .tbm-project-caption h3,
.tbm-homepage .tbm-hero-slide-title,
.tbm-homepage .tbm-hero-photo-label,
.tbm-homepage .tbm-hero-photo-label strong {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 900;
}

/* =========================================================
   TBM – EINHEITLICHE LEISTUNGS-UNTERSEITEN
   Einheitliche Typografie: Arial für Headlines, Inter für Mengentext.
   Responsive Grundstruktur für Folienbeschriftung und weitere Unterseiten.
========================================================= */
.tbm-service-page {
  --tbm-subpage-navy: #101C36;
  --tbm-subpage-blue: #2457FF;
  --tbm-subpage-lime: #D9FF42;
  --tbm-subpage-ink: #171717;
  --tbm-subpage-muted: #4C5668;
  --tbm-subpage-light: #F0F1F3;
  display: block;
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: var(--tbm-subpage-ink);
  background: #fff;
  font-family: var(--tbm-font, 'Inter', Arial, Helvetica, sans-serif);
  overflow-x: clip;
}
.tbm-service-page *,
.tbm-service-page *::before,
.tbm-service-page *::after { box-sizing: border-box; }
.tbm-service-page img { display: block; max-width: 100%; height: auto; }
.tbm-service-page h1,
.tbm-service-page h2,
.tbm-service-page h3 {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.065em;
  line-height: .94;
}
.tbm-service-page p,
.tbm-service-page a,
.tbm-service-page .tbm-eyebrow { font-family: var(--tbm-font, 'Inter', Arial, Helvetica, sans-serif); }
.tbm-service-page .tbm-subpage-wrap {
  width: min(1160px, calc(100% - 2 * clamp(22px, 5vw, 80px)));
  max-width: 1160px;
  min-width: 0;
  margin-right: auto;
  margin-left: auto;
}
.tbm-service-page .tbm-eyebrow {
  margin: 0 0 22px;
  color: var(--tbm-subpage-blue);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* Hero */
.tbm-service-page .tbm-subpage-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  width: 100%;
  max-width: none;
  min-width: 0;
  min-height: 570px;
  margin: 0;
  padding: clamp(65px, 8vw, 115px) max(5%, calc((100% - 1440px) / 2)) 100px;
  color: #fff;
  background: var(--tbm-subpage-navy);
}
.tbm-service-page .tbm-subpage-hero-copy { min-width: 0; max-width: 680px; }
.tbm-service-page .tbm-subpage-hero h1 {
  max-width: 100%;
  margin: 0 0 28px;
  color: #fff;
  font-size: clamp(42px, 5.8vw, 76px);
  line-height: .92;
  letter-spacing: -.075em;
  overflow-wrap: normal;
  text-wrap: balance;
}
.tbm-service-page .tbm-subpage-hero h1 span { color: var(--tbm-subpage-lime); }
.tbm-service-page .tbm-subpage-lead {
  max-width: 590px;
  margin: 28px 0 32px;
  color: #E1E7F1;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.65;
  font-weight: 400;
}
.tbm-service-page .tbm-subpage-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 58px;
  max-width: 100%;
  padding: 16px 24px;
  color: var(--tbm-subpage-navy) !important;
  background: var(--tbm-subpage-lime);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: .08em;
  text-decoration: none !important;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.tbm-service-page .tbm-subpage-button:hover,
.tbm-service-page .tbm-subpage-button:focus-visible {
  color: #fff !important;
  background: var(--tbm-subpage-blue);
  transform: translateY(-4px);
}
.tbm-service-page .tbm-subpage-hero-image {
  position: relative;
  min-width: 0;
  max-width: 100%;
  padding: 14px;
  background: var(--tbm-subpage-lime);
  transform: rotate(1deg);
}
.tbm-service-page .tbm-subpage-hero-image img {
  width: 100%;
  height: 340px;
  max-width: 100%;
  object-fit: cover;
}
.tbm-service-page .tbm-image-tag {
  display: block;
  padding: 10px 3px 0;
  color: var(--tbm-subpage-navy);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: .12em;
}
.tbm-service-page .tbm-subpage-hero-bottom {
  position: absolute;
  right: 5%;
  bottom: 24px;
  left: 5%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.75);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .12em;
}

/* Intro */
.tbm-service-page .tbm-subpage-intro { padding-top: 100px; padding-bottom: 110px; }
.tbm-service-page .tbm-subpage-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}
.tbm-service-page .tbm-subpage-intro h2,
.tbm-service-page .tbm-subpage-section-head h2,
.tbm-service-page .tbm-subpage-vehicle h2,
.tbm-service-page .tbm-subpage-fleet h2,
.tbm-service-page .tbm-subpage-process > h2,
.tbm-service-page .tbm-subpage-contact h2 {
  margin: 0 0 22px;
  color: var(--tbm-subpage-navy);
  font-size: clamp(38px, 5vw, 64px);
  line-height: .96;
  letter-spacing: -.07em;
}
.tbm-service-page .tbm-subpage-intro h2 span,
.tbm-service-page .tbm-subpage-section-head h2 span,
.tbm-service-page .tbm-subpage-vehicle h2 span,
.tbm-service-page .tbm-subpage-fleet h2 span,
.tbm-service-page .tbm-subpage-contact h2 span { color: var(--tbm-subpage-blue); }
.tbm-service-page .tbm-subpage-intro-grid > div { min-width: 0; max-width: 650px; }
.tbm-service-page .tbm-subpage-intro-grid p,
.tbm-service-page .tbm-subpage-vehicle-copy p,
.tbm-service-page .tbm-subpage-fleet-inner > div p,
.tbm-service-page .tbm-subpage-contact > div > p:not(.tbm-eyebrow) {
  color: var(--tbm-subpage-muted);
  font-size: 17px;
  line-height: 1.75;
}
.tbm-service-page .tbm-subpage-intro-grid p:last-child,
.tbm-service-page .tbm-subpage-vehicle-copy p:last-child,
.tbm-service-page .tbm-subpage-fleet-inner > div p:last-child { margin-bottom: 0; }

/* Leistungen */
.tbm-service-page .tbm-subpage-services { padding: 100px 0 110px; color: #fff; background: var(--tbm-subpage-navy); }
.tbm-service-page .tbm-subpage-section-head { margin-bottom: 45px; }
.tbm-service-page .tbm-subpage-section-head h2 { color: #fff; }
.tbm-service-page .tbm-subpage-section-head h2 span { color: var(--tbm-subpage-lime); }
.tbm-service-page .tbm-subpage-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.tbm-service-page .tbm-subpage-card {
  position: relative;
  min-width: 0;
  min-height: 255px;
  padding: 32px;
  background: #1B2B49;
  border: 1px solid rgba(255,255,255,.13);
}
.tbm-service-page .tbm-subpage-card .tbm-number {
  display: inline-block;
  margin-bottom: 28px;
  padding: 5px 9px;
  color: var(--tbm-subpage-navy);
  background: var(--tbm-subpage-lime);
  font-size: 13px;
  font-weight: 900;
}
.tbm-service-page .tbm-subpage-card h3 { margin: 0 0 14px; color: #fff; font-size: clamp(24px, 3vw, 34px); }
.tbm-service-page .tbm-subpage-card p { max-width: 620px; margin: 0; color: #D7DFEC; font-size: 15px; line-height: 1.7; }

/* Fahrzeugbereich */
.tbm-service-page .tbm-subpage-vehicle {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(28px, 7vw, 90px);
  align-items: center;
  padding-top: 110px;
  padding-bottom: 110px;
}
.tbm-service-page .tbm-subpage-vehicle-copy { min-width: 0; }
.tbm-service-page .tbm-subpage-vehicle-image { min-width: 0; padding: 13px; background: var(--tbm-subpage-lime); transform: rotate(-1deg); }
.tbm-service-page .tbm-subpage-vehicle-image img { width: 100%; height: 390px; object-fit: cover; }
.tbm-service-page .tbm-subpage-text-link { display: inline-block; margin-top: 10px; color: var(--tbm-subpage-blue); font-weight: 900; text-decoration: none; }

/* Flotte */
.tbm-service-page .tbm-subpage-fleet { padding: 95px 0; color: #fff; background: var(--tbm-subpage-navy); }
.tbm-service-page .tbm-subpage-fleet-inner { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 8%; align-items: center; }
.tbm-service-page .tbm-subpage-fleet h2 { color: #fff; }
.tbm-service-page .tbm-subpage-fleet h2 span { color: var(--tbm-subpage-lime); }
.tbm-service-page .tbm-subpage-fleet-inner > div p { color: #D5DDEC; }

/* Ablauf */
.tbm-service-page .tbm-subpage-process { padding-top: 100px; padding-bottom: 110px; }
.tbm-service-page .tbm-subpage-process-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; margin-top: 42px; }
.tbm-service-page .tbm-subpage-process-grid > div { min-width: 0; padding: 25px; border-top: 5px solid var(--tbm-subpage-lime); background: var(--tbm-subpage-light); }
.tbm-service-page .tbm-subpage-process-grid span { color: var(--tbm-subpage-blue); font-size: 13px; font-weight: 900; }
.tbm-service-page .tbm-subpage-process-grid h3 { margin: 20px 0 10px; color: var(--tbm-subpage-navy); font-size: 25px; }
.tbm-service-page .tbm-subpage-process-grid p { margin: 0; color: var(--tbm-subpage-muted); font-size: 14px; line-height: 1.65; }

/* Kontaktabschluss */
.tbm-service-page .tbm-subpage-contact { padding: 100px 0 110px; color: #fff; background: var(--tbm-subpage-navy); }
.tbm-service-page .tbm-subpage-contact h2 { color: #fff; font-size: clamp(48px, 7vw, 82px); }
.tbm-service-page .tbm-subpage-contact h2 span { color: var(--tbm-subpage-lime); }
.tbm-service-page .tbm-subpage-contact > div > p:not(.tbm-eyebrow) { max-width: 650px; color: #D7DFEC; margin: 28px 0 30px; }
.tbm-service-page .tbm-subpage-contact .tbm-eyebrow { color: var(--tbm-subpage-lime); }

/* Tablet */
@media (max-width: 900px) {
  .tbm-service-page .tbm-subpage-hero { grid-template-columns: minmax(0,1fr) minmax(0,.9fr); column-gap: 28px; }
  .tbm-service-page .tbm-subpage-hero h1 { font-size: clamp(34px, 5vw, 48px); }
  .tbm-service-page .tbm-subpage-intro-grid,
  .tbm-service-page .tbm-subpage-vehicle,
  .tbm-service-page .tbm-subpage-fleet-inner { gap: 28px; }
}

/* Smartphone */
@media (max-width: 700px) {
  .tbm-service-page { width: 100%; max-width: 100%; overflow-x: clip; }
  .tbm-service-page .tbm-subpage-hero {
    grid-template-columns: minmax(0,1fr);
    gap: 30px;
    width: 100%;
    min-height: 0;
    padding: 54px 6% 86px;
  }
  .tbm-service-page .tbm-subpage-hero-copy,
  .tbm-service-page .tbm-subpage-hero-image { width: 100%; max-width: 100%; min-width: 0; }
  .tbm-service-page .tbm-subpage-hero h1 {
    max-width: 100%;
    margin-bottom: 24px;
    font-size: clamp(27px, 7.2vw, 36px);
    line-height: .98;
    letter-spacing: -.065em;
    overflow-wrap: anywhere;
  }
  .tbm-service-page .tbm-subpage-lead { max-width: 100%; margin: 22px 0 26px; font-size: 16px; line-height: 1.6; }
  .tbm-service-page .tbm-subpage-hero-image { padding: 10px; }
  .tbm-service-page .tbm-subpage-hero-image img { width: 100%; height: auto; aspect-ratio: 5 / 4; }
  .tbm-service-page .tbm-subpage-hero-bottom { right: 6%; left: 6%; bottom: 18px; gap: 6px 12px; font-size: 8px; letter-spacing: .08em; }
  .tbm-service-page .tbm-subpage-wrap { width: 88%; max-width: 100%; }
  .tbm-service-page .tbm-subpage-intro,
  .tbm-service-page .tbm-subpage-vehicle,
  .tbm-service-page .tbm-subpage-process { padding-top: 68px; padding-bottom: 72px; }
  .tbm-service-page .tbm-subpage-intro-grid,
  .tbm-service-page .tbm-subpage-vehicle,
  .tbm-service-page .tbm-subpage-fleet-inner { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .tbm-service-page .tbm-subpage-intro h2,
  .tbm-service-page .tbm-subpage-section-head h2,
  .tbm-service-page .tbm-subpage-process > h2,
  .tbm-service-page .tbm-subpage-vehicle h2,
  .tbm-service-page .tbm-subpage-fleet h2,
  .tbm-service-page .tbm-subpage-contact h2 { font-size: clamp(32px, 8vw, 42px); line-height: .98; }
  .tbm-service-page .tbm-subpage-intro-grid p,
  .tbm-service-page .tbm-subpage-vehicle-copy p,
  .tbm-service-page .tbm-subpage-fleet-inner > div p,
  .tbm-service-page .tbm-subpage-contact > div > p:not(.tbm-eyebrow) { font-size: 16px; }
  .tbm-service-page .tbm-subpage-services,
  .tbm-service-page .tbm-subpage-contact { padding: 68px 0 76px; }
  .tbm-service-page .tbm-subpage-section-head { margin-bottom: 28px; }
  .tbm-service-page .tbm-subpage-card-grid,
  .tbm-service-page .tbm-subpage-process-grid { grid-template-columns: minmax(0,1fr); gap: 14px; }
  .tbm-service-page .tbm-subpage-card { min-height: 0; padding: 24px; }
  .tbm-service-page .tbm-subpage-card h3 { font-size: 24px; }
  .tbm-service-page .tbm-subpage-vehicle-image { padding: 10px; }
  .tbm-service-page .tbm-subpage-vehicle-image img { height: auto; aspect-ratio: 4 / 3; }
  .tbm-service-page .tbm-subpage-fleet { padding: 68px 0; }
  .tbm-service-page .tbm-subpage-process-grid { margin-top: 28px; }
}

@media (max-width: 380px) {
  .tbm-service-page .tbm-subpage-hero { padding-right: 5%; padding-left: 5%; }
  .tbm-service-page .tbm-subpage-hero h1 { font-size: 27px; }
  .tbm-service-page .tbm-subpage-wrap { width: 90%; }
  .tbm-service-page .tbm-subpage-hero-bottom { right: 5%; left: 5%; }
}



/* TBM Folienbeschriftung – gewünschte Großbuchstaben und gezielte Worttrennungen.
   Gilt für alle Bildschirmgrößen; bestehende Farben, Schriften und Layouts bleiben unverändert. */
.tbm-service-page .tbm-subpage-card h3,
.tbm-service-page .tbm-subpage-process-grid h3 {
  text-transform: uppercase !important;
}


/* =========================================================
   TBM – REFERENZEN UND PROJEKT-DETAILSEITEN
   Integrierte Zusatzregeln; bestehende Startseiten-CSS bleibt erhalten.
========================================================= */
/* TBM PORTFOLIO – Zusatzstyles für page-referenzen.php und Projekt-Detailseiten */
.tbm-portfolio-page .tbm-subpage-hero,
.tbm-case-page .tbm-subpage-hero { display:grid; grid-template-columns:1.02fr .98fr; gap:clamp(28px,5vw,70px); align-items:center; position:relative; padding:clamp(48px,7vw,88px) 5% 76px; background:#101d36; color:#fff; overflow:hidden; }
.tbm-portfolio-page .tbm-subpage-hero-copy,
.tbm-case-page .tbm-subpage-hero-copy { min-width:0; }
.tbm-portfolio-page .tbm-subpage-hero h1,
.tbm-case-page .tbm-subpage-hero h1 { color:#fff; font-size:clamp(42px,6.8vw,82px); line-height:1.02; margin:18px 0 22px; }
.tbm-portfolio-page .tbm-subpage-hero h1 span,
.tbm-case-page .tbm-subpage-hero h1 span { color:#8eb7ef; }
.tbm-portfolio-page .tbm-subpage-hero .tbm-eyebrow,
.tbm-case-page .tbm-subpage-hero .tbm-eyebrow { color:#a9c4e8; }
.tbm-portfolio-page .tbm-subpage-lead,
.tbm-case-page .tbm-subpage-lead { max-width:620px; color:#d5ddec; font-size:clamp(17px,1.8vw,21px); }
.tbm-portfolio-page .tbm-subpage-hero-image,
.tbm-case-page .tbm-subpage-hero-image { min-height:300px; height:clamp(300px,38vw,500px); position:relative; overflow:hidden; background:#263957; }
.tbm-portfolio-page .tbm-subpage-hero-image img,
.tbm-case-page .tbm-subpage-hero-image img { width:100%; height:100%; object-fit:cover; display:block; }
.tbm-portfolio-page .tbm-image-tag { position:absolute; bottom:14px; left:14px; color:#fff; background:rgba(16,29,54,.82); padding:9px 12px; font-size:10px; letter-spacing:.12em; font-weight:800; }
.tbm-portfolio-page .tbm-subpage-hero-bottom,
.tbm-case-page .tbm-subpage-hero-bottom { position:absolute; bottom:20px; left:5%; right:5%; display:flex; justify-content:space-between; gap:20px; color:#b9c9df; font-size:10px; font-weight:800; letter-spacing:.14em; }
.tbm-portfolio-page .tbm-subpage-button,
.tbm-case-page .tbm-subpage-button { display:inline-flex; gap:14px; align-items:center; margin-top:18px; padding:15px 20px; background:#fff; color:#101d36; text-decoration:none; font-size:11px; font-weight:900; letter-spacing:.08em; }
.tbm-portfolio-intro,.tbm-case-copy { padding:clamp(60px,8vw,100px) 0; }
.tbm-portfolio-intro .tbm-subpage-intro-grid,
.tbm-case-copy .tbm-subpage-intro-grid { display:grid; grid-template-columns:.9fr 1.1fr; gap:clamp(28px,6vw,90px); align-items:start; margin-top:20px; }
.tbm-portfolio-intro h2,.tbm-case-copy h2,.tbm-portfolio-section-head h2,.tbm-portfolio-client-heading h2 { font-size:clamp(34px,5vw,60px); margin:0; }
.tbm-portfolio-intro h2 span,.tbm-case-copy h2 span,.tbm-portfolio-section-head h2 span,.tbm-portfolio-client-heading h2 span { color:#315d98; }
.tbm-portfolio-intro p,.tbm-case-copy p { color:#4d586a; }
.tbm-portfolio-projects { padding:10px 0 clamp(70px,9vw,110px); }
.tbm-portfolio-section-head { display:flex; justify-content:space-between; align-items:end; gap:35px; margin-bottom:34px; }
.tbm-portfolio-section-head > p { max-width:430px; color:#596477; margin:0; }
.tbm-portfolio-section-head h2 { margin-top:12px; }
.tbm-portfolio-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:28px; }
.tbm-portfolio-card { background:#f1f3f6; min-width:0; }
.tbm-portfolio-card-link { display:block; height:100%; color:#172033!important; text-decoration:none!important; }
.tbm-portfolio-card-image { height:clamp(230px,30vw,390px); position:relative; overflow:hidden; background:#263957; }
.tbm-portfolio-card-image img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .35s ease; }
.tbm-portfolio-card-link:hover .tbm-portfolio-card-image img { transform:scale(1.035); }
.tbm-portfolio-card-image > span { position:absolute; top:14px; left:14px; background:#101d36; color:#fff; padding:8px 11px; font-size:11px; font-weight:800; }
.tbm-portfolio-card-copy { padding:24px 26px 28px; }
.tbm-portfolio-card-copy .tbm-eyebrow { color:#526d91; margin-bottom:8px; }
.tbm-portfolio-card-copy h3 { font-size:clamp(23px,3vw,32px); margin:0 0 12px; }
.tbm-portfolio-card-copy > p:not(.tbm-eyebrow) { color:#596477; font-size:14px; }
.tbm-portfolio-card-copy strong { display:inline-block; margin-top:10px; font-size:11px; letter-spacing:.09em; }
.tbm-portfolio-editor-note,.tbm-portfolio-client-footnote { margin-top:20px; color:#687386; font-size:12px; }
.tbm-portfolio-more { background:#101d36; color:#fff; padding:clamp(65px,8vw,100px) 0; }
.tbm-portfolio-more .tbm-portfolio-section-head > p { color:#d5ddec; }
.tbm-portfolio-more .tbm-portfolio-section-head h2 span { color:#8eb7ef; }
.tbm-portfolio-more-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-top:40px; }
.tbm-portfolio-more-grid > div { border-top:1px solid rgba(255,255,255,.3); padding:20px 4px 0; }
.tbm-portfolio-more-grid span { color:#8eb7ef; font-size:10px; letter-spacing:.13em; font-weight:800; }
.tbm-portfolio-more-grid h3 { color:#fff; font-size:19px; margin:15px 0 8px; }
.tbm-portfolio-more-grid p { color:#c6d1e0; font-size:13px; }
.tbm-portfolio-clients { padding:clamp(65px,8vw,100px) 0; }
.tbm-portfolio-client-heading { display:grid; grid-template-columns:.9fr 1.1fr; gap:40px; align-items:end; margin:18px 0 35px; }
.tbm-portfolio-client-heading p { max-width:520px; color:#596477; }
.tbm-portfolio-client-list { list-style:none; padding:0; margin:0; display:grid; grid-template-columns:repeat(3,1fr); border-top:1px solid #cbd2dc; }
.tbm-portfolio-client-list li { padding:20px 10px 20px 0; border-bottom:1px solid #cbd2dc; font-size:clamp(16px,2vw,22px); font-weight:800; }
.tbm-portfolio-contact { margin-top:0; }
.tbm-case-gallery { padding-bottom:clamp(55px,8vw,95px); }
.tbm-case-gallery img { width:100%; max-height:680px; object-fit:cover; display:block; }
.tbm-case-facts { background:#f1f3f6; padding:35px 0; }
.tbm-case-facts .tbm-subpage-wrap { display:grid; grid-template-columns:repeat(3,1fr); gap:25px; }
.tbm-case-facts span { display:block; color:#667085; font-size:10px; letter-spacing:.13em; font-weight:800; margin-bottom:8px; }
.tbm-case-facts strong { font-size:16px; }
.tbm-case-page .tbm-subpage-contact { margin-top:0; }
.tbm-case-page .tbm-subpage-contact a:not(.tbm-subpage-button) { color:#fff; }
@media(max-width:760px) {
 .tbm-portfolio-page .tbm-subpage-hero,.tbm-case-page .tbm-subpage-hero { grid-template-columns:1fr; padding:48px 6% 72px; }
 .tbm-portfolio-page .tbm-subpage-hero-image,.tbm-case-page .tbm-subpage-hero-image { height:300px; min-height:240px; }
 .tbm-portfolio-intro .tbm-subpage-intro-grid,.tbm-case-copy .tbm-subpage-intro-grid,.tbm-portfolio-client-heading { grid-template-columns:1fr; gap:18px; }
 .tbm-portfolio-section-head { display:block; }
 .tbm-portfolio-section-head > p { margin-top:18px; }
 .tbm-portfolio-grid { grid-template-columns:1fr; }
 .tbm-portfolio-more-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .tbm-portfolio-client-list { grid-template-columns:repeat(2,1fr); }
 .tbm-case-facts .tbm-subpage-wrap { grid-template-columns:1fr; gap:18px; }
 .tbm-portfolio-page .tbm-subpage-hero-bottom,.tbm-case-page .tbm-subpage-hero-bottom { font-size:9px; }
}
@media(max-width:460px) { .tbm-portfolio-more-grid { grid-template-columns:1fr; } }


/* =========================================================
   REFERENZEN – Layout an den Referenzbereich der Startseite angeglichen
   Die bisherigen Detailseiten-Styles bleiben davon unberührt.
========================================================= */
.tbm-portfolio-page .tbm-portfolio-references {
    padding: 110px max(6vw, calc((100vw - 1440px) / 2)) 95px;
}
.tbm-portfolio-page .tbm-reference-heading {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    align-items: end;
    gap: 20px 8%;
    margin: 0 0 55px;
}
.tbm-portfolio-page .tbm-reference-heading .tbm-eyebrow {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--tbm-lime, #d9ff42);
}
.tbm-portfolio-page .tbm-reference-heading h1,
.tbm-portfolio-page .tbm-reference-heading h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(60px, 8vw, 118px);
    line-height: .82;
    letter-spacing: -.075em;
    font-weight: 900;
}
.tbm-portfolio-page .tbm-reference-heading h1 span,
.tbm-portfolio-page .tbm-reference-heading h2 span { color: var(--tbm-lime, #d9ff42); }
.tbm-portfolio-page .tbm-reference-heading > p:last-child {
    max-width: 470px;
    margin: 0 0 5px;
    color: rgba(255,255,255,.78);
}
.tbm-portfolio-page .tbm-reference-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 18px;
}
.tbm-portfolio-page .tbm-reference-card {
    position: relative;
    isolation: isolate;
    min-width: 0;
    min-height: 390px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    text-decoration: none;
    transition: transform .25s ease;
}
.tbm-portfolio-page .tbm-reference-card:hover {
    transform: translateY(-8px) rotate(-1deg);
}
.tbm-portfolio-page .tbm-reference-image {
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}
.tbm-portfolio-page .tbm-reference-card::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(180deg,rgba(16,28,54,.08),rgba(16,28,54,.88));
    pointer-events: none;
}
.tbm-portfolio-page .tbm-reference-number,
.tbm-portfolio-page .tbm-reference-card strong,
.tbm-portfolio-page .tbm-reference-link { position: relative; z-index: 1; }
.tbm-portfolio-page .tbm-reference-number {
    align-self: flex-start;
    display: inline-flex;
    width: fit-content;
    padding: 8px 12px;
    background: #d9ff42;
    color: #101c36;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: .1em;
}
.tbm-portfolio-page .tbm-reference-card strong {
    display: block;
    margin: 24px 0;
    color: #fff;
    font-size: clamp(32px,4vw,58px);
    line-height: .92;
    letter-spacing: -.055em;
    overflow-wrap: anywhere;
}
.tbm-portfolio-page .tbm-reference-link {
    align-self: flex-start;
    display: inline-block;
    width: fit-content;
    padding: 7px 10px;
    background: #d9ff42;
    color: #101c36;
    font-size: 10px;
    line-height: 1.25;
    font-weight: 900;
    letter-spacing: .08em;
}
.tbm-portfolio-page .tbm-portfolio-intro {
    padding: 100px max(6vw,calc((100vw - 1440px)/2));
}
.tbm-portfolio-page .tbm-portfolio-intro h2,
.tbm-portfolio-page .tbm-portfolio-clients h2 {
    color: #101c36;
    font-size: clamp(38px,5vw,68px);
    line-height: .95;
    letter-spacing: -.055em;
    margin: 0;
}
.tbm-portfolio-page .tbm-portfolio-intro h2 span,
.tbm-portfolio-page .tbm-portfolio-clients h2 span { color: #2457ff; }
.tbm-portfolio-page .tbm-portfolio-more {
    padding: 100px max(6vw,calc((100vw - 1440px)/2));
    background: #101c36;
    color: #fff;
}
.tbm-portfolio-page .tbm-portfolio-section-heading {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 20px 8%;
    align-items: end;
    margin-bottom: 45px;
}
.tbm-portfolio-page .tbm-portfolio-section-heading .tbm-eyebrow {
    grid-column: 1 / -1;
    margin: 0;
    color: #d9ff42;
}
.tbm-portfolio-page .tbm-portfolio-section-heading h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(46px,6vw,82px);
    line-height: .88;
    letter-spacing: -.065em;
}
.tbm-portfolio-page .tbm-portfolio-section-heading h2 span { color: #d9ff42; }
.tbm-portfolio-page .tbm-portfolio-section-heading > p:last-child {
    max-width: 450px;
    margin: 0 0 5px;
    color: rgba(255,255,255,.78);
}
.tbm-portfolio-page .tbm-portfolio-more-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 18px;
    margin: 0;
}
.tbm-portfolio-page .tbm-portfolio-more-grid > div {
    min-width: 0;
    padding: 20px 4px 0;
    border-top: 1px solid rgba(255,255,255,.35);
}
.tbm-portfolio-page .tbm-portfolio-more-grid span {
    color: #d9ff42;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
}
.tbm-portfolio-page .tbm-portfolio-more-grid h3 {
    margin: 15px 0 8px;
    color: #fff;
    font-size: 19px;
}
.tbm-portfolio-page .tbm-portfolio-more-grid p { color: rgba(255,255,255,.72); font-size: 13px; }
.tbm-portfolio-page .tbm-portfolio-clients {
    padding: 100px max(6vw,calc((100vw - 1440px)/2));
}
.tbm-portfolio-page .tbm-portfolio-client-list {
    list-style: none;
    padding: 0;
    margin: 25px 0 0;
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    border-top: 1px solid rgba(16,28,54,.2);
}
.tbm-portfolio-page .tbm-portfolio-client-list li {
    padding: 13px 10px 13px 0;
    border-bottom: 1px solid rgba(16,28,54,.2);
    color: #101c36;
    font-size: 17px;
    font-weight: 800;
}
.tbm-portfolio-page .tbm-portfolio-client-footnote { color: #596477; font-size: 12px; }
.tbm-portfolio-page .tbm-portfolio-contact {
    padding-top: 90px;
    padding-bottom: 95px;
}
.tbm-portfolio-page .tbm-portfolio-contact .tbm-reference-heading {
    margin-bottom: 30px;
}
@media(max-width:900px) {
    .tbm-portfolio-page .tbm-portfolio-references,
    .tbm-portfolio-page .tbm-portfolio-intro,
    .tbm-portfolio-page .tbm-portfolio-more,
    .tbm-portfolio-page .tbm-portfolio-clients { padding-left:5vw; padding-right:5vw; }
    .tbm-portfolio-page .tbm-reference-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .tbm-portfolio-page .tbm-portfolio-more-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:700px) {
    .tbm-portfolio-page .tbm-portfolio-references { padding:76px 22px 82px; }
    .tbm-portfolio-page .tbm-reference-heading { grid-template-columns:1fr; gap:18px; margin-bottom:30px; }
    .tbm-portfolio-page .tbm-reference-heading h1,
    .tbm-portfolio-page .tbm-reference-heading h2 { font-size:clamp(56px,15vw,78px); line-height:.86; }
    .tbm-portfolio-page .tbm-reference-heading > p:last-child { max-width:none; font-size:15px; line-height:1.6; }
    .tbm-portfolio-page .tbm-reference-grid { grid-template-columns:1fr; gap:13px; }
    .tbm-portfolio-page .tbm-reference-card { min-height:310px; padding:21px; }
    .tbm-portfolio-page .tbm-reference-card strong { font-size:clamp(42px,12vw,58px); }
    .tbm-portfolio-page .tbm-portfolio-intro,
    .tbm-portfolio-page .tbm-portfolio-more,
    .tbm-portfolio-page .tbm-portfolio-clients { padding:72px 22px 78px; }
    .tbm-portfolio-page .tbm-portfolio-section-heading { grid-template-columns:1fr; gap:18px; }
    .tbm-portfolio-page .tbm-portfolio-more-grid { grid-template-columns:1fr; gap:22px; }
    .tbm-portfolio-page .tbm-portfolio-client-list { grid-template-columns:1fr 1fr; }
}


/* KORREKTUR NACH SICHTPRÜFUNG – Überschrift und Innenabstände */
.tbm-homepage.tbm-portfolio-page .tbm-portfolio-references {
    padding: 110px max(6vw, calc((100vw - 1440px) / 2)) 95px !important;
}
.tbm-homepage.tbm-portfolio-page .tbm-reference-heading h1 {
    font-size: clamp(76px, 9.2vw, 138px) !important;
    line-height: .82 !important;
    letter-spacing: -.075em !important;
    font-weight: 900 !important;
    max-width: 760px;
}
.tbm-homepage.tbm-portfolio-page .tbm-reference-heading > p:last-child {
    max-width: 510px;
    /* Schriftgröße, Zeilenhöhe und Schriftfamilie wie auf der Startseite erben */
}
.tbm-homepage.tbm-portfolio-page .tbm-portfolio-more {
    display: block !important;
    width: 100%;
    box-sizing: border-box;
    padding: 100px max(6vw, calc((100vw - 1440px) / 2)) !important;
}
.tbm-homepage.tbm-portfolio-page .tbm-portfolio-more-inner {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}
.tbm-homepage.tbm-portfolio-page .tbm-portfolio-section-heading {
    width: 100%;
    max-width: 100%;
    margin: 0 0 48px;
    padding: 0;
}
.tbm-homepage.tbm-portfolio-page .tbm-portfolio-section-heading h2 {
    font-size: clamp(56px, 7vw, 100px) !important;
    line-height: .86 !important;
    letter-spacing: -.07em !important;
}
.tbm-homepage.tbm-portfolio-page .tbm-portfolio-section-heading > p:last-child {
    max-width: 500px;
    font-size: 18px;
    line-height: 1.55;
}
.tbm-homepage.tbm-portfolio-page .tbm-portfolio-more-grid {
    width: 100%;
    margin: 0;
    gap: 22px;
}
.tbm-homepage.tbm-portfolio-page .tbm-portfolio-clients {
    box-sizing: border-box;
    padding: 100px max(6vw, calc((100vw - 1440px) / 2)) !important;
}
@media(max-width:700px) {
    .tbm-homepage.tbm-portfolio-page .tbm-portfolio-references {
        padding: 76px 22px 82px !important;
    }
    .tbm-homepage.tbm-portfolio-page .tbm-reference-heading h1 {
        font-size: clamp(62px, 15vw, 88px) !important;
    }
    .tbm-homepage.tbm-portfolio-page .tbm-portfolio-more,
    .tbm-homepage.tbm-portfolio-page .tbm-portfolio-clients {
        padding: 72px 22px 78px !important;
    }
}

/* TBM Referenzseite: lesbare Textlinks auf dunklen Flächen */
.tbm-homepage.tbm-portfolio-page .tbm-portfolio-references p a:not(.tbm-button),
.tbm-homepage.tbm-portfolio-page .tbm-portfolio-more a:not(.tbm-button),
.tbm-homepage.tbm-portfolio-page .tbm-portfolio-contact p a:not(.tbm-button) {
    color: #ffffff !important;
    text-decoration: underline !important;
    text-decoration-color: rgba(255, 255, 255, .7) !important;
    text-underline-offset: 3px;
    transition: color .18s ease, text-decoration-color .18s ease;
}

.tbm-homepage.tbm-portfolio-page .tbm-portfolio-references p a:not(.tbm-button):hover,
.tbm-homepage.tbm-portfolio-page .tbm-portfolio-more a:not(.tbm-button):hover,
.tbm-homepage.tbm-portfolio-page .tbm-portfolio-contact p a:not(.tbm-button):hover {
    color: #d9ff42 !important;
    text-decoration-color: #d9ff42 !important;
}

.tbm-homepage.tbm-portfolio-page .tbm-portfolio-references p a:not(.tbm-button):focus-visible,
.tbm-homepage.tbm-portfolio-page .tbm-portfolio-more a:not(.tbm-button):focus-visible,
.tbm-homepage.tbm-portfolio-page .tbm-portfolio-contact p a:not(.tbm-button):focus-visible {
    color: #d9ff42 !important;
    outline: 2px solid #d9ff42;
    outline-offset: 4px;
    text-decoration-color: #d9ff42 !important;
}


/* =========================================================
   TBM REFERENZEN – einheitliche, gut sichtbare Textlink-Hover
   Gilt ausschließlich für die internen Textlinks der Referenzseite.
========================================================= */
.tbm-homepage.tbm-portfolio-page a.tbm-inline-link {
    color: #ffffff !important;
    text-decoration: underline !important;
    text-decoration-thickness: 1px;
    text-decoration-color: rgba(255, 255, 255, .68) !important;
    text-underline-offset: 4px;
    transition: color .18s ease, text-decoration-color .18s ease, text-decoration-thickness .18s ease;
}

.tbm-homepage.tbm-portfolio-page a.tbm-inline-link:hover,
.tbm-homepage.tbm-portfolio-page a.tbm-inline-link:active {
    color: #d9ff42 !important;
    text-decoration-color: #d9ff42 !important;
    text-decoration-thickness: 2px;
}

.tbm-homepage.tbm-portfolio-page a.tbm-inline-link:focus-visible {
    color: #d9ff42 !important;
    outline: 2px solid #d9ff42;
    outline-offset: 4px;
    border-radius: 1px;
    text-decoration-color: #d9ff42 !important;
}

.tbm-homepage.tbm-portfolio-page .tbm-reference-card:focus-visible {
    outline: 3px solid #d9ff42;
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .tbm-homepage.tbm-portfolio-page a.tbm-inline-link {
        transition: none;
    }
}



/* =========================================================
   19. TBM PROJEKT-REFERENZEN – CASE-STUDY-BLAUPAUSE
   Ergänzung zur bestehenden Frontpage-CSS.
   Farbprinzip:
   - Dunkle Flächen: weiße Überschriften, Lime als Akzent
   - Helle Flächen: dunkelblaue Überschriften
   - Kein Royal-Blau für Überschriften
========================================================= */

.tbm-case-blueprint {
  --case-navy: #101C36;
  --case-ink: #101C36;
  --case-lime: #D9FF42;
  --case-paper: #E9E7E2;
  --case-muted: #596477;
  color: var(--case-ink);
  overflow: clip;
}
.tbm-case-blueprint *,
.tbm-case-blueprint *::before,
.tbm-case-blueprint *::after { box-sizing: border-box; }
.tbm-case-blueprint img { display:block; max-width:100%; }
.tbm-case-wrap { width:min(1240px, 90%); margin-inline:auto; }

/* Helle Inhaltsbereiche */
.tbm-case-blueprint h1,
.tbm-case-blueprint h2,
.tbm-case-blueprint h3 {
  color: var(--case-navy);
  font-weight:900;
  letter-spacing:-.045em;
  line-height:.98;
}
.tbm-case-blueprint h2 { font-size:clamp(34px,5.2vw,66px); margin:0; }
.tbm-case-blueprint h2 span,
.tbm-case-blueprint h1 span { color:var(--case-lime); }

/* Hero – wie der Startseiten-Hero: Navy, Weiß, Lime */
.tbm-case-hero {
  background:var(--case-navy);
  color:#fff;
  padding:clamp(52px,7vw,100px) 5% 76px;
  position:relative;
}
.tbm-case-hero-inner {
  width:min(1440px,100%);
  margin:auto;
  display:grid;
  grid-template-columns:.88fr 1.12fr;
  gap:clamp(34px,6vw,90px);
  align-items:center;
}
.tbm-case-eyebrow {
  color:var(--case-lime);
  font-size:11px;
  line-height:1.5;
  letter-spacing:.17em;
  font-weight:900;
  text-transform:uppercase;
  margin:0 0 22px;
}
.tbm-case-eyebrow span { color:rgba(255,255,255,.45); padding:0 5px; }
.tbm-case-hero h1 {
  color:#fff;
  font-size:clamp(46px,7vw,96px);
  margin:0 0 24px;
}
.tbm-case-hero h1 span { color:var(--case-lime); }
.tbm-case-hero-lead {
  color:rgba(255,255,255,.82);
  max-width:560px;
  font-size:clamp(17px,1.7vw,21px);
  line-height:1.65;
  margin:0 0 26px;
}
.tbm-case-hero-media { margin:0; min-width:0; position:relative; }
.tbm-case-hero-media img {
  width:100%;
  height:clamp(330px,43vw,620px);
  object-fit:cover;
  object-position:center;
}
.tbm-case-hero-media figcaption {
  background:var(--case-lime);
  color:var(--case-navy);
  display:inline-block;
  padding:10px 13px;
  font-size:10px;
  font-weight:900;
  letter-spacing:.12em;
}
.tbm-case-button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  min-height:48px;
  padding:14px 20px;
  text-decoration:none!important;
  font-size:11px;
  font-weight:900;
  letter-spacing:.08em;
  transition:transform .2s ease,background .2s ease,color .2s ease;
}
.tbm-case-button:hover { transform:translateY(-2px); }
.tbm-case-button-light { background:#fff; color:var(--case-navy)!important; }
.tbm-case-button-light:hover { background:var(--case-lime); }
.tbm-case-button-lime { background:var(--case-lime); color:var(--case-navy)!important; }
.tbm-case-button-lime:hover { background:#fff; }
.tbm-case-hero-meta {
  position:absolute;
  left:5%;
  right:5%;
  bottom:20px;
  display:flex;
  justify-content:space-between;
  gap:18px;
  color:rgba(255,255,255,.58);
  font-size:9px;
  font-weight:800;
  letter-spacing:.15em;
}

/* Projektintro – helle Fläche und dunkle Headlines */
.tbm-case-intro { padding-block:clamp(70px,9vw,120px); }
.tbm-case-section-label {
  color:var(--case-navy);
  font-size:10px;
  font-weight:900;
  letter-spacing:.16em;
  text-transform:uppercase;
  margin-bottom:26px;
}
.tbm-case-section-label span {
  display:inline-grid;
  place-items:center;
  width:27px;
  height:27px;
  background:var(--case-lime);
  color:var(--case-navy);
  margin-right:10px;
}
.tbm-case-intro-grid {
  display:grid;
  grid-template-columns:.95fr 1.05fr;
  gap:clamp(35px,7vw,110px);
  align-items:start;
}
.tbm-case-intro-grid h2,
.tbm-case-gallery-heading h2,
.tbm-case-services h2 { color:var(--case-navy); }
.tbm-case-intro-grid h2 span,
.tbm-case-gallery-heading h2 span,
.tbm-case-services h2 span { color:var(--case-lime); }
.tbm-case-copytext { max-width:650px; }
.tbm-case-copytext p { color:var(--case-muted); font-size:16px; line-height:1.8; }
.tbm-case-copytext .tbm-case-lead {
  color:var(--case-navy);
  font-size:clamp(19px,2vw,24px);
  font-weight:700;
  line-height:1.5;
}

/* Ablauf – warmer, heller Hintergrund */
.tbm-case-process {
  background:var(--case-paper);
  padding-block:clamp(65px,8vw,105px);
}
.tbm-case-process-heading {
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:30px;
  margin-bottom:48px;
}
.tbm-case-process-heading .tbm-case-section-label { align-self:start; }
.tbm-case-steps { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.tbm-case-steps-compact { margin-top:clamp(30px,4vw,48px); }
.tbm-case-steps article { border-top:3px solid var(--case-navy); padding:22px 20px 12px 0; }
.tbm-case-steps article > span {
  color:#657084;
  font-size:10px;
  font-weight:900;
  letter-spacing:.14em;
}
.tbm-case-steps h3 { color:var(--case-navy); font-size:clamp(21px,2.4vw,29px); margin:18px 0 12px; }
.tbm-case-steps p { color:var(--case-muted); font-size:14px; line-height:1.75; }

/* Bildstrecke */
.tbm-case-gallery-section { padding-block:clamp(70px,9vw,120px); }
.tbm-case-gallery-heading {
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:35px;
  margin-bottom:38px;
}
.tbm-case-gallery-heading > div { flex:1; }
.tbm-case-gallery-heading > p {
  max-width:390px;
  color:var(--case-muted);
  line-height:1.7;
  margin:0 0 5px;
}
.tbm-case-gallery-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:14px; }
.tbm-case-gallery-item { grid-column:span 3; margin:0; min-width:0; background:var(--case-paper); }
.tbm-case-gallery-item:nth-child(3n+2),
.tbm-case-gallery-item:nth-child(3n+3) { grid-column:span 3; }
.tbm-case-gallery-item img {
  width:100%;
  height:clamp(230px,31vw,440px);
  object-fit:cover;
}
.tbm-case-gallery-item figcaption {
  display:flex;
  gap:12px;
  align-items:baseline;
  padding:13px 15px 15px;
  color:var(--case-muted);
  font-size:12px;
  line-height:1.5;
}
.tbm-case-gallery-item figcaption span {
  color:var(--case-navy);
  font-size:10px;
  font-weight:900;
}

/* Faktenband – dunkle Fläche, weiße Angaben */
.tbm-case-facts-band {
  background:var(--case-navy);
  color:#fff;
  padding-block:38px;
}
.tbm-case-facts-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
.tbm-case-facts-grid span {
  display:block;
  color:var(--case-lime);
  font-size:9px;
  font-weight:900;
  letter-spacing:.16em;
  margin-bottom:10px;
}
.tbm-case-facts-grid strong { display:block; color:#fff; font-size:14px; line-height:1.5; }

/* Leistungen – helle Fläche */
.tbm-case-services { padding-block:clamp(70px,9vw,110px); }
.tbm-case-services h2 { margin-bottom:22px; }
.tbm-case-services > p { max-width:680px; color:var(--case-muted); font-size:16px; line-height:1.8; }
.tbm-case-service-links { display:flex; flex-wrap:wrap; gap:10px; margin-top:30px; }
.tbm-case-service-links a {
  display:flex;
  align-items:center;
  gap:22px;
  border:1px solid #cbd2dc;
  padding:15px 18px;
  color:var(--case-navy);
  font-size:10px;
  font-weight:900;
  letter-spacing:.09em;
  text-decoration:none;
  transition:background .2s ease,border-color .2s ease;
}
.tbm-case-service-links a span { color:var(--case-navy); }
.tbm-case-service-links a:hover { background:var(--case-lime); border-color:var(--case-lime); }

/* Abschluss – wie die dunklen Startseitenbereiche */
.tbm-case-cta {
  background:var(--case-navy);
  color:#fff;
  padding-block:clamp(70px,9vw,115px);
}
.tbm-case-cta h2 {
  color:#fff;
  font-size:clamp(42px,7vw,86px);
  margin:0 0 30px;
}
.tbm-case-cta h2 span { color:var(--case-lime); }
.tbm-case-backlink { margin:24px 0 0; }
.tbm-case-backlink a {
  color:rgba(255,255,255,.7);
  font-size:10px;
  font-weight:800;
  letter-spacing:.1em;
  text-decoration:none;
}
.tbm-case-backlink a:hover { color:var(--case-lime); }

@media(max-width:800px) {
  .tbm-case-hero-inner,
  .tbm-case-intro-grid { grid-template-columns:1fr; }
  .tbm-case-hero-media img { height:clamp(280px,65vw,460px); }
  .tbm-case-process-heading,
  .tbm-case-gallery-heading { display:block; }
  .tbm-case-process-heading h2,
  .tbm-case-gallery-heading h2 { margin-top:20px; }
  .tbm-case-gallery-heading > p { margin-top:18px; }
  .tbm-case-facts-grid { grid-template-columns:repeat(2,1fr); }
}
@media(max-width:560px) {
  .tbm-case-hero { padding:42px 5% 82px; }
  .tbm-case-hero-meta { font-size:8px; }
  .tbm-case-steps { grid-template-columns:1fr; gap:10px; }
  .tbm-case-gallery-grid { display:block; }
  .tbm-case-gallery-item { margin-bottom:16px; }
  .tbm-case-gallery-item img { height:auto; max-height:520px; object-fit:cover; }
  .tbm-case-facts-grid { grid-template-columns:1fr 1fr; gap:22px 16px; }
  .tbm-case-service-links { display:grid; grid-template-columns:1fr; }
}


/* =========================================================
   TBM REFERENZKARTEN – Fotografiska-Titel passend in die Karte setzen
   Auf der Startseite nur leicht kompakter, auf der Referenzübersicht
   etwas stärker reduziert. Betrifft ausschließlich den Kartentitel.
========================================================= */
@media (min-width: 701px) {
    .tbm-home-references .tbm-reference-card-two strong {
        max-width: 100%;
        font-size: clamp(30px, 3.7vw, 54px);
        letter-spacing: -.065em;
    }

}


/* Fotografiska auf der Referenzübersicht: gleiche Typografie wie ALDI und Kein Bock auf Nazis */
.tbm-portfolio-page .tbm-reference-card-two strong {
    font-size: clamp(32px, 4vw, 58px);
    letter-spacing: -.055em;
    line-height: .92;
    overflow-wrap: normal;
}

@media (max-width: 700px) {
    .tbm-portfolio-page .tbm-reference-card-two strong {
        font-size: clamp(42px, 12vw, 58px);
        letter-spacing: -.055em;
    }
}


/* =========================================================
   TBM CASE STUDIES – RESPONSIVE KORREKTUR
   Gilt für Fotografiska, Kein Bock auf Nazis und ALDI.
========================================================= */
@media (max-width: 800px) {
  .tbm-case-blueprint .tbm-case-hero-inner {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 32px;
  }

  .tbm-case-blueprint .tbm-case-hero-copy,
  .tbm-case-blueprint .tbm-case-hero-media {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .tbm-case-blueprint .tbm-case-hero-media img {
    width: 100%;
    height: clamp(260px, 62vw, 440px);
    object-fit: cover;
  }

  .tbm-case-blueprint .tbm-case-intro-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .tbm-case-blueprint .tbm-case-process-heading,
  .tbm-case-blueprint .tbm-case-gallery-heading {
    display: block;
  }

  .tbm-case-blueprint .tbm-case-gallery-heading > p {
    max-width: 680px;
    margin-top: 18px;
  }

  .tbm-case-blueprint .tbm-case-facts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tbm-case-blueprint .tbm-case-hero-meta {
    flex-wrap: wrap;
    align-items: flex-start;
    row-gap: 8px;
  }
}

@media (max-width: 560px) {
  .tbm-case-blueprint .tbm-case-hero {
    padding: 42px 5% 92px;
  }

  .tbm-case-blueprint .tbm-case-hero-inner {
    gap: 26px;
  }

  .tbm-case-blueprint .tbm-case-hero h1 {
    font-size: clamp(42px, 12vw, 64px);
    overflow-wrap: anywhere;
  }

  .tbm-case-blueprint .tbm-case-hero-lead {
    font-size: 16px;
    line-height: 1.6;
  }

  .tbm-case-blueprint .tbm-case-hero-meta {
    left: 5%;
    right: 5%;
    bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 8px;
    line-height: 1.4;
    letter-spacing: .1em;
  }

  .tbm-case-blueprint .tbm-case-hero-media img {
    height: auto;
    max-height: 420px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  .tbm-case-blueprint .tbm-case-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .tbm-case-blueprint .tbm-case-gallery-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .tbm-case-blueprint .tbm-case-gallery-item,
  .tbm-case-blueprint .tbm-case-gallery-item:nth-child(n) {
    grid-column: 1 / -1;
    min-width: 0;
    margin: 0;
  }

  .tbm-case-blueprint .tbm-case-gallery-item img {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
  }

  .tbm-case-blueprint .tbm-case-gallery-item figcaption {
    align-items: flex-start;
    gap: 9px;
    padding: 11px 12px 13px;
  }

  .tbm-case-blueprint .tbm-case-facts-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .tbm-case-blueprint .tbm-case-service-links {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .tbm-case-blueprint .tbm-case-service-links a {
    justify-content: space-between;
    min-width: 0;
  }
}

/* =========================================================
   TBM – EINHEITLICHER STIL FÜR TEXTLINKS AUF ALLEN SEITEN
   Farben bleiben kontextabhängig und damit unverändert.
   Buttons, Navigation, Footer-Menüs und Kartenlinks bleiben ausgenommen.
========================================================= */

.tbm-homepage p a:not(.tbm-button):not(.tbm-subpage-button):not(.tbm-case-button):not(.tbm-contact-button):not(.tbm-header-contact),
.tbm-page-container p a:not(.tbm-button):not(.tbm-subpage-button):not(.tbm-case-button):not(.tbm-contact-button):not(.tbm-header-contact),
.tbm-service-page p a:not(.tbm-button):not(.tbm-subpage-button):not(.tbm-case-button):not(.tbm-contact-button):not(.tbm-header-contact),
.tbm-case-page p a:not(.tbm-button):not(.tbm-subpage-button):not(.tbm-case-button):not(.tbm-contact-button):not(.tbm-header-contact),
.tbm-portfolio-page p a:not(.tbm-button):not(.tbm-subpage-button):not(.tbm-case-button):not(.tbm-contact-button):not(.tbm-header-contact),
.tbm-about-dialog-copy a,
.tbm-text-link,
.tbm-subpage-text-link,
.tbm-inline-link,
.tbm-page-body a:not(.tbm-button):not(.tbm-subpage-button):not(.tbm-case-button):not(.tbm-contact-button) {
    font-weight: inherit !important;
    text-decoration: underline !important;
    text-decoration-line: underline !important;
    text-decoration-thickness: 1px !important;
    text-decoration-style: solid !important;
    text-decoration-color: currentColor !important;
    text-underline-offset: 4px !important;
    text-decoration-skip-ink: auto;
    transition: text-decoration-thickness .18s ease !important;
}

.tbm-homepage p a:not(.tbm-button):not(.tbm-subpage-button):not(.tbm-case-button):not(.tbm-contact-button):not(.tbm-header-contact):hover,
.tbm-page-container p a:not(.tbm-button):not(.tbm-subpage-button):not(.tbm-case-button):not(.tbm-contact-button):not(.tbm-header-contact):hover,
.tbm-service-page p a:not(.tbm-button):not(.tbm-subpage-button):not(.tbm-case-button):not(.tbm-contact-button):not(.tbm-header-contact):hover,
.tbm-case-page p a:not(.tbm-button):not(.tbm-subpage-button):not(.tbm-case-button):not(.tbm-contact-button):not(.tbm-header-contact):hover,
.tbm-portfolio-page p a:not(.tbm-button):not(.tbm-subpage-button):not(.tbm-case-button):not(.tbm-contact-button):not(.tbm-header-contact):hover,
.tbm-about-dialog-copy a:hover,
.tbm-text-link:hover,
.tbm-subpage-text-link:hover,
.tbm-inline-link:hover,
.tbm-page-body a:not(.tbm-button):not(.tbm-subpage-button):not(.tbm-case-button):not(.tbm-contact-button):hover,
.tbm-homepage p a:not(.tbm-button):not(.tbm-subpage-button):not(.tbm-case-button):not(.tbm-contact-button):not(.tbm-header-contact):focus-visible,
.tbm-page-container p a:not(.tbm-button):not(.tbm-subpage-button):not(.tbm-case-button):not(.tbm-contact-button):not(.tbm-header-contact):focus-visible,
.tbm-service-page p a:not(.tbm-button):not(.tbm-subpage-button):not(.tbm-case-button):not(.tbm-contact-button):not(.tbm-header-contact):focus-visible,
.tbm-case-page p a:not(.tbm-button):not(.tbm-subpage-button):not(.tbm-case-button):not(.tbm-contact-button):not(.tbm-header-contact):focus-visible,
.tbm-portfolio-page p a:not(.tbm-button):not(.tbm-subpage-button):not(.tbm-case-button):not(.tbm-contact-button):not(.tbm-header-contact):focus-visible,
.tbm-about-dialog-copy a:focus-visible,
.tbm-text-link:focus-visible,
.tbm-subpage-text-link:focus-visible,
.tbm-inline-link:focus-visible,
.tbm-page-body a:not(.tbm-button):not(.tbm-subpage-button):not(.tbm-case-button):not(.tbm-contact-button):focus-visible {
    text-decoration-thickness: 2px !important;
}

@media (prefers-reduced-motion: reduce) {
    .tbm-homepage p a:not(.tbm-button):not(.tbm-subpage-button):not(.tbm-case-button):not(.tbm-contact-button):not(.tbm-header-contact),
    .tbm-page-container p a:not(.tbm-button):not(.tbm-subpage-button):not(.tbm-case-button):not(.tbm-contact-button):not(.tbm-header-contact),
    .tbm-service-page p a:not(.tbm-button):not(.tbm-subpage-button):not(.tbm-case-button):not(.tbm-contact-button):not(.tbm-header-contact),
    .tbm-case-page p a:not(.tbm-button):not(.tbm-subpage-button):not(.tbm-case-button):not(.tbm-contact-button):not(.tbm-header-contact),
    .tbm-portfolio-page p a:not(.tbm-button):not(.tbm-subpage-button):not(.tbm-case-button):not(.tbm-contact-button):not(.tbm-header-contact),
    .tbm-about-dialog-copy a,
    .tbm-text-link,
    .tbm-subpage-text-link,
    .tbm-inline-link,
    .tbm-page-body a:not(.tbm-button):not(.tbm-subpage-button):not(.tbm-case-button):not(.tbm-contact-button) {
        transition: none !important;
    }
}


/* Startseiten-News: zwei Spalten, auf schmalen Displays eine. */
.tbm-homepage .tbm-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 600px) { .tbm-homepage .tbm-news-grid { grid-template-columns: minmax(0, 1fr); } }

/* TBM BLOG 2026: Jubiläumslogo nicht anschneiden. */
.tbm-homepage .tbm-news-card[data-tbm-anniversary="1"] .tbm-news-image { background: #fff; }
.tbm-homepage .tbm-news-card[data-tbm-anniversary="1"] .tbm-news-image img { object-fit: contain; padding: 6%; background: #fff; }


/* =========================================================
   TBM 2026-11-20 – GEMEINSAME LIGHTBOX-STANDARDS
   Für aktuelle und zukünftige Leistungsunterseiten.
   Gilt für TBM-Dialoge und verbreitete NextGEN-Lightbox-Renderer.
   ========================================================= */

/* TBM-Galeriedialog: langer Galerieinhalt darf im Fenster scrollen. */
.tbm-standard-gallery-dialog {
    max-height: min(92vh, 92dvh);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}
.tbm-standard-gallery-dialog .tbm-gallery-dialog-inner { min-width: 0; }
.tbm-standard-gallery-dialog .tbm-gallery-close { position: sticky; top: 8px; z-index: 10; }
.tbm-standard-gallery-dialog .tbm-gallery-content img { max-width: 100%; height: auto; }

/* TBM-Informationsdialoge: Beschreibungen und Abschluss-CTA bleiben erreichbar. */
.tbm-service-dialog[open] {
    max-height: min(92vh, 92dvh);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}
.tbm-service-dialog[open] .tbm-service-dialog-inner {
    max-height: none;
    overflow: visible;
}

/* NextGEN SimpleLightbox: Bild in den sichtbaren Bereich einpassen.
   Lange Bildunterschriften erhalten eine eigene Scrollfläche. */
.sl-wrapper .sl-image img {
    max-width: calc(100vw - 28px) !important;
    max-height: calc(100vh - 160px) !important;
    max-height: calc(100dvh - 160px) !important;
    object-fit: contain;
}
.sl-wrapper .sl-image .sl-caption {
    box-sizing: border-box;
    max-height: min(30vh, 230px);
    max-height: min(30dvh, 230px);
    overflow-y: auto;
    overflow-wrap: anywhere;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    line-height: 1.5;
    padding: 12px 16px;
}
.sl-wrapper .sl-close { z-index: 10010; }

/* Fancybox 3 (falls vom NextGEN-Renderer verwendet). */
.fancybox-container .fancybox-caption {
    max-height: min(30vh, 230px);
    max-height: min(30dvh, 230px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    overflow-wrap: anywhere;
}
.fancybox-container .fancybox-image { object-fit: contain; }

/* Fancybox 4/5: Bildunterschriften nicht hinter dem Bildschirmrand verstecken. */
.fancybox__container .fancybox__caption {
    max-height: min(30vh, 230px);
    max-height: min(30dvh, 230px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    overflow-wrap: anywhere;
}
.fancybox__container .fancybox__image { object-fit: contain; }

@media (max-width: 640px) {
    .tbm-standard-gallery-dialog { max-height: 94vh; max-height: 94dvh; }
    .tbm-service-dialog[open] { max-height: 94vh; max-height: 94dvh; }
    .sl-wrapper .sl-image img {
        max-height: calc(100vh - 185px) !important;
        max-height: calc(100dvh - 185px) !important;
    }
    .sl-wrapper .sl-image .sl-caption,
    .fancybox-container .fancybox-caption,
    .fancybox__container .fancybox__caption {
        max-height: min(35vh, 200px);
        max-height: min(35dvh, 200px);
        font-size: 14px;
        line-height: 1.5;
    }
}

/* Kleine Abschnittstitel in beiden Sprachfassungen.
   Gemeinsame Werte haben Vorrang vor den lokalen Template- und Mobilregeln. */
.tbm-eyebrow,
.tbm-case-eyebrow,
.tbm-case-section-label,
.tbm-contact-eyebrow,
.tbm-contact-kicker,
.tbm-contact-outro > p,
.tbm-blog-eyebrow,
.tbm-legal-hero .tbm-legal-inner > p {
    font-family: var(--tbm-font, 'Inter', Arial, sans-serif) !important;
    font-size: .9375rem !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    letter-spacing: .1em !important;
    text-transform: uppercase;
}
