/* Grundlegende Stile */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-image: url('Hintergrund.png');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

html {
    scroll-behavior: smooth;
}

body, html {
    height: 100%;
    font-family: Arial, sans-serif;
}






/* Navbar Stile */
.navbar {
    background-color: #fff;
    color: #1d3565;
    transition: all 0.3s ease;
    padding: 1rem 2rem; /* Standard-Padding */
}

.navbar::after {
    content: '';
    display: block;
    height: 8px;
    background-color: #345e7d;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
}

.navbar .logo img {
    width: 350px;
    height: 88px;
    transition: all 0.3s ease;
  }

.sticky {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.2rem 1rem;
}

/* Logo Stile */
.logo {
    text-decoration: none;
    color: #1d3565;
    margin-left: -50px;
}

/* Navigation MenÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¼ Stile */
.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 2rem;
    position: relative; /* FÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¼r die Positionierung des Hover-Effekts */
}

.nav-link {
    text-decoration: none;
    color: #1d3565;
    font-size: 23px;
    padding: 5px 10px; /* FÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¼gt etwas Polsterung hinzu */
    transition: all 0.3s ease; /* FÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¼r einen sanften ÃƒÆ’Ã†â€™Ãƒâ€¦Ã¢â‚¬Å“bergang */
}

/* Hover-Effekt fÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¼r Navigationslinks */
.nav-link:hover::after {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border: 2px solid #1d3565;
    z-index: -1;
}

.navbar.scrolled {
    padding: 0rem 2rem; 
    height: 95px; /* Neue HÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¶he fÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¼r die Navbar beim Scrollen */
}

.navbar.scrolled .logo img {
    width: 350px; /* oder ein anderer kleinerer Wert */
    height: 85px;
}

.navbar.scrolled .nav-link {
    font-size: 1.4em; /* Verkleinert die SchriftgrÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¶ÃƒÆ’Ã†â€™Ãƒâ€¦Ã‚Â¸e */
}


/* Sprachauswahl Stile */
.language-switcher {
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 5px;
}

.language-switcher .nav-link {
    padding: 0 5px;
    position: relative;
}

.language-switcher .separator {
    color: #1d3565;
    margin: 0 5px;
}

/* Gemeinsamer Kasten fÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¼r DE und RU */
.language-switcher:hover::after {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border: 2px solid #1d3565;
    z-index: -1;
}

/* Unterstreichungs-Effekt fÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¼r einzelne Sprachoptionen */
.language-switcher .nav-link::before {
    content: '';
    position: absolute;
    width: 5;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #1d3565;
}

.language-switcher .nav-link:hover::before {
    width: 100%;
    left: 0;
}

/* Entfernen des individuellen Kastens fÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¼r DE und RU */
.language-switcher .nav-link:hover::after {
    content: none;
}




/* Hamburger MenÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¼ Stile */
.hamburger {
    display: none;
    cursor: pointer;
    width: 70px;
    height: 57px;
    position: relative;
}

.bar {
    display: block;
    width: 40px;
    height: 5px;
    margin: 8px auto;
    background-color: #1d3565;
    transition: all 0.3s ease-in-out;
}

.rechtstipps-containerK {
    background-color: #345e7d;
    color: white;
    padding: 30px 0;
    text-align: center;
    margin-top: 130px;
}

.rechtstipps-containerK h1 {
    margin: 0;
    font-size: 2.5em;
}

/* Grid-Container für die Rechtstipps */
.rechtstipps-grid{

    margin: 40px auto;
    padding: 25px;
  
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
  
    justify-items: start; /* Inhalt links */
    align-items: stretch;
  }
  
  /* Tablet: 2 Spalten */
  @media (max-width: 1058px){
    .rechtstipps-grid{
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  
  /* Mobil: 1 Spalte */
  @media (max-width: 768px){
    .rechtstipps-grid{
      grid-template-columns: 1fr;
    }
  }
  
  /* Das einzelne Kästchen */
  .rechtstipp-kaestchen{
    width: 100%;
    display: block;
  
    text-decoration: none;
    color: #345e7d;
  
    background-color: white;
    text-align: center;

  
    padding: 18px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
  }
  
  .rechtstipp-kaestchen:hover{
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.16);
  }
  
  .rechtstipp-kaestchen h3{
    font-size: 22px;
    margin-bottom: 12px;
    color: #345e7d;
  }
  
  .rechtstipp-kaestchen p{
    font-size: 1em;
    line-height: 1.5;
    color: #345e7d;
  }
  



  


    





  
  


  .footer-container {
    background-color: #345e7d;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    min-height: 70px;
    position: relative;
    z-index: 10000;
}

.teilen-box p {
    justify-content: center;
    text-align: center;
}

.footer-logo img {
    max-width: 150px;
    height: auto;
    flex-shrink: 0;
}

.footer-text {
    font-size: clamp(10px, 2vw, 12px);
    color: white;
    text-align: center;
}

.social-media-container {
    text-align: center;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icons a img {
    width: clamp(24px, 5vw, 40px);
    height: auto;
    transition: transform 0.3s ease;
    filter: invert(100%) brightness(200%);
}

.social-icons a:hover img {
    transform: scale(1.2);
}

.footer-links {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: clamp(0.8rem, 2vw, 1rem);
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Standard: Desktop bleibt wie gehabt */
.nav-menu {
    display: flex;
    list-style: none;
}

/* --- Mobile Anpassungen --- */
@media (max-width: 1058px) {
    .nav-menu {
        position: absolute;
        top: 97px; /* direkt unter der Navbar */
        left: 0;
        right: 0;
        background-color: #fff;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 20px 0;
        display: none; /* ausgeblendet standardmäßig */
        box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    }

    .nav-menu.active {
        display: flex; /* eingeblendet bei Klick */
    }

    .nav-item {
        margin: 0; /* Abstand zwischen den Links in Mobile */
    }

    .nav-link {
        font-size: 20px;
    }

    /* Hamburger sichtbar auf Mobile */
    .hamburger {
        display: block;
    }

    /* Animation Hamburger -> Kreuz */
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(13px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-13px) rotate(-45deg);
    }

    .navbar .logo img {
        width: 220px; /* vorher 350px */
        height: auto; /* sorgt dafür, dass das Seitenverhältnis bleibt */
        transition: all 0.3s ease;
    }

}





/* --- Mobile Anpassungen --- */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-logo img {
        max-width: 120px;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}

  
  

 


