/* Öffentliche Mainpage — aus Baukasten veröffentlicht */

*, *::before, *::after { box-sizing: border-box; }

html.bk-smooth, body.bk-smooth { scroll-behavior: smooth; }

body.bk-pub {
    margin: 0;
    font-family: var(--bk-font-body, "Segoe UI", system-ui, sans-serif);
    font-size: var(--bk-font-size, 16px);
    color: var(--bk-dark, #1a1a1a);
    background: #fff;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: var(--bk-font-heading, "Segoe UI", system-ui, sans-serif);
    line-height: 1.2;
}

a { color: var(--bk-primary, #2d6a4f); }

.bk-section { width: 100%; }

.bk-inner {
    width: min(100% - 2rem, 1100px);
    margin-inline: auto;
}
.bk-inner.is-narrow { width: min(100% - 2rem, 720px); }
.bk-inner.is-fluid { width: 100%; padding-inline: 1rem; }

.is-hidden-slot { display: none !important; }

.bk-hero {
    display: flex;
    align-items: center;
    color: #fff;
}
.bk-hero.is-center { text-align: center; }
.bk-hero .bk-inner { width: min(100% - 2rem, 900px); }

.bk-hero-title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    font-weight: 700;
}
.bk-hero-sub {
    margin: 0 0 1.25rem;
    font-size: 1.1rem;
    opacity: 0.92;
}
.bk-hero-sub p {
    margin: 0 0 0.55em;
}
.bk-hero-sub p:last-child {
    margin-bottom: 0;
}

.bk-btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
}
.bk-hero:not(.is-center) .bk-btn-row { justify-content: flex-start; }

.bk-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 1.1rem;
    border-radius: var(--bk-radius, 12px);
    text-decoration: none;
    font-weight: 600;
    background: #fff;
    color: var(--bk-secondary, #1b4332);
    border: 2px solid transparent;
}
.bk-cta.is-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.7);
}

.bk-features-title,
.bk-text-title { margin: 0 0 0.5rem; font-size: 1.75rem; }
.bk-features-sub { margin: 0 0 1.5rem; color: #5c6670; }

.bk-feat-grid {
    display: grid;
    gap: 1rem;
}
.bk-feat-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bk-feat-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bk-feat-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 800px) {
    .bk-feat-grid.cols-2,
    .bk-feat-grid.cols-3,
    .bk-feat-grid.cols-4 { grid-template-columns: 1fr; }
}

.bk-feat-card {
    background: #fff;
    border: 1px solid #d8e2dc;
    border-radius: var(--bk-radius, 12px);
    padding: 1.1rem;
    box-shadow: 0 6px 18px rgba(27, 67, 50, 0.06);
}
.bk-feat-icon { font-size: 1.6rem; margin-bottom: 0.35rem; }
.bk-feat-card h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.bk-feat-card > p { margin: 0; color: #5c6670; font-size: 0.95rem; }

.bk-text-body,
.bk-rich {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.65;
}
.bk-text-body > p,
.bk-text-body > div,
.bk-rich > p,
.bk-rich > div {
    margin: 0 0 0.85em;
}
.bk-text-body > p:last-child,
.bk-text-body > div:last-child,
.bk-rich > p:last-child,
.bk-rich > div:last-child {
    margin-bottom: 0;
}
/* Leerzeile (Enter auf leerem Absatz) sichtbar halten */
.bk-text-body > p:has(> br:only-child),
.bk-text-body > div:has(> br:only-child),
.bk-rich > p:has(> br:only-child),
.bk-rich > div:has(> br:only-child) {
    min-height: 1.35em;
}
.bk-text-body ul,
.bk-text-body ol,
.bk-rich ul,
.bk-rich ol,
.bk-features-sub ul,
.bk-features-sub ol,
.bk-feat-card ul,
.bk-feat-card ol,
.bk-feat-card .bk-rich ul,
.bk-feat-card .bk-rich ol,
.bk-hero-sub ul,
.bk-hero-sub ol {
    margin: 0.4em 0 0.9em;
    padding-left: 1.35rem;
}
.bk-text-body ul,
.bk-rich ul,
.bk-features-sub ul,
.bk-feat-card ul,
.bk-hero-sub ul { list-style: disc; }
.bk-text-body ol,
.bk-rich ol,
.bk-features-sub ol,
.bk-feat-card ol,
.bk-hero-sub ol { list-style: decimal; }
.bk-text-body li,
.bk-rich li,
.bk-features-sub li,
.bk-feat-card li,
.bk-hero-sub li { margin: 0.25em 0; }

.bk-feat-card .bk-rich {
    color: #5c6670;
    font-size: 0.95rem;
}

.bk-footer { color: #d8e2dc; }
.bk-footer-title { color: #fff; font-size: 1.2rem; margin: 0 0 0.5rem; }
.bk-footer-text { margin: 0 0 0.75rem; color: #9bb0a5; }
.bk-footer-text a,
.bk-footer .bk-rich a {
    color: #c5d5cc;
    text-decoration: underline;
}
.bk-footer-text a:hover,
.bk-footer .bk-rich a:hover { color: #fff; }
.bk-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.bk-footer-links a { color: #c5d5cc; text-decoration: none; }
.bk-footer-links a:hover { color: #fff; }

.bk-pub-empty {
    min-height: 40vh;
    display: grid;
    place-items: center;
    color: #5c6670;
}

/* Nav */
.bk-block-navbar.is-sticky {
    position: sticky;
    top: 0;
    z-index: 40;
}
.bk-block-navbar.is-transparent {
    background: rgba(255, 255, 255, 0.72) !important;
    backdrop-filter: blur(8px);
}
.bk-nav-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.bk-nav-brand {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--bk-secondary, #1b4332);
    margin-right: auto;
}
.bk-nav-collapse {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.bk-nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}
.bk-nav-links a {
    text-decoration: none;
    color: var(--bk-dark, #1a1a1a);
    font-weight: 500;
}
.bk-nav-links a:hover { color: var(--bk-primary, #2d6a4f); }
.bk-nav-actions { display: flex; gap: 0.5rem; }
.bk-cta-sm { padding: 0.4rem 0.8rem; font-size: 0.9rem; background: var(--bk-primary-dark, #2d6a4f); color: #fff !important; }

.bk-nav-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2.4rem;
    height: 2.4rem;
    padding: 0.45rem;
    border: 1px solid #d7e0db;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    flex-shrink: 0;
}
.bk-nav-burger span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--bk-secondary, #1b4332);
    border-radius: 2px;
    transition: transform 0.15s ease, opacity 0.15s ease;
}
.bk-nav.has-burger .bk-nav-burger {
    display: flex;
    margin-left: auto;
}
.bk-nav.has-burger.is-open .bk-nav-burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.bk-nav.has-burger.is-open .bk-nav-burger span:nth-child(2) {
    opacity: 0;
}
.bk-nav.has-burger.is-open .bk-nav-burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mit Burger: Links/Buttons nur im geöffneten Menü */
.bk-nav.has-burger .bk-nav-collapse {
    display: none;
    width: 100%;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.75rem 0 0.25rem;
    order: 3;
}
.bk-nav.has-burger.is-open .bk-nav-collapse {
    display: flex;
}
.bk-nav.has-burger .bk-nav-links,
.bk-nav.has-burger .bk-nav-actions {
    flex-direction: column;
    align-items: stretch;
}
.bk-nav.has-burger .bk-nav-links a,
.bk-nav.has-burger .bk-nav-actions .bk-cta {
    padding: 0.55rem 0.25rem;
    border-bottom: 1px solid #e8eee9;
}
.bk-nav:not(.has-burger) .bk-nav-burger {
    display: none !important;
}

/* Split hero */
.bk-split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: center;
}
@media (max-width: 800px) {
    .bk-split { grid-template-columns: 1fr; }
}
.bk-split-media {
    display: grid;
    place-items: center;
    min-height: 220px;
    background: #e8f5ee;
    border-radius: var(--bk-radius, 12px);
}
.bk-split-media img { max-width: 100%; border-radius: var(--bk-radius, 12px); }
.bk-split-emoji { font-size: 5rem; line-height: 1; }

/* Pricing */
.bk-price-card {
    background: #fff;
    border: 1px solid #d8e2dc;
    border-radius: var(--bk-radius, 12px);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.bk-price-card.is-featured {
    border-color: var(--bk-primary, #2d6a4f);
    box-shadow: 0 10px 28px rgba(45, 106, 79, 0.15);
}
.bk-price {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--bk-secondary, #1b4332);
}
.bk-price-note { margin: 0; color: #5c6670; }
.bk-price-card ul {
    margin: 0.5rem 0 1rem;
    padding-left: 1.1rem;
    color: #5c6670;
    flex: 1;
}
.bk-price-card .bk-cta {
    align-self: flex-start;
    background: var(--bk-primary-dark, #2d6a4f);
    color: #fff;
}

/* FAQ */
.bk-faq-list { display: flex; flex-direction: column; gap: 0.5rem; }
.bk-faq-item {
    background: #fff;
    border: 1px solid #d8e2dc;
    border-radius: 10px;
    padding: 0.75rem 1rem;
}
.bk-faq-item summary {
    cursor: pointer;
    font-weight: 600;
}
.bk-faq-a { margin-top: 0.6rem; color: #5c6670; }

/* Contact */
.bk-contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.bk-contact-form label {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.95rem;
}
.bk-contact-form input,
.bk-contact-form textarea {
    padding: 0.6rem 0.7rem;
    border: 1px solid #d8e2dc;
    border-radius: 8px;
    font: inherit;
}
.bk-contact-form .bk-cta {
    align-self: flex-start;
    background: var(--bk-primary-dark, #2d6a4f);
    color: #fff;
    border: none;
    cursor: pointer;
}

.bk-divider {
    border: none;
    border-top: 1px solid #d8e2dc;
    margin: 0;
}

/* Video hero */
.bk-block-video_hero {
    position: relative;
    overflow: hidden;
    color: #fff;
}
.bk-video-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.bk-video-bg video,
.bk-video-bg iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
}
.bk-video-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: #000;
    pointer-events: none;
}
.bk-video-content {
    position: relative;
    z-index: 2;
    min-height: inherit;
}

/* Gallery */
.bk-gallery {
    display: grid;
    gap: 0.75rem;
}
.bk-gallery.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bk-gallery.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bk-gallery.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 800px) {
    .bk-gallery.cols-2,
    .bk-gallery.cols-3,
    .bk-gallery.cols-4 { grid-template-columns: 1fr 1fr; }
}
.bk-gallery-item {
    display: block;
    border-radius: var(--bk-radius, 12px);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #e8f0eb;
}
.bk-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}
.bk-gallery-item:hover img { transform: scale(1.04); }

.bk-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.88);
    display: grid;
    place-items: center;
    padding: 1rem;
}
.bk-lightbox[hidden] { display: none !important; }
.bk-lightbox img {
    max-width: min(96vw, 1100px);
    max-height: 90vh;
    border-radius: 8px;
}
.bk-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    background: transparent;
    border: 0;
    color: #fff;
    cursor: pointer;
}

/* Slider */
.bk-slider {
    position: relative;
    min-height: 320px;
    color: #fff;
}
.bk-slides { position: relative; min-height: 320px; }
.bk-slide {
    display: none;
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: #1b4332;
}
.bk-slide.is-active { display: grid; place-items: center; }
.bk-slide-inner {
    text-align: center;
    padding: 2rem 1rem;
    max-width: 720px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.bk-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    border: 0;
    background: rgba(255,255,255,0.85);
    cursor: pointer;
    font-size: 1.4rem;
}
.bk-slider-btn.prev { left: 0.75rem; }
.bk-slider-btn.next { right: 0.75rem; }
.bk-slider-dots {
    position: absolute;
    bottom: 0.75rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    z-index: 2;
}
.bk-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    border: 0;
    background: rgba(255,255,255,0.45);
    cursor: pointer;
}
.bk-dot.is-active { background: #fff; }

/* Counters */
.bk-counter-card {
    text-align: center;
    background: #fff;
    border: 1px solid #d8e2dc;
    border-radius: var(--bk-radius, 12px);
    padding: 1.25rem;
}
.bk-counter-value {
    display: inline;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--bk-secondary, #1b4332);
}
.bk-counter-suffix {
    display: inline;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--bk-primary, #2d6a4f);
}
.bk-counter-label {
    margin-top: 0.35rem;
    color: #5c6670;
}

.bk-map-wrap {
    border-radius: var(--bk-radius, 12px);
    overflow: hidden;
    border: 1px solid #d7e0db;
    background: #eef2f0;
}
.bk-map-wrap.is-gray .bk-map-frame {
    filter: grayscale(1);
}
.bk-map-frame {
    display: block;
    width: 100%;
    border: 0;
    min-height: 180px;
}

/* Bei gesetzter Block-Höhe: Kinder volle Breite */
.bk-section > * {
    max-width: 100%;
}
