/* ===== LAYOUT BLOCKS ===== */

.layout-row {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
    align-items: stretch;
}cla

.layout-col {
    flex: 1;
    min-width: 0;
}

.layout-col figure,
.layout-col figure.image {
    width: 100% !important;
    margin: 0;
}
.layout-col img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
}

/* Bild + Text */
.layout-img-text .layout-col-img,
.layout-text-img .layout-col-img {
    flex: 0 0 45%;
}
.layout-img-text .layout-col-text,
.layout-text-img .layout-col-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 2 Bilder */
.layout-2img .layout-col {
    flex: 1;
}

/* 3 Bilder */
.layout-3img .layout-col {
    flex: 1;
}

/* 2 Spalten */
.layout-2col .layout-col {
    flex: 1;
}

/* 3 Spalten */
.layout-3col .layout-col {
    flex: 1;
}

/* Teaser Box */
.layout-teaser {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #c0392b;
    border-radius: 0 8px 8px 0;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
}
.layout-teaser h3 {
    margin: 0 0 0.5rem;
    color: #c0392b;
}
.layout-teaser p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Hero / Bild mit Overlay */
.layout-hero {
    position: relative;
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
}
.layout-hero figure,
.layout-hero figure.image {
    width: 100% !important;
    margin: 0;
}
.layout-hero img {
    width: 100%;
    height: auto;
    display: block;
    min-height: 250px;
    object-fit: cover;
}
.layout-hero .layout-hero-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    padding: 3rem 2rem 1.5rem;
}
.layout-hero .layout-hero-text h2 {
    margin: 0 0 0.5rem;
    font-size: 1.8rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.layout-hero .layout-hero-text p {
    margin: 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Karte */
.layout-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    margin: 2rem 0;
    max-width: 600px;
}
.layout-card figure,
.layout-card figure.image {
    width: 100% !important;
    margin: 0;
}
.layout-card img {
    width: 100%;
    height: auto;
    display: block;
}
.layout-card .layout-card-body {
    padding: 1.5rem;
}
.layout-card .layout-card-body h3 {
    margin: 0 0 0.5rem;
}
.layout-card .layout-card-body p {
    margin: 0;
    color: #666;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .layout-row {
        flex-direction: column;
        gap: 1rem;
    }
    .layout-img-text .layout-col-img,
    .layout-text-img .layout-col-img {
        flex: none;
    }
    .layout-col img {
        width: 100%;
        border-radius: 0;
    }
    .layout-card {
        max-width: none;
    }
    .layout-hero .layout-hero-text h2 {
        font-size: 1.3rem;
    }
    .layout-hero .layout-hero-text {
        padding: 2rem 1.2rem 1rem;
    }
}

/* ===== CKEditor inside styles ===== */
.ck-editor .layout-row {
    outline: 2px dashed #ccc;
    outline-offset: 4px;
    border-radius: 4px;
}
.ck-editor .layout-row:hover {
    outline-color: #3498db;
}
.ck-editor .layout-col {
    outline: 1px dashed #e0e0e0;
    padding: 0.5rem;
    border-radius: 4px;
}
.ck-editor .layout-teaser {
    outline: 2px dashed #ccc;
    outline-offset: 4px;
}
.ck-editor .layout-hero {
    outline: 2px dashed #ccc;
    outline-offset: 4px;
}
.ck-editor .layout-card {
    outline: 2px dashed #ccc;
    outline-offset: 4px;
}
