*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Montserrat als Variable Font (WOFF2, Latin-Subset):
   eine Datei ~37 KB deckt alle Schnitte 100-900 ab.
   Ersetzt die frueheren drei TTF-Dateien (zusammen ~975 KB). */
@font-face {
    font-family: "Montserrat";
    src: url("/fonts/montserrat-latin-var.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
body {
    margin: 0;
    padding: 0;
    font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-weight: 400;
    background-color: #f7f7f7;
    color: #222;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


.vp-portfolio {
    flex: 1;
}


.footer {
    margin-top: auto;
}

:root {
    --gold: #c9a23f;
    --text-dark: #222;
    --text-light: #f7f7f7;
    --light-bg: #f9f9f9;
    --white-bg: #ffffff;
    --dark-bg: #111;
    --currency: "CHF";
}

html {
    scroll-behavior: smooth;
}

html,
body {
    overflow-x: hidden;
    height: 100%;
}

section {
    padding: 80px 20px;

}

#ueber-mich,
#kontakt,
#service,
#preis {
    scroll-margin-top: 120px;
}


.main,
.service,
.preise,
.kontakt {
    position: relative;
    z-index: 3;
}

.header {
    position: relative;
    min-height: 80vh;
    cursor: default;
    background: #0f0f0f;
    cursor: default;
}


.header-nav {
    --nav-h: 88px;

    position: sticky;

    width: 100%;
    height: auto;
    /* optional */
    min-height: var(--nav-h);

    display: flex;
    align-items: center;
    gap: 18px;

    padding: 0 clamp(16px, 6vw, 56px);

    background: rgba(15, 15, 15, 0.72);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(10px);
    z-index: 20;
}

/* Nur auf Seiten mit Hero-Header: Nav overlay */


/* Brand links */
.brand {
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-size: 0.95rem;
    opacity: .95;
    padding: 10px 0;
    white-space: nowrap;
}

.brand:hover {
    opacity: 1;
}

/* Menü rechts */
.header-nav ul {
    margin: 0;
    margin-left: auto;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 22px;
}

.header-nav a {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, .9);
    text-decoration: none;
    padding: 10px 10px;
    border-radius: 10px;
    transition: 0.2s ease;
    white-space: nowrap;
}

.header-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .06);
}

.header-nav a.nav-link.active {
    color: var(--gold);
}


.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 20px;
    cursor: pointer;
    border: 0;
    background: transparent;
    padding: 0;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.25s ease;
}


.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

@media (max-width: 900px) {
    .header-nav {
        padding: 0 16px;
    }

    .header-nav ul {
        position: absolute;
        top: 72px;
        right: 16px;
        left: auto;

        flex-direction: column;
        align-items: flex-start;
        gap: 8px;

        background: rgba(0, 0, 0, .9);
        border: 1px solid rgba(255, 255, 255, .08);
        border-radius: 14px;
        padding: 12px 12px;

        display: none;
        box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
    }

    .header-nav ul.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }
}


.vp-portfolio {
    background: #f7f7f7;
    padding: 34px 16px 60px !important;
    cursor: default;
    width: 100%;

}

.vp-wrap {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    display: block;
}


.vp-port-head h1 {
    margin: 10px 0 8px;
    font-size: clamp(28px, 3.2vw, 44px);
    letter-spacing: .2px;
}

.vp-port-head p {
    margin: 0 0 16px;
    max-width: 72ch;
    color: #555;
    line-height: 1.65;
}

.vp-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    width: 100%;

}

/* Card */
.vp-card {

    background: #fff;
    border: 1px solid rgba(218, 165, 32, 0.22);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    max-width: 100%;
    grid-column: auto;
}

/* Featured */
.vp-card--featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

/* Media */
.vp-media {
    width: 100%;
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111;
}

.vp-card--featured .vp-media {
    aspect-ratio: auto;
    min-height: 320px;
}

.vp-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.01);
    transition: transform .35s ease, filter .35s ease;
}

.vp-mediaShade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, .35));
    pointer-events: none;
}

.vp-card:hover .vp-media img {
    transform: scale(1.04);
    filter: saturate(1.05);
}

/* Badge */
.vp-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .62);
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    border: 1px solid rgba(255, 255, 255, .12);
}

.vp-badge--muted {
    background: rgba(0, 0, 0, .35);
}

/* Placeholder WIP */
.vp-media--placeholder {
    background:
        radial-gradient(600px 260px at 20% 20%, rgba(201, 162, 63, .18), transparent 60%),
        radial-gradient(700px 260px at 80% 40%, rgba(0, 0, 0, .18), transparent 60%),
        #0f0f10;
    color: rgba(255, 255, 255, .92);
    padding: 18px;
    aspect-ratio: 16 / 9;
}

.vp-phText {
    margin-top: 38px;
    max-width: 46ch;
}

.vp-phTitle {
    margin: 0 0 8px;
    font-weight: 900;
    letter-spacing: .2px;
}

.vp-phHint {
    margin: 0 0 8px;
    opacity: .9;
}

.vp-media--placeholder ul {
    margin: 0;
    padding-left: 18px;
    opacity: .9;
}

/* Body */
.vp-body {
    padding: 18px 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vp-topline {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.vp-topline h2,
.vp-topline h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.25;
}

.vp-card--featured .vp-topline h2 {
    font-size: 24px;
}

.vp-status {
    font-size: 12px;
    font-weight: 800;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .05);
    border: 1px solid rgba(0, 0, 0, .08);
    color: #333;
    white-space: nowrap;
}

.vp-status--wip {
    background: rgba(201, 162, 63, .18);
    border-color: rgba(201, 162, 63, .35);
}

.vp-lead {
    margin: 0;
    color: #333;
    line-height: 1.65;
}

/* Meta list */
.vp-meta {
    margin: 0;
    padding-left: 18px;
    color: #333;
    line-height: 1.55;
}

.vp-meta strong {
    font-weight: 800;
}

/* Chips */
.vp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vp-chip {
    font-size: 12px;
    font-weight: 800;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(201, 162, 63, 0.12);
    border: 1px solid rgba(201, 162, 63, 0.25);
}

/* Buttons */
.vp-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.vp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 13px;
    border: 0;
    cursor: pointer;
    text-decoration: none;
}

.vp-btn--primary {
    background: var(--gold);
    color: #111;
}

.vp-btn--primary:hover {
    filter: brightness(0.95);
}

.vp-btn--ghost {
    border: 1px solid rgba(0, 0, 0, 0.14);
    color: #222;
    background: transparent;
}

.vp-btn--ghost:hover {
    background: rgba(0, 0, 0, 0.04);
}

.vp-card--featured .vp-body {
    justify-content: flex-start;
    /* oben bündig wie Screenshot */
}


/* Responsive */
@media (max-width: 920px) {
    .vp-grid {
        grid-template-columns: 1fr;
    }

    .vp-card--featured {
        grid-template-columns: 1fr;
    }

    .vp-card--featured .vp-media {
        min-height: 220px;
    }
}


/* Responsive */
/* ===== Lightbox ===== */
.lightbox {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
}

.lightbox.is-open {
    display: block;
}

.lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .68);
}

.lightbox__dialog {
    position: absolute;
    inset: 0;
    margin: auto;
    width: min(980px, calc(100vw - 26px));
    height: min(640px, calc(100vh - 26px));
    background: #111;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 18px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .45);
    overflow: hidden;
}

.lightbox__figure {
    margin: 0;
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    padding: 44px 56px 44px;
}

.lightbox__img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}

.lightbox__caption {
    margin-top: 10px;
    color: rgba(255, 255, 255, .75);
    font-size: 14px;
    text-align: center;
}

.lightbox__close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .06);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 54px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .06);
    color: #fff;
    font-size: 34px;
    cursor: pointer;
}

.lightbox__prev {
    left: 10px;
}

.lightbox__next {
    right: 10px;
}

.lightbox__count {
    position: absolute;
    left: 12px;
    bottom: 10px;
    color: rgba(255, 255, 255, .65);
    font-size: 13px;
}

.lightbox__nav::before {
    display: inline-block;
    font-size: 34px;
    line-height: 1;
}

.lightbox__prev::before {
    content: "‹";
}

.lightbox__next::before {
    content: "›";
}

.lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.10);
}

:focus-visible {
    outline: 3px solid rgba(201, 162, 63, 0.55);
    outline-offset: 2px;
}


.footer {
    background: #16161D;
    color: rgba(255, 255, 255, .86);
    border-top: 1px solid rgba(255, 255, 255, .08);
    width: 100%;
    cursor: default;
}

.footer-inner.slim {
    width: min(1100px, 100%);
    margin: 0 auto;
    padding: 44px 20px 18px;

    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 26px;
    align-items: start;
}

.footer-title {
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-size: .95rem;
    margin-bottom: 10px;
}

.footer-desc {
    margin: 0 0 10px;
    color: rgba(255, 255, 255, .68);
    max-width: 58ch;
    line-height: 1.6;
    font-size: .95rem;
}

.footer-mail {
    display: inline-block;
    margin-top: 4px;
    color: rgba(255, 255, 255, .92);
    text-decoration: none;
    font-weight: 600;
}

.footer-mail:hover {
    color: #fff;
    text-decoration: underline;
}

/* Rechts: Links */
.footer-legal {
    justify-self: end;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: center;
}

.footer-legal a {
    color: rgba(255, 255, 255, .75);
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 10px;
    transition: .2s ease;
    white-space: nowrap;
}

.footer-legal a:hover {
    background: rgba(255, 255, 255, .06);
    color: #fff;
}

/* Bottom line */
.footer-bottom {
    grid-column: 1 / -1;
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .55);
    font-size: .9rem;
}

.vp-card--featured .vp-media {
    min-height: 260px;
}


/* Responsive */
@media (max-width: 900px) {
    .footer-inner.slim {
        grid-template-columns: 1fr;
        padding: 38px 16px 16px;
        gap: 18px;
    }

    .footer-legal {
        justify-self: start;
    }

    .hamburger {
        margin-left: auto;
    }
}

@media (max-width: 520px) {
    .footer-legal {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .footer-legal a {
        padding: 6px 0;
    }
}


@media (max-width: 520px) {
    .lightbox__figure {
        padding: 44px 16px 44px;
    }

    .lightbox__nav {
        width: 40px;
        height: 50px;
    }
}


/* ====== Overlay wenn Mobile-Menü offen ====== */
body.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(2px);
    z-index: 90;
}

/* Header über Overlay */
.header-nav {
    position: sticky;
    /* hast du evtl. schon */
    top: 0;
    z-index: 100;
}

@media (max-width: 900px) {
    .header-nav ul {
        z-index: 110;
        background: #0b0d0f;
        border: 1px solid rgba(255, 255, 255, .08);
        /* damit der Rand sicher bleibt */
        box-shadow:
            0 30px 90px rgba(0, 0, 0, 0.70),
            0 0 0 1px rgba(255, 255, 255, 0.06);
    }

    /* ALLE Links im Dropdown */
    .header-nav ul a {
        width: 100%;
        padding: 12px 12px;
        border-radius: 12px;
        background: rgba(22, 27, 31, 0.72);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .header-nav ul a:hover {
        background: rgba(22, 27, 31, 0.85);
    }
}

/* Stacking sauber */
.header-nav {
    position: sticky;
    top: 0;
    z-index: 200;
}

/* Overlay unter Header/Nav */
body.nav-open::before {
    z-index: 150;
}

@media (max-width: 900px) {

    /* Dropdown-Panel */
    .header-nav ul {
        align-items: stretch;
        /* statt flex-start */
        min-width: 240px;
        /* optional, damit es nicht “mickrig” wirkt */
    }

    .header-nav ul li {
        width: 100%;
    }

    /* Links als echte Full-Width Buttons */
    .header-nav ul a {
        display: block;
        /* <- DAS ist der wichtige Fix */
        width: 100%;
        box-sizing: border-box;

        padding: 12px 12px;
        border-radius: 12px;

        background: rgba(22, 27, 31, 0.72);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .header-nav ul a:hover {
        background: rgba(22, 27, 31, 0.85);
    }

    /* Active Link klarer */
    .header-nav ul a.active {
        color: var(--gold);
        border-color: rgba(201, 162, 63, 0.45);
        background: rgba(201, 162, 63, 0.10);
    }
}

/* ===================================================================
   Scroll-Reveal: Slide-Animationen (gehoert zu reveal.js)

   Die Regeln haengen an :where(.js), damit sie
   a) nur greifen, wenn JavaScript laeuft (sonst bliebe alles unsichtbar) und
   b) eine Spezifitaet von 0,1,0 behalten - so gewinnen bestehende
      Hover-Regeln wie .preis-box:hover weiterhin.
   =================================================================== */

:where(.js) [data-reveal] {
    opacity: 0;
}

:where(.js) [data-reveal].is-revealed {
    animation: vp-reveal-up 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) both;
    animation-delay: var(--reveal-delay, 0ms);
}

:where(.js) [data-reveal="left"].is-revealed {
    animation-name: vp-reveal-left;
}

:where(.js) [data-reveal="right"].is-revealed {
    animation-name: vp-reveal-right;
}

/* Nach dem Durchlauf die Animation entfernen, damit transform wieder
   fuer Hover- und Tilt-Effekte frei ist. */
:where(.js) [data-reveal].reveal-done {
    opacity: 1;
    animation: none;
}

@keyframes vp-reveal-up {
    from {
        opacity: 0;
        transform: translate3d(0, 34px, 0);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes vp-reveal-left {
    from {
        opacity: 0;
        transform: translate3d(-52px, 0, 0);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes vp-reveal-right {
    from {
        opacity: 0;
        transform: translate3d(52px, 0, 0);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {

    :where(.js) [data-reveal],
    :where(.js) [data-reveal].is-revealed {
        opacity: 1;
        animation: none;
    }
}
