/* =========================================================
   kachel
========================================================= */

.kachel-item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;

    background: #ffffff;

    border-radius: 12px;
    border: 1px solid #edf1f5;
    overflow: hidden;

    box-shadow:
        0 10px 30px rgba(15, 23, 42, 0.05),
        0 2px 10px rgba(15, 23, 42, 0.03);

    transition:
        transform .25s ease,
        box-shadow .25s ease;

    height: 100%;
    box-sizing: border-box;
}

.kachel-image {
    flex: 0 0 auto;
}

.kachel-body {
    /* wichtig: 1 1 auto statt 1 0 auto, damit der Body bei kurzem
       Text nicht auf seine min-content-Höhe zurückfällt, sondern
       den verfügbaren Platz der (per Grid/Flex gestreckten) Kachel
       ausfüllt */
    flex: 1 1 auto;
    min-height: 0;
}

a.kachel-item:hover {
    transform: translateY(-4px);

    box-shadow:
        0 18px 40px rgba(15, 23, 42, 0.10),
        0 4px 12px rgba(15, 23, 42, 0.05);
}

/* Bild */
.kachel-image {
    width: 100%;
    overflow: hidden;
}

/* Bildformat (Backend-Auswahlfeld imageRatio) */
.kachel-image--widescreen { aspect-ratio: 16 / 9; }
.kachel-image--square     { aspect-ratio: 1 / 1; }

.kachel-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px !important;
}

/* Bildausrichtung (Backend-Auswahlfeld imagePosition) */
.kachel-image--center img { object-position: center; }
.kachel-image--top img    { object-position: top; }
.kachel-image--bottom img { object-position: bottom; }
.kachel-image--left img   { object-position: left; }
.kachel-image--right img  { object-position: right; }

/* Body */
.kachel-body {
    padding: 34px;
}

.kachel-item .kachel-title {
    margin: 0 0 14px;
}

.kachel-item p {
    margin: 0;

    color: #5c6470;

    font-size: 16px;
    line-height: 1.55;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 720px) {

    .kachel-body {
        padding: 28px;
    }

    .kachel-item p {
        font-size: 15px;
    }

}


/* =========================================================
   wenn Containeritems: Spalten-Grid --> dann gleiche Höhe
========================================================= */

.frame-type-container.c-columns {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;   /* macht alle Spalten gleich hoch */
}

.frame-type-container.c-columns > .col {
    display: flex;          /* Inhalt (z.B. Kachel) kann sich strecken */
}

.frame-type-container.c-columns > .col > * {
    width: 100%;            /* Kachel füllt die ganze Spalte aus */
}


