/* ==========================================================================
   1. SCHRIFTARTEN & VARIABLEN
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Great+Vibes&display=swap');

:root {
    --bg-dark-gray: #0e0e12;
    --bg-card: rgba(22, 22, 28, 0.75);
    --bg-card-hover: rgba(30, 30, 38, 0.9);

    --text-white: #ffffff;
    --font-montserrat: 'Montserrat', sans-serif;
    --font-script-logo: 'Great Vibes', cursive;

    --transition-fast: all 0.2s ease;
    --transition-smooth: all 0.35s ease;
    --radius-btn: 50px;

    --hero-image: url('Images/B-Cup-30.webp');
    --container-width: 1350px;
    --page-pad: 2rem; /* seitlicher Rand der Seite */
    --content-indent: 0px; /* gemeinsame linke Einrückung (nur Desktop, siehe unten) */
}

@media (min-width: 901px) {
    :root { --content-indent: 140px; } /* gemeinsame linke Kante von Logo, Titeln und Inhalten */
}

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

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}

body {
    font-family: var(--font-montserrat);
    font-weight: 400;
    background-color: var(--bg-dark-gray);
    color: var(--text-white);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    width: 100%;
    max-width: var(--container-width);
    margin: 100px auto 0 auto;
    padding: 0 2rem;
}

/* ==========================================================================
   2. HINTERGRUNDBILD (Startseite)
   ========================================================================== */
.hero-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120vh;
    z-index: -2;
    overflow: hidden;
    background-image:
        linear-gradient(to bottom, rgba(14, 14, 18, 0.02) 0%, rgba(14, 14, 18, 0.1) 60%, rgba(14, 14, 18, 0.9) 85%, #0e0e12 100%),
        linear-gradient(to right, rgba(14, 14, 18, 0.75) 0%, rgba(14, 14, 18, 0.02) 45%, rgba(14, 14, 18, 0.75) 100%),
        var(--hero-image);
    background-repeat: no-repeat;
    background-size: 100% 100%, 100% 100%, cover;
    background-position: center, center, center 12%;
}

/* DESKTOP: Bildausschnitt weiter oben -> mehr von der Person sichtbar */
@media (min-width: 901px) {
    .hero-bg-container {
        background-position: center, center, center 40%;
    }
}

/* ==========================================================================
   3. NAVIGATION & LOGO
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 2.2rem 0 3rem 0;
    background-color: rgba(14, 14, 18, 0);
    border-bottom: 1px solid transparent;
    transition: padding 0.3s ease, background-color 0.35s ease, border-color 0.35s ease;
}

.header::before,
.header::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

/* ganz oben: leicht schwarz transparent, nach unten fliessend ausblendend */
.header::before {
    background: linear-gradient(to bottom,
        rgba(0, 0, 0, 0.65) 0%,
        rgba(0, 0, 0, 0.4) 45%,
        rgba(0, 0, 0, 0.15) 75%,
        rgba(0, 0, 0, 0) 100%);
}

.header::after {
    opacity: 0;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

/* ab dem ersten Scrollen: dunkel (Farbe des Seitenhintergrunds, sehr leichte Transparenz).
   Nur der Abstand nach unten ändert sich, das Logo bleibt an derselben Stelle. */
.header.is-scrolled {
    padding-bottom: 1.2rem;
    background-color: rgba(14, 14, 18, 0.92);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.header.is-scrolled::before {
    opacity: 0;
}

.header.is-scrolled::after {
    opacity: 1;
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-box {
    text-decoration: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    margin-left: var(--content-indent);
}

.logo-word {
    font-family: var(--font-montserrat);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    display: inline-flex;
    align-items: baseline;
}

.logo-script {
    font-family: var(--font-script-logo);
    font-size: 2.7rem;
    font-weight: 400;
    color: #ffffff;
    line-height: 0;
    margin-right: 2px;
    display: inline-block;
    transform: translateY(3px);
    filter: drop-shadow(0px 0px 8px rgba(255, 255, 255, 0.45));
}

.logo-box:hover .logo-word {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

.header nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
}

/* Hover/Aktiv per Unterstrich statt Schriftdicke -> Menü springt nicht mehr */
.nav-link {
    position: relative;
    text-decoration: none;
    color: var(--text-white);
    font-size: 1rem;
    font-weight: 500;
    padding: 4px 0;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: #ffffff;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.nav-contact-item {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-contact-subwrap {
    display: flex;
    align-items: center;
}

.nav-instagram-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: var(--text-white);
    transition: var(--transition-fast);
}

.nav-instagram-icon svg {
    width: 100%;
    height: 100%;
}

.nav-instagram-icon:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-white);
    cursor: pointer;
    padding: 0;
}

.menu-toggle svg {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

/* ==========================================================================
   4. TEXT, BUTTONS, KARTEN
   ========================================================================== */
.badge-custom {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.85) 85%);
    border: 2px solid #000000;
    border-radius: var(--radius-btn);
    color: var(--text-white);
    font-size: 0.95rem;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
    margin-bottom: 1.5rem;
}

.heading-lg {
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.heading-md {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1rem;
}

.subtext {
    color: var(--text-white);
    font-size: 1.1rem;
    opacity: 0.95;
}

.btn-group {
    display: flex;
    justify-content: flex-start;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: var(--radius-btn);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    font-family: var(--font-montserrat);
}

.btn-primary {
    background: #ffffff;
    color: #0e0e12;
}

.btn-primary:hover {
    transform: translateY(-3px);
    background: #e2e2e2;
}

.btn-secondary-centered {
    background: radial-gradient(circle, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.85) 85%);
    color: var(--text-white);
    border: 1.5px solid #000000;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    padding: 10px 28px;
    border-radius: var(--radius-btn);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.btn-secondary-centered:hover {
    transform: translateY(-3px);
    background: radial-gradient(circle, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.95) 85%);
}

.card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.2rem;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: var(--transition-smooth);
}

.card:hover {
    transform: translateY(-6px);
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.25);
}

.contact-icon-svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.footer {
    margin-top: 6rem;
    background: var(--bg-dark-gray);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-inner,
.footer-bottom-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-inner {
    padding-top: 3.5rem;
    padding-bottom: 3rem;
}

.footer-cols {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem 6rem;
}

.footer-title {
    margin-bottom: 1.1rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.55;
}

.footer-col {
    text-align: left;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
}

.footer-col a {
    color: var(--text-white);
    text-decoration: none;
    opacity: 0.85;
    transition: var(--transition-fast);
}

.footer-col a:hover {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem 2.5rem;
    padding-top: 1.6rem;
    padding-bottom: 1.6rem;
    font-size: 0.95rem;
}

.footer-copy {
    opacity: 0.7;
}

#angebote {
    scroll-margin-top: 110px;
}

/* ==========================================================================
   5. STARTSEITE
   ========================================================================== */
.home-main {
    margin-top: 0;
}

.hero {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding-top: 120px;
    padding-bottom: 5rem;
}

.hero-content {
    max-width: 700px;
    margin-left: var(--content-indent);
    text-align: left;
}

.section {
    margin-top: 6rem;
}

.section-head {
    text-align: left;
    margin: 0 0 3rem var(--content-indent);
}

/* kleine Beschriftung über Titeln: • 01 Angebote */
.eyebrow {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.8;
}

.eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ffffff;
    flex-shrink: 0;
}

/* Anfangsbuchstabe in Schreibschrift wie das S/M im Logo */
.script-initial {
    font-family: var(--font-script-logo);
    font-weight: 400;
    font-size: 1.4em;
    line-height: 0;
    margin: 0 0.12em 0 0.1em;
    display: inline-block;
    transform: translateY(0.05em);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.45);
}

/* Titel, die in zwei Zeilen umbrechen können: mehr Zeilenabstand, damit sich die Schwünge
   der Schreibschrift-Buchstaben (z. B. V über F) nicht überschneiden */
.title-wrap {
    line-height: 1.4;
}

/* Wort mit Schreibschrift-Buchstabe nie auseinanderreissen (z. B. "F / otografie") */
.nowrap {
    white-space: nowrap;
}

/* erster Buchstabe bündig mit dem Text darüber */
.heading-lg > .nowrap:first-child > .script-initial:first-child,
.project-name a > .nowrap:first-child > .script-initial:first-child {
    margin-left: 0;
}

/* Platz über Titeln mit Schreibschrift-Buchstabe, damit die Beschriftung darüber frei bleibt */
.heading-script {
    margin-top: 0.35em;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 0 0 var(--content-indent);
}

.offer-card {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.offer-card .heading-md {
    font-size: 1.8rem;
}

.offer-text {
    flex: 1;
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.6;
}

.offer-btn {
    width: 100%;
    max-width: 300px;
}

#kontakt {
    margin-top: 8rem;
    padding-top: 4rem;
    scroll-margin-top: 90px;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) min(42%, 490px);
    gap: 3rem;
    align-items: center;
    margin-left: var(--content-indent);
}

.contact-text .section-head {
    margin: 0 0 2rem 0;
}

/* quadratisches Bild rechts, in der Höhe mittig zum Text */
.contact-image {
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    overflow: hidden;
    background: #000000;
}

.contact-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-card {
    width: 100%;
    max-width: 380px;
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ==========================================================================
   6. UNTERSEITEN (Projekte, Detailseite)
   ========================================================================== */
.detail-actions {
    text-align: left;
    margin: 4rem 0 0 var(--content-indent);
}

/* Projektkarte (Hochformat, für spätere Verwendung) */
.project-card-custom {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    border-radius: 18px;
    border: 2px solid #000000;
    overflow: hidden;
    width: 100%;
    max-width: 240px;
    aspect-ratio: 3 / 4;
    margin: 0 auto;
    background: linear-gradient(to bottom, rgba(14, 14, 18, 0.1) 0%, rgba(14, 14, 18, 0.85) 100%),
                var(--hero-image) no-repeat center top / cover;
    background-color: #0e0e12;
    box-shadow: inset 0 0 25px #0e0e12;
    transition: var(--transition-smooth);
    padding: 1.2rem;
}

.project-card-custom:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: inset 0 0 15px #0e0e12, 0 10px 25px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   6b. PROJEKTE: Bildwechsel (Slideshow)
   ========================================================================== */
.projects-page {
    padding-top: 2rem;
}

.projects-grid {
    --proj-gap: 2.5rem;
    /* so viel Platz hatte das 2-spaltige Raster: Karten behalten genau diese Grösse */
    --proj-avail: calc(min(100vw, var(--container-width)) - 2 * var(--page-pad) - var(--content-indent));
    --proj-w: calc((min(1100px, var(--proj-avail)) - var(--proj-gap)) / 2);
    /* Scrollbereich reicht bis zum rechten Fensterrand, damit die nächste Karte angeschnitten sichtbar ist */
    --proj-bleed: calc(max(0px, (100vw - var(--container-width)) / 2) + var(--page-pad));

    display: flex;
    align-items: flex-start;
    gap: var(--proj-gap);
    margin: 0 calc(-1 * var(--proj-bleed)) 0 var(--content-indent);
    padding: 0.5rem var(--proj-bleed) 2rem 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
}

.project {
    display: flex;
    flex-direction: column;
    flex: 0 0 var(--proj-w);
    min-width: 0;
    gap: 1.2rem;
    scroll-snap-align: start;
}

.slideshow {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 24px;
    border: 2px solid #000000;
    overflow: hidden;
    background: #000000;
    transition: var(--transition-smooth);
}

.slideshow:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

/* leichter Verlauf unten, damit die Punkte gut sichtbar sind */
.slideshow::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 25%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
    pointer-events: none;
}

.slides {
    position: absolute;
    inset: 0;
    display: block;
}

.slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.9s ease;
}

.slide.active {
    opacity: 1;
}

.dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18px;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.dot {
    position: relative;
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: var(--transition-smooth);
}

/* grössere Klickfläche */
.dot::before {
    content: "";
    position: absolute;
    inset: -8px;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.dot.active {
    width: 28px;
    background: #ffffff;
}

.dot:focus-visible,
.slides:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

.project-name {
    line-height: 1.3;
    text-align: left;
    font-size: 1.5rem;
    font-weight: 600;
}

.project-name a {
    color: var(--text-white);
    text-decoration: none;
}

/* ==========================================================================
   6c. DROPDOWN "Projekte" in der Navigation
   ========================================================================== */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    min-width: 150px;
    margin-top: 0.7rem;
    padding: 0.5rem;
    list-style: none;
    background: rgba(14, 14, 18, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(6px);
    transition: var(--transition-fast);
}

/* unsichtbare Brücke, damit das Menü beim Hinunterfahren mit der Maus nicht verschwindet */
.dropdown-menu::before {
    content: "";
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 16px;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-link {
    display: block;
    padding: 0.55rem 1rem;
    color: var(--text-white);
    text-decoration: none;
    font-weight: 500;
    border-radius: 10px;
    white-space: nowrap;
    transition: var(--transition-fast);
}

.dropdown-link:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* ==========================================================================
   6d. PROJEKTSEITEN (Moon, Sunset): Galerie in Reihen, Bilder ungeschnitten
   ========================================================================== */
.gallery-page {
    padding-top: 2rem;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-left: var(--content-indent);
}

/* --r = Seitenverhältnis (Breite/Höhe): so haben alle Bilder einer Reihe dieselbe Höhe */
.gallery-item {
    flex: calc(var(--r) * 100) 1 calc(var(--r) * 240px);
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #000000;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 1000px) {
    .gallery {
        flex-direction: column;
    }

    .gallery-item {
        flex: none;
        width: 100%;
    }
}

/* ==========================================================================
   6e. GALERIE: Bilder in Reihen (ungleich hoch), eckig, Klick = gross
   ========================================================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.gallery-main {
    padding-top: 1rem;
}

.gallery-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-left: var(--content-indent);
}

.gallery-row {
    display: flex;
    gap: 10px;
}

/* --r = Seitenverhältnis: Breite ~ Verhältnis, dadurch haben alle Bilder einer Reihe dieselbe Höhe */
.gallery-link {
    display: block;
    flex: var(--r) 1 0%;
    min-width: 0;
    overflow: hidden;
    background: #000000;
    border-radius: 0;
    cursor: zoom-in;
}

.gallery-link img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

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

/* Grossansicht */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 5rem;
    background: rgba(8, 8, 10, 0.94);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.lightbox[hidden] {
    display: none;
}

.lightbox-img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0 0 4px 0;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-family: var(--font-montserrat);
    font-size: 1.9rem;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition-fast);
}

.lightbox-close:hover,
.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.22);
}

.lightbox-close {
    top: 1.2rem;
    right: 1.2rem;
}

.lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev {
    left: 1.2rem;
}

.lightbox-next {
    right: 1.2rem;
}

body.lightbox-open {
    overflow: hidden;
}

/* ==========================================================================
   6f. LADEBILDSCHIRM (nur Startseite): FCA-Bilder gestapelt -> Logo -> Seite
   ========================================================================== */
html.intro-active,
html.intro-active body {
    overflow: hidden;
}

html.intro-skipped .intro {
    display: none;
}

.intro {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark-gray);
    cursor: pointer;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.intro.is-done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Bildstapel: eckig, mit hellem Rahmen */
.intro-stack {
    --h: min(54vh, 80vw, 500px);
    position: relative;
    width: calc(var(--h) * 0.97);
    height: var(--h);
}

.intro-img {
    position: absolute;
    display: block;
    object-fit: cover;
    border: 10px solid #f4f4f2;
    border-radius: 0;
    background: #f4f4f2;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    opacity: 0;
}

.intro-img-a {
    left: 0;
    top: 0;
    width: calc(var(--h) * 0.667);
    height: var(--h);
    transform: rotate(-3deg);
}

.intro-img-b {
    right: 0;
    bottom: calc(var(--h) * -0.06);
    width: calc(var(--h) * 0.6);
    height: calc(var(--h) * 0.6);
    transform: rotate(4deg);
}

/* Logo-Text wie im Header, nur grösser */
.intro-logo {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    opacity: 0;
    pointer-events: none;
}

.intro-logo .logo-word {
    font-size: clamp(1.6rem, 4.6vw, 3rem);
}

.intro-logo .logo-script {
    font-size: 2.35em;
    transform: translateY(0.08em);
}

.intro-skip {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.4rem 0.8rem;
    border: none;
    background: none;
    color: var(--text-white);
    font-family: var(--font-montserrat);
    font-size: 0.9rem;
    opacity: 0.5;
    cursor: pointer;
    transition: var(--transition-fast);
}

.intro-skip:hover {
    opacity: 1;
}

/* Ablauf (Sekunden): Bild 1 ab 0,15 - Bild 2 ab 0,7 - Bilder raus ab 2,0 - Logo 2,6 bis 4,4 */
.intro.is-playing .intro-img-a {
    animation: introA 2.5s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.intro.is-playing .intro-img-b {
    animation: introB 2.5s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.intro.is-playing .intro-logo {
    animation: introLogo 1.8s 2.6s ease both;
}

@keyframes introA {
    0%, 6%  { opacity: 0; transform: translateY(26px) scale(1.06) rotate(-3deg); }
    30%     { opacity: 1; transform: translateY(0) scale(1) rotate(-3deg); }
    80%     { opacity: 1; transform: translateY(0) scale(1) rotate(-3deg); }
    100%    { opacity: 0; transform: translateY(-14px) scale(0.97) rotate(-3deg); }
}

@keyframes introB {
    0%, 28% { opacity: 0; transform: translate(40px, -60px) scale(1.08) rotate(10deg); }
    52%     { opacity: 1; transform: translate(0, 0) scale(1) rotate(4deg); }
    80%     { opacity: 1; transform: translate(0, 0) scale(1) rotate(4deg); }
    100%    { opacity: 0; transform: translate(0, -14px) scale(0.97) rotate(4deg); }
}

@keyframes introLogo {
    0%   { opacity: 0; transform: translateY(12px); letter-spacing: 0.08em; }
    33%  { opacity: 1; transform: translateY(0); letter-spacing: 0; }
    72%  { opacity: 1; transform: translateY(0); letter-spacing: 0; }
    100% { opacity: 0; transform: translateY(-8px); letter-spacing: 0; }
}

/* ==========================================================================
   7. TABLET & HANDY (<= 900px)
   ========================================================================== */
@media (max-width: 900px) {
    :root {
        --page-pad: 1.2rem;
    }

    .header {
        padding: 1.3rem 0 2rem 0;
    }

    .nav-container {
        padding: 0 1.2rem;
        position: relative;
    }

    .logo-box {
        position: relative;
        z-index: 1002;
        transform: scale(0.9);
        transform-origin: left center;
    }

    .menu-toggle {
        display: block;
        position: relative;
        z-index: 1002;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background: #0e0e12;
        flex-direction: column;
        padding: 5rem 1.5rem 2rem 1.5rem;
        gap: 1.5rem;
        transform: translateY(-150%);
        transition: var(--transition-smooth);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 1001;
    }

    .nav-menu.mobile-active {
        transform: translateY(0);
    }

    .nav-contact-item {
        flex-direction: column;
        gap: 0;
    }

    .nav-contact-subwrap {
        display: none;
    }

    main {
        padding: 0 1.2rem;
    }

    .footer-inner,
    .footer-bottom-inner {
        padding-left: 1.2rem;
        padding-right: 1.2rem;
    }

    .footer-cols {
        gap: 2.5rem 3rem;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact-image {
        width: 100%;
        max-width: 480px;
    }

    .hero {
        padding-bottom: 3.5rem;
    }

    /* Dropdown im mobilen Menü: Unterpunkte direkt sichtbar */
    .nav-dropdown {
        display: flex;
        flex-direction: column;
    }

    .dropdown-menu {
        position: static;
        min-width: 0;
        margin-top: 0.5rem;
        padding: 0 0 0 1rem;
        background: none;
        border: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .dropdown-menu::before {
        display: none;
    }

    .dropdown-link {
        padding: 0.4rem 0;
        opacity: 0.85;
    }

    .dropdown-link:hover {
        background: none;
    }
}

@media (max-width: 700px) {
    .gallery-row {
        flex-direction: column;
    }

    .gallery-link {
        flex: none;
    }

    .lightbox {
        padding: 4rem 0.8rem;
    }

    .lightbox-nav {
        top: auto;
        bottom: 1rem;
        transform: none;
    }

    .offers-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .projects-grid {
        --proj-gap: 1.2rem;
        --proj-w: calc(100vw - 6rem);
    }
}

/* ==========================================================================
   PROJEKTE-SEITE: alle Projekte nebeneinander, ohne seitliches Scrollen
   (die Startseite behält die scrollbare Reihe)
   ========================================================================== */
.projects-page .projects-grid {
    --proj-gap: 2rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--proj-gap);
    align-items: start;
    margin: 0 0 0 var(--content-indent);
    padding: 0.5rem 0 2rem 0;
    overflow: visible;
    scroll-snap-type: none;
}

.projects-page .project {
    flex: none;
    min-width: 0;
}

.projects-page .project-name {
    font-size: 1.3rem;
}

/* Tablet: etwas weniger Abstand */
@media (max-width: 900px) {
    .projects-page .projects-grid {
        --proj-gap: 1.2rem;
        margin-left: 0;
    }
}

/* Handy: Projekte untereinander statt seitlich scrollen */
@media (max-width: 700px) {
    .projects-page .projects-grid {
        grid-template-columns: 1fr;
        --proj-gap: 2rem;
    }
}

/* ==========================================================================
   BILDER DER PROJEKTE: eckiger Rahmen, Bild füllt das Quadrat
   ========================================================================== */
.slideshow {
    border-radius: 0;
}

.slide {
    object-fit: cover;
    object-position: center;
}

/* Hochformat-Bild: Ausschnitt so, dass Gesicht und Trikot sichtbar bleiben */
.slide[src*="B-Cup-30"] {
    object-position: center 55%;
}

.gallery-item {
    border-radius: 0;
}

/* ==========================================================================
   ÜBER MICH
   ========================================================================== */
/* Kopfbereich wie die Startseite: Bild mit Verlauf nach unten, Titel darüber */
.about-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.about-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(to bottom, rgba(14, 14, 18, 0.02) 0%, rgba(14, 14, 18, 0.1) 55%, rgba(14, 14, 18, 0.9) 88%, #0e0e12 100%),
        linear-gradient(to right, rgba(14, 14, 18, 0.7) 0%, rgba(14, 14, 18, 0.05) 55%, rgba(14, 14, 18, 0.4) 100%),
        url('Images/ueber-mich-hero.webp');
    background-repeat: no-repeat;
    background-size: 100% 100%, 100% 100%, cover;
    background-position: center, center, center 46%;
}

.about-hero-inner {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 120px 2rem 5rem; /* wie .hero auf der Startseite */
}

.about-hero-content {
    max-width: 700px;
    margin-left: var(--content-indent);
}

.about-page {
    margin-top: 1rem;
    padding-top: 0;
}

.about-layout {
    grid-template-columns: minmax(0, 1fr) min(38%, 460px);
    gap: 4rem;
    align-items: center; /* Bild steht in der Höhe mittig zum Text */
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    max-width: 640px;
}

.about-lead {
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    font-weight: 600;
    line-height: 1.35;
}

/* Kurzfakten und Equipment: Kästchen in einer Zeile unter Text und Bild */
.about-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1rem;
    margin: 3rem 0 0 var(--content-indent);
}

.about-box {
    padding: 1.2rem 1.3rem;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
}

.about-box dt {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 0.35rem;
}

.about-box dd {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.4;
}

/* Bild: quadratisch, in der Höhe mittig zum Text */
.about-image {
    aspect-ratio: 1 / 1;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.about-image img {
    object-position: center 70%;
}

.about-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem;
    max-width: 1100px;
    margin: 5rem 0 0 var(--content-indent);
}

.about-facts .heading-md {
    font-size: 1.5rem;
}

.about-facts .subtext {
    font-size: 1rem;
}

@media (max-width: 900px) {
    .about-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-hero-inner {
        padding-bottom: 3.5rem;
    }

    .about-boxes,
    .about-facts {
        margin-left: 0;
        gap: 1.2rem;
    }
}

@media (max-width: 700px) {
    .about-facts {
        grid-template-columns: 1fr;
    }
}
