/* =========================================================
   Modern redesign layer – loaded last, overrides legacy inline styles
   Content / images / texts stay untouched.
   ========================================================= */
:root {
  --navy-900: #0a1236;
  --navy-800: #0d1848;
  --navy-700: #16256f;
  --navy-600: #222c81;
  --accent: #e30613;
  --accent-dark: #b9050f;
  --ink: #1b2a6b;
  --soft: #f3f5fb;
  --radius: 20px;
  --maxw: 1140px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--navy-900) !important;
  color: #fff;
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif !important;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Navigation ---------- */
body > nav.navbar {
  background: rgba(10, 18, 54, .92) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
  padding: 8px 12px;
  z-index: 1030;
}
body > nav.navbar .fa-phone {
  font-size: 20px !important;
  width: 46px; height: 46px; line-height: 46px;
  border-radius: 50%;
  background: var(--accent);
  text-align: center;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(227, 6, 19, .45);
  transition: transform .2s;
}
body > nav.navbar .fa-phone:hover { transform: scale(1.08); }
body > nav.navbar img {
  width: 150px !important;
  border-radius: 10px;
  border: 0 !important;
}
body > nav.navbar .navbar-nav:last-child .nav-link {
  color: #fff !important;
  background: rgba(255, 255, 255, .1) !important;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  padding: 9px 18px !important;
  min-width: 0 !important;
  font-size: 12px !important;
  letter-spacing: .06em;
  transition: background .2s;
}
body > nav.navbar .navbar-nav:last-child .nav-link:hover { background: rgba(255, 255, 255, .22) !important; }
body > nav.navbar .navbar-nav:last-child .nav-link span { text-decoration: none !important; }
.navbar-toggler { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.9); }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 { letter-spacing: -.01em; line-height: 1.2; }
h1, .display-1 { font-size: clamp(2rem, 5.5vw, 3.6rem) !important; font-weight: 800 !important; }
h2, .display-5 { font-size: clamp(1.4rem, 3.2vw, 2.1rem) !important; font-weight: 700 !important; }
h3, .display-3 { font-size: clamp(1.25rem, 2.6vw, 1.7rem) !important; font-weight: 700 !important; }
h4 { font-size: clamp(1.15rem, 2.2vw, 1.5rem) !important; font-weight: 700 !important; }
h5 { font-size: 1.15rem !important; font-weight: 600 !important; }
h6 { font-size: 1.02rem !important; line-height: 1.75 !important; font-weight: 400 !important; }
h6 strong, p strong { font-weight: 700; }
p { font-weight: 400 !important; }
body > div p, body > section p { font-size: 1.05rem; line-height: 1.75; }

/* ---------- Sections: dark by default ---------- */
body > div,
body > section:not(.bg-white) {
  background: var(--navy-800) !important;
  color: #fff !important;
  padding: 48px 24px !important;
  margin: 0 !important;
  height: auto !important;
}
body > div *:not(.btn):not(.btn *):not(.fa),
body > section:not(.bg-white) *:not(.btn):not(.btn *):not(.fa) {
  color: inherit !important;
}
body > div hr, body > section hr { display: none; }

/* Hero (directly after nav) */
body > nav + div {
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(227, 6, 19, .25), transparent 60%),
    linear-gradient(160deg, #1a2a9a 0%, var(--navy-800) 70%) !important;
  padding: 80px 24px 64px !important;
  text-align: center;
}
body > nav + div h1 { margin-bottom: .4em; }
body > nav + div h2 { color: #ffd9dc !important; opacity: .95; }
body > nav + div h3 { opacity: .8; font-weight: 500 !important; }
body > nav + div > .btn { margin-top: 24px !important; }

/* Row with image + text */
.row-image-txt {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  --bs-gutter-x: 0;
}
body > .row-image-txt {
  padding: 64px max(24px, calc((100vw - var(--maxw)) / 2)) !important;
  background: var(--navy-700) !important;
}
.row-image-txt > [class*="col-"] {
  flex: 1 1 380px !important;
  width: auto !important;
  max-width: 100% !important;
  padding: 0 !important;
}
.row-image-txt > [class*="col-"]:not([style*="url("]) {
  height: auto !important;
  background: transparent !important;
}
.row-image-txt > [style*="url("] {
  min-height: 380px;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  background-color: rgba(255, 255, 255, .04);
}
.row-image-txt p { text-align: left !important; }
.row-image-txt > [class*="col-"] > div[style*="text-align:center"] { margin-top: 24px; }

/* Service banner (text + phone button) */
body > div > .container { max-width: var(--maxw); }
body > div > .container .row { align-items: center; gap: 20px; justify-content: center; text-align: center; }
body > div > .container h3 { margin: 0; }

/* Light section */
body > section.bg-white {
  background: #fff !important;
  padding: 0 !important;
}
body > section.bg-white,
body > section.bg-white *:not(.btn):not(.btn *) { color: var(--ink) !important; }
body > section.bg-white > .container-fluid { background: #fff !important; padding: 0 !important; }
body > section.bg-white > .container-fluid > .row { margin: 0; }
body > section.bg-white .row > [class*="col-"] { padding: 0 !important; }
body > section.bg-white .row > [style*="url("] { min-height: 420px; }
body > section.bg-white .row > [class*="col-"]:not([style*="url("]) {
  padding: 56px max(24px, 4vw) !important;
  display: flex; flex-direction: column; justify-content: center;
}
body > section.bg-white p.lead { font-size: 1.1rem; font-weight: 500 !important; line-height: 1.8; }
body > section.bg-white p.lead strong { font-weight: 500; }
body > section.bg-white hr { display: none; }
body > section.bg-white h3 { margin-bottom: 20px; }

/* Services table → chip grid */
.table-responsive { width: 100% !important; max-width: var(--maxw); margin: 0 auto !important; padding: 0 !important; overflow: visible; }
.table-responsive table { border-collapse: separate; border-spacing: 12px; width: 100%; background: transparent !important; }
.table-responsive td {
  background: rgba(255, 255, 255, .07) !important;
  border: 1px solid rgba(255, 255, 255, .14) !important;
  border-radius: 14px;
  padding: 16px 12px !important;
  font-size: 15px !important;
  width: auto !important;
  vertical-align: middle;
  transition: background .2s, transform .2s;
}
.table-responsive td:hover { background: rgba(255, 255, 255, .14) !important; transform: translateY(-2px); }
.table-responsive td a { font-size: 15px !important; text-decoration: none; }
body > .row-image-txt:has(.table-responsive) { background: var(--navy-900) !important; }
body > .row-image-txt:has(.table-responsive) > [class*="col-"] { flex-basis: 100% !important; }

/* Long text block */
#thermenwartung {
  background: linear-gradient(180deg, var(--navy-800), var(--navy-700)) !important;
  padding: 72px 24px !important;
}
#thermenwartung > * {
  max-width: 880px;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
#thermenwartung h4, #thermenwartung h2, #thermenwartung h3 { margin-top: 2.2rem; margin-bottom: 1rem; }
#thermenwartung h6 { text-align: left !important; }
#thermenwartung > h4:first-child { margin-top: 0; }
#thermenwartung h1 { color: var(--accent) !important; letter-spacing: .12em; margin-top: 3rem; }
#thermenwartung h2.display-3 strong { color: #fff; }
#thermenwartung h2:has(strong) { font-size: clamp(1.6rem, 4vw, 2.4rem) !important; }
#thermenwartung .btn { display: table; margin: 24px auto !important; }
.flash.animated, .rubberBand.animated, .animated.infinite { animation: none !important; }
#thermenwartung h4.text-uppercase {
  background: rgba(227, 6, 19, .18);
  border: 1px solid rgba(227, 6, 19, .5);
  border-radius: 14px;
  padding: 18px 20px !important;
  font-size: 1.05rem !important;
}

/* ---------- Buttons ---------- */
.btn {
  background: var(--accent) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 14px 32px !important;
  font-weight: 700 !important;
  font-size: 1.05rem !important;
  letter-spacing: .02em;
  text-decoration: none !important;
  box-shadow: 0 10px 28px rgba(227, 6, 19, .4) !important;
  transition: transform .2s, box-shadow .2s, background .2s;
  width: auto !important;
  max-width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  margin-bottom: 0 !important;
}
.btn:hover { background: var(--accent-dark) !important; transform: translateY(-2px); box-shadow: 0 14px 34px rgba(227, 6, 19, .5) !important; }
.btn * { color: inherit !important; }
.btn .fa { font-size: 1.35em !important; }
.btn-light { background: #fff !important; color: var(--navy-600) !important; box-shadow: 0 10px 28px rgba(0, 0, 0, .25) !important; }
.btn-light:hover { background: #eef1ff !important; }
.btn-light * { color: var(--navy-600) !important; }
.btn-light.btn-lg, .btn-lg { font-size: 1.05rem !important; }
body > section.bg-white .btn-light { background: var(--accent) !important; color: #fff !important; }
body > section.bg-white .btn-light, body > section.bg-white .btn-light * { color: #fff !important; }
/* phone-only round button */
body > div > a.btn:has(> .fa-phone:only-child),
body > nav + div > a.btn:has(> .fa-phone:only-child) { padding: 20px 26px !important; }
body > div > a.btn > .fa-phone:only-child { font-size: 2rem !important; }

/* ---------- Contact form ---------- */
.login-cont { padding: 24px !important; max-width: 760px; margin: 0 auto; }
.login-col {
  background: rgba(255, 255, 255, .06) !important;
  border: 1px solid rgba(255, 255, 255, .15) !important;
  border-radius: var(--radius);
  padding: 32px !important;
  float: none; margin: 0 auto !important;
  flex: 0 0 100% !important; max-width: 100% !important; width: 100% !important;
}
.login-col .fa-wrench { color: #fff !important; font-size: 40px !important; margin-bottom: 16px; }
.form-control {
  background: rgba(255, 255, 255, .95);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 12px 14px;
  color: #111 !important;
}
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(227, 6, 19, .2); }
.form-label { font-weight: 600; margin-bottom: 6px; }
.form-group { text-align: left; }
#contact-form-1 .btn-send { margin-top: 12px; }

/* ---------- Legal pages ---------- */
body > main {
  background: #fff !important;
  color: var(--ink) !important;
  max-width: 880px !important;
  margin: 56px auto !important;
  padding: 48px clamp(20px, 5vw, 56px) !important;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  line-height: 1.75;
}
body > main * { color: inherit !important; }
body > main a { color: #1646c4 !important; text-decoration: underline; }
body > main h1 { margin-bottom: 1.2rem; padding-bottom: 1rem; border-bottom: 3px solid var(--accent); }
body > main h2 { margin-top: 2rem; font-size: 1.25rem !important; }
body > main h3 { margin-top: 1.4rem; font-size: 1.05rem !important; }
body > main p { font-size: 1.02rem; }

/* ---------- Footer ---------- */
footer {
  background: var(--navy-900) !important;
  border-top: 1px solid rgba(255, 255, 255, .1);
  box-shadow: none !important;
  margin-top: 0 !important;
  padding: 56px max(24px, calc((100vw - var(--maxw)) / 2)) 32px !important;
  font-family: inherit !important;
}
footer .row { margin: 0; }
footer .footer-contacts { padding: 0; }
footer .footer-contacts > div { margin-top: 0 !important; display: flex; align-items: center; gap: 4px; }
footer .footer-contacts p { margin: 0; color: #fff !important; font-weight: 400; }
footer .new-line-span { font-size: 1rem; line-height: 1.5; }
footer .fa.footer-contacts-icon {
  background: var(--accent) !important;
  flex: 0 0 38px;
  box-shadow: 0 4px 12px rgba(227, 6, 19, .4);
}
footer a { color: #fff !important; text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer .col-12.text-center {
  width: 100%;
  margin-top: 28px;
  padding: 20px 0 0 !important;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .95rem;
}
footer .col-12.text-center a { color: rgba(255, 255, 255, .75) !important; margin: 0 14px !important; }
footer .col-12.text-center a:hover { color: #fff !important; }

/* ---------- Images ---------- */
img { max-width: 100%; }
.hoverText img { border-radius: var(--radius); }

@media (max-width: 767px) {
  body > div, body > section:not(.bg-white) { padding: 36px 16px !important; }
  body > nav + div { padding: 56px 16px 44px !important; }
  body > .row-image-txt { padding: 40px 16px !important; gap: 24px; }
  .table-responsive table { border-spacing: 8px; }
  .table-responsive td { padding: 12px 6px !important; font-size: 13px !important; }
  .table-responsive td a { font-size: 13px !important; }
  body > section.bg-white .row > [class*="col-"]:not([style*="url("]) { padding: 36px 20px !important; }
}

/* ---------- Refinements ---------- */
body, body *:not(.fa):not([class*="fa-"]):not(i) { font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif !important; }
body > div [style*="gradient"]:not(.btn):not([style*="url("]):not(.login-col),
body > div [style*="background: #ffffff"],
body > div[style*="background"] .text-center[style*="background"] { background: transparent !important; }
body > div .text-center, body > div.text-center { text-align: center; }
body > div select {
  display: block;
  width: min(100%, 460px) !important;
  margin: 0 auto !important;
  padding: 14px 20px !important;
  font-size: 1.05rem !important;
  color: var(--navy-600) !important;
  background: #fff !important;
  border: 2px solid rgba(255,255,255,.3) !important;
  border-radius: 999px !important;
  box-shadow: 0 10px 28px rgba(0,0,0,.25);
  cursor: pointer;
}
body > div select option { color: #111; }
body > div u, body > div a u { text-decoration: none; }
body > div h1[style*="underline"], body > div [style*="text-decoration: underline"] { text-decoration: none !important; }
.hoverText { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px; }
.hoverText img {
  width: auto !important;
  max-width: min(100%, 380px) !important;
  height: auto !important;
  margin: 0 !important;
  background: #fff;
  padding: 20px;
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
}
.hoverText a { display: inline-block; }
body > div > .row .col-sm-6 a, body > div a:not(.btn):not(.nav-link) { text-underline-offset: 3px; }
body > div [class*="col-"] > a:not(.btn) { text-decoration: none; }
.row-image-txt h6, .row-image-txt .row { text-align: left; }
/* location grid: keep centred text in tiles */
.table-responsive td { text-align: center; }

/* ---------- Index fixes: strip legacy white boxes ---------- */
body > div *:not(.btn):not(.form-control):not(select):not(option):not(td):not(img):not(.fa):not(.login-col):not([style*="url("]),
body > div .article-dual-column { background-color: transparent !important; background-image: none !important; }
body > div [style*="url("] { background-color: rgba(255,255,255,.04) !important; }
body > div select, body > div select * { background: #fff !important; }
body div select:not(.x) { color: var(--navy-600) !important; }
html body > div select:not(.x) { color: #16256f !important; -webkit-text-fill-color: #16256f; }
body > div .article-dual-column { padding: 0 !important; }
body > div .article-dual-column .intro, body > div .article-dual-column .text { max-width: var(--maxw); margin: 0 auto; }
body > div .article-dual-column p { color: #fff !important; font-size: 1.05rem !important; text-transform: none; }
body > div .article-dual-column .by, body > div .article-dual-column .date { font-style: normal; opacity: .75; }

body > div { overflow-x: hidden; }
body > div p, body > div h1, body > div h2, body > div h3 { overflow-wrap: break-word; max-width: 100%; }
body > div .row, body > div [class*="col-"] { min-width: 0; max-width: 100%; }

/* Dropdown list text */
html body > div select option,
html body > div select optgroup,
html body > div select *:not(.x):not(.y) {
  color: #16256f !important;
  -webkit-text-fill-color: #16256f !important;
  background: #fff !important;
  font-weight: 500;
}
html body > div select optgroup { font-weight: 700; color: #e30613 !important; -webkit-text-fill-color: #e30613 !important; background: #f3f5fb !important; }
html body > div select option:checked, html body > div select option:hover { background: #dfe6ff !important; }

/* Dropdown – high-specificity override (beats the generic colour-inherit rule) */
html body > div select:not(.x):not(.y):not(.z) option:not(.x):not(.y):not(.z):not(.w),
html body > div select:not(.x):not(.y):not(.z) optgroup:not(.x):not(.y):not(.z):not(.w) {
  color: #16256f !important;
  -webkit-text-fill-color: #16256f !important;
  background-color: #fff !important;
}
html body > div select:not(.x):not(.y):not(.z) optgroup:not(.x):not(.y):not(.z):not(.w) {
  color: #e30613 !important;
  -webkit-text-fill-color: #e30613 !important;
  background-color: #f3f5fb !important;
}
html body > div select:not(.x):not(.y):not(.z) option:not(.x):not(.y):not(.z):not(.w):checked {
  background-color: #dfe6ff !important;
}

/* ---------- Rich footer ---------- */
footer.site-footer {
  background: linear-gradient(180deg, var(--navy-800), var(--navy-900)) !important;
  border-top: 4px solid var(--accent);
  padding: 64px max(24px, calc((100vw - var(--maxw)) / 2)) 0 !important;
  color: #fff;
}
.sf-grid { display: grid; grid-template-columns: 1.4fr 1.3fr 1fr 1fr; gap: 40px; }
.sf-col h4 { font-size: 1rem !important; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin: 0 0 20px; padding-bottom: 10px; border-bottom: 2px solid var(--accent); display: inline-block; }
.sf-col ul { list-style: none; padding: 0; margin: 0; }
.sf-logo img { width: 190px; background: #fff; border-radius: 16px; padding: 10px; display: block; }
.sf-claim { margin: 18px 0; color: rgba(255,255,255,.75); font-size: .95rem; line-height: 1.6; }
.sf-partner img { width: 190px; background: #fff; border-radius: 12px; padding: 8px; display: block; }
.sf-contact li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; line-height: 1.5; }
.sf-contact li > span:last-child, .sf-contact a { padding-top: 7px; word-break: break-word; }
.sf-contact .footer-contacts-icon { margin: 0 !important; }
.sf-links li { margin-bottom: 10px; }
.sf-links a, .sf-contact a { color: rgba(255,255,255,.85) !important; text-decoration: none; }
.sf-links a:hover, .sf-contact a:hover { color: #fff !important; text-decoration: underline; }
.sf-emergency p { color: rgba(255,255,255,.8); margin-bottom: 18px; }
.sf-bottom { margin-top: 48px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.12); text-align: center; font-size: .88rem; color: rgba(255,255,255,.6); }
.sf-bottom a { color: rgba(255,255,255,.8) !important; margin: 0 4px; }
@media (max-width: 991px) { .sf-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px) { .sf-grid { grid-template-columns: 1fr; } footer.site-footer { padding-top: 44px !important; } }

/* ---------- Gradient ("fountain") backgrounds ---------- */
body {
  background:
    radial-gradient(1200px 600px at 100% 0%, rgba(34,44,129,.55), transparent 60%),
    radial-gradient(900px 500px at 0% 40%, rgba(227,6,19,.10), transparent 60%),
    linear-gradient(180deg, #0a1236 0%, #101c5c 50%, #0a1236 100%) !important;
  background-attachment: fixed !important;
}
body > div, body > section:not(.bg-white) {
  background: linear-gradient(180deg, rgba(22,37,111,.0) 0%, rgba(22,37,111,.55) 100%) !important;
}
body > nav + div {
  background:
    radial-gradient(800px 380px at 80% -10%, rgba(227,6,19,.30), transparent 60%),
    radial-gradient(700px 400px at 10% 110%, rgba(80,110,255,.35), transparent 60%),
    linear-gradient(165deg, #1f33b8 0%, #14227c 45%, #0d1848 100%) !important;
}
body > .row-image-txt {
  background: linear-gradient(135deg, #1b2c9c 0%, #14227c 55%, #0d1848 100%) !important;
}
body > .row-image-txt:has(.table-responsive) {
  background: linear-gradient(180deg, #0d1848 0%, #0a1236 100%) !important;
}
#thermenwartung {
  background:
    radial-gradient(700px 400px at 90% 0%, rgba(227,6,19,.18), transparent 60%),
    linear-gradient(180deg, #0d1848 0%, #1b2c9c 100%) !important;
}
body > section.bg-white,
body > section.bg-white > .container-fluid {
  background: linear-gradient(180deg, #ffffff 0%, #e8edfb 100%) !important;
}
footer.site-footer {
  background:
    radial-gradient(700px 300px at 85% 0%, rgba(227,6,19,.14), transparent 60%),
    linear-gradient(180deg, #14227c 0%, #0a1236 70%) !important;
}
body > main { background: linear-gradient(180deg, #ffffff, #f0f3fc) !important; }

/* ---------- Typography & small-screen polish ---------- */
.brk { display: block; height: .9em; }
h4, h5, h6 { height: auto !important; margin-top: 0; }
body > div p, body > div h6 { max-width: 68ch; margin-left: auto; margin-right: auto; }
body > div p, body > div h6 { text-align: left; }
body > div p strong, body > div h6 strong, body > section p strong { font-weight: 600; }
body > nav + div p, body > div .text-center p { text-align: center; }
body > .row-image-txt p { font-size: 1.1rem; line-height: 1.85; margin-left: 0; margin-right: 0; max-width: none; font-weight: 400 !important; }
body > section.bg-white p.lead { text-align: left !important; font-size: 1.1rem; line-height: 1.85; font-weight: 400 !important; max-width: 60ch; }
body > section.bg-white p.lead strong { font-weight: 400; }
body > section.bg-white h3 { text-align: left !important; }
#thermenwartung h6, #thermenwartung h4, #thermenwartung h5 { max-width: 760px; }
#thermenwartung > h4:first-child, #thermenwartung > h2, #thermenwartung > h1, #thermenwartung > h3, #thermenwartung > h5 { text-align: center; }
#thermenwartung h6 { font-size: 1.08rem !important; line-height: 1.9 !important; }
html, body { overflow-x: hidden; max-width: 100%; }
img, table, iframe, video { max-width: 100%; }

@media (max-width: 767px) {
  body > div p, body > div h6 { max-width: 100%; }
  body > div h1, body > div .display-1 { font-size: clamp(1.6rem, 8vw, 2.2rem) !important; hyphens: auto; }
  body > nav.navbar img { width: 110px !important; }
  body > nav.navbar .navbar-nav:last-child .nav-link { padding: 8px 12px !important; font-size: 11px !important; }
  .table-responsive table, .table-responsive tbody { display: block; width: 100%; }
  .table-responsive tr { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 8px; margin-bottom: 8px; }
  .table-responsive td { display: block; border-spacing: 0; min-width: 0; word-break: break-word; }
  .table-responsive table { border-spacing: 0; }
  .row-image-txt > [class*="col-"] { flex: 1 1 100% !important; }
  .btn { padding: 13px 22px !important; font-size: 1rem !important; white-space: normal; text-align: center; }
  #thermenwartung { padding: 48px 16px !important; }
  .sf-contact a { word-break: break-all; }
  .login-col { padding: 20px !important; }
}

/* ---------- Fixes round 2 ---------- */
h4, h5, h6 { margin-top: 0 !important; margin-bottom: 1rem !important; }
body > div h4 + h5, body > div h5 + h6 { margin-top: 0 !important; }
body > div h6[style*="margin-top: -"] { margin-top: 0 !important; }
body > .row-image-txt:has(.table-responsive) div { width: 100% !important; max-width: 100% !important; margin-left: auto !important; margin-right: auto !important; padding-left: 0 !important; padding-right: 0 !important; }
body > .row-image-txt:has(.table-responsive) .table-responsive { max-width: var(--maxw) !important; }
.table-responsive td, .table-responsive td * { font-weight: 600 !important; font-size: 15px !important; }
@media (max-width: 767px) { .table-responsive td, .table-responsive td * { font-size: 13px !important; } }

/* Mobile tile grid: one continuous 2-column grid (no orphan tiles) */
@media (max-width: 767px) {
  .table-responsive tbody { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .table-responsive tr { display: contents !important; }
  .table-responsive td { display: flex !important; align-items: center; justify-content: center; min-height: 58px; margin: 0 !important; text-align: center; }
  .table-responsive td br { display: none; }
}

@media (max-width: 767px) { .table-responsive td br { display: inline !important; } }
.table-responsive td:empty { display: none !important; }
.article-dual-column img { width: 100%; height: auto; border-radius: var(--radius); }

.article-dual-column [style*="url("] { min-height: 380px; background-size: cover !important; background-position: center !important; border-radius: var(--radius); box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.article-dual-column .row { align-items: center; gap: 28px; margin: 0; }
.article-dual-column .row > [class*="col-"] { padding: 0 !important; flex: 1 1 360px !important; }
@media (max-width: 767px) { .article-dual-column [style*="url("] { min-height: 280px; } }
