/* Typo – базовая типографика
----------------------------------------------- */

body {
    background: #333333 url(https://u.jimcdn.com/cms/o/s4ee63abbc6798bfe/userlayout/img/bg.gif?t=1495113180) no-repeat top left;
    padding: 35px 0 0 0;
    margin: 0;
    font: 14px/150% Verdana, Geneva, Arial, Helvetica, sans-serif; /* было 11px – сделали крупнее */
    color: #222;
}

a:link,
a:visited {
    text-decoration: underline;
    color: #EC4413;
}
a:active { text-decoration: underline; }
a:hover  { text-decoration: none; }

h1 {
    font: bold 28px/140% "Trebuchet MS", Verdana, sans-serif; /* было 18px */
    margin-bottom: 10px;
}
h2 {
    font: bold 18px/140% "Trebuchet MS", Verdana, sans-serif; /* было 14px */
    margin-top: 20px;
    margin-bottom: 10px;
}

p {
    font: 14px/160% Verdana, Geneva, Arial, Helvetica, sans-serif; /* было 11px */
    margin: 0 0 10px 0;
}

/* Layout – контейнер, шапка, контент
----------------------------------------------- */

#container {
    margin: 0 auto;
    width: 834px;
    background: #ffffff;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.28); /* мягкая тень вокруг блока */
    border-radius: 10px;                          /* чуть скруглили края */
    overflow: hidden;                             /* чтобы ничего не вылезало за границы */
}

/* HEADER – баннер с градиентом поверх картинки */

#header {
    position: relative;
    padding: 0;
    height: 320px;              /* высота баннера */
    overflow: hidden;
}

/* сама картинка */
#header img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;          /* вписываем без искажений, но можем чуть обрезать сверху/снизу */
}

/* тёмный градиент сверху и снизу для «дорогого» вида */
#header::before,
#header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    pointer-events: none;
}

/* сверху – лёгкое затемнение */
#header::before {
    top: 0;
    height: 40%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent);
}

/* снизу – более мягкое затемнение */
#header::after {
    bottom: 0;
    height: 35%;
    background: linear-gradient(to top, rgba(0,0,0,0.45), transparent);
}

/* заголовок поверх баннера (если решишь использовать) */
#header h1 {
    position: absolute;
    right: 30px;
    bottom: 25px;
    margin: 0;
    padding: 10px 18px;
    font-size: 26px;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.8);
    background: rgba(0, 0, 0, 0.40);
    border-radius: 8px;
}

/* NAVIGATION & SIDEBAR
----------------------------------------------- */

#navigation {
    float: left;
    width: 220px;
    padding: 17px;
}
#sidebar {
    padding-top: 10px;
}

/* CONTENT
----------------------------------------------- */

#content {
    float: right;
    width: 530px;
    padding: 17px;
}

/* FOOTER
----------------------------------------------- */

#footer {
    clear: both;
    margin-top: 10px;
    background: url(https://u.jimcdn.com/cms/o/s4ee63abbc6798bfe/userlayout/img/footer-bg.gif?t=1495113180) repeat-x top;
    height: 65px;
}

#footer .gutter {
    height: 30px;
    padding: 35px 15px 0 90px;
}

/* NAVIGATION LISTS
----------------------------------------------- */

ul.mainNav1,
ul.mainNav2 {
    margin: 0;
    padding: 0;
}

ul.mainNav1 li,
ul.mainNav2 li {
    display: inline;
    margin: 0;
    padding: 0;
}

ul.mainNav1 li a,
ul.mainNav2 li a {
    font: normal 12px/140% Verdana, Geneva, Arial, Helvetica, sans-serif;
    text-decoration: none;
    display: block;
    color: #333;
    border-bottom: 1px solid #CCC;
}

ul.mainNav1 li a { padding: 4px 4px 4px 4px; }
ul.mainNav2 li a { padding: 4px 4px 4px 14px; }
ul.mainNav3 li a { padding: 4px 4px 4px 24px; }

ul.mainNav1 a:hover {
    background: #EEE;
    color: black;
}
ul.mainNav1 a.current {
    font-weight: bold;
}

/* Убираем рамку/тень вокруг контента от Jimdo */
.jtpl-content-wrapper,
.jtpl-content,
.main,
.wrap,
.jtpl-section,
.jtpl-area,
.jtpl-element {
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
}
/* Спрятать надпись "Headline" в шапке */
#header h1 {
    display: none;
}
/* Нормальное отображение текста в серой полосе (футер) */
#footer {
    height: auto;                /* больше не фиксируем высоту */
}

#footer .gutter {
    height: auto;                /* разрешаем блоку растягиваться по тексту */
    padding: 15px 15px 15px 90px;/* немного уменьшаем верхний отступ и даём воздух снизу */
}
/* ------------------------- */
/* ФИРМЕННЫЙ ФИОЛЕТОВЫЙ ФУТЕР */
/* ------------------------- */

#footer {
    background: #bba8c8 !important; /* фирменный мягкий фиолетовый */
    height: auto !important;
    padding: 28px 0 !important;
    width: 100% !important;
    border-top: 2px solid #9d86b3 !important; /* красивый разделитель */
    box-shadow: none !important;
}

/* Контейнер с текстом футера */
#footer .gutter {
    max-width: 900px;
    margin: 0 auto;
    padding: 10px 25px !important;
    font-size: 13px;
    line-height: 1.55;
    color: #3a2f47 !important; /* глубокий фиолетово-серый текст */
}

/* Ссылки в футере — слегка выделены, но спокойные */
#footer a {
    color: #4c3b63 !important;
    text-decoration: underline;
}

#footer a:hover {
    color: #2a2135 !important;
    text-decoration: none;
}
/* ─────────────── ФИРМЕННЫЙ ВИЗУАЛ ДЛЯ БЛОГА ─────────────── */

/* Заголовок статьи */
.blog-article h1 {
    font-size: 38px !important;
    font-weight: 600 !important;
    color: #3d334f !important;
    margin-bottom: 25px !important;
    letter-spacing: 0.5px;
}

/* Подзаголовки (H2–H3) */
.blog-article h2 {
    font-size: 26px !important;
    font-weight: 500 !important;
    color: #593f7f !important;
    margin-top: 40px !important;
    margin-bottom: 15px !important;
}

.blog-article h3 {
    font-size: 22px !important;
    font-weight: 500 !important;
    color: #6a4e94 !important;
    margin-top: 30px !important;
    margin-bottom: 10px !important;
}

/* Основной текст */
.blog-article p {
    font-size: 17px !important;
    line-height: 1.55 !important;
    color: #2b2b2b !important;
    margin-bottom: 18px !important;
}

/* ─────────────── ЦИТАТЫ ПАЦИЕНТОВ ─────────────── */
.patient-quote {
    background: #f4eef9;
    border-left: 5px solid #7c5ab5;
    padding: 18px 20px;
    margin: 22px 0;
    font-style: italic;
    color: #3a2e49;
    font-size: 16px;
    line-height: 1.6;
    border-radius: 4px;
}

/* ─────────────── РАЗДЕЛИТЕЛЬ ─────────────── */
.section-divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, #b99dd8, #7c5ab5, #b99dd8);
    margin: 40px 0 !important;
    border-radius: 2px;
}

/* ─────────────── БЛОК CASE STUDY ─────────────── */
.case-study {
    background: #f7f1ff;
    padding: 20px 25px;
    border-radius: 6px;
    border: 1px solid #d6c7ee;
    margin: 30px 0;
}

.case-study h3 {
    color: #5b3e82 !important;
    font-weight: 600 !important;
    font-size: 22px !important;
}

.case-study p {
    margin-bottom: 12px !important;
    font-size: 16px !important;
    color: #2d2d2d !important;
}

/* ─────────────── БЛОК ИСТОЧНИКА ─────────────── */
.source-box {
    background: #ede2ff;
    padding: 12px 15px;
    border-left: 4px solid #6c4aa1;
    font-size: 14px;
    color: #3c2b52;
    border-radius: 4px;
    margin: 20px 0;
}

/* ─────────────── НИЖНИЙ ФИОЛЕТОВЫЙ ПОДВАЛ ДЛЯ СТАТЬИ ─────────────── */
.article-footer {
    background: #c9b1dd;
    padding: 40px 20px;
    margin-top: 60px;
    color: #3d2f4e !important;
    font-size: 14px !important;
    border-top: 3px solid #8c6bc1;
}

/* Текст в футере */
.article-footer a {
    color: #2d2052 !important;
    text-decoration: underline;
}

/* ─────────────── КНОПКИ ТИПА "MEIN KOMMENTAR" ─────────────── */
.blog-article a.button,
.blog-article .blog-tag {
    background: #7c5ab5 !important;
    color: white !important;
    padding: 6px 14px !important;
    border-radius: 4px !important;
    font-size: 14px !important;
}

.blog-article a.button:hover,
.blog-article .blog-tag:hover {
    background: #5f4292 !important;
}
/* ===========================
   Mobile: Sicherheits-Variante
   Mehr Rand links/rechts
   =========================== */
@media only screen and (max-width: 767px) {

  html, body {
    padding-left: 14px !important;
    padding-right: 14px !important;
    box-sizing: border-box !important;
  }

  /* Чтобы внутренние элементы не вылезали за новые границы */
  body * {
    box-sizing: border-box !important;
  }
}
/* HARTE VARIANTE: globale Seitenränder nur auf Handy-Breite */
@media (max-width: 767px) {
  html, body {
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box;
  }
}
/* --- Языковой переключатель с флагами --- */

.lang-switcher {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0 1.5rem;
}

.lang-switcher__item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    border: 1px solid #d0d0d0;
    font-size: 0.95em;
    text-decoration: none;
    color: #444444;
    background: #ffffff;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.lang-switcher__item .flag {
    font-size: 1.1em;
    line-height: 1;
}

.lang-switcher__item:hover {
    background: #f4f4f4;
    box-shadow: 0 0 0 1px #c5c5c5 inset;
}

/* Подсветка активного языка по body-классам */
body.lang-de .lang-switcher__item--de,
body.lang-ru .lang-switcher__item--ru,
body.lang-en .lang-switcher__item--en {
    background: #f59b3a;
    color: #ffffff;
    border-color: #f59b3a;
    box-shadow: none;
}