/* ---------------------------------------------------------
   SETUP & VARIABLES
--------------------------------------------------------- */
::-webkit-scrollbar {
    display: none;
}

:root {
    --primär: #1e4f9e;
    --primär-h: #3069bf;
    --primär-sh: #71a1e9;
    --primär-d: #153a75;
    --text-d: #222222;
    --text-h: #f4f4f4;
    --text-gr: #666666;
    --weiß: #ffffff;
    --bg-h: #f5f5f7;
    
    --nav-height: 80px;
    /* Ultra-Soft Easing */
    --ease-soft: cubic-bezier(0.23, 1, 0.32, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-d);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--bg-h);
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

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

/* Button Styles */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
    z-index: 1;
}

.btn-primary {
    background: var(--primär);
    color: var(--weiß);
}

.btn-primary:hover {
    background: var(--primär-d);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(30, 79, 158, 0.3);
}

.btn-outline-white {
    border-color: var(--weiß);
    color: var(--weiß);
}

.btn-outline-white:hover {
    background: var(--weiß);
    color: var(--text-d);
}

/* ---------------------------------------------------------
   ANIMATION KLASSEN (Angepasst: Weicher & Länger)
--------------------------------------------------------- */

/* Container Reveal (Text-Boxen) */
.reveal-up {
    opacity: 0;
    transform: translateY(80px); /* Weiter unten starten */
    transition: all 1.2s var(--ease-soft);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* BILD EFFEKT: Startet weiter unten und komplett transparent */
.scale-reveal {
    opacity: 0;
    transform: scale(1.1) translateY(100px);
    transition: transform 1.8s var(--ease-soft), opacity 1.8s ease-out;
}
        
.scale-reveal.active {
    opacity: 1;
    transform: scale(1.0) translateY(0);
}

/* NAV BAR */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
    transition: background 0.4s, box-shadow 0.4s, padding 0.4s;
    background: transparent;
    color: var(--weiß);
}

/* NAV LOGO */
.logo-link {
    display: flex;
    align-items: center;
}

.logo-link img {
    height: 2.4rem;
    width: auto;
    transition: opacity 0.3s ease;
}

.logo-w {
    display: block;
}

.logo-s {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    } to {
        opacity: 1;
    }
}

/* NAV LINKS */
.nav-links {
    display: flex;
    gap: 2rem;
    height: 100%;
    align-items: center;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    position: relative;
    cursor: pointer;
    padding: 10px 0;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-contact {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-weight: 700;
}

/* NAV LINKS TRANFORM (UNTERSTRICH) */
.nav-link::after {
    content: ''; position: absolute; bottom: 20px; left: 0; width: 0; height: 2px;
    background: var(--primär-h);
    transition: 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

/* NAV DROPDOWN WRAPPER */
.nav-item-wrapper {
    position: static; 
    height: 100%;
    display: flex;
    align-items: center;
}

/* HOVER LOGIK */
.nav-item-wrapper:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* DROPDOWN */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(10, 65, 160, 0.2);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.1);
    border-radius: 0 !important;
    
    /* ANIMATION */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    
    /* LAYOUT */
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
    padding: 2rem 5%;
    z-index: 900;
}

/* Basis-Stil der Links */
.dropdown-menu a {
    color: var(--weiß);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    text-decoration: none;
    position: relative; 
    transition: color 0.3s; 
}

.dropdown-menu a:hover {
    color: var(--text-h);
}

/* HOVER PUNKT DER LINKS */
.dropdown-menu a::before {
    content: '► ';
    position: absolute;
    left: -15px; 
    opacity: 0;
    transform: translateX(5px); 
    transition: all 0.3s ease;
    color: var(--primär-sh);
}

/* LINK PUNKT EIN-/AUSBLENDEN */
.dropdown-menu a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* NAV BAR SCROLL ÄNDERUNGEN */
nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    color: var(--text-d);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    height: 70px;
}

nav.scrolled .logo-w {
    display: none;
}

nav.scrolled .logo-s {
    display: block;
    animation: fadeIn 0.5s; 
}

nav:not(.scrolled) .nav-link:hover {
    color: rgb(255, 255, 255);
}

nav.scrolled .nav-link:hover {
    color: var(--primär);
}

/* DROPDOWN HINTERGRUND SCROLLED */
nav.scrolled .dropdown-menu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: var(--text-d);
    border-radius: 0 0 50px 50px !important;
/*     box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-top: 1px solid rgba(0,0,0,0.05); */
}

nav.scrolled .dropdown-menu a {
    color: var(--text-d);
    text-shadow: none;
}

nav.scrolled .dropdown-menu a:hover {
    color: var(--primär);
}

nav.scrolled .dropdown-menu a::before {
    color: var(--primär);
}

/* ---------------------------------------------------------
   FOOTER CTA
--------------------------------------------------------- */
.footer-cta {
    background: var(--text-d);
    color: var(--weiß);
    text-align: center;
    padding: 120px 5%;
    position: relative;
    overflow: hidden;
}

.footer-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 50%;
    height: 200%;
    background: radial-gradient(circle, rgba(30, 79, 158, 0.2) 0%, transparent 70%);
    transform: rotate(30deg);
    pointer-events: none;
}

.footer-cta h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

/* Footer Hauptcontainer */
footer {
    background-color: var(--text-d);
    color: var(--weiß);
    padding: 60px 20px;
}

/* Footer Inhaltscontainer */
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

/* Footer Spalten */
.footer-col h3 {
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 500;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

/* Footer Links */
.footer-col ul li a {
    color: var(--text-gr);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-col ul a {
    color: var(--text-gr);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--weiß);
}

.footer-col ul a:hover {
    color: var(--weiß);
}

/* Copyright-Bereich */
.copyright {
    text-align: center;
    padding-top: 40px;
    color: var(--text-gr);
    font-size: 12px;
}

/* Responsive */
@media (max-width: 900px) {
    .nav-links, .nav-contact span {
        display: none;
    }
}