/* =========================================
   Form / Inputs
========================================= */

.form-check-input:checked {
    background-color: #f6e5c8;
    border-color: #f6e5c8;
}

.form-check-input:focus {
    border-color: #f6e5c8;
    outline: 0;
}

/* =========================================
   Bright Mode (Standard)
========================================= */

.nf-signoff {
    color: rgba(0, 0, 0, 0.65);
}

/* =========================================
   Dark Mode
========================================= */

[data-bs-theme="dark"] .nf-signoff {
    color: rgba(255, 255, 255, 0.75) !important;
}

[data-bs-theme="dark"] .nf-cta .uk-button-default {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

[data-bs-theme="dark"] .nf-cta .uk-button-default:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
}

[data-bs-theme="dark"] .nf-cta .uk-button-text {
    color: rgba(255, 255, 255, 0.85);
}

[data-bs-theme="dark"] .nf-cta .uk-button-text:hover {
    color: #ffffff;
}

[data-bs-theme="dark"] .nf-cta .uk-button-primary {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Buttons / Muted */

.uk-button-primary {
    background-color: #3b2416;
}

[data-bs-theme="dark"] .uk-button-primary {
    background-color: #f6e5c8;
    color: #3b2416;
}

.uk-text-muted {
    color: #3b2416 !important;
}

[data-bs-theme="dark"] .uk-text-muted {
    color: white !important;
}

/* =========================================
   2x2 Bild-Kachel Navigation
========================================= */

.home-tiles {
    --tile-min-h: 260px;
    --tile-shadow: 0 18px 50px rgba(16, 24, 40, 0.14);
    --tile-shadow-hover: 0 30px 70px rgba(16, 24, 40, 0.22);
    --tile-text: rgba(255, 255, 255, 0.96);
    --tile-muted: rgba(255, 255, 255, 0.78);
    --tile-border: rgba(255, 255, 255, 0.14);
}

/* Dark Mode (Astroid) */
[data-bs-theme="dark"] .home-tiles {
    --tile-shadow: 0 18px 55px rgba(0, 0, 0, 0.40);
    --tile-shadow-hover: 0 30px 85px rgba(0, 0, 0, 0.52);
    --tile-border: rgba(255, 255, 255, 0.12);
}

/* =========================================
   Tile Basis
========================================= */

.tile {
    position: relative;
    display: block;
    min-height: var(--tile-min-h);
    overflow: hidden;
    text-decoration: none !important;
    color: var(--tile-text);

    /* Background */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-clip: padding-box;

    /* IMPORTANT: kein Border direkt hier */
    border: 0;

    /* Rendering Fix gegen 1px Gaps */
    transform: translateZ(0);
    backface-visibility: hidden;
    outline: 1px solid transparent;
    box-shadow: var(--tile-shadow);
    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease,
        filter 0.28s ease;
}

/* =========================================
   Border als Overlay (fix für seam issue)
========================================= */

.tile::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid var(--tile-border);
    pointer-events: none;
    z-index: 5;
}

/* =========================================
   Accent Leiste links
========================================= */

.tile::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 8px;
    background: var(--tile-accent, #8b6b4a);
    opacity: 0.95;
    z-index: 6;
    /* über border */
}

/* =========================================
   Overlay
========================================= */

.tile__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 380px at 25% 0%, rgba(255, 255, 255, 0.12), transparent 60%),
        linear-gradient(180deg,
            rgba(0, 0, 0, 0.20) 0%,
            rgba(0, 0, 0, 0.55) 70%,
            rgba(0, 0, 0, 0.72) 100%);
    z-index: 1;
}

/* =========================================
   Content
========================================= */

.tile__content {
    position: absolute;
    inset: 0;
    z-index: 2;
    padding: 22px 22px 18px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
}

.tile__kicker {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    opacity: 0.90;
}

.tile__title {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.05;
    margin-top: 2px;
}

.tile__sub {
    color: var(--tile-muted);
    font-size: 1rem;
    line-height: 1.25;
    max-width: 26ch;
}

/* =========================================
   CTA Button
========================================= */

.tile__cta {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-weight: 700;
}

.tile__cta i {
    opacity: 0.95;
    transform: translateX(0);
    transition: transform 0.28s ease;
}

/* =========================================
   Hover Effect
========================================= */

.tile:hover {
    transform: translateY(-6px) translateZ(0);
    box-shadow: var(--tile-shadow-hover);
    filter: saturate(1.06);
}

.tile:hover .tile__cta i {
    transform: translateX(4px);
}

/* =========================================
   Farbvarianten
========================================= */

.tile--brown {
    --tile-accent: #4b2e22;
}

.tile--green {
    --tile-accent: #1B653A;
}

.tile--orange {
    --tile-accent: #f59e0b;
}

/* =========================================
   Responsive
========================================= */

@media (max-width: 960px) {
    .home-tiles {
        --tile-min-h: 240px;
    }

    .tile__title {
        font-size: 1.6rem;
    }
}

@media (max-width: 640px) {
    .home-tiles {
        --tile-min-h: 210px;
    }

    .tile__content {
        padding: 18px 18px 16px;
    }

    .tile__sub {
        max-width: none;
    }
}

/* =========================================
   Simple Color Utility Blocks
========================================= */

.brown {
    background: #4b2e22;
    color: white;
    padding: 10px;
}

.orange {
    background: #F8BE59;
    color: rgb(0, 0, 0);
    padding: 10px;
}

[data-bs-theme="dark"] .orange {
    background: #F8BE59;
    color: #3b2416 !important;
    padding: 10px;
}

.green {
    background: #1B653A;
    color: white;
    padding: 10px;
}

[data-bs-theme="dark"] .brown {
    background: #f8ead26a;
    color: #4b2e22;
    padding: 10px;
}

[data-bs-theme="dark"] .green {
    background: #6b9b4f;
    color: white;
    padding: 10px;
}

/* =========================================
   Cards
========================================= */

.uk-card {
    background-color: #EFE7DA !important;
}

/* =========================================
   Shape Dividers
========================================= */

.custom-shape-divider-bottom-1 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.custom-shape-divider-bottom-1 svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 59px;
}

.custom-shape-divider-bottom-1 .shape-fill {
    fill: #FFFFFF;
}

.custom-shape-divider-top-2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.custom-shape-divider-top-2 svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 59px;
}

.custom-shape-divider-top-2 .shape-fill {
    fill: #FFFFFF;
}

/* =========================================
   Theme Switching (Light / Dark Classes)
========================================= */

/* Standard (Light Mode) */
.light {
    display: block;
}

/* Dark Mode */
[data-bs-theme="dark"] .light {
    display: none !important;
}

.dark {
    display: block;
}

/* Dark Mode */
[data-bs-theme="light"] .dark {
    display: none !important;
}

/* Dark Mode */
[data-bs-theme="light"] .dark {
    display: none !important;
}

/* =========================================
   Buchstaben-Animation
========================================= */

.letter-zoom .lz-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(10px) scale(0.92);
    filter: blur(2px);
    animation: lzIn 700ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    will-change: transform, opacity, filter;
}

@keyframes lzIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* Respect Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .letter-zoom .lz-char {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        animation: none !important;
    }
}

/* Wort darf als Einheit umbrechen */
.letter-zoom .lz-word {
    display: inline-block;
    white-space: nowrap;
}

/* Buchstabe bleibt animierbar */
.letter-zoom .lz-char {
    display: inline-block;
}




.wellness-img-left {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

/* Ab Tablet/Desktop */
@media (min-width: 640px) {
    .wellness-img-left {
        float: left;
        width: 291px;
        margin-right: 20px;
        margin-bottom: 10px;
    }
}

.wellness-img-right {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

/* Ab Tablet/Desktop */
@media (min-width: 640px) {
    .wellness-img-right {
        float: right;
        width: 291px;
        margin-left: 20px;
        margin-bottom: 10px;
    }
}

.philo-img {
    float: left;
    margin: 0 25px 20px 0;
    width: clamp(180px, 30vw, 320px);
    height: auto;
    max-width: 100%;}

/* Mobile */
@media (max-width: 768px) {
    .philo-img {
        float: none;
        display: block;
        width: 100%;
        max-width: 480px;
        margin: 0 0 20px 0;
    }
}

.nk-img{
  height: auto;
  max-width: 100%;
}

/* großes Bild links */
.nk-img-left{
  float: left;
  margin: 8px 25px 18px 0;
}

/* Bild rechts */
.nk-img-right{
  float: right;
  margin: 8px 0 18px 25px;
}

/* Größensteuerung */
.nk-img-large{
  width: clamp(240px, 40vw, 406px);
}

.nk-img-medium{
  width: clamp(180px, 26vw, 266px);
}

/* Mobile */
@media (max-width: 768px){
  .nk-img-left,
  .nk-img-right{
    float: none !important;
    display: block !important;
    width: 100% !important;
    max-width: 520px;
    margin: 16px 0 20px 0 !important;
  }
}

.nk-img {
    height: auto;
    max-width: 100%;
}

/* großes Bild links */
.nk-img-left {
    float: left;
    margin: 10px 25px 18px 0;
    width: clamp(220px, 42vw, 467px);
}

/* kleines Bild rechts */
.nk-img-right {
    float: right;
    margin: 10px 0 12px 18px;
    width: clamp(160px, 22vw, 236px);
}



/* Mobile: keine Floats, volle Breite */
@media (max-width: 768px) {

    .nk-img-left,
    .nk-img-right {
        float: none !important;
        display: block !important;
        width: 100% !important;
        max-width: 520px;
        margin: 14px 0 18px 0 !important;
    }
}

.nk-img {
    height: auto;
    max-width: 100%;
}

/* Float-Bilder */
.nk-img-left {
    float: left;
    margin: 10px 25px 20px 0;
}

.nk-img-right {
    float: right;
    margin: 10px 0 20px 25px;
}

/* Größensteuerung */
.nk-img-portrait {
    width: clamp(180px, 26vw, 234px);
}

.nk-img-landscape {
    width: clamp(240px, 38vw, 335px);
}

/* PDF-Flyer vollbreit */
.nk-img-full {
    width: 100%;
    margin-top: 25px;
}

/* Mobile */
@media (max-width: 768px) {

    .nk-img-left,
    .nk-img-right {
        float: none !important;
        display: block !important;
        width: 100% !important;
        max-width: 520px;
        margin: 18px 0 22px 0 !important;
    }
}

button.close-offcanvas.offcanvas-close-btn {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

button.close-offcanvas.offcanvas-close-btn .inner,
button.close-offcanvas.offcanvas-close-btn .box {
    color: white !important;
}

.astroid-stacked-seperated-menu {
    padding-bottom: 0px !important;
    padding-top: 0px !important;
}