*,
*::before,
*::after {
    box-sizing: border-box;
}

@font-face {
    font-family: "Montserrat";
    src: url("/fonts/static/Montserrat-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat";
    src: url("/fonts/static/Montserrat-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat";
    src: url("/fonts/static/Montserrat-Bold.ttf") format("truetype");
    font-weight: 700;
    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;
}



.portfolio-grid {
    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;

}

#über-mich,
#kontakt,
#service,
#preis {
    scroll-margin-top: 120px;
}


.main,
.service,
.features-icon,
.über-mich,
.preise,
.kontakt {
    position: relative;
    z-index: 3;
}

.header {
    position: relative;
    min-height: 80vh;
    cursor: default;
    background: #0f0f0f;
    cursor: default;
}


.header-nav {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;

    height: 72px;
    padding: 0 6vw;

    display: flex;
    align-items: center;
    gap: 18px;

    background: rgba(15, 15, 15, 0.68);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(10px);
    z-index: 50;
}

/* Nur auf Seiten mit Hero-Header: Nav overlay */
.header .header-nav {
    position: absolute;
    top: 0;
}

/* 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;
    }
}





/* =========================
   Portfolio Grid
========================= */
.portfolio-grid {
    width: min(1100px, 100%);
    margin: 0 auto;
    padding: 34px 20px 60px;
    cursor: default;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.portfolio-subtitle {
    grid-column: 1 / -1;
    margin: 10px 0 2px;
    font-size: 20px;
    font-weight: 700;
    color: #222;
}

/* Cards */
.project-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);
}

/* Media area */
.project-media {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eee;
}

.project-img {
    width: 100%;
    height: 140%;
    object-fit: cover;
    display: block;
}

/* Placeholder (In Arbeit) schön zentriert */
.project-placeholder {
    height: 100%;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.55);
}

/* Body */
.project-body {
    padding: 18px 18px 16px;
}

.project-body h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.project-text {
    margin: 0 0 12px;
    color: #333;
    line-height: 1.7;
}

/* Tags */
.project-tags {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tags li {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(201, 162, 63, 0.12);
    border: 1px solid rgba(201, 162, 63, 0.25);
}

/* Actions */
.project-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Buttons: für <a> UND <button> */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 14px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;

    border: 0;
    cursor: pointer;
}

.btn-primary {
    background: #c9a23f;
    color: #111;
}

.btn-primary:hover {
    filter: brightness(0.95);
}

.btn-ghost {
    border: 1px solid rgba(0, 0, 0, 0.14);
    color: #222;
    background: transparent;
}

.btn-ghost:hover {
    background: rgba(0, 0, 0, 0.04);
}

/* Disabled State */
.is-disabled,
a[aria-disabled="true"],
button:disabled {
    opacity: 0.55;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 860px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        padding: 26px 16px 54px;
    }
}


/* ===== 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;
}

/* Responsive */
@media (max-width: 900px) {
    .footer-inner.slim {
        grid-template-columns: 1fr;
        padding: 38px 16px 16px;
        gap: 18px;
    }

    .footer-legal {
        justify-self: start;
    }
}

@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;
    }
}


@media (max-width: 768px) {
    .header-nav {
        right: 15px;
        left: 15px;
        justify-content: flex-end;
    }

    .header-nav ul {
        position: absolute;
        top: 60px;
        right: 0;
        left: auto;
        flex-direction: column;
        gap: 0.8rem;
        background: rgba(0, 0, 0, 0.9);
        padding: 1rem 1.2rem;
        border-radius: 0.8rem;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
        display: none;
    }

    .header-nav ul.active {
        display: flex;
    }

    .header-nav a {
        font-size: 0.95rem;
        color: #fff;
    }

    .hamburger {
        display: flex;
    }
}