/**
 * Theme Name:     ListingHive - HSP
 * Author:         HivePress (ext. by HSP)
 * Template:       listinghive
 * Text Domain:	   listinghive-hsp
 * Description:    A multipurpose WordPress theme that allows you to build any type of directory and listing websites. Whether it’s a business directory, job board, real estate, classifieds or basically any listing website — ListingHive is a great choice for it.
 */


/* Von ChatGPT empfohlen */

/* ==========================================================================
   ListingHive-safe Base / Reset (Child Theme)
   Ziel: stabile Defaults ohne Theme-Layout (Gutenberg + ListingHive) zu brechen
   ========================================================================== */

/* 1) Box sizing überall konsistent */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2) rem/em Basis + Mobile Text Scaling */
html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* 3) Body: nur wirklich harmlose Defaults */
body {
  margin: 0;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 4) Medien: Überläufe verhindern */
img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  max-width: 100%;
  height: auto;
}

/* Hinweis:
   KEIN globales "display:block" für img/svg/etc., weil ListingHive/Gutenberg
   in manchen Layouts (z.B. inline icons) sonst unerwartete Effekte haben kann.
*/

/* 5) Form-Elemente: Fonts erben, sehr wichtig für HivePress-Suche/Filter */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* 6) Buttons: Cursor */
button,
[type="button"],
[type="submit"],
[type="reset"] {
  cursor: pointer;
}

/* 7) Links: dezente Lesbarkeitsverbesserung */
a {
  text-underline-offset: 0.15em;
}

/* 8) Tabellen: neutral, ohne Theme-Design zu zerstören */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* 9) Fokus (Accessibility): nur bei Tastatur sichtbar */
:focus {
  outline: none;
}

:focus-visible {
  outline: 0.2rem solid currentColor;
  outline-offset: 0.2rem;
}

/* 10) Hidden-Attribute zuverlässig */
[hidden] {
  display: none !important;
}

/* ==========================================================================
   Content Rhythm (scoped!)
   Typo-Abstände nur in Content-Bereichen – NICHT global
   ========================================================================== */

/* Diese Container sind bewusst redundant, damit es in deinem Setup greift.
   Du kannst später nach Bedarf reduzieren. */
.entry-content,
.wp-site-blocks,
.site-content,
.hp-page {
  /* optional: Basis-Rhythmus/Lesbarkeit nur im Content */
}

/* Absatzabstände nur im Content */
.entry-content p,
.wp-site-blocks p,
.site-content p,
.hp-page p {
  margin: 0 0 1rem;
}

/* Überschriftenabstände nur im Content */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6,
.wp-site-blocks h1,
.wp-site-blocks h2,
.wp-site-blocks h3,
.wp-site-blocks h4,
.wp-site-blocks h5,
.wp-site-blocks h6,
.site-content h1,
.site-content h2,
.site-content h3,
.site-content h4,
.site-content h5,
.site-content h6,
.hp-page h1,
.hp-page h2,
.hp-page h3,
.hp-page h4,
.hp-page h5,
.hp-page h6 {
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

/* Listenabstände nur im Content (Bullets bleiben erhalten) */
.entry-content ul,
.entry-content ol,
.wp-site-blocks ul,
.wp-site-blocks ol,
.site-content ul,
.site-content ol,
.hp-page ul,
.hp-page ol {
  margin-top: 0;
  margin-bottom: 1rem;
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
/* Ende der Empfehlung von ChatGPT*/

