/* ===== Bereinigte main.css ===== */
html, body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

.page_wrapper {
    width: 1250px;
    margin: 0 auto;
    overflow-x: hidden;
}

.head_wrapper {
    min-height: 120px;
    background-color: #FFFFFF;
}

#logo {
    width: 1250px;
    height: 160px;
    background-image: url("Bilder/logo.png");
    background-position: 50% 50%;
    background-size: auto 100%;
    background-repeat: no-repeat;
}

.mobile_navigation {
    display: none;
}

.navigation_wrapper {
    position: relative;
    text-align: center;
    z-index: 1;
    background-color: #EDEDED;
}

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

.navigation_wrapper > ul > li {
    display: inline-block;
    position: relative;
}

.navigation_wrapper > ul > li > a {
    display: block;
    font-size: 22px;
    padding: 8px 16px;
    background-color: #EDEDED;
    color: #333333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.navigation_wrapper > ul > li > a:hover,
.navigation_wrapper > ul > li.cm_current > a {
    background-color: #333333;
    color: #FFFFFF;
}

/* Slider */
.fade-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
}

.fade-slider img {
    display: block;
    object-fit: contain;
    margin: 0 auto;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.fade-slider img.active {
    opacity: 1;
    position: relative;
    z-index: 2;
}

.cm-slides-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 0 auto;
}

.content_wrapper {
    position: relative;
    margin-top: 40px;
    padding: 15px 30px;
    background-color: #FFFFFF;
}

.design-content {
    display: inline-block;
    vertical-align: top;
}

/* Footer */
#footer::before {
    content: "Zuhause liebevolle Unterstüzung erhalten!";
    display: block;
    text-align: center;
    font-size: 30px;
    color: #ffffff;
    background-color: #81C46E;
    padding: 15px 0;
}

#footer::after {
    content: "© 2025 Alltags- und Seniorenbegleitung MITEINANDER";
    display: block;
    text-align: center;
    font-size: 14px;
    color: #ffffff;
    background-color: #81C46E;
    margin: 15px 0;
}

.leistungs-section {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* Abstand ZWISCHEN den Boxen */
    margin: 0; /* Keine Außenabstände */
    padding: 0; /* Keine Innenabstände */
}

.leistungs-section .box {
    flex: 1 1 calc(25% - 10px); /* 4 Spalten - berücksichtigt gap */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.leistungs-section .box img{
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  display: block;
}

.leistungs-section .box h3 {
    font-size: 22px;
    color: #38af4b;
    margin-top: 10px;
    margin-bottom: 10px;
    font-family: Arial, sans-serif;
}

.leistungs-section .box ul {
    font-family: Arial, sans-serif;
    margin: 0;
    padding-left: 20px;
}

.leistungs-section .box ul li {
    font-size: 20px;
    line-height: 1.5;
}

a.link-blau,
a.link-blau:visited,
a.link-blau:hover,
a.link-blau:active,
a.link-blau:focus {
  color: #0645AD;      /* typisches Link-Blau */
  text-decoration: none;
}