/* TFS-Leitsystem (Thomas Fankhauser Stiftung): Typo, Farbcodes, Top-Navigation (ganze Site) */
@import url("site-tokens.css");

body.tfs-site {
    --tfs-masthead-h: calc(56px + env(safe-area-inset-top, 0px));
    --tfs-content-top: clamp(12px, 3vw, 20px);
    --tfs-page-gutter: clamp(16px, 3vw, 40px);
    --tfs-display: "Space Grotesk", "Inter Tight", system-ui, sans-serif;
    --tfs-body: "IBM Plex Sans", "Inter", system-ui, sans-serif;
    --tfs-mono: "IBM Plex Mono", ui-monospace, monospace;
    font-family: var(--tfs-body);
    background: var(--bg-base) !important;
}

body.tfs-site #p5-background {
    opacity: 0.035;
}

body.tfs-site #readability-scrim {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.6) 0%,
        rgba(255, 255, 255, 0.35) 50%,
        rgba(255, 255, 255, 0.75) 100%
    );
}

.tfs-skip {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 10000;
    padding: 12px 18px;
    background: #0a0a0a;
    color: #fff;
    font-family: var(--tfs-mono);
    font-size: 0.8rem;
    text-decoration: none;
}

.tfs-skip:focus {
    left: 16px;
    top: 16px;
}

.tfs-masthead {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 90;
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 clamp(16px, 3vw, 40px);
    box-sizing: border-box;
    min-height: 56px;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 2px solid #0a0a0a;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.tfs-masthead__bar {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    gap: clamp(12px, 3vw, 32px);
    flex: 0 0 auto;
    min-height: 56px;
    max-width: none;
    margin: 0;
    padding: 0;
}

.tfs-masthead__brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(10px, 2vw, 14px);
    padding: 10px 0;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
    max-width: min(100%, 28rem);
}

.tfs-masthead__logo-wrap {
    --tf-logo-h: clamp(26px, 4.5vw, 40px);
    position: relative;
    display: block;
    flex-shrink: 0;
    height: var(--tf-logo-h);
    width: calc(var(--tf-logo-h) * (300 / 145));
    max-width: min(46vw, 108px);
}

.tfs-masthead__logo-wrap .tfs-masthead__logo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
    border: none;
    border-radius: 0;
    background: transparent;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
}

.tfs-masthead__logo-wrap--done .tfs-masthead__logo--still {
    transform: translateZ(0);
}

.tfs-masthead__logo-wrap--pending .tfs-masthead__logo--still {
    opacity: 1;
}

.tfs-masthead__logo--anim {
    opacity: 0;
    pointer-events: none;
    z-index: 2;
}

.tfs-masthead__logo-wrap--play .tfs-masthead__logo--still {
    animation: tf-logo-land 1.75s ease-out 1 forwards;
}

.tfs-masthead__logo-wrap--play .tfs-masthead__logo--anim {
    animation: tf-logo-intro 1.75s ease-out 1 forwards;
}

.tfs-masthead__logo-wrap--done .tfs-masthead__logo--anim {
    display: none;
}

.tfs-masthead__logo-wrap--done .tfs-masthead__logo--still {
    opacity: 1;
    animation: none;
}

@keyframes tf-logo-intro {
    0% {
        clip-path: inset(0 100% 0 0);
        opacity: 0.95;
        transform: translateX(0);
    }
    48% {
        clip-path: inset(0 0 0 0);
        opacity: 1;
    }
    68% {
        opacity: 0.85;
    }
    72% {
        transform: translateX(-2px);
        opacity: 0.92;
    }
    74% {
        transform: translateX(2px);
    }
    100% {
        clip-path: inset(0 0 0 0);
        opacity: 0;
        transform: none;
    }
}

@keyframes tf-logo-land {
    0%,
    40% {
        opacity: 0;
        filter: contrast(0.55) brightness(0.9);
    }
 100% {
        opacity: 1;
        filter: none;
    }
}

@keyframes tf-logo-land-dark {
    0%,
    40% {
        opacity: 0;
        filter: invert(1) contrast(0.55) brightness(0.9);
    }
    100% {
        opacity: 1;
        filter: invert(1);
    }
}

html.theme-dark .tfs-masthead__logo-wrap--play .tfs-masthead__logo--still,
html.theme-dark .tf-splash__logo-wrap--play .tf-splash__logo--still {
    animation: tf-logo-land-dark 1.75s ease-out 1 forwards;
}

@media (prefers-reduced-motion: reduce) {
    .tfs-masthead__logo-wrap--play .tfs-masthead__logo--anim {
        display: none;
        animation: none;
    }

    .tfs-masthead__logo-wrap--play .tfs-masthead__logo--still {
        animation: none;
        opacity: 1;
        filter: none;
    }
}

body.is-tf-splash-active {
    overflow: hidden;
}

.tf-splash {
    position: fixed;
    inset: 0;
    z-index: 200000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

html.theme-dark .tf-splash {
    background: #000;
}

.tf-splash.is-leaving {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.tf-splash__logo-wrap {
    --tf-logo-h: clamp(88px, 26vw, 156px);
    position: relative;
    display: block;
    height: var(--tf-logo-h);
    width: calc(var(--tf-logo-h) * (300 / 145));
}

.tf-splash__logo-wrap .tf-splash__logo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.tf-splash__logo-wrap--pending .tf-splash__logo--still {
    opacity: 1;
}

.tf-splash__logo--anim {
    opacity: 0;
    pointer-events: none;
    z-index: 2;
}

.tf-splash__logo-wrap--play .tf-splash__logo--still {
    animation: tf-logo-land 1.75s ease-out 1 forwards;
}

.tf-splash__logo-wrap--play .tf-splash__logo--anim {
    animation: tf-logo-intro 1.75s ease-out 1 forwards;
}

@media (prefers-reduced-motion: reduce) {
    .tf-splash {
        display: none !important;
    }
}

.tfs-masthead__brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    min-width: 0;
}

.tfs-masthead__title {
    font-family: var(--tfs-display);
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.tfs-masthead__meta {
    font-family: var(--tfs-mono);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.tfs-masthead__nav {
    display: flex;
    align-items: stretch;
    flex: 1 1 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0;
    min-width: 0;
}

.tfs-masthead__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 clamp(10px, 1.4vw, 16px);
    min-height: 56px;
    font-family: var(--tfs-display);
    font-size: clamp(0.72rem, 1.3vw, 0.82rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    color: var(--text-primary);
    border-left: 1px solid var(--tfs-line);
    transition: background 0.2s ease, color 0.2s ease;
}

.tfs-masthead__idx {
    font-family: var(--tfs-mono);
    font-size: 0.62rem;
    font-weight: 500;
    opacity: 0.45;
}

.tfs-masthead__link-label {
    line-height: 1.15;
}

.tfs-masthead__link-statement {
    display: none;
}

.tfs-masthead__link--me { --tfs-bar: #0a0a0a; }
.tfs-masthead__link--kunst { --tfs-bar: var(--c-kunst-deep); }
.tfs-masthead__link--lehre { --tfs-bar: var(--c-lehre-deep); }
.tfs-masthead__link--go { --tfs-bar: var(--c-go-deep); }
.tfs-masthead__link--projects { --tfs-bar: #0a0a0a; }

button.tfs-masthead__link {
    margin: 0;
    border: none;
    border-left: 1px solid var(--tfs-line);
    background: transparent;
    cursor: pointer;
    font: inherit;
    text-align: inherit;
    -webkit-appearance: none;
    appearance: none;
}

.tfs-masthead__idx--symbol {
    font-family: var(--tfs-display);
    font-size: 1.05em;
    font-weight: 600;
    opacity: 0.85;
    letter-spacing: 0;
}

.tfs-masthead__link--projects .tfs-masthead__link-statement {
    display: none;
}

.tfs-masthead__projects {
    position: relative;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
}

.tfs-masthead__projects-menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 120;
    min-width: min(100vw - 32px, 18rem);
    margin: 0;
    padding: 0;
    list-style: none;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--tfs-line);
    border-top: 2px solid #0a0a0a;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.tfs-masthead__projects-menu[hidden] {
    display: none !important;
}

.tfs-masthead__projects-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--tfs-display);
    font-size: 0.78rem;
    font-weight: 600;
    border-top: 1px solid var(--tfs-line);
    transition: background 0.18s ease;
}

.tfs-masthead__projects-item-wrap:first-child .tfs-masthead__projects-item {
    border-top: none;
}

.tfs-masthead__projects-item:hover,
.tfs-masthead__projects-item:focus-visible {
    background: color-mix(in srgb, #0a0a0a 6%, #fff);
    outline: none;
}

.tfs-masthead__projects-item:focus-visible {
    outline: 2px solid #0a0a0a;
    outline-offset: -2px;
}

.tfs-masthead__projects-item-label {
    line-height: 1.2;
}

.tfs-masthead__projects--open .tfs-masthead__link--projects,
.tfs-masthead__projects--active .tfs-masthead__link--projects {
    background: color-mix(in srgb, #0a0a0a 8%, #fff);
}

.tfs-masthead__projects-item[aria-current="page"] {
    background: color-mix(in srgb, #0a0a0a 10%, #fff);
}

.tfs-masthead__menu-btn {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 52px;
    min-width: 52px;
    height: 56px;
    min-height: 56px;
    margin: 0;
    padding: 0;
    border: none;
    border-left: 1px solid var(--tfs-line);
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    -webkit-appearance: none;
    appearance: none;
}

.tfs-masthead__menu-btn:hover,
.tfs-masthead__menu-btn:focus-visible {
    background: #0a0a0a;
}

.tfs-masthead__menu-btn:focus-visible {
    outline: 2px solid #0a0a0a;
    outline-offset: -2px;
}

.tfs-masthead__menu-icon {
    position: relative;
    display: block;
    width: 22px;
    height: 16px;
}

.tfs-masthead__menu-icon span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 1px;
    background: var(--text-primary);
    transition:
        transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.22s ease,
        top 0.28s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.2s ease;
}

.tfs-masthead__menu-icon span:nth-child(1) {
    top: 0;
}

.tfs-masthead__menu-icon span:nth-child(2) {
    top: 7px;
}

.tfs-masthead__menu-icon span:nth-child(3) {
    top: 14px;
}

.tfs-masthead--menu-open .tfs-masthead__menu-icon span:nth-child(1) {
    top: 7px;
    transform: rotate(45deg);
}

.tfs-masthead--menu-open .tfs-masthead__menu-icon span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0.4);
}

.tfs-masthead--menu-open .tfs-masthead__menu-icon span:nth-child(3) {
    top: 7px;
    transform: rotate(-45deg);
}

.tfs-masthead__menu-btn:hover .tfs-masthead__menu-icon span,
.tfs-masthead__menu-btn:focus-visible .tfs-masthead__menu-icon span {
    background: #fff;
}

.tfs-masthead__backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 88;
    margin: 0;
    padding: 0;
    border: none;
    background: rgba(10, 10, 10, 0.42);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    animation: tfs-menu-backdrop-in 0.25s ease;
}

.tfs-masthead__backdrop[hidden] {
    display: none !important;
}

.tfs-masthead--menu-open .tfs-masthead__backdrop:not([hidden]) {
    display: block;
}

@keyframes tfs-menu-backdrop-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

body.tfs-menu-scroll-lock {
    overflow: hidden;
    overscroll-behavior: none;
}

html.theme-dark .tfs-masthead__menu-btn:hover,
html.theme-dark .tfs-masthead__menu-btn:focus-visible {
    background: #f4f4f4;
}

html.theme-dark .tfs-masthead__menu-btn:hover .tfs-masthead__menu-icon span,
html.theme-dark .tfs-masthead__menu-btn:focus-visible .tfs-masthead__menu-icon span {
    background: #0a0a0a;
}

html.theme-dark .tfs-masthead__backdrop {
    background: rgba(0, 0, 0, 0.65);
}

@media (prefers-reduced-motion: reduce) {
    .tfs-masthead__menu-icon span {
        transition: none;
    }

    .tfs-masthead__backdrop {
        animation: none;
    }
}

.tfs-masthead__link:hover,
.tfs-masthead__link:focus-visible {
    background: color-mix(in srgb, var(--tfs-bar, #0a0a0a) 8%, #fff);
}

.tfs-masthead__link:focus-visible {
    outline: 2px solid var(--tfs-bar, #0a0a0a);
    outline-offset: -2px;
}

body.tfs-site .header {
    padding: 0;
    min-height: 0;
    pointer-events: none;
}

body.tfs-site .main-content {
    padding-top: calc(var(--tfs-masthead-h) + var(--tfs-content-top));
}

body.tfs-site .hero {
    max-width: 1280px;
    margin: 0 auto clamp(20px, 3vw, 32px);
    padding: clamp(4px, 1vw, 12px) clamp(16px, 3vw, 40px) 0;
    text-align: left;
}

body.tfs-site .hero-intro {
    display: block;
    margin: 0;
    padding: 0;
    max-width: min(52rem, 100%);
    text-align: left;
    border-left: none;
}

body.tfs-site .hero-copy-meta {
    font-family: var(--tfs-display);
    font-size: clamp(2.4rem, 7.5vw, 4.75rem);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 0.95;
    margin: 0 0 10px;
    padding-bottom: 12px;
    border-bottom: 4px solid #0a0a0a;
}

body.tfs-site .hero-copy-role {
    font-family: var(--tfs-mono);
    font-size: clamp(0.68rem, 1.2vw, 0.78rem);
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--text-primary);
    border-top: 1px solid var(--tfs-line);
    border-bottom: 1px solid var(--tfs-line);
    padding: 10px 0;
    margin: 12px 0 0;
}

body.tfs-site .hero-text-short {
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    line-height: 1.65;
    max-width: 42rem;
    margin: 16px 0 0;
    color: var(--text-secondary);
}

.tfs-areas-kicker {
    font-family: var(--tfs-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: clamp(20px, 3vw, 32px) auto 8px;
    max-width: 1280px;
    text-align: left;
    padding: 0 clamp(16px, 3vw, 40px);
}

.tfs-areas-title {
    font-family: var(--tfs-display);
    font-size: clamp(1.6rem, 4vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 auto 10px;
    max-width: 940px;
    text-align: left;
    padding: 0 clamp(8px, 2vw, 12px);
    line-height: 1.05;
}

.tfs-areas-lead {
    font-size: clamp(0.88rem, 1.3vw, 0.98rem);
    line-height: 1.55;
    color: var(--text-muted);
    margin: 0 auto clamp(16px, 3vw, 24px);
    max-width: 940px;
    text-align: left;
    padding: 0 clamp(8px, 2vw, 12px);
}

body.tfs-site .solar-stage-wrap {
    background: #f4f4f4;
    border: 2px solid #0a0a0a;
    border-radius: 0;
    box-shadow: 8px 8px 0 rgba(10, 10, 10, 0.08);
}

body.tfs-site .solar-planet-label {
    font-family: var(--tfs-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

body.tfs-site .solar-planet-subtitle {
    font-family: var(--tfs-mono);
    font-size: clamp(0.4rem, 8cqi, 0.58rem) !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

body.tfs-site .solar-sun-body {
    box-shadow:
        inset 0 0 0 3px #0a0a0a,
        0 16px 32px rgba(10, 10, 10, 0.18) !important;
}

body.tfs-site .profile-seo {
    max-width: 1280px;
    text-align: left;
    padding: clamp(32px, 5vw, 56px) clamp(16px, 3vw, 40px) 0;
    border-top: 2px solid #0a0a0a;
    margin-top: clamp(32px, 5vw, 48px);
}

body.tfs-site .profile-seo__lead {
    max-width: 42rem;
    font-size: clamp(0.95rem, 1.4vw, 1.05rem);
    line-height: 1.6;
    color: var(--text-secondary);
    text-align: left;
    margin: 0;
}

body.tfs-site .profile-seo__links {
    display: grid;
    grid-template-columns: repeat(15, minmax(0, 1fr));
    margin-top: 24px;
    gap: 0;
    border: 1px solid var(--tfs-line);
}

body.tfs-site .profile-seo__links a {
    min-width: 0;
    padding: 14px 16px;
    font-family: var(--tfs-mono);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--tfs-line);
    border-right: 1px solid var(--tfs-line);
    transition: background 0.2s ease, color 0.2s ease;
}

/* Zeile 1: 00–02 je 5/15 (breiter); Zeile 2: 03–07 je 3/15, gleiche Breite */
body.tfs-site .profile-seo__links a:nth-child(-n + 3) {
    grid-column: span 5;
}

body.tfs-site .profile-seo__links a:nth-child(3) {
    border-right: none;
}

body.tfs-site .profile-seo__links a:nth-child(n + 4) {
    grid-column: span 3;
    border-bottom: none;
}

body.tfs-site .profile-seo__links a:nth-child(8) {
    border-right: none;
}

body.tfs-site .profile-seo__links a:hover {
    background: #0a0a0a;
    color: #fff;
    border-color: #0a0a0a;
}

body.tfs-site .site-social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem 1.25rem;
    padding: clamp(20px, 3vw, 32px) clamp(16px, 3vw, 40px)
        max(32px, calc(env(safe-area-inset-bottom, 0px) + 24px));
}

body.tfs-site .site-social .social-link {
    order: 1;
}

body.tfs-site .site-social .site-legal {
    flex: 1 0 100%;
    justify-content: center;
    order: 2;
    margin: 0.15rem 0 0;
}

.site-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.85rem;
    font-family: var(--tfs-mono);
}

.site-legal a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

body.tfs-site .social-link {
    border-radius: 0;
    border: 2px solid #0a0a0a;
    background: #fff;
}

body.tfs-site .popup-card {
    border-radius: 0;
    border: 2px solid #0a0a0a;
    box-shadow: 12px 12px 0 rgba(10, 10, 10, 0.1);
}

body.tfs-site .popup-content h2,
body.tfs-site .popup-content h3 {
    font-family: var(--tfs-display);
}

body.tfs-site .play-mode-enter:not(.play-mode-enter--in-game),
body.tfs-site .solar-pause {
    border-radius: 0;
    border: 2px solid #0a0a0a;
    font-family: var(--tfs-mono);
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

html.theme-dark body.tfs-site .tfs-masthead {
    background: #000;
    border-bottom-color: #f4f4f4;
    color: #f4f4f4;
}

html.theme-dark body.tfs-site #p5-background {
    opacity: 0 !important;
}

html[data-tf-visual-algo="universe"] body.tfs-site[data-tfs-section="home"] #p5-background {
    opacity: 1 !important;
}

html[data-tf-visual-algo="universe"] body.tfs-site[data-tfs-section="home"] #readability-scrim {
    opacity: 0 !important;
}

html[data-tf-visual-algo="universe"] body.tfs-site[data-tfs-section="home"] .solar-stage-wrap {
    background: transparent;
    box-shadow: none;
}

html.theme-dark body.tfs-site #readability-scrim {
    background: #000 !important;
    opacity: 0 !important;
}

html.theme-dark .tfs-masthead__logo-wrap {
    background: transparent;
}

html.theme-dark .tfs-masthead__logo-wrap .tfs-masthead__logo {
    filter: invert(1);
}

html.theme-dark body.tfs-site .tfs-masthead__tools .lang-btn:hover,
html.theme-dark body.tfs-site .tfs-masthead__tools .theme-toggle:hover {
    background: #f4f4f4;
    color: #000;
}

html.theme-dark body.tfs-site .solar-stage-wrap {
    background: #000;
    border-color: #f4f4f4;
}

@media (max-width: 860px) {
    body.tfs-site {
        --tfs-masthead-h: calc(56px + env(safe-area-inset-top, 0px));
        --tfs-page-gutter: clamp(16px, 3vw, 24px);
        --tfs-intro-pad: clamp(12px, 2.5vw, 18px);
    }

    body.tfs-site .hero {
        margin-top: 0;
        padding-top: 0;
    }

    .tfs-masthead {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "brand tools";
        align-items: stretch;
        max-width: none;
        width: 100%;
        padding: 0;
        padding-top: env(safe-area-inset-top, 0px);
        min-height: calc(56px + env(safe-area-inset-top, 0px));
    }

    .tfs-masthead__menu-btn {
        display: flex;
    }

    .tfs-masthead__bar {
        grid-area: brand;
        flex: none;
        width: auto;
        justify-content: flex-start;
        min-height: 56px;
    }

    .tfs-masthead__brand {
        flex: 1 1 auto;
        min-width: 0;
        padding: 8px clamp(14px, 3vw, 20px);
        max-width: none;
    }

    .tfs-masthead:not(.tfs-masthead--menu-open) .tfs-masthead__nav,
    .tfs-masthead__nav[hidden] {
        display: none !important;
    }

    .tfs-masthead__logo-wrap {
        --tf-logo-h: clamp(36px, 10vw, 44px);
        width: calc(var(--tf-logo-h) * (300 / 145));
        min-width: calc(var(--tf-logo-h) * (300 / 145));
        max-width: none;
        flex-shrink: 0;
    }

    .tfs-masthead__logo-wrap .tfs-masthead__logo {
        opacity: 1 !important;
        filter: none !important;
        animation: none !important;
    }

    html.theme-dark .tfs-masthead__logo-wrap .tfs-masthead__logo {
        filter: invert(1) !important;
    }

    html.theme-dark .tfs-masthead__logo-wrap--play .tfs-masthead__logo--still {
        animation: tf-logo-land-dark 1.75s ease-out 1 forwards !important;
    }

    html.theme-dark body.tfs-site .tfs-masthead__link[aria-current="page"] {
        background: #f4f4f4;
        color: #0a0a0a;
        border-top-color: #f4f4f4;
    }

    .tfs-masthead__brand-text {
        min-width: 0;
        flex: 1;
    }

    .tfs-masthead__title {
        white-space: normal;
        font-size: clamp(0.92rem, 4.2vw, 1.05rem);
    }

    .tfs-masthead__meta {
        display: none;
    }

    .tfs-masthead--menu-open .tfs-masthead__nav {
        position: fixed;
        top: var(--tfs-masthead-h, 56px);
        left: 0;
        right: 0;
        z-index: 91;
        display: flex !important;
        flex: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        max-height: min(72dvh, calc(100dvh - var(--tfs-masthead-h, 56px) - 12px));
        margin: 0;
        padding: 0;
        border: none;
        border-top: 2px solid #0a0a0a;
        border-bottom: 2px solid #0a0a0a;
        box-sizing: border-box;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 18px 40px rgba(10, 10, 10, 0.14);
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        animation: tfs-menu-panel-in 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    @keyframes tfs-menu-panel-in {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    html.theme-dark body.tfs-site .tfs-masthead__nav {
        background: rgba(0, 0, 0, 0.96);
        border-top-color: #f4f4f4;
        border-bottom-color: #f4f4f4;
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    }

    body.tfs-site .tfs-masthead__tools {
        grid-area: tools;
        flex: none;
        border-left: 1px solid var(--tfs-line);
        border-top: none;
        justify-content: flex-end;
        width: auto;
        min-height: 56px;
        align-self: stretch;
    }

    body.tfs-site .tfs-masthead__tools .lang-btn,
    body.tfs-site .tfs-masthead__tools .theme-toggle {
        min-height: 56px;
    }

    .tfs-masthead__link {
        display: flex;
        flex: none;
        justify-content: flex-start;
        align-items: center;
        gap: 12px;
        border-left: none;
        border-right: none;
        border-bottom: 1px solid var(--tfs-line);
        border-top: 3px solid transparent;
        min-height: 54px;
        min-width: 0;
        padding: 10px clamp(18px, 5vw, 28px);
        flex-direction: row;
        font-size: clamp(0.82rem, 3.6vw, 0.95rem);
        text-align: left;
        box-shadow: none;
    }

    .tfs-masthead__link:last-of-type {
        border-bottom: none;
    }

    .tfs-masthead__projects {
        width: 100%;
        border-top: 1px solid var(--tfs-line);
    }

    .tfs-masthead__projects .tfs-masthead__link--projects {
        width: 100%;
        justify-content: flex-start;
        border-left: none;
        border-right: none;
        border-bottom: none;
    }

    .tfs-masthead__link--projects .tfs-masthead__link-statement {
        display: inline;
        margin-left: auto;
        font-size: 0.58rem;
    }

    .tfs-masthead__projects-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border-left: none;
        border-right: none;
        border-bottom: none;
        border-top: 1px solid var(--tfs-line);
    }

    .tfs-masthead__projects-item {
        justify-content: flex-start;
        padding: 12px clamp(18px, 5vw, 28px);
        min-height: 48px;
    }

    .tfs-masthead__link[aria-current="page"] {
        border-top-color: var(--tfs-bar, #0a0a0a);
        box-shadow: none;
    }

    .tfs-masthead__idx {
        font-size: 0.62rem;
        opacity: 0.5;
        min-width: 1.6rem;
    }

    .tfs-masthead__link-statement {
        display: block;
        font-family: var(--tfs-mono);
        font-size: 0.58rem;
        font-weight: 500;
        line-height: 1.2;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: var(--text-muted);
        max-width: 100%;
        padding: 0;
        word-break: break-word;
        hyphens: auto;
    }

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

    html:not(.theme-dark) .tfs-masthead__link[aria-current="page"] .tfs-masthead__link-statement {
        color: color-mix(in srgb, var(--tfs-bar, #0a0a0a) 55%, var(--text-muted));
    }

    html.theme-dark body.tfs-site .tfs-masthead__link[aria-current="page"],
    html.theme-dark body.tfs-site .tfs-masthead__link[aria-current="page"]:hover,
    html.theme-dark body.tfs-site .tfs-masthead__link[aria-current="page"]:focus-visible {
        color: #0a0a0a;
    }

    html.theme-dark body.tfs-site .tfs-masthead__link[aria-current="page"] .tfs-masthead__idx,
    html.theme-dark body.tfs-site .tfs-masthead__link[aria-current="page"] .tfs-masthead__link-label,
    html.theme-dark body.tfs-site .tfs-masthead__link[aria-current="page"] .tfs-masthead__link-statement,
    html.theme-dark body.tfs-site .tfs-masthead__link[aria-current="page"]:hover .tfs-masthead__idx,
    html.theme-dark body.tfs-site .tfs-masthead__link[aria-current="page"]:hover .tfs-masthead__link-label,
    html.theme-dark body.tfs-site .tfs-masthead__link[aria-current="page"]:hover .tfs-masthead__link-statement,
    html.theme-dark body.tfs-site .tfs-masthead__link[aria-current="page"]:focus-visible .tfs-masthead__idx,
    html.theme-dark body.tfs-site .tfs-masthead__link[aria-current="page"]:focus-visible .tfs-masthead__link-label,
    html.theme-dark body.tfs-site .tfs-masthead__link[aria-current="page"]:focus-visible .tfs-masthead__link-statement {
        color: #0a0a0a;
        opacity: 1;
    }

    html.theme-dark body.tfs-site .tfs-masthead__link[aria-current="page"] .tfs-masthead__idx,
    html.theme-dark body.tfs-site .tfs-masthead__link[aria-current="page"]:hover .tfs-masthead__idx,
    html.theme-dark body.tfs-site .tfs-masthead__link[aria-current="page"]:focus-visible .tfs-masthead__idx {
        opacity: 0.55;
    }

    html.theme-dark body.tfs-site .tfs-masthead__link[aria-current="page"] .tfs-masthead__link-statement,
    html.theme-dark body.tfs-site .tfs-masthead__link[aria-current="page"]:hover .tfs-masthead__link-statement,
    html.theme-dark body.tfs-site .tfs-masthead__link[aria-current="page"]:focus-visible .tfs-masthead__link-statement {
        color: color-mix(in srgb, var(--tfs-bar, #0a0a0a) 45%, #0a0a0a);
    }

    body.tfs-site .hero-copy-meta {
        font-size: clamp(2rem, 11vw, 2.75rem);
    }

    body.tfs-site .profile-seo__links {
        display: flex;
        flex-direction: column;
    }

    body.tfs-site .profile-seo__links a {
        min-width: 100%;
        border-right: none;
        grid-column: auto;
        font-size: 0.78rem;
        padding: 14px 16px;
        border-bottom: 1px solid var(--tfs-line);
    }

    body.tfs-site .profile-seo__links a:nth-child(n + 4) {
        border-bottom: 1px solid var(--tfs-line);
    }

    body.tfs-site .profile-seo__links a:last-child {
        border-bottom: none;
    }
}

/* --- Unterseiten: Masthead, Lang, alte Startseiten-Pfeile --- */

body.tfs-site .nav-home {
    display: none !important;
}

body.tfs-site .tfs-masthead__tools {
    display: flex;
    align-items: center;
    border-left: 1px solid var(--tfs-line);
    padding: 0 4px;
}

body.tfs-site .tfs-masthead__tools .lang-btn {
    position: static !important;
    top: auto !important;
    right: auto !important;
    min-height: 56px;
    border-radius: 0;
    border: none;
    padding: 0 14px;
    font-family: var(--tfs-mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    background: transparent;
}

body.tfs-site .tfs-masthead__tools .lang-btn:hover {
    background: #0a0a0a;
    color: #fff;
}

body.tfs-site .tfs-masthead__link[aria-current="page"] {
    background: color-mix(in srgb, var(--tfs-bar, #0a0a0a) 12%, #fff);
    font-weight: 700;
    box-shadow: inset 0 3px 0 var(--tfs-bar, #0a0a0a);
}

html.theme-dark body.tfs-site .tfs-masthead__link {
    color: #f4f4f4;
}

html.theme-dark body.tfs-site .tfs-masthead__link:hover,
html.theme-dark body.tfs-site .tfs-masthead__link:focus-visible {
    background: color-mix(in srgb, #f4f4f4 8%, #000);
    color: #f4f4f4;
}

html.theme-dark body.tfs-site .tfs-masthead__link[aria-current="page"] {
    background: #f4f4f4;
    color: #0a0a0a;
    box-shadow: inset 0 3px 0 #f4f4f4;
}

html.theme-dark body.tfs-site .tfs-masthead__link[aria-current="page"]:hover,
html.theme-dark body.tfs-site .tfs-masthead__link[aria-current="page"]:focus-visible {
    background: #f4f4f4;
    color: #0a0a0a;
}

html.theme-dark body.tfs-site .tfs-masthead__link[aria-current="page"] .tfs-masthead__idx,
html.theme-dark body.tfs-site .tfs-masthead__link[aria-current="page"] .tfs-masthead__link-label,
html.theme-dark body.tfs-site .tfs-masthead__link[aria-current="page"] .tfs-masthead__link-statement,
html.theme-dark body.tfs-site .tfs-masthead__link[aria-current="page"]:hover .tfs-masthead__idx,
html.theme-dark body.tfs-site .tfs-masthead__link[aria-current="page"]:hover .tfs-masthead__link-label,
html.theme-dark body.tfs-site .tfs-masthead__link[aria-current="page"]:hover .tfs-masthead__link-statement,
html.theme-dark body.tfs-site .tfs-masthead__link[aria-current="page"]:focus-visible .tfs-masthead__idx,
html.theme-dark body.tfs-site .tfs-masthead__link[aria-current="page"]:focus-visible .tfs-masthead__link-label,
html.theme-dark body.tfs-site .tfs-masthead__link[aria-current="page"]:focus-visible .tfs-masthead__link-statement {
    color: #0a0a0a;
    opacity: 1;
}

html.theme-dark body.tfs-site .tfs-masthead__link[aria-current="page"] .tfs-masthead__idx,
html.theme-dark body.tfs-site .tfs-masthead__link[aria-current="page"]:hover .tfs-masthead__idx,
html.theme-dark body.tfs-site .tfs-masthead__link[aria-current="page"]:focus-visible .tfs-masthead__idx {
    opacity: 0.55;
}

html.theme-dark body.tfs-site .tfs-masthead__projects-menu {
    background: rgba(0, 0, 0, 0.96);
    border-color: #333;
    border-top-color: #f4f4f4;
}

html.theme-dark body.tfs-site .tfs-masthead__projects-item {
    color: #f4f4f4;
    border-top-color: #333;
}

html.theme-dark body.tfs-site .tfs-masthead__projects-item:hover,
html.theme-dark body.tfs-site .tfs-masthead__projects-item:focus-visible {
    background: color-mix(in srgb, #f4f4f4 8%, #000);
}

html.theme-dark body.tfs-site .tfs-masthead__projects--open .tfs-masthead__link--projects,
html.theme-dark body.tfs-site .tfs-masthead__projects--active .tfs-masthead__link--projects {
    background: color-mix(in srgb, #f4f4f4 10%, #000);
}

html.theme-dark body.tfs-site .tfs-masthead__projects-item[aria-current="page"] {
    background: color-mix(in srgb, #f4f4f4 12%, #000);
}

html.theme-dark body.tfs-site .tfs-masthead__projects-item:focus-visible {
    outline-color: #f4f4f4;
}

body.tfs-site .header:has(.tfs-masthead__tools .lang-btn),
body.tfs-site .header:empty {
    display: none;
}

body.tfs-site .title,
body.tfs-site .page-title {
    font-family: var(--tfs-display);
    font-weight: 700;
    letter-spacing: -0.03em;
}

body.tfs-site .planet-accent-tag {
    font-family: var(--tfs-mono);
    border-radius: 0;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.65rem;
    background: #0a0a0a;
    color: #fff;
    border: none;
}

body.tfs-site .ueber-main,
body.tfs-site .kunst-main,
body.tfs-site .go-main,
body.tfs-site .patternlab-main {
    padding-top: calc(var(--tfs-masthead-h) + var(--tfs-content-top));
    max-width: 1280px;
    margin: 0 auto;
    padding-left: var(--tfs-page-gutter) !important;
    padding-right: var(--tfs-page-gutter) !important;
    box-sizing: border-box;
}

body.tfs-site .ueber-intro__role,
body.tfs-site .kunst-intro__role,
body.tfs-site .go-intro__role {
    font-family: var(--tfs-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-top: 1px solid var(--tfs-line);
    border-bottom: 1px solid var(--tfs-line);
    padding: 10px 0;
}

body.tfs-site .ueber-section-title,
body.tfs-site .text-block__title,
body.tfs-site .go-kifu__title {
    font-family: var(--tfs-display);
    font-weight: 700;
}

body.tfs-site #p5-background {
    opacity: 0.03 !important;
}

/* Sprache nur in Masthead — kein zweiter Lang-Button im Seitenkopf */
body.tfs-site .header > .lang-btn,
body.tfs-site .header > #lang-switch {
    display: none !important;
}

/* Unterseiten: kein zweiter Seitenkopf (nur Masthead + Main-Intro) */
body.tfs-site[data-tfs-section="me"] > .header#header,
body.tfs-site[data-tfs-section="go"] > .header#header,
body.tfs-site[data-tfs-section="patternlab"] > .header#header {
    display: none !important;
}

body.tfs-site[data-tfs-section="kunst"] .header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: calc(var(--tfs-masthead-h) + var(--tfs-content-top)) var(--tfs-page-gutter)
        clamp(10px, 2vw, 16px);
    box-sizing: border-box;
}

body.tfs-site[data-tfs-section="kunst"] .header-container .header {
    position: relative !important;
    top: auto !important;
    padding: 0 !important;
    margin: 0;
    text-align: left;
    align-items: flex-start;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
}

body.tfs-site[data-tfs-section="kunst"] .header-container .page-title {
    font-family: var(--tfs-display);
    font-weight: 700;
    font-size: clamp(1.65rem, 4.4vw, 2.35rem);
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 0;
    padding: 0;
    max-width: 42rem;
    text-align: left;
    color: var(--text-primary);
    background: none;
    border: none;
    filter: none;
    text-shadow: none;
    -webkit-text-fill-color: var(--text-primary);
}


body.tfs-site[data-portfolio] .header-container {
    display: none !important;
}

body.tfs-site[data-portfolio] main.portfolio {
    padding-top: calc(var(--tfs-masthead-h) + var(--tfs-content-top)) !important;
}

body.tfs-site[data-tfs-section="lehre"] .header-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(10px, 1.5vw, 14px);
    width: 100%;
    margin: 0 0 clamp(16px, 2.5vw, 24px);
    text-align: left;
}

body.tfs-site[data-tfs-section="lehre"] .header-brand .title {
    font-family: var(--tfs-display);
    font-weight: 700;
    font-size: clamp(1.65rem, 4.4vw, 2.35rem);
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 0;
    padding: 0;
    max-width: 42rem;
    text-align: left;
    color: var(--text-primary);
}

body.tfs-site[data-tfs-section="lehre"] .planet-accent-tag--lehre {
    background: var(--c-lehre-deep);
    color: #fff;
}

body.tfs-site[data-tfs-section="lehre"] .header-container .header {
    position: relative !important;
    top: auto !important;
    padding: 0 !important;
    margin: 0;
    text-align: left;
    align-items: flex-start;
    pointer-events: auto;
}

body.tfs-site[data-portfolio] main.portfolio {
    max-width: 1280px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: clamp(40px, 6vw, 72px);
    padding-left: var(--tfs-page-gutter) !important;
    padding-right: var(--tfs-page-gutter) !important;
    box-sizing: border-box;
}

body.tfs-site[data-portfolio] main.portfolio.portfolio--public,
body.tfs-site[data-portfolio] main.portfolio.portfolio--full {
    width: 100%;
    max-width: 1280px;
}

body.tfs-site[data-portfolio] .page-title {
    font-family: var(--tfs-display);
}

body.tfs-site[data-tfs-section="me"] {
    --ueber-rail: calc(10px + 2.5rem + 16px);
}


body.tfs-site[data-tfs-section="me"] .ueber-collab {
    max-width: 42rem;
    margin-top: 6rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

body.tfs-site[data-tfs-section="me"] .ueber-collab .ueber-section-title,
body.tfs-site[data-tfs-section="me"] .ueber-collab__title {
    padding-left: 0;
    text-align: center;
    margin-bottom: clamp(20px, 3vw, 28px);
}

body.tfs-site[data-tfs-section="me"] .ueber-collab__lead {
    font-family: var(--tfs-body);
    font-size: clamp(0.95rem, 1.2vw, 1.02rem);
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 0 auto clamp(24px, 3.5vw, 32px);
    max-width: 34em;
    padding: 0 10px;
}

body.tfs-site[data-tfs-section="me"] .ueber-collab__body {
    font-family: var(--tfs-body);
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin: clamp(28px, 4vw, 36px) auto 0;
    max-width: 34em;
    padding: 0 10px;
}

body.tfs-site[data-tfs-section="me"] .collab-index {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--tfs-line);
}

body.tfs-site[data-tfs-section="me"] .collab-index__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    align-items: center;
    padding: 16px 10px;
    border-bottom: 1px solid var(--tfs-line);
    text-align: center;
}

body.tfs-site[data-tfs-section="me"] .collab-index__topic {
    font-family: var(--tfs-display);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.45;
}

body.tfs-site[data-tfs-section="me"] .collab-index__desc {
    font-family: var(--tfs-body);
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--text-secondary);
}

body.tfs-site[data-tfs-section="me"] .ueber-collab__cta {
    margin: clamp(28px, 4vw, 40px) 0 0;
    padding-left: 0;
    text-align: center;
}

body.tfs-site[data-tfs-section="me"] .ueber-collab__cta a {
    display: inline-block;
    font-family: var(--tfs-mono);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--text-primary);
    text-decoration: none;
    padding: 12px 16px;
    border: 2px solid #0a0a0a;
    transition: background 0.2s ease, color 0.2s ease;
}

body.tfs-site[data-tfs-section="me"] .ueber-collab__cta a:hover {
    background: #0a0a0a;
    color: #fff;
}

body.tfs-site[data-tfs-section="me"] .ueber-intro {
    text-align: left;
    max-width: 42rem;
    margin-bottom: clamp(48px, 7vw, 72px);
    padding-left: 0;
    border-left: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    box-sizing: border-box;
}

body.tfs-site[data-tfs-section="me"] .ueber-intro > .ueber-intro__role {
    width: 100%;
    box-sizing: border-box;
}

body.tfs-site[data-tfs-section="me"] .ueber-intro__copy {
    border-left: 4px solid #0a0a0a;
    padding-left: var(--tfs-intro-pad, clamp(16px, 2.5vw, 28px));
    min-width: 0;
    margin-top: clamp(4px, 1vw, 10px);
}

body.tfs-site[data-tfs-section="me"] :is(.ueber-vita, .ueber-teaching, .ueber-collab, .ueber-projects) {
    max-width: 42rem;
    margin-left: 0;
    margin-right: auto;
}

/* Intro-Porträt in der Box unter der Kicker-Zeile (Über mich + Kunst) */
body.tfs-site[data-tfs-section="me"] .ueber-intro__copy .ueber-portrait--intro,
body.tfs-site[data-tfs-section="kunst"] .kunst-intro__copy .einohm-portrait--intro {
    display: block;
    width: clamp(120px, 17vw, 168px);
    height: clamp(120px, 17vw, 168px);
    margin: clamp(14px, 2.2vw, 20px) auto clamp(18px, 2.8vw, 26px);
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--tfs-line);
    box-shadow: none;
    background: #e8e8e8;
    flex-shrink: 0;
}

body.tfs-site[data-tfs-section="me"] .ueber-intro__copy .ueber-portrait--intro img,
body.tfs-site[data-tfs-section="kunst"] .kunst-intro__copy .einohm-portrait--intro img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: center center;
    display: block;
}

body.tfs-site[data-tfs-section="me"] .ueber-intro__copy .ueber-portrait--intro img {
    object-position: var(--tf-portrait-object-position-flat);
    transform: scale(var(--tf-portrait-scale));
}

body.tfs-site[data-tfs-section="kunst"] .kunst-intro__copy .einohm-portrait--intro img {
    filter: contrast(1.04) brightness(1);
}

body.tfs-site[data-tfs-section="kunst"] .kunst-intro__copy .einohm-portrait--intro img {
    object-position: 40% 16%;
    transform: scale(1.38);
}

html.theme-dark body.tfs-site[data-tfs-section="me"] .ueber-intro__copy .ueber-portrait--intro,
html.theme-dark body.tfs-site[data-tfs-section="kunst"] .kunst-intro__copy .einohm-portrait--intro {
    background: #17171a;
}

html.theme-dark body.tfs-site[data-tfs-section="me"] .ueber-intro__copy .ueber-portrait--intro img,
html.theme-dark body.tfs-site[data-tfs-section="kunst"] .kunst-intro__copy .einohm-portrait--intro img {
    filter: brightness(0.68) contrast(1.04) saturate(0.82);
}

body.tfs-site[data-tfs-section="me"] .ueber-intro__role {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    color: var(--text-primary);
}

body.tfs-site[data-tfs-section="me"] .ueber-intro__lead,
body.tfs-site[data-tfs-section="me"] .ueber-intro__body,
body.tfs-site[data-tfs-section="me"] .ueber-intro__framing {
    font-family: var(--tfs-body);
    font-weight: 400;
    font-size: clamp(1.02rem, 1.45vw, 1.12rem);
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 0 0 1.25em;
}

body.tfs-site[data-tfs-section="me"] .ueber-section-title {
    text-align: left;
    margin-bottom: clamp(20px, 3vw, 28px);
}

body.tfs-site[data-tfs-section="me"] .ueber-teaching__lead,
body.tfs-site[data-tfs-section="me"] .ueber-projects__lead {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

body.tfs-site[data-tfs-section="me"] .ueber-projects {
    text-align: left;
}

body.tfs-site[data-tfs-section="me"] .ueber-stand {
    font-family: var(--tfs-mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    text-align: left;
    max-width: 42rem;
    margin: clamp(48px, 7vw, 72px) 0 0;
    padding: clamp(20px, 3vw, 28px) 10px 0 var(--ueber-rail);
    border-top: 1px solid var(--tfs-line);
}

body.tfs-site .project-index {
    list-style: none;
    margin: 0;
    padding: 0;
    font-family: var(--tfs-mono);
    font-size: 0.82rem;
}

body.tfs-site .project-index__row {
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr);
    gap: 10px 16px;
    align-items: start;
    padding: 14px 10px;
    margin: 0;
    border: 0;
    border-bottom: 1px solid var(--tfs-line);
    border-radius: 0;
    background: transparent;
    text-decoration: none;
    color: inherit;
    text-align: left;
    transition: background 0.2s ease;
}

body.tfs-site .project-index__idx {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    padding-top: 2px;
}

body.tfs-site .project-index__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 16px;
    min-width: 0;
}

body.tfs-site .project-index__name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

body.tfs-site .project-index__icon {
    width: 1.35rem;
    height: 1.35rem;
    flex: 0 0 1.35rem;
    color: var(--text-primary);
    opacity: 0.92;
}

body.tfs-site .project-index__icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

body.tfs-site .project-index__head {
    margin: 0 0 12px;
    font-family: var(--tfs-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: lowercase;
    color: var(--text-muted);
}

body.tfs-site .project-index__name {
    font-family: var(--tfs-display);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

body.tfs-site .project-index__host {
    justify-self: end;
    color: var(--text-muted);
    font-size: 0.78rem;
    white-space: nowrap;
}

body.tfs-site .project-index__desc {
    grid-column: 1 / -1;
    font-family: var(--tfs-body);
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.55;
}

body.tfs-site a.project-index__row:hover,
body.tfs-site a.project-index__row:focus-visible,
body.tfs-site button.project-index__row:hover,
body.tfs-site button.project-index__row:focus-visible {
    background: color-mix(in srgb, #0a0a0a 5%, #fff);
}

body.tfs-site a.project-index__row:focus-visible,
body.tfs-site button.project-index__row:focus-visible {
    outline: 2px solid #0a0a0a;
    outline-offset: -2px;
}

body.tfs-site button.project-index__row {
    cursor: pointer;
    width: 100%;
    font: inherit;
}

html.theme-dark body.tfs-site a.project-index__row:hover,
html.theme-dark body.tfs-site a.project-index__row:focus-visible,
html.theme-dark body.tfs-site button.project-index__row:hover,
html.theme-dark body.tfs-site button.project-index__row:focus-visible {
    background: color-mix(in srgb, #f4f4f4 8%, #000);
    color: #f4f4f4;
}

html.theme-dark body.tfs-site a.project-index__row:focus-visible,
html.theme-dark body.tfs-site button.project-index__row:focus-visible {
    outline-color: #f4f4f4;
}

body.tfs-site[data-tfs-section="me"] .ueber-projects__nav.project-index {
    max-width: 42rem;
    margin: 0;
    border-top: 2px solid #0a0a0a;
}

body.tfs-site[data-tfs-section="me"] .vita-item {
    border-top-color: var(--tfs-line);
}

body.tfs-site[data-tfs-section="me"] .vita-item__body strong {
    font-family: var(--tfs-display);
}

body.tfs-site[data-tfs-section="me"] .teach-bar__fill {
    background: #0a0a0a;
}

@media (max-width: 600px) {
    body.tfs-site .project-index__body {
        grid-template-columns: 1fr;
    }

    body.tfs-site .project-index__host {
        justify-self: start;
    }

}

/* --- Lehre-Portfolio: warme Alt-Styles → weisses Raster + Lehr-Akzent --- */

body.tfs-site[data-tfs-section="lehre"] {
  --hex-philosophie: #4a7d9e;
  --hex-philosophie-fill: color-mix(in srgb, var(--hex-philosophie) 13%, #fff);
  --hex-biografie: #b87448;
  --hex-biografie-fill: color-mix(in srgb, var(--hex-biografie) 13%, #fff);
  --hex-werte: #b85a5a;
  --hex-werte-fill: color-mix(in srgb, var(--hex-werte) 12%, #fff);
  --hex-menschenbild: #4d8a63;
  --hex-menschenbild-fill: color-mix(in srgb, var(--hex-menschenbild) 12%, #fff);
  --hex-vorbilder: #6d5f9e;
  --hex-vorbilder-fill: color-mix(in srgb, var(--hex-vorbilder) 12%, #fff);
  --hex-ziele: #a88a42;
  --hex-ziele-fill: color-mix(in srgb, var(--hex-ziele) 14%, #fff);
  --hex-selbst: var(--c-lehre);
  --hex-selbst-fill: color-mix(in srgb, var(--c-lehre) 12%, #fff);
}

body.tfs-site[data-tfs-section="lehre"] .quote-in-header {
  width: 100%;
  max-width: none;
  margin: 0;
  text-align: left;
}

body.tfs-site[data-tfs-section="lehre"] .quote-in-header .quote-text {
  font-family: var(--tfs-body);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(1rem, 1.45vw, 1.1rem);
  line-height: 1.65;
  color: var(--text-secondary);
  padding: clamp(16px, 2.5vw, 22px);
  background: color-mix(in srgb, var(--c-lehre-deep) 5%, #fff);
  border: 1px solid var(--tfs-line);
  border-left: 4px solid var(--c-lehre-deep);
  border-radius: 0;
  box-shadow: none;
}

/* Lehre: gleiches Intro-Raster wie Kunst */
body.tfs-site[data-portfolio="FULL"] main.portfolio > .lehre-intro {
    max-width: none;
}

body.tfs-site[data-tfs-section="lehre"] .lehre-intro {
    text-align: left !important;
    max-width: 42rem;
    margin: 0 0 clamp(40px, 6vw, 56px);
    border-left: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    box-sizing: border-box;
}

body.tfs-site[data-tfs-section="lehre"] .lehre-intro > .kunst-intro__role {
    width: 100%;
    box-sizing: border-box;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    color: var(--text-primary);
}

body.tfs-site[data-tfs-section="lehre"] .lehre-intro .kunst-intro__copy {
    border-left: 4px solid var(--c-lehre-deep);
    padding-left: var(--tfs-intro-pad, clamp(16px, 2.5vw, 28px));
    min-width: 0;
    margin-top: clamp(4px, 1vw, 10px);
}

body.tfs-site[data-tfs-section="lehre"] .lehre-intro .kunst-intro__lead {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
    text-align: left !important;
    font-family: var(--tfs-body);
    font-weight: 400;
    font-size: clamp(1.02rem, 1.45vw, 1.12rem);
    line-height: 1.65;
    color: var(--text-secondary);
}

body.tfs-site[data-tfs-section="lehre"] #kapitel-1 .lehre-copy__item,
body.tfs-site[data-tfs-section="lehre"] .portfolio-full-note {
  max-width: 42rem;
}

body.tfs-site[data-tfs-section="lehre"] #kapitel-3 .lehre-copy__item,
body.tfs-site[data-tfs-section="lehre"] #kapitel-3 .teaching-table-wrap {
  max-width: none;
  width: 100%;
}

body.tfs-site[data-portfolio] .portfolio-section {
  border-top: 2px solid var(--tfs-ink);
  padding-top: clamp(28px, 4vw, 40px);
  margin-top: clamp(20px, 3vw, 32px);
}

body.tfs-site[data-portfolio] .portfolio-section:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

body.tfs-site[data-portfolio] .portfolio-section__title,
body.tfs-site[data-portfolio] .portfolio--public .portfolio-section__title--public {
  font-family: var(--tfs-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

body.tfs-site[data-portfolio] .lehre-copy__title,
body.tfs-site[data-portfolio] .lehre-copy__body h3 {
  font-family: var(--tfs-display);
}

body.tfs-site[data-portfolio] .lehre-copy__body p,
body.tfs-site[data-portfolio] .lehre-copy__body .lehre-copy__para {
  font-family: var(--tfs-body);
  font-weight: 400;
  color: var(--text-secondary);
}

body.tfs-site[data-portfolio] .lehre-copy__body a.lehre-copy__external {
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 2px solid var(--c-lehre-deep);
}

body.tfs-site[data-portfolio] .lehre-copy__body a.lehre-copy__external:hover {
  background: var(--c-lehre-deep);
  color: #fff;
}

body.tfs-site[data-portfolio] .lehre-copy__nowrap {
  white-space: nowrap;
}

body.tfs-site[data-portfolio] .portfolio-full-link {
  font-family: var(--tfs-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

body.tfs-site[data-portfolio] .portfolio-full-link:hover {
  color: var(--c-lehre-deep);
}

body.tfs-site[data-portfolio] .teaching-table {
  background: #fff;
  border: 1px solid var(--tfs-line);
}

body.tfs-site[data-portfolio] .teaching-table th,
body.tfs-site[data-portfolio] .teaching-table td {
  border-color: var(--tfs-line);
}

html.theme-dark body.tfs-site[data-portfolio] .teaching-table {
  background: var(--tfs-surface);
  border-color: var(--tfs-line);
}

html.theme-dark body.tfs-site[data-portfolio] .teaching-table thead th {
  background: color-mix(in srgb, var(--tfs-line) 55%, var(--tfs-surface));
}

body.tfs-site[data-portfolio] .portfolio-toc__list a.is-active,
body.tfs-site[data-portfolio] .portfolio-toc__list a:hover {
  color: var(--c-lehre-deep);
}

body.tfs-site .hex-cell,
body.tfs-site .hex-honeycomb.is-flat .hex-cell {
  border-radius: 0;
  box-shadow: none;
  border: 1px solid var(--tfs-line);
  border-top: 3px solid var(--hex-stroke, var(--c-lehre-deep));
}

body.tfs-site .hex-dot {
  background: color-mix(in srgb, var(--c-lehre) 30%, #fff);
}

body.tfs-site .hex-dot[aria-selected="true"] {
  background: var(--c-lehre-deep);
}

body.tfs-site[data-tfs-section="lehre"] .popup-card {
  background: #fff;
  color: var(--text-primary);
  border-radius: 0;
  box-shadow: 12px 12px 0 rgba(10, 10, 10, 0.08);
}

body.tfs-site[data-tfs-section="lehre"] .popup-card::before,
body.tfs-site[data-tfs-section="lehre"] .popup-card::after {
  background: linear-gradient(to bottom, #fff, transparent);
}

body.tfs-site[data-tfs-section="lehre"] .popup-content,
body.tfs-site[data-tfs-section="lehre"] .popup-content h2,
body.tfs-site[data-tfs-section="lehre"] .popup-content h3,
body.tfs-site[data-tfs-section="lehre"] .popup-content p {
  color: var(--text-primary);
}

body.tfs-site[data-tfs-section="lehre"] .popup-content a:hover {
  color: var(--c-lehre-deep);
}

body.tfs-site[data-tfs-section="lehre"] .popup-close {
  border-radius: 0;
  border: 1px solid var(--tfs-line);
}

/* Lehre / Portfolio: Dark Mode — schwarze Fläche, helle Typo (Design-Tokens) */
html.theme-dark body.tfs-site {
    color: var(--text-primary);
}

html.theme-dark body.tfs-site[data-tfs-section="lehre"] {
    --hex-philosophie-fill: color-mix(in srgb, var(--hex-philosophie) 24%, var(--bg-base));
    --hex-biografie-fill: color-mix(in srgb, var(--hex-biografie) 24%, var(--bg-base));
    --hex-werte-fill: color-mix(in srgb, var(--hex-werte) 22%, var(--bg-base));
    --hex-menschenbild-fill: color-mix(in srgb, var(--hex-menschenbild) 22%, var(--bg-base));
    --hex-vorbilder-fill: color-mix(in srgb, var(--hex-vorbilder) 22%, var(--bg-base));
    --hex-ziele-fill: color-mix(in srgb, var(--hex-ziele) 26%, var(--bg-base));
    --hex-selbst-fill: color-mix(in srgb, var(--c-lehre) 22%, var(--bg-base));
}

html.theme-dark body.tfs-site[data-tfs-section="lehre"] .quote-in-header .quote-text {
    background: color-mix(in srgb, var(--c-lehre-deep) 14%, var(--bg-base));
    color: var(--text-secondary);
}

html.theme-dark body.tfs-site .hex-cell {
    background: var(--hex-fill, var(--tfs-surface));
    color: var(--text-primary);
    box-shadow: none;
}

html.theme-dark body.tfs-site .hex-honeycomb:not(.is-flat) .hex-cell.is-front:hover,
html.theme-dark body.tfs-site .hex-honeycomb:not(.is-flat) .hex-cell.is-front:focus-visible {
    background: color-mix(in srgb, var(--hex-stroke, var(--c-lehre-deep)) 28%, var(--tfs-surface));
}

html.theme-dark body.tfs-site .hex-cell h2,
html.theme-dark body.tfs-site .hex-cell h3 {
    font-family: var(--tfs-display);
    color: var(--text-primary);
}

html.theme-dark body.tfs-site .hex-cell p,
html.theme-dark body.tfs-site .hex-cell__text {
    font-family: var(--tfs-body);
    color: var(--text-secondary);
}

html.theme-dark body.tfs-site .hex-dot {
    background: color-mix(in srgb, var(--c-lehre) 38%, var(--bg-base));
}

html.theme-dark body.tfs-site .lang-btn {
    background: rgba(0, 0, 0, 0.72);
    border-color: var(--tfs-line);
    color: var(--text-primary);
}

html.theme-dark body.tfs-site .lang-btn:hover {
    background: color-mix(in srgb, var(--text-primary) 10%, var(--bg-base));
    border-color: color-mix(in srgb, var(--text-primary) 28%, transparent);
    color: var(--text-primary);
}

html.theme-dark body.tfs-site .site-social .social-link {
    color: var(--text-primary);
    border-color: var(--tfs-line);
    background: color-mix(in srgb, var(--text-primary) 6%, var(--bg-base));
}

html.theme-dark body.tfs-site .site-social .social-link:hover {
    color: var(--text-primary);
    border-color: color-mix(in srgb, var(--text-primary) 40%, transparent);
    background: color-mix(in srgb, var(--text-primary) 14%, var(--bg-base));
}

/* Projekt-Overlay (+) und Popups: Dark Mode auf allen tfs-Sektionen */
html.theme-dark body.tfs-site .popup-overlay,
html.theme-dark body.tfs-site .project-explainer-overlay {
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

html.theme-dark body.tfs-site .popup-overlay .popup-card,
html.theme-dark body.tfs-site .project-explainer-overlay .popup-card,
html.theme-dark body.tfs-site .popup-card {
    background: var(--tfs-surface);
    color: var(--text-primary);
    border: 1px solid var(--tfs-line);
    box-shadow: 12px 12px 0 rgba(244, 244, 244, 0.06);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

html.theme-dark body.tfs-site .popup-card::before,
html.theme-dark body.tfs-site .popup-card::after {
    background: linear-gradient(to bottom, var(--tfs-surface), transparent);
}

html.theme-dark body.tfs-site .popup-overlay .popup-content,
html.theme-dark body.tfs-site .project-explainer-overlay .popup-content,
html.theme-dark body.tfs-site .popup-overlay .popup-content h2,
html.theme-dark body.tfs-site .popup-overlay .popup-content h3,
html.theme-dark body.tfs-site .popup-overlay .popup-content p,
html.theme-dark body.tfs-site .popup-overlay .popup-content .popup-title,
html.theme-dark body.tfs-site .project-explainer-overlay .popup-content .popup-title {
    color: var(--text-primary);
    font-family: var(--tfs-body);
}

html.theme-dark body.tfs-site .popup-overlay .popup-content p,
html.theme-dark body.tfs-site .project-explainer-overlay .popup-content p {
    color: var(--text-secondary);
}

html.theme-dark body.tfs-site .popup-overlay .popup-content a,
html.theme-dark body.tfs-site .project-explainer-overlay .popup-content a {
    color: var(--text-primary);
}

html.theme-dark body.tfs-site[data-tfs-section="lehre"] .popup-overlay .popup-content a,
html.theme-dark body.tfs-site[data-tfs-section="lehre"] .project-explainer-overlay .popup-content a {
    color: var(--c-lehre-light);
}

html.theme-dark body.tfs-site .popup-overlay .popup-content .popup-button,
html.theme-dark body.tfs-site .project-explainer-overlay .popup-content .popup-button {
    border-color: var(--tfs-line);
    color: var(--text-primary);
    background: color-mix(in srgb, var(--text-primary) 4%, var(--bg-base));
}

html.theme-dark body.tfs-site .popup-overlay .popup-content .popup-button:hover,
html.theme-dark body.tfs-site .project-explainer-overlay .popup-content .popup-button:hover {
    border-color: color-mix(in srgb, var(--text-primary) 40%, transparent);
    background: color-mix(in srgb, var(--text-primary) 12%, var(--bg-base));
    box-shadow: none;
}

html.theme-dark body.tfs-site .popup-content::-webkit-scrollbar-track {
    background: color-mix(in srgb, var(--text-primary) 8%, var(--bg-base));
}

html.theme-dark body.tfs-site .popup-content::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--text-primary) 28%, var(--bg-base));
}

html.theme-dark body.tfs-site .popup-content::-webkit-scrollbar-thumb:hover {
    background: color-mix(in srgb, var(--text-primary) 40%, var(--bg-base));
}

html.theme-dark body.tfs-site .popup-close,
html.theme-dark body.tfs-site .project-explainer-close {
    color: var(--text-primary);
    background: color-mix(in srgb, var(--text-primary) 8%, var(--bg-base));
    border: 1px solid var(--tfs-line);
}

html.theme-dark body.tfs-site .popup-close:hover,
html.theme-dark body.tfs-site .project-explainer-close:hover {
    color: var(--text-primary);
    background: color-mix(in srgb, var(--text-primary) 16%, var(--bg-base));
    border-color: color-mix(in srgb, var(--text-primary) 36%, transparent);
}

html.theme-dark body.tfs-site a.popup-project-card:hover,
html.theme-dark body.tfs-site a.popup-project-card:focus-visible,
html.theme-dark body.tfs-site button.popup-project-card:hover,
html.theme-dark body.tfs-site button.popup-project-card:focus-visible {
    background: color-mix(in srgb, var(--text-primary) 8%, var(--bg-base));
}

html.theme-dark body.tfs-site .popup-project-card {
    border-bottom-color: var(--tfs-line);
}

html.theme-dark body.tfs-site[data-portfolio] .portfolio-section {
    border-top-color: var(--tfs-line);
}

html.theme-dark body.tfs-site .title,
html.theme-dark body.tfs-site .hex-label {
    font-family: var(--tfs-display);
    color: var(--text-primary);
}

/* --- Kunst: beige Alt-Fläche neutralisieren --- */

body.tfs-site[data-tfs-section="kunst"] .kunst-main {
    max-width: 1280px;
    padding-top: calc(var(--tfs-masthead-h) + var(--tfs-content-top)) !important;
    padding-left: var(--tfs-page-gutter) !important;
    padding-right: var(--tfs-page-gutter) !important;
    box-sizing: border-box;
}

body.tfs-site[data-tfs-section="kunst"] .kunst-intro {
    text-align: left !important;
    max-width: 42rem;
    margin: 0 0 clamp(40px, 6vw, 56px);
    border-left: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    box-sizing: border-box;
}

body.tfs-site[data-tfs-section="kunst"] .kunst-intro > .kunst-intro__role {
    width: 100%;
    box-sizing: border-box;
}

body.tfs-site[data-tfs-section="kunst"] .kunst-intro__copy {
    border-left: 4px solid var(--c-kunst-deep);
    padding-left: var(--tfs-intro-pad, clamp(16px, 2.5vw, 28px));
    min-width: 0;
    margin-top: clamp(4px, 1vw, 10px);
}

body.tfs-site[data-tfs-section="kunst"] .kunst-intro__role {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    color: var(--text-primary);
}

body.tfs-site[data-tfs-section="kunst"] .kunst-intro__lead {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
    text-align: left !important;
    text-shadow: none;
    font-family: var(--tfs-body);
    font-weight: 400;
    font-size: clamp(1.02rem, 1.45vw, 1.12rem);
    line-height: 1.65;
}

body.tfs-site[data-tfs-section="kunst"] .kunst-intro__link {
    text-align: left;
}

body.tfs-site[data-tfs-section="kunst"] .kunst-intro__link a {
    font-family: var(--tfs-mono);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 2px solid var(--c-kunst-deep);
}

body.tfs-site[data-tfs-section="kunst"] .kunst-intro__link a:hover {
    background: var(--c-kunst-deep);
    color: #fff;
}

body.tfs-site[data-tfs-section="kunst"] .kunst-text,
body.tfs-site[data-tfs-section="kunst"] .gallery-section,
body.tfs-site[data-tfs-section="kunst"] .archive-section {
    max-width: 42rem;
    margin-left: 0;
    margin-right: auto;
    text-align: left;
}

body.tfs-site[data-tfs-section="kunst"] .threshold {
    max-width: 42rem;
    margin-left: 0;
    margin-right: auto;
}

body.tfs-site[data-tfs-section="kunst"] .threshold__caption {
    text-align: left;
}

body.tfs-site[data-tfs-section="kunst"] .kunst-main.liminal > .threshold {
    padding-left: calc(4px + var(--tfs-intro-pad, clamp(16px, 2.5vw, 28px)));
    box-sizing: border-box;
}

body.tfs-site[data-tfs-section="kunst"] .text-block__title {
    text-align: left;
    margin-left: 0;
    margin-right: auto;
}

body.tfs-site[data-tfs-section="kunst"] .section-title,
body.tfs-site[data-tfs-section="kunst"] .section-intro,
body.tfs-site[data-tfs-section="kunst"] .archive-toggle {
    text-align: left !important;
    margin-left: 0;
    margin-right: auto;
    filter: none;
}

body.tfs-site[data-tfs-section="go"] .go-intro {
    text-align: left;
    max-width: 42rem;
    margin: 0 0 clamp(40px, 6vw, 56px);
    border-left: none;
    padding-left: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

body.tfs-site[data-tfs-section="go"] .go-intro__copy {
    border-left: 4px solid var(--c-go-deep);
    padding-left: var(--tfs-intro-pad, clamp(16px, 2.5vw, 28px));
    min-width: 0;
    margin-top: clamp(4px, 1vw, 10px);
}

body.tfs-site[data-tfs-section="go"] .go-intro__copy .go-scene--intro {
    display: block;
    width: 100%;
    max-width: min(100%, 760px);
    margin: 0 0 clamp(18px, 2.8vw, 26px);
    border: 1px solid var(--tfs-line);
    background: #e8e8e8;
}

body.tfs-site[data-tfs-section="go"] .go-intro__copy .go-scene--intro img {
    width: 100%;
    height: auto;
    display: block;
    filter: contrast(1.02) brightness(1);
}

body.tfs-site[data-tfs-section="go"] .go-intro > .go-intro__role {
    width: 100%;
    box-sizing: border-box;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
    color: var(--text-primary);
}

body.tfs-site[data-tfs-section="go"] :is(.go-intro__player, .go-intro__lead, .go-intro__scale, .go-intro__story) {
    font-family: var(--tfs-body);
    font-weight: 400;
    font-size: clamp(1.02rem, 1.45vw, 1.12rem);
    line-height: 1.65;
    color: var(--text-secondary);
    text-align: left;
    margin: 0 0 1.15em;
}

body.tfs-site[data-tfs-section="go"] .go-intro__bridge {
    font-family: var(--tfs-body);
    font-size: clamp(1.02rem, 1.45vw, 1.12rem);
    color: var(--text-primary);
}

body.tfs-site[data-tfs-section="go"] .go-intro__bridge a {
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 2px solid var(--c-go-deep);
}

body.tfs-site[data-tfs-section="go"] .go-intro__bridge a:hover {
    background: var(--c-go-deep);
    color: #fff;
}

body.tfs-site[data-tfs-section="go"] :is(.go-kifu, .go-practice, .go-links) {
    max-width: 42rem;
    margin-left: 0;
    margin-right: auto;
}

body.tfs-site[data-tfs-section="go"] .go-kifu__title,
body.tfs-site[data-tfs-section="go"] .go-practice__title,
body.tfs-site[data-tfs-section="go"] .go-links__title {
    font-family: var(--tfs-display);
    font-weight: 700;
    text-transform: none;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    text-align: left;
}

body.tfs-site[data-tfs-section="go"] .go-practice {
    margin-left: 0;
    margin-right: auto;
}

body.tfs-site[data-tfs-section="go"] .go-practice__list {
    border-top-color: var(--tfs-ink);
}

body.tfs-site[data-tfs-section="go"] .go-practice__item {
    border-bottom-color: var(--tfs-line);
}

body.tfs-site[data-tfs-section="go"] .go-practice__card:hover,
body.tfs-site[data-tfs-section="go"] .go-practice__card:focus-visible {
    background: color-mix(in srgb, var(--c-go-deep) 6%, #fff);
}

body.tfs-site[data-tfs-section="go"] .go-kifu__card {
    border-radius: 0;
    border: 2px solid var(--tfs-ink);
    box-shadow: 8px 8px 0 rgba(10, 10, 10, 0.08);
}

body.tfs-site[data-tfs-section="go"] .go-kifu__btn,
body.tfs-site[data-tfs-section="go"] .go-link {
    border-radius: 0;
}

body.tfs-site[data-tfs-section="patternlab"] .patternlab-intro {
    text-align: left;
    max-width: none;
    margin: 0 0 clamp(40px, 6vw, 56px);
    border-left: none;
    padding-left: 0;
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

body.tfs-site[data-tfs-section="patternlab"] .patternlab-intro .go-intro__role {
    max-width: 42rem;
}

body.tfs-site[data-tfs-section="patternlab"] .patternlab-intro .go-intro__copy {
    border-left: 4px solid var(--pl-accent, #1d6b66);
    padding-left: var(--tfs-intro-pad, clamp(16px, 2.5vw, 28px));
    min-width: 0;
    max-width: 42rem;
    margin-top: clamp(4px, 1vw, 10px);
}

body.tfs-site[data-tfs-section="patternlab"] .go-intro__role {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    color: var(--text-primary);
}

body.tfs-site[data-tfs-section="patternlab"] :is(
        .go-intro__lead,
        .go-intro__player,
        .go-intro__scale,
        .go-intro__story
    ) {
    font-family: var(--tfs-body);
    font-weight: 400;
    font-size: clamp(1.02rem, 1.45vw, 1.12rem);
    line-height: 1.65;
    color: var(--text-secondary);
    text-align: left;
    margin: 0 0 1.15em;
}

body.tfs-site[data-tfs-section="patternlab"] .go-intro__bridge {
    font-family: var(--tfs-body);
    font-size: clamp(1.02rem, 1.45vw, 1.12rem);
    color: var(--text-primary);
    text-align: left;
}

body.tfs-site[data-tfs-section="patternlab"] .go-intro__bridge a {
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 2px solid var(--pl-accent, #1d6b66);
}

body.tfs-site[data-tfs-section="patternlab"] .go-intro__bridge a:hover {
    background: var(--pl-accent, #1d6b66);
    color: #fff;
}

body.tfs-site[data-tfs-section="patternlab"] .pl-gallery__title,
body.tfs-site[data-tfs-section="patternlab"] .pl-tech__title {
    font-family: var(--tfs-display);
    font-weight: 700;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    letter-spacing: -0.02em;
    text-transform: none;
    color: var(--text-primary);
    text-align: left;
}

body.tfs-site[data-tfs-section="patternlab"] .pl-gallery__lead {
    font-family: var(--tfs-body);
    font-size: clamp(1.02rem, 1.45vw, 1.12rem);
    font-weight: 400;
    line-height: 1.65;
    color: var(--text-secondary);
    text-align: left;
    max-width: 42rem;
    margin-left: 0;
    margin-right: 0;
}

body.tfs-site[data-tfs-section="patternlab"] .pl-gallery,
body.tfs-site[data-tfs-section="patternlab"] .pl-tech {
    text-align: left;
    max-width: 42rem;
    margin-left: 0;
    margin-right: auto;
}

body.tfs-site :is(h1, h2, h3, .portfolio-section) {
    scroll-margin-top: calc(var(--tfs-masthead-h) + 12px);
}

body.tfs-site main.legal-page,
body.tfs-site main.gate {
    max-width: 40rem;
    margin: 0 auto;
    padding: calc(var(--tfs-masthead-h) + 2.5rem) 1.25rem 4rem;
    line-height: 1.6;
}

body.tfs-site main.legal-page h1,
body.tfs-site main.gate h1 {
    font-family: var(--tfs-display);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

body.tfs-site main.legal-page :is(p, li) + :is(p, li),
body.tfs-site main.gate :is(p, li) + :is(p, li) {
    margin-top: 1rem;
}

body.tfs-site main.legal-page a,
body.tfs-site main.gate a {
    color: inherit;
}

/* Mobile: ein Masthead-Offset — kein doppeltes padding-top */
@media (max-width: 860px) {
    body.tfs-site {
        --tfs-content-top: clamp(8px, 2vw, 14px);
    }

    body.tfs-site .main-content {
        padding-top: calc(var(--tfs-masthead-h) + var(--tfs-content-top)) !important;
    }

    body.tfs-site .hero {
        padding-top: 0 !important;
        margin-top: 0;
    }

}