/* @override 
	https://lufo.cdworks.de/wp-content/plugins/ajax-page-filter/assets/ajax-page-filter.css?* */

#apf-results {
    margin-top: 20px;
}

#apf-results a {
    text-decoration: none;
    color: black;
}
#apf-form {
	padding-bottom: 20px;
	border-bottom: 1px solid #333;
}

/* Kachel */
.apf-tile {
    width: 30%; /* Masonry ordnet sie automatisch */
    margin-bottom: 20px;
    background: #fff;
    border: 1px solid #ddd;
    padding: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease-in-out;
    display: block;
}

.apf-tile {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Wenn Kachel sichtbar ist */
.apf-tile.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* Hover */
.apf-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Bild */
.apf-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px;
    border-radius: 4px;
}

/* Titel und Text */
.apf-tile h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
}
.apf-tile p {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* Responsiv */
@media (max-width: 1024px) {
    .apf-tile {
        width: 45%;
    }
}
@media (max-width: 600px) {
    .apf-tile {
        width: 100%;
    }
}

/* Highlighting */
.apf-tile mark {
    background: yellow;
}

/* Suchleiste */
.apf-searchbar {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.apf-searchbar input[type="text"] {
    flex: 1;
    padding: 8px;
    font-size: 14px;
}

.apf-searchbar button {
    padding: 8px 12px;
    background: #f5f5f5;
    border: 1px solid #ccc;
    cursor: pointer;
    transition: background 0.2s ease-in-out;
}

.apf-searchbar button:hover {
    background: #e2e2e2;
}
.apf-filter {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

/* Linke Spalte: feste Breite, KEIN horizontales Wrapping von Items */
.apf-categories {
  /* flex: 0 0 320px;   /* fixe Spaltenbreite (anpassen wie gewünscht) */
}

/* Rechte Spalte: nimmt den restlichen Platz */
.apf-tags {
  flex: 1 1 auto;
  min-width: 0;      /* wichtig, damit die Flex-Box wirklich schrumpfen darf */
}

.apf-filter-title {
  margin-bottom: 10px;
}

/* Kategorien: echte EINSPALTIGE Liste */
.apf-filter-categories {
  display: flex;
  flex-direction: column; /* statt wrap */
  gap: 8px;
}

/* Tags: dürfen umbrechen und nebeneinander laufen */
.apf-filter-tags {
  display: flex;
  flex-wrap: wrap;
  row-gap: 8px;
  column-gap: 20px;
}

/* “Alle …”-Zeile unter dem Titel etwas Abstand */
.apf-filter label.allTags {
  margin-bottom: 8px; /* das Semikolon NACH der schließenden Klammer entfernen! */
}

/* Checkbox + Text zusammenhalten und schön ausrichten */
.apf-filter-categories label,
.apf-filter-tags label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .apf-filter {
    display: block;
  }
  .apf-categories {
    margin-bottom: 20px;
  }
  .apf-tags {
    margin-bottom: 30px;
  }
}