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

body {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

html {
    scroll-behavior: smooth;
}

body, html {
    height: 100%;
    font-family: Arial, sans-serif;
}


/* Hintergrundbild-Container */
.background-container {
    position: relative;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.background-container img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}



/* 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;
}



/* Inhalt Stile */
.content {
    position: relative;
    z-index: 1;
}

/* Rechte Sidebar */
.sidebar {
    position: fixed;
    top: 120px; /* unterhalb der Navbar */
    right: 10px;
    width: 300px;
    background-image: url('sidebar.png');
    color: white;
    padding: 1rem;
    z-index: 999;
    height: 100%;
}

.sidebar h3 {
    font-size: 22px;
    text-align:left;
    margin-bottom: 25px;
    text-decoration: none;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}




  .sidebar ul li {
    color: white; /* Textfarbe */
    display: block;
    margin: 8px 0;
    padding-left: 1.4em;
    text-indent: -1.3em;
    font-size: 18px;
}

.sidebar ul li a {
    color: white; /* Linkfarbe */
    text-decoration: none; /* keine Unterstreichung */
    font-weight: normal;
}

.sidebar ul li:hover {
    /* Farbe beim Hover kann z.B. elfenbein/weißlicher Ton sein */
    color: #fff;
    text-decoration: none; /* auch beim Hover keine Unterstreichung */
    transition: transform 0.2s ease;
    transform: scale(1.05);
    position: relative;
    z-index: 10;
}

/* Falls du Links innerhalb der LI noch hast: */
.sidebar ul li:hover a {
    color: #fff;
    text-decoration: none;
}

  
/* Hauptpunkte */
.sidebar > ul > li {
    color: white;
    display: block;
    margin: 8px 0;
    padding-left: 1.4em;
    text-indent: -1.3em;
    font-size: 18px;
}

/* Unterpunkte */
.sidebar ul li.unterpunkt {
    font-size: 13px;       /* kleinere Schrift */
    margin-left: -20px;
    text-indent: 0;        /* kein negatives Einrücken */
    list-style-type: circle; /* Kreis-Bullet */
    color: #ddd;           /* optional: heller als Hauptpunkte */
}




/* Content-Bereich mit Platz rechts */
.content {
    margin-right: 350px; /* Platz für Sidebar */
    padding: 2rem;
    margin-top: 130px;
    color: #072d7b;
}

.content section {
    margin-bottom: 50px; /* nur für Demo → langer Scroll */
}

.beginning {
    margin-bottom: 30px;
}

.beginning h1 {
    font-size: 40px;
    margin-bottom: 20px;
}

.infos {
    margin-bottom: 20px;
    font-size: 20px;
}

.teaser {
    font-size: 20px;
    text-align: justify;
}

h2 {
    margin-bottom: 10px;
    font-size: 26px;
}

h3 {
    text-decoration: underline;
    margin-bottom: 10px;
    margin-top: 20px;
    font-size: 22px;
}

p {
    font-size: 20px;
    text-align: justify;
}

.normal {
    font-size: 20px;
    margin-left: 20px;
}

.autor {
    font-size: 17px;
    margin-top: -29px;
}


/* Kontaktieren-Box */
.kontaktieren {
    background: linear-gradient(135deg, #365c83, #27415e);
    color: white;
    padding: 40px 30px;
    text-align: center;
    justify-content: center;
    margin: 40px auto;
    max-width: 100%;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.kontaktieren p {
    font-size: 1.2em;
    margin-bottom: 25px;
    line-height: 1.6;
        text-align: center;
    justify-content: center;
}

/* Schöner Button */
.button {
    display: inline-block;
    background-color: white;
    color: #1d3565;
    padding: 15px 40px;
    text-decoration: none;
    font-size: clamp(16px, 4vw, 22px); /* passt sich automatisch an */
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.button:hover {
    background-color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.internallink{
    text-decoration: none;
    color: blue;
}



.internallink:hover {
    text-decoration:underline;
}

.internallink:active {
    color: blue;
}

.internallink:visited {
    color: blue;
}

@media (max-width: 480px) {
    .button {
        width: 100%;        /* nimmt volle Breite ein */
        max-width: 280px;   /* bleibt aber nicht zu breit */
        margin: 0 auto;
        display: block;
    }
}


.teilen-box {
    background: white;
    padding: 25px;
    text-align: center;
    margin: 30px auto;
    max-width: 1110px;
    font-size: 1.1em;
    color: #1d3565;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.share-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Damit sie bei kleinen Displays umbrechen */
    margin-top: 15px;
}

.share-icons a img {
    width: clamp(28px, 6vw, 49px);  /* passt sich automatisch an */
    height: auto;
    transition: transform 0.2s ease;
    filter: invert(29%) sepia(8%) saturate(2807%) hue-rotate(180deg) brightness(93%) contrast(94%);
}

.share-icons a:hover img {
    transform: scale(1.15);
}

.blogtitle {
    text-align: center;
    justify-content: center;
    font-size: 26px;
}



[id] {
    scroll-margin-top: 150px; /* Höhe deiner Navbar (anpassen!) */
  }

  
/* Mobile Feintuning */
@media (max-width: 480px) {
    .teilen-box {
        padding: 15px;
        font-size: 1em;
    }

    .share-icons {
        gap: 15px;
    }
}

    
/* Rechtstipps Übersicht */
.rechtstipps-kaestchen-container {
    display: flex;
    gap: 100px;
    justify-content: center;
    margin: 40px auto;
    max-width: 1100px;
    flex-wrap: wrap;
}

.rechtstipp-kaestchen {
    background-color: white;
    color: #345e7d;
    padding: 25px;
    width: 45%;
    min-width: 300px;
    box-sizing: border-box;
    text-decoration: none;
    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(-8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.rechtstipp-kaestchen h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: #1d3565;
}

.rechtstipp-kaestchen p {
    font-size: 1em;
    line-height: 1.5;
    color: #1d3565;
}



/* Standard: Mobile TOC verstecken */
.collapsible-toc {
    display: none;
    background: white;
    border: 2px solid #072d7b;
    margin: 20px 0;
    padding: 10px;
  }
  
  .collapsible-toc .toc-toggle {
    background: none;
    border: none;
    font-size: 18px;
    font-weight: bold;
    color: #1d3565;
    cursor: pointer;
    width: 100%;
    text-align: left;
  }
  
  .collapsible-toc .toc-content {
    display: none; /* Start: zugeklappt */
    margin-top: 10px;
    list-style: none;
    padding-left: 0;
  }
  
  .collapsible-toc .toc-content li {
    margin: 8px 0;
  }
  
  .collapsible-toc .toc-content a {
    text-decoration: none;
    color: #1d3565;
  }
  
  .collapsible-toc .toc-content a:hover {
    text-decoration: underline;
  }


/* Unterpunkte */
.collapsible-toc .toc-content ul li.unterpunkt {
    font-size: 13px;       /* kleinere Schrift */
    margin-left: 34px;
    text-indent: 0;        /* kein negatives Einrücken */
    list-style-type: circle; /* Kreis-Bullet */
    color: #1d3565;           /* optional: heller als Hauptpunkte */
}


  .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: 130px; /* 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: 250px; /* 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;
    }
}

  
  @media (max-width: 1450px) {
    .rechtstipps-kaestchen-container {
        gap: 30px;
  }

  p {
    text-align: start;
  }
  }

  @media (max-width: 968px) {
    .sidebar {
      display: none !important;
    }
    .collapsible-toc {
      display: block !important;
    }
    .content {
      margin-right: 0 !important;
    }

    .content {
        margin-right: 10px; /* Platz für Sidebar */
    }


}

@media (max-width: 368px) {
    .beginning h1 {
        font-size: 30px;
    }
}

