/* Untermenü – sichtbar machen beim Hover */
.menu-item-has-children {
    position: relative;
    margin: 10px;
}

.menu-item-has-children > .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    background: #fff;
    padding: 0;
    margin: 0;
    list-style: none;
    min-width: 200px;
    width: max-content;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.menu-item-has-children:hover > .sub-menu {
    display: block;
}


.menu-item-has-children:hover {
    display: block;
  	fore-color:blue;
}


/* Styling für einzelne Untermenüpunkte */
.menu-item-has-children > .sub-menu > .menu-item {
    padding: 2px;
    white-space: nowrap;
}







/* Hover-Stil für Untermenüpunkte */
.menu-item-has-children > .sub-menu > .menu-item:hover {
    background-color: #f0f0f0;
   /* font-size: 15px;*/
    cursor: pointer;
}

/* Sicherstellen, dass Dropdown nicht abgeschnitten wird */
.main-navigation,
nav,
header,
#site-header {
    overflow: visible !important;
    z-index: 1000;
}

/* Hover-Bild: initial versteckt */
.flysail-hover-img-inline {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 5px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

/* Sichtbar nur bei Hover über Menüeintrag */
.menu-item:hover > .flysail-hover-img-inline,
.menu-item:hover .flysail-hover-img-inline {
    opacity: 1 !important;
    visibility: visible !important;
}

.page-category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* genau 4 Spalten */
    gap: 1.5rem;
    margin-top: 1.5rem;
}

@media screen and (max-width: 1024px) {
    .page-category-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 Spalten bei Tablets */
    }
}

@media screen and (max-width: 600px) {
    .page-category-grid {
        grid-template-columns: 1fr; /* 1 Spalte bei Mobilgeräten */
    }
}

.kachel {
    background: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.kachel:hover {
    transform: scale(1.03);
}

.kachel a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.kachel-bild {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: #ccc;
    display: block;
}

.kachel-bild.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eee;
    color: #888;
    font-size: 14px;
}

.kachel-titel {
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
}