/*

Theme Name:   wh-minimal-violet-theme
Theme URI:    https://wpcodefix.ct.ws/wh-minimal-violet-theme/

Description:  wh-minimal-violet-theme von CodeFix|| WP von : 5.8 -  6.8.3         || PHP von : 7.4 -  8.4
Author:       wp_CodeFix
Author URI:   https://wpcodefix.ct.ws/
Template:     
Version:      2025.10.08.23
Requires at least:  5.8
Tested up to: 6.8.3
Requires PHP: 7.4
Tags:         CodeFix Theme child
 Text Domain:  astrachild
 
 

 wh-minimal-violet-theme
    Copyright © wp_CodeFix
    Alle Rechte vorbehalten

 
 
*/



body {
  font-family: system-ui, sans-serif;
  color: #222;
  margin: 0;
  background: #fff;
  line-height: 1.5;
  font-size: 15px;
}

header, footer {
  background: #f7f7f7;
  padding: 10px 20px;
}

header h1 a {
  text-decoration: none;
  color: #8b3edb;
}

h1, h2, h3, h4, h5 {
  color: #8b3edb;
}

a {
  color: #8b3edb;
}

a:hover {
  text-decoration: underline;
}

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.wh-search-wrapper {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

/* Suchfeld mit erklärendem Text */
.search-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
}

.search-form label {
  font-size: 13px;
  color: #666;
  text-align: center;
}

.search-form input[type="search"] {
  width: 260px;
  padding: 7px 12px;
  border-radius: 20px;
  border: 1px solid #bbb;
  font-size: 14px;
  text-align: left;
}

.search-form input[type="search"]:focus {
  outline: none;
  border-color: #8b3edb;
  box-shadow: 0 0 4px rgba(139, 62, 219, 0.4);
}

/* SearchWP Ergebnisbox Styling */
.searchwp-live-search-results {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  max-width: 600px;
  margin: 0 auto;
  padding: 8px 12px;
  font-size: 14px;
}

.searchwp-live-search-result {
  padding: 10px;
  border-bottom: 1px solid #eee;
}

.searchwp-live-search-result:last-child {
  border-bottom: none;
}

.searchwp-live-search-result a {
  color: #8b3edb;
  font-weight: bold;
  font-size: 15px;
  text-decoration: none;
}

.searchwp-live-search-result a:hover {
  text-decoration: underline;
}

.searchwp-live-search-result p {
  color: #444;
  margin: 5px 0 0 0;
  font-size: 13px;
  line-height: 1.4;
}

footer {
  text-align: center;
  font-size: 14px;
  color: #777;
}



/* ================================
   🏠 Home-Button-Optimierung
   ================================ */

header a[href*="home"],
header a[href*="/"] {
  transition: all 0.2s ease-in-out;
  background: #8b3edb;
  color: #fff;
  padding: 8px 16px;
  border-radius: 24px;
  text-decoration: none;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(139, 62, 219, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

header a[href*="home"]:hover,
header a[href*="/"]:hover {
  background: #a25ae6;
  box-shadow: 0 4px 10px rgba(139, 62, 219, 0.35);
  transform: translateY(-1px);
}

/* ================================
   🔎 Suchfeld etwas anpassen
   ================================ */

.wh-search-wrapper form {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
  margin-top: 10px;
}

.search-form input[type="search"] {
  border-radius: 20px;
  border: 1px solid #bbb;
  padding: 6px 10px;
  font-size: 14px;
  width: 220px;
}

.search-form input[type="submit"] {
  border-radius: 20px;
  border: none;
  background: #8b3edb;
  color: #fff;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 14px;
}

.search-form input[type="submit"]:hover {
  background: #a25ae6;
}

/* ================================
   📱 Mobile Optimierung
   ================================ */
@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .wh-search-wrapper form {
    justify-content: center;
    margin-top: 12px;
  }
}

/* 🔧 Such-Plugin-Knopf ausblenden */
.searchwp-live-search-toggle,
.searchwp-live-search-button {
  display: none !important;
}
