/* plus-jakarta-sans-300 - latin */
@font-face {
    font-display: swap;
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 300;
    src: url('fonts/plus-jakarta-sans-v12-latin-300.woff2') format('woff2');
}
/* plus-jakarta-sans-regular - latin */
@font-face {
    font-display: swap;
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/plus-jakarta-sans-v12-latin-regular.woff2') format('woff2');
}
/* plus-jakarta-sans-500 - latin */
@font-face {
    font-display: swap;
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 500;
    src: url('fonts/plus-jakarta-sans-v12-latin-500.woff2') format('woff2');
}
/* plus-jakarta-sans-700 - latin */
@font-face {
    font-display: swap;
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 700;
    src: url('fonts/plus-jakarta-sans-v12-latin-700.woff2') format('woff2');
}

:root {
    /* Der Hex-Wert für direkte Zuweisungen */
    --bs-primary: #ccb87c;

    --bs-primary-rgb: 204, 184, 124;

    --bs-body-font-family: 'Plus Jakarta Sans', sans-serif;
}

html, body {
    overflow-x: clip;
    width: 100%;
    position: relative;
}

body {
    background-color: #fcfcfc;
    letter-spacing: -0.01em;
    padding-top: 85px; /* Schiebt den Inhalt unter der Fixed-Navbar hervor */
}

/* ====================================================
   NAVIGATION LINKS (Background Hover & Active)
   ==================================================== */

/* Grund-Design für alle Geräte */
.navbar-nav .nav-link {
    color: var(--text-dark, #212529);
    transition: all 0.3s ease;
    padding: 8px 16px !important; /* Sorgt für genug Platz für den Hintergrund */
    border-radius: 8px; /* Moderne, leicht abgerundete Ecken (Tipp: 50rem für ovale "Pill"-Form) */
    margin: 0 4px; /* Leicht separierte Buttons auf dem Desktop */
}

/* Active State (Aktuelle Seite) - Gilt für Mobile & Desktop */
.navbar-nav .nav-link.active {
    background-color: var(--bs-primary) !important;
    color: #ffffff !important; /* Weiße Schrift auf dem farbigen Hintergrund */
}

/* HOVER-EFFEKT: NUR FÜR DESKTOP (ab 992px) */
@media (min-width: 992px) {
    .navbar-nav .nav-link:hover {
        background-color: var(--bs-primary);
        color: #ffffff !important;
    }
}

/* --- FIXED NAVBAR PREMIUM LOOK --- */
.navbar.fixed-top {
    /* Leicht transparenter weißer Hintergrund */
    background-color: rgba(255, 255, 255, 0.9) !important;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);

    transition: background-color 0.3s ease;
}

/* FIX FÜR DAS MOBILE OFFCANVAS MENÜ (Verhindert das Ploppen) */
.navbar.fixed-top:has(.offcanvas.show),
.navbar.fixed-top:has(.offcanvas.showing),
.navbar.fixed-top:has(.offcanvas.hiding) {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background-color: #fff !important; /* Wird sofort komplett weiß */
}

/* --- MOBILE MENU TOGGLER (Rahmen beim Antippen entfernen) --- */
.navbar-toggler:focus,
.navbar-toggler:active {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* ====================================================
   BUTTONS & TABS (CI Anpassung & 8px Radius)
   ==================================================== */

/* 1. Portfolio Reiter (Häuser | Möbel) */
.nav-pills .nav-link {
    border-radius: 8px !important;
    color: var(--text-dark, #212529);
    border: 1px solid #e9ecef !important;
    transition: all 0.3s ease;
}

/* Hover-Effekt für inaktive Reiter */
.nav-pills .nav-link:hover {
    background-color: rgba(204, 184, 124, 0.1);
    color: var(--bs-primary);
    border-color: var(--bs-primary) !important;
}

/* Aktiver Reiter */
.nav-pills .nav-link.active {
    background-color: var(--bs-primary) !important;
    color: #ffffff !important; /* Weiße Schrift & Icons */
    border-color: var(--bs-primary) !important;
}

/* 2. Allgemeine Buttons (z.B. "Zurück", "Absenden") auf der gesamten Seite */
.btn {
    border-radius: 8px !important; /* Entfernt die stark runden "Pillen" überall */
}

/* Deine CI-Primärfarbe für Buttons festlegen */
.btn-primary {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: #ffffff !important;
}

.btn-primary:hover {
    background-color: #b8a368 !important; /* Leicht abgedunkeltes Gold für den Klick-Effekt */
    border-color: #b8a368 !important;
}



/* Modern Hover Cards */
.project-card {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    border: none;
    border-radius: 16px;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.project-card img {
    height: 400px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover img {
    transform: scale(1.03);
}

.tracking-wide {
    letter-spacing: 0.1em;
}

/* Hero Section */
.hero-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    border-radius: 24px;
    margin: 20px auto;
    max-width: calc(100% - 40px);
}

/* --- STICKY NAVBAR PREMIUM LOOK --- */
.navbar.sticky-top {
    /* Leicht transparenter weißer Hintergrund */
    background-color: rgba(255, 255, 255, 0.9) !important;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);

    /* Stellt sicher, dass die Navbar über allen Bildern und Texten liegt */
    z-index: 1030;

    /* Weicher Übergang beim Laden */
    transition: all 0.3s ease-in-out;
}

/* Logo Styling */
.navbar-logo {
    height: 40px; /* Definiert die sichtbare Höhe in der Navigation */
    width: auto;  /* Sorgt dafür, dass es nicht verzerrt wird */
    object-fit: contain; /* Sicherheit, falls das Seitenverhältnis mal abweicht */
    transition: opacity 0.3s ease;
}

.navbar-logo:hover {
    opacity: 0.75; /* Leichter, moderner Fade-Effekt beim Hovern */
}
.navbar-brand-footer{
    background: #fff;
}

/* Auf mobilen Geräten das Logo eventuell minimal kleiner machen */
@media (max-width: 991.98px) {
    .navbar-logo {
        height: 32px;
    }
}


/* ====================================================
   PREMIUM ANIMATIONS & PARALLAX
   ==================================================== */

/* 1. Sanftes Einblenden für Bilder (statt hartem Aufpoppen) */
.img-fade {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}
.img-fade.loaded {
    opacity: 1;
}

/* 2. Text fällt sanft von unten rein (Scroll Reveal) */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Verzögerungen, damit Textzeilen nacheinander reinfallen (Stagger-Effekt) */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* 3. Parallax Container (Verhindert Rausrutschen des Bildes) */
.parallax-wrapper {
    overflow: hidden;
    position: relative;
}

.parallax-bg {
    will-change: transform;
}

/* Ganze Blöcke weich einblenden (Fade In) */
.fade-in-block {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.fade-in-block.active {
    opacity: 1;
}

/* Text fällt von oben nach unten rein (Reveal Down) */
.reveal-down {
    opacity: 0;
    transform: translateY(-30px); /* Startet weiter oben (Minus-Wert) */
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.reveal-down.active {
    opacity: 1;
    transform: translateY(0);
}

/* Eine weitere Verzögerung für das 4. Element (Button) */
.delay-400 { transition-delay: 0.4s; }

/* --- REINWEISSER HERO-BUTTON --- */
.btn-white {
    background-color: #ffffff !important;
    border-color: #ffffff !important;
    color: var(--text-dark, #212529) !important;
    opacity: 1 !important; /* Garantiert null Transparenz */
}

.btn-white:hover {
    background-color: #f1f1f1 !important;
    border-color: #f1f1f1 !important;
}