@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  src: url('./fonts/montserrat-v30-cyrillic_cyrillic-ext_latin_latin-ext_vietnamese-regular.woff2') format('woff2');
  font-display: swap;
}


* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  font-family: 'Montserrat';
}

html, body {
  height: 100%;  
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.container{
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}

body {
  font-family: 'math';
  background:radial-gradient(circle at center, #ADD8E6 0%, #f1f1f1 40%, #FF5722 100%);
  color: #fff;
  line-height: 1.6;
}

main{
    flex: 1;
}





nav {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 2rem;
  background-color: rgba(0, 0, 0, 0.5);
  position: sticky;
  top: 0;
  z-index: 1000;
  flex-wrap: nowrap;
  width: 100%;
}

nav > *{
  max-width: 1220px;
  width: 100%;
  padding: 0 20px;
}

nav img {
  height: 100px;
}

nav img:hover{
  background-color: transparent;
}


nav a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  transition: background 0.3s;
  padding: 8px 16px;
  border-radius: 8px;
}

nav a:hover {
  background-color: #0055A5;
}

/* Header */
header{
    position: relative;
    display: flex;
    text-align: center;
    padding: 8rem 1rem 6rem;
    background: url('img/IMG-20250613-WA0050.jpg') center center/cover no-repeat;
    color: #fff;
    width: 100%;
}

header > *{
  max-width: 100%;
  padding: o 20px;
  position: relative;
  z-index: 1;
}
header::before{
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}
header .container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;


}

header {
  z-index: 1;
  position: relative;
  width: 100%;
}

header h1 {
  font-size: 3.2rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  z-index: 1;
  position: relative;
  color: antiquewhite;
}

header p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  z-index: 1;
  position: relative;
}

.cta-button {
  background-color: #0055A5;
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 0.75rem;
  font-size: 1rem;
  transition: transform .25s, background .25s;
  position: relative;
  z-index: 1;
}

.cta-button:hover {
  
  transform: translate(-3px);
}

/* Features (drei Sections nebeneinander) */
.features {
  max-width: 100%;
  margin: 80px auto;
  padding: 4 1rem;
  padding-bottom: 140px;
  padding: 40px;
}

.feature h2 {
  margin-bottom: 2rem;
  text-align: center;
  transition: transform 0.3s, box-shadow .3s;
  color: black;
  font-size: x-large;
  padding-top: 25px;
}

.project-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 5rem;
    padding-bottom: 40px;
    padding-top: 40px;

}
.feature{
    background: #1c1c1c;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    color: #fff;
}
.feature:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.8);
}




.feature img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.feature figcaption {
  font-size: 0.9rem;
  color: #ccc;
  margin: 0.5rem 1rem;
}



.feature p {
  padding: 0 1rem;
  margin-bottom: 1.5rem;
  color: black;
}

.feature .cta-button {
  margin-bottom: 1rem;
    margin-bottom: 1rem;
    margin-inline: auto;
    background-color: darksalmon;
    text-decoration: none;
    color: black;

}

.feature {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.visible{
  opacity: 1;
  transform: translateY(0);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  padding: 4rem 1rem;
  overflow: hidden;
  padding-bottom: 40px;
  border-radius: 1rem;
  background: #e9e3e0;
}

.why-us {
  background: #e9e3e0;
  padding: 4rem 1rem;
  overflow: hidden;              
  padding-bottom: 60px;
}

.why-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;


  transform: translateX(-100%);
  opacity: 0;
  transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}

.why-us.visible .why-content {
  transform: translateX(0);
  opacity: 1;
}


.why-text { flex:1 1 300px; }
.why-text h2 { color: black;; margin-bottom:1rem; font-size:2.5rem; }
.why-text p { color: black; line-height:1.6; }
.why-image { flex:1 1 300px; }
.why-image img { width:100%; border-radius:1rem; }


.statistik {
  background: linear-gradient(90deg, #ff7043, #ffab91);
  color: white;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end; 
  gap: 2rem;
}

.statistik h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

#counter {
  font-size: 3rem;
  color: #fffbe6;
  display: inline-block;
}



.statistik-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  animation: fadeIn 1s ease-out;
  color: white;
}

.vergleichstext {
  margin-top: 1rem;
  font-style: italic;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.statistik.visible .vergleichstext {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}


footer {
  background: #19191a;
  color: #fff;
  font-size: 0.9rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 2rem auto 1rem;
  padding: 0 1rem;
}

.footer-col h3 {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.footer-col a {
  color: #fff;
  text-decoration: none;
}


.footer-col ul li + li {
  margin-top: 0.5rem;
}

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

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.3);
  padding: 1rem;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

h1 {
  animation: fadeInUp 1s ease-out;
}


.statistik {
  background: linear-gradient(90deg, #ff7043, #ffab91);
  color: white;
  text-align: center;
  padding: 6rem 1rem;
  font-size: 2rem;
  font-weight: bold;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-top: 4rem;
}

.vergleichstext {
  margin-top: 1rem;
  font-style: italic;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.statistik.visible .vergleichstext {
  opacity: 1;
  transform: translateY(0);
}



.statistik h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.statistik p {
  font-size: 1.5rem;
  margin-top: 1rem;
}

#counter {
  font-size: 3rem;
  color: #fffbe6;
  display: inline-block;
}

.no-hover {
  background-color: transparent;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.no-hover:hover {
   background-color: transparent; 
  transform: translateY(-2px);  
}


.cta-button {
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 0.75rem;
  font-size: 1rem;
  transition: transform 0.25s, background 0.25s;
}

.cta-button:hover {
  transform: translate(-3px);
}




.nav-links {
  display: none;
  flex-direction: column;
  width: 100%;
  margin-top: 1rem;
}


.burger {
  display: block;
  margin-left: auto;
}




@media (min-width: 769px) {
  .nav-links {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    width: auto;
    margin: 0;
  }

  .burger{
    display: none;
  }
}



@media (max-width: 1024px) {
  
  header {
    padding: 5rem 1rem 4rem;
    background-position: center;
  }

  header h1 {
    font-size: 2.2rem;
  }

  header p {
    font-size: 1rem;
  }

  .cta-button {
    font-size: 0.95rem;
    padding: 0.7rem 1.5rem;
  }

  .features {
    padding: 2rem 1rem;
  }

  .project-grid {
    gap: 2rem;
  }

  .why-content {
    flex-direction: column;
  }

  .why-text h2 {
    font-size: 2rem;
    text-align: center;
  }

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

  .statistik h2 {
    font-size: 2rem;
  }

  .statistik p {
    font-size: 1.2rem;
  }
}

@media (max-width: 600px) {
  nav {
    padding: 1rem;
  }

  nav ul {
    font-size: 16px;
    gap: 8px;
  }

  header h1 {
    font-size: 1.8rem;
  }

  header p {
    font-size: 0.95rem;
  }

  .cta-button {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
  }

  .feature h2 {
    font-size: 1.2rem;
  }

  .why-text h2 {
    font-size: 1.6rem;
  }

  .statistik h2 {
    font-size: 1.6rem;
  }

  .statistik p {
    font-size: 1rem;
  }
}





.nav-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}


.nav-brand a img {
  height: 70px;
}


.burger {
  font-size: 2rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  display: none;
}


.nav-links {
  gap: 1.5rem;
  list-style: none;
  margin-left: auto;
  white-space: nowrap;
  flex-wrap: nowrap;
}

/* Navigation: KEIN Hover */
.nav-links li a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  pointer-events: auto;
  background-color: transparent;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.nav-links li a:hover {
  background-color: transparent;
  transform: translateY(-2px);
}

.nav-brand a {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.nav-brand a:hover {
  transform: translateY(-2px);
}

.nav-links li {
  transition: transform 0.2s ease;
}
.nav-links li:hover {
  transform: translateY(-2px);
}


@media (max-width: 768px) {
  .burger {
    display: block;
  }

  nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links li a {
    width: 100%;
  }
}


/* 1. Mobile-Default: Menü verstecken */
.nav-links {
  display: none;
  flex-direction: column;
  width: 100%;
  margin-top: 1rem;
}

/* 2. Wenn .active da ist: zeigen */
.nav-links.active {
  display: flex;
}

/* 3. Burger-Icon immer mobile anzeigen */
.burger {
  display: block;
  margin-left: auto;
}

/* 4. Ab 769px (Desktop) Menü permanent zeigen, Burger verstecken */
@media (min-width: 769px) {
  .nav-links {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    width: auto;
    margin: 0;
  }
  .burger {
    display: none;
  }
}

a:hover {
  color: #005999;
}

p{
  margin-bottom: 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  background: #fff;
  color: #000; /* Gute Lesbarkeit */
  border: 2px solid #000;
  padding: .5rem .75rem;
  text-decoration: none;
}

.visually-hidden{
  position:absolute!important; width:1px; height:1px;
  margin:-1px; padding:0; border:0; clip:rect(0 0 0 0);
  clip-path:inset(50%); overflow:hidden; white-space:nowrap;
}
