/*
 * TrainWerk Website System
 * Copyright (C) 2026 Hans-Josef Pesch / TrainWerk
 * License: TrainWerk Open Use License 1.0
 * Nutzung und Weiterentwicklung erlaubt. Backlink oder eine Tasse Kaffee willkommen.
 * Copyright- und Lizenzhinweise bitte beibehalten.
 */

:root{--tw-navy:#0F182D;--tw-orange:#F97316;--tw-light:#F2F4F7;--tw-text:#0F172A;--tw-font-body:Inter,Arial,sans-serif;--tw-font-heading:Inter,Arial,sans-serif;--tw-max:1280px;--tw-hero-overlay:.78}
*{box-sizing:border-box}html{scroll-behavior:smooth}body.tw-site{margin:0;background:#f8fafc;color:var(--tw-text);font-family:var(--tw-font-body);line-height:1.6}img,video{max-width:100%;display:block}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}h1,h2,h3{font-family:var(--tw-font-heading);line-height:1.12;margin:0;color:inherit}h1{font-size:clamp(2.25rem,5vw,4.25rem)}h2{font-size:clamp(1.9rem,3vw,2.6rem)}h3{font-size:1.25rem}.tw-container{width:min(calc(100% - 2rem),var(--tw-max));margin-inline:auto}.tw-topbar{background:#020617;color:#cbd5e1;font-size:.78rem}.tw-topbar .tw-container{display:flex;justify-content:space-between;padding:.5rem 0}.tw-header{background:#fff;border-bottom:1px solid #e2e8f0;position:relative;z-index:50}.tw-navrow{display:flex;align-items:center;gap:2rem;min-height:86px}.tw-brand{display:flex;flex-direction:column;line-height:1.05;white-space:nowrap}.tw-brand strong{font-size:1.2rem;color:#0f172a}.tw-brand small{font-size:.72rem;letter-spacing:.14em;color:#64748b;margin-top:.35rem}.tw-nav{display:flex;align-items:stretch;align-self:stretch;gap:1.5rem;margin-left:auto;font-family:var(--tw-font-body);font-size:1.125rem;font-weight:400;line-height:1.4;white-space:nowrap}.tw-nav>a,.tw-mega-trigger{position:relative;display:inline-flex;align-items:center;gap:.5rem;min-height:44px;color:var(--tw-navy);transition:color 180ms ease}.tw-nav>a:hover,.tw-mega-trigger:hover{color:var(--tw-navy)}.tw-mega-wrap{position:static;display:flex;align-items:stretch}.tw-mega-trigger{border:0;background:transparent;padding:1rem 0;font-family:inherit;font-size:inherit;font-weight:400;line-height:inherit;cursor:pointer}.tw-mega{display:grid;position:absolute;top:100%;left:50%;transform:translateX(-50%);width:min(1040px,calc(100vw - 2rem));background:#fff;border:1px solid #e2e8f0;box-shadow:0 24px 60px rgba(15,23,42,.18);grid-template-columns:.68fr 1.32fr;font-size:1rem;font-weight:400;line-height:1.5;white-space:normal}.tw-mega aside{background:var(--tw-navy);color:#fff;padding:1.8rem;display:flex;flex-direction:column;gap:1rem}.tw-mega aside h2{font-size:1.6rem}.tw-mega aside p{color:#cbd5e1}.tw-mega aside>a:not(.tw-button){border:1px solid #64748b;padding:.8rem 1rem;font-weight:700}.tw-mega-links{padding:1.6rem;display:grid;grid-template-columns:1fr 1fr;gap:.25rem 1rem}.tw-mega-links>.tw-eyebrow{grid-column:1/-1;border-bottom:1px solid #e2e8f0;padding-bottom:.7rem}.tw-mega-links>a{padding:.7rem 1rem;border-left:2px solid transparent}.tw-mega-links>a:hover,.tw-mega-links>a.is-active{border-left-color:var(--tw-orange);background:#f8fafc}.tw-mega-links strong,.tw-mega-links small{display:block}.tw-mega-links strong{font-size:1rem;font-weight:600;line-height:1.35}.tw-mega-links small{font-size:.8125rem;color:#64748b;margin-top:.3rem;font-weight:400;line-height:1.5}.tw-header-cta{margin-left:.3rem;flex-shrink:0;white-space:nowrap}.tw-mobile-toggle,.tw-mobile-nav{display:none}.tw-button{display:inline-flex;align-items:center;justify-content:center;background:var(--tw-orange);color:#fff!important;border:1px solid var(--tw-orange);padding:.85rem 1.35rem;font-weight:800;cursor:pointer;transition:.2s}.tw-button:hover{filter:brightness(.92)}.tw-button-outline{background:transparent;border-color:#94a3b8;color:#fff!important}.tw-button-outline:hover{background:#fff;color:#0f172a!important}.tw-main{overflow-x:hidden}.tw-hero{position:relative;isolation:isolate;background:var(--tw-navy);color:#fff;overflow:hidden}.tw-hero-bg{position:absolute;inset:0;z-index:-3;background:var(--tw-navy) center/cover no-repeat;background-image:var(--tw-hero-image)}.tw-service-hero .tw-hero-bg{filter:brightness(.82) saturate(.78) contrast(1.02)}.tw-hero-overlay{position:absolute;inset:0;z-index:-2;background:radial-gradient(ellipse at 62% 18%,rgba(15,24,45,.52),rgba(15,24,45,var(--tw-hero-overlay)) 62%,rgba(15,24,45,.88))}.tw-home-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-3;filter:brightness(.82) saturate(.78) contrast(1.02)}.tw-hero-grid,.tw-home-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:3.5rem;padding-top:7rem;padding-bottom:7rem;align-items:center}.tw-home-grid{grid-template-columns:1.2fr .8fr;min-height:760px}.tw-home-copy{padding-top:7rem}.tw-badge{display:inline-flex;gap:.75rem;align-items:center;font-weight:700;color:#e2e8f0;margin-bottom:1.75rem}.tw-badge span{width:.6rem;height:.6rem;background:var(--tw-orange)}.tw-lead{font-size:1.2rem;line-height:1.7;color:#cbd5e1;max-width:48rem}.tw-actions{display:flex;gap:1rem;flex-wrap:wrap;margin-top:2rem}.tw-breadcrumb{display:flex;gap:.55rem;color:#94a3b8;font-size:.85rem;font-weight:700}.tw-eyebrow{font-size:.78rem;font-weight:800;text-transform:uppercase;letter-spacing:.18em;color:#c2410c}.tw-eyebrow-light{color:#fb923c}.tw-hero .tw-eyebrow{margin-top:2rem}.tw-hero h1{margin-top:.8rem}.tw-hero-points,.tw-home-checks{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-top:2.4rem;border-top:1px solid #475569;padding-top:1.4rem;color:#e2e8f0;font-weight:700;font-size:.9rem}.tw-hero-points span{display:inline-flex;width:1.5rem;height:1.5rem;align-items:center;justify-content:center;color:#34d399;margin-right:.6rem}.tw-glass{border:1px solid rgba(255,255,255,.28);background:linear-gradient(135deg,rgba(255,255,255,.26),rgba(255,255,255,.10));box-shadow:0 22px 60px rgba(2,6,23,.2),inset 0 1px 0 rgba(255,255,255,.28);backdrop-filter:blur(10px) saturate(120%);padding:2rem}.tw-glass h2{font-size:1.5rem;margin-top:.7rem}.tw-summary{border-block:1px solid rgba(255,255,255,.3);margin-top:1.5rem}.tw-summary>div{padding:1rem 0;border-bottom:1px solid rgba(255,255,255,.3);font-weight:700}.tw-summary>div:last-child{border-bottom:0}.tw-summary span{margin-right:.7rem}.tw-glass-note{margin-top:1.5rem;padding:1.2rem;background:linear-gradient(135deg,rgba(255,255,255,.32),rgba(255,255,255,.16));border:1px solid rgba(255,255,255,.24)}.tw-home-summary{background:#fff;color:#0f172a;padding:2rem;border:1px solid #475569;box-shadow:0 22px 60px rgba(2,6,23,.35)}.tw-home-summary h2{font-size:1.55rem;margin:.7rem 0 1.3rem}.tw-home-summary h3{font-size:1rem;padding-top:1rem;border-top:1px solid #e2e8f0}.tw-home-summary p{color:#64748b;font-size:.9rem}.tw-section{padding:5rem 0}.tw-white{background:#fff}.tw-muted{background:var(--tw-light);border-block:1px solid #e1e6ed}.tw-section h2{margin-top:.8rem;max-width:56rem}.tw-section-intro{max-width:56rem;font-size:1.1rem;color:#64748b}.tw-two{display:grid;grid-template-columns:.9fr 1.1fr;gap:3rem}.tw-prose{font-size:1.08rem;color:#64748b}.tw-card-grid,.tw-service-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem;margin-top:3rem}.tw-card,.tw-service-card{background:#fff;border:1px solid #e2e8f0;padding:1.6rem;transition:.25s}.tw-service-card{min-height:260px;display:flex}.tw-service-card:hover{transform:translateY(-4px);box-shadow:0 16px 40px rgba(15,23,42,.12)}.tw-service-card-copy{display:flex;flex-direction:column}.tw-service-card h3,.tw-card h3{margin-top:.5rem}.tw-service-card p,.tw-card p{color:#64748b}.tw-service-card strong{margin-top:auto;text-decoration:underline;text-decoration-color:var(--tw-orange);text-underline-offset:.25rem}.tw-card i{display:block;width:3.5rem;height:4px;background:var(--tw-orange)}.tw-card b{display:block;color:#c2410c;margin-top:1.25rem}.tw-tags{display:flex;flex-wrap:wrap;gap:.7rem;margin-top:2rem}.tw-tags span{border:1px solid #e2e8f0;background:#f8fafc;padding:.7rem 1rem;font-weight:700;font-size:.9rem}.tw-dark-panel{background:var(--tw-navy);color:#fff;padding:2rem}.tw-dark-panel h2{color:#fff}.tw-rule-list{border-block:1px solid #475569;margin-top:1.5rem}.tw-rule-list>div{padding:1rem 0;border-bottom:1px solid #475569}.tw-rule-list>div:last-child{border-bottom:0}.tw-rule-list h3{color:#fff}.tw-rule-list p{color:#cbd5e1}.tw-process{display:grid;grid-template-columns:repeat(4,1fr);gap:1.5rem;margin-top:3rem}.tw-process article{background:#fff;border:1px solid #e2e8f0;padding:1.5rem}.tw-process article>span{display:flex;width:2.8rem;height:2.8rem;background:var(--tw-orange);color:#fff;align-items:center;justify-content:center;font-weight:800}.tw-process h3{margin-top:1.4rem}.tw-process p{color:#64748b}.tw-faq{margin-top:2.5rem;display:grid;gap:1rem}.tw-faq details{background:#f8fafc;border:1px solid #e2e8f0}.tw-faq summary{padding:1.2rem 1.5rem;font-weight:800;cursor:pointer}.tw-faq details>div{padding:1.2rem 1.5rem;border-top:1px solid #e2e8f0;color:#64748b}.tw-notice{display:grid;grid-template-columns:1.2fr .8fr;background:#fff;border:1px solid #e2e8f0}.tw-notice>div,.tw-notice-cta{padding:2rem}.tw-notice p{color:#64748b}.tw-notice-cta{background:var(--tw-navy);color:#fff;display:flex;flex-direction:column;justify-content:center}.tw-notice-cta h3{font-size:1.5rem}.tw-notice-cta .tw-button{margin-top:1.5rem;align-self:flex-start;max-width:100%}.tw-editorial-media{display:grid;grid-template-columns:1.08fr .92fr;background:var(--tw-navy);overflow:hidden}.tw-editorial-image{min-height:460px;position:relative}.tw-editorial-image img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}.tw-editorial-copy{padding:3rem;color:#fff;display:flex;flex-direction:column;justify-content:center}.tw-editorial-copy p{color:#cbd5e1}.tw-highlight{margin-top:1.6rem;border-left:4px solid var(--tw-orange);background:#17223a;padding:1rem}.tw-highlight-light{margin-top:2rem;border-left:4px solid var(--tw-orange);background:#f8fafc;padding:1.3rem;font-weight:700}.tw-benefits{margin-top:2rem;border-block:1px solid #475569}.tw-benefits>div{display:grid;grid-template-columns:48px 1fr;gap:1rem;padding:1.2rem 0;border-bottom:1px solid #475569}.tw-benefits>div:last-child{border-bottom:0}.tw-benefits b{display:flex;width:2.5rem;height:2.5rem;align-items:center;justify-content:center;background:var(--tw-orange)}.tw-benefits strong,.tw-benefits small{display:block}.tw-benefits small{color:#cbd5e1;margin-top:.25rem}.tw-contact-grid{display:grid;grid-template-columns:.85fr 1.15fr;border:1px solid #e2e8f0}.tw-contact-dark{background:var(--tw-navy);color:#fff;padding:3rem}.tw-contact-dark>p{color:#cbd5e1}.tw-contact-facts{border-block:1px solid #475569;margin-top:2rem}.tw-contact-facts>div{padding:1rem 0;border-bottom:1px solid #475569}.tw-contact-facts>div:last-child{border-bottom:0}.tw-contact-facts span,.tw-contact-facts strong{display:block}.tw-contact-facts span{font-size:.75rem;text-transform:uppercase;letter-spacing:.14em;color:#94a3b8}.tw-contact-form{background:#f8fafc;padding:3rem}.tw-form{display:grid;gap:1.3rem;margin-top:1.7rem}.tw-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.2rem}.tw-form label{font-weight:700;font-size:.9rem}.tw-form input,.tw-form textarea,.tw-form select{display:block;width:100%;margin-top:.4rem;border:1px solid #cbd5e1;background:#fff;padding:.85rem;color:#0f172a}.tw-form input:focus,.tw-form textarea:focus{outline:2px solid rgba(249,115,22,.25);border-color:var(--tw-orange)}.tw-check{display:flex!important;gap:.7rem;font-weight:500!important;color:#64748b}.tw-check input{width:1rem!important;margin-top:.2rem!important}.tw-honeypot{position:absolute;left:-9999px}.tw-form-status{font-weight:700}.tw-footer{position:relative;background:#020617;color:#cbd5e1;overflow:hidden}.tw-footer-bg{position:absolute;inset:0;z-index:0;isolation:isolate;pointer-events:none}.tw-footer-grid{position:relative;display:grid;grid-template-columns:1.25fr 1fr 1fr .9fr;gap:3rem;padding:4rem 0}.tw-brand-light strong{color:#fff}.tw-brand-light small{color:#94a3b8}.tw-footer nav{display:flex;flex-direction:column;gap:.65rem}.tw-footer nav h3{color:#fff;font-size:1rem;margin:0 0 .5rem}.tw-footer nav h3:not(:first-child){margin-top:1.5rem}.tw-footer nav a:hover{color:#fb923c}.tw-footer-bottom{position:relative;border-top:1px solid rgba(255,255,255,.1)}.tw-footer-bottom .tw-container{display:flex;justify-content:space-between;padding:1.3rem 0;font-size:.78rem;color:#64748b}
@media(max-width:1000px){.tw-hero-grid,.tw-home-grid,.tw-two,.tw-contact-grid,.tw-notice,.tw-editorial-media{grid-template-columns:1fr}.tw-home-grid{min-height:0}.tw-home-copy{padding-top:1rem}.tw-hero-grid,.tw-home-grid{padding-top:5rem;padding-bottom:5rem}.tw-card-grid,.tw-service-grid{grid-template-columns:repeat(2,1fr)}.tw-process{grid-template-columns:repeat(2,1fr)}.tw-footer-grid{grid-template-columns:1fr 1fr}.tw-editorial-image{min-height:380px}}
@media(max-width:640px){.tw-topbar .tw-container span:last-child{display:none}.tw-navrow{min-height:74px}.tw-brand strong{font-size:1rem}.tw-brand small{font-size:.62rem}.tw-section{padding:4rem 0}.tw-card-grid,.tw-service-grid,.tw-process,.tw-form-grid,.tw-footer-grid{grid-template-columns:1fr}.tw-hero-points,.tw-home-checks{grid-template-columns:1fr}.tw-contact-dark,.tw-contact-form,.tw-editorial-copy{padding:1.5rem}.tw-footer-bottom .tw-container{flex-direction:column;gap:.5rem}.tw-editorial-image{min-height:280px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}.tw-home-video{display:none}}

.tw-qualification-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1.5rem;margin-top:3rem}.tw-qualification{border:1px solid #e2e8f0;background:#f8fafc}.tw-qualification header{background:var(--tw-navy);color:#fff;padding:1.5rem}.tw-qualification header b{color:#fb923c}.tw-qualification header h3{margin-top:.5rem}.tw-qualification>div{padding:1.5rem}.tw-qualification p{color:#64748b}.tw-qualification li{margin:.5rem 0}.tw-network{background:var(--tw-navy);color:#fff}.tw-network p{color:#cbd5e1}.tw-faq-filter{display:grid;grid-template-columns:1fr 280px auto;gap:1rem;margin-bottom:2rem}.tw-faq-filter input,.tw-faq-filter select{border:1px solid #cbd5e1;padding:.85rem;background:#fff}.tw-faq summary{display:flex;justify-content:space-between;gap:1rem}.tw-faq summary small{color:#c2410c}.tw-mega-standalone{position:static!important;transform:none!important;display:grid!important;width:100%!important}.tw-slider{position:relative;overflow:hidden;background:var(--tw-navy);color:#fff}.tw-slide{display:none;min-height:520px;position:relative;align-items:center}.tw-slide.is-active{display:flex}.tw-slide-bg{position:absolute;inset:0;background:center/cover no-repeat;opacity:.48}.tw-slide-content{position:relative;padding:5rem 0}.tw-slider-nav{position:absolute;right:2rem;bottom:2rem;display:flex;gap:.5rem}.tw-slider-nav button{width:2.6rem;height:2.6rem;border:1px solid #fff;background:rgba(15,24,45,.7);color:#fff;cursor:pointer}@media(max-width:760px){.tw-qualification-grid{grid-template-columns:1fr}.tw-faq-filter{grid-template-columns:1fr}.tw-slide{min-height:420px}}

/*
 * TrainWerk 0.2.1-alpha corrective layer
 * Copyright (C) 2026 Hans-Josef Pesch / TrainWerk
 * License: TrainWerk Open Use License 1.0
 */

.tw-skip-link {
    position: fixed;
    top: 0;
    left: 1rem;
    z-index: 10050;
    transform: translateY(-140%);
    background: #ffffff;
    color: #0f172a;
    border: 2px solid var(--tw-orange);
    padding: 0.75rem 1rem;
    font-weight: 800;
}

.tw-skip-link:focus {
    transform: translateY(0.5rem);
}

body.tw-site,
button,
input,
textarea,
select {
    font-family: var(--tw-font-body);
}

h1,
h2,
h3,
h4,
h5,
h6,
.tw-brand,
.tw-button,
.tw-eyebrow {
    font-family: var(--tw-font-heading);
}

.tw-brand strong {
    font-weight: 750;
}

.tw-form-field {
    display: block;
}

.tw-form-field > span:first-child {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 700;
}

.tw-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.tw-page-hero-copy {
    padding-top: 7rem;
    padding-bottom: 7rem;
}

body.tw-a11y-panel-open {
    overflow: hidden;
}

.tw-mega-title {
    margin: 0;
    font-family: var(--tw-font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.15;
}

.tw-service-card > a {
    display: flex;
    flex: 1 1 auto;
    width: 100%;
}

/*
 * TrainWerk 0.2.4-alpha master alignment layer
 * Copyright (C) 2026 Hans-Josef Pesch / TrainWerk
 * License: TrainWerk Open Use License 1.0
 *
 * Nutzung und Weiterentwicklung erlaubt.
 * Backlink zu TrainWerk oder eine Tasse Kaffee willkommen.
 * Copyright- und Lizenzhinweise bitte beibehalten.
 */

.tw-brand-with-mark {
    flex-direction: row;
    align-items: center;
    gap: 0.8rem;
}

.tw-brand-mark {
    display: inline-flex;
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 2.75rem;
    align-items: center;
    justify-content: center;
    background: var(--tw-orange);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.tw-brand-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.tw-brand-with-mark strong {
    font-size: 1.08rem;
    line-height: 1;
    letter-spacing: -0.02em;
}

.tw-brand-with-mark small {
    margin-top: 0.42rem;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.21em;
}

.tw-navrow {
    position: relative;
    min-height: 86px;
    gap: 1.35rem;
}


.tw-header-search {
    display: flex;
    width: min(220px, 18vw);
    min-width: 170px;
    flex: 0 1 220px;
    height: 40px;
    margin-left: 0.25rem;
    border: 1px solid #cbd5e1;
    background: #ffffff;
}

.tw-header-search input {
    min-width: 0;
    flex: 1 1 auto;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 0 0.75rem;
    color: #334155;
    font-size: 0.78rem;
}

.tw-header-search button {
    width: 42px;
    border: 0;
    border-left: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    cursor: pointer;
}

.tw-header-search:focus-within {
    border-color: #94a3b8;
    box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.18);
}

/* Shared navigation, 0.3.1. Values here are the canonical motion tokens. */
.tw-header {
    --tw-nav-open-duration: 240ms;
    --tw-nav-close-duration: 180ms;
    --tw-nav-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --tw-nav-offset: -8px;
}

.tw-nav > a::after,
.tw-mega-trigger::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 13px;
    height: 3px;
    background: var(--tw-orange);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform var(--tw-nav-close-duration) var(--tw-nav-ease);
}

.tw-nav > a:is(:hover, :focus-visible, .is-active)::after,
.tw-mega-trigger:is(:hover, :focus-visible, .is-active)::after,
.tw-mega-wrap.open > .tw-mega-trigger::after {
    transform: scaleX(1);
}

.tw-mega-trigger > span {
    width: 0.45rem;
    height: 0.45rem;
    margin-top: -0.2rem;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    font-size: 0;
    transform: rotate(45deg);
    transition: transform var(--tw-nav-open-duration) var(--tw-nav-ease);
}

.tw-mega-wrap.open > .tw-mega-trigger > span {
    transform: rotate(225deg);
}

.tw-mega-wrap > .tw-mega {
    z-index: 2;
    max-height: calc(100vh - 150px);
    max-height: calc(100dvh - 150px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #94a3b8 #f8fafc;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, var(--tw-nav-offset));
    transition:
        opacity var(--tw-nav-close-duration) ease,
        transform var(--tw-nav-close-duration) var(--tw-nav-ease),
        visibility 0s linear var(--tw-nav-close-duration);
}

.tw-mega-wrap.open > .tw-mega {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
    transition-duration: var(--tw-nav-open-duration), var(--tw-nav-open-duration), 0s;
    transition-delay: 0s;
}

.tw-header :is(a, button):focus-visible {
    outline: 2px solid var(--tw-navy);
    outline-offset: 4px;
}

.tw-header .tw-mega aside :is(a, button):focus-visible {
    outline-color: #fff;
    outline-offset: 3px;
}

.tw-mega-links > a {
    transition: background-color 160ms ease, border-color 160ms ease;
}

@media (max-width: 1100px) {
    .tw-nav,
    .tw-header-cta,
    .tw-header-search {
        display: none;
    }

    .tw-mobile-toggle {
        display: block;
        flex-shrink: 0;
        min-height: 44px;
        margin-left: auto;
        border: 1px solid #cbd5e1;
        background: #fff;
        color: var(--tw-navy);
        padding: 0.6rem 1rem;
        font-weight: 500;
        cursor: pointer;
        transition: background-color 160ms ease, border-color 160ms ease;
    }

    .tw-mobile-toggle:is(:hover, [aria-expanded="true"]) {
        border-color: var(--tw-orange);
        background: #f8fafc;
    }

    .tw-mobile-nav:not([hidden]) {
        display: flex;
    }

    .tw-mobile-nav {
        position: absolute;
        top: 100%;
        right: 1rem;
        z-index: 2;
        width: min(320px, calc(100vw - 2rem));
        max-height: calc(100vh - 150px);
        max-height: calc(100dvh - 150px);
        overflow-y: auto;
        overscroll-behavior: contain;
        flex-direction: column;
        border: 1px solid #e2e8f0;
        background: #fff;
        box-shadow: 0 20px 40px rgba(15, 23, 42, 0.16);
        padding: 0.75rem;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(var(--tw-nav-offset));
        transition:
            opacity var(--tw-nav-close-duration) ease,
            transform var(--tw-nav-close-duration) var(--tw-nav-ease),
            visibility 0s linear var(--tw-nav-close-duration);
    }

    .tw-mobile-nav.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
        transition-duration: var(--tw-nav-open-duration), var(--tw-nav-open-duration), 0s;
        transition-delay: 0s;
    }

    .tw-mobile-nav > a {
        display: block;
        min-height: 44px;
        border-left: 3px solid transparent;
        padding: 0.75rem 1rem;
        color: var(--tw-navy);
        font-family: var(--tw-font-body);
        font-size: 1.125rem;
        font-weight: 400;
        line-height: 1.4;
    }

    .tw-mobile-nav > a:is(:hover, .is-active) {
        border-left-color: var(--tw-orange);
        background: #f8fafc;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tw-header {
        --tw-nav-open-duration: 0s;
        --tw-nav-close-duration: 0s;
        --tw-nav-offset: 0px;
    }
}

html.tw-a11y-motion .tw-header {
    --tw-nav-open-duration: 0s;
    --tw-nav-close-duration: 0s;
    --tw-nav-offset: 0px;
}

@media (forced-colors: active) {
    .tw-nav > a::after,
    .tw-mega-trigger::after {
        background: LinkText;
    }

    .tw-mega-links > a.is-active,
    .tw-mobile-nav > a.is-active {
        border-left-color: LinkText;
    }
}

.tw-home-master-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 650px;
    background: var(--tw-navy);
    color: #ffffff;
}

.tw-home-master-video,
.tw-home-master-poster,
.tw-home-master-overlay {
    position: absolute;
    inset: 0;
}

.tw-home-master-video {
    z-index: -3;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.82) saturate(0.78) contrast(1.02);
}

.tw-home-master-poster {
    z-index: -4;
    background-position: center;
    background-size: cover;
}

.tw-home-master-overlay {
    z-index: -2;
    background: radial-gradient(
        ellipse at 62% 18%,
        rgba(15, 24, 45, 0.52) 0%,
        rgba(15, 24, 45, 0.62) 17%,
        rgba(15, 24, 45, 0.72) 34%,
        rgba(15, 24, 45, 0.80) 55%,
        rgba(15, 24, 45, 0.84) 100%
    );
}

.tw-home-master-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(330px, 0.8fr);
    gap: 3.5rem;
    align-items: center;
    padding-top: 6.25rem;
    padding-bottom: 6.25rem;
}

.tw-home-master-copy {
    max-width: 760px;
    padding-top: 4.5rem;
}

.tw-home-master-copy h1 {
    max-width: 760px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(2.4rem, 4.7vw, 4.15rem);
    font-weight: 800;
    line-height: 1.03;
    letter-spacing: -0.035em;
    text-shadow: 0 2px 18px rgba(2, 6, 23, 0.45);
}

.tw-home-master-lead {
    max-width: 690px;
    margin-top: 1.65rem;
    color: #e2e8f0;
    font-size: 1.08rem;
    line-height: 1.8;
    text-shadow: 0 2px 14px rgba(2, 6, 23, 0.45);
}

.tw-home-master-checks {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2.75rem;
    border-top: 1px solid #475569;
    padding-top: 1.65rem;
    color: #e2e8f0;
    font-size: 0.82rem;
    font-weight: 700;
}

.tw-home-master-checks div {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.tw-home-master-checks span {
    display: inline-flex;
    width: 1.55rem;
    height: 1.55rem;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.tw-home-master-summary {
    align-self: center;
    border: 1px solid #475569;
    background: #ffffff;
    color: #0f172a;
    padding: 2rem 2.15rem;
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.30);
}

.tw-home-master-summary h2 {
    margin-top: 0.8rem;
    font-size: 1.55rem;
    line-height: 1.12;
}

.tw-home-summary-list {
    margin-top: 1.55rem;
    border-top: 1px solid #e2e8f0;
}

.tw-home-summary-list section {
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 0;
}

.tw-home-summary-list section:last-child {
    border-bottom: 0;
}

.tw-home-summary-list h3 {
    font-size: 0.96rem;
}

.tw-home-summary-list p {
    margin: 0.45rem 0 0;
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.65;
}

.tw-home-master-services {
    background: #f8fafc;
    padding: 5.5rem 0 6rem;
}

.tw-home-section-heading {
    max-width: 760px;
}

.tw-home-section-heading h2,
.tw-home-master-practice h2,
.tw-home-master-process h2 {
    margin-top: 0.9rem;
    color: #0f172a;
    font-size: clamp(2rem, 3vw, 2.7rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.tw-home-section-heading > p:last-child,
.tw-home-practice-lead,
.tw-home-process-heading > p {
    margin-top: 1.4rem;
    color: #64748b;
    font-size: 1rem;
    line-height: 1.8;
}

.tw-home-master-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 3.25rem;
}

.tw-home-master-card {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.tw-home-master-card:hover {
    transform: translateY(-4px);
    border-color: #cbd5e1;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
}

.tw-home-master-card > a {
    display: flex;
    height: 100%;
    flex-direction: column;
}

.tw-home-master-card-media {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e2e8f0;
}

.tw-home-master-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.tw-home-master-card:hover img {
    transform: scale(1.025);
}

.tw-home-master-card-copy {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 1.55rem 1.6rem 1.65rem;
}

.tw-home-card-line {
    display: block;
    width: 3.5rem;
    height: 4px;
    background: var(--tw-orange);
}

.tw-home-card-number {
    margin: 1.3rem 0 0;
    color: #ea580c;
    font-size: 0.78rem;
    font-weight: 800;
}

.tw-home-master-card h3 {
    margin-top: 0.55rem;
    color: #0f172a;
    font-size: 1.13rem;
    line-height: 1.25;
}

.tw-home-master-card-copy > p:not(.tw-home-card-number) {
    margin: 1rem 0 0;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.72;
}

.tw-home-master-card strong {
    margin-top: auto;
    padding-top: 1.25rem;
    color: #0f172a;
    font-size: 0.78rem;
}

.tw-home-master-practice {
    border-block: 1px solid #e1e6ed;
    background: #f2f4f7;
    padding: 5.5rem 0 6rem;
}

.tw-home-practice-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 3.5rem;
    align-items: start;
}

.tw-home-competence-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin-top: 2.5rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #e2e8f0;
}

.tw-home-competence-grid article {
    background: #ffffff;
    padding: 1.5rem;
}

.tw-home-competence-grid h3 {
    color: #ea580c;
    font-size: 1.12rem;
    line-height: 1.25;
}

.tw-home-competence-grid p {
    margin: 0.6rem 0 0;
    color: #475569;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.6;
}

.tw-home-benefit-panel {
    background: #0f182d;
    color: #ffffff;
    padding: 2.5rem;
    box-shadow: 0 20px 48px rgba(15, 24, 45, 0.18);
}

.tw-home-benefit-panel h2 {
    color: #ffffff;
    font-size: clamp(1.7rem, 2.4vw, 2.25rem);
}

.tw-home-benefit-list {
    margin-top: 2rem;
    border-block: 1px solid #334155;
}

.tw-home-benefit-list > div {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 1rem;
    border-bottom: 1px solid #334155;
    padding: 1.25rem 0;
}

.tw-home-benefit-list > div:last-child {
    border-bottom: 0;
}

.tw-home-benefit-list b {
    display: flex;
    width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    background: var(--tw-orange);
    color: #ffffff;
}

.tw-home-benefit-list strong,
.tw-home-benefit-list small {
    display: block;
}

.tw-home-benefit-list small {
    margin-top: 0.35rem;
    color: #cbd5e1;
    line-height: 1.6;
}

.tw-home-targets {
    margin-top: 1.8rem;
    border-top: 1px solid #334155;
    padding-top: 1.6rem;
}

.tw-home-targets h3 {
    color: #ffffff;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.17em;
}

.tw-home-targets > div {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tw-home-targets span {
    border: 1px solid #475569;
    padding: 0.5rem 0.72rem;
    color: #f1f5f9;
    font-size: 0.72rem;
    font-weight: 700;
}

.tw-home-master-process {
    border-top: 1px solid #e2e8f0;
    background: #f1f5f9;
    padding: 5.5rem 0 6rem;
}

.tw-home-process-heading {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 2rem;
    align-items: end;
}

.tw-home-process-heading > p {
    max-width: 700px;
    justify-self: end;
}

.tw-home-process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 3.2rem;
}

.tw-home-process-grid article {
    border: 1px solid #e2e8f0;
    background: #ffffff;
    padding: 1.6rem;
}

.tw-home-process-grid header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.tw-home-process-grid h3 {
    padding-top: 0.2rem;
    color: #0f172a;
    font-size: 1.15rem;
}

.tw-home-process-grid header span {
    color: #f1f5f9;
    font-size: 2.35rem;
    font-weight: 800;
    line-height: 1;
}

.tw-home-process-grid article > p {
    margin: 1.5rem 0 0;
    color: #64748b;
    line-height: 1.72;
}

.tw-home-final-cta {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr);
    margin-top: 2rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.tw-home-final-cta > div {
    background: #ffffff;
    padding: 2rem;
}

.tw-home-final-cta > div > p:last-child {
    margin: 1.2rem 0 0;
    color: #64748b;
    line-height: 1.75;
}

.tw-home-final-cta aside {
    background: #0f182d;
    color: #ffffff;
    padding: 2rem;
}

.tw-home-final-cta aside h3 {
    margin-top: 0.8rem;
    color: #ffffff;
    font-size: 1.45rem;
}

.tw-home-final-cta aside .tw-button {
    width: 100%;
    margin-top: 1.4rem;
}

.tw-footer-grid {
    gap: 2.6rem;
    padding-top: 4.25rem;
    padding-bottom: 4.25rem;
}

.tw-footer-grid > section > p,
.tw-footer-contact {
    color: #94a3b8;
    font-size: 0.88rem;
    line-height: 1.75;
}

@media (max-width: 1279px) {
    .tw-header-search {
        display: none;
    }
}

@media (max-width: 1180px) {
    .tw-home-master-grid {
        gap: 2rem;
    }
}

@media (max-width: 1000px) {
    .tw-home-master-grid,
    .tw-home-practice-grid,
    .tw-home-process-heading,
    .tw-home-final-cta {
        grid-template-columns: 1fr;
    }

    .tw-home-master-copy {
        padding-top: 1rem;
    }

    .tw-home-master-grid {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    .tw-home-master-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tw-home-process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tw-home-process-heading > p {
        justify-self: start;
    }
}

@media (max-width: 720px) {
    .tw-navrow > .tw-brand-with-mark {
        min-width: 0;
        flex: 1 1 auto;
        white-space: normal;
    }

    .tw-navrow .tw-brand-copy {
        overflow-wrap: anywhere;
    }

    .tw-navrow .tw-mobile-toggle {
        flex: 0 0 auto;
    }

    .tw-faq-page .tw-faq summary {
        flex-direction: column;
        gap: 0.5rem;
    }

    .tw-brand-mark {
        width: 2.35rem;
        height: 2.35rem;
        flex-basis: 2.35rem;
        font-size: 0.85rem;
    }

    .tw-home-master-hero {
        min-height: auto;
    }

    .tw-home-master-copy h1 {
        font-size: clamp(2.2rem, 10vw, 3.3rem);
    }

    .tw-home-master-checks,
    .tw-home-master-card-grid,
    .tw-home-competence-grid,
    .tw-home-process-grid {
        grid-template-columns: 1fr;
    }

    .tw-home-master-services,
    .tw-home-master-practice,
    .tw-home-master-process {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .tw-home-benefit-panel {
        padding: 1.6rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tw-home-master-video {
        display: none;
    }

    .tw-home-master-card,
    .tw-home-master-card-media img {
        transition: none;
        transform: none !important;
    }
}

/* Existing master content: semantic text layout, without React utility CSS. */
.tw-master-content {
    max-width: 960px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}
.tw-master-content > * + *,
.tw-master-content section + section,
.tw-master-content article + article {
    margin-top: 2rem;
}
.tw-master-content section {
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}
.tw-master-content h2,
.tw-master-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}
.tw-master-content p + p,
.tw-master-content ul,
.tw-master-content ol,
.tw-master-content dl {
    margin-top: 1rem;
}
.tw-master-content ul,
.tw-master-content ol {
    padding-left: 1.5rem;
}
.tw-master-content li + li,
.tw-master-content dd + dt {
    margin-top: 0.5rem;
}
.tw-master-content address {
    font-style: normal;
}
.tw-master-content a {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}
.tw-master-content .tw-master-notice {
    padding: 1.25rem 1.5rem;
    border-left: 4px solid #d97706;
    background: #fffbeb;
    color: #0f172a;
}


/* TrainWerk 0.2.7-alpha: Master colors and decorative surfaces.
 * Copyright (C) 2026 Hans-Josef Pesch / TrainWerk
 * License: TrainWerk Open Use License 1.0
 * Sources: ServiceLandingPage.tsx, Faq.tsx, SiteFooter.tsx and globals.css.
 * The existing hero_overlay setting keeps its effect relative to default 0.78.
 */
.tw-service-page .tw-hero,
.tw-service-page .tw-hero-bg,
.tw-faq-page .tw-hero,
.tw-faq-page .tw-hero-bg {
    background-color: #020617;
}

.tw-service-page .tw-hero-overlay {
    background: radial-gradient(
        ellipse at 62% 18%,
        rgba(15, 24, 45, calc(0.52 + var(--tw-hero-overlay, 0.78) - 0.78)) 0%,
        rgba(15, 24, 45, calc(0.62 + var(--tw-hero-overlay, 0.78) - 0.78)) 17%,
        rgba(15, 24, 45, calc(0.72 + var(--tw-hero-overlay, 0.78) - 0.78)) 34%,
        rgba(15, 24, 45, calc(0.80 + var(--tw-hero-overlay, 0.78) - 0.78)) 55%,
        rgba(15, 24, 45, calc(0.84 + var(--tw-hero-overlay, 0.78) - 0.78)) 100%
    );
}

.tw-faq-page .tw-hero-bg {
    background-position: 28% 54%;
}

.tw-faq-page .tw-hero-overlay {
    background: linear-gradient(
        90deg,
        rgba(15, 24, 45, calc(0.90 + var(--tw-hero-overlay, 0.78) - 0.78)) 0%,
        rgba(15, 24, 45, calc(0.84 + var(--tw-hero-overlay, 0.78) - 0.78)) 34%,
        rgba(15, 24, 45, calc(0.68 + var(--tw-hero-overlay, 0.78) - 0.78)) 58%,
        rgba(15, 24, 45, calc(0.50 + var(--tw-hero-overlay, 0.78) - 0.78)) 100%
    );
}

.tw-service-page .tw-glass,
.tw-service-page .tw-glass-note {
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    backdrop-filter: blur(10px) saturate(120%);
}

.tw-service-page .tw-glass > .tw-eyebrow {
    color: #f97316;
}

.tw-service-page .tw-glass h2 {
    color: #f1f5f9;
}

.tw-service-page .tw-hero-points span {
    background: rgba(16, 185, 129, 0.15);
}

.tw-service-page .tw-breadcrumb [aria-current="page"] {
    color: #fb923c;
}

.tw-service-page .tw-breadcrumb a:hover {
    color: #ffffff;
}

/* TrainWerk 0.2.8-alpha: content surfaces use the user-approved footer palette.
 * Copyright (C) 2026 Hans-Josef Pesch / TrainWerk
 * License: TrainWerk Open Use License 1.0
 * The decorative child alone clips its image, preserving content/focus overflow.
 */
.tw-site .tw-blue-surface {
    position: relative;
    isolation: isolate;
    background: #020617;
    color: #ffffff;
}

.tw-blue-surface > .tw-blue-surface-bg {
    display: block;
    position: absolute;
    inset: 0;
    z-index: -1;
    isolation: isolate;
    overflow: hidden;
    pointer-events: none;
}

.tw-site .tw-blue-surface .tw-eyebrow-light {
    color: #fb923c;
}

/* One set of layers for the unchanged footer and all explicitly marked panels. */
.tw-footer-bg::before,
.tw-footer-bg::after,
.tw-blue-surface-bg::before,
.tw-blue-surface-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.tw-footer-bg::before,
.tw-blue-surface-bg::before {
    z-index: -2;
    background: url('../images/backgrounds/trainwerk-blue-glass.webp') center 60% / cover no-repeat;
    filter: saturate(0.90) contrast(1.04) brightness(0.72);
    transform: scale(1.035);
}

.tw-footer-bg::after,
.tw-blue-surface-bg::after {
    z-index: -1;
    background:
        radial-gradient(
            ellipse at 48% 76%,
            rgba(14, 165, 233, 0.12) 0%,
            rgba(14, 165, 233, 0.04) 34%,
            rgba(2, 6, 23, 0.18) 70%,
            rgba(2, 6, 23, 0.30) 100%
        ),
        linear-gradient(
            90deg,
            rgba(2, 6, 23, 0.84) 0%,
            rgba(2, 6, 23, 0.72) 46%,
            rgba(2, 6, 23, 0.80) 100%
        );
    -webkit-backdrop-filter: blur(3px) saturate(112%);
    backdrop-filter: blur(3px) saturate(112%);
}

.tw-footer-grid,
.tw-footer-bottom {
    z-index: 1;
}

/* Preserve the master's distinct text roles without recoloring dark panels. */
.tw-service-page .tw-eyebrow:not(.tw-eyebrow-light),
.tw-service-page .tw-card b,
.tw-faq-page .tw-faq summary small {
    color: #ea580c;
}

.tw-service-page .tw-eyebrow-light {
    color: #fb923c;
}

.tw-service-page .tw-prose,
.tw-service-page .tw-card p,
.tw-service-page .tw-process p,
.tw-service-page .tw-faq details > div,
.tw-service-page .tw-notice p:not(.tw-eyebrow) {
    color: #475569;
}

.tw-faq-page .tw-faq details > div,
.tw-service-page .tw-tags span {
    color: #334155;
}

.tw-service-page .tw-hero-points,
.tw-service-page .tw-rule-list,
.tw-service-page .tw-rule-list > div,
.tw-service-page .tw-contact-facts,
.tw-service-page .tw-contact-facts > div {
    border-color: #334155;
}

.tw-service-page .tw-button-outline {
    border-color: #64748b;
}

.tw-service-page .tw-button-outline:hover {
    border-color: #ffffff;
}

.tw-footer-grid > div > p {
    color: #94a3b8;
}

.tw-footer-bottom {
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

/* The existing master uses this surface only on explicitly marked cards. */
.tw-blue-glass-card {
    background: rgba(15, 23, 42, 0.46) !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.09),
        0 18px 46px rgba(2, 6, 23, 0.16);
    -webkit-backdrop-filter: blur(10px) saturate(112%);
    backdrop-filter: blur(10px) saturate(112%);
}

.tw-blue-glass-card-surface {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background-color: #020617 !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.09),
        0 20px 48px rgba(2, 6, 23, 0.14);
}

.tw-blue-glass-card-surface::before,
.tw-blue-glass-card-surface::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.tw-blue-glass-card-surface::before {
    z-index: -2;
    background: url('../images/backgrounds/trainwerk-blue-glass.webp') center 58% / cover no-repeat;
    filter: saturate(0.90) contrast(1.04) brightness(0.72);
    transform: scale(1.045);
}

.tw-blue-glass-card-surface::after {
    z-index: -1;
    background:
        radial-gradient(
            ellipse at 48% 72%,
            rgba(14, 165, 233, 0.12) 0%,
            rgba(14, 165, 233, 0.04) 36%,
            rgba(2, 6, 23, 0.10) 68%,
            rgba(2, 6, 23, 0.24) 100%
        ),
        linear-gradient(
            90deg,
            rgba(2, 6, 23, 0.80) 0%,
            rgba(2, 6, 23, 0.66) 48%,
            rgba(2, 6, 23, 0.76) 100%
        );
    -webkit-backdrop-filter: blur(3px) saturate(112%);
    backdrop-filter: blur(3px) saturate(112%);
}

.tw-blue-glass-card-surface.tw-blue-glass-card {
    border-color: rgba(255, 255, 255, 0.18) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.11),
        0 18px 44px rgba(2, 6, 23, 0.14);
}

.tw-blue-glass-card-surface.tw-highlight {
    border-left-color: var(--tw-orange) !important;
}

@media (forced-colors: active) {
    .tw-footer-bg,
    .tw-blue-surface-bg,
    .tw-blue-glass-card-surface::before,
    .tw-blue-glass-card-surface::after {
        display: none;
    }
}


/* Long German headings must fit the actual narrow grid track. */
@media (max-width: 1000px) {
    .tw-service-page,
    .tw-faq-page,
    .tw-qualification,
    .tw-network {
        overflow-wrap: anywhere;
        hyphens: auto;
    }

    .tw-service-page .tw-hero-grid,
    .tw-service-page .tw-two,
    .tw-service-page .tw-contact-grid,
    .tw-service-page .tw-notice,
    .tw-service-page .tw-editorial-media,
    .tw-faq-page .tw-faq-filter,
    .tw-network .tw-two {
        grid-template-columns: minmax(0, 1fr);
    }

    .tw-service-page .tw-hero-grid > *,
    .tw-service-page .tw-two > *,
    .tw-service-page .tw-contact-grid > *,
    .tw-service-page .tw-notice > *,
    .tw-service-page .tw-editorial-media > *,
    .tw-faq-page .tw-faq-filter > *,
    .tw-qualification,
    .tw-network .tw-two > * {
        min-width: 0;
    }
}


/* Single-column qualification cards must not keep an intrinsic text width. */
@media (max-width: 760px) {
    .tw-qualification-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Preserve the established high-contrast mode on the new shared surfaces. */
html.tw-a11y-contrast-high body.tw-site .tw-blue-surface {
    background: #e5e7eb !important;
    color: #000000 !important;
    border-color: #6b7280 !important;
}

html.tw-a11y-contrast-high body.tw-site .tw-blue-surface * {
    color: #000000 !important;
}

html.tw-a11y-contrast-high body.tw-site .tw-blue-surface-bg {
    display: none !important;
}
