/*
Theme Name: Kadence Child
Theme URI: https://www.kadencewp.com/
Description: Child-Theme für Kadence – Suchfix (Seiten & saubere Ausgabe)
Author: Norbert Schlia
Template: kadence
Version: 1.0
*/

/* --- Suchseite an Kadence anpassen --- */

/* Sanfter Seitenhintergrund nur auf der Suche */
body.search {
  background: linear-gradient(to bottom, 
    var(--global-palette9, #f5f7fb), 
    var(--global-palette9, #f5f7fb));
}

/* Schmalere Inhaltsspalte nur auf Suchseite */
body.search .site-main.container,
body.search .content-container,
body.search .content-wrap {
  max-width: 900px; /* ggf. 820–960 anpassen */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Abstand oben/unten */
body.search .site-main { padding: 1rem 0 3rem; }

/* Kartenlook für Treffer */
body.search article {
  background: var(--global-palette9, rgba(0,0,0,0.03));
  border: 1px solid var(--global-palette7, #e5e7eb);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  box-shadow: var(--global-drop-shadow, 0 1px 2px rgba(0,0,0,0.06));
}
body.search article + article { margin-top: 1rem; }

/* Titel/Links */
body.search .entry-title { 
  margin: 0 0 .25rem; 
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  line-height: 1.25;
}
body.search .entry-title a {
  text-decoration: none;
  color: var(--global-palette3, inherit);
}
body.search .entry-title a:hover {
  color: var(--global-palette1, #2563eb);
  text-decoration: underline;
}

/* Auszug/Teasertext */
body.search .entry-summary, 
body.search .entry-summary p {
  color: var(--global-palette4, #4b5563);
  margin: 0.25rem 0 0;
}

/* Paginierung etwas Luft geben */
body.search .nav-links,
body.search .navigation.pagination {
  margin-top: 1.25rem;
}

/* Suchformular im Header der Suchseite */
body.search .page-header .search-form {
  margin-top: .5rem;
}

/* 404: Suchformular ein wenig hübscher */
body.error404 .error-404-search .search-form input[type="search"] {
  width: 100%;
  max-width: 520px;
  border-radius: 999px;
  padding: .6rem 1rem;
  border: 1px solid var(--global-palette7, #e5e7eb);
}
body.error404 .error-404-search .search-form .search-submit {
  margin-left: .5rem;
  border-radius: 999px;
  padding: .6rem 1rem;
}

