@font-face {
    font-display: swap;
    font-family: 'Fort Light';
    src: url('fonts/Fort-Light.woff2') format('woff2'),
        url('fonts/Fort-Light.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-display: swap;
    font-family: 'Fort Book';
    src: url('fonts/Fort-Book.woff2') format('woff2'),
        url('fonts/Fort-Book.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-display: swap;
    font-family: 'Fort Bold';
    src: url('fonts/Fort-Bold.woff2') format('woff2'),
        url('fonts/Fort-Bold.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-display: swap;
    font-family: 'MixtapeExtraCondensed-SemiBold';
    src: url('fonts/MixtapeExtraCondensed-SemiBold.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-display: swap;
    font-family: 'MixtapeExtraCondensed-Bold';
    src: url('fonts/MixtapeExtraCondensed-Bold.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-display: swap;
    font-family: 'MixtapeExtraCondensed-ExtraBold';
    src: url('fonts/MixtapeExtraCondensed-ExtraBold.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

* {
    margin:0;
    padding:0;
    border:0;
    font-size:100%;
    font:inherit;
    vertical-align:baseline;
    outline:none;
    box-sizing: border-box;
    -webkit-appearance:none;
    appearance:none;
    border-radius:0,
}
html {
    scroll-behavior:smooth
}
body {
    background:#fff;
    line-height:1;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a {
    text-decoration-skip-ink:auto
}
a[href^="tel"] {
    color:inherit;
    text-decoration:none
}
ol,ul {
    list-style:none
}
table {
    border-collapse:collapse;
    border-spacing:0
}
th,td {
    padding:2px
}
sup, sub {
    vertical-align: baseline;
    position: relative;
    top: -0.4em;
    font-size:60%
}
sub {
    top: 0.4em;
}
strong {
    font-family: 'Fort Bold';
}
img {
    max-width:100%;
    height:auto;
}
#container {
    transform-origin: center center;
}
#logo, #main-nav, #menu-trigger {
    opacity: 0;
    transform: translateY(-30px);
}

#mobile-menu {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #E4E4E4;
    z-index: 9999;
    clip-path: polygon(0% 0%, 100% 0%, 100% 0%, 0% 0%);
    pointer-events: none;
    overflow-y: auto;                     /* niedrige Viewports (Querformat): Menue scrollt, statt Punkte abzuschneiden */
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}
#mobile-menu.is-open {
    pointer-events: auto;
}
/* Schliessen-Knopf oben rechts im offenen Menue (der Hamburger liegt unter dem Overlay) */
.menu_close { position: absolute; top: 22px; right: 20px; z-index: 2; display: flex; align-items: center; gap: 12px; background: none; border: 0; padding: 10px 0 10px 10px; cursor: pointer; font-family: 'Fort Light', sans-serif; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: #111; opacity: 0; transform: translateY(-10px); transition: opacity .4s ease .5s, transform .4s ease .5s; }
#mobile-menu.is-open .menu_close { opacity: 1; transform: none; }
.menu_close i { position: relative; width: 26px; height: 26px; display: block; }
.menu_close i::before, .menu_close i::after { content: ''; position: absolute; left: 0; top: 12px; width: 26px; height: 2px; background: #111; transform: rotate(45deg); }
.menu_close i::after { transform: rotate(-45deg); }
#mobile-menu #mobile-menu-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    min-height: 100%;                     /* mindestens Vollhoehe (zentriert), darf bei Ueberlauf wachsen */
    box-sizing: border-box;
    padding: 84px 0 40px;                 /* Luft fuer den Schliessen-Knopf oben */
}
#mobile-menu #mobile-menu-inner #mobile-menu-items {
    width:100%;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
}
#mobile-menu #mobile-menu-inner #mobile-menu-items { width:100%; display:flex; flex-wrap:wrap; align-items:flex-end; }
#mobile-menu #mobile-menu-inner #menu-1, #mobile-menu #mobile-menu-inner #menu-2 {
    margin:0 32px;
    width:calc(50% - 64px);
}
#mobile-menu #mobile-menu-inner #menu-1 li, #mobile-menu #mobile-menu-inner #menu-2 li {
    display: block;
}
#mobile-menu #mobile-menu-inner #menu-1 li a, #mobile-menu #mobile-menu-inner #menu-2 li a {
    font-family: 'MixtapeExtraCondensed-ExtraBold';
    font-style: bold;
    font-size:160px;
    line-height:160px;
    color:#111;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: -8px;
    display: inline-block;
    opacity: 0;
    transform: translateY(120px) rotate(8deg);
    transform-origin: left bottom;
    transition: color 0.6s ease;
}
@media (hover: hover) {
    #mobile-menu #mobile-menu-inner #menu-1 li a:hover, #mobile-menu #mobile-menu-inner #menu-2 li a:hover {
        color:#f18f34;
    }
}
/* Tablet und Smartphone: eine Spalte, Schrift an die Breite gekoppelt, Zeilenhoehe 1 (vorher 160px fix in zwei Spalten) */
@media (max-width: 991px) {
    #mobile-menu #mobile-menu-inner #mobile-menu-items { flex-direction: column; align-items: flex-start; gap: 0; }
    #mobile-menu #mobile-menu-inner #menu-1, #mobile-menu #mobile-menu-inner #menu-2 { width: calc(100% - 64px); margin: 0 32px; }
    #mobile-menu #mobile-menu-inner #menu-1 li a, #mobile-menu #mobile-menu-inner #menu-2 li a { font-size: clamp(56px, 14vw, 140px); line-height: 1; letter-spacing: -.03em; padding: .06em 0; }
}
@media (max-width: 767px) {
    #mobile-menu #mobile-menu-inner #menu-1, #mobile-menu #mobile-menu-inner #menu-2 { width: calc(100% - 40px); margin: 0 20px; }
    #mobile-menu #mobile-menu-inner #menu-1 li a, #mobile-menu #mobile-menu-inner #menu-2 li a { font-size: clamp(48px, 19vw, 96px); }
}
#mobile-menu-footer {
    position: absolute;
    bottom:0;
    left:0;
    width:100%;
}
#mobile-menu-footer #fmenu ul {
    padding:0 0 32px 32px;
    text-align: left;
    font-size:0;
}
#mobile-menu-footer #fmenu ul li {
    display: inline-block;
    margin-right:16px;
}
#mobile-menu-footer #fmenu ul li a {
    font-family: 'Fort Light';
    font-size:15px;
    line-height:20px;
    color:#111;
    letter-spacing: 1.5px;
    text-decoration: none;
    text-transform: uppercase;
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
}
#mobile-menu-footer #fmenu ul li a:hover {
    color:#666;
}

#site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 998;
    pointer-events: none;
    background: rgba(255,255,255,0);
    transition: background .4s ease, box-shadow .4s ease;
}
#site-header.is-scrolled {
    background: rgba(255,255,255,.96);
    box-shadow: 0 1px 0 rgba(17,17,17,.08);
}
#site-header > * {
    pointer-events: auto;
}
#logo {
    display: block;
    position: fixed;
    top:20px;
    left:32px;
    z-index: 999;
}
#logo img {
    display: block;
    width:125px;
    height:40px;
}
/* ===== Hauptnavigation (Desktop) ===== */
#main-nav {
    position: fixed;
    top:30px;
    right:40px;
    z-index: 999;
}
#main-nav ul {
    display: flex;
    gap:36px;
}
#main-nav li {
    display: block;
}
#main-nav a {
    position: relative;
    display: inline-block;
    padding:2px 0;
    font-family: 'Fort Book';
    font-size:15px;
    line-height:20px;
    color:#111;
    letter-spacing: 1.5px;
    text-decoration: none;
    text-transform: uppercase;
}
/* Unterstreichung: faehrt beim Hover von links herein, beim Verlassen nach rechts hinaus. */
#main-nav a::after {
    content: '';
    position: absolute;
    left:0;
    bottom:0;
    width:calc(100% - 1.5px);   /* letter-spacing hinter dem letzten Buchstaben ausgleichen */
    height:1px;
    background:currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .4s cubic-bezier(0.76, 0, 0.24, 1);
}
#main-nav a:hover::after,
#main-nav a[aria-current="page"]::after {
    transform: scaleX(1);
    transform-origin: left;
}
#menu-trigger {
    background: transparent;
    padding: 0;
    position: fixed;
    top:26px;
    right:40px;
    width:32px;
    height:25px;
    cursor: pointer;
    z-index: 99999;
}
#menu-trigger span {
    position: absolute;
    left:0;
    width:100%;
    height:1px;
    background:#111;
}
#menu-trigger span:nth-child(1) {
    top:0;
    transition:all .4s ease;
}
#menu-trigger span:nth-child(2) {
    top:12px;
    transform: rotate(0);
    transition:all .4s ease;
}
#menu-trigger span:nth-child(3) {
    top:24px;
    transition:all .4s ease;
}
#menu-trigger:hover span:nth-child(1) {
    top:2px;
    transition:all .4s ease;
}
#menu-trigger:hover span:nth-child(3) {
    top: 22px;
    transition:all .4s ease;
}
#menu-trigger.is-active span:nth-child(1) {
    top: 12px;
    transform: rotate(45deg);
}
#menu-trigger.is-active span:nth-child(2) {
    opacity: 0;
}
#menu-trigger.is-active span:nth-child(3) {
    top: 12px;
    transform: rotate(-45deg);
}

/* Desktop: Navigation sichtbar, Hamburger weg. Mobile/Tablet: umgekehrt. */
@media (max-width: 991px) {
    #main-nav { display: none; }
    #logo { left: 24px; }
    #menu-trigger { right: 28px; }
}
@media (max-width: 767px) {
    #logo { left: 20px; }
    #menu-trigger { right: 22px; }
}
@media (min-width: 992px) {
    #menu-trigger { display: none; }
}

/* ===== Hero (Intro) mit Funnel-Slider ===== */
#intro {
    position: relative;
    background:#fff;
    height: 100vh;
    height: 100svh;             /* iOS: Adresszeile nicht mitrechnen, sonst liegt sie ueber dem Slider */
    height: 100dvh;             /* passt sich an, wenn die Adresszeile ein- oder ausfaehrt: Slider bleibt am unteren Rand */
    overflow: hidden;
    isolation: isolate;
}

/* Hero-Titel oben links, liest sich ueber die Bilder */
#hero-head {
    position: absolute;
    top: 120px;
    left: 20px;
    z-index: 2;
    pointer-events: none;
}
#hero-head .hero-title {
    font-family: 'MixtapeExtraCondensed-Bold';
    font-size: 160px;
    line-height:160px;
    color: #111;
    letter-spacing: -4px;
    text-transform: uppercase;
    visibility: hidden;
}
#hero-head .hero-title.is-ready {
    visibility: visible;
}
#hero-head .hero-title .line-wrap {
    display: block;
    overflow: hidden;
}
#hero-head .hero-title .split-word {
    display: inline-block;
    white-space: nowrap;
}
#hero-head .hero-title .split-char {
    display: inline-block;
    backface-visibility: hidden;
}
#hero-head .hero-sub {
    padding-top: 1rem;
    font-family: 'Fort Book';
    font-size: 22px;
    line-height: 30px;
    color: #111;
    opacity: 0;
    padding-left:12px;
    margin-bottom:16px;
}

/* Slider: Bilder am unteren Rand verankert */
.fox-slider {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    cursor: grab;
    touch-action: none;
}
.fox-slider.is-dragging {
    cursor: grabbing;
}
.fox-slide {
    position: absolute;
    left: 0;
    bottom: 0;                  /* Basisgroesse setzt das JS, Groesse kommt per scale() */
    transform-origin: left bottom;
    /* Position via transform: translateX(); Groesse via SEPARATER scale-Property.
       Da scale nach transform wirkt, ist die reale Position = tx * scale -> "Kurve". */
    will-change: transform, scale;
    text-decoration: none;
}
.fox-slide__media {
    position: absolute;
    inset: 0;
    overflow: hidden;           /* klippt Zoom + Parallax */
    border-radius: 4px;
}
.fox-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    border-radius: 8px;
    transition: transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);  /* leichter Zoom bei Hover */
}
.fox-slide:hover img {
    transform: scale(1.06);
}

/* Projekt-Titel: aussen = Clip-Box (Position + Gegen-Skalierung setzt das JS),
   innen = der Text, der bei Hover von unten hereinfaehrt. */
.fox-slide__label {
    position: absolute;
    top: 0;                     /* sitzt an der Bildoberkante, 10px-Abstand setzt das JS */
    left: 0;
    transform-origin: left top;
    overflow: hidden;           /* klippt den hochfahrenden Text */
    pointer-events: none;
}
.fox-slide__label span {
    background:url(images/fox-dot.svg) no-repeat top left;
    background-size:14px 12px;
    padding-left:22px;
}
.fox-slide__label-inner {
    display: block;
    font-family: 'Fort Book';
    font-size: .75rem;
    line-height: 1.2;
    text-transform: uppercase;
    color: #111;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(110%);   /* startet unter der Kante, verdeckt */
    transition: transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.35s ease;
}
.fox-slide:hover .fox-slide__label-inner {
    opacity: 1;
    transform: translateY(0);
}

/* Tablet und Smartphone: Titel mit Zeilenhoehe 1, Slider hoeher (Portrait), damit nichts am Rand klebt */
@media (max-width: 991px) {
    #hero-head { top: 104px; left: 20px; right: 20px; }
    #hero-head .hero-title { font-size: clamp(56px, 13vw, 132px); line-height: .92; letter-spacing: -.03em; }
    #hero-head .hero-sub { font-size: 17px; line-height: 24px; padding-left: 4px; padding-top: 14px; }
    #hero-head .hero-sub.hero_button { padding-top: 0; }
}
@media (max-width: 991px) {
    .fox-slider { bottom: env(safe-area-inset-bottom, 0px); }   /* ganz unten, nur die Home-Leiste des iPhone bleibt frei */
}
@media (max-width: 767px) {
    #hero-head { top: 112px; }
    #hero-head .hero-title { font-size: clamp(48px, 17vw, 96px); }
    #hero-head .hero-sub { font-size: 15px; line-height: 22px; }
}

/* Niedrige Viewports (Laptop mit Dock, Querformat auf dem Handy): Hero-Titel und Slider skalieren mit der Hoehe */
@media (max-height: 760px) and (min-width: 992px) {
    #hero-head { top: 84px; }
    #hero-head .hero-title { font-size: min(160px, 17vh); line-height: min(160px, 17vh); letter-spacing: -2px; }
    #hero-head .hero-sub { font-size: 14px; line-height: 20px; margin-top: 12px; }
}
@media (max-height: 560px) {
    #hero-head { top: 64px; }
    #hero-head .hero-title { font-size: 15vh; line-height: 15vh; }
    #hero-head .hero-sub { display: none; }
}

/* Touch-Geraete: Projektnamen im Slider immer sichtbar (kein Hover) */
@media (hover: none) {
    .fox-slide__label-inner { opacity: 1; transform: none; }
}
