@font-face {
    font-family: "TAFA Display";
    src: url("../fonts/instrument-sans-latin-ext.woff2") format("woff2");
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "TAFA Display";
    src: url("../fonts/instrument-sans-latin.woff2") format("woff2");
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --tafa-orange: #c4151c;
    --tafa-orange-dark: #971017;
    --tafa-black: #0b0c0d;
    --tafa-black-soft: #151719;
    --tafa-navy: var(--tafa-black);
    --tafa-ink: #181a1d;
    --tafa-muted: #666d73;
    --tafa-sand: #eceae5;
    --tafa-cream: #f7f6f2;
    --tafa-white: #fff;
    --tafa-line: #d8d6d0;
    --tafa-shadow: 0 24px 70px rgba(11, 12, 13, .12);
    --tafa-radius-sm: 12px;
    --tafa-radius-md: 22px;
    --tafa-radius-lg: 30px;
    --tafa-container: min(1320px, calc(100% - 56px));
    --tafa-section: clamp(84px, 9vw, 148px);
    --tafa-header-height: 136px;
    --ease-out: cubic-bezier(.23, 1, .32, 1);
    --ease-in-out: cubic-bezier(.77, 0, .175, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--tafa-header-height) + 16px); }
/* Temporary first-gesture hold: also catches uncancellable trackpad momentum.
   Removed on the next gesture or any accessible navigation escape. */
html.hero-scroll-held { overflow-y: hidden; scrollbar-gutter: stable; overscroll-behavior-y: none; }
@view-transition { navigation: auto; }
body {
    margin: 0;
    min-width: 320px;
    background: var(--tafa-cream);
    color: var(--tafa-ink);
    font-family: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    animation: tafa-page-enter .2s ease both;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
address { font-style: normal; }
[hidden] { display: none !important; }

/* Original TAFA mark, gray and translucent. Only opacity changes — never rotation.
   The short visual reveal avoids flashing on cached loads, without delaying content. */
.tafa-loading-mark {
    display: inline-block;
    width: 56px;
    aspect-ratio: 135.68 / 128.67;
    flex: none;
    background: url("../media/branding/loading-mark.svg") center / contain no-repeat;
    opacity: .64;
    animation: tafa-loading-blink 1.4s var(--ease-in-out) infinite;
}
.tafa-loader {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
    opacity: 0;
    animation: tafa-loader-appear .12s ease-out .18s forwards;
}
.tafa-loader--page {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: var(--tafa-black);
    opacity: 1;
    animation: tafa-intro-exit .5s var(--ease-out) both;
}
.tafa-loader--page .tafa-loading-mark {
    width: 72px;
    filter: brightness(1.2);
    opacity: .76;
    animation: tafa-intro-pulse .5s var(--ease-out) both;
}
/* One distinct dim–bright–dim pulse with a readable bright plateau; no repetition. */
@keyframes tafa-intro-pulse { 0%, 100% { opacity: .20; } 28%, 62% { opacity: .96; } }
/* The intro replaces the old body entrance; do not fade the entire page again. */
html.has-page-intro body { animation: none; }
@keyframes tafa-intro-exit { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
/* A background on the image itself keeps existing grids, crop and dimensions intact.
   Removed at load/error; alt text remains in the DOM and is visible again on error. */
img[data-image-loading] {
    background-image: url("../media/branding/loading-mark.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: clamp(24px, 12%, 56px) auto;
    color: transparent;
    animation: tafa-loading-blink 1.4s var(--ease-in-out) infinite;
}
html.is-page-intro img[data-image-loading] { background-image: none; animation: none; }
html.is-page-intro [data-hero-film] .tafa-loader { visibility: hidden; }
@keyframes tafa-loading-blink { 0%, 100% { opacity: .32; } 50% { opacity: .76; } }
@keyframes tafa-loader-appear { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
    .tafa-loading-mark { animation: none !important; opacity: .64; }
    .tafa-loader--page .tafa-loading-mark { animation: none !important; opacity: .76; }
    .tafa-loader { animation: none !important; opacity: 1; }
    img[data-image-loading] { animation: none !important; opacity: .64; }
}

.tafa-container { width: var(--tafa-container); margin-inline: auto; }
.section { padding-block: var(--tafa-section); }
.page-main { overflow: clip; }
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    color: var(--tafa-black);
    font-family: "TAFA Display", "Avenir Next", Avenir, sans-serif;
    font-weight: 650;
    overflow-wrap: anywhere;
    hyphens: auto;
    letter-spacing: -.04em;
    line-height: 1.1;
    text-wrap: balance;
}
h1 { font-size: clamp(50px, 7.5vw, 116px); }
h2 { font-size: clamp(38px, 5vw, 70px); }
h3 { font-size: clamp(23px, 2.5vw, 34px); }
p { margin-top: 0; }
.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px; /* taste-skill-ignore: accessibility-only clipping helper */
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}
.skip-link {
    position: fixed;
    top: 8px; left: 8px;
    z-index: 9999;
    padding: 10px 16px;
    background: var(--tafa-white);
    color: var(--tafa-navy);
    transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--tafa-orange); outline-offset: 3px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(11, 12, 13, .96);
    border-bottom: 0;
    backdrop-filter: none;
    color: var(--tafa-white);
    transition: box-shadow .2s var(--ease-out), background .2s var(--ease-out);
}
.site-header.is-scrolled { background: rgba(11, 12, 13, .98); }
.site-header__bar { background: #050506; color: var(--tafa-white); border-bottom: 0; }
.site-header__meta {
    min-height: 44px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 18px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
}
.site-header__meta a { transition: color .2s ease, border-color .2s ease, background .2s ease; }
.site-header__meta a:hover { color: #ee7b67; }
.social-link {
    width: 44px;
    min-height: 44px;
    display: grid;
    place-items: center;
    border-inline: 1px solid rgba(255, 255, 255, .14);
}
.social-link svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.social-link__dot { fill: currentColor; stroke: none; }
.social-link:hover, .social-link:focus-visible { background: rgba(255, 255, 255, .08); color: #ee7b67; }
.site-header__main { min-height: 92px; }
.primary-nav { position: relative; width: 100%; min-height: 92px; display: grid; place-items: center; }
.primary-nav__links { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.primary-nav__group { display: flex; align-items: center; gap: clamp(16px, 1.7vw, 28px); margin: 0; padding: 0; list-style: none; }
.primary-nav__group--left { justify-content: flex-start; padding-right: 104px; }
.primary-nav__group--right { justify-content: flex-end; padding-left: 104px; }
.site-logo { display: block; width: 154px; }
.primary-nav > .site-logo { position: absolute; left: 50%; z-index: 2; transform: translateX(-50%); }
.site-logo img { width: 100%; height: auto; filter: brightness(0) invert(1); }
.primary-nav li { position: relative; }
.primary-nav__group > li > a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 50px;
    font-size: 14px;
    color: rgba(255, 255, 255, .86);
    font-weight: 650;
}
.primary-nav__group > li > a::after {
    position: absolute;
    right: 0; bottom: 6px; left: 0;
    height: 2px;
    background: var(--tafa-orange);
    content: "";
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .22s ease;
}
.primary-nav__group > li > a:hover::after,
.primary-nav__group > li > a:focus-visible::after,
.primary-nav__group > li > a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.primary-nav__group > li > a[aria-current="page"] { color: var(--tafa-white); }
.has-submenu { display: block; }
.submenu {
    position: absolute;
    top: calc(100% - 2px); left: -22px;
    width: 280px;
    margin: 0; padding: 12px;
    background: var(--tafa-white);
    border: 1px solid var(--tafa-line);
    border-radius: 14px;
    box-shadow: var(--tafa-shadow); /* taste-skill-ignore: the submenu is a real temporary overlay */
    list-style: none;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease;
}
.submenu li a { display: block; padding: 10px 12px; border-radius: 8px; font-size: 14px; font-weight: 700; }
.submenu li a:hover { background: var(--tafa-sand); color: var(--tafa-orange-dark); }
.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu { opacity: 1; pointer-events: auto; transform: none; }

/* Startseite: Titel, Film in Originalproportion und anschließend die Angebotsdetails. */
.home-intro { background: #080809; color: var(--tafa-white); }
.home-intro__inner {
    width: min(var(--tafa-container), 74rem);
    margin-inline: auto; padding-block: clamp(24px, 3vw, 48px) clamp(36px, 5vw, 72px);
    display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: clamp(22px, 2.4vw, 36px) 0;
}
.home-intro h1 {
    grid-column: 1 / -1; margin: 0; color: var(--tafa-white);
    font-size: clamp(36px, 5.1vw, 76px); font-weight: 550;
    line-height: 1.05; letter-spacing: -.045em; text-wrap: balance;
}
.home-intro__scene { grid-column: 1 / -1; min-width: 0; }
.home-intro__scene-body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.home-intro__film {
    position: relative; overflow: hidden; min-width: 0; align-self: start; border-radius: var(--tafa-radius-md) 0 0 var(--tafa-radius-md);
    background: #000; pointer-events: none;
}
.home-intro__film img { display: block; width: 100%; height: auto; }
.home-intro__film video {
    position: absolute; inset: 0; width: 100%; height: 100%;
    display: block; object-fit: contain; object-position: center; opacity: 0;
}
.home-intro__film[data-hero-state="loading"] video,
.home-intro__film[data-hero-state="playing"] video,
.home-intro__film[data-hero-state="parked-video"] video { opacity: 1; }
.home-intro__film .tafa-loading-mark { width: clamp(36px, 4vw, 56px); }
.home-intro__copy {
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
    min-width: 0; padding: clamp(24px, 3vw, 48px); border-radius: 0 var(--tafa-radius-md) var(--tafa-radius-md) 0;
    background: var(--tafa-cream); color: var(--tafa-ink);
}
.home-intro__copy > p { max-width: 34ch; margin: 0; font-size: clamp(19px, 1.65vw, 25px); line-height: 1.48; text-wrap: pretty; }
.home-intro__actions { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; margin-top: clamp(18px, 2.2vw, 32px); }
.home-intro__index { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 2fr); gap: 24px; align-items: start; }
.home-intro__index h2 { margin: 0; color: var(--tafa-white); font-size: clamp(20px, 1.8vw, 26px); font-weight: 550; line-height: 1.32; letter-spacing: -.025em; }
.home-intro__index h2 a:is(:hover,:focus-visible) { text-decoration: underline; text-underline-offset: .2em; }
@media (width > 960px) {
    .home-intro__film, .home-intro__copy { align-self: end; }
    .home-intro__film { border-top-right-radius: var(--tafa-radius-md); }
}
@media (max-width: 960px) {
    .home-intro__inner { width: min(var(--tafa-container), 44rem); grid-template-columns: minmax(0, 1fr); row-gap: 0; }
    .home-intro__scene-body { grid-template-columns: minmax(0, 1fr); }
    .home-intro h1 { margin-bottom: 20px; }
    .home-intro__film { border-radius: var(--tafa-radius-sm) var(--tafa-radius-sm) 0 0; }
    .home-intro__copy { border-radius: 0 0 var(--tafa-radius-sm) var(--tafa-radius-sm); padding: clamp(20px, 4vw, 32px); }
    .home-intro__copy > p { max-width: 51ch; font-size: clamp(17px, 2.5vw, 20px); }
    .home-intro__index { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 26px; }
}

.vehicle-stage { position: relative; height: 150svh; background: var(--tafa-black); color: var(--tafa-white); }
.vehicle-stage__sticky { position: sticky; top: var(--tafa-header-height); min-height: calc(100svh - var(--tafa-header-height)); display: flex; align-items: center; overflow: hidden; }
.vehicle-stage__sticky::before { position: absolute; inset: 0; background: var(--tafa-black); content: ""; }
.vehicle-stage__layout { position: relative; display: grid; grid-template-columns: .78fr 1.22fr; align-items: center; gap: clamp(50px, 8vw, 130px); }
.vehicle-stage__copy { position: relative; z-index: 2; opacity: .72; transform: translate3d(0, 14px, 0); }
.vehicle-stage__copy h2 { max-width: 8ch; margin-bottom: 28px; color: var(--tafa-white); font-size: clamp(48px, 6vw, 92px); }
.vehicle-stage__copy p { max-width: 520px; margin: 0; color: rgba(255, 255, 255, .68); font-size: 18px; }
.vehicle-stage__slot { position: relative; min-width: 0; }
.vehicle-stage__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border: 0; background: #111; transform: translate3d(7vw, 0, 0); opacity: .72; }
.vehicle-stage__media::after { position: absolute; inset: 0; background: transparent; content: ""; }
.vehicle-stage__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.7) contrast(1.08); }
.vehicle-stage__track { height: 6px; margin-top: 24px; background: rgba(255, 255, 255, .18); }
.vehicle-stage__track span { width: 24%; height: 100%; display: block; background: var(--tafa-orange); transform-origin: left; }
.vehicle-stage__note { margin: 12px 0 0; color: rgba(255, 255, 255, .42); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 58px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { max-width: 520px; margin: 0; color: var(--tafa-muted); }
.text-link, .button {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 52px; padding: 0 24px;
    border: 1px solid var(--tafa-orange);
    background: var(--tafa-orange);
    color: var(--tafa-white);
    border-radius: 4px;
    font-size: 13px; font-weight: 750; letter-spacing: .02em;
    transition: background .2s var(--ease-out), border-color .2s var(--ease-out), color .2s var(--ease-out), transform .2s var(--ease-out);
}
.text-link:hover, .button:hover { background: var(--tafa-white); border-color: var(--tafa-white); color: var(--tafa-black); transform: translateY(-2px); }
.text-action { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; font-size: 14px; font-weight: 700; transition: color .2s ease; }
.text-action:hover { color: var(--tafa-orange); border-color: var(--tafa-orange); }

.services-section { background: var(--tafa-cream); }
.service-editorial { display: grid; grid-template-columns: .65fr 1.35fr; gap: clamp(52px, 8vw, 130px); align-items: start; }
.service-editorial__intro { position: sticky; top: calc(var(--tafa-header-height) + 40px); }
.service-editorial__intro h2 { max-width: 9ch; margin-bottom: 28px; }
.service-editorial__intro p { max-width: 460px; color: var(--tafa-muted); }
.service-editorial__body { min-width: 0; }
.service-editorial__body figure { margin: 0 0 34px; overflow: hidden; }
.service-editorial__body figure img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; filter: saturate(.75); }
.service-ledger { margin: 0; padding: 0; border-top: 0; list-style: none; }
.service-ledger li { border-bottom: 0; }
.service-ledger a { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-inline: 4px; }
.service-ledger a > span:first-child { font-size: clamp(21px, 2.1vw, 31px); font-weight: 650; letter-spacing: -.03em; }
.service-ledger__action { color: var(--tafa-muted); font-size: 12px; font-weight: 700; white-space: nowrap; transition: color .2s ease, transform .2s var(--ease-out); }
.service-ledger a:hover .service-ledger__action { color: var(--tafa-orange); transform: translate3d(-6px, 0, 0); }

.proof-section { background: var(--tafa-black); color: var(--tafa-white); }
.proof-layout { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(54px, 8vw, 132px); align-items: center; }
.proof-layout__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: saturate(.64) contrast(1.04); }
.proof-layout__content h2 { max-width: 12ch; color: var(--tafa-white); }
.benefit-list { display: grid; gap: 10px; margin-top: 48px; border-top: 0; }
.benefit-list article { padding-block: 27px; border-bottom: 0; }
.benefit-list p { margin: 0; color: rgba(255, 255, 255, .72); }

.home-gallery-section { background: var(--tafa-sand); }
.home-gallery-grid { display: grid; grid-template-columns: 1.25fr .75fr .9fr; gap: 14px; align-items: end; }
.home-gallery-grid figure { margin: 0; overflow: hidden; }
.home-gallery-grid figure:nth-child(2) { margin-bottom: 72px; }
.home-gallery-grid img { width: 100%; height: clamp(300px, 35vw, 560px); object-fit: cover; filter: saturate(.72); transition: transform .5s var(--ease-out), filter .3s ease; }
.home-gallery-grid figure:nth-child(2) img { height: clamp(240px, 28vw, 440px); }
.home-gallery-grid figure:hover img { transform: scale(1.025); filter: saturate(.95); }

/* Visible without JavaScript; only an initialized observer opts content in. */
[data-reveal].is-reveal-pending { opacity: 0; transform: translate3d(0, 18px, 0); }
[data-reveal].is-reveal-pending.is-visible {
    opacity: 1;
    transform: none;
    transition: opacity .5s var(--ease-out) var(--reveal-delay, 0ms), transform .5s var(--ease-out) var(--reveal-delay, 0ms);
}
[data-reveal]:focus-within { opacity: 1; transform: none; transition: none; }
@media print {
    [data-reveal].is-reveal-pending { opacity: 1; transform: none; transition: none; }
}

.certificates-section { background: var(--tafa-cream); }
.certificate-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; border: 0; border-radius: var(--tafa-radius-sm); overflow: hidden; }
.certificate-grid > div { min-height: 170px; display: grid; place-items: center; padding: 25px; border-right: 0; }
.certificate-grid > div:last-child { border-right: 0; }
.certificate-grid img { max-height: 112px; width: auto; object-fit: contain; transition: transform .2s var(--ease-out); }
.certificate-grid > div:hover img { transform: translateY(-3px); }

.contact-section { background: var(--tafa-sand); }
.contact-layout { display: grid; grid-template-columns: .78fr 1.22fr; border-radius: var(--tafa-radius-md); overflow: hidden; }
.contact-panel { padding: clamp(42px, 6vw, 78px); background: var(--tafa-black); color: var(--tafa-white); }
.contact-panel h2 { color: var(--tafa-white); font-size: clamp(42px, 4vw, 62px); }
.contact-panel > p { max-width: 36ch; color: rgba(255, 255, 255, .68); }
.contact-panel address { display: grid; gap: 14px; margin-top: 54px; }
.contact-panel address p, .contact-panel address a { margin: 0; font-size: 18px; font-weight: 700; }
.contact-form-panel { padding: clamp(42px, 6vw, 78px); background: var(--tafa-white); }
.contact-form-panel > h2 { margin-bottom: 34px; font-size: clamp(32px, 3vw, 48px); }

.tafa-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.tafa-form .tafa-form-privacy { margin: 0 0 24px; color: #424242; font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.tafa-form .tafa-form-privacy a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.legal-content { overflow-wrap: anywhere; }
.tafa-form label { display: grid; gap: 7px; color: var(--tafa-black); font-size: 13px; font-weight: 750; }
.tafa-form input, .tafa-form textarea, .tafa-form select {
    width: 100%; min-height: 52px; padding: 12px 15px;
    border: 1px solid #c9d0d9; border-radius: var(--tafa-radius-sm);
    background: var(--tafa-white); color: var(--tafa-ink);
    font-size: 16px; font-weight: 400; line-height: 1.5;
}
.tafa-form textarea { min-height: 130px; resize: vertical; }
.tafa-form input:focus, .tafa-form textarea:focus, .tafa-form select:focus { border-color: var(--tafa-orange); outline: 2px solid rgba(196, 21, 28, .18); }
.tafa-form input[aria-invalid="true"], .tafa-form textarea[aria-invalid="true"], .tafa-form select[aria-invalid="true"] { border-color: #a62b2b; background: #fff9f9; }
.tafa-field-wide { grid-column: 1 / -1; }
.tafa-form button {
    min-height: 54px; margin-top: 18px; padding: 0 28px;
    border: 1px solid var(--tafa-orange) !important;
    background: var(--tafa-orange) !important; color: var(--tafa-white) !important;
    border-radius: 4px;
    font-weight: 800; cursor: pointer;
}
.tafa-form button:disabled { cursor: not-allowed; opacity: .55; }
.tafa-form-status { grid-column: 1 / -1; margin: 12px 0 0; color: var(--tafa-muted); font-size: 12px; font-weight: 650; line-height: 1.45; }
.tafa-form-status[data-state="error"] { color: #8f2525; }
.tafa-field-error { margin: 0; color: #8f2525; font-size: 12px; font-weight: 700; }
.tafa-form fieldset { margin: 0 0 24px; padding: 0; border: 0; }
.tafa-form legend { margin-bottom: 12px; color: var(--tafa-black); font-size: 24px; font-weight: 700; letter-spacing: -.03em; }
.tafa-choice { grid-template-columns: 22px 1fr !important; align-items: center; min-height: 44px; margin-block: 8px; cursor: pointer; }
.tafa-choice input { width: 18px; height: 18px; min-height: 18px; margin: 0; padding: 0; accent-color: var(--tafa-orange); }
.tafa-consent { grid-template-columns: 22px 1fr !important; align-items: start; margin-top: 22px; font-weight: 650 !important; line-height: 1.55; }
.tafa-consent input { width: 18px; height: 18px; min-height: 18px; margin: 4px 0 0; padding: 0; accent-color: var(--tafa-orange); }
.tafa-consent a { color: var(--tafa-orange-dark); text-decoration: underline; text-underline-offset: 3px; }
.tafa-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; } /* taste-skill-ignore: non-visual anti-spam field */
.tafa-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.tafa-submit__loader { display: none; width: 24px; margin-left: 8px; vertical-align: middle; }
.tafa-form.is-loading .tafa-submit__loader { display: inline-block; }
.tafa-success { padding: 32px; border: 1px solid #bcd8c7; border-radius: var(--tafa-radius-sm); background: #f3faf5; }
.tafa-success h3 { margin-bottom: 10px; }
.tafa-success p { margin-bottom: 18px; }
.tafa-success button { margin-top: 0; }

.site-footer { background: var(--tafa-black); color: #b8b9bb; }
.site-footer__contact-strip { position: relative; z-index: 1; margin-bottom: -52px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 50px; padding: 38px 46px; background: var(--tafa-black-soft); color: var(--tafa-white); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--tafa-radius-md); }
.site-footer__contact-strip h2 { margin: 0; color: var(--tafa-white); font-size: clamp(32px, 3vw, 46px); }
.site-footer__contact-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.site-footer__contact-actions a { display: inline-flex; min-height: 50px; align-items: center; padding: 0 22px; border: 1px solid rgba(255, 255, 255, .34); border-radius: 4px; background: var(--tafa-black); color: var(--tafa-white); font-size: 13px; font-weight: 750; }
.site-footer__contact-actions a:hover { background: var(--tafa-white); color: var(--tafa-black); }
.site-footer__main { padding-block: 130px 72px; }
.site-footer__grid { display: grid; grid-template-columns: 1.15fr 1fr .8fr 1.1fr; gap: 54px; }
.site-footer h3 { color: var(--tafa-white); font-family: inherit; font-size: 15px; font-weight: 800; letter-spacing: .05em; }
.site-logo--footer { display: block; margin-bottom: 22px; filter: brightness(0) invert(1); }
.site-footer__brand a { color: var(--tafa-white); }
.footer-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 15px; }
.footer-list a:hover { color: var(--tafa-red-light); }
.footer-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.footer-gallery-grid a { aspect-ratio: 1; overflow: hidden; }
.footer-gallery-grid img { width: 100%; height: 100%; object-fit: cover; }
.site-footer__bottom { border-top: 0; }
.site-footer__bottom .tafa-container { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: 13px; }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom ul { display: flex; gap: 22px; margin: 0; padding: 0; list-style: none; }

.page-hero { position: relative; min-height: clamp(350px, 44vw, 600px); display: flex; align-items: end; background: var(--tafa-black); color: var(--tafa-white); }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero__wash { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 12, 13, .92), rgba(11, 12, 13, .24)); } /* taste-skill-ignore: neutral legibility scrim over a real photo */
.page-hero .tafa-container { position: relative; z-index: 1; padding-block: 80px; }
.page-hero h1 { margin: 0; color: var(--tafa-white); text-transform: none; }
.page-hero--compact { min-height: 320px; background: var(--tafa-navy); }
.page-hero--legacy-home h1 span { color: var(--tafa-orange); }

.service-index-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-index-card a { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; padding: 28px; aspect-ratio: 4 / 4.6; border-radius: var(--tafa-radius-sm); overflow: hidden; background: var(--tafa-black); color: var(--tafa-white); }
.service-index-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.service-index-card a::after { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11, 12, 13, .95), rgba(11, 12, 13, 0) 62%); content: ""; } /* taste-skill-ignore: neutral legibility scrim over a service photo */
.service-index-card:hover img { transform: scale(1.04); }
.service-index-card__number, .service-index-card__title, .service-index-card__cta { position: relative; z-index: 1; }
.service-index-card__number { top: 18px; left: 18px; padding: 8px 12px; background: var(--tafa-orange); font-size: 12px; font-weight: 800; }
.service-index-card__title { font-family: "TAFA Display", "Avenir Next", Avenir, sans-serif; font-size: clamp(26px, 3vw, 38px); font-weight: 650; letter-spacing: -.035em; line-height: 1.12; overflow-wrap: anywhere; hyphens: auto; }
.service-index-card__cta { font-size: 13px; font-weight: 700; }

.service-detail__layout { display: grid; grid-template-columns: 1.1fr .7fr; gap: clamp(45px, 7vw, 110px); align-items: start; }
.tafa-richtext { max-width: 850px; }
.tafa-richtext h2, .tafa-richtext h3 { margin-top: 42px; }
.tafa-richtext h2 { font-size: clamp(30px, 3.1vw, 44px); line-height: 1.16; margin-bottom: 20px; }
.tafa-richtext h3 { font-size: clamp(25px, 2.4vw, 34px); line-height: 1.2; margin-bottom: 18px; }
.tafa-richtext h4 { margin: 34px 0 14px; font-size: 24px; line-height: 1.25; letter-spacing: -.025em; }
.tafa-richtext > :first-child { margin-top: 0; }
.tafa-richtext > :last-child { margin-bottom: 0; }
.tafa-richtext p { max-width: 72ch; white-space: pre-line; }
.tafa-richtext ul { display: grid; gap: 9px; margin: 18px 0 28px; padding: 0; list-style: none; }
.tafa-richtext li { position: relative; padding-left: 27px; }
.tafa-richtext li::before { position: absolute; top: .7em; left: 0; width: 8px; height: 8px; background: var(--tafa-orange); content: ""; }
.tafa-source-label { font-weight: 800; }
.service-detail__content .button { margin-top: 28px; }
.service-detail__visual { position: sticky; top: 160px; }
.service-detail__visual > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service-inquiry { max-width: 100%; white-space: normal; text-align: center; overflow-wrap: anywhere; }

/* Unternehmensporträt: die Bildkante und die ruhige Titelzeile greifen Start und Galerie auf. */
.about-page { background: var(--tafa-cream); color: var(--tafa-ink); }
.about-edition, .about-team__inner { max-width: 74rem; }
.about-edition { padding-block: clamp(32px, 4.5vw, 68px) clamp(38px, 5vw, 72px); }
.about-masthead, .about-team__intro { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.about-masthead { margin-bottom: clamp(20px, 2.5vw, 36px); }
.about-masthead h1, .about-team h2 { margin: 0; font-weight: 550; letter-spacing: -.048em; line-height: 1.04; }
.about-masthead h1 { color: var(--tafa-ink); font-size: clamp(50px, 7.5vw, 106px); }
.about-feature { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(0,1fr); align-items: end; }
.about-feature > img { width: 100%; height: auto; border-radius: var(--tafa-radius-md) var(--tafa-radius-md) 0 var(--tafa-radius-md); }
.about-feature__body { min-width: 0; padding: clamp(26px, 3vw, 48px); background: var(--tafa-black); color: var(--tafa-white); border-radius: 0 var(--tafa-radius-md) var(--tafa-radius-md) 0; }
.about-feature__body h2 { max-width: 17ch; margin: 0; color: inherit; font-size: clamp(32px, 3.2vw, 48px); line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
.about-feature__body p { max-width: 44ch; margin: 16px 0 0; font-size: clamp(17px, 1.25vw, 20px); line-height: 1.55; }
.about-feature__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin-top: 20px; }
.about-feature__actions .text-action { color: inherit; }
.about-practice { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(22px, 4vw, 60px); margin-top: clamp(32px, 4.5vw, 68px); }
.about-note { display: grid; grid-template-columns: clamp(96px, 9vw, 138px) minmax(0,1fr); grid-template-rows: auto auto; gap: 8px clamp(16px, 1.7vw, 26px); align-content: start; }
.about-note h2, .about-note p { grid-column: 2; align-self: start; margin: 0; }
.about-note h2 { font-size: clamp(23px, 2vw, 30px); line-height: 1.18; letter-spacing: -.03em; text-wrap: balance; }
.about-note p { max-width: 55ch; font-size: 17px; line-height: 1.56; }
.about-note img { grid-area: 1 / 1 / 3 / 2; width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; object-position: center; border-radius: var(--tafa-radius-sm); }
.about-team { background: var(--tafa-sand); padding-block: clamp(38px, 4.8vw, 72px); }
.about-team h2 { color: var(--tafa-ink); font-size: clamp(36px, 4.4vw, 64px); }
.about-team__intro { margin-bottom: clamp(24px, 3vw, 42px); }
.team-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(20px, 2vw, 32px); }
.team-card { min-width: 0; display: grid; grid-template-columns: clamp(90px, 8.5vw, 128px) minmax(0,1fr); gap: clamp(14px, 1.5vw, 22px); align-items: center; }
.team-card--portrait { grid-template-columns: clamp(117px, 11.05vw, 166.4px) minmax(0,1fr); }
.team-card__portrait, .team-card__initials { width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: var(--tafa-radius-sm); }
.team-card__photo { display: block; min-width: 0; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--tafa-radius-sm); clip-path: inset(0 round var(--tafa-radius-sm)); isolation: isolate; }
.team-card__portrait { display: block; object-fit: cover; object-position: center 25%; transition: transform 180ms var(--ease-out); }
.team-card__initials { display: grid; place-items: center; background: var(--tafa-cream); color: var(--tafa-orange-dark); font: 550 clamp(26px, 2.45vw, 37px)/1 "TAFA Display", sans-serif; letter-spacing: -.04em; }
.team-card__content h3 { margin: 0; font-size: clamp(22px, 1.85vw, 29px); font-weight: 600; line-height: 1.18; letter-spacing: -.03em; }
.team-card__content p { margin: 4px 0 0; font-size: 16px; line-height: 1.45; color: #4b4c4b; }
@media (max-width: 1099px) {
    .about-note { grid-template-columns: minmax(0,1fr) 88px; }
    .about-note h2 { grid-area: 1 / 1 / 2 / -1; }
    .about-note p { grid-column: 1; }
    .about-note img { grid-area: 2 / 2; }
    .about-team__inner { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); align-items: start; gap: 24px; }
    .about-team__intro { display: grid; justify-content: start; margin: 0; }
    .about-team__intro a { justify-self: start; }
    .team-grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 880px) {
    .about-feature { grid-template-columns: minmax(0,1fr); }
    .about-feature > img { aspect-ratio: 16 / 9; object-fit: cover; object-position: center 40%; border-radius: var(--tafa-radius-sm) var(--tafa-radius-sm) 0 0; }
    .about-feature__body { padding: clamp(20px, 4vw, 32px); border-radius: 0 0 var(--tafa-radius-sm) var(--tafa-radius-sm); }
    .about-feature__body h2, .about-feature__body p { max-width: 52ch; }
    .about-practice { grid-template-columns: minmax(0,1fr); }
    .about-note { grid-template-columns: minmax(0,1fr) clamp(94px, 19vw, 144px); }
}
@media (max-width: 620px) {
    .about-edition, .about-team__inner { width: calc(100% - 36px); }
    .about-masthead { display: grid; justify-content: start; }
    .about-masthead a { justify-self: start; }
    .about-feature__body h2 { font-size: clamp(26px, 7vw, 34px); }
    .about-feature__body p { margin-top: 10px; }
    .about-team__inner { display: block; }
    .about-team__intro { display: flex; justify-content: space-between; margin-bottom: 20px; }
    .team-card { grid-template-columns: clamp(72px, 22vw, 96px) minmax(0, 1fr); }
    .team-card--portrait { grid-template-columns: clamp(93.6px, 28.6vw, 124.8px) minmax(0, 1fr); }
}

/* Fotostrecke: der erste Blick gilt der Arbeit, nicht einem austauschbaren Seitenbanner. */
.gallery-page { background: var(--tafa-cream); color: var(--tafa-ink); }
.gallery-edition { max-width: 80rem; padding-block: clamp(36px, 5vw, 72px) clamp(64px, 8vw, 120px); }
.gallery-masthead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .72fr); align-items: end; gap: 32px; }
.gallery-masthead h1 { margin: 0; color: var(--tafa-black); font-size: clamp(50px, 8vw, 112px); line-height: .99; letter-spacing: -.055em; font-weight: 550; }
.gallery-masthead p { max-width: 38ch; margin: 0; font-size: clamp(18px, 1.6vw, 23px); line-height: 1.45; text-wrap: pretty; }
.gallery-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 24px; margin-block: clamp(24px, 3vw, 42px) 18px; }
.gallery-tools { min-width: 0; }
.gallery-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 12px; }
.gallery-filters button { min-height: 44px; padding: 4px; background: transparent; border: 0; color: #4e4c48; font: inherit; font-size: 15px; font-weight: 550; cursor: pointer; }
.gallery-filters button:is(:hover,:focus-visible,.is-active) { color: var(--tafa-orange-dark); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .4em; }
.gallery-picker { display: none; }
.gallery-count { margin: 0 0 0 auto; color: #54514b; font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.gallery-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(24px, 3vw, 46px) clamp(12px, 1.75vw, 26px); view-transition-name: tafa-gallery; }
.gallery-item { display: block; grid-column: span 2; min-width: 0; color: var(--tafa-ink); cursor: zoom-in; }
.gallery-item:nth-child(5n + 1 of :not([hidden])) { grid-column: span 4; }
.gallery-item__photo { display: block; width: 100%; overflow: hidden; border-radius: var(--tafa-radius-sm); clip-path: inset(0 round var(--tafa-radius-sm)); isolation: isolate; background: var(--tafa-sand); height: clamp(170px, 17vw, 260px); }
@media (min-width: 801px) {
    .gallery-item:is(:nth-child(5n + 1 of :not([hidden])), :nth-child(5n + 2 of :not([hidden]))) .gallery-item__photo { height: clamp(250px, 28vw, 390px); }
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 180ms var(--ease-out); }
.gallery-item:first-child img { object-position: center 25%; }
.gallery-item__caption { display: block; padding-top: 9px; font-size: 15px; font-weight: 550; line-height: 1.4; }
.gallery-item:focus-visible .gallery-item__caption { text-decoration: underline; }
/* Keep the frame fixed while the photo zooms, including Safari column layouts. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .gallery-item:hover img,
    .team-card__photo:hover .team-card__portrait { transform: scale(1.025); }
    .gallery-item:hover .gallery-item__caption { color: var(--tafa-orange-dark); }
}
.gallery-empty { padding: clamp(24px, 4vw, 48px); background: var(--tafa-sand); }
.gallery-empty h2 { max-width: 32ch; margin: 0; font-size: clamp(21px, 2vw, 28px); line-height: 1.25; }
.gallery-empty-states:empty { display: none; }
.lightbox { width: min(calc(100% - 32px), 1000px); max-height: 94dvh; padding: 0; border: 0; border-radius: var(--tafa-radius-sm); background: var(--tafa-black); color: var(--tafa-white); overflow: auto; overscroll-behavior: contain; }
.lightbox::backdrop { background: rgba(8, 8, 9, .94); }
.lightbox__bar, .lightbox__footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 8px clamp(14px, 2vw, 26px); }
.lightbox__bar { font-size: 14px; font-variant-numeric: tabular-nums; }
.lightbox img { display: block; width: 100%; height: auto; max-height: 65dvh; object-fit: contain; }
.lightbox__media { position: relative; }
.lightbox__media[aria-busy="true"] img { visibility: hidden; }
.lightbox__error { margin: 0; padding: 64px 24px; text-align: center; }
.lightbox button { min-height: 44px; min-width: 44px; border: 0; background: transparent; color: inherit; cursor: pointer; font: inherit; }
.lightbox button:disabled { opacity: .35; cursor: default; }
.lightbox button:is(:hover,:focus-visible):enabled { text-decoration: underline; text-underline-offset: .2em; }
.lightbox__footer p { margin: 0; line-height: 1.45; font-size: 16px; }
.lightbox__steps { display: flex; flex-shrink: 0; font-size: 24px; }
@media (max-width: 800px) {
    .gallery-masthead { grid-template-columns: 1fr; gap: 12px; }
    .gallery-masthead p { max-width: 44ch; }
    .gallery-tools .gallery-filters { display: none; }
    .gallery-picker { display: grid; gap: 4px; font-size: 14px; font-weight: 550; }
    .gallery-picker select { min-height: 44px; max-width: 100%; border: 0; border-radius: 8px; padding: 0 10px; background: var(--tafa-sand); color: var(--tafa-ink); font: inherit; font-size: 16px; }
    .gallery-toolbar { flex-wrap: nowrap; align-items: end; }
    .gallery-count { padding-bottom: 10px; }
    .gallery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .gallery-grid .gallery-item { grid-column: auto; }
    .gallery-grid .gallery-item:nth-child(5n + 1 of :not([hidden])) { grid-column: 1 / -1; }
    .gallery-grid .gallery-item .gallery-item__photo { height: auto; aspect-ratio: 4 / 3; }
    .gallery-grid .gallery-item:nth-child(5n + 1 of :not([hidden])) .gallery-item__photo { aspect-ratio: 16 / 10; }
    .gallery-item__caption { font-size: 14px; }
}
@media (max-width: 400px) {
    .gallery-toolbar { gap: 8px; }
    .gallery-picker select { width: min(61vw, 235px); }
}
@media (prefers-reduced-motion: reduce) { .gallery-item img, .team-card__portrait { transition: none; transform: none; } }

.career-intro { display: grid; grid-template-columns: 1.2fr .8fr; gap: 72px; align-items: center; }
.career-intro > img { max-height: 430px; height: auto; margin-inline: auto; border-radius: var(--tafa-radius-lg); }
.career-application { background: var(--tafa-sand); }
.career-application__grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 70px; align-items: start; }
.legal-content { max-width: 880px; }
.legal-content .tafa-richtext h2 { font-size: clamp(28px, 3vw, 36px); line-height: 1.22; }
.legacy-feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.legacy-feature-grid article { padding-bottom: 25px; background: var(--tafa-white); border: 1px solid var(--tafa-line); border-radius: var(--tafa-radius-sm); overflow: hidden; }
.legacy-feature-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.legacy-feature-grid h2, .legacy-feature-grid p { margin-inline: 22px; }
.legacy-feature-grid h2 { margin-top: 24px; font-size: 26px; }
.legacy-services-list { background: var(--tafa-sand); }

/* Do not transform body: it would make the fixed page loader use the full document
   as its containing block instead of the screen. Page fade remains unchanged. */
@keyframes tafa-page-enter { from { opacity: .01; } to { opacity: 1; } }
@keyframes tafa-gallery-enter { from { opacity: .01; transform: translateY(5px); } to { opacity: 1; transform: none; } }
::view-transition-old(root) { animation: .16s ease both tafa-view-old; }
::view-transition-new(root) { animation: .21s ease both tafa-view-new; }
::view-transition-old(tafa-gallery) { animation: .14s ease both tafa-view-old; }
::view-transition-new(tafa-gallery) { animation: .19s ease both tafa-view-new; }
@keyframes tafa-view-old { to { opacity: 0; transform: translateY(-4px); } }
@keyframes tafa-view-new { from { opacity: 0; transform: translateY(5px); } }
.gallery-item:not([data-reveal]):not([hidden]) { animation: tafa-gallery-enter .18s ease both; }

@media (max-width: 1080px) {
    :root { --tafa-container: min(100% - 40px, 940px); --tafa-header-height: 124px; }
    .site-header__main { min-height: 80px; }
    .primary-nav { min-height: 80px; }
    .site-logo { width: 136px; }
    .primary-nav__group { gap: 13px; }
    .primary-nav__group--left { padding-right: 86px; }
    .primary-nav__group--right { padding-left: 86px; }
    .primary-nav__group > li > a { font-size: 13px; }
    .site-footer__grid { grid-template-columns: repeat(2, 1fr); }
    .service-index-grid { grid-template-columns: repeat(2, 1fr); }
    .legacy-feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
    :root { --tafa-header-height: 168px; }
    .site-header__main { width: 100%; min-height: 124px; }
    .primary-nav { min-height: 124px; display: flex; flex-direction: column; justify-content: space-between; }
    .primary-nav > .site-logo { position: static; order: 1; width: 128px; min-height: 72px; display: flex; align-items: center; transform: none; }
    .primary-nav__links {
        order: 2;
        width: 100%;
        min-height: 52px;
        display: flex;
        align-items: stretch;
        gap: 24px;
        overflow-x: auto;
        overflow-y: hidden;
        padding-inline: 24px;
        border-top: 0;
        scroll-padding-inline: 24px;
        scroll-behavior: smooth;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
    }
    .primary-nav__links::-webkit-scrollbar { display: none; }
    .primary-nav__group { flex: 0 0 auto; gap: 24px; padding: 0; }
    .primary-nav__group--left { margin-left: auto; }
    .primary-nav__group--right { margin-right: auto; }
    .primary-nav__group > li > a { min-height: 52px; padding-inline: 8px; white-space: nowrap; font-size: 13px; }
    .primary-nav__group > li > a::after { bottom: 0; right: 8px; left: 8px; }
    .submenu { display: none; }
    .service-editorial, .vehicle-stage__layout { grid-template-columns: 1fr; }
    .service-editorial__intro { position: static; }
    .vehicle-stage__sticky { align-items: flex-start; padding-block: 64px; }
    .vehicle-stage__copy h2 { max-width: 10ch; }
    .vehicle-stage__slot { width: min(100%, 760px); margin-left: auto; }
    .service-detail__layout, .career-intro, .career-application__grid { grid-template-columns: 1fr; }
    .service-detail__visual { position: static; }
}

@media (max-width: 760px) {
    :root { --tafa-container: calc(100% - 32px); --tafa-section: 68px; --tafa-header-height: 168px; }
    body { font-size: 16px; }
    .site-header__meta { justify-content: center; gap: 14px; min-height: 44px; }
    .site-header__meta a:first-child { display: none; }
    .site-header__main, .primary-nav { min-height: 124px; }
    .primary-nav > .site-logo { width: 122px; min-height: 70px; }
    .vehicle-stage { height: 125svh; }
    .vehicle-stage__sticky { min-height: calc(100svh - var(--tafa-header-height)); padding-block: 48px 64px; }
    .vehicle-stage__layout { gap: 42px; }
    .vehicle-stage__copy h2 { font-size: clamp(42px, 12vw, 62px); }
    .vehicle-stage__copy p { font-size: 16px; }
    .vehicle-stage__media { transform: translate3d(3vw, 0, 0); }
    .vehicle-stage__note { font-size: 9px; }
    .section-heading { align-items: start; flex-direction: column; }
    .service-editorial, .proof-layout, .certificate-grid, .contact-layout, .site-footer__contact-strip, .service-detail__layout, .career-intro, .career-application__grid { grid-template-columns: 1fr; }
    .service-editorial { gap: 48px; }
    .service-editorial__body figure img { aspect-ratio: 4 / 3; }
    .service-ledger a { min-height: 70px; }
    .proof-layout { gap: 48px; }
    .proof-layout__media img { aspect-ratio: 4 / 4.5; }
    .home-gallery-grid { grid-template-columns: 1fr 1fr; }
    .home-gallery-grid figure:first-child { grid-column: 1 / -1; }
    .home-gallery-grid figure:nth-child(2) { margin-bottom: 0; }
    .home-gallery-grid img, .home-gallery-grid figure:nth-child(2) img { height: 280px; }
    .certificate-grid > div { min-height: 130px; border-right: 0; border-bottom: 0; }
    .certificate-grid > div:last-child { border-bottom: 0; }
    .site-footer__contact-strip { margin-bottom: 0; padding: 30px 24px; gap: 24px; border-radius: var(--tafa-radius-sm); }
    .site-footer__contact-actions { justify-content: flex-start; }
    .site-footer__main { padding-block: 70px; }
    .site-footer__grid { grid-template-columns: 1fr; gap: 36px; }
    .site-footer__bottom .tafa-container { padding-block: 18px; align-items: start; flex-direction: column; }
    .site-footer__bottom ul { flex-wrap: wrap; }
    .service-index-grid { grid-template-columns: 1fr; }
    .service-detail__visual { position: static; }
    .tafa-form-grid { grid-template-columns: 1fr; }
    .tafa-field-wide { grid-column: auto; }
    .legacy-feature-grid { grid-template-columns: 1fr; }
}

@media (max-width: 390px) {
    :root { --tafa-container: calc(100% - 24px); --tafa-header-height: 164px; }
    .site-header__meta { font-size: 11px; }
    .site-header__main, .primary-nav { min-height: 120px; }
    .primary-nav > .site-logo { min-height: 68px; width: 116px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    body { animation: none; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    ::view-transition-old(root), ::view-transition-new(root), ::view-transition-old(tafa-gallery), ::view-transition-new(tafa-gallery) { animation: none !important; }
    [data-reveal], [data-reveal].is-reveal-pending { opacity: 1 !important; transform: none !important; transition: none !important; }
    .vehicle-stage { height: auto; }
    .vehicle-stage__sticky { position: relative; top: auto; min-height: auto; }
    .vehicle-stage__copy, .vehicle-stage__media { opacity: 1 !important; transform: none !important; }
}

/* Relaunch direction 02: professional black / TAFA red / motion-ready layout */
:root {
    --tafa-orange: #c4151c;
    --tafa-orange-dark: #971017;
    --tafa-red-light: #ed5a60;
    --tafa-container: min(1380px, calc(100% - 64px));
    --tafa-header-height: 120px;
}

.site-header { background: rgba(8, 8, 9, .97); }
.site-header__utility { background: #050506; border-bottom: 0; }
.site-header__utility-inner { min-height: 34px; display: flex; align-items: center; justify-content: center; gap: 24px; }
.site-header__descriptor { color: rgba(255, 255, 255, .48); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.site-header__contact { display: flex; align-items: center; gap: 24px; color: rgba(255, 255, 255, .76); font-size: 11px; font-weight: 650; }
.site-header__contact > a:not(.social-link):hover { color: var(--tafa-red-light); }
.site-header__main { min-height: 86px; }
/* Equal outer tracks keep the link group centered independently of the logo and inquiry button. */
.primary-nav { min-height: 86px; display: grid; grid-template-columns: minmax(0, 1fr) max-content minmax(0, 1fr); align-items: center; gap: clamp(28px, 4vw, 68px); }
.primary-nav > .site-logo { position: static; width: 146px; transform: none; }
.site-logo img, .site-logo--footer { filter: none; }
.primary-nav__links { width: auto; min-width: 0; display: flex; justify-content: center; }
.primary-nav__group { display: flex; align-items: center; gap: clamp(18px, 2vw, 34px); margin: 0; padding: 0; }
@media (width > 860px) {
    .primary-nav > .site-logo { justify-self: start; }
    .primary-nav > .header-inquiry { justify-self: end; }
}
.primary-nav__group > li > a { min-height: 48px; color: rgba(255, 255, 255, .76); font-size: 13px; font-weight: 650; }
.primary-nav__group > li > a::after { bottom: 3px; background: var(--tafa-orange); }
.header-inquiry { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; background: var(--tafa-orange); color: var(--tafa-white); font-size: 12px; font-weight: 800; letter-spacing: .03em; transition: background .2s var(--ease-out), transform .2s var(--ease-out); }
.header-inquiry:hover { background: var(--tafa-white); color: var(--tafa-black); transform: translateY(-2px); }
.social-link { width: 36px; min-height: 34px; border-inline: 1px solid rgba(255, 255, 255, .12); }
.social-link svg { width: 17px; height: 17px; }


.operations-band { background: var(--tafa-white); border-bottom: 0; }
.operations-band__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.operations-band__grid > div { min-height: 104px; display: flex; align-items: center; gap: 22px; padding: 20px clamp(20px, 3vw, 46px); border-right: 0; }
.operations-band__grid > div:first-child { padding-left: 0; }
.operations-band__grid > div:last-child { border-right: 0; }
.operations-band__grid span { color: var(--tafa-orange); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.operations-band__grid p { margin: 0; color: var(--tafa-black); font-size: clamp(16px, 1.4vw, 20px); font-weight: 650; }

.vehicle-stage, .proof-section, .site-footer, .contact-panel { color: var(--tafa-white); }
.vehicle-stage h1, .vehicle-stage h2, .vehicle-stage h3,
.proof-section h1, .proof-section h2, .proof-section h3,
.site-footer h1, .site-footer h2, .site-footer h3,
.contact-panel h1, .contact-panel h2, .contact-panel h3 { color: var(--tafa-white); }
.vehicle-stage__sticky::before { background: #080809; }
.vehicle-stage__media { border-color: rgba(255, 255, 255, .16); }
.vehicle-stage__media::before { position: absolute; top: 18px; right: 18px; z-index: 2; width: 38px; height: 38px; border-top: 2px solid var(--tafa-orange); border-right: 2px solid var(--tafa-orange); content: ""; }
.vehicle-stage__media::after { background: transparent; }
.vehicle-stage__track span { background: var(--tafa-orange); }
.vehicle-stage__note { color: rgba(255, 255, 255, .55); }

.services-section { padding-block: clamp(100px, 11vw, 170px); }
.service-editorial__intro h2 { max-width: 8.5ch; }
.service-ledger a { position: relative; min-height: 88px; overflow: hidden; }
.service-ledger a::before { position: absolute; inset: 0; z-index: -1; background: var(--tafa-black); content: ""; transform: scaleY(0); transform-origin: bottom; transition: transform .3s var(--ease-out); }
.service-ledger a:hover::before { transform: scaleY(1); }
.service-ledger a:hover > span:first-child { color: var(--tafa-white); }
.service-ledger a > span:first-child { transition: color .22s ease; }
.service-ledger a:hover .service-ledger__action { color: var(--tafa-red-light); }

.proof-layout__content h2 { color: var(--tafa-white); }
.tafa-form input:focus, .tafa-form textarea:focus, .tafa-form select:focus { border-color: var(--tafa-orange); outline: 2px solid var(--tafa-orange); outline-offset: 3px; }

.page-hero { min-height: clamp(460px, 47vw, 690px); align-items: stretch; overflow: hidden; background: #080809; }
.page-hero > img { left: auto; width: 62%; object-position: center; filter: grayscale(.12) saturate(.72) contrast(1.04); }
.page-hero__wash { background: linear-gradient(90deg, #080809 0%, #080809 35%, rgba(8, 8, 9, .86) 48%, rgba(8, 8, 9, .08) 100%); } /* taste-skill-ignore: neutral legibility scrim over a real page photo */
.page-hero .tafa-container { min-height: inherit; display: flex; flex-direction: column; align-items: flex-start; justify-content: end; padding-block: clamp(80px, 9vw, 130px); }
.page-hero__content { position: relative; z-index: 1; }
.page-hero h1 { max-width: 9ch; margin: 0; color: var(--tafa-white); font-size: clamp(54px, 7vw, 104px); line-height: 1.04; }
.page-hero__content > a { min-height: 44px; display: inline-flex; align-items: center; margin-top: 34px; color: var(--tafa-white); font-size: 13px; font-weight: 700; text-decoration: underline; text-decoration-color: var(--tafa-red-light); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.page-hero--compact { min-height: 390px; }
.page-hero--compact .tafa-container { justify-content: center; }
.page-hero--compact h1 { max-width: 12ch; }
.service-index-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.service-index-card { grid-column: span 5; }
.service-index-card:nth-child(4n + 1), .service-index-card:nth-child(4n + 4) { grid-column: span 7; }
.service-index-card a { min-height: clamp(380px, 38vw, 560px); aspect-ratio: auto; border-radius: 0; }
.service-index-card__number { background: var(--tafa-orange); }
.service-index-card__title { max-width: 19ch; }

.site-footer { background: #080809; }
.site-footer__cta { border-top: 0; border-bottom: 0; background: var(--tafa-black-soft); }
.site-footer__cta-inner { min-height: clamp(250px, 27vw, 390px); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 60px; }
.site-footer__cta h2 { max-width: 13ch; margin: 0; color: var(--tafa-white); font-size: clamp(42px, 5.7vw, 82px); }
.footer-cta-link { min-height: 56px; display: inline-flex; align-items: center; padding: 0 26px; background: var(--tafa-orange); color: var(--tafa-white); font-size: 13px; font-weight: 800; transition: transform .2s var(--ease-out), background .2s ease; }
.footer-cta-link:hover { background: var(--tafa-white); color: var(--tafa-black); transform: translateY(-3px); }
.site-footer__main { padding-block: clamp(74px, 8vw, 120px); }
.site-footer__grid { grid-template-columns: 1.25fr .75fr .75fr 1fr; gap: clamp(34px, 5vw, 76px); }
.site-logo--footer { width: 175px; margin-bottom: 28px; }
.site-footer__brand p { max-width: 28ch; }
.site-footer h3 { color: var(--tafa-white); }
.site-footer__contact .footer-list a { color: var(--tafa-white); }
.site-footer__bottom { border-top-color: rgba(255, 255, 255, .1); }

/* Consistent rounded surfaces: restrained for controls, stronger for media and grouped panels. */
.text-link,
.button,
.header-inquiry,
.tafa-form button,
.site-footer__contact-actions a,
.footer-cta-link,
.gallery-filters button,
.service-index-card__number {
    border-radius: var(--tafa-radius-sm);
}

.vehicle-stage__media,
.service-editorial__body figure,
.proof-layout__media,
.home-gallery-grid figure,
.service-index-card a,
.service-detail__visual,
.career-intro > img,
.footer-gallery-grid a,
.gallery-empty {
    border-radius: var(--tafa-radius-md);
    overflow: hidden;
}

.contact-layout,
.site-footer__contact-strip {
    border-radius: var(--tafa-radius-lg);
}

@media (max-width: 1080px) {
    :root { --tafa-container: min(100% - 40px, 980px); --tafa-header-height: 116px; }
    .site-header__main, .primary-nav { min-height: 82px; }
    .primary-nav { gap: 24px; }
    .primary-nav > .site-logo { width: 126px; }
    .primary-nav__group { gap: 17px; }
    .primary-nav__group > li > a { font-size: 12px; }
    .header-inquiry { padding-inline: 15px; }
    .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
    :root { --tafa-header-height: 166px; }
    .site-header__descriptor { display: none; }
    .site-header__main { min-height: 132px; }
    .site-header__main > .tafa-container { width: 100%; }
    .primary-nav { min-height: 132px; grid-template-columns: 1fr auto; grid-template-rows: 78px 54px; gap: 0; }
    .primary-nav > .site-logo { order: 0; width: 126px; margin-left: 24px; }
    .header-inquiry { order: 0; margin-right: 24px; }
    .primary-nav__links { order: 0; grid-column: 1 / -1; grid-row: 2; width: 100%; display: block; overflow-x: auto; overflow-y: hidden; padding-inline: 24px; border-top: 0; scrollbar-width: none; scroll-padding-inline: 24px; }
    .primary-nav__links::-webkit-scrollbar { display: none; }
    /* Auto margins center a fitting row and resolve to zero at swipe widths. */
    .primary-nav__group { width: max-content; min-height: 54px; margin-inline: auto; justify-content: flex-start; gap: 26px; }
    .primary-nav__group > li > a { min-height: 54px; padding-inline: 4px; white-space: nowrap; }
    .primary-nav__group > li > a::after { right: 4px; bottom: 0; left: 4px; }
    .vehicle-stage__layout { grid-template-columns: 1fr; }
    .page-hero > img { width: 72%; }
    .page-hero__wash { background: linear-gradient(90deg, #080809 0%, rgba(8, 8, 9, .93) 44%, rgba(8, 8, 9, .3) 100%); } /* taste-skill-ignore: neutral legibility scrim over a real page photo */
}

@media (max-width: 760px) {
    :root { --tafa-container: calc(100% - 32px); --tafa-header-height: 166px; }
    .site-header__contact > a:first-child { display: none; }
    .site-header__contact { gap: 16px; }
    .operations-band__grid { grid-template-columns: 1fr; }
    .operations-band__grid > div { min-height: 72px; padding-inline: 0; border-right: 0; border-bottom: 0; }
    .operations-band__grid > div:last-child { border-bottom: 0; }
    .vehicle-stage { height: auto; }
    .vehicle-stage__sticky { position: relative; top: auto; min-height: auto; padding-block: 80px; }
    .vehicle-stage__copy { opacity: 1; transform: none; }
    .vehicle-stage__media { opacity: 1; transform: none; }
    .page-hero { min-height: 500px; }
    .page-hero > img { width: 100%; }
    .page-hero__wash { background: linear-gradient(180deg, rgba(8, 8, 9, .25), rgba(8, 8, 9, .96) 72%); } /* taste-skill-ignore: neutral legibility scrim over a real page photo */
    .page-hero .tafa-container { justify-content: end; padding-block: 72px; }
    .page-hero h1 { max-width: 10ch; font-size: clamp(48px, 14vw, 70px); }
    .service-index-grid { grid-template-columns: 1fr; }
    .service-index-card, .service-index-card:nth-child(4n + 1), .service-index-card:nth-child(4n + 4) { grid-column: 1; }
    .service-index-card a { min-height: 480px; }
    .site-footer__cta-inner { grid-template-columns: 1fr; align-content: center; gap: 34px; padding-block: 74px; }
    .site-footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 390px) {
    :root { --tafa-container: calc(100% - 24px); }
    .primary-nav > .site-logo { width: 112px; margin-left: 16px; }
    .header-inquiry { min-height: 40px; margin-right: 16px; padding-inline: 13px; }
    .primary-nav__links { padding-inline: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .service-ledger a::before { transition: none !important; }
}

/* Premium direction 03: TAFA brand mark, operational stages and honest content placeholders. */
:root {
    --tafa-container: min(1720px, calc(100% - 64px));
    --tafa-radius-sm: 18px;
    --tafa-radius-md: 30px;
    --tafa-radius-lg: 42px;
    --tafa-radius-control: 999px;
    --tafa-shadow: none;
}

body { background: #f2f1ed; }
::selection { background: var(--tafa-orange); color: var(--tafa-white); }
.site-header { background: #080809; border-bottom: 0; backdrop-filter: none; }
.site-header.is-scrolled { background: #080809; box-shadow: 0 12px 40px rgba(0, 0, 0, .22); } /* taste-skill-ignore: the sticky header is a real overlay */
.site-header__utility { border-bottom: 0; }
.header-inquiry,
.text-link,
.button,
.tafa-form button,
.footer-cta-link,
.gallery-filters button,
.site-footer__contact-actions a { border-radius: var(--tafa-radius-control); }
.button:active,
.header-inquiry:active,
.footer-cta-link:active,
.tafa-form button:active { transform: scale(.97); }

.reference-preview { padding-block: 18px clamp(100px, 10vw, 170px); background: #080809; color: var(--tafa-white); overflow: hidden; }
.reference-preview__intro {
    min-height: 220px;
    display: grid;
    grid-template-columns: minmax(0, .7fr) minmax(280px, 1.3fr);
    align-items: end;
    gap: clamp(36px, 8vw, 150px);
    padding: clamp(28px, 4vw, 54px);
    border-radius: var(--tafa-radius-md);
    background: var(--tafa-orange);
}
.reference-preview__intro h2 { max-width: 8ch; margin: 0; color: var(--tafa-white); font-size: clamp(40px, 4.2vw, 72px); }
.reference-preview__intro p { max-width: 52ch; margin: 0; color: var(--tafa-white); font-size: 15px; line-height: 1.55; }
.reference-carousel {
    --reference-gap: 6px;
    --reference-face: #e6e5e1;
    /* Remove only surrounding space, keeping the available logo width. */
    --reference-trim: 18px;
    width: var(--tafa-container);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--reference-gap);
    margin: 10px auto 0;
}
/* On wider screens each row scrolls independently. */
.reference-carousel__viewport { min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #999 transparent; }
.reference-carousel.is-ready[data-single-row] > .reference-carousel__viewport ~ .reference-carousel__viewport { display: none; }
@media (max-width: 767px), (max-width: 960px) and (max-height: 500px) and (orientation: landscape) {
    /* Before enhancement (or without JS), the two server-rendered groups form
       one continuous, swipeable strip; no partners are hidden. */
    .reference-carousel:not(.is-ready):not([data-single-row]) {
        display: flex;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scrollbar-width: thin;
    }
    .reference-carousel:not(.is-ready):not([data-single-row]) > .reference-carousel__viewport {
        flex: 0 0 auto;
        overflow: visible;
    }
}
.reference-carousel__lane { display: flex; width: max-content; }
.reference-carousel__group { display: flex; flex: none; width: max-content; gap: var(--reference-gap); padding-inline-end: var(--reference-gap); }
.reference-carousel__group[aria-hidden="true"] { display: none; }
@media (prefers-reduced-motion: no-preference) {
    .reference-carousel__viewport.is-looping:not(.is-keyboard-browsing) { overflow: clip; }
    .reference-carousel__viewport.is-looping:not(.is-keyboard-browsing) .reference-carousel__group {
        display: flex;
        animation: tafa-reference-loop var(--reference-duration, 60s) linear infinite;
    }
    .reference-carousel__viewport.is-looping:not(.is-keyboard-browsing) .reference-carousel__lane--reverse .reference-carousel__group { animation-direction: reverse; }
}
.reference-carousel__card {
    flex: none;
    width: calc(clamp(190px, 19.7vw, 312px) - var(--reference-trim));
    min-inline-size: var(--reference-card-min, 0px);
    min-height: 124px;
    display: grid;
    padding: 9px;
    border-radius: 23px;
    background: #191a1c;
    border: 0;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.reference-carousel__card:nth-child(3n + 2) { width: calc(clamp(222px, 23vw, 360px) - var(--reference-trim)); }
.reference-carousel__card:nth-child(3n + 3) { width: calc(clamp(205px, 20.5vw, 328px) - var(--reference-trim)); }
.reference-preview__logo {
    min-height: 104px;
    display: grid;
    place-items: center;
    padding: 12px 18px;
    border-radius: 14px;
    background: var(--reference-face);
}
.reference-preview__logo img { width: auto; max-width: min(100%, 196px); max-height: 54px; object-fit: contain; }
.reference-filter-defs { position: absolute; pointer-events: none; }
.reference-preview__logo img[src$="kongresshalle-nuernberg-wordmark.png"] {
    width: min(100%, 212px);
    max-width: 100%;
    height: auto;
    max-height: 72px;
    /* Only this monochrome PNG has a baked-in white matte. */
    filter: url("#tafa-transparent-ink");
}
.reference-preview__wordmark {
    max-width: 100%;
    color: var(--tafa-ink);
    font-size: clamp(22px, 2.2vw, 31px);
    font-weight: 650;
    line-height: 1.12;
    letter-spacing: -.035em;
    text-align: center;
    overflow-wrap: anywhere;
}
.reference-preview__logo--dark { background: #202123; }
.reference-preview__logo-placeholder { color: #777a7f; font-size: 13px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }

/* The trailing gutter belongs to each equal-sized group; one turn is exactly its own width. */
@keyframes tafa-reference-loop {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

.vehicle-stage { height: 165svh; background: #080809; }
.vehicle-stage__sticky::before { background: #080809; }
.vehicle-stage__layout { grid-template-columns: .72fr 1.28fr; }
.vehicle-stage__copy h2 { max-width: 7ch; font-size: clamp(58px, 6.5vw, 108px); line-height: .92; }
.vehicle-stage__copy p { color: rgba(255, 255, 255, .78); }
.vehicle-stage__media { border: 0; border-radius: var(--tafa-radius-lg); background: #17181a; }
.vehicle-stage__media::before { display: none; }
.vehicle-stage__media::after { display: none; }
.vehicle-stage__track { height: 6px; margin-top: 18px; border-radius: 99px; background: #232426; overflow: hidden; }
.vehicle-stage__track span { height: 100%; border-radius: inherit; }

.motion-placeholder { position: relative; isolation: isolate; overflow: hidden; }
.motion-placeholder__mark {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(52%, 430px);
    aspect-ratio: 1;
    background: var(--tafa-orange);
    -webkit-mask: url('/assets/media/branding/mark.svg') center / contain no-repeat;
    mask: url('/assets/media/branding/mark.svg') center / contain no-repeat;
    opacity: .13;
    transform: translate(-50%, -50%);
}

.services-section { background: #f2f1ed; }
.service-editorial__body figure { border-radius: var(--tafa-radius-lg); }
.service-ledger { border: 0; }
.service-ledger li { margin-top: 8px; border: 0; }
.service-ledger a { min-height: 88px; padding-inline: 24px; border-radius: var(--tafa-radius-sm); background: #e5e3dd; }
.service-ledger a::before { border-radius: inherit; }

.proof-section { background: #080809; }
.proof-layout__media { border-radius: var(--tafa-radius-lg); overflow: hidden; }
.benefit-list { gap: 10px; border: 0; }
.benefit-list article { padding: 26px 30px; border: 0; border-radius: var(--tafa-radius-sm); background: #191a1c; }

.certificates-section { background: var(--tafa-white); }
.certificate-grid { gap: 10px; border: 0; overflow: visible; }
.certificate-grid > div { border: 0; border-radius: var(--tafa-radius-md); background: #f2f1ed; }

.home-gallery-section { background: #dcdad4; }
.home-gallery-grid { gap: 12px; }
.home-gallery-grid figure { border-radius: var(--tafa-radius-lg); }

.contact-section { background: #dcdad4; }
.contact-layout { border-radius: var(--tafa-radius-lg); }
.tafa-form input,
.tafa-form textarea,
.tafa-form select { border: 0; background: #f0efeb; }
.form-status-label { margin-bottom: 12px; color: var(--tafa-orange-dark); font-size: 15px; font-weight: 750; }

.page-hero { background: #080809; }
.page-hero > img {
    top: 24px;
    right: 24px;
    bottom: 24px;
    width: 58%;
    height: calc(100% - 48px);
    border-radius: var(--tafa-radius-lg);
}
.page-hero__wash { background: rgba(8, 8, 9, .18); }
.page-hero h1 { hyphens: auto; overflow-wrap: anywhere; }
.legal-page .page-hero { min-height: clamp(260px, 30vw, 390px); }
.legal-page .page-hero h1 { max-width: 100%; font-size: clamp(36px, 6vw, 84px); line-height: 1.1; }
.service-index-card a { border-radius: var(--tafa-radius-lg); }
.service-index-card__number { display: none; }
.section-title { margin-bottom: 48px; }

.site-footer__cta { border: 0; background: #151618; }
.site-footer__cta-inner { grid-template-columns: minmax(0, 1fr) auto; }
.site-footer__cta-inner > div { display: grid; gap: 14px; }
.site-footer__cta h2 { max-width: 10ch; }
.site-footer__cta p { margin: 0; color: rgba(255, 255, 255, .7); font-size: 18px; }
.site-footer__main { padding-top: clamp(60px, 7vw, 100px); }
@media (max-width: 860px) {
    :root { --tafa-container: calc(100% - 32px); }
    .reference-preview { padding-top: 10px; }
    .reference-preview__intro { min-height: 220px; grid-template-columns: 1fr; align-items: start; gap: 32px; }
    .reference-carousel__card { width: calc(clamp(180px, 51vw, 262px) - var(--reference-trim)); }
    .reference-carousel__card:nth-child(3n + 2) { width: calc(clamp(205px, 57.4vw, 295px) - var(--reference-trim)); }
    .reference-carousel__card:nth-child(3n + 3) { width: calc(clamp(193px, 54vw, 279px) - var(--reference-trim)); }
    .vehicle-stage__layout { grid-template-columns: 1fr; }
    .vehicle-stage__media { min-height: 420px; }
    .page-hero > img { top: 16px; right: 16px; bottom: 16px; width: calc(100% - 32px); height: calc(100% - 32px); }
    .page-hero__wash { background: rgba(8, 8, 9, .58); }
}

@media (max-width: 560px) {
    :root { --tafa-container: calc(100% - 24px); --tafa-radius-md: 24px; --tafa-radius-lg: 28px; }
    .reference-preview__intro { margin-inline: 12px; }
    .reference-carousel { --reference-trim: 14px; }
    .reference-carousel__card { padding: 6px; border-radius: 20px; }
    .reference-preview__logo { padding: 10px 12px; }
}

@media (max-width: 360px) {
}

@media (prefers-reduced-motion: reduce) {
    .motion-placeholder { animation: none !important; }
    .reference-carousel__group { animation: none !important; transform: none !important; }
}

/* Startseiten-Präzisionspass: getrennte Hero-Zonen, Referenzprofile und visuelle Leistungsnavigation. */

.reference-preview__intro {
    min-height: 0;
    display: flex;
    align-items: center;
    padding-block: clamp(20px, 2vw, 28px);
}
.reference-preview__intro h2 {
    max-width: none;
    font-family: "TAFA Display", "Avenir Next", Avenir, sans-serif;
}
@media (max-width: 640px) {
    .reference-preview__intro { padding: 12px 18px; border-radius: 16px; }
    .reference-preview__intro h2 { font-size: clamp(24px, 5.8vw, 31px); font-weight: 550; line-height: 1.16; letter-spacing: -.025em; }
}
.reference-carousel__card {
    position: relative;
    grid-template-columns: minmax(0, 1fr);
    overflow: hidden;
}
.reference-carousel__card:focus-visible { outline-offset: -4px; }
.reference-preview__logo {
    grid-area: 1 / 1;
    min-width: 0;
    transition: transform 180ms var(--ease-out);
}
.reference-preview__details {
    /* Shared grid cell: longer descriptions contribute to the card height. */
    position: relative;
    grid-area: 1 / 1;
    align-self: end;
    min-width: 0;
    margin: 0;
    z-index: 2;
    padding: 9px 11px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 16px 34px rgba(8, 8, 9, .16); /* taste-skill-ignore: temporary hover/focus information overlay */
    color: var(--tafa-black);
    overflow-wrap: anywhere;
    hyphens: auto;
    opacity: 0;
    pointer-events: none;
    transform: translate3d(0, 8px, 0);
    transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out);
}
.reference-preview__details strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}
.reference-preview__description {
    display: block;
    margin: 4px 0 0;
    color: rgba(8, 8, 9, .68);
    font-size: 12px;
    line-height: 1.45;
}
.reference-carousel:not(.is-ready) .reference-carousel__card:focus .reference-preview__details,
.reference-carousel__card.is-expanded .reference-preview__details {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}
.reference-carousel__card:focus-visible .reference-preview__logo,
.reference-carousel__card.is-expanded .reference-preview__logo {
    transform: translate3d(0, -2px, 0);
}

@media (max-width: 767px), (max-width: 960px) and (max-height: 500px) and (orientation: landscape) {
    /* Keep mobile logos in landscape rectangles, independent of description length. */
    .reference-carousel__card {
        height: 100px;
        min-height: 100px;
        grid-template-rows: minmax(0, 1fr);
    }
    .reference-preview__logo { min-height: 0; height: 100%; }
    .reference-preview__logo img { max-height: 48px; }
    .reference-preview__details {
        position: absolute;
        inset: 6px;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
    }
    .reference-carousel__card.is-expanded .reference-preview__details,
    .reference-carousel:not(.is-ready) .reference-carousel__card:focus .reference-preview__details {
        pointer-events: auto;
    }
}

/* Partially passing cards keep their logo instead of clipping information text. */
.reference-carousel.is-ready .reference-carousel__card:not(.is-info-visible) .reference-preview__details {
    opacity: 0 !important;
    pointer-events: none !important;
}
/* The information face has the same inset as the logo: it cannot cover
   the dark card frame. Long text remains scrollable without changing the row. */
.reference-carousel__card {
    height: 124px;
    grid-template-rows: minmax(0, 1fr);
}
.reference-preview__logo { height: 100%; min-height: 0; }
.reference-preview__details {
    position: absolute;
    grid-area: auto;
    inset: 9px;
    align-self: stretch;
    min-height: 0;
    max-height: 100%;
    padding: 9px 11px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    box-shadow: none;
    transform: none;
}
.reference-carousel__card.is-expanded .reference-preview__details { pointer-events: auto; }
.reference-carousel__card.is-expanded .reference-preview__logo,
.reference-carousel__card:focus-visible .reference-preview__logo { transform: none; }
@media (max-width: 767px), (max-width: 960px) and (max-height: 500px) and (orientation: landscape) {
    .reference-carousel__card { height: 100px; min-height: 100px; }
    .reference-preview__details { inset: 6px; padding: 8px 10px; }
}

.vehicle-stage { height: 188svh; }
.vehicle-stage__sticky { align-items: center; }
.vehicle-stage__layout {
    grid-template-columns: 1fr;
    gap: clamp(34px, 4vw, 60px);
}
.vehicle-stage__copy {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
    align-items: end;
    gap: clamp(40px, 8vw, 160px);
}
.vehicle-stage__copy h2 {
    max-width: 9ch;
    margin: 0;
    font-family: "TAFA Display", "Avenir Next", Avenir, sans-serif;
    font-size: clamp(52px, 5.5vw, 96px);
}
.vehicle-stage__copy p {
    max-width: 56ch;
    margin-bottom: 8px;
}
.vehicle-stage__slot {
    width: calc(100% + 8vw);
    margin-inline: -4vw;
}
.vehicle-stage__media {
    min-height: clamp(520px, 62dvh, 790px);
    aspect-ratio: auto;
    border-radius: clamp(34px, 5vw, 82px) clamp(24px, 2.5vw, 42px) clamp(34px, 5vw, 82px) clamp(24px, 2.5vw, 42px);
    background: #17191c;
}
.vehicle-stage__media::before {
    position: absolute;
    top: 8%;
    right: 7%;
    width: min(42%, 560px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(196, 21, 28, .12);
    filter: blur(74px);
    content: "";
}
.vehicle-stage__media .motion-placeholder__mark {
    width: min(36%, 480px);
    opacity: .09;
}
.vehicle-stage__route {
    position: absolute;
    right: -8%;
    bottom: 21%;
    left: -8%;
    height: clamp(96px, 10vw, 156px);
    border-block: 1px solid rgba(255, 255, 255, .09);
    background: rgba(255, 255, 255, .025);
    transform: rotate(-3deg);
}
.vehicle-stage__route i {
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    height: 0;
    border-top: 3px dashed var(--tafa-orange);
    background: transparent;
    opacity: .72;
    transform: translateY(-50%);
}
.vehicle-stage .motion-placeholder__copy {
    right: clamp(30px, 5vw, 84px);
    bottom: clamp(30px, 5vw, 70px);
    left: clamp(30px, 5vw, 84px);
    max-width: 760px;
}
.vehicle-stage .motion-placeholder__copy strong {
    max-width: 11ch;
    font-family: "TAFA Display", "Avenir Next", Avenir, sans-serif;
}
.vehicle-stage__track {
    width: calc(100% - 8vw);
    margin: 22px 4vw 0;
}

.service-editorial { grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr); }
.service-editorial__intro h2 {
    max-width: 11ch;
    font-family: "TAFA Display", "Avenir Next", Avenir, sans-serif;
    font-size: clamp(43px, 4.2vw, 70px);
    line-height: .98;
    letter-spacing: -.045em;
    hyphens: none;
    overflow-wrap: normal;
}
.service-ledger {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.service-ledger li { min-width: 0; margin: 0; }
.service-ledger a {
    min-height: 120px;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: stretch;
    gap: 18px;
    padding: 10px;
    background: #e5e3dd;
    transition: background-color 180ms ease, color 180ms ease, transform 180ms var(--ease-out);
}
.service-ledger a::before { display: none; }
.service-ledger__thumb {
    min-width: 0;
    overflow: hidden;
    border-radius: 12px;
}
.service-ledger__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.74) contrast(1.04);
    transition: transform 220ms var(--ease-out), filter 220ms ease;
}
.service-ledger__content {
    min-width: 0;
    display: grid;
    align-content: center;
    gap: 10px;
}
.service-ledger__content strong {
    color: var(--tafa-black);
    font-size: clamp(17px, 1.45vw, 23px);
    font-weight: 650;
    letter-spacing: -.025em;
    line-height: 1.15;
    overflow-wrap: anywhere;
}
.service-ledger__action { color: #464a4e; white-space: normal; font-size: 14px; font-weight: 500; line-height: 1.4; }
.service-ledger a:hover > span:first-child { color: inherit; }

.site-footer__bottom .tafa-container {
    display: grid;
    grid-template-columns: 1fr auto;
}
.site-footer__bottom ul { justify-self: end; }
.legal-design-credit { margin: 42px 0 0; }
.legal-design-credit a { text-decoration: underline; text-underline-offset: .2em; }

@media (hover: hover) and (pointer: fine) {
    .reference-carousel:not(.is-ready) .reference-carousel__card:hover .reference-preview__details {
        pointer-events: auto;
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
    .reference-carousel__card:hover .reference-preview__logo {
        transform: none;
    }
    .service-ledger a:hover {
        background: var(--tafa-black);
        color: var(--tafa-white);
        transform: translate3d(0, -2px, 0);
    }
    .service-ledger a:hover .service-ledger__content strong { color: var(--tafa-white); }
    .service-ledger a:hover .service-ledger__thumb img { filter: saturate(.9) contrast(1.06); transform: scale(1.035); }
}

@media (max-width: 1180px) {
    .service-editorial { grid-template-columns: 1fr; gap: 52px; }
    .service-editorial__intro { position: static; max-width: 760px; }
    .service-editorial__intro h2 { max-width: 13ch; }
}

@media (max-width: 860px) {
    .vehicle-stage { height: auto; }
    .vehicle-stage__sticky {
        position: relative;
        top: auto;
        min-height: auto;
        align-items: flex-start;
        padding-block: 76px;
    }
    .vehicle-stage__copy { opacity: 1; transform: none; }
    .vehicle-stage__copy { grid-template-columns: 1fr; gap: 22px; }
    .vehicle-stage__slot { width: 100%; margin-inline: 0; }
    .vehicle-stage__media { min-height: clamp(470px, 72dvh, 620px); opacity: 1; transform: none; }
    .vehicle-stage__track { width: 100%; margin-inline: 0; }
    .service-editorial__body > figure { margin-bottom: 18px; }
    .site-footer__bottom .tafa-container { grid-template-columns: 1fr auto; row-gap: 10px; padding-block: 18px; }
}

@media (max-width: 640px) {
    .vehicle-stage__media { min-height: 500px; }
    .vehicle-stage .motion-placeholder__copy strong { font-size: clamp(34px, 10vw, 46px); }
    .service-editorial__intro h2 { max-width: 12ch; font-size: clamp(40px, 12vw, 58px); }
    .service-ledger { grid-template-columns: 1fr; }
    .service-ledger a { grid-template-columns: 104px minmax(0, 1fr); }
    .site-footer__bottom .tafa-container { grid-template-columns: 1fr; align-items: start; }
    .site-footer__bottom ul { grid-column: auto; grid-row: auto; justify-self: start; }
}

@media (max-width: 390px) {
    .service-ledger a { grid-template-columns: 92px minmax(0, 1fr); min-height: 110px; }
}

@media (prefers-reduced-motion: reduce) {
    .reference-preview__logo,
    .reference-preview__details,
    .service-ledger a,
    .service-ledger__thumb img { transition-duration: 1ms !important; }
}

/* Einladender Einstieg: Text und Leistungsfelder bleiben im natürlichen Fluss. */
.home-disciplines {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px clamp(16px, 2vw, 28px);
    margin: 0;
    padding: 0;
    color: #d6d5d3;
    list-style: none;
    font-size: clamp(.91rem, 1.04vw, 1rem);
    font-weight: 500;
    line-height: 1.45;
}
.home-disciplines li { min-width: 0; hyphens: auto; overflow-wrap: anywhere; }
.home-disciplines a { display: inline-block; padding-block: 3px; line-height: 1.35; }
.home-disciplines a:is(:hover, :focus-visible) { color: #fff; text-decoration: underline; text-underline-offset: .22em; }
@media (min-width: 801px) {
    .home-disciplines { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.service-index-intro { max-width: 62ch; margin: 0 0 clamp(24px, 3vw, 40px); font-size: clamp(1.075rem, 1.5vw, 1.35rem); line-height: 1.55; }
.service-index-card__forms {
    position: relative; z-index: 1; display: flex; flex-wrap: wrap;
    gap: .2em .85em; margin: 0; padding: 0; color: #fff;
    font-size: .875rem; line-height: 1.45; list-style: none;
}
.service-index-card__forms li { hyphens: auto; overflow-wrap: anywhere; }
.service-index-card:has(.service-index-card__forms) a::after {
    background: linear-gradient(0deg, rgba(11, 12, 13, .98), rgba(11, 12, 13, .78) 31%, rgba(11, 12, 13, 0) 80%);
}
.service-specialties {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px clamp(18px, 3vw, 42px); margin-block-start: clamp(28px, 4vw, 58px);
}
.service-specialties > :is(h2, header) { grid-column: 1 / -1; margin: 0; }
.service-specialties__grid { grid-column: 1 / -1; display: grid; grid-template-columns: inherit; gap: inherit; }
.service-specialties h2 { font-size: clamp(26px, 3vw, 40px); line-height: 1.16; }
.service-specialty { min-width: 0; border-top: 1px solid var(--tafa-line); padding-block: 18px 6px; }
.service-specialty :is(h3, h4) { margin: 0; font-size: clamp(20px, 2vw, 28px); line-height: 1.2; }
.service-specialty p { max-width: 55ch; margin: 10px 0; }
.service-specialty a { color: var(--tafa-orange-dark); font-weight: 650; text-decoration: underline; text-underline-offset: .22em; }
.service-specialty a:is(:hover, :focus-visible) { color: var(--tafa-ink); }
.service-specialty h3 a { color: inherit; text-decoration: none; }
.service-specialty h3 a:is(:hover, :focus-visible) { text-decoration: underline; }
@media (max-width: 640px) {
    .service-specialties { grid-template-columns: minmax(0, 1fr); }
}

/* Der Rahmen umfasst Überschrift, Baustellenhinweis und die gesamte Clip-Fläche. */
.vehicle-stage__frame {
    gap: 24px;
    padding: clamp(20px, 2.5vw, 40px);
    border: 2px dashed #626265;
    border-radius: var(--tafa-radius-lg);
    background: #101113;
}
.vehicle-stage__status {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #f0b45e;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}
.vehicle-stage__status svg { flex: 0 0 32px; width: 32px; height: 32px; }
.vehicle-stage__frame .vehicle-stage__copy { gap: clamp(24px, 4vw, 64px); }
.vehicle-stage__frame .vehicle-stage__copy h2 { max-width: 12ch; font-size: clamp(36px, 4vw, 64px); line-height: 1.05; }
.vehicle-stage__frame .vehicle-stage__copy p { font-size: 16px; }
.vehicle-stage__frame .vehicle-stage__slot { width: 100%; margin: 0; overflow: hidden; border-radius: var(--tafa-radius-md); }
.vehicle-stage__frame .vehicle-stage__media { min-height: clamp(260px, 34dvh, 440px); border-radius: var(--tafa-radius-md); }
.vehicle-stage__frame .motion-placeholder__copy { right: 28px; bottom: 28px; left: 28px; }
.vehicle-stage__frame .motion-placeholder__copy strong { max-width: 18ch; font-size: clamp(28px, 3vw, 48px); line-height: 1.08; }
.vehicle-stage__frame .motion-placeholder__copy span { font-size: 16px; }
.vehicle-stage__frame .vehicle-stage__track { width: 100%; margin: 16px 0 0; }

@media (max-width: 860px) {
    .site-footer__cta-inner { grid-template-columns: minmax(0, 1fr); gap: 26px; min-height: 0; padding-block: 52px; }
    .site-footer__cta h2 { max-width: 16ch; font-size: clamp(36px, 7vw, 54px); }
    .footer-cta-link { justify-self: start; }
    .contact-layout { grid-template-columns: minmax(0, 1fr); }
    .contact-panel, .contact-form-panel { padding: clamp(26px, 6vw, 48px); }
    .contact-panel address { margin-top: 30px; }
    .contact-panel address a { overflow-wrap: anywhere; }
    .vehicle-stage__frame .vehicle-stage__copy { gap: 20px; }
    .vehicle-stage__frame .vehicle-stage__media { min-height: 340px; }
}

@media (max-width: 390px) {
    .vehicle-stage__frame { padding: 18px; }
    .vehicle-stage__frame .vehicle-stage__copy h2 { font-size: 34px; }
    .vehicle-stage__frame .motion-placeholder__copy { right: 18px; left: 18px; }
    .vehicle-stage__frame .motion-placeholder__copy strong { font-size: 28px; }
}

/* Native 4K wide entry: fixed full-width canvas, no synthetic translation. */
.reference-preview--vehicle { padding-bottom: 0; }
/* Cover the fractional-pixel seam against the cream page canvas without shifting content. */
.vehicle-stage--film { height: auto; padding-block: 0 clamp(32px, 4vw, 56px); background: #080809; box-shadow: 0 -1px 0 #080809; }
.vehicle-stage--film .vehicle-stage__sticky { position: relative; top: auto; display: block; min-height: 0; padding: 0; overflow: visible; }
.vehicle-stage--film .vehicle-stage__sticky::before { display: none; }
.vehicle-stage--film .vehicle-stage__frame { width: 100%; max-width: none; gap: clamp(24px, 4vw, 44px); padding: 0; border: 0; border-radius: 0; background: transparent; }
.vehicle-stage--film .vehicle-stage__slot { width: 100%; max-width: none; margin-inline: auto; overflow: visible; border-radius: 0; }
.vehicle-stage--film .vehicle-stage__media { width: 100%; min-height: 0; aspect-ratio: 32 / 9; overflow: hidden; border: 0; border-radius: 0; background: #080809 url("/assets/media/vehicle/tafa-arrival-4k-start.jpg") center / 100% 100% no-repeat; opacity: 1; transform: none; isolation: isolate; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 6%, #000 92%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 6%, #000 92%, transparent); }
.vehicle-stage--film .vehicle-stage__picture { position: absolute; inset: 0; width: 100%; height: 100%; transform: none; -webkit-mask-image: linear-gradient(to right, transparent, #000 2%, #000 98%, transparent); mask-image: linear-gradient(to right, transparent, #000 2%, #000 98%, transparent); }
.vehicle-stage--film .vehicle-stage__ground { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; filter: none; pointer-events: none; }

.vehicle-stage--film .vehicle-stage__media::before,
.vehicle-stage--film .vehicle-stage__media::after { display: none; }
.vehicle-stage--film .vehicle-stage__still,
.vehicle-stage--film .vehicle-stage__video,
.vehicle-stage--film .vehicle-stage__headlights { position: absolute; inset: 0; display: block; width: 100%; height: 100%; margin: 0; object-fit: contain; filter: none; pointer-events: none; opacity: 0; }
.vehicle-stage--film [data-vehicle-state="static"] .vehicle-stage__still--end,
.vehicle-stage--film [data-vehicle-state="end"] .vehicle-stage__still--end,
.vehicle-stage--film [data-vehicle-state="idle"] .vehicle-stage__still--start,
.vehicle-stage--film [data-vehicle-state="loading"] .vehicle-stage__still--start,
.vehicle-stage--film [data-vehicle-state="playing"] .vehicle-stage__video,
.vehicle-stage--film [data-vehicle-state="parked-video"] .vehicle-stage__video { opacity: 1; }
.vehicle-stage--film .vehicle-stage__headlights { z-index: 2; }
.vehicle-stage--film [data-vehicle-state="end"].is-flashing .vehicle-stage__headlights,
.vehicle-stage--film [data-vehicle-state="parked-video"].is-flashing .vehicle-stage__headlights { animation: tafa-vehicle-headlight .55s ease-out; }
.vehicle-stage--film [data-vehicle-state="end"].is-flashing.is-arrival-flash .vehicle-stage__headlights,
.vehicle-stage--film [data-vehicle-state="parked-video"].is-flashing.is-arrival-flash .vehicle-stage__headlights { animation: tafa-vehicle-headlight-arrival .7s ease-out; }
@keyframes tafa-vehicle-headlight { 0%, 100% { opacity: 0; } 24% { opacity: 1; } 48% { opacity: .75; } }
@keyframes tafa-vehicle-headlight-arrival { 0%, 100% { opacity: 0; } 24% { opacity: 1; } 48% { opacity: .8; } }
@media (prefers-reduced-motion: reduce) {
    .vehicle-stage--film .vehicle-stage__picture { transform: none !important; }
    .vehicle-stage--film .vehicle-stage__video,
    .vehicle-stage--film .vehicle-stage__still--start,
    .vehicle-stage--film .vehicle-stage__headlights { opacity: 0 !important; animation: none !important; }
    .vehicle-stage--film .vehicle-stage__still--end { opacity: 1 !important; }
}


/* Same canvas remains visible through the fallback stop, with no color swap. */
.media-sequence { position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: 100%; object-fit: contain; filter: none; pointer-events: none; }
.vehicle-stage--film [data-vehicle-state="parked-sequence"].is-flashing .vehicle-stage__headlights { animation: tafa-vehicle-headlight .55s ease-out; }
.vehicle-stage--film [data-vehicle-state="parked-sequence"].is-flashing.is-arrival-flash .vehicle-stage__headlights { animation: tafa-vehicle-headlight-arrival .7s ease-out; }
@media (prefers-reduced-motion: reduce) { .media-sequence { display: none !important; } }

/* Desktop landing-page only: the reference's full-width building film.
   Keep the existing mobile composition, playback, and every later section. */
@media (width > 960px) {
    .home-intro__inner { position: relative; width: 100%; display: block; padding: 0; }
    .home-intro__scene-body { display: block; }
    .home-intro__film { width: 100%; height: max(380px, calc(100svh - var(--tafa-header-height) - 32px)); border-radius: 0; }
    .home-intro__film img,
    .home-intro__film video,
    .home-intro__film .media-sequence { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
    .home-intro__film::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.04) 20%, rgba(0,0,0,.24) 53%, rgba(0,0,0,.82) 100%); }
    .home-intro h1 { position: absolute; top: 0; left: max(28px, calc((100% - 1320px) / 2)); z-index: 3; display: flex; align-items: flex-end; width: min(18ch, calc(100% - 56px)); height: max(380px, calc(100svh - var(--tafa-header-height) - 32px)); padding-bottom: clamp(42px, 7vh, 90px); font-size: clamp(34px, 4vw, 64px); line-height: 1.08; text-shadow: 0 2px 28px rgba(0,0,0,.35); pointer-events: none; }
    .home-intro__copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(30px, 6vw, 96px); border-radius: 0; padding: clamp(36px, 5vw, 76px) max(28px, calc((100% - 1320px) / 2)); }
    .home-intro__copy > p { max-width: 58ch; font-size: clamp(18px, 1.65vw, 24px); }
    .home-intro__actions { margin: 0; gap: 16px 24px; }
    .home-intro__index { width: var(--tafa-container); margin-inline: auto; padding-block: clamp(36px, 5vw, 68px); }
}

/* Decorative vehicle video: Safari must not expose a native start/replay control.
   Until actual playback, the empty-floor image owns the visible surface. */
.vehicle-stage__video::-webkit-media-controls,
.vehicle-stage__video::-webkit-media-controls-enclosure,
.vehicle-stage__video::-webkit-media-controls-panel,
.vehicle-stage__video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }

.vehicle-stage--film .vehicle-stage__video[data-presentation="sequence"] { display: none !important; }

/* Reference-style caption joins the vehicle only after the final frame. */
.vehicle-stage--film .vehicle-stage__signoff { position: relative; left: 7vw; z-index: 3; width: min(56vw, 720px); margin: clamp(-86px, -5.5vw, -27px) auto 0; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(100svh); transition: transform .8s cubic-bezier(.22,1,.36,1), opacity .3s ease; }
.vehicle-stage__signoff h2 { display: flex; flex-direction: column; align-items: center; width: fit-content; max-width: 100%; margin: 0 0 0 auto; color: #fff; text-align: center; font-size: clamp(20px, 3.6vw, 46px); font-weight: 600; line-height: 1.1; letter-spacing: -.045em; }
.vehicle-stage__signoff h2 > span { display: block; max-width: 100%; padding: 0 .13em .045em; background: var(--tafa-orange); }
.vehicle-stage--film[data-vehicle-parked="true"] .vehicle-stage__signoff { opacity: 1; visibility: visible; transform: translateY(0); }
@media (max-width: 600px) { .vehicle-stage--film .vehicle-stage__signoff { width: calc(100% - 32px); left: 2vw; } .vehicle-stage__signoff h2 { font-size: clamp(18px, 3.24vw, 20px); } }
@media (prefers-reduced-motion: reduce) { .vehicle-stage--film .vehicle-stage__signoff { transition: none; transform: none; } }

/* Keep the entering caption from creating an extra page scrollbar. */
.vehicle-stage--film { overflow: clip; }

/* Never mount Safari playback chrome on the decorative intro surface. */
.home-intro__film video[data-presentation="sequence"] { display: none !important; }

/* Footer-only Instagram treatment, including keyboard and touch targets. */
.site-footer__brand .footer-instagram { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; max-width: 100%; transition: color .18s ease, filter .18s ease; }
.footer-instagram svg { flex: none; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.footer-instagram__dot { fill: currentColor; stroke: none; }
.site-footer__brand .footer-instagram:is(:hover, :focus-visible) { color: #ff454c; filter: drop-shadow(0 0 5px rgba(255, 40, 50, .35)); }
.footer-instagram:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; border-radius: 3px; }
@media (prefers-reduced-motion: reduce) { .site-footer__brand .footer-instagram { transition: none; } }

/* Compact office image with a small team inset; text stays independent. */
.about-feature { align-items: stretch; }
.about-feature__photos { position: relative; min-width: 0; }
.about-feature__photos > img:first-child { display: block; width: 100%; height: auto; border-radius: var(--tafa-radius-md) 0 0 var(--tafa-radius-md); }
.about-feature__photos .about-feature__group { position: absolute; right: 16px; bottom: 16px; width: 23%; height: auto; border: 4px solid var(--tafa-cream); border-radius: var(--tafa-radius-sm); box-shadow: 0 8px 24px rgba(0,0,0,.18); }
@media (max-width: 960px) { .about-feature__photos > img:first-child { border-radius: var(--tafa-radius-sm) var(--tafa-radius-sm) 0 0; } }
@media (max-width: 600px) { .about-feature__photos .about-feature__group { width: 24%; right: 10px; bottom: 10px; border-width: 3px; } }

/* Keep both desktop panels flush along their top and bottom edges. */
@media (min-width: 961px) { .about-feature__photos > img:first-child { height: 100%; object-fit: cover; } }

/* Keep the complete team portrait visible in the gallery. */
.gallery-item img[src="/assets/media/team/team-gemeinsam.jpg"] { object-fit: contain; }

/* Portrait photography keeps its own frame, without landscape sidebars. */
.gallery-grid .gallery-item.gallery-item--portrait { grid-column: span 2; align-self: start; }
.gallery-grid .gallery-item.gallery-item--portrait .gallery-item__photo { height: auto; aspect-ratio: 958 / 1400; background: transparent; }
.gallery-grid .gallery-item.gallery-item--portrait img { display: block; height: auto; object-fit: contain; }
@media (max-width: 800px) { .gallery-grid .gallery-item.gallery-item--portrait { grid-column: auto; } }

/* Meeting photos retain their complete original composition. */
.gallery-grid .gallery-item[data-gallery-category="meeting"] .gallery-item__photo { height: auto; aspect-ratio: auto; background: transparent; }
.gallery-grid .gallery-item[data-gallery-category="meeting"] img { display: block; width: 100%; height: auto; object-fit: contain; }
.gallery-item:focus-visible { outline: 2px solid var(--tafa-orange-dark); outline-offset: 5px; }

/* Category filtering must not reapply the mobile landscape crop. */
#galerie-bilder .gallery-item[data-gallery-category="meeting"] .gallery-item__photo { height: auto; aspect-ratio: auto; }
#galerie-bilder .gallery-item[data-gallery-category="meeting"] img { height: auto; object-fit: contain; }
#galerie-bilder .gallery-item.gallery-item--portrait { grid-column: span 2; }
@media (max-width: 800px) { #galerie-bilder .gallery-item.gallery-item--portrait { grid-column: auto; } }

/* 3.4.41: independent picture columns avoid empty rows beneath portraits. */
#galerie-bilder.gallery-grid { display: block; column-count: 3; column-gap: clamp(12px, 1.75vw, 26px); }
#galerie-bilder.gallery-grid .gallery-item { display: block; vertical-align: top; width: 100%; margin: 0 0 clamp(24px, 3vw, 46px); break-inside: avoid; }
#galerie-bilder.gallery-grid .gallery-item[hidden] { display: none; }
#galerie-bilder.gallery-grid .gallery-item .gallery-item__photo { height: auto; aspect-ratio: auto; }
#galerie-bilder.gallery-grid .gallery-item img { display: block; width: 100%; height: auto; object-fit: contain; }
@media (max-width: 800px) { #galerie-bilder.gallery-grid { column-count: 2; } }

/* 3.4.43: user-requested 15% larger vehicle, including matching light layers. */
.vehicle-stage--film .vehicle-stage__picture { transform: scale(1.15) !important; transform-origin: 50% 85%; }
.vehicle-stage--film .vehicle-stage__media { background-size: 115% 115%; background-position: 50% 85%; }

/* 3.4.44: stable header tracks for narrow and foldable viewports. */
@media (max-width: 980px) {
 :root { --tafa-header-height: 166px; }
 .site-header__main { min-height: 132px; }
 .site-header__main > .tafa-container { width: 100%; }
 .primary-nav { min-width: 0; min-height: 132px; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 78px 54px; gap: 0; }
 .primary-nav > .site-logo { grid-column: 1; grid-row: 1; justify-self: start; position: static; width: 126px; min-height: 0; margin: 0 0 0 max(16px, env(safe-area-inset-left)); transform: none; }
 .primary-nav > .header-inquiry { grid-column: 2; grid-row: 1; justify-self: end; margin: 0 max(16px, env(safe-area-inset-right)) 0 12px; }
 .primary-nav__links { grid-column: 1 / -1; grid-row: 2; width: 100%; min-width: 0; display: block; overflow-x: auto; overflow-y: hidden; padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right)); scrollbar-width: none; }
 .primary-nav__group { width: max-content; min-height: 54px; margin-inline: auto; justify-content: flex-start; gap: 26px; }
 .primary-nav__group > li > a { min-height: 54px; white-space: nowrap; }
}

/* Approved career image: retain the left logo and cloth handover on narrow screens. */
@media (max-width: 767px) {
    .page-hero--career > img { object-position: 35% 50%; }
}

/* Service entrance: one card reveal, with an independent fade only for late photos.
   Existing frames/crops reserve the space; no extra wrappers or scale effects. */
[data-reveal="service"].is-reveal-pending { transform: translate3d(0, 14px, 0); }
[data-reveal="service"].is-reveal-pending.is-visible {
    transform: none;
    transition: opacity .6s var(--ease-out) var(--reveal-delay, 0ms), transform .6s var(--ease-out) var(--reveal-delay, 0ms);
}
.service-editorial__body > figure,
.service-ledger__thumb { position: relative; }
.service-editorial__body > figure img { transition: opacity .5s var(--ease-out); }
.service-ledger__thumb img {
    transition: opacity .5s var(--ease-out), transform 220ms var(--ease-out), filter 220ms ease;
}
.service-editorial__body img[data-service-image-pending] { opacity: 0; }
[data-service-image-loading]::after {
    position: absolute;
    inset: 0;
    pointer-events: none;
    content: "";
    background: url("../media/branding/loading-mark.svg") center / 40px auto no-repeat;
    animation: tafa-loading-blink 1.4s var(--ease-in-out) infinite;
}
@media (prefers-reduced-motion: reduce) {
    [data-service-image-loading]::after { animation: none !important; opacity: .64; }
    .service-editorial__body img { transition: none !important; }
}
@media print {
    [data-reveal="service"].is-reveal-pending { transform: none; transition: none; }
    .service-editorial__body img[data-service-image-pending] { opacity: 1; }
    [data-service-image-loading]::after { display: none; }
}

/* New customer photo: keep the glass cleaner and squeegee in the narrow hero crop. */
.service-page .page-hero > img[src$="/glasreinigung-sportanlage-panorama.jpg"] { object-position: 70% 50%; }

/* TAFA content revision 2026-11-16 */
.home-scroll-cue { display: inline-flex; align-items: center; gap: .75rem; min-height: 44px; margin: 0 0 1rem; color: inherit; font-size: .875rem; text-decoration: none; }
.home-scroll-cue span { font-size: 1.4rem; }
.home-scroll-cue:hover, .home-scroll-cue:focus-visible { text-decoration: underline; }
.reference-carousel__card--text { display: grid; place-items: stretch; cursor: default; }
.reference-carousel__card--text .reference-preview__wordmark { white-space: normal; overflow-wrap: anywhere; text-align: center; font-size: clamp(1rem, 1.5vw, 1.5rem); line-height: 1.2; }
.service-ledger__thumb--type { display: grid; place-items: center; background: #242426; color: #fff; font-size: 1.4rem; font-weight: 600; }
.service-index-card__number { display: grid; place-items: center; aspect-ratio: 16 / 10; background: #242426; color: #fff; font-size: clamp(3rem, 8vw, 6rem); font-weight: 500; }
.service-index-card--text .text-action { display: inline-block; margin: 1rem 0; }

.home-intro__inner { position: relative; }
.home-scroll-cue { position: absolute; z-index: 5; top: 18px; right: max(24px, calc((100% - 1320px) / 2)); padding: 6px 12px; border-radius: 4px; background: rgba(8,8,9,.8); color: #fff; margin: 0; }
@media (max-width: 767px) { .home-scroll-cue { top: 12px; right: 16px; font-size: .8rem; } }

.service-index-card--text .service-index-card__number { display: block; aspect-ratio: auto; background: none; font-size: 2rem; margin-bottom: 2rem; color: #bcbcbc; }
.service-index-card--text .text-action { color: #fff; }

.service-index-card--text a::after { content: none; }
.service-index-card--text .service-index-card__number { top: auto; left: auto; padding: 0; }

@media (max-width: 960px) { .home-scroll-cue { position: static; margin: -4px 0 16px; padding: 0; background: none; } }
