:root {
    --mel: #00a5c8;
    --mel2: #67c7d8;
    --ink: #444;
    --soft: #eef8fa;
    --max: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: #fff;
}

body {
    margin: 0;
    line-height: 1.6;
}


/* =========================
   GRUNDLAYOUT
   ========================= */

.wrap {
    width: min(var(--max), calc(100% - 40px));
    margin: auto;
}


/* =========================
   KOPFBEREICH
   ========================= */

.site-header {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 20;
}

.header-inner {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand img {
    display: block;
    max-width: 360px;
    width: 100%;
    height: auto;
}


/* =========================
   NAVIGATION
   ========================= */

.mainnav ul {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mainnav a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
}

.mainnav a:hover,
.mainnav .active > a {
    color: var(--mel);
}


/* =========================
   HERO / HINTERGRUNDBILD
   ========================= */

.hero {
    min-height: 320px;
    background: url('/images/2018/05/18/kirsche.jpg') center / cover no-repeat;
    display: grid;
    place-items: center;
    text-align: center;
}

.hero .custom {
    background: rgba(255, 255, 255, .80);
    padding: 24px 36px;
    border-radius: 14px;
    width: max-content;
    max-width: calc(100% - 60px);
    margin: 30px;
}

.hero h1 {
    font-size: clamp(36px, 6vw, 58px);
    line-height: 1.05;
    margin: 0 0 2px;
    white-space: nowrap;
}

.hero p {
    font-size: 20px;
}


/* =========================
   BUTTONS
   ========================= */

.button,
.btn {
    display: inline-block;
    background: var(--mel);
    color: #fff !important;
    padding: 12px 22px;
    border-radius: 6px;
    text-decoration: none;
}


/* =========================
   HAUPTINHALT
   ========================= */

.main {
    padding: 35px 0;
}

.main h1,
.main h2,
.main h3 {
    line-height: 1.2;
}

.main h1,
.main h2 {
    color: #333;
}

.main img {
    max-width: 100%;
    height: auto;
}


/* =========================
   UNTERER BEREICH
   ========================= */

.bottom {
    background: var(--soft);
    padding: 50px 0;
}


/* =========================
   GALERIE
   ========================= */

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 5px;
}


/* =========================
   FOOTER
   ========================= */

.footer {
    background: #303030;
    color: #fff;
    padding: 32px 0;
}

.footer a {
    color: #8edbea;
}

.footer-contact {
    text-align: center;
}


/* =========================
   ZWEISPALTIGER BEREICH
   ========================= */

.mel-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    align-items: start;
}

.video {
    aspect-ratio: 16 / 9;
    width: 100%;
    border: 0;
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 760px) {

    .header-inner {
        flex-direction: column;
        padding: 14px 0;
    }

    .mainnav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 18px;
    }

    .hero {
        min-height: 390px;
    }

    .hero .custom {
        padding: 25px 20px;
    }

    .mel-two-col {
        grid-template-columns: 1fr;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

.temp-info {
    margin: -15px 0 28px;
    padding: 9px 14px;
    background: #eef8fa;
    border-left: 4px solid var(--mel);
    color: #555;
    border-radius: 4px;
}

html,
body {
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main {
    flex: 1;
}

.footer {
    margin-top: auto;
}

.footer-update {
    color: #999;
    font-size: 0.9em;
}



.mel-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 42px;
    align-items: center;
    margin: 70px 0;
}

.mel-story:first-of-type {
    margin-top: 45px;
}


.mel-story-reverse .mel-story-text {
    order: 2;
}

.mel-story-reverse .mel-story-image {
    order: 1;
}

.mel-story h2 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 30px;
}

.mel-story p {
    margin: 0 0 14px;
}

.mel-story-image img {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 14px;
}
@media (max-width: 760px) {
    .mel-story {
        grid-template-columns: 1fr;
        gap: 22px;
        margin: 38px 0;
    }

    .mel-story-reverse .mel-story-text,
    .mel-story-reverse .mel-story-image {
        order: initial;
    }

    .mel-story-image img {
        height: auto;
    }
}


.mel-story h2::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    background: var(--mel);
    margin-top: 10px;
    border-radius: 2px;
}


.mel-story-text {
    max-width: 520px;
}

.mel-story-reverse .mel-story-text {
    margin-left: auto;
}

.main h1 {
    font-size: 32px;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 28px;
}

.main h2 {
    font-size: 26px;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 18px;
}

.mel-closing {
    margin: 70px 0 20px;
    max-width: 100%;
}

.mel-closing h2 {
    margin-top: 0;
}

.mel-closing p {
    max-width: 900px;
}

.mel-contact {
    margin-top: 35px;
    padding: 28px 32px;
    background: var(--soft);
    border-left: 4px solid var(--mel);
    border-radius: 14px;
    max-width: 700px;
}

.mel-contact h2 {
    margin-top: 0;
}




.mel-job-notice {
    margin: 55px 0 20px;
    padding: 22px 26px;
    background: #eef8fa;
    border-left: 4px solid var(--mel);
    border-radius: 14px;
}

.mel-job-notice strong {
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
}

.mel-job-notice p {
    margin-bottom: 0;
}

.mainnav ul {
    display: flex;
    gap: 14px;
    align-items: center;
}

.mainnav a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
}


.header-inner {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}



.mainnav li a {
    position: relative;
    padding-bottom: 8px;
}

.mainnav li.active > a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 6px;
    border-radius: 2px;
}

.mainnav li a {
    position: relative;
    padding-bottom: 8px;
}

.mainnav li.active > a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    border-radius: 2px;
}

/* Wohngemeinschaft */
.mainnav li:nth-child(2).active > a::after {
    background: #D1288F;
}

/* Pflege und Betreuung */
.mainnav li:nth-child(3).active > a::after {
    background: #EF752E;
}

/* Qualität */
.mainnav li:nth-child(4).active > a::after {
    background: #D9A900;
}

/* Kontakt */
.mainnav li:nth-child(5).active > a::after {
    background: #A8B94D;
}

/* Jobs */
.mainnav li:nth-child(6).active > a::after {
    background: #02A6C8;
}