
#kurslist-builder-root {
    padding: 20px;
    background: #fff;
}
table.kurs-grid {
    border-collapse: collapse;
    width: 100%;
    margin-top: 10px;
}
table.kurs-grid td {
    border: 1px solid #ddd;
    padding: 5px;
    text-align: center;
}
td input, td select {
    width: 100%;
}
.k3-force-fullwidth {
    max-width: unset !important;
    width: 100% !important;
}
.kurs-template-search-highlight {
    background: #ffef65;
    padding: 0 2px;
}

.k3-action-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    background: #c2187a;
    color: #fff;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
}

.k3-action-pill--center {
    justify-content: center;
}

.k3-action-pill:hover,
.k3-action-pill:focus-visible {
    color: #fff;
    text-decoration: none;
}

.k3-details-link {
    color: #0077c8;
    text-decoration: underline;
    font-weight: 600;
}

.k3-cell-icon {
    margin-right: 5px;
}

.kurs-template-search-empty[hidden] {
    display: none !important;
}

.k3-course-timeline-status {
    margin: 0;
    padding: 12px 4px;
    color: #30485f;
    line-height: 1.45;
}

.k3-course-timeline-status--error {
    color: #9b1c3a;
}

.k3-course-timeline-status--loading {
    color: #4a5568;
}

.kurs-template-loading {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    max-width: 42rem;
    margin: 1.25rem 0 1.75rem;
    padding: 0.25rem 0;
}

.kurs-template-loading__label {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #4a5568;
}

.kurs-template-loading__track {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 0.4rem;
    border-radius: 999px;
    background: #e6edf5;
}

.kurs-template-loading__bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2f6fed 0%, #5b9bff 100%);
    animation: kurs-template-loading-slide 1.15s ease-in-out infinite;
}

@keyframes kurs-template-loading-slide {
    0% {
        transform: translateX(-120%);
    }
    100% {
        transform: translateX(280%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .kurs-template-loading__bar {
        width: 100%;
        animation: none;
        opacity: 0.7;
    }
}

.kurslist-cell-has-overlay {
    position: relative;
    overflow: visible;
}

.kurslist-cell-overlay {
    position: absolute;
    z-index: 3;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    --overlay-base-transform: translate3d(0, 0, 0);
    transform: var(--overlay-base-transform);
}

.kurslist-cell-overlay.overlay-pos-top-left { top: 8px; left: 8px; }
.kurslist-cell-overlay.overlay-pos-top-right { top: 8px; right: 8px; }
.kurslist-cell-overlay.overlay-pos-bottom-left { bottom: 8px; left: 8px; }
.kurslist-cell-overlay.overlay-pos-bottom-right { bottom: 8px; right: 8px; }
.kurslist-cell-overlay.overlay-pos-center {
    top: 50%;
    left: 50%;
    --overlay-base-transform: translate(-50%, -50%);
}

.kurslist-cell-overlay.kurslist-overlay-hover {
    opacity: 0;
    transform: var(--overlay-base-transform) translateY(-6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.kurslist-cell-has-overlay:hover .kurslist-cell-overlay.kurslist-overlay-hover,
.kurslist-cell-has-overlay:focus-within .kurslist-cell-overlay.kurslist-overlay-hover {
    opacity: 1;
    transform: var(--overlay-base-transform);
}

@media (hover: none) {
    .kurslist-cell-overlay.kurslist-overlay-hover {
        opacity: 1;
        transform: var(--overlay-base-transform);
    }
}

@keyframes kurslistFadeIn { from { opacity: 0; transform: translate3d(0, 8px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
@keyframes kurslistSlideUp { from { opacity: 0; transform: translate3d(0, 15px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
@keyframes kurslistZoomIn { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: scale(1); } }
@keyframes kurslistPulse { 0% { transform: scale(1); } 50% { transform: scale(1.02); } 100% { transform: scale(1); } }

.kurslist-anim-fade-in { animation: kurslistFadeIn 0.6s ease both; }
.kurslist-anim-slide-up { animation: kurslistSlideUp 0.6s ease both; }
.kurslist-anim-zoom-in { animation: kurslistZoomIn 0.5s ease both; }
.kurslist-anim-pulse { animation: kurslistPulse 1.2s ease infinite; }

.kurs-template-filter-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: end;
    margin: 0 0 10px;
}

.kurs-template-endless {
    display: flex;
    justify-content: center;
    padding: 20px 12px 28px;
    position: relative;
}

.kurs-template-endless[hidden] {
    display: none !important;
}

.kurs-template-endless-sentinel {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
    opacity: 0;
}

.kurs-template-endless-panel {
    text-align: center;
    color: #4a5568;
    font-size: 0.9rem;
}

.kurs-template-endless-panel p {
    margin: 0;
}

.kurs-template-rendered[data-k3-page-size]:not([data-k3-list-booted]) .kurs-template-item:nth-child(n+26) {
    display: none;
}

.kurs-template-search-wrapper,
.kurs-template-quickfilter-wrapper {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    min-width: 180px;
}

.kurs-template-search-label,
.kurs-template-quickfilter-label {
    font-family: var(--ktpl-control-font, inherit);
    color: var(--ktpl-control-label, var(--ktpl-control-text, #334155));
    font-size: 0.95em;
    font-weight: 600;
}

.kurs-template-search-input,
.kurs-template-quickfilter-select {
    font-family: var(--ktpl-control-font, inherit);
    color: var(--ktpl-control-text, #1f2937);
    background: var(--ktpl-control-bg, #ffffff);
    border: 1px solid var(--ktpl-control-border, rgba(31, 41, 55, 0.35));
    border-radius: 6px;
    padding: 6px 10px;
    min-height: 36px;
    line-height: 1.2;
}

.kurs-template-search-input::placeholder {
    color: var(--ktpl-control-text, #1f2937);
    opacity: 0.7;
}

.kurs-template-search-input:focus,
.kurs-template-quickfilter-select:focus {
    outline: none;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--ktpl-control-border, #64748b) 35%, transparent);
}

.k3-date-range-with-details {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
}

.k3-timeline-separator {
    display: inline-block;
    color: inherit;
    opacity: 0.85;
    margin: 0 0.1ch;
}

.k3-timeline-trigger {
    border: 0;
    background: transparent;
    color: #0f4c81;
    cursor: pointer;
    padding: 0;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.k3-timeline-trigger:hover,
.k3-timeline-trigger:focus-visible {
    color: #08365b;
}

.k3-course-timeline-open {
    overflow: hidden;
}

.k3-course-timeline-drawer {
    position: fixed;
    inset: 0;
    z-index: 99999;
    pointer-events: none;
}

.k3-course-timeline-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.38);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.k3-course-timeline-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: min(560px, 92vw);
    background: #ffffff;
    box-shadow: -16px 0 40px rgba(15, 23, 42, 0.22);
    transform: translateX(100%);
    transition: transform 0.28s ease;
    display: flex;
    flex-direction: column;
}

.k3-course-timeline-drawer.is-open {
    pointer-events: auto;
}

.k3-course-timeline-drawer.is-open .k3-course-timeline-drawer__backdrop {
    opacity: 1;
}

.k3-course-timeline-drawer.is-open .k3-course-timeline-drawer__panel {
    transform: translateX(0);
}

.k3-course-timeline-drawer__header,
.k3-course-timeline-drawer__footer {
    padding: 18px 22px;
    border-bottom: 1px solid #d7e0ea;
}

.k3-course-timeline-drawer__footer {
    border-top: 1px solid #d7e0ea;
    border-bottom: 0;
    margin-top: auto;
}

.k3-course-timeline-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.k3-course-timeline-drawer__title {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.25;
    color: #18364d;
}

.k3-course-timeline-drawer__close,
.k3-course-timeline-drawer__button {
    border: 0;
    border-radius: 999px;
    background: #c2187a;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    line-height: 1;
}

.k3-course-timeline-drawer__close {
    width: 38px;
    height: 38px;
    font-size: 1.4rem;
}

.k3-course-timeline-drawer__button {
    padding: 12px 18px;
}

.k3-course-timeline-drawer__body {
    padding: 20px 22px;
    overflow: auto;
}

.k3-course-timeline-table-wrap {
    overflow-x: auto;
}

.k3-course-timeline-table {
    width: 100%;
    border-collapse: collapse;
    color: #30485f;
}

.k3-course-timeline-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #d9e3ec;
    vertical-align: top;
}

@media (max-width: 640px) {
    .k3-course-timeline-drawer__panel {
        width: 100vw;
    }

    .k3-course-timeline-drawer__header,
    .k3-course-timeline-drawer__body,
    .k3-course-timeline-drawer__footer {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* Keep the hero container full width of the title bar, then center that boxed column.
   margin: 0 pinned the heading to the left once the section is no longer a flex row. */
.elementor-829 .elementor-element.elementor-element-883bc9e {
    display: block !important;
}

.elementor-829 .elementor-element.elementor-element-883bc9e > .elementor-container {
    display: block !important;
    width: 100% !important;
    max-width: 1290px;
    margin-left: auto !important;
    margin-right: auto !important;
}

.elementor-829 .elementor-element.elementor-element-883bc9e > .elementor-container > .elementor-column.elementor-element-b4f635b {
    width: 100% !important;
    max-width: 100% !important;
    flex-basis: 100% !important;
}

/* Benutzerkonto page (id 21): tighten hero gap and make login/register switchable. */
.page-id-21 .elementor-element-883bc9e {
    padding-top: 110px !important;
    padding-bottom: 30px !important;
}

.page-id-21 .elementor-element-209e967 .elementor-element-19b8168 {
    display: none !important;
}

.page-id-21 .elementor-element-209e967 {
    margin-top: 24px !important;
}

.page-id-21 .elementor-element-209e967 .elementor-element-cebcece {
    margin-left: 0 !important;
}

/* Benutzerkonto tab switcher: see k3-api-login-widget/assets/benutzerkonto/benutzerkonto.css */

.page-id-21 .elementor-element-209e967 .k3-panel-hidden {
    display: none !important;
}

/* [k3_benutzerkonto] shortcode includes tabs; hide duplicate Elementor login/register widgets. */
body:has(.k3-benutzerkonto) .elementor-element-cebcece:not(:has(.k3-benutzerkonto)),
body:has(.k3-benutzerkonto) .elementor-element-0fa9ce5 {
    display: none !important;
}

@media (max-width: 767px) {
    .page-id-21 .elementor-element-883bc9e {
        padding-top: 86px !important;
    }

}

/* Template baseline: keep Elementor bottom waves visible on all locales and pages. */
.k3-account-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 8px 0 20px;
    padding: 5px;
    background: #eaf2f8;
    border: 1px solid #c7d9e8;
    border-radius: 999px;
    box-sizing: border-box;
    width: 100%;
    max-width: 420px;
}

.k3-account-switcher__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #5c7690;
    border-radius: 999px;
    padding: 11px 16px;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

.k3-account-switcher__btn.is-active {
    flex: 0 0 auto;
    background: #ffffff;
    color: #0f2d44;
    font-weight: 700;
    box-shadow:
        0 1px 3px rgba(15, 45, 68, 0.14),
        0 0 0 1px rgba(15, 45, 68, 0.06);
}

.k3-account-switcher__btn:not(.is-active) {
    flex: 1 1 auto;
}

.k3-panel-hidden {
    display: none !important;
}

@media (max-width: 767px) {
    .k3-account-switcher {
        width: 100%;
        border-radius: 14px;
    }

    .k3-account-switcher__btn {
        flex: 1 1 50%;
        text-align: center;
        min-height: 42px;
    }
}

.kurslist-composite-line--primary {
    font-weight: 600;
}

.kurslist-composite-line--secondary {
    color: #646970;
    font-size: 0.95em;
}

.kurslist-composite-line + .kurslist-composite-line {
    margin-top: 0.2em;
}

.kurs-template-preview[data-template^="location-"] .kurs-grid {
    border-collapse: separate;
    border-spacing: 0;
    font-family: Segoe UI, Arial, sans-serif;
}

.kurs-template-preview[data-template^="location-"] .kurs-grid td {
    border-left: 0;
    border-right: 0;
    border-top: 0;
}

.kurs-template-rendered table.kurslist-block-alt {
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}

.kurs-template-rendered table.kurslist-block-alt--odd {
    background-color: #ffffff;
}

.kurs-template-rendered table.kurslist-block-alt--even {
    background-color: #eef4fb;
}

.kurs-template-rendered table {
    table-layout: auto;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.kurs-template-rendered td.kurslist-cell {
    vertical-align: top;
}

.kurs-template-rendered td.kurslist-cell img {
    display: block;
    max-width: 100%;
    height: auto;
}

.kurs-template-preview[data-template^="location-"] .kurs-grid td a,
.kurs-template-preview[data-template="kursorte_template"] .kurs-grid td a,
.kurs-template-rendered table.kurslist-block-alt a {
    color: #0077c8;
    text-decoration: underline;
    font-weight: 600;
}

/* Kursorte page: remove decorative Elementor section background */
body.page-id-7965 .elementor-element.elementor-element-bee51c4:not(.elementor-motion-effects-element-type-background),
body.page-id-7965 .elementor-element.elementor-element-bee51c4 > .elementor-motion-effects-container > .elementor-motion-effects-layer {
    background-image: none !important;
    background-color: transparent !important;
}

body.page-id-7965 .elementor-element.elementor-element-bee51c4 > .elementor-background-overlay {
    display: none !important;
    opacity: 0 !important;
}

/* Kursorte: map matches location list width with spacing below */
body.page-id-7965 .locationtpl-map.locationtpl-map-all {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 28px !important;
    border-radius: 28px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.20) !important;
}

body.page-id-7965 .elementor-widget-shortcode .locationtpl-map {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 28px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.20) !important;
}

body.page-id-7965 .locationtpl-map .leaflet-container,
body.page-id-7965 .locationtpl-map iframe {
    border-radius: 28px;
}

body.page-id-7965 .locationtpl-shortcode-title {
    margin-top: 32px !important;
    margin-bottom: 20px !important;
    color: #5b6876;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

body.page-id-7965 .elementor-element-k3sc0001 {
    margin-top: 12px;
}

/* Kursorte: alternating location card backgrounds */
body.page-id-7965 .kurs-template-rendered table.kurslist-block-alt--odd,
body.page-id-7965 .locationtpl-rendered table.kurslist-block-alt--odd {
    background-color: #ffffff !important;
}

body.page-id-7965 .kurs-template-rendered table.kurslist-block-alt--even,
body.page-id-7965 .locationtpl-rendered table.kurslist-block-alt--even {
    background-color: #eef4fb !important;
}

body.page-id-7965 .kurs-template-rendered table.kurslist-block-alt,
body.page-id-7965 .locationtpl-rendered table.kurslist-block-alt {
    padding: 0 !important;
    border: 1px solid #d4dce4 !important;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
    margin-bottom: 16px;
    border-collapse: separate !important;
    border-spacing: 0;
}

body.page-id-7965 .locationtpl-shortcode-wrapper .locationtpl-rendered table.kurslist-block-alt td,
body.page-id-7965 .locationtpl-shortcode-wrapper .locationtpl-rendered table.kurslist-block-alt th {
    border: none !important;
    padding: 8px 16px !important;
    vertical-align: top;
}

body.page-id-7965 .locationtpl-shortcode-wrapper .locationtpl-rendered td[data-cell-id="r0-c0"] {
    display: none !important;
    width: 0 !important;
    padding: 0 !important;
    border: none !important;
}

body.page-id-7965 .locationtpl-shortcode-wrapper .locationtpl-rendered table.kurslist-block-alt td[data-cell-id="r0-c1"] {
    padding: 12px 16px 10px !important;
    border-bottom: 1px solid #d4dce4 !important;
}

body.page-id-7965 .locationtpl-shortcode-wrapper .locationtpl-rendered table.kurslist-block-alt td[data-cell-id="r1-c1"],
body.page-id-7965 .locationtpl-shortcode-wrapper .locationtpl-rendered table.kurslist-block-alt td[data-cell-id="r1-c2"] {
    padding: 8px 16px !important;
    border-bottom: 1px solid #d4dce4 !important;
}

body.page-id-7965 .locationtpl-shortcode-wrapper .locationtpl-rendered table.kurslist-block-alt td[data-cell-id="r1-c1"] {
    border-right: 1px solid #d4dce4 !important;
}

body.page-id-7965 .locationtpl-shortcode-wrapper .locationtpl-rendered table.kurslist-block-alt tr:last-child td,
body.page-id-7965 .locationtpl-shortcode-wrapper .locationtpl-rendered table.kurslist-block-alt td[data-cell-id="r2-c1"] {
    border-bottom: none !important;
}

body.page-id-7965 .locationtpl-shortcode-wrapper .locationtpl-rendered table.kurslist-block-alt td[data-cell-id="r0-c0"] {
    border-bottom: none !important;
}

body.page-id-7965 .locationtpl-shortcode-wrapper .locationtpl-rendered table.kurslist-block-alt td[data-cell-id="r2-c1"] {
    padding: 16px 18px 18px !important;
}

body.page-id-7965 .kurs-template-rendered table.kurslist-block-alt:last-child,
body.page-id-7965 .locationtpl-rendered table.kurslist-block-alt:last-child {
    margin-bottom: 0;
}

/* Kursorte: location-template card layout */
body.page-id-7965 .kurs-template-rendered[data-template="location-template"] td[data-cell-id="r0-c0"] {
    width: 170px;
    min-width: 170px;
    max-width: 170px;
    vertical-align: middle;
    padding-right: 20px !important;
}

body.page-id-7965 .kurs-template-rendered[data-template="location-template"] td[data-cell-id="r0-c0"] img,
body.page-id-7965 .locationtpl-shortcode-wrapper .locationtpl-rendered td[data-cell-id="r0-c0"] img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin: 0 auto;
}

body.page-id-7965 .kurs-template-rendered[data-template="location-template"] td[data-cell-id="r0-c1"],
body.page-id-7965 .locationtpl-shortcode-wrapper .locationtpl-rendered td[data-cell-id="r0-c1"] {
    font-size: 31px;
    font-weight: 700;
    color: #5b6876;
    padding-bottom: 8px;
}

body.page-id-7965 .kurs-template-rendered[data-template="location-template"] td[data-cell-id="r1-c1"],
body.page-id-7965 .locationtpl-shortcode-wrapper .locationtpl-rendered td[data-cell-id="r1-c1"] {
    width: 50%;
    vertical-align: top;
    color: #5f6b77;
    line-height: 1.5;
}

body.page-id-7965 .kurs-template-rendered[data-template="location-template"] td[data-cell-id="r1-c2"],
body.page-id-7965 .locationtpl-shortcode-wrapper .locationtpl-rendered td[data-cell-id="r1-c2"] {
    width: 50%;
    vertical-align: top;
    white-space: pre-line;
    color: #657282;
    font-size: 14px;
    line-height: 1.45;
    padding-left: 16px;
}

body.page-id-7965 .kurs-template-rendered[data-template="location-template"] td[data-cell-id="r2-c1"] a,
body.page-id-7965 .locationtpl-shortcode-wrapper .locationtpl-rendered td[data-cell-id="r2-c1"] a {
    background: #c2187a !important;
    color: #fff !important;
    text-decoration: none !important;
    display: inline-block;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 600;
}

/* Unsere Trainer (/unsere-trainer/) */
body.page-id-7959 .kursleiter-shortcode-root .kursleiter-preview-wrapper table.kursleiter-table,
body.page-id-7959 .kursleiter-preview-wrapper table.kursleiter-table {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2) !important;
    border-radius: 15px !important;
    overflow: hidden;
    border-collapse: separate !important;
    border-spacing: 0;
}

/* Location detail page */
body.page-id-9094 .elementor-section:first-of-type > .elementor-container {
    align-items: stretch;
}

body.page-id-9094 .elementor-section:first-of-type .elementor-column > .elementor-widget-wrap {
    display: flex;
    flex-direction: column;
    height: 100%;
}

body.page-id-9094 .elementor-section:first-of-type .elementor-column:first-child .elementor-widget-spacer {
    display: none;
}

body.page-id-9094 .elementor-section:first-of-type .elementor-column .elementor-widget-shortcode {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

body.page-id-9094 .elementor-section:first-of-type .elementor-column .elementor-widget-container {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    height: 100%;
}

body.page-id-9094 .elementor-section:first-of-type .elementor-shortcode {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
}

body.page-id-9094 .elementor-section:first-of-type .locationtpl-shortcode-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    height: 100%;
    margin-bottom: 0;
}

body.page-id-9094 .elementor-section:first-of-type .locationtpl-shortcode-title {
    margin: 0 0 16px;
    color: #5b6876;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    flex: 0 0 auto;
}

/* Match the left title block so both cards start on the same line */
body.page-id-9094 .elementor-section:first-of-type .elementor-column:nth-child(2) .elementor-shortcode::before {
    content: '\00a0';
    display: block;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 16px;
    visibility: hidden;
    flex: 0 0 auto;
}

body.page-id-9094 .elementor-section:first-of-type .locationtpl-shortcode-wrapper .locationtpl-rendered {
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    grid-template-columns: minmax(0, 1fr);
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
}

body.page-id-9094 .elementor-section:first-of-type .locationtpl-shortcode-wrapper .locationtpl-rendered > style,
body.page-id-9094 .elementor-section:first-of-type .locationtpl-shortcode-wrapper .locationtpl-rendered > table {
    grid-row: 1;
    grid-column: 1;
}

body.page-id-9094 .elementor-section:first-of-type .locationtpl-shortcode-wrapper .locationtpl-rendered table,
body.page-id-9094 .elementor-section:first-of-type .locationtpl-shortcode-wrapper table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: none;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.20);
    background: #ffffff;
    height: 100%;
    min-height: 100%;
    margin-bottom: 0;
}

body.page-id-9094 .locationtpl-shortcode-wrapper .locationtpl-rendered table tbody {
    height: 100%;
}

body.page-id-9094 .elementor-section:first-of-type .locationtpl-shortcode-wrapper .locationtpl-rendered td,
body.page-id-9094 .elementor-section:first-of-type .locationtpl-shortcode-wrapper table td {
    border: none;
    vertical-align: top;
}

body.page-id-9094 .elementor-section:first-of-type .locationtpl-shortcode-wrapper td[data-cell-id="r0-c0"] {
    height: auto !important;
    min-height: 300px;
}

body.page-id-9094 .elementor-section:first-of-type .locationtpl-map {
    flex: 1 1 auto;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 300px;
    margin: 0 !important;
    border-radius: 28px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.20) !important;
}

body.page-id-9094 .elementor-section:first-of-type .locationtpl-map .leaflet-container,
body.page-id-9094 .elementor-section:first-of-type .locationtpl-map iframe {
    height: 100% !important;
    min-height: 300px;
    border-radius: 28px;
}

body.page-id-9094 .locationtpl-map {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 28px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.20) !important;
}

body.page-id-9094 .locationtpl-map .leaflet-container,
body.page-id-9094 .locationtpl-map iframe {
    border-radius: 28px;
}

@media (max-width: 767px) {
    body.page-id-9094 .elementor-section:first-of-type .elementor-column:nth-child(2) .elementor-shortcode::before {
        display: none;
    }

    body.page-id-9094 .elementor-section:first-of-type .locationtpl-map {
        min-height: 280px;
        margin-bottom: 24px !important;
    }
}

body.page-id-9094 .kurs-template-rendered[data-template="kurslisten.detail-extended"] table.kurslist-block-alt--odd {
    background-color: #ffffff !important;
}

body.page-id-9094 .kurs-template-rendered[data-template="kurslisten.detail-extended"] table.kurslist-block-alt--even {
    background-color: #eef4fb !important;
}

body.page-id-9094 .kurs-template-rendered[data-template="kurslisten.detail-extended"] table.kurslist-block-alt {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.20);
    margin-bottom: 24px;
}

body.page-id-9094 .kurs-template-rendered[data-template="kurslisten.detail-extended"] table.kurslist-block-alt:last-child {
    margin-bottom: 0;
}

.kurs-template-rendered[data-template="kurslisten.detail-extended"] .k3-detail-icon-cell {
    width: 170px;
    min-width: 170px;
    max-width: 170px;
    vertical-align: middle;
}

.kurs-template-rendered[data-template="kurslisten.detail-extended"] .k3-detail-icon-cell img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin: 0 auto;
}

/* Kurssuche / detail-extended course cards: hide course image on mobile */
@media (max-width: 767px) {
    .kurs-template-rendered[data-template="kurslisten.detail-extended"] .k3-detail-icon-cell,
    .kurs-template-rendered[data-template="kurslisten.detail-extended"] td[data-cell-id="r0-c0"] {
        display: none !important;
    }
}

/* Add-to-basket confirmation dialog (Kurssuche) */
.k3-basket-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: rgba(0, 0, 0, 0.45);
    box-sizing: border-box;
}

.k3-basket-modal__panel {
    width: 100%;
    max-width: 420px;
    padding: 32px 28px 28px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
    text-align: center;
    box-sizing: border-box;
}

.k3-basket-modal__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #22a06b;
}

.k3-basket-modal__icon--info {
    color: #2563eb;
}

.k3-basket-modal__check-svg {
    display: block;
}

.k3-basket-modal__message {
    margin: 0 0 24px;
    font-size: 17px;
    line-height: 1.45;
    font-weight: 400;
    color: #3d4f5f;
}

.k3-basket-modal__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 12px;
}

.k3-basket-modal__btn {
    box-sizing: border-box;
    min-height: 44px;
    padding: 10px 22px;
    border: none;
    border-radius: 8px;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.25;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.k3-basket-modal__btn--primary {
    background: #0078d4;
    color: #fff;
    box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.35);
}

.k3-basket-modal__btn--primary:hover,
.k3-basket-modal__btn--primary:focus {
    background: #006cbe;
    color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.45);
}

.k3-basket-modal__btn--secondary {
    background: #5c6670;
    color: #fff;
}

.k3-basket-modal__btn--secondary:hover,
.k3-basket-modal__btn--secondary:focus {
    background: #4a535c;
}

@media (max-width: 420px) {
    .k3-basket-modal__actions {
        flex-direction: column;
    }

    .k3-basket-modal__btn {
        width: 100%;
    }
}

