@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap');

/* === ПЕРЕМЕННЫЕ === */
:root {
    --marine-dark: #014d4e;
    --marine-light: #027b7f;
    --text-black: #000000;
    --bg-light: #f9f9f9;
    --white: #ffffff;
}

/* === БАЗОВЫЕ СТИЛИ === */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Corbel', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-black);
    background-color: var(--white);
    padding-top: 100px;
}

h1,
h2,
h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--marine-dark);
    margin-top: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

/* === КОНТЕЙНЕРЫ === */
.container {
    padding-left: 76px;
    padding-right: 76px;
}

.centered-content {
    text-align: center;
}

.team-text {
    text-align: right;
    padding-right: 10%;
    font-style: italic;
    margin-top: 10px;
}

/* === HEADER === */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--white);
    border-bottom: 1px solid #ccc;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    padding: 10px 0;
}

.logo img {
    height: 75px;
}

.navbar {
    flex: 1;
    text-align: center;
}

.navbar ul {
    display: flex;
    justify-content: center;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.navbar li a:hover,
footer a:hover {
    font-weight: bold;
    text-decoration: underline;
}

.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--marine-dark);
}

.contact {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.phone {
    background-color: #f1f1f1;
    padding: 5px 10px;
    border-radius: 5px;
}

.phone:hover {
    background-color: var(--marine-light);
    color: white;
}

.social-icons {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.social-icon-img {
    height: 36px;
    width: 36px;
    object-fit: contain;
    vertical-align: middle;
}

/* === INTRO === */
.intro {
    background-color: var(--marine-dark);
    color: white;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    height: 600px;
}

.intro .intro-text {
    flex: 1;
    padding-left: 76px;
    padding-right: 76px;
}

.intro h1 {
    color: white;
}

/* === ОБЩИЙ СТИЛЬ ДЛЯ КАРТИНОК === */
.image-container {
    flex: 1;
    width: 100%;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
    border-radius: 0;
    display: block;
}

.zoom-image:hover {
    transform: scale(1.05);
}

/* === AKTUELLES === */
.aktuelles {
    padding: 40px 0;
}

.aktuelles p:first-of-type {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 22px;
    color: var(--marine-dark);
    margin-bottom: 20px;
    text-align: center;
}

.aktuelles ul {
    list-style: disc;
    text-align: left;
    margin: 0 auto 20px auto;
    padding-left: 40px;
    max-width: 400px;
}

.highlight-button {
    background-color: #f3f3f3;
    padding: 10px 20px;
    display: inline-block;
    border-radius: 5px;
    margin: 20px 0;
    transition: background-color 0.3s;
}

.highlight-button:hover {
    background-color: var(--marine-light);
    color: white;
}

.info-text {
    margin-top: 20px;
    font-style: italic;
    font-size: 18px;
}

/* === KONTAKT === */
.kontakt-info {
    background-color: var(--marine-dark);
    color: white;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.kontakt-info .kontakt-text {
    flex: 1;
    padding-left: 76px;
    padding-right: 76px;
}

.kontakt-info h2,
.kontakt-info p {
    color: white;
}

.kontakt-info .contact-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: color .2s ease, border-color .2s ease;
}

.kontakt-info .contact-link:hover,
.kontakt-info .contact-link:focus {
    color: var(--marine-light);
    border-bottom-color: var(--marine-light);
    outline: none;
}

/* на тёмном фоне добавим небольшой контраст при фокусе с клавиатуры */
.kontakt-info .contact-link:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .25);
    border-radius: 2px;
}

.kontakt-info .contact-link {
    cursor: pointer;
}

/* === BEITRÄGE === */
#beitraege {
    background-color: var(--bg-light);
    padding: 40px 0;
}

#beitraege h2,
#beitraege p {
    text-align: center;
}

/* === FOOTER === */
footer {
    text-align: center;
    background-color: #eee;
    padding: 20px;
}

.footer-logo {
    height: 75px;
    margin-bottom: 10px;
}

footer a {
    color: var(--text-black);
}

/* === MODAL === */
/* Фикс прокрутки фона при открытой модалке */
body.modal-open {
    overflow: hidden;
}

/* Плавное появление/смена изображения в модалке */
.modal-content {
    opacity: 0;
    transition: opacity .25s ease-in-out;
    will-change: opacity;
}

/* когда картинка загружена — показываем */
.modal-content.is-ready {
    opacity: 1;
}

/* на всякий случай убедимся, что модалка перекрывает всё */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .95);
    z-index: 9999;
    display: none;
    /* по умолчанию скрыта */
    justify-content: center;
    align-items: center;
}

/* ваш единый формат 16:9 */
.modal-content {
    max-width: none !important;
    max-height: none !important;
    width: min(92vw, 1100px) !important;
    aspect-ratio: 16 / 9;
    height: auto !important;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, .6);
}

/* Стрелки по центру слева/справа от картинки, всегда видны */
.modal-nav {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    padding: 0 16px;
}

.modal-nav button {
    pointer-events: auto;
    background: rgba(0, 0, 0, .35);
    border: none;
    color: #fff;
    font-size: 42px;
    line-height: 1;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
}

.modal-nav button:hover {
    background: rgba(0, 0, 0, .6);
}

@media (max-width: 480px) {
    .modal-content {
        width: 90vw !important;
    }

    .modal-nav button {
        font-size: 36px;
        width: 48px;
        height: 48px;
    }
}

/* === MEDIA QUERIES === */
@media (max-width: 768px) {
    .navbar ul {
        display: none;
        flex-direction: column;
        background-color: var(--white);
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        z-index: 1001;
    }

    .navbar ul.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .intro {
        flex-direction: column;
        text-align: center;
        height: auto;
    }

    .kontakt-info {
        flex-direction: column;
        text-align: center;
    }

    .intro .intro-text,
    .kontakt-info .kontakt-text,
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .image-container {
        width: 100%;
        height: auto;
        padding: 0;
        margin: 0;
    }

    .image-container img {
        width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: 0;
    }

    .logo {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    .logo img,
    .footer-logo {
        height: 60px;
    }

    .social-icon-img {
        height: 32px;
        width: 32px;
    }

    .team-text {
        text-align: center;
        padding-right: 0;
    }
}

/* === GESCHICHTE & PHILOSOPHIE === */
.geschichte-section {
    display: flex;
    flex-wrap: wrap;
    padding: 40px 76px;
    gap: 40px;
}

.geschichte-text h2 {
    margin-top: 60px;
    /* добавлен отступ сверху */
}

.geschichte-text {
    flex: 1 1 55%;
    min-width: 300px;
}

.geschichte-bilder {
    flex: 1 1 35%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.geschichte-bilder img {
    width: 100%;
    border: 4px solid #2f5723;
    border-radius: 4px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .geschichte-section {
        flex-direction: column;
        padding: 20px;
    }
}

.dunkel-section {
    background-color: var(--marine-dark);
    padding: 40px;
}

.dunkel-section img {
    border: none;
}

/* === ANFAHRT === */
.anfahrt-section {
    background-color: var(--marine-dark);
    color: white;
    padding: 40px 0 0 0;
    text-align: center;
}

.anfahrt-header {
    padding-top: 60px;
    /* отступ от фиксированного header */
    padding-bottom: 30px;
}

.anfahrt-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: white;
}

.anfahrt-header h3 {
    font-size: 22px;
    margin: 10px 0 5px;
    color: white;
}

.anfahrt-header p {
    font-size: 18px;
    margin: 0 0 30px;
    line-height: 1.5;
    color: white;
}

.anfahrt-map-full {
    width: 100%;
    height: 400px;
    margin: 0;
}

.anfahrt-map-full iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* === DETAILS === */
.anfahrt-details {
    padding: 40px 76px;
}

.anfahrt-details h3 {
    margin-top: 40px;
    /* чуть ниже */
    font-size: 24px;
    color: var(--marine-dark);
}

.anfahrt-details p {
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.6;
}

/* === MEDIA === */
@media (max-width: 768px) {
    .anfahrt-details {
        padding: 40px 20px;
    }

    .anfahrt-map-full {
        height: 300px;
    }
}

/* === ANSPRECHPARTNER === */
.intro-ansprechpartner {
    display: flex;
    background-color: var(--marine-dark);
    color: white;
    height: 600px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.intro-ansprechpartner .intro-image {
    flex: 1;
    height: 100%;
    overflow: hidden;
}

.intro-ansprechpartner .intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.intro-ansprechpartner .intro-image img:hover {
    transform: scale(1.05);
}

.intro-ansprechpartner .intro-text {
    flex: 1;
    padding: 40px;
}

.intro-ansprechpartner h1 {
    color: white;
}

.ansprechpartner-description {
    padding: 40px 76px;
    line-height: 1.6;
}

.ansprechpartner-grid {
    background-color: var(--marine-dark);
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.grid-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.person {
    background-color: white;
    padding: 10px;
    width: 250px;
    text-align: center;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.person:hover {
    transform: scale(1.03);
}

.photo {
    width: 100%;
    height: 160px;
    overflow: hidden;
    border-radius: 5px;
    background-color: white;
    /* можно добавить фоновый цвет */
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top;
    display: block;
}

.ansprechpartner-headings {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.ansprechpartner-headings h2 {
    text-align: center;
    font-size: 26px;
    margin-bottom: 10px;
    color: white;
}

.ansprechpartner-headings h3 {
    font-size: 20px;
    margin-top: 30px;
    text-align: left;
    padding-left: 5%;
    color: white;
}

@media (max-width: 768px) {
    .intro-ansprechpartner {
        flex-direction: column;
        text-align: center;
        height: auto;
    }

    .intro-ansprechpartner .intro-image {
        width: 100%;
        height: auto;
    }

    .intro-ansprechpartner .intro-image img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    .intro-ansprechpartner .intro-text {
        padding: 20px;
    }
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
}

/* === KARRIERE === */
:root {
    --marine-dark: #014d4e;
    --marine-light: #027b7f;
    --marine-bg-light: #e0f4f4;
    --marine-very-light: #e6fafa;
}

/* ======= INTRO BLOCK ======= */
.intro-karriere {
    background-color: var(--marine-dark);
    color: white;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    height: 600px;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.intro-karriere .intro-text {
    flex: 1;
    padding: 0 76px;
}

.intro-karriere .intro-text h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    line-height: 1.3;
    margin: 0;
    color: white;
    word-break: break-word;
}

.intro-karriere .intro-image {
    flex: 1;
    height: 600px;
    overflow: hidden;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.intro-karriere .intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none;
    margin: 0;
    padding: 0;
}

.intro-karriere .intro-image img:hover {
    transform: scale(1.05);
}

/* ======= TABELLE ======= */
.ausbildung-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    margin: 30px 0;
    border: 2px solid var(--marine-light);
    border-radius: 6px;
    overflow: hidden;
    background-color: var(--marine-light);
    /* рамка вокруг */
}

.ausbildung-grid .title {
    background-color: var(--marine-light);
    /* тёмный фон */
    color: white;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
    padding: 15px 20px;
    word-break: break-word;
    white-space: normal;
}

/* Все обычные ячейки */
.ausbildung-grid .grid-cell {
    background-color: var(--marine-very-light) !important;
    /* принудительно переопределяем всё */
    color: var(--marine-dark);
    padding: 15px 20px;
    font-size: 16px;
    border: none;
}

/* Удаляем ненужную подсветку */
.ausbildung-grid .grid-cell:nth-child(even):not(.title) {
    background-color: var(--marine-very-light) !important;
}

.ausbildung-grid ul {
    padding-left: 20px;
    margin: 10px 0;
}

.ausbildung-grid ul li {
    margin-bottom: 6px;
}

.ausbildung-grid strong {
    color: var(--marine-dark);
}

/* ======= SECTION BLOCKS ======= */
.section-block {
    margin: 40px 60px;
}

.section-block h2,
.section-block h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--marine-dark);
    margin-bottom: 10px;
}

.section-block p,
.section-block ul {
    margin-bottom: 15px;
}

.unterpunkt {
    margin-top: 50px;
}

/* ======= VORTEILE-BLOCK (NEU) ======= */
.vorteile-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f1fbfb;
    padding: 20px;
    gap: 20px;
    border-radius: 8px;
    flex-wrap: wrap;
}

.vorteile-img {
    flex: 1;
    text-align: center;
}

.vorteile-img img {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.vorteile-img img:hover {
    transform: scale(1.05);
}

.vorteile-text {
    flex: 2;
    max-width: 600px;
    text-align: left;
    font-size: 16px;
}

.vorteile-text p {
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--marine-dark);
    font-family: 'Montserrat', sans-serif;
}

.vorteile-text ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.vorteile-text ul li {
    margin-bottom: 6px;
}

.ausbildung-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    margin: 30px 0;
    border: 2px solid var(--marine-light);
    border-radius: 6px;
    overflow: hidden;
    background-color: var(--marine-light);
}

.ausbildung-grid .title {
    background-color: var(--marine-light);
    color: white;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
    padding: 15px 20px;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.ausbildung-grid .grid-cell {
    background-color: white;
    padding: 15px 20px;
    font-size: 16px;
}

.ausbildung-grid .grid-cell:nth-child(even):not(.title) {
    background-color: #f1fbfb;
}

.ausbildung-grid ul {
    padding-left: 20px;
    margin: 10px 0;
}

.ausbildung-grid ul li {
    margin-bottom: 6px;
}

.ausbildung-grid strong {
    color: var(--marine-dark);
}

.karriere-email {
    color: var(--marine-light);
    text-decoration: underline;
    font-weight: 600;
    cursor: pointer;
    transition: color .2s ease;
}

.karriere-email:hover {
    color: var(--marine-dark);
}

/* ======= MEDIA QUERIES ======= */
@media (max-width: 768px) {
    .intro-karriere {
        flex-direction: column;
        height: auto;
    }

    .intro-karriere .intro-text {
        padding: 30px;
        margin-top: 60px;
        text-align: center;
    }

    .intro-karriere .intro-text h1 {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .intro-karriere .intro-image {
        width: 100%;
        height: auto;
        margin: 0;
        padding: 0;
    }

    .intro-karriere .intro-image img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    .ausbildung-grid {
        display: flex;
        flex-direction: column;
    }

    .ausbildung-grid .grid-cell {
        order: initial;
    }

    .ausbildung-grid .grid-cell[data-order="1"] {
        order: 1;
    }

    .ausbildung-grid .grid-cell[data-order="2"] {
        order: 2;
    }

    .ausbildung-grid .grid-cell[data-order="3"] {
        order: 3;
    }

    .ausbildung-grid .grid-cell[data-order="4"] {
        order: 4;
    }

    .ausbildung-grid .grid-cell[data-order="5"] {
        order: 5;
    }

    .ausbildung-grid .grid-cell[data-order="6"] {
        order: 6;
    }

    .vorteile-block {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .vorteile-img {
        margin: 10px 0;
    }

    .vorteile-text {
        text-align: left;
        padding: 0 10px;
    }
}

/* === UNSERE LEISTUNGEN — ВЕРХНИЙ БЛОК === */
.intro-leistungen {
    background-color: var(--marine-dark);
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    height: 600px;
}

.intro-leistungen .image-container {
    flex: 1;
    width: 100%;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.intro-leistungen .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: block;
}

.intro-leistungen .image-container img:hover {
    transform: scale(1.05);
}

.intro-leistungen .intro-text {
    flex: 1;
    padding-left: 76px;
    padding-right: 76px;
}

.intro-leistungen .intro-text h1 {
    color: #fff;
    margin: 0;
}

/* === UNSERE LEISTUNGEN — 6 КАРТОЧЕК === */
.leistungen-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding: 40px 76px;
}

.leistung {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
}

.leistung .icon {
    width: 220px;
    height: 220px;
    border-radius: 16px;
    background-color: #e6e6e6;
    /* заглушка, если нет фонового изображения */
    background-size: cover;
    background-position: center;
    transition: transform 0.25s ease;
}

.leistung:hover .icon {
    transform: scale(1.05);
}

.leistung p {
    margin: 12px 0 0 0;
    font-weight: 600;
}

/* === ОБЩИЕ БЛОКИ С СВЕТЛЫМ ФОНОМ === */
.section-light {
    background-color: #e0f4f4;
    /* очень светлый оттенок морской волны */
    padding: 30px 0;
    margin: 30px 0;
}

.flex-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
    justify-content: space-between;
}

.text-content {
    padding: 0 76px;
}

.section-light .text-left,
.section-light .text-right {
    flex: 1 1 380px;
    padding: 0 20px;
}

.section-light .img-right,
.section-light .img-left {
    flex: 1 1 380px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

.section-light img,
.image-row img {
    width: 100%;
    max-width: 420px;
    height: auto;
    border-radius: 8px;
    transition: transform 0.25s ease;
    cursor: pointer;
}

.section-light img:hover,
.image-row img:hover {
    transform: scale(1.05);
}

/* Сетка картинок (2–4 шт. в ряд) */
.image-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
    margin-top: 16px;
}

/* Ссылки в тексте (Downloads) */
.text-content a {
    color: var(--marine-light);
    font-weight: 600;
}

/* Картинки в блоке "Umfassende Betreuung und Service" */
.service-images {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
    /* чтобы не растягивались на 100% */
}

.service-images img {
    width: 280px;
    /* уменьшаем ширину */
    height: auto;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.service-images img:hover {
    transform: scale(1.05);
}

.image-row.kurzzeitpflege-images {
    display: flex;
    flex-direction: column;
    /* вертикально */
    align-items: center;
    /* центрируем */
    gap: 15px;
    /* расстояние между картинками */
}

/* Kurzzeitpflege: картинки в колонку и меньшего размера */
.image-row.leistungen-ueberblick-images {
    display: flex;
    flex-direction: column;
    /* вертикально */
    align-items: center;
    /* по центру */
    gap: 15px;
    /* расстояние между картинками */
}

.image-row.kurzzeitpflege-images img {
    width: 300px;
    /* немного меньше */
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
}

.image-row.kurzzeitpflege-images img:hover {
    transform: scale(1.05);
}

.image-row.leistungen-ueberblick-images img {
    width: 250px;
    /* можно регулировать размер */
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
}

/* Блок Unser Angebot – Vielfalt für Körper, Geist und Seele */
.image-column.unser-angebot-images {
    display: flex;
    flex-direction: column;
    /* вертикальное расположение */
    align-items: center;
    /* центрируем */
    gap: 15px;
    /* расстояние между картинками */
}

.image-column.unser-angebot-images img {
    width: 280px;
    /* уменьшаем размер */
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
}

/* Блок Barrierefreier Zugang */
.barrierefreier-zugang {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.barrierefreier-zugang-images {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.barrierefreier-zugang-images img {
    width: 400px;
    /* уменьшаем размер */
    height: auto;
    border-radius: 6px;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.barrierefreier-zugang-images img:hover {
    transform: scale(1.05);
}

.barrierefreier-zugang-text {
    max-width: 900px;
    margin: 0 auto;
}

/* Стиль только для ссылок на downloads.html вне меню */
a[href="downloads.html"]:not(nav a):not(.navbar a) {
    color: var(--marine-light);
    text-decoration: underline;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

a[href="downloads.html"]:not(nav a):not(.navbar a):hover {
    color: var(--marine-dark);
}

.wohnung-card {
    background-color: var(--marine-very-light);
    border-radius: 8px;
    padding: 20px 30px;
    max-width: 400px;
    margin: 30px auto;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    font-size: 18px;
    line-height: 1.6;
}

.wohnung-card p {
    margin: 8px 0;
    color: var(--marine-dark);
}

.imp-wrap {
    padding: 40px 20px;
    text-align: center;
}

.imp-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    color: var(--marine-dark);
    margin: 0 0 6px 0;
}

.imp-sub {
    margin: 0 0 28px 0;
    color: var(--marine-dark);
}

.italic {
    font-style: italic;
}

.strong {
    font-weight: 700;
}

.imp-h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    color: var(--marine-dark);
    margin: 28px 0 8px;
}

.imp-h2.small {
    font-size: 22px;
}

.imp-line {
    margin: 4px 0;
}

.imp-block {
    max-width: 900px;
    margin: 18px auto;
    line-height: 1.7;
    color: var(--text-black);
}

/* ссылки внутри текста */
.imp-wrap a,
.imp-link {
    color: var(--marine-light);
    text-decoration: underline;
    font-weight: 600;
}

.imp-wrap a:hover,
.imp-link:hover {
    color: var(--marine-dark);
}

/* Обёртка страницы */
.downloads-wrap {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Заголовок и введение */
.downloads-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    color: var(--marine-dark);
    text-align: center;
    margin: 0 0 18px 0;
}

.downloads-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 10px auto;
}

.downloads-intro.bold {
    font-weight: 700;
}

/* Двухколоночный светлый блок */
.downloads-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    background-color: var(--marine-very-light, #e6f7f7);
    border-radius: 10px;
    padding: 24px;
    margin-top: 28px;
}

.downloads-col {
    min-width: 0;
}

.downloads-h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    color: var(--marine-dark);
    margin: 0 0 12px 0;
}

/* Списки и ссылки */
.downloads-list,
.links-list {
    margin: 0;
    padding-left: 18px;
}

.downloads-list li,
.links-list li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.muted {
    color: #666;
}

/* Кликабельные ссылки на PDF — выделяем */
.dl-link {
    color: var(--marine-light);
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    transition: color .2s ease;
}

.dl-link:hover {
    color: var(--marine-dark);
}

/* Внешние ссылки — тоже заметные */
.ext-link {
    color: var(--marine-light);
    text-decoration: underline;
    font-weight: 600;
    cursor: pointer;
    transition: color .2s ease;
}

.ext-link:hover {
    color: var(--marine-dark);
}

/* адаптив */
@media (max-width: 768px) {
    .imp-title {
        font-size: 30px;
    }

    .imp-h2 {
        font-size: 22px;
    }

    .imp-h2.small {
        font-size: 20px;
    }

    .imp-block {
        padding: 0 10px;
    }
}

/* Блок обёртки страницы */
.dat-wrap {
    padding: 40px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Главный заголовок по центру */
.dat-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    color: var(--marine-dark);
    text-align: center;
    margin: 0 0 24px 0;
}

/* Подзаголовки разделов */
.dat-h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    color: var(--marine-dark);
    margin: 28px 0 12px;
}

/* Параграфы и списки */
.dat-section p {
    margin: 10px 0 14px;
}

.dat-list {
    margin: 10px 0 14px 0;
    padding-left: 20px;
}

.dat-list li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Ссылки внутри текста */
.dat-wrap a {
    color: var(--marine-light);
    text-decoration: underline;
    font-weight: 600;
}

.dat-wrap a:hover {
    color: var(--marine-dark);
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 1024px) {
    .leistungen-grid {
        grid-template-columns: repeat(2, 1fr);
        padding-left: 40px;
        padding-right: 40px;
    }
}

@media (max-width: 992px) {
    .downloads-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .intro-leistungen {
        flex-direction: column;
        text-align: center;
        height: auto;
        padding-bottom: 30px;
    }

    .intro-leistungen .intro-text {
        padding-left: 20px;
        padding-right: 20px;
        margin-top: 20px;
    }

    .intro-leistungen .image-container {
        height: auto;
    }

    .intro-leistungen .image-container img {
        height: auto;
    }

    .leistungen-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .leistung .icon {
        width: 240px;
        height: 240px;
    }

    .text-content {
        padding-left: 20px;
        padding-right: 20px;
    }

    .flex-row {
        flex-direction: column;
        gap: 20px;
    }

    .section-light .text-left,
    .section-light .text-right,
    .section-light .img-right,
    .section-light .img-left {
        padding: 0;
    }

    .service-images img {
        width: 100%;
    }

    .image-row.kurzzeitpflege-images img {
        width: 100%;
    }

    .image-row.leistungen-ueberblick-images img {
        width: 100%;
    }

    .image-column.unser-angebot-images img {
        width: 100%;
    }

    .barrierefreier-zugang-images img {
        width: 100%;
    }

    .dat-title {
        font-size: 30px;
    }

    .dat-h2 {
        font-size: 22px;
    }

    .dat-wrap {
        padding-left: 20px;
        padding-right: 20px;
    }

}