/* ==========================================================
   KH-UMZUG | Joomla 5 | Cassiopeia Child-Template
   Vollstaendige user.css V12 – Wasserzeichen & Footer optimiert
   ========================================================== */

:root {
    --kh-dark-blue: #142b46;
    --kh-blue: #009fe3;
    --kh-light-blue: #8fd8f6;
    --kh-royal-blue: #103a9b;
    --kh-red: #ce382f;
    --kh-red-hover: #ac2922;
    --kh-logo-width: 257px;
    --kh-line-top: 25px;
    --kh-contact-space: 360px;
    --kh-header-left: 5px;
    --kh-gradient: linear-gradient(90deg, #103a9b 0%, #1556bc 40%, #009fe3 75%, #61cef4 100%);
}

/* Grundheader: deckend, sticky auf Desktop */
.container-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff !important;
    background-image: none !important;
    box-shadow: 0 3px 10px rgba(0,0,0,.10);
    opacity: 1;
    isolation: isolate;
}
.container-header::before { content: none; }

/* Logo */
.container-header .navbar-brand {
    display: block;
    position: relative;
    width: var(--kh-logo-width);
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow: visible;
}
.container-header .navbar-brand img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}
.container-header .navbar-brand::before { content: none; }

/* Gemeinsame Doppellinie: 2px / 2px Abstand / 2px */
.container-header .navbar-brand::after {
    content: "";
    display: block;
    position: absolute;
    left: 100%;
    top: var(--kh-line-top);
    height: 6px;
    background:
        linear-gradient(to right, rgba(143,216,246,1) 0%, rgba(143,216,246,1) 45%, rgba(143,216,246,0) 100%) left top / 100% 2px no-repeat,
        linear-gradient(to right, rgba(143,216,246,1) 0%, rgba(143,216,246,1) 45%, rgba(143,216,246,0) 100%) left bottom / 100% 2px no-repeat;
    pointer-events: none;
    z-index: 0;
}

/* Desktop: Logo 5px vom linken Rand, Menue rechts */
@media (min-width: 992px) {
    .container-header {
        display: grid;
        grid-template-columns: var(--kh-header-left) var(--kh-logo-width) minmax(0,1fr) 5px;
        grid-template-rows: auto 38px;
        align-items: center;
        padding: 14px 0 0;
    }
    .container-header .grid-child:has(.navbar-brand) {
        grid-column: 2;
        grid-row: 1;
        width: var(--kh-logo-width);
        min-width: 0;
        position: relative;
        z-index: 2;
        margin: 0;
        padding: 0;
    }
    .container-header .container-nav {
        grid-column: 3;
        grid-row: 1;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: center;
        gap: 12px;
        width: 100%;
        min-width: 0;
        position: relative;
        z-index: 3;
        margin: 0;
        padding: 0;
    }
    .container-header .container-search {
        order: -1;
        display: flex;
        justify-content: flex-end;
        width: 100%;
        margin: 0;
    }
    .container-header .container-nav nav {
        order: 2;
        display: flex;
        justify-content: flex-end;
        width: 100%;
        margin: 0;
    }
    .container-header .navbar-brand::after {
        width: max(0px, calc(100vw - var(--kh-header-left) - var(--kh-logo-width) - var(--kh-contact-space) - 5px));
    }
}

/* Desktop-Menue */
.container-header .mod-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    gap: 4px;
    color: var(--kh-dark-blue);
}
.container-header .mod-menu > li > a {
    color: var(--kh-dark-blue) !important;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s ease;
}
.container-header .mod-menu > li > a:hover,
.container-header .mod-menu > li > a:focus-visible,
.container-header .mod-menu .active > a,
.container-header .mod-menu .current > a { color: var(--kh-blue) !important; }
.container-header .mod-menu .mm-collapse a,
.container-header .mod-menu .dropdown-menu a { color: var(--kh-dark-blue); }

/* Telefon und Angebot */
.kh-header-contact {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    flex-wrap: wrap;
}
.kh-phone {
    color: var(--kh-dark-blue) !important;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
    transition: color .2s ease;
}
.kh-phone:hover { color: var(--kh-blue) !important; }
.kh-offer-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--kh-red);
    color: #fff !important;
    border-radius: 50px;
    padding: 15px 22px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background-color .2s ease, transform .2s ease;
}
.kh-offer-button:hover {
    background: var(--kh-red-hover);
    color: #fff !important;
    transform: translateY(-1px);
}
.kh-phone:focus-visible,
.kh-offer-button:focus-visible {
    outline: 1px solid var(--kh-blue);
    outline-offset: 1px;
}

/* Unterer 38px-Koenigsblau-Verlauf */
.container-header::after {
    content: "";
    display: block;
    width: 100%;
    height: 38px;
    box-sizing: border-box;
    background: var(--kh-gradient);
    border-top: 4px solid #61cef4;
    pointer-events: none;
}
@media (min-width: 992px) {
    .container-header::after { grid-column: 1 / -1; grid-row: 2; }
}

/* ==========================================================
   MOBIL V9 – Header FEST, Menue als modernes Dropdown-Panel
   Wichtig: Nutzt den bestehenden Joomla/Cassiopeia Toggle.
   ========================================================== */
@media (max-width: 991px) {
    :root { --kh-mobile-header-height: 140px; }

    /* Fixiert statt sticky: kein Verschwinden durch Grid-/Scroll-Container */
    body { padding-top: var(--kh-mobile-header-height) !important; }
    .container-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100%;
        height: var(--kh-mobile-header-height);
        min-height: 0;
        margin: 0 !important;
        padding: 8px 8px 0 !important;
        display: block;
        overflow: visible;
        z-index: 1050;
        background: #fff !important;
        box-shadow: 0 4px 14px rgba(0,0,0,.13);
    }

    .container-header .grid-child:has(.navbar-brand),
    .container-header .container-brand {
        width: auto;
        max-width: none;
        min-width: 0;
        margin: 0 !important;
        padding: 0 !important;
        display: block;
        position: relative;
    }
    .container-header .navbar-brand,
    .container-header .navbar-brand img {
        width: 165px;
        max-width: 100%;
    }
    .container-header .navbar-brand::after {
        width: max(0px, calc(100vw - 190px));
    }

    /* Navigation bleibt innerhalb des festen Headers */
    .container-header .container-nav {
        position: static;
        width: 100%;
        min-width: 0;
        display: block;
        margin: 0 !important;
        padding: 0 !important;
    }
    .container-header .container-nav nav,
    .container-header nav.navbar {
        position: static;
        width: auto;
        display: block;
        margin: 0;
        padding: 0;
    }

    /* Nativer Hamburger oben rechts, optisch moderner */
    .container-header .navbar-toggler {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 13px;
        right: 12px;
        width: 45px;
        height: 43px;
        margin: 0;
        padding: 7px;
        background: #f0f6fb;
        color: var(--kh-dark-blue) !important;
        border: 1px solid #d2e1ec;
        border-radius: 12px;
        box-shadow: 0 1px 4px rgba(0,0,0,.07);
        z-index: 5;
    }
    .container-header .navbar-toggler:hover,
    .container-header .navbar-toggler:focus-visible {
        background: #e2f2fd;
        border-color: var(--kh-blue);
        outline-offset: 2px;
    }

    /* Das von Joomla ein-/ausgeblendete Menue wird ein Panel. */
    .container-header .navbar-collapse {
        position: absolute;
        top: calc(var(--kh-mobile-header-height) - 13px);
        left: 8px;
        right: 8px;
        width: auto;
        max-height: calc(100dvh - var(--kh-mobile-header-height) - 12px);
        overflow-y: auto;
        overscroll-behavior: contain;
        background: #fff;
        border: 1px solid #dae6ef;
        border-top: 3px solid var(--kh-blue);
        border-radius: 0 0 16px 16px;
        box-shadow: 0 14px 30px rgba(20,43,70,.22);
        z-index: 20;
    }
    .container-header .navbar-collapse:not(.show):not(.collapsing) {
        display: none;
    }
    .container-header .navbar-collapse .mod-menu {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 2px;
        width: 100%;
        padding: 10px;
        margin: 0;
    }
    .container-header .navbar-collapse .mod-menu > li {
        width: 100%;
        border-bottom: 1px solid #edf2f6;
    }
    .container-header .navbar-collapse .mod-menu > li:last-child { border-bottom: 0; }
    .container-header .navbar-collapse .mod-menu > li > a {
        display: block;
        padding: 12px 14px;
        min-height: 44px;
        border-radius: 9px;
        font-size: 16px;
        line-height: 1.35;
        color: var(--kh-dark-blue) !important;
    }
    .container-header .navbar-collapse .mod-menu > li > a:hover,
    .container-header .navbar-collapse .mod-menu > li.active > a,
    .container-header .navbar-collapse .mod-menu > li.current > a {
        background: #eaf6fd;
        color: var(--kh-blue) !important;
    }
    /* Aufklappbare Untermenues bleiben bedienbar. */
    .container-header .navbar-collapse .mod-menu .mm-collapse,
    .container-header .navbar-collapse .mod-menu .dropdown-menu {
        position: static;
        box-shadow: none;
        max-width: 100%;
    }

    /* Zweite Zeile: Telefon + Angebot */
    .container-header .container-search {
        position: absolute;
        top: 73px;
        right: 10px;
        left: 10px;
        width: auto;
        margin: 0;
        padding: 0;
        z-index: 3;
    }
    .kh-header-contact {
        justify-content: flex-end;
        flex-wrap: nowrap;
        gap: 9px;
    }
    .kh-phone { font-size: 14px; }
    .kh-offer-button {
        padding: 10px 13px;
        font-size: 13px;
        min-height: 40px;
    }

    /* Farbverlauf bleibt immer unter den sichtbaren Kopfzeilen. */
    .container-header::after {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 13px;
        margin: 0;
        border-top: 2px solid #61cef4;
        background: var(--kh-gradient);
    }
}

/* Besonders schmale Smartphones */
@media (max-width: 380px) {
    .container-header .navbar-brand,
    .container-header .navbar-brand img { width: 146px; }
    .container-header .navbar-brand::after { width: max(0px, calc(100vw - 164px)); }
    .kh-header-contact { gap: 6px; }
    .kh-phone { font-size: 12px; }
    .kh-offer-button { font-size: 12px; padding: 9px 10px; }
}

/* Footer: gleicher Farbverlauf wie der obere Balken */
.container-footer {
    background: var(--kh-gradient) !important;
    background-image: var(--kh-gradient) !important;
    color: #fff;
}
.container-footer .grid-child,
.container-footer .moduletable,
.container-footer .mod-custom { background-color: transparent; }
.container-footer a,
.container-footer a:visited {
    color: #fff;
    text-decoration-color: rgba(255,255,255,.75);
}
.container-footer a:hover,
.container-footer a:focus-visible {
    color: #fff;
    text-decoration: underline;
}
.container-footer a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/* ==========================================================
   WASSERZEICHEN – NUR NEUES FAVICON
   Das bisherige SVG als Body-Hintergrund wurde entfernt.
   ========================================================== */

body.site {
    background-color: #f2f9fd !important;
    background-image: none !important;
}

body.site .site-grid,
body.site .container-component,
body.site .container-main,
body.site main {
    background-color: transparent;
}

/* ==========================================================
   FOOTER V12 – alle Spalten als Gruppe mittig
   Auch bei EINEM Joomla-Modul mit drei HTML-Spalten
   ========================================================== */

.container-footer {
    width: 100%;
    height: auto !important;
    min-height: 0;
    padding: 42px 20px 48px;
    box-sizing: border-box;
    background: var(--kh-gradient) !important;
    background-image: var(--kh-gradient) !important;
    color: #fff;
}

/* Cassiopeia-Grid begrenzen und wirklich mittig platzieren */
.container-footer > .grid-child {
    width: min(100%, 1140px) !important;
    max-width: 1140px !important;
    margin-inline: auto !important;
    padding: 0 !important;
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center !important;
    align-items: flex-start;
    gap: 25px 38px;
    height: auto !important;
}

/* Mehrere separat zugewiesene Footer-Module */
.container-footer > .grid-child > * {
    flex: 0 1 290px;
    min-width: 0;
    max-width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
}

/* Fall: Joomla setzt alle Footer-Spalten in EIN Modul */
.container-footer > .grid-child > :only-child {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
}

/* Typische Bootstrap/Joomla-Reihe in einem HTML-Modul */
.container-footer .mod-custom .row,
.container-footer .moduletable .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center !important;
    align-items: flex-start;
    gap: 22px 36px;
    margin: 0 auto !important;
    width: 100%;
}

.container-footer .mod-custom .row > [class*="col-"],
.container-footer .moduletable .row > [class*="col-"] {
    flex: 0 1 290px;
    width: auto;
    max-width: 100%;
    min-width: 0;
    padding: 0 !important;
}

/* Falls die Spalten direkt in einem einzigen Custom-Modul stehen */
.container-footer .mod-custom:has(> :nth-child(3):last-child) {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-items: center;
    column-gap: 32px;
}

.container-footer .mod-custom:has(> :nth-child(3):last-child) > * {
    width: 100%;
    max-width: 290px;
    margin: 0 !important;
}

.container-footer .mod-custom,
.container-footer .moduletable,
.container-footer .moduletable > div {
    height: auto !important;
    max-width: 100%;
    overflow-wrap: anywhere;
    background: transparent;
}

.container-footer img { max-width: 100%; height: auto; }
.container-footer a,
.container-footer a:visited { color: #fff; }
.container-footer a:hover,
.container-footer a:focus-visible { color: #fff; text-decoration: underline; }

@media (min-width: 992px) {
    .container-footer > .grid-child {
        justify-content: center !important;
    }
}

@media (min-width: 600px) and (max-width: 991px) {
    .container-footer { padding: 34px 20px 42px; }
    .container-footer > .grid-child { gap: 28px; }
    .container-footer > .grid-child > *:not(:only-child) {
        flex: 0 1 43%;
    }
    .container-footer .mod-custom:has(> :nth-child(3):last-child) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px;
    }
}

@media (max-width: 599px) {
    .container-footer { padding: 30px 18px 42px; }
    .container-footer > .grid-child {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }
    .container-footer > .grid-child > * {
        flex: 0 0 auto;
        width: 100%;
        max-width: 420px;
        text-align: center;
    }
    .container-footer .mod-custom .row,
    .container-footer .moduletable .row {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }
    .container-footer .mod-custom .row > [class*="col-"],
    .container-footer .moduletable .row > [class*="col-"] {
        flex: 0 0 auto;
        width: 100%;
        max-width: 420px;
        text-align: center;
    }
    .container-footer .mod-custom:has(> :nth-child(3):last-child) {
        grid-template-columns: 1fr;
        justify-items: center;
        row-gap: 24px;
    }
    .container-footer .mod-custom:has(> :nth-child(3):last-child) > * {
        text-align: center;
    }
}

/* ====================================
   KOHLHUBER – TABELLENLAYOUT
   ==================================== */

.kh-table-page {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 15px 40px;
  color: inherit;
  line-height: 1.7;
  box-sizing: border-box;
}

.kh-table-page *,
.kh-table-page *::before,
.kh-table-page *::after {
  box-sizing: border-box;
}

/* Titelbild */
.kh-title-image {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 30px;
  border-radius: 10px;
}

/* Überschriften */
.kh-table-page h1 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.3;
  margin: 0 0 30px;
}

.kh-table-page h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  line-height: 1.35;
  margin: 0 0 18px;
}

.kh-table-page p {
  margin: 0 0 16px;
  text-align: left;
}

/* Haupttabelle */
.kh-table-page .kh-info-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: transparent;
  border: 0;
}

/* Tabellenzellen */
.kh-table-page .kh-info-table > tbody > tr > td {
  padding: 28px 20px;
  vertical-align: top;
  border: 0;
  border-bottom: 1px solid #d1e3ef;
  background: transparent;
}

/* Bildspalte 35 % */
.kh-table-page .kh-image-cell {
  width: 35%;
  text-align: center;
}

/* Textspalte 65 % */
.kh-table-page .kh-text-cell {
  width: 65%;
  text-align: left;
  overflow-wrap: anywhere;
}

/* Bilder */
.kh-table-page .kh-image-cell img {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  margin: 0 auto 18px;
  border-radius: 8px;
}

/* Zwei Bilder nebeneinander */
.kh-table-page .kh-image-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.kh-table-page .kh-image-pair img {
  width: 100%;
}

/* Leistungslisten */
.kh-table-page .kh-service-list {
  padding-left: 24px;
  margin: 12px 0 22px;
}

.kh-table-page .kh-service-list li {
  padding: 4px 0;
}

/* Tablet */
@media (max-width: 900px) {
  .kh-table-page .kh-info-table > tbody > tr > td {
    padding: 20px 12px;
  }

  .kh-table-page .kh-image-cell {
    width: 38%;
  }

  .kh-table-page .kh-text-cell {
    width: 62%;
  }
}

/* Smartphone */
@media (max-width: 650px) {
  .kh-table-page {
    padding: 8px 12px 30px;
  }

  .kh-table-page .kh-info-table,
  .kh-table-page .kh-info-table tbody,
  .kh-table-page .kh-info-table tr,
  .kh-table-page .kh-info-table td {
    display: block;
    width: 100%;
  }

  .kh-table-page .kh-info-table > tbody > tr {
    padding: 22px 0;
    border-bottom: 1px solid #d1e3ef;
  }

  .kh-table-page .kh-info-table > tbody > tr > td {
    padding: 0;
    border: 0;
  }

  .kh-table-page .kh-image-cell {
    margin-bottom: 16px;
  }

  .kh-table-page .kh-image-cell:empty {
    display: none;
  }

  .kh-table-page .kh-image-cell img {
    max-width: 100%;
  }

  .kh-table-page .kh-text-cell {
    text-align: left;
  }

  .kh-table-page .kh-text-cell h2 {
    margin-top: 0;
  }
}


/* KOHLHUBER FOOTER */

.kh-footer-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 25px 20px;
  box-sizing: border-box;
  background: linear-gradient(
    135deg,
    #dceef9 0%,
    #eef7fd 50%,
    #dceef9 100%
  );
  border-radius: 12px;
}

.kh-footer-table {
  width: 100%;
  margin: 0 auto;
  border-collapse: collapse;
  table-layout: fixed;
  background: transparent;
}

.kh-footer-table td {
  width: 33.333%;
  padding: 15px 24px;
  vertical-align: top;
  text-align: left;
  border: none;
  background: transparent;
  color: #173b59;
  font-size: 16px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.kh-footer-table h3 {
  margin: 0 0 15px;
  color: #124d7d;
  font-size: 19px;
  font-weight: 700;
}

.kh-footer-table p {
  margin: 0 0 14px;
}

/* Footer Links – Dunkelblau bis Schwarz */
.kh-footer-table a:hover,
.kh-footer-table a:focus-visible {
  color: #061525 !important;
  text-decoration: underline;
  transition: color 0.3s ease;
}

/* Normalzustand */
.kh-footer-table a {
  color: #124d7d;
  transition: color 0.3s ease;
}

/* Tablet */
@media (max-width: 900px) {
  .kh-footer-table td {
    padding: 12px;
    font-size: 15px;
  }
}

/* Smartphone */
@media (max-width: 650px) {
  .kh-footer-wrapper {
    padding: 20px 15px;
  }

  .kh-footer-table,
  .kh-footer-table tbody,
  .kh-footer-table tr,
  .kh-footer-table td {
    display: block;
    width: 100%;
  }

  .kh-footer-table td {
    text-align: center;
    padding: 18px 5px;
    border-bottom: 1px solid #c5ddeb;
  }

  .kh-footer-table td:last-child {
    border-bottom: none;
  }

  .kh-footer-table h3 {
    font-size: 18px;
  }
}
/* Home1 – Originalseiten zusammengeführt */

.kh-original-home {
  width: 100%;
  max-width: 1185px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

/* Vorhandenes Titelbild */
.kh-home-title-image {
  text-align: center;
  margin: 0 0 25px;
}

.kh-home-title-image img {
  display: block;
  width: 100%;
  max-width: 1185px;
  height: auto;
  margin: 0 auto;
}

/* Haupttabelle */
.kh-original-table {
  width: 100%;
  margin: 0 auto;
  border-collapse: collapse;
  background: transparent;
  table-layout: fixed;
}

/* Beide Spalten */
.kh-original-table > tbody > tr > td {
  vertical-align: top;
  padding: 20px 15px;
  border: 0;
  border-bottom: 1px solid #c6dce9;
  background: transparent;
}

/* Bildspalte */
.kh-original-images {
  width: 300px;
  text-align: left;
}

/* Originalbilder */
.kh-original-images img {
  max-width: 100%;
  height: auto;
  margin: 0 0 20px;
  display: block;
}

/* Textspalte */
.kh-original-text {
  text-align: left;
  overflow-wrap: break-word;
}

.kh-original-text h2 {
  margin-top: 0;
}

.kh-original-text p {
  margin-bottom: 15px;
  text-align: left;
}

.kh-original-text hr {
  margin: 20px 0;
}

/* Smartphone */
@media (max-width: 650px) {
  .kh-original-table,
  .kh-original-table tbody,
  .kh-original-table tr,
  .kh-original-table td {
    display: block;
    width: 100% !important;
  }

  .kh-original-table > tbody > tr > td {
    padding: 15px 8px;
  }

  .kh-original-images img {
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }

  .kh-original-text {
    padding-top: 0 !important;
  }
}

/* ==========================================
   KOHLHUBER HOME1
   MOBILE HOCHKANT – BILDER HORIZONTAL
   ========================================== */

@media screen and (max-width: 700px)
       and (orientation: portrait) {

  /* Tabelle untereinander darstellen */
  .kh-home1-original-tabelle,
  .kh-home1-original-tabelle tbody,
  .kh-home1-original-tabelle tr,
  .kh-home1-original-tabelle td {
    display: block;
    width: 100% !important;
    box-sizing: border-box;
  }

  /* Bildspalte wird horizontale Bilderleiste */
  .kh-home1-original-tabelle
  > tbody > tr > td.kh-home1-bilder {

    display: flex !important;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;

    width: 100% !important;
    min-width: 0;

    gap: 12px;
    padding: 10px 0 16px;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x proximity;
    scroll-behavior: smooth;

    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;

    scrollbar-width: thin;
    scrollbar-color: #1b6ba8 transparent;
  }

  /* Vorhandene Bildabsätze auflösen,
     damit jedes Bild einzeln verschiebbar ist */
  .kh-home1-original-tabelle
  .kh-home1-bilder > p {
    display: contents !important;
  }

  /* Originalbilder unverzerrt lassen */
  .kh-home1-original-tabelle
  .kh-home1-bilder img {

    display: block !important;

    flex: 0 0 auto;

    max-width: min(300px, 78vw) !important;
    height: auto !important;

    margin: 0 !important;

    object-fit: contain;

    scroll-snap-align: start;

    border-radius: 6px;
  }

  /* Text unter der Bilderleiste */
  .kh-home1-original-tabelle
  > tbody > tr > td.kh-home1-text {

    display: block !important;
    width: 100% !important;

    padding: 18px 8px 30px !important;

    text-align: left;
    overflow-wrap: break-word;
  }

  /* Schriftgrößen nicht verändern */
  .kh-home1-text p {
    line-height: 1.7;
  }

  /* Abstand zwischen den Themen */
  .kh-home1-original-tabelle
  > tbody > tr {
    margin-bottom: 30px;
    border-bottom: 1px solid #c6dce9;
  }

  /* Dezenter horizontaler Scrollbalken */
  .kh-home1-bilder::-webkit-scrollbar {
    height: 5px;
  }

  .kh-home1-bilder::-webkit-scrollbar-thumb {
    background: #1b6ba8;
    border-radius: 10px;
  }
}

/* ==========================================
   KOHLHUBER – KONTAKTSEITE
   Mittig ausrichten
   Kontaktüberschriften und Kontaktdaten ausblenden
   ========================================== */

/* Beide Kontakt-Überschriften und
   den gesamten Kontaktdatenblock ausblenden */

body.com_contact.view-contact
.com-contact > .page-header,

body.com_contact.view-contact
.com-contact > .com-contact__container {
  display: none !important;
}

/* Gesamten Kontaktformular-Bereich zentrieren */

body.com_contact.view-contact .com-contact {
  width: 100% !important;
  max-width: 820px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 35px 20px 55px !important;
  box-sizing: border-box;
}

/* Kontaktformular-Überschrift mittig */

body.com_contact.view-contact
.com-contact > h2 {
  text-align: center !important;
  margin: 0 0 30px !important;
}

/* Formular mittig ausrichten */

body.com_contact.view-contact
.com-contact__form,

body.com_contact.view-contact
.com-contact__form form {
  width: 100% !important;
  max-width: 760px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box;
}

/* Eingabefelder volle Breite */

body.com_contact.view-contact
.com-contact__form .form-control {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Formulartexte linksbündig */

body.com_contact.view-contact
.com-contact__form .control-label,

body.com_contact.view-contact
.com-contact__form .controls {
  text-align: left;
}

/* Abstände der Felder */

body.com_contact.view-contact
.com-contact__form .control-group {
  margin-bottom: 18px;
}

/* Smartphone */

@media (max-width: 650px) {

  body.com_contact.view-contact .com-contact {
    width: 100% !important;
    padding: 20px 12px 35px !important;
  }

  body.com_contact.view-contact
  .com-contact__form {
    width: 100%;
    padding: 0;
  }

  body.com_contact.view-contact
  .com-contact > h2 {
    font-size: 1.6rem;
    text-align: center;
  }
}

/* =====================================
   KOHLHUBER FOOTER
   Schrift: Fett und Tiefschwarz
   ===================================== */

/* Alle Texte und Überschriften */
.kh-footer-wrapper,
.kh-footer-table,
.kh-footer-table td,
.kh-footer-table h3,
.kh-footer-table p,
.kh-footer-table strong {
  color: #000000 !important;
  font-weight: 700 !important;
}

/* Links ebenfalls fett und schwarz */
.kh-footer-table a,
.kh-footer-table a:visited {
  color: #000000 !important;
  font-weight: 700 !important;
  text-decoration: underline;
}

/* Hover: Schwarz */
.kh-footer-table a:hover,
.kh-footer-table a:focus-visible {
  color: #000000 !important;
  font-weight: 700 !important;
  text-decoration-thickness: 2px;
}

/* Überschriften etwas hervorheben */
.kh-footer-table h3 {
  font-weight: 800 !important;
}

/* Hintergrund weiterhin transparent */
.kh-footer-wrapper,
.kh-footer-table,
.kh-footer-table td {
  background: transparent !important;
  box-shadow: none !important;
}
/* ==========================================
   KOHLHUBER – WASSERZEICHEN
   Immer vertikal mittig beim Scrollen
   ========================================== */

.site-grid::before {
  content: "";
  position: fixed !important;

  /* Vertikale Bildschirmmitte */
  top: 50% !important;
  transform: translateY(-50%);

  /* Rechts positioniert */
  right: 30px;

  /* Originalgröße */
  width: 320px;
  height: 320px;

  /* Bestehendes Favicon */
  background-image: url("/images/KH/favicon-watermark.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  /* Dezentes Wasserzeichen */
  opacity: 0.10;

  pointer-events: none;
  z-index: 0;
}

/* Webseiteninhalt bleibt darüber */
.site-grid > * {
  position: relative;
  z-index: 1;
}

/* Anpassung für Smartphones */
@media (max-width: 650px) {
  .site-grid::before {
    width: 200px;
    height: 200px;
    right: 10px;
  }
}

/* ==========================================
   KOHLHUBER – FOOTER V14
   Hellblau, kompakt, mit Trennlinien
   ========================================== */

/* Gesamter Footer hellblau */
.container-footer {
  background: linear-gradient(
    90deg,
    #d5ecfa 0%,
    #e8f6fd 50%,
    #d5ecfa 100%
  ) !important;

  background-image: linear-gradient(
    90deg,
    #d5ecfa 0%,
    #e8f6fd 50%,
    #d5ecfa 100%
  ) !important;

  padding: 18px 15px 12px !important;
  border-top: 2px solid #8fd8f6;
  min-height: 0 !important;
}

/* Inhalt mittig */
.container-footer > .grid-child {
  width: 100% !important;
  max-width: 1100px !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

/* Kein zusätzlicher Innenkasten */
.container-footer .kh-footer-wrapper {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Drei Spalten */
.kh-footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
  align-items: start;
}

/* Tiefschwarze Schrift */
.container-footer .kh-footer-col,
.container-footer .kh-footer-col p,
.container-footer .kh-footer-col h3,
.container-footer .kh-footer-col a {
  color: #000000 !important;
  font-weight: 700 !important;
}

/* Überschriften mit Linie */
.kh-footer-col h3 {
  font-size: 16px !important;
  font-weight: 800 !important;
  margin: 0 0 10px !important;
  line-height: 1.3;
}

.kh-footer-col h3::after {
  content: "";
  display: block;
  width: 140px;
  max-width: 85%;
  height: 2px;
  margin-top: 6px;
  background: #124d7d;
}

/* Texte kompakt */
.kh-footer-col p {
  font-size: 14px !important;
  line-height: 1.4 !important;
  margin: 0 0 7px !important;
  overflow-wrap: anywhere;
}

/* Links */
.kh-footer-col a {
  text-decoration: none;
}

.kh-footer-col a:hover,
.kh-footer-col a:focus-visible {
  color: #124d7d !important;
  text-decoration: underline;
}

/* Copyright mit horizontaler Trennlinie */
.kh-footer-copyright {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #91bcd7;

  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  color: #000000 !important;
  font-weight: 700 !important;
}

.kh-footer-separator {
  padding: 0 7px;
}

/* Tablet */
@media (min-width: 651px) and (max-width: 900px) {
  .kh-footer-grid {
    gap: 16px;
  }

  .kh-footer-col p {
    font-size: 13px !important;
  }
}

/* Smartphone */
@media (max-width: 650px) {
  .container-footer {
    padding: 16px 12px 12px !important;
  }

  .kh-footer-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    text-align: center;
  }

  .kh-footer-col h3::after {
    margin: 6px auto 0;
  }

  .kh-footer-col p {
    margin-bottom: 6px !important;
  }

  .kh-footer-copyright {
    font-size: 11px;
    margin-top: 10px;
  }
}

/* Kohlhuber Karte – Joomla 5 | in media/templates/site/cassiopeia/css/user.css einfügen */
.kh-location, .kh-location *{box-sizing:border-box}
.kh-location{--kh-accent:#1687bd;--kh-ink:#193e55;--kh-muted:#547589;--kh-stroke:#cce7f4;max-width:1160px;margin:0 auto 50px;padding:clamp(15px,3vw,30px);border-radius:24px;background:linear-gradient(150deg,#f1faff 0%,#e9f6fd 53%,#f7fcff 100%);color:var(--kh-ink);font-family:inherit}
.kh-location .kh-location__intro{padding:12px 12px 22px}
.kh-location .kh-location__kicker{color:#147bad;font-size:.82rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;margin:0 0 8px}
.kh-location .kh-location__intro h1{font-size:clamp(1.7rem,3.1vw,2.6rem);line-height:1.17;color:var(--kh-ink);margin:0 0 10px;font-weight:750}
.kh-location .kh-location__intro p{color:var(--kh-muted);font-size:1rem;line-height:1.6;margin:0}
.kh-location .kh-location__panel{overflow:hidden;border-radius:18px;background:#fff;border:1px solid var(--kh-stroke);box-shadow:0 12px 32px rgba(25,80,115,.08)}
.kh-location .kh-location__map{position:relative;min-height:370px;background:radial-gradient(circle at 25% 25%,rgba(255,255,255,.8),transparent 38%),linear-gradient(135deg,#dbeef9,#bcdff1);display:flex;align-items:center;justify-content:center;text-align:center;padding:28px}
.kh-location .kh-location__map:before{content:'';position:absolute;inset:0;opacity:.15;background-image:linear-gradient(90deg,#4686a7 1px,transparent 1px),linear-gradient(#4686a7 1px,transparent 1px);background-size:45px 45px;pointer-events:none}
.kh-location .kh-location__consent{position:relative;z-index:1;background:rgba(255,255,255,.96);border:1px solid #d0e7f3;border-radius:16px;padding:25px;max-width:530px;box-shadow:0 10px 28px rgba(20,70,100,.08)}
.kh-location .kh-location__pin{display:grid;place-items:center;font-size:27px;width:52px;height:52px;border-radius:50%;background:#e5f5fc;margin:0 auto 12px;color:var(--kh-accent)}
.kh-location .kh-location__consent h2{font-size:1.32rem;margin:0 0 7px;color:var(--kh-ink)}
.kh-location .kh-location__consent p{color:var(--kh-muted);line-height:1.55;font-size:.92rem;margin:0 0 16px}
.kh-location .kh-location__button{display:inline-flex;align-items:center;justify-content:center;gap:9px;text-align:center;min-height:46px;border:1px solid #1280b9;background:var(--kh-accent);color:white!important;border-radius:11px;padding:11px 22px;font:inherit;font-size:.96rem;font-weight:700;text-decoration:none!important;cursor:pointer;transition:background .2s ease,box-shadow .2s ease}
.kh-location .kh-location__button:hover{background:#0d6697;color:#fff!important;box-shadow:0 5px 13px rgba(18,128,185,.22)}
.kh-location .kh-location__button:focus-visible{outline:3px solid #f5ad35;outline-offset:3px}
.kh-location .kh-location__frame{display:block;width:100%;height:370px;border:0}
.kh-location .kh-location__details{display:grid;grid-template-columns:1.45fr 1fr;gap:0;padding:24px 26px}
.kh-location .kh-location__address{padding-right:20px;border-right:1px solid #dcecf4}
.kh-location .kh-location__section-head{display:flex;align-items:center;gap:11px;margin-bottom:11px}
.kh-location .kh-location__icon{width:38px;height:38px;display:grid;place-items:center;flex-shrink:0;background:#e8f6fe;border-radius:11px;color:#137eaf;font-size:20px}
.kh-location .kh-location__section-head h2{font-size:1.08rem;color:var(--kh-ink);margin:0;font-weight:700}
.kh-location .kh-location__address p,.kh-location .kh-location__meta p{line-height:1.55;font-size:.96rem;margin:0 0 0 49px;color:var(--kh-muted)}
.kh-location .kh-location__address strong{color:var(--kh-ink)}
.kh-location .kh-location__right{display:grid;grid-template-columns:1fr;gap:20px;padding-left:22px}
.kh-location .kh-location__meta a{color:#096fa6;text-decoration:none}
.kh-location .kh-location__meta a:hover{text-decoration:underline}
.kh-location .kh-location__action-area{border-top:1px solid #e5f1f7;padding:19px 25px 23px;display:grid;gap:9px}
.kh-location .kh-location__route{width:100%;font-size:1rem}
.kh-location .kh-location__notice{margin:0;text-align:center;color:#668395;font-size:.78rem;line-height:1.5}
@media(max-width:720px){.kh-location{padding:14px;border-radius:16px}.kh-location .kh-location__intro{padding:12px 7px 17px}.kh-location .kh-location__map,.kh-location .kh-location__frame{min-height:310px;height:310px}.kh-location .kh-location__details{grid-template-columns:1fr;padding:21px 18px;gap:22px}.kh-location .kh-location__address{padding:0;border-right:0}.kh-location .kh-location__right{padding:19px 0 0;border-top:1px solid #dcecf4}.kh-location .kh-location__action-area{padding:16px}.kh-location .kh-location__consent{padding:18px}}
@media(prefers-reduced-motion:reduce){.kh-location .kh-location__button{transition:none}}

/* ==========================================
   KOHLHUBER – DOPPELSTRICHE MOBIL FIX
   Desktop bleibt unverändert bei 25px
   ========================================== */

@media (max-width: 991px) {
    .container-header .navbar-brand::after {
        top: 15px;
    }
}