/* =========================================
   Local Fonts
========================================= */
/* Regular (400) - Für normalen Fließtext */
@font-face {
    font-family: "Plus Jakarta Sans";
    font-style: normal;
    font-weight: 400;
    src:
        local(""),
        url("./fonts/plus-jakarta-sans-v8-latin-regular.woff2") format("woff2");
}

/* Medium (500) - Für Navigation und Formular-Labels */
@font-face {
    font-family: "Plus Jakarta Sans";
    font-style: normal;
    font-weight: 500;
    src:
        local(""),
        url("./fonts/plus-jakarta-sans-v8-latin-500.woff2") format("woff2");
}

/* Semi-Bold (600) - Für h2, h3 und Buttons */
@font-face {
    font-family: "Plus Jakarta Sans";
    font-style: normal;
    font-weight: 600;
    src:
        local(""),
        url("./fonts/plus-jakarta-sans-v8-latin-600.woff2") format("woff2");
}

/* Bold (700) - Für h1 und das Logo */
@font-face {
    font-family: "Plus Jakarta Sans";
    font-style: normal;
    font-weight: 700;
    src:
        local(""),
        url("./fonts/plus-jakarta-sans-v8-latin-700.woff2") format("woff2");
}

/* =========================================
   CSS Variables & Theming
========================================= */
:root {
    --bg-color: #0a0a0b;
    --text-color: #f3f4f6;
    --text-muted: #9ca3af;
    --accent-color: #d4af37;
    --accent-hover: #f1d16b;
    --whatsapp-green: #25d366;
    --whatsapp-hover: #1ebe5a;

    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);

    --font-main: "Plus Jakarta Sans", sans-serif;
    --container-width: 1200px;
    --nav-height: 80px;
    --section-pad: 100px 20px;
}

/* =========================================
   Reset & Base Styles
========================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* =========================================
   Typography
========================================= */
h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

.accent-text {
    color: var(--accent-color);
}
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

/* =========================================
   Utilities
========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: var(--section-pad);
}
.grid {
    display: grid;
    gap: 2rem;
}
.w-100 {
    width: 100%;
}

/* =========================================
   Advanced Background Layers (FIXED)
========================================= */
.bg-noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    /* FIX: Increased baseFrequency to 1.5 for fine-grain high-res look, lowered opacity */
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -2;
    /* FIX: Softer lines for a less aggressive, higher quality look */
    background-image:
        linear-gradient(
            to right,
            rgba(255, 255, 255, 0.015) 1px,
            transparent 1px
        ),
        linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0.015) 1px,
            transparent 1px
        );
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(
        ellipse at center,
        black 30%,
        transparent 80%
    );
}

.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -3;
    pointer-events: none;
    animation: floatGlow 20s infinite alternate ease-in-out;
}

.orb-1 {
    width: 700px;
    height: 700px;
    background: rgba(212, 175, 55, 0.12);
    top: -10%;
    left: -10%;
}
.orb-2 {
    width: 800px;
    height: 800px;
    background: rgba(0, 229, 255, 0.08);
    bottom: -15%;
    right: -10%;
    animation-delay: -7s;
}
.orb-3 {
    width: 600px;
    height: 600px;
    background: rgba(138, 43, 226, 0.06);
    top: 30%;
    left: 40%;
    animation-delay: -12s;
    animation-duration: 25s;
}

@keyframes floatGlow {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(60px, 90px) scale(1.15);
    }
}

/* =========================================
   Glass Elements & Levitating Panels (NEW)
========================================= */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
}

/* The new floating container for text blocks */
.glass-panel {
    background: rgba(
        15,
        15,
        18,
        0.35
    ); /* Slightly darker/opaque to stand out */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    transition:
        transform 0.3s ease,
        border-color 0.3s ease;
}

.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

/* =========================================
   Buttons
========================================= */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1.125rem;
    font-weight: 600;
    font-family: var(--font-main);
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
}
.btn-primary {
    background-color: var(--accent-color);
    color: #000;
}
.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}
.btn-whatsapp {
    background-color: var(--whatsapp-green);
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 1rem;
}
.btn-whatsapp:hover {
    background-color: var(--whatsapp-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

/* =========================================
   Navigation
========================================= */
.navbar {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: var(--container-width);
    height: var(--nav-height);
    z-index: 1000;
    border-radius: 999px;
    padding: 0 2rem;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.05em;
}
.nav-links {
    display: flex;
    gap: 2.5rem;
}
.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
}
.nav-link:hover {
    color: var(--accent-color);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}
.hamburger .bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

/* =========================================
   Hero Section
========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    padding-top: var(--nav-height);
}
.hero-content {
    max-width: 800px;
}
.hero p {
    margin-bottom: 2.5rem;
    font-size: clamp(1.125rem, 2vw, 1.35rem);
}

/* =========================================
   Services Section
========================================= */
.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.glass-card {
    padding: 2.5rem;
    transition:
        transform 0.3s ease,
        border-color 0.3s ease;
}
.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}
.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

/* =========================================
   Trust / About Section
========================================= */
.trust-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    /* Removed the harsh gradient from the parent section that caused the black line! */
}
.trust .subtitle {
    color: var(--accent-color);
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
}
.trust .lead-text {
    font-size: 1.5rem;
    color: var(--text-color);
    font-weight: 500;
    margin: 1.5rem 0;
}

/* =========================================
   Contact Section
========================================= */
.contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 4rem;
}
.info-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}
.info-link {
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    color: var(--text-color);
}
.info-link:hover {
    color: var(--accent-color);
}

.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: 1rem;
    transition:
        border-color 0.3s ease,
        background 0.3s ease;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.08);
}
.form-status {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
}
.form-success {
    color: var(--whatsapp-green);
}
.form-error {
    color: #ff4d4d;
}

/* =========================================
   Scroll Reveal Animations
========================================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.grid .reveal:nth-child(1) {
    transition-delay: 0s;
}
.grid .reveal:nth-child(2) {
    transition-delay: 0.15s;
}
.grid .reveal:nth-child(3) {
    transition-delay: 0.3s;
}

/* =========================================
   Black Glass Footer (NEW)
========================================= */
.glass-footer {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3rem 0;
    margin-top: 4rem; /* Adds breathing room before the footer */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-links {
    display: flex;
    gap: 1.5rem;
}
.footer-links a:hover {
    color: var(--accent-color);
}

/* =========================================
   Media Queries (Mobile)
========================================= */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .glass-panel {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-color);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
        border-radius: 16px;
        border: 1px solid var(--glass-border);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }
    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(10px);
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}
