/*
Projekt: Black Cow
www.blackcow.ch
Relaunch: 03.10.2026 (Design aufgefrischt, Texte und Bilder unverändert)
*/

/*=================================================================
1. Fonts
=================================================================*/
@font-face {
    font-family: "Raleway";
    src: url("../fonts/raleway-regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Raleway";
    src: url("../fonts/raleway-semibold.woff") format("woff");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Raleway";
    src: url("../fonts/raleway-bold.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/*=================================================================
2. Tokens
=================================================================*/
:root {
    --bg: #0c0c0c;
    --bg-2: #141414;
    --surface: #1a1a1a;
    --line: rgba(255, 255, 255, .1);
    --text: #ece7df;
    --muted: #a39d94;
    --accent: #4169e1;
    --accent-2: #8fa9ff;
    --radius: 18px;
    --radius-sm: 10px;
    --wrap: 1320px;
    --gutter: clamp(16px, 4vw, 48px);
    --header-h: 76px;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --font: "Raleway", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color-scheme: dark;
}

/*=================================================================
3. Basis
=================================================================*/
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, h5, h6, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

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

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

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

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

/* Filmkorn ueber allem, ganz dezent */
body::after {
    content: "";
    position: fixed;
    inset: -50%;
    z-index: 9000;
    pointer-events: none;
    opacity: .05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
    0%   { transform: translate(0, 0); }
    20%  { transform: translate(-3%, 2%); }
    40%  { transform: translate(2%, -3%); }
    60%  { transform: translate(-2%, -1%); }
    80%  { transform: translate(3%, 3%); }
    100% { transform: translate(0, 0); }
}

/* Seitenwechsel (View Transitions, wo unterstuetzt) */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: .45s; animation-timing-function: var(--ease); }

/*=================================================================
4. Header
=================================================================*/
.progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 100%;
    transform-origin: 0 50%;
    transform: scaleX(0);
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    z-index: 1001;
}

.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--header-h);
    transition: background .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
    border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
    background: rgba(12, 12, 12, .72);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
    border-color: var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }

.site-header .wrap {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo { position: relative; z-index: 2; display: block; flex-shrink: 0; }
.logo img {
    width: 150px;
    filter: brightness(0) invert(.93);
    transition: filter .3s;
}
.logo:hover img { filter: brightness(0) invert(.93) drop-shadow(0 0 14px rgba(65, 105, 225, .55)); }

.nav ul { display: flex; gap: clamp(14px, 2.2vw, 34px); }
.nav a {
    position: relative;
    display: inline-block;
    padding: 6px 0;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .04em;
    text-decoration: none;
    color: var(--text);
    opacity: .78;
    transition: opacity .25s;
}
.nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: 100% 50%;
    transition: transform .45s var(--ease);
}
.nav a:hover, .nav a.selected { opacity: 1; }
.nav a:hover::after, .nav a.selected::after { transform: scaleX(1); transform-origin: 0 50%; }

.menu-toggle {
    display: none;
    position: relative;
    z-index: 2;
    width: 48px; height: 48px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, .04);
    cursor: pointer;
}
.menu-toggle span {
    position: absolute;
    left: 14px; right: 14px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform .45s var(--ease), opacity .3s;
}
.menu-toggle span:nth-child(1) { top: 18px; }
.menu-toggle span:nth-child(2) { top: 23px; }
.menu-toggle span:nth-child(3) { top: 28px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 1023px) {
    .menu-toggle { display: block; }
    .nav {
        position: fixed;
        inset: 0;
        display: flex;
        align-items: center;
        padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
        background: radial-gradient(120% 80% at 100% 0%, rgba(65, 105, 225, .22), transparent 60%), var(--bg);
        clip-path: circle(0 at calc(100% - 48px) 38px);
        transition: clip-path .7s var(--ease);
        visibility: hidden;
    }
    .menu-open .nav { clip-path: circle(150% at calc(100% - 48px) 38px); visibility: visible; }
    .menu-open { overflow: hidden; }
    .menu-open .site-header { background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
    .nav ul { flex-direction: column; gap: 6px; }
    .nav li {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity .5s var(--ease), transform .6s var(--ease);
    }
    .menu-open .nav li { opacity: 1; transform: none; }
    .menu-open .nav li:nth-child(1) { transition-delay: .15s; }
    .menu-open .nav li:nth-child(2) { transition-delay: .2s; }
    .menu-open .nav li:nth-child(3) { transition-delay: .25s; }
    .menu-open .nav li:nth-child(4) { transition-delay: .3s; }
    .menu-open .nav li:nth-child(5) { transition-delay: .35s; }
    .nav a { font-size: clamp(22px, 6vw, 34px); font-weight: 700; letter-spacing: -.01em; opacity: 1; }
    .nav a.selected { color: var(--accent); }
}

/*=================================================================
5. Hero
=================================================================*/
.hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    isolation: isolate;
    background: var(--bg-2);
}
.hero__bg,
.hero__slide {
    position: absolute;
    inset: -6% 0;
    z-index: -2;
    background-size: cover;
    background-position: 50% 50%;
    will-change: transform;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(12, 12, 12, .55) 0%, rgba(12, 12, 12, .1) 35%, rgba(12, 12, 12, .55) 70%, var(--bg) 100%),
        radial-gradient(90% 70% at 15% 100%, rgba(65, 105, 225, .18), transparent 60%);
}

/* Startseite */
.hero--home {
    min-height: 100svh;
    align-items: center;
}
.hero__slide {
    opacity: 0;
    transform: scale(1.12);
    transition: opacity 1.8s ease, transform 9s linear;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }

.hero--home .hero__inner {
    padding-top: var(--header-h);
    text-align: center;
}
.hero__brand { margin: 0 auto; max-width: 980px; }
.hero__brand img {
    width: 100%;
    filter: brightness(0) invert(.95) drop-shadow(0 10px 40px rgba(0, 0, 0, .6));
}
.hero__lead {
    max-width: 760px;
    margin: clamp(22px, 4vw, 40px) auto 0;
    font-size: clamp(16px, 1.6vw, 20px);
    line-height: 1.45;
    color: var(--text);
    text-wrap: balance;
}
.hero__lead em { font-style: normal; color: var(--accent); }

.hero__scroll {
    position: absolute;
    left: 50%;
    bottom: 34px;
    width: 30px; height: 50px;
    margin-left: -15px;
    border: 2px solid rgba(255, 255, 255, .5);
    border-radius: 20px;
    transition: border-color .3s;
}
.hero__scroll:hover { border-color: var(--accent); }
.hero__scroll span {
    position: absolute;
    left: 50%; top: 9px;
    width: 4px; height: 9px;
    margin-left: -2px;
    border-radius: 2px;
    background: var(--accent);
    animation: scrolldot 1.8s var(--ease) infinite;
}
@keyframes scrolldot {
    0% { transform: translateY(0); opacity: 0; }
    30% { opacity: 1; }
    100% { transform: translateY(18px); opacity: 0; }
}

/* Unterseiten */
.hero--page {
    min-height: clamp(440px, 64vh, 600px);
    padding: calc(var(--header-h) + 60px) 0 clamp(40px, 6vw, 80px);
}
.hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-bottom: 18px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.hero__meta a { text-decoration: none; color: var(--muted); transition: color .25s; }
.hero__meta a:hover { color: var(--text); }
.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(65, 105, 225, .16);
    border: 1px solid rgba(65, 105, 225, .45);
    color: #c9d6ff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    line-height: 1.2;
}
.chip::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

.hero__title {
    max-width: 18ch;
    font-size: clamp(32px, 5.4vw, 74px);
    font-weight: 700;
    line-height: .98;
    letter-spacing: -.035em;
    text-wrap: balance;
}
.hero__title .t2 {
    display: block;
    max-width: 30ch;
    margin-top: .45em;
    font-size: clamp(16px, 1.7vw, 23px);
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0;
    color: rgba(236, 231, 223, .82);
}

/* Titel-Animation beim Laden */
.js .hero__inner > * {
    opacity: 0;
    transform: translateY(28px);
    animation: rise 1s var(--ease) forwards;
}
.js .hero__inner > *:nth-child(2) { animation-delay: .12s; }
.js .hero__inner > *:nth-child(3) { animation-delay: .24s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/*=================================================================
6. Laufband
=================================================================*/
.marquee {
    position: relative;
    overflow: hidden;
    padding: 22px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track {
    display: flex;
    width: max-content;
    animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
    display: inline-flex;
    align-items: center;
    gap: 34px;
    padding-right: 34px;
    font-size: clamp(18px, 2.4vw, 30px);
    font-weight: 700;
    letter-spacing: -.02em;
    white-space: nowrap;
    color: transparent;
    -webkit-text-stroke: 1px rgba(236, 231, 223, .55);
}
.marquee__track span:nth-child(odd) { color: var(--text); -webkit-text-stroke: 0; }
.marquee__track span::after {
    content: "";
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--accent);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/*=================================================================
7. Projekte (Startseite)
=================================================================*/
.projects { padding: clamp(60px, 9vw, 120px) 0 clamp(70px, 10vw, 130px); }

.projects__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px 40px;
    margin-bottom: clamp(28px, 4vw, 48px);
}
.section-title {
    font-size: clamp(30px, 4.4vw, 58px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.035em;
}
.section-title span { color: var(--muted); font-weight: 400; }
.section-title sup {
    margin-left: .2em;
    font-size: .32em;
    vertical-align: top;
    position: relative;
    top: .4em;
    color: var(--accent);
    letter-spacing: 0;
}

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .03);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .03em;
    cursor: pointer;
    transition: background .3s, border-color .3s, color .3s, transform .3s var(--ease);
}
.filter:hover { border-color: rgba(255, 255, 255, .35); transform: translateY(-2px); }
.filter.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.filter small { margin-left: 6px; opacity: .6; font-size: 11px; }
@media (max-width: 640px) {
    .filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        width: calc(100% + 2 * var(--gutter));
        margin: 0 calc(-1 * var(--gutter));
        padding: 4px var(--gutter) 8px;
        scrollbar-width: none;
        -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
        mask-image: linear-gradient(90deg, #000 85%, transparent);
    }
    .filters::-webkit-scrollbar { display: none; }
    .filter { flex-shrink: 0; white-space: nowrap; }
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: dense;
    gap: clamp(12px, 1.6vw, 22px);
}
@media (max-width: 1023px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .grid { grid-template-columns: 1fr; } }

.card {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--surface);
    text-decoration: none;
    color: var(--text);
    isolation: isolate;
    transform: translateZ(0);
}
.card.is-hidden { display: none; }

.card__media { position: absolute; inset: 0; z-index: -2; }
.card__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 1.1s var(--ease), filter .6s;
    filter: saturate(.9);
}
.card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .82) 100%);
    transition: opacity .5s;
}
.card::after {
    /* Lichtkegel, folgt der Maus */
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(110, 140, 255, .24), transparent 60%);
    transition: opacity .4s;
}
.card:hover::after { opacity: 1; }
.card:hover .card__media img { transform: scale(1.09); filter: saturate(1.1); }

.card__body {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: clamp(18px, 2.2vw, 28px);
}
.card__title {
    margin-top: 12px;
    font-size: clamp(17px, 1.5vw, 21px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.02em;
    text-wrap: balance;
}
.card__sub {
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.4;
    color: rgba(236, 231, 223, .78);
    max-height: 0;
    opacity: 0;
    transform: translateY(8px);
    transition: max-height .6s var(--ease), opacity .4s, transform .5s var(--ease);
}
.card:hover .card__sub,
.card:focus-visible .card__sub { max-height: 4.2em; opacity: 1; transform: none; }
@media (hover: none) { .card__sub { max-height: 4.2em; opacity: 1; transform: none; } }

.card__no {
    position: absolute;
    top: 18px; left: 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .1em;
    color: rgba(255, 255, 255, .75);
    text-shadow: 0 1px 8px rgba(0, 0, 0, .6);
}
.card__arrow {
    position: absolute;
    top: 14px; right: 14px;
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(12, 12, 12, .5);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, .18);
    transform: rotate(-45deg) scale(.85);
    opacity: 0;
    transition: transform .5s var(--ease), opacity .4s, background .3s;
}
.card__arrow svg { width: 18px; height: 18px; }
.card:hover .card__arrow { opacity: 1; transform: rotate(0) scale(1); background: var(--accent); border-color: var(--accent); }

/*=================================================================
8. Inhalt (Unterseiten)
=================================================================*/
.content {
    max-width: 820px;
    margin: 0 auto;
    padding: clamp(36px, 6vw, 72px) var(--gutter) clamp(60px, 8vw, 100px);
    counter-reset: section;
    font-size: clamp(15px, 1.05vw, 17px);
    line-height: 1.78;
    color: rgba(236, 231, 223, .9);
}

/* Erster Absatz als Einstieg */
.content > p:first-child {
    font-size: clamp(17px, 1.4vw, 20px);
    line-height: 1.6;
    color: var(--text);
}

.content p { margin-bottom: 1.6em; }
.content p span { font-weight: 700; color: var(--text); }

.content h3 {
    position: relative;
    margin: 2.4em 0 .7em;
    padding-top: 22px;
    font-size: clamp(20px, 2vw, 27px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.02em;
    color: var(--text);
    text-wrap: balance;
}
.content h3:first-child { margin-top: 0; }
.content h3::before {
    counter-increment: section;
    content: counter(section, decimal-leading-zero);
    position: absolute;
    top: 0; left: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
    color: var(--accent);
}
.content h3::after {
    content: "";
    position: absolute;
    top: 7px; left: 30px;
    width: 40px; height: 1px;
    background: rgba(65, 105, 225, .6);
}

.content a {
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
    background-image: linear-gradient(var(--accent), var(--accent));
    background-size: 100% 2px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    padding-bottom: 1px;
    transition: background-size .4s var(--ease), color .3s;
}
.content a:hover { color: #fff; background-size: 100% 100%; }
.content .picture a,
.content .audio a { background: none; padding: 0; }

/* Bilder */
.content .picture {
    position: relative;
    margin: 2.2em 0 2.6em;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
}
.content .picture img,
.content .picture iframe {
    width: 100% !important;
    max-width: none;
    border: 0 !important;
    transition: transform 1s var(--ease);
}
.content .picture img { cursor: zoom-in; }
.content .picture:hover img { transform: scale(1.03); }
.content .picture iframe {
    display: block;
    height: auto;
    aspect-ratio: 4 / 3;
    filter: grayscale(.4) contrast(1.05);
}
@media (min-width: 768px) {
    .content .picture { margin-left: -60px; margin-right: -60px; }
}

/* Video-Vorschau (Link auf Vimeo) */
.content .picture a { display: block; position: relative; }
.content .picture a img { cursor: pointer; }
.content .picture a::after {
    content: "";
    position: absolute;
    left: 50%; top: 50%;
    width: 84px; height: 84px;
    margin: -42px 0 0 -42px;
    border-radius: 50%;
    background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") no-repeat 54% 50% / 34px;
    box-shadow: 0 0 0 0 rgba(65, 105, 225, .6);
    animation: pulse 2.2s infinite;
    transition: transform .4s var(--ease);
}
.content .picture a:hover::after { transform: scale(1.1); }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(65, 105, 225, .55); }
    70% { box-shadow: 0 0 0 26px rgba(65, 105, 225, 0); }
    100% { box-shadow: 0 0 0 0 rgba(65, 105, 225, 0); }
}

/* Logo im Text (das Handwerk) */
.content .picture img[src*="logo_gross"] {
    width: 86% !important;
    margin: 0 auto;
    padding: clamp(30px, 6vw, 70px) 0;
    filter: brightness(0) invert(.93);
    cursor: default;
}
.content .picture:has(img[src*="logo_gross"]) {
    background: radial-gradient(70% 120% at 50% 100%, rgba(65, 105, 225, .25), transparent 70%), var(--surface);
}
.content .picture:has(img[src*="logo_gross"]):hover img { transform: none; }

/* Hoerbeispiel */
.content .audio {
    margin: 2.2em 0 2.6em;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
}
.content .audiopicture { position: relative; }
.content .audiopicture img { width: 100%; }
.content .audio.is-playing .audiopicture::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 40%;
    background: linear-gradient(0deg, rgba(65, 105, 225, .35), transparent);
    animation: glow 1.6s ease-in-out infinite alternate;
}
@keyframes glow { from { opacity: .4; } to { opacity: 1; } }
.content .audioplayer {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--bg-2);
    accent-color: var(--accent);
}
.content .audioplayer::-webkit-media-controls-panel { background: var(--bg-2); }

/* Galerie (ersetzt den alten Slider) */
.content .slider {
    position: relative;
    margin: 2.2em auto 2.6em;
}
.content .rslides {
    position: relative;
    display: grid;
    border-radius: var(--radius);
    overflow: hidden;
    background: #000;
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
}
.content .rslides li { grid-area: 1 / 1; }
.js .content .rslides li {
    opacity: 0;
    transform: scale(1.04);
    transition: opacity .9s var(--ease), transform 1.4s var(--ease);
}
.js .content .rslides li.is-active { opacity: 1; transform: none; z-index: 1; }
.content .rslides img {
    width: 100%; height: 100%;
    object-fit: contain;
    cursor: zoom-in;
}
.gallery__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
}
.gallery__btns { display: flex; gap: 8px; }
.gallery__btn {
    display: grid;
    place-items: center;
    width: 46px; height: 46px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .04);
    cursor: pointer;
    transition: background .3s, border-color .3s, transform .3s var(--ease);
}
.gallery__btn:hover { background: var(--accent); border-color: var(--accent); transform: scale(1.06); }
.gallery__btn svg { width: 18px; height: 18px; }
.gallery__count {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}
.gallery__count b { color: var(--text); }
.gallery__bar {
    flex: 1;
    height: 2px;
    background: var(--line);
    border-radius: 2px;
    overflow: hidden;
}
.gallery__bar i {
    display: block;
    height: 100%;
    width: 100%;
    background: var(--accent);
    transform-origin: 0 50%;
    transform: scaleX(0);
}
.gallery__bar i.is-running { animation: bar var(--dur, 4.5s) linear forwards; }
@keyframes bar { to { transform: scaleX(1); } }

/* Standort (die Werkstatt) */
.content .map {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    margin: 1.6em 0 2.6em;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(65, 105, 225, .08);
}
@media (min-width: 900px) {
    .content .map {
        grid-template-columns: minmax(0, 1fr) 300px;
        margin-left: -140px;
        margin-right: -140px;
    }
}
.map__frame {
    position: relative;
    min-height: 420px;
    overflow: hidden;
}
.map__frame iframe {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    /* Karte in den dunklen Look der Seite holen */
    filter: invert(.92) hue-rotate(180deg) saturate(.55) brightness(.92) contrast(.95);
    transition: filter .8s var(--ease);
}
.map__frame::after {
    /* blauer Schimmer ueber der Karte, Klicks gehen durch */
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(60% 70% at 50% 50%, transparent 40%, rgba(12, 12, 12, .55) 100%),
                linear-gradient(135deg, rgba(65, 105, 225, .16), transparent 60%);
}
.map:hover .map__frame iframe { filter: invert(.92) hue-rotate(180deg) saturate(.8) brightness(1) contrast(1); }

.map__card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 34px 30px;
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(65, 105, 225, .22), transparent 60%),
        var(--bg-2);
    border-left: 1px solid var(--line);
    font-size: 16px;
    line-height: 1.5;
}
@media (max-width: 899px) {
    .map__frame { min-height: 320px; }
    .map__card { border-left: 0; border-top: 1px solid var(--line); padding: 26px 22px; }
}
.map__card strong { font-size: 20px; font-weight: 700; letter-spacing: -.01em; color: var(--text); margin-top: 14px; }
.map__card span { color: var(--muted); }
.content .map__card a { background: none; padding: 0; }
.content .map__card .map__mail { margin-top: 8px; color: var(--text); font-weight: 600; }
.content .map__card .map__mail:hover { color: var(--accent-2); }
.content .map__card .map__btn {
    align-self: flex-start;
    margin-top: 18px;
    padding: 12px 20px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .02em;
    box-shadow: 0 10px 30px -10px rgba(65, 105, 225, .8);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s;
}
.content .map__card .map__btn:hover { color: #fff; transform: translateY(-2px); background: #5479eb; box-shadow: 0 16px 36px -10px rgba(65, 105, 225, .9); }
.map__pin {
    position: relative;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(65, 105, 225, .6);
    animation: pulse 2.2s infinite;
}
.map__pin::after {
    content: "";
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    background: #fff;
}

/*=================================================================
9. Blaettern zwischen Projekten
=================================================================*/
.pager {
    max-width: var(--wrap);
    margin: 0 auto clamp(60px, 8vw, 100px);
    padding: 0 var(--gutter);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: clamp(10px, 1.6vw, 20px);
    align-items: stretch;
}
.pager__item {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 220px;
    padding: 24px 26px;
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    isolation: isolate;
    background: var(--surface);
}
.pager__item img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: .45;
    transition: transform 1s var(--ease), opacity .5s;
}
.pager__item::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, .8));
}
.pager__item:hover img { transform: scale(1.07); opacity: .7; }
.pager__item--next { text-align: right; }
.pager__label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--accent);
}
.pager__title {
    margin-top: 8px;
    font-size: clamp(17px, 1.7vw, 23px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.02em;
}
.pager__grid {
    display: grid;
    place-items: center;
    width: 84px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .03);
    transition: background .3s, border-color .3s;
}
.pager__grid:hover { background: var(--accent); border-color: var(--accent); }
.pager__grid svg { width: 24px; height: 24px; transition: transform .5s var(--ease); }
.pager__grid:hover svg { transform: rotate(90deg); }
@media (max-width: 700px) {
    .pager { grid-template-columns: 1fr 1fr; }
    .pager__grid { grid-column: 1 / -1; grid-row: 2; width: 100%; height: 56px; }
    .pager__item { min-height: 170px; padding: 18px; }
}

/*=================================================================
10. Footer
=================================================================*/
.site-footer {
    position: relative;
    overflow: hidden;
    padding: clamp(60px, 9vw, 110px) 0 32px;
    border-top: 1px solid var(--line);
    background:
        radial-gradient(60% 80% at 100% 100%, rgba(65, 105, 225, .14), transparent 60%),
        var(--bg-2);
}
.footer__mail {
    display: inline-block;
    font-size: clamp(26px, 5vw, 66px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.04em;
    text-decoration: none;
    color: var(--text);
    background: linear-gradient(90deg, var(--accent), var(--accent-2)) no-repeat 0 100% / 0 4px;
    padding-bottom: 8px;
    transition: background-size .6s var(--ease), color .3s;
    word-break: break-all;
}
.footer__mail:hover { background-size: 100% 4px; }

.footer__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    margin-top: clamp(40px, 6vw, 70px);
}
.footer__nav ul { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.footer__nav a {
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: var(--muted);
    transition: color .25s;
}
.footer__nav a:hover { color: var(--text); }
.social { display: flex; gap: 10px; }
.social a {
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid var(--line);
    transition: background .3s, border-color .3s, transform .3s var(--ease);
}
.social a:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-3px); }
.social svg { width: 18px; height: 18px; fill: currentColor; }

.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--muted);
}
.footer__bottom img { width: 110px; filter: brightness(0) invert(.6); }
.to-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    text-decoration: none;
    transition: color .25s;
}
.to-top:hover { color: var(--text); }
.to-top svg { width: 14px; height: 14px; transition: transform .4s var(--ease); }
.to-top:hover svg { transform: translateY(-3px); }

/*=================================================================
11. Lightbox
=================================================================*/
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 60px 70px;
    background: rgba(8, 8, 8, .92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s var(--ease), visibility .4s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
    max-width: 100%;
    max-height: calc(100vh - 120px);
    border-radius: var(--radius-sm);
    box-shadow: 0 40px 80px rgba(0, 0, 0, .6);
    transform: scale(.94);
    transition: transform .5s var(--ease);
}
.lightbox.is-open img { transform: none; }
.lightbox button {
    position: absolute;
    display: grid;
    place-items: center;
    width: 50px; height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .06);
    cursor: pointer;
    transition: background .3s;
}
.lightbox button:hover { background: var(--accent); border-color: var(--accent); }
.lightbox button svg { width: 20px; height: 20px; }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 14px; top: 50%; margin-top: -25px; }
.lightbox__next { right: 14px; top: 50%; margin-top: -25px; }
@media (max-width: 600px) {
    .lightbox { padding: 70px 12px; }
    .lightbox__prev, .lightbox__next { top: auto; bottom: 14px; margin: 0; }
}

/*=================================================================
12. Scroll-Animationen
=================================================================*/
.js [data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .9s var(--ease), transform 1s var(--ease);
    transition-delay: var(--delay, 0s);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    .js [data-reveal] { opacity: 1; transform: none; }
    .marquee__track { animation: none; }
    body::after { display: none; }
}

/*=================================================================
E N D E
=================================================================*/
