body {
    margin: 0;
    font-family: 'Roboto Condensed', sans-serif;
    background: linear-gradient(135deg, #a8b794, #d8caa8);
    background-size: cover;
    background-attachment: fixed;
    color: #2d3436;
    line-height: 1.6;
}

body.rechtliches-page {
    background: linear-gradient(135deg, #6a8e54, #e2dfc6);
    background-size: cover;
    background-attachment: fixed;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    background: transparent;
    margin: 2rem 2rem;
    font-weight: bold;
}

.header-left,
.header-center,
.main-nav {
    flex: 1;
    display: flex;
    align-items: center;
}

.header-left {
    justify-content: flex-start;
}

.header-center {
    justify-content: center;
}

.main-nav {
    justify-content: flex-end;
}

.logo-text {
    font-size: 3.5rem;
    font-weight: 700;
    font-family: 'Roboto Condensed', sans-serif;
}

.logo-image {
    height: 60px;
    width: auto;
}

.main-nav a {
    margin-left: 1.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.3rem;
    color: #2d3436;
    position: relative;
}

.main-nav a.current::after {
    display: block;
    width: 100%;
    height: 2px;
    background: #2d3436;
    position: absolute;
    bottom: -4px;
    left: 0;
}

main {
    padding: 0rem;
    max-width: 1000px;
    margin: auto;
}

section {
    margin-bottom: 3rem;
    background: rgba(255, 255, 255, 0.6);
    padding: 1rem;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

h2 {
    font-size: 1.7em;
    margin: 1rem 1rem 0rem 1rem;
}

p {
    font-size: 1.3rem;
    margin: 1rem 1.5rem;
}

ul {
    padding-left: 1.5rem;
    font-size: 1.3rem;
}

ul li {
    margin-bottom: 0.5rem;
}

.image-container {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.image-container img {
    max-width: 48%;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.leistungen-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: nowrap;
}

.leistungen-inhalt {
    flex: 1 1 60%;
}

.leistungen-bild {
    flex: 1 1 35%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.leistungen-bild img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
    background: #fff;
    color: #636e72;
    border-top: 1px solid #dfe6e9;
}

#kontakt a,
.impressum a {
    color: #588157;
    text-decoration: underline;
}

#kontakt a:hover,
.impressum a:hover {
    color: #3e6b45;
}

footer a {
    color: #588157;
    text-decoration: underline;
}

footer a:hover {
    color: #3e6b45;
}

.rechtliches-wrapper {
    font-size: 0.8rem;
    color: #777777;
    line-height: 1.4;
    padding: 0.5rem 1rem;
    margin-top: 0rem;
}

.rechtliches-wrapper p {
    margin: 1rem 1.5rem;
}

.rechtliches-wrapper a {
    color: #588157;
    text-decoration: underline;
}

.rechtliches-wrapper a:hover {
    color: #3e6b45;
}

.rechtliches-wrapper h2 {
    font-size: 1.7rem;
    font-weight: 600;
    margin-top: 2rem;
}

.logo-image-rechtliches {
    height: 60px;
    width: auto;
}

.logo-text-rechtliches {
    font-size: 3.5rem;
    font-weight: 700;
    font-family: 'Roboto Condensed', sans-serif;
    color: #2d3436;
}

.datenschutz a {
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

@media (max-width: 768px) {
  .site-header,
  .rechtliches-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 1rem;
  }

  .header-left,
  .header-center,
  .main-nav,
  .header-left-rechtliches {
    justify-content: center;
    flex: unset;
    margin: 0.5rem 0;
  }

  .main-nav {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .main-nav a {
    margin-left: 0;
    font-size: 1rem;
  }

  .logo-text,
  .logo-text-rechtliches {
    font-size: 2.2rem;
  }

  .image-container img {
    max-width: 100%;
  }

  .leistungen-flex {
    flex-direction: column;
    gap: 1rem;
  }

  .leistungen-bild {
    padding: 0;
  }

  .leistungen-bild img {
    width: 100%;
    height: auto;
  }
}
@media (max-width: 768px) {
  body.rechtliches-page .rechtliches-header {
    flex-direction: column;       
    align-items: center;         
    gap: 0.5rem;                 
    text-align: center;           
  }

  body.rechtliches-page .header-left-rechtliches {
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
  }

  body.rechtliches-page .logo-image-rechtliches {
    height: 60px;                 
    width: auto;
  }

  body.rechtliches-page .logo-text-rechtliches {
    font-size: 2.5rem;
    margin: 0;
  }

  body.rechtliches-page .main-nav {
    flex: none;
    margin-top: 1rem;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 1rem;
  }
    

