/* TB-Handwerk, Werdegang-Seite */

.tb-hw {
    --tb-hw-fg: #0E0E2A;
    --tb-hw-mut: #5b5b78;
    --tb-hw-line: #e5e7ee;
    --tb-hw-bg-alt: #f7f8fc;
    --tb-hw-accent: #FF6B2C;
    --tb-hw-accent-bg: rgba(255,107,44,0.10);
    --tb-hw-radius: 14px;
    color: var(--tb-hw-fg);
    line-height: 1.55;
}

.tb-hw__hero {
    padding: clamp(40px, 7vw, 96px) 0 clamp(32px, 6vw, 72px);
    background:
        /* Subtiles Diagonal-Code-Pattern */
        repeating-linear-gradient(
            45deg,
            transparent 0,
            transparent 40px,
            rgba(255, 107, 44, 0.03) 40px,
            rgba(255, 107, 44, 0.03) 41px
        ),
        /* Sanfter Verlauf */
        linear-gradient(180deg, #fff 0%, var(--tb-hw-bg-alt) 100%);
    position: relative;
    overflow: hidden;
}
/* Dezente "Stationen"-Linie als Background-Echo */
.tb-hw__hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 90% 100%, rgba(255, 107, 44, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 5% 5%, rgba(25, 25, 200, 0.05) 0%, transparent 30%);
    pointer-events: none;
    z-index: 0;
}
.tb-hw__hero-inner { position: relative; z-index: 1; }
.tb-hw__hero-inner {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 32px);
}
.tb-hw__eyebrow {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--tb-hw-accent);
    background: var(--tb-hw-accent-bg);
    padding: 5px 12px;
    border-radius: 999px;
    font-weight: 700;
    margin-bottom: 18px;
}
.tb-hw__title {
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.05;
    margin: 0 0 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.tb-hw__title-accent {
    color: var(--tb-hw-accent);
}
.tb-hw__lead {
    font-size: clamp(17px, 1.6vw, 20px);
    color: var(--tb-hw-mut);
    max-width: 720px;
    margin: 0 0 24px;
}
.tb-hw__hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.tb-hw__pill {
    display: inline-block;
    padding: 6px 13px;
    background: #fff;
    border: 1px solid var(--tb-hw-line);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--tb-hw-fg);
}

.tb-hw__section {
    padding: clamp(40px, 6vw, 80px) 0;
    max-width: 1100px;
    margin: 0 auto;
    padding-left: clamp(16px, 4vw, 32px);
    padding-right: clamp(16px, 4vw, 32px);
}
.tb-hw__section--alt {
    max-width: none;
    background: var(--tb-hw-bg-alt);
    padding-left: 0;
    padding-right: 0;
}
.tb-hw__section--alt > * {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(16px, 4vw, 32px);
    padding-right: clamp(16px, 4vw, 32px);
}
.tb-hw__h2 {
    font-size: clamp(26px, 3.5vw, 40px);
    margin: 0 0 12px;
    font-weight: 800;
    letter-spacing: -0.01em;
}
.tb-hw__sub {
    color: var(--tb-hw-mut);
    max-width: 760px;
    margin: 0 0 36px;
    font-size: clamp(15px, 1.4vw, 17px);
}

/* Timeline */
.tb-hw__timeline {
    display: grid;
    gap: 18px;
}
.tb-hw__era {
    background: #fff;
    border: 1px solid var(--tb-hw-line);
    border-radius: var(--tb-hw-radius);
    padding: 22px 26px;
    border-left: 4px solid var(--tb-hw-accent);
}
.tb-hw__era-title {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}
.tb-hw__era-meta {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 4px 16px;
    margin: 0 0 14px;
    font-size: 14px;
}
.tb-hw__era-meta dt {
    font-weight: 700;
    color: var(--tb-hw-mut);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 11px;
    align-self: center;
}
.tb-hw__era-meta dd {
    margin: 0;
    color: var(--tb-hw-fg);
}
.tb-hw__era-story {
    margin: 0;
    color: var(--tb-hw-fg);
    font-size: 15px;
    line-height: 1.6;
}

/* KI-Position 3-Spalten */
.tb-hw__cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}
.tb-hw__col {
    background: #fff;
    border: 1px solid var(--tb-hw-line);
    border-radius: var(--tb-hw-radius);
    padding: 22px 26px;
}
.tb-hw__col h3 {
    font-size: 17px;
    font-weight: 800;
    margin: 0 0 14px;
    letter-spacing: -0.005em;
}
.tb-hw__col ul {
    margin: 0;
    padding-left: 18px;
    color: var(--tb-hw-fg);
    font-size: 14.5px;
    line-height: 1.7;
}
.tb-hw__col li {
    margin-bottom: 6px;
}

/* Portfolio */
.tb-hw__portfolio {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}
.tb-hw__proj {
    background: #fff;
    border: 1px solid var(--tb-hw-line);
    border-radius: var(--tb-hw-radius);
    padding: 22px 24px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.tb-hw__proj--withimg {
    padding: 0;
}
.tb-hw__proj-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #f7f8fc 0%, #eef0f8 100%);
    overflow: hidden;
    border-bottom: 1px solid var(--tb-hw-line);
    display: flex;
    align-items: center;
    justify-content: center;
}
.tb-hw__proj-thumb img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    padding: 12px;
}
.tb-hw__proj--withimg .tb-hw__proj-body {
    padding: 18px 22px 22px;
}
.tb-hw__proj-jahr {
    display: inline-block;
    background: var(--tb-hw-accent-bg);
    color: var(--tb-hw-accent);
    font-size: 12px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 999px;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}
.tb-hw__proj-titel {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 4px;
    letter-spacing: -0.005em;
}
.tb-hw__proj-kunde {
    color: var(--tb-hw-mut);
    font-size: 13px;
    margin: 0 0 10px;
    font-style: italic;
}
.tb-hw__proj-tech {
    font-family: ui-monospace, "SF Mono", Monaco, monospace;
    font-size: 12.5px;
    color: var(--tb-hw-mut);
    margin: 0 0 10px;
    line-height: 1.5;
}
.tb-hw__proj-story {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.6;
}

/* Manifest */
.tb-hw__manifest {
    text-align: center;
    padding: clamp(48px, 8vw, 100px) clamp(16px, 4vw, 32px);
    max-width: 900px;
    margin: 0 auto;
}
.tb-hw__quote {
    margin: 0 auto 32px;
    border: 0;
}
.tb-hw__quote p {
    font-size: clamp(20px, 2.4vw, 30px);
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 14px;
    letter-spacing: -0.01em;
}
.tb-hw__quote footer {
    color: var(--tb-hw-mut);
    font-size: 14px;
    font-style: italic;
}
.tb-hw__cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.tb-hw__btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid var(--tb-hw-line);
    color: var(--tb-hw-fg);
    background: #fff;
    transition: transform 120ms ease, box-shadow 120ms ease;
}
.tb-hw__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(14,14,42,0.08);
}
.tb-hw__btn--primary {
    background: var(--tb-hw-accent);
    color: #fff;
    border-color: var(--tb-hw-accent);
}

/* Mobile */
@media (max-width: 640px) {
    .tb-hw__era-meta {
        grid-template-columns: 1fr;
        gap: 2px;
    }
    .tb-hw__era-meta dt { margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    .tb-hw__btn { transition: none; }
}
