/* ===== CSS RESET ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* ===== SYSTEM FONTS ===== */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* ===== LAYOUT ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    hyphens: auto;
}

.container p {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 1.6em;
}

#contact .container p {
        text-wrap: balance;
    }

/* main #mission .container, main #projects .container, main #contact .container {
    max-width: 1024px;
} */

h1, h2, h3, 
.h-1, .h-2, .h-3 { 
  font-weight: 300;
  font-size: 2.8em;
  line-height: 1.1;
}

h2, 
.h-2{ 
  font-size: 2.4em;
}

h3, 
.h-3{ 
  font-size: 1.80em;
  font-weight: 400;
}


 

/* ===== HEADER & NAVIGATION ===== */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav {
    margin-left: auto;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}


.logo{display:flex;
    align-items: center;
    gap: 0.5rem;    
    text-transform: uppercase;
    font-size: 2em;
    font-weight: 700;
}
.logo img{max-width: 224px;
  margin-top: 7px;}


/* Hamburger-Icon */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #333;
    margin: 5px 0;
    transition: transform 0.3s, opacity 0.3s;
}

/* ===== HERO ===== */
/* .hero {
     background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://source.unsplash.com/random/1600x900/?ngo'); 
    background: radial-gradient(1889px circle at 89.40% 15.94%,  #f4f7d7,#1fa485 100%);

    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 8rem 1rem;
} 
*/
.hero {
  background-image: 
       radial-gradient(1889px circle at 89.40% 15.94%, #f4f7d7ca,#1fa485cd 100%),
    url('bg.webp');

  background-size: cover, cover, cover;
  background-position: center, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat;

  color: rgb(11, 11, 11);
  text-align: center;
  padding: 8rem 1rem;
}

/* .gradient-text {
  background: linear-gradient(to right, white, black);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
} */

.hero h2 {
 font-size: clamp(2rem, 5vw, 4rem);
  margin-bottom: 1rem;
}


.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background: #4CAF50;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.btn:hover {
    background: #3e8e41;
}

/* ===== SECTIONS ===== */
.section {
    padding: 4rem 0;
}

.bg-light {
    background: #f9f9f9;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.grid4-6 {
    display: grid;
    grid-template-columns: 40% auto;
    gap: 2rem;
    margin-top: 4rem;
    margin-bottom: 4rem;
}       

.card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.text-center {
    text-align: center;
}

/* ===== FOOTER ===== */
.footer {
    background: #333;
    color: rgb(168, 168, 168);
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
}

.footer a {
    color: rgb(168, 168, 168);
    text-decoration: underline;
}

.footer a:hover {
    text-decoration: none;
    background-color: white;
    color: #333;
}


/* ===== ANIMATIONEN ===== */
.fade-in {
    opacity: 0;
    transition: opacity 1s ease-in;
}

.slide-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.75s ease-out, transform 0.75s ease-out;
}

.from-left {
    transform: translateX(-50px);
}

.from-right {
    transform: translateX(50px);
}

.active {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

/* ===== MOBILE STYLES ===== */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        padding-top: 6rem;
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}