/*
Theme Name: Essentials Child
Theme URI: https://essentials.pixfort.com/
Author: PixFort
Template: essentials
Author URI: http://themeforest.net/user/pixfort
Description: Essentials child theme
Version: 1.0.2
License: Envato Marketplaces Split Licence
License URI: https://themeforest.net/licenses/standard
Text Domain: essentials-child
Tags: header-builder, footer-builder, divider-builder, popup-builder, premium-design, translation-ready

*/

@media only screen and (max-width: 766px) {
  .text-right {
    text-align: left !important;
    padding-top: 20px;
    }
  .justify-content-end {
    justify-content: flex-start !important;
    }
  .details-ausrichtung {
    padding-top: 40px;
  }

}

/* --- Portfolio Grid Layout --- */
.search-filter-query-posts {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr); /* immer 3 Spalten */
  gap: 30px;
}

/* --- Responsive anpassen --- */
@media (max-width: 1024px) {
  .search-filter-query-posts {
    grid-template-columns: repeat(2, 1fr); /* Tablet = 2 Spalten */
  }
}
@media (max-width: 600px) {
  .search-filter-query-posts {
    grid-template-columns: 1fr; /* Handy = 1 Spalte */
  }
}

/* --- Einzelnes Portfolio-Item --- */
.search-filter-query-posts > div {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 15px; 
  padding-bottom: 0px!important;
  background: #fff;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
  min-height: 350px; /* sorgt für gleiche Höhe bei wenigen Items */
}

/* Hover-Effekt */
.search-filter-query-posts > div:hover {
  transform: translateY(-5px);
}

/* --- Reihenfolge: Titel → Bild */
.search-filter-query-posts > div h2 {
  order: 1;
  font-size: 1.2rem;
  margin: 10px 0;
}
.search-filter-query-posts > div img {
  order: 2;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 0px 0;
  object-fit: cover;
}
.search-filter-query-posts > div p {
  order: 3;
  font-size: 0.95rem;
  margin: 5px 0 10px 0;
}

/* --- Datum komplett ausblenden --- */
.search-filter-query-posts small {
  display: none !important;
}

/* --- HR entfernen --- */
.search-filter-query-posts hr {
  display: none !important;
}

/* Text im Portfolio-Filter, ohne das div komplett zu verstecken */
.search-filter-query--id-1, .search-filter-query--id-3 {
    font-size: 0;
    line-height: 0;
}

/* Portfolio-Text in der Übersicht ausblenden */
.search-filter-query-posts > div > p:first-of-type {
    display: none;
}

/* --- Optional: einheitliche Höhe erzwingen, falls nötig --- */
@media (min-width: 601px) {
  .search-filter-query-posts > div {
    height: 100%;
  }
}

/* Links im Portfolio beim Hover in roter Farbe */
.pix-feature-list a:hover span.text-heading-default {
    color: #E30613 !important; /* oder ersetze var(--bs-secondary) durch Hex-Farbe */
}

/* Container für Suchergebnisse */
.search-results .search-item {
  display: flex;
  align-items: center;
  gap: 20px;              /* Abstand Bild ↔ Text */
  margin-bottom: 24px;    /* Abstand zwischen den Ergebnissen */
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* Bild */
.search-results .search-item .thumb {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 6px;
  background: #f9f9f9;
}
.search-results .search-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Textblock */
.search-results .search-item .info h2 {
  font-size: 18px;
  margin: 0 0 6px 0;
  line-height: 1.3;
}
.search-results .search-item .info h2 a {
  text-decoration: none;
  color: #333;
  transition: color 0.2s ease;
}
.search-results .search-item .info h2 a:hover {
  color: #E30613; /* Rot beim Hover */
}

/* Mehr erfahren */
.search-results .search-item .info .more-link {
  font-size: 13px; /* etwas kleiner */
  text-decoration: none;
  color: #666;
  transition: color 0.2s ease;
}
.search-results .search-item .info .more-link:hover {
  color: #E30613; /* Rot beim Hover */
}

/* Überschrift der Seite */
.search-results > h1 {
  font-size: 28px;   /* größer */
  margin-top: 30px;  /* Abstand zum Header */
  margin-bottom: 32px;
  font-weight: 700;
}

/* Mindest-Seitenhöhe bei wenig Suchergebnissen */
.search-results {
  min-height: 55vh; /* kannst du auch ganz weglassen, Flexbox erledigt das */
  padding-bottom: 0; /* Wichtig: kein Extra-Scrollraum */
}


/* Kein Ergebnis gefunden */
.no-results {
  display: flex;
  flex-direction: column;
  justify-content: center;      /* vertikal mittig */
  align-items: center;          /* horizontal mittig */
  text-align: center;
  padding: 40px 20px;
}

.no-results-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.no-results-text {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #555;
}

/* Roter Button */
.btn-home {
  display: inline-block;
  background-color: #E30613;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  padding: 10px 24px;   /* genug Platz vor und nach dem Text */
  font-size: 1rem;
  transition: background 0.2s ease;
}

.btn-home:hover {
  background-color: #b2050f; /* etwas dunkleres Rot beim Hover */
  color: #fff;
}


/* Icons und Text im Footer sauber vertikal mittig ausrichten – Portfolio + Suche */
body.single-portfolio .pix-feature-list .d-inline-flex svg,
body.search .pix-feature-list .d-inline-flex svg {
  vertical-align: middle;
  position: relative;
  top: 0.05em; /* Feintuning */
}

body.single-portfolio .pix-feature-list span,
body.single-portfolio .pix-feature-list p,
body.search .pix-feature-list span,
body.search .pix-feature-list p {
  display: inline-flex;
  align-items: center;
  margin: 0;
  line-height: 1.4;
}