/* Schriften lokal gehostet, keine Verbindung zu externen Anbietern */
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/archivo-latin-ext-400.woff2') format('woff2'); 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/archivo-latin-400.woff2') format('woff2'); 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; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/archivo-latin-ext-500.woff2') format('woff2'); 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/archivo-latin-500.woff2') format('woff2'); 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; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/archivo-latin-ext-600.woff2') format('woff2'); 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/archivo-latin-600.woff2') format('woff2'); 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; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/archivo-latin-ext-700.woff2') format('woff2'); 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/archivo-latin-700.woff2') format('woff2'); 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; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/montserrat-latin-ext-400.woff2') format('woff2'); 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/montserrat-latin-400.woff2') format('woff2'); 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; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/montserrat-latin-ext-500.woff2') format('woff2'); 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/montserrat-latin-500.woff2') format('woff2'); 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; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/montserrat-latin-ext-600.woff2') format('woff2'); 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/montserrat-latin-600.woff2') format('woff2'); 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; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/montserrat-latin-ext-700.woff2') format('woff2'); 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/montserrat-latin-700.woff2') format('woff2'); 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; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/montserrat-latin-ext-800.woff2') format('woff2'); 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/montserrat-latin-800.woff2') format('woff2'); 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 {
    --primary: #8B0000;
    --primary-light: #A52A2A;
    --primary-dark: #5C0000;
    --accent: #D4AF37;
    --ink: #1a1a1a;
    --ink-deep: #121111;
    --cream: #f8f6f3;
    --muted: #5f5a54;
    --line: rgba(26,26,26,0.16);
    --line-light: rgba(255,255,255,0.16);
    --sans: 'Archivo', system-ui, sans-serif;
    --heading: 'Montserrat', system-ui, sans-serif;
    --gutter: clamp(16px, 4vw, 64px);
    --section-y: clamp(64px, 11vh, 120px);
    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: #fff;
    background: var(--ink);
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
}

button {
    font: inherit;
    color: inherit;
    cursor: pointer;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

::selection {
    background: var(--accent);
    color: var(--ink);
}

.wrap {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

section {
    padding: var(--section-y) 0;
}

/* Überschriften in Montserrat, Akzentwort in Gold */
h1, h2, h3 {
    font-family: var(--heading);
}

h2 {
    font-weight: 800;
    font-size: clamp(1.9rem, min(4vw, 7vh), 3.6rem);
    line-height: 1;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

h2 em,
h1 em {
    font-style: normal;
    color: var(--accent);
}

.label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    font-stretch: 112%;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
}

.label::before {
    content: '';
    width: 8px;
    height: 8px;
    background: currentColor;
    transform: rotate(45deg);
}

.light {
    background: var(--cream);
    color: var(--ink);
}

.light .label,
.light h2 em {
    color: var(--primary);
}

/* Buttons mit Pfeil */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 7px 7px 7px 24px;
    background: var(--accent);
    color: var(--ink);
    font-weight: 700;
    font-size: 0.9375rem;
    font-stretch: 110%;
    text-decoration: none;
    border: 0;
    border-radius: 100px;
    transition: background 0.25s;
}

.btn .arrow {
    background: var(--ink);
    color: var(--accent);
}

.btn:hover {
    background: #fff;
}

.btn-line {
    background: transparent;
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5);
}

.btn-line .arrow {
    background: #fff;
    color: var(--ink);
}

.btn-line:hover {
    background: #fff;
    color: var(--ink);
}

.btn-line:hover .arrow {
    background: var(--primary);
    color: #fff;
}

.arrow {
    display: grid;
    place-items: center;
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    transition: transform 0.35s var(--ease), background 0.25s, color 0.25s;
}

.arrow svg {
    width: 15px;
    height: 15px;
}

a:hover > .arrow,
.btn:hover .arrow {
    transform: rotate(45deg);
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 16px;
    padding: 14px var(--gutter);
    pointer-events: none;
}

.nav > * {
    pointer-events: auto;
}

.logo {
    display: flex;
    align-items: center;
    padding: 5px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(18,17,17,0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 6px 24px rgba(18,17,17,0.18);
}

.logo img {
    display: block;
    height: 44px;
    width: auto;
    padding: 3px 9px;
    background: #fff;
    box-sizing: content-box;
}

.nav-box {
    display: flex;
    align-items: stretch;
    list-style: none;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(18,17,17,0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.nav-box li + li {
    border-left: 1px solid rgba(255,255,255,0.3);
}

.nav-box a {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 clamp(12px, 1.4vw, 20px);
    font-size: 0.75rem;
    font-weight: 600;
    font-stretch: 112%;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.nav-box a:hover {
    background: #fff;
    color: var(--ink);
}

.nav-box .nav-tel {
    background: var(--primary);
    color: #fff;
    white-space: nowrap;
}

.nav-box .nav-tel:hover {
    background: var(--accent);
    color: var(--ink);
}

.menu-toggle {
    display: none;
    padding: 0 18px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(18,17,17,0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Hero */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100vh;
    min-height: 100svh;
    padding: 110px 0 0;
    overflow: hidden;
    isolation: isolate;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--primary-dark);
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.15);
    animation: heroIn 2.2s var(--ease) both;
}

/* Rot eingefärbtes Foto */
.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: var(--primary-light);
    mix-blend-mode: multiply;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(180deg, rgba(18,17,17,0.6) 0%, rgba(18,17,17,0) 30%),
        linear-gradient(90deg, rgba(18,17,17,0.88) 0%, rgba(18,17,17,0.6) 50%, rgba(18,17,17,0.25) 100%);
}

@keyframes heroIn {
    from { transform: scale(1.08); }
    to { transform: scale(1); }
}

.hero-content {
    padding-bottom: clamp(40px, 9vh, 96px);
}

.hero h1 {
    max-width: 14ch;
    font-size: clamp(2.3rem, min(6vw, 10vh), 5.4rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    animation: rise 1s 0.1s var(--ease) both;
}

.hero-name {
    display: block;
    margin-bottom: 0.3em;
    font-size: max(0.4em, 1.1rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.1;
    color: rgba(255,255,255,0.92);
}

@keyframes rise {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: none; }
}

.hero-lead {
    max-width: 44ch;
    margin: clamp(14px, 2.5vh, 24px) 0 clamp(20px, 4vh, 34px);
    font-size: clamp(1rem, 1.3vw, 1.1875rem);
    color: rgba(255,255,255,0.86);
    animation: rise 1s 0.25s var(--ease) both;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    animation: rise 1s 0.4s var(--ease) both;
}

.hero-facts {
    border-top: 1px solid var(--line-light);
    background: rgba(18,17,17,0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero-facts ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    list-style: none;
}

.hero-facts li {
    padding: clamp(14px, 2.4vh, 22px) 0;
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.75);
}

.hero-facts li + li {
    padding-left: clamp(16px, 2.5vw, 32px);
    border-left: 1px solid var(--line-light);
}

.hero-facts strong {
    font-family: var(--heading);
    display: block;
    font-size: 1.0625rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: #fff;
}

/* Werkstatt */
.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: center;
}

.about-img {
    overflow: hidden;
}

.about-img img {
    width: 100%;
    height: min(64vh, 560px);
    object-fit: cover;
    transition: transform 1.2s var(--ease);
}

.about-img:hover img {
    transform: scale(1.03);
}

.about-text h2 {
    margin-bottom: clamp(18px, 3vh, 28px);
}

.about-text p {
    max-width: 50ch;
    color: var(--muted);
}

.about-text p + p {
    margin-top: 14px;
}

.about-text .intro {
    font-size: 1.1875rem;
    line-height: 1.45;
    color: var(--ink);
}

/* Kennzahlen */
.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2.5vw, 32px);
    margin-top: clamp(24px, 4vh, 40px);
    list-style: none;
}

.stats li {
    padding-top: 14px;
    border-top: 2px solid var(--ink);
}

.stats strong {
    display: block;
    font-family: var(--heading);
    font-size: clamp(2rem, min(4vw, 7vh), 3.4rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.stats span {
    display: block;
    margin-top: 8px;
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--muted);
}

/* Leistungen */
.services-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    margin-bottom: clamp(24px, 5vh, 48px);
}

.services-side > p {
    max-width: 36ch;
    color: rgba(255,255,255,0.7);
}

.service-list {
    max-width: 1360px;
    margin: 0 auto;
    list-style: none;
    border-top: 1px solid var(--line-light);
}

.service {
    position: relative;
    display: grid;
    grid-template-columns: clamp(40px, 6vw, 90px) minmax(0, 1.2fr) minmax(0, 1fr) clamp(140px, 12vw, 200px) auto;
    gap: clamp(16px, 3vw, 40px);
    align-items: center;
    padding: clamp(18px, 3.4vh, 32px) var(--gutter);
    border-bottom: 1px solid var(--line-light);
    text-decoration: none;
    isolation: isolate;
}

.service::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--primary);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.45s var(--ease);
}

.service:hover::before,
.service:focus-visible::before {
    transform: scaleY(1);
}

.service-no {
    font-family: var(--heading);
    font-weight: 600;
    font-size: 1.375rem;
    color: var(--accent);
}

.service h3 {
    font-size: clamp(1.35rem, min(3vw, 5.5vh), 2.6rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    transition: transform 0.45s var(--ease);
}

.service:hover h3 {
    transform: translateX(12px);
}

.service p {
    font-size: 0.9875rem;
    color: rgba(255,255,255,0.72);
    transition: color 0.3s;
}

.service:hover p {
    color: #fff;
}

.service .arrow {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255,255,255,0.4);
}

.service:hover .arrow {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--ink);
    transform: rotate(45deg);
}

/* Eigene Spalte für das Vorschaubild, damit es keinen Text verdeckt */
.service-thumb {
    grid-column: 4;
    grid-row: 1;
    width: 100%;
    aspect-ratio: 4 / 3;
    margin: -60px 0;
    opacity: 0;
    transform: rotate(0deg) scale(0.7);
    transition: opacity 0.35s, transform 0.5s var(--ease);
    pointer-events: none;
    box-shadow: 0 24px 48px rgba(0,0,0,0.45);
}

img.service-thumb {
    object-fit: cover;
}

.service:hover .service-thumb {
    opacity: 1;
    transform: rotate(-5deg) scale(1);
}

.service .arrow {
    grid-column: 5;
}

/* Arbeiten: horizontale Bahn */
.work {
    padding: 0;
    background: var(--ink-deep);
}

.work-sticky {
    display: flex;
    flex-direction: column;
    padding: var(--section-y) 0;
}

.work.pinned .work-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 100px 0 30px;
    overflow: hidden;
}

.work-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
}

.work-count {
    font-family: var(--heading);
    font-weight: 600;
    font-size: clamp(1.3rem, 2vw, 1.9rem);
    color: var(--accent);
    white-space: nowrap;
}

.work-count small {
    font-size: 0.6em;
    color: rgba(255,255,255,0.5);
}

.work-track {
    display: flex;
    align-items: center;
    gap: clamp(20px, 3vw, 48px);
    flex: 1;
    min-height: 0;
    margin-top: clamp(20px, 4vh, 36px);
    padding: 0 var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.work-track::-webkit-scrollbar {
    display: none;
}

.work.pinned .work-track {
    overflow: visible;
    will-change: transform;
}

.work-item {
    position: relative;
    flex: none;
    scroll-snap-align: center;
}

.work-item img,
.work-item .work-ph {
    height: min(50vh, 62vw);
    width: auto;
    max-width: none;
    object-fit: cover;
    transition: transform 0.9s var(--ease);
}

.work-item .frame {
    display: block;
    overflow: hidden;
}

.work-item:hover :is(img, .work-ph) {
    transform: scale(1.04);
}

.work-item:nth-child(1) :is(img, .work-ph) { aspect-ratio: 4 / 3; }
.work-item:nth-child(2) :is(img, .work-ph) { aspect-ratio: 3 / 4; }
.work-item:nth-child(3) :is(img, .work-ph) { aspect-ratio: 1 / 1; height: min(42vh, 56vw); }
.work-item:nth-child(4) :is(img, .work-ph) { aspect-ratio: 3 / 2; }
.work-item:nth-child(5) :is(img, .work-ph) { aspect-ratio: 3 / 4; height: min(44vh, 56vw); }
.work-item:nth-child(6) :is(img, .work-ph) { aspect-ratio: 3 / 4; }

.work.pinned .work-item:nth-child(even) { transform: translateY(2.5vh); }
.work.pinned .work-item:nth-child(odd) { transform: translateY(-2vh); }

/* Nummer links, darunter eingerückt das Material */
.work-item figcaption {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: baseline;
    gap: 2px 12px;
    /* Bildunterschrift so breit wie das Bild, damit die Abstände gleich bleiben */
    width: 0;
    min-width: 100%;
    margin-top: 12px;
    font-weight: 700;
    font-stretch: 118%;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.work-no {
    color: var(--accent);
}

.work-item figcaption span:last-child {
    grid-column: 2;
    font-family: var(--sans);
    font-weight: 400;
    text-transform: none;
    color: rgba(255,255,255,0.65);
}

.work-cta {
    flex: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    width: min(78vw, 400px);
    min-height: min(42vh, 380px);
    padding: clamp(24px, 3vw, 36px);
    background: var(--primary);
    text-decoration: none;
    scroll-snap-align: center;
    transition: background 0.3s;
}

.work-cta:hover {
    background: var(--primary-light);
}

.work-cta strong {
    font-family: var(--heading);
    font-size: clamp(1.6rem, 2.6vw, 2.4rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.work-cta em {
    font-style: normal;
    color: var(--accent);
}

.work-cta .arrow {
    width: 54px;
    height: 54px;
    background: var(--accent);
    color: var(--ink);
}

.work-bar {
    display: none;
    height: 2px;
    margin: 22px var(--gutter) 0;
    background: var(--line-light);
}

.work.pinned .work-bar {
    display: block;
}

.work-bar span {
    display: block;
    height: 100%;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
}

/* Kundenstimmen: folgen */
.reviews {
    background: var(--primary);
}

.reviews-soon {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px 32px;
    margin-top: clamp(24px, 5vh, 48px);
    padding-top: clamp(24px, 5vh, 48px);
    border-top: 1px solid rgba(255,255,255,0.25);
}

.reviews-soon p {
    max-width: 46ch;
    font-size: clamp(1.05rem, 1.6vw, 1.375rem);
    color: rgba(255,255,255,0.88);
}

.soon-tag {
    display: inline-block;
    padding: 8px 18px;
    background: var(--accent);
    color: var(--ink);
    border-radius: 100px;
    font-family: var(--heading);
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Platzhalter für Fotos, die noch folgen */
.soon-box {
    display: grid;
    place-items: center;
    text-align: center;
    background:
        repeating-linear-gradient(135deg, rgba(212,175,55,0.08) 0 2px, transparent 2px 14px),
        #1f1d1c;
    border: 1px solid rgba(212,175,55,0.35);
    color: var(--accent);
    font-family: var(--heading);
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.work-ph {
    font-size: clamp(1rem, 1.7vw, 1.6rem);
}

.work-ph small {
    font-size: clamp(0.875rem, 1vw, 1rem);
}

.soon-box small {
    display: block;
    margin-top: 6px;
    font-family: var(--sans);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: none;
    color: rgba(255,255,255,0.55);
}

/* Kontakt */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: stretch;
}

.contact-text {
    margin: clamp(14px, 2.5vh, 22px) 0 clamp(18px, 3vh, 28px);
    max-width: 44ch;
    color: rgba(255,255,255,0.75);
}

.badge-note {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    background: var(--primary);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.contact-list {
    margin-bottom: clamp(20px, 4vh, 32px);
    border-top: 1px solid var(--line-light);
}

.contact-list div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 20px;
    padding: clamp(8px, 1.4vh, 14px) 0;
    border-bottom: 1px solid var(--line-light);
}

.contact-list dt {
    flex: none;
    font-size: 0.75rem;
    font-weight: 600;
    font-stretch: 112%;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
}

.contact-list dd {
    text-align: right;
    overflow-wrap: anywhere;
}

.contact-list a {
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    transition: color 0.2s, border-color 0.2s;
}

.contact-list a:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.map {
    position: relative;
    min-height: min(62vh, 540px);
    background: var(--ink-deep);
    overflow: hidden;
}

.map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(1) invert(0.92) contrast(0.9);
}

/* Platzhalter mit Gebäudefoto, bis die Karte geladen wird */
.map-consent {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 14px;
    padding: clamp(20px, 3.5vw, 40px);
    color: #fff;
    background:
        linear-gradient(180deg, rgba(18,17,17,0.1) 20%, rgba(18,17,17,0.9) 100%),
        url("../images/tischlerei-lechner-gebaeude-2.jpg") center 35% / cover;
}

.map-title {
    font-family: var(--heading);
    font-size: clamp(1.3rem, 2.2vw, 1.9rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-transform: uppercase;
}

.map-note {
    max-width: 46ch;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.8);
}

.map-note button {
    padding: 0;
    background: none;
    border: 0;
    font-size: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.map-note button:hover {
    color: var(--accent);
}

.map-consent .btn {
    cursor: pointer;
}

/* Footer */
.site-footer {
    background: var(--ink-deep);
    border-top: 1px solid var(--line-light);
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 14px 32px;
    padding-top: 26px;
    padding-bottom: 26px;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
}

.footer-row ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    list-style: none;
}

.footer-row a,
.footer-row button {
    background: none;
    border: 0;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-row a:hover,
.footer-row button:hover {
    color: var(--accent);
}

/* Impressum */
dialog {
    margin: auto;
    width: min(640px, calc(100% - 32px));
    max-height: 84vh;
    padding: clamp(28px, 5vw, 52px);
    border: 0;
    border-top: 6px solid var(--primary);
    background: var(--cream);
    color: var(--ink);
}

dialog::backdrop {
    background: rgba(18,17,17,0.8);
}

dialog h2 {
    font-size: 2.2rem;
    margin-bottom: 8px;
}

dialog h3 {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--primary);
    margin: 26px 0 6px;
}

dialog p,
dialog ul {
    color: var(--muted);
}

dialog p + p,
dialog p + ul,
dialog ul + p {
    margin-top: 8px;
}

dialog ul {
    padding-left: 20px;
}

dialog h4 {
    font-size: 0.875rem;
    font-weight: 700;
    margin: 16px 0 4px;
}

dialog a {
    color: var(--primary);
}

.dialog-meta {
    font-size: 0.875rem;
    margin-bottom: 10px;
}

.dialog-close {
    float: right;
    padding: 8px 16px;
    background: var(--ink);
    color: #fff;
    border: 0;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.dialog-close:hover {
    background: var(--primary);
}

/* Einblenden beim Scrollen, nur mit JS aktiv */
.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s, transform 1s var(--ease);
}

.js .reveal.in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation: none !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Responsive */
@media (max-width: 1000px) {
    .menu-toggle {
        display: block;
    }

    .nav-box {
        display: none;
        position: absolute;
        top: calc(100% - 4px);
        left: var(--gutter);
        right: var(--gutter);
        flex-direction: column;
        background: var(--ink-deep);
    }

    .nav-box.open {
        display: flex;
    }

    .nav-box li + li {
        border-left: 0;
        border-top: 1px solid rgba(255,255,255,0.3);
    }

    .nav-box a {
        padding: 16px 20px;
        font-size: 0.875rem;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-img img {
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .map {
        min-height: 360px;
    }

    .services-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .service {
        grid-template-columns: 36px minmax(0, 1fr) auto;
        gap: 6px 16px;
    }

    .service p {
        grid-column: 2 / 3;
        grid-row: 2;
    }

    .service .arrow {
        grid-column: 3;
        grid-row: 1;
        width: 44px;
        height: 44px;
    }

    .service-thumb {
        display: none;
    }
}

@media (max-width: 640px) {
    .logo {
        padding: 4px;
    }

    .logo img {
        height: 36px;
        padding: 3px 7px;
    }

    .hero-facts ul {
        grid-template-columns: 1fr;
    }

    .hero-facts li {
        padding: 10px 0;
    }

    .hero-facts li + li {
        padding-left: 0;
        border-left: 0;
        border-top: 1px solid var(--line-light);
    }

    .hero-facts li:nth-child(n+2) {
        display: none;
    }

    .stats strong {
        font-size: 1.6rem;
    }

    .stats span {
        font-size: 0.8125rem;
    }

    .work-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .contact-list div {
        flex-direction: column;
        gap: 2px;
    }

    .contact-list dd {
        text-align: left;
    }

    .footer-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============ Unterseite Leistungen ============ */
.nav-box a[aria-current="page"] {
    color: var(--accent);
}

.services-side {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.hero-sub {
    min-height: 0;
    padding-top: clamp(130px, 20vh, 190px);
}

.hero-sub .hero-content {
    padding-bottom: clamp(36px, 7vh, 72px);
}

.hero-sub h1 {
    max-width: 16ch;
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    list-style: none;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    animation: rise 1s var(--ease) both;
}

.crumbs li + li::before {
    content: '/';
    margin-right: 10px;
    color: var(--accent);
}

.crumbs a {
    text-decoration: none;
}

.crumbs a:hover {
    color: var(--accent);
}

.crumbs [aria-current] {
    color: #fff;
}

/* Kategorie-Leiste, klebt unter der Navigation */
.cat-bar {
    position: sticky;
    top: var(--nav-h, 88px);
    z-index: 50;
    background: var(--ink-deep);
    border-top: 1px solid var(--line-light);
    border-bottom: 1px solid var(--line-light);
}

.cat-bar.stuck::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% - 1px);
    height: calc(var(--nav-h, 88px) + 4px);
    background: var(--ink-deep);
}

.cat-tabs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.cat-tab {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    padding: clamp(14px, 2.4vh, 22px) clamp(14px, 1.6vw, 24px);
    background: none;
    border: 0;
    border-left: 1px solid var(--line-light);
    text-align: left;
    transition: background 0.25s;
}

.cat-tab:last-child {
    border-right: 1px solid var(--line-light);
}

.cat-tab .no {
    font-family: var(--heading);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent);
}

.cat-tab .name {
    font-family: var(--heading);
    font-size: clamp(0.95rem, 1.3vw, 1.2rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    white-space: nowrap;
}

.cat-tab::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}

.cat-tab:hover {
    background: rgba(255,255,255,0.06);
}

.cat-tab[aria-selected="true"] {
    background: var(--primary);
}

.cat-tab[aria-selected="true"]::after {
    transform: scaleX(1);
}

/* Galerie je Kategorie */
.cat-panel {
    padding: clamp(40px, 8vh, 88px) 0 var(--section-y);
}

.js .cat-panel:not(.active) {
    display: none;
}

.cat-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px clamp(32px, 5vw, 80px);
    align-items: end;
    margin-bottom: clamp(28px, 5vh, 52px);
}

.cat-head h2 {
    font-size: clamp(2.4rem, min(6vw, 10vh), 5.4rem);
}

.cat-head p {
    max-width: 46ch;
    color: rgba(255,255,255,0.75);
}

.cat-head .soon-tag {
    margin-top: 16px;
}

.gal {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: clamp(130px, 17vw, 250px);
    grid-auto-flow: dense;
    gap: clamp(10px, 1.4vw, 20px);
}

.gal-item {
    position: relative;
    display: block;
    grid-column: span 4;
    grid-row: span 2;
    overflow: hidden;
}

.gal-item:nth-child(6n+1) {
    grid-column: span 8;
}

.gal-item:nth-child(6n+2),
.gal-item:nth-child(6n+3) {
    grid-row: span 1;
}

.gal-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s var(--ease);
}

/* Letzte Reihe auffüllen, wenn die Anzahl nicht aufgeht */
@media (min-width: 641px) {
    .gal-item:nth-child(6n+1):last-child {
        grid-column: span 12;
    }

    .gal-item:nth-child(6n+2):last-child {
        grid-row: span 2;
    }

    .gal-item:nth-child(6n+5):last-child {
        grid-column: span 8;
    }
}

a.gal-item:hover img {
    transform: scale(1.04);
}

.gal-item.soon-box {
    display: grid;
    font-size: clamp(0.875rem, 1.4vw, 1.25rem);
}

.cat-panel.show .gal-item {
    animation: rise 0.7s var(--ease) both;
    animation-delay: calc(var(--i, 0) * 70ms);
}

/* Weiter zur nächsten Kategorie */
.cat-pager {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: clamp(32px, 6vh, 56px);
    padding-top: clamp(20px, 3vh, 28px);
    border-top: 1px solid var(--line-light);
}

.cat-step {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0;
    background: none;
    border: 0;
    text-align: left;
}

.cat-step.next {
    text-align: right;
}

.cat-step small {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
}

.cat-step strong {
    font-family: var(--heading);
    font-size: clamp(1.1rem, 2vw, 1.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.cat-step .arrow {
    border: 1px solid rgba(255,255,255,0.4);
}

.cat-step.prev .arrow svg {
    transform: scaleX(-1);
}

.cat-step:hover .arrow {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--ink);
}

.cat-step:hover strong {
    color: var(--accent);
}

/* Abschluss: Anfrage */
.cat-cta {
    background: var(--primary);
}

.cat-cta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 28px 48px;
}

.cat-cta-row p:not(.label) {
    max-width: 44ch;
    margin-top: 16px;
    color: rgba(255,255,255,0.85);
}

.cat-cta .hero-actions {
    animation: none;
}

/* Bildansicht */
.lightbox {
    width: min(1280px, calc(100% - 32px));
    max-height: 94vh;
    padding: 56px 0 0;
    background: transparent;
    border: 0;
    color: #fff;
    overflow: visible;
}

.lightbox::backdrop {
    background: rgba(18,17,17,0.94);
}

.lightbox .dialog-close {
    position: absolute;
    top: 0;
    right: 0;
    float: none;
    background: var(--accent);
    color: var(--ink);
}

.lightbox figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.lightbox img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(94vh - 110px);
}

.lightbox figcaption {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
}

.lb-nav {
    position: absolute;
    top: 50%;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    background: var(--accent);
    color: var(--ink);
    border: 0;
    border-radius: 50%;
}

.lb-nav svg {
    width: 18px;
    height: 18px;
}

.lb-prev {
    left: 8px;
}

.lb-prev svg {
    transform: scaleX(-1);
}

.lb-next {
    right: 8px;
}

@media (max-width: 1000px) {
    .cat-bar .wrap {
        padding: 0;
    }

    .cat-tabs {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        scroll-snap-type: x proximity;
        scroll-padding: 0 var(--gutter);
        scrollbar-width: none;
        padding: 0 var(--gutter);
        -webkit-overflow-scrolling: touch;
    }

    /* Hinweis, dass rechts noch Kategorien kommen */
    .cat-bar::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 36px;
        background: linear-gradient(90deg, rgba(18,17,17,0), var(--ink-deep));
        pointer-events: none;
    }

    .cat-tabs::-webkit-scrollbar {
        display: none;
    }

    .cat-tab {
        flex: none;
        width: auto;
        scroll-snap-align: start;
    }

    .cat-head {
        grid-template-columns: 1fr;
    }

    .gal {
        grid-auto-rows: clamp(110px, 24vw, 200px);
    }
}

@media (max-width: 640px) {
    .gal {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 44vw;
    }

    .gal-item,
    .gal-item:nth-child(6n+2),
    .gal-item:nth-child(6n+3) {
        grid-column: span 1;
        grid-row: span 1;
    }

    .gal-item:nth-child(6n+1) {
        grid-column: span 2;
        grid-row: span 1;
    }

    .cat-step .arrow {
        display: none;
    }

    .lb-nav {
        top: auto;
        bottom: -64px;
    }

    .lb-prev {
        left: calc(50% - 60px);
    }

    .lb-next {
        right: calc(50% - 60px);
    }
}
