/* css/80-utilities.css */
/* --------------------
   Utilities, Helferklassen & kleine Deko-Elemente
   =============================================== */

/* ============================================================
   BLOCK A: Startseiten-Link & Typo
   ============================================================ */
.usw { margin: 0 15px; text-align: center !important; line-height: 1.5; }
.avia_textblock h3 { line-height: 1.5; }

/* ============================================================
   BLOCK B: Cat_list
   ============================================================ */
.cat_list { text-align: center; padding: 0 20px; }
.cat_list a {
  color: var(--dunkel);
  font-weight: 600;
  font-size: 0.8em;
}

/* ============================================================
   BLOCK C: Menüs / Icons
   ============================================================ */
.dashicons-admin-home:before,
.dashicons-info:before {
  width: 30px !important;
  text-align: center;
  font-size: 1.4em !important;
}
div#mega-menu-wrap-avia.mega-menu-wrap { margin-top: 25px; }
#extra_menue { margin-bottom: -60px; height: 40px; background-position: center bottom; }
div.wrap-menu-container { height: 40px; border-bottom: 2px solid var(--titel); }

/* ============================================================
   BLOCK D: Scroll to top
   ============================================================ */
#scroll-top-link {
  background: var(--marker);
  border-radius: 50px;
  border-color: var(--hell);
}
#scroll-top-link:hover { background: var(--titel); }
#scroll-top-link.avia-svg-icon svg:first-child {
  height: 40px !important; width: auto !important; margin-top: 3px !important;
}

/* ============================================================
   BLOCK E: Social Icons (Mastodon)
   ============================================================ */
#top #wrap_all .av-social-link-mastodon a:before {
  content: "";
  width: 20px; height: 20px;
  display: inline-block; vertical-align: middle;
  background: url("https://kuhrau.de/wp-content/uploads/2024/06/mastodon_grey-1.png") no-repeat center/contain;
}

/* ============================================================
   BLOCK F: Buttons / Links / Tools
   ============================================================ */
.av-social-sharing-box .avia-related-tooltip {
  background: rgba(0,0,0,0.5); border-radius: 5px; color: var(--hell);
}
.submit { border-radius: 20px !important; }
.jig-loadMoreButton { background: var(--hgf) !important; color: var(--marker); }
.jig-loadMoreButton:hover { color: var(--titel); }

/* ============================================================
   BLOCK G: Tabellen
   ============================================================ */
tr { background-color: var(--hgf) !important; border: 2px solid var(--marker) !important; }
th, td { border-bottom: 2px solid var(--marker) !important; }

/* ============================================================
   BLOCK H: Icons, Sonstiges
   ============================================================ */
.av_font_icon, .av-icon-char { padding-bottom: 5px; font-size: 40px; color: var(--dunkel); }

/* ============================================================
   BLOCK I: Suche
   ============================================================ */
.search div.entry-content { padding-bottom: 30px; }
.search-result-counter {
  background-color: var(--hgf) !important; color: var(--dunkel) !important;
  left: -30px; font-size: 1.4em; font-weight: 600; text-align: center;
}

/* ============================================================
   BLOCK J: Rundes Badge-Bild (global)
   ============================================================ */
.rundes_img, .badge-img {
  display: inline-block; float: left;
  width: 80px; height: 80px;
  border-radius: 50%; border: 2px solid var(--hell);
  object-fit: cover; object-position: center;
  margin: 15px 15px 10px 0; box-shadow: none !important;
}
.logo_img img, .rundes_img, .entry-content img.rundes_img, .post-entry img.rundes_img {
  width: 80px !important; height: 80px !important;
  border-radius: 50% !important; border: 2px solid var(--hell);
  object-fit: cover; object-position: center;
  float: left; display: inline-block;
  margin: 0 15px 6px 0 !important; padding: 0 !important;
}
img.rundes_img { border-radius: 90px; }
.news-thumb img { width: 58px; height: 58px; }
.sidebar .wp-post-image { border-radius: 90px; border: 1px solid var(--hell) !important; }
.sidebar a.news-thumb { width: 70px; height: 70px; }

/* Hintergrund/Clipping */
.sidebar a.news-thumb, .sidebar a.news-thumb img, .sidebar .wp-post-image,
.rundes_img, .badge-img,
#michaels-buchtipp .lib-pic .track_this_link,
#michaels-buchtipp .lib-pic .track_this_link img {
  background: transparent !important;
}
.sidebar a.news-thumb { overflow: hidden; border-radius: 50% !important; line-height: 0; }
.with-badge::after { content:""; display: table; clear: both; }
@media (max-width: 767px){
  .rundes_img, .badge-img { width: 64px; height: 64px; margin: 10px 12px 8px 0; }
}
.u-no-shadow { box-shadow: none !important; }
.u-radius-90 { border-radius: 90px !important; }

/* ============================================================
   BLOCK K: Tag Cloud (Themenwolke)
   ============================================================ */
.widget_tag_cloud h3.widgettitle {
  background: none !important; border: none !important;
  margin: 0 0 20px 0 !important; padding: 0 0 2px 10px !important;
}
.widget_tag_cloud .tagcloud {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  background: url("https://kuhrau.de/wp-content/uploads/2024/12/himmel-094955.jpg") center/cover;
  margin: 0 10%; padding: 3% 25px; line-height: 1.1; width: 80%; min-height: 150px;
  box-shadow: var(--shadow-soft) !important; border-radius: var(--radius-large);
  text-align: center; transition: transform .1s ease-in-out;
}
.widget_tag_cloud .tagcloud a {
  display: block; float: left; padding: 2px 8px; margin: 0 2px 2px 0;
  border: none !important; text-decoration: none;
  color: var(--hell); letter-spacing: -0.06em;
}
.tagcloud a:hover { background-color: rgba(158,200,240,.5); border-radius: 6px; transform: scale(1.2); }

/* ============================================================
   BLOCK L: Hover-Effekte für Bilder
   ============================================================ */
a:hover > img, a:focus > img {
  filter: brightness(1.08); transform: scale(1.02);
  transition: transform 0.3s ease, filter 0.3s ease;
  border-radius: inherit;
}
.image-overlay, .image-overlay-inside, .image-overlay .image-overlay-inside:before {
  display: none !important; opacity: 0 !important; visibility: hidden !important;
}
.slide-image:hover .image-overlay, .slide-image:hover .image-overlay-inside {
  display: none !important; opacity: 0 !important;
}

/* ============================================================
   BLOCK M: RSS-Link Buttons
   ============================================================ */
.rss-link-buttons .avia-button {
  background: var(--marker) !important; color: var(--hell) !important;
  border-radius: 25px !important; padding: 6px 18px !important;
  line-height: 1.4 !important; font-size: 0.9em !important;
  display: inline-block; text-align: center; cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}
.rss-link-buttons .avia-button:hover {
  background: var(--titel) !important; color: var(--hell) !important;
}

/* ============================================================
   BLOCK N: Slider-Pfeile (Content-Slider)
   Nur Optik, keine Logik überschreiben!
   ============================================================ */

/* Button-Grundoptik */
.avia-content-slider .avia-slideshow-arrows a {
  background: var(--slider-arrow-bg, var(--marker)) !important;
  color: var(--slider-arrow-fg, #fff) !important;

  width: 48px;
  height: 48px;
  line-height: 48px;

  border: none;
  border-radius: 50%;              /* rund */
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  transition: background .2s ease, color .2s ease, transform .15s ease;
  outline: none;
}

/* Icon im Inneren */
.avia-content-slider .avia-slideshow-arrows a::before {
  color: inherit !important;       /* Pfeil übernimmt Textfarbe */
  font-size: 22px !important;      /* größerer Pfeil */
  line-height: 1 !important;
}

/* Hover/Focus */
.avia-content-slider .avia-slideshow-arrows a:hover,
.avia-content-slider .avia-slideshow-arrows a:focus {
  background: var(--slider-arrow-bg-hover, var(--titel)) !important;
  color: var(--slider-arrow-fg-hover, #fff) !important;
  transform: scale(1.05);
}

/* Klick */
.avia-content-slider .avia-slideshow-arrows a:active {
  transform: scale(0.95);
}

/* ============================================================
   BLOCK O: Slider-Pagination (Dots unter Content-Slidern)
   ============================================================ */

.avia-content-slider .avia-slideshow-dots {
  text-align: center;
  margin-top: 12px;
}

.avia-content-slider .avia-slideshow-dots a {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 5px;
  border-radius: 50%;                        /* rund */
  background: var(--marker, #ddd);              /* inaktive Farbe */
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);    /* dezenter Schatten */
  transition: background .3s ease, transform .2s ease;
}

.avia-content-slider .avia-slideshow-dots a:hover {
  background: var(--marker, #888);           /* Hover-Farbe */
  transform: scale(1.2);                     /* dezent größer */
}

.avia-content-slider .avia-slideshow-dots a.active {
  background: var(--titel, #222);            /* aktive Dot-Farbe */
  transform: scale(1.3);                     /* hervorgehoben */
}

/* ============================================================
   Block P: Anti-Ghosting für Bild-Hover (minimal & robust)
   ------------------------------------------------------------
   - Kein Scale/Transform mehr auf Bildern
   - Nur sanfte Helligkeit auf Hover
   - Vorherige Outline-/Mini-Schatten-Tricks neutralisieren
   ============================================================ */

/* 0) Globale Bild-Hover-Zooms abschalten */
a:hover > img,
a:focus > img {
  transform: none !important;         /* Zoom komplett aus */
  /* nur Filter-Übergang behalten */
  transition: filter .25s ease !important;
}

/* 1) Teaser/Slider/Content – Baseline fürs Bild */
.post-entry .slide-image > img,
.avia-content-slider .slide-image > img,
.entry-content .avia_image img {
  outline: none !important;           /* evtl. "Rand" entfernen */
  box-shadow: var(--shadow-soft) !important; /* kein extra 0.5px-Ring */
  backface-visibility: visible !important;   /* Layer-Tricks zurücksetzen */
  -webkit-backface-visibility: visible !important;
  transform: none !important;         /* falls woanders gesetzt */
}

/* 2) Nur leichte Helligkeit auf Hover (ohne Bewegung) */
.post-entry .slide-image:hover > img,
.post-entry .slide-image a:hover > img,
.avia-content-slider .slide-image:hover > img,
.entry-content .avia_image:hover img {
  filter: brightness(1.04) !important;
}

/* 3) Sicherheit: Overlays bleiben aus (keine zusätzlichen Kanten) */
.image-overlay,
.image-overlay-inside,
.image-overlay .image-overlay-inside:before {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

/* ============================================
   BLOCK Q: Toggle-Link für <details>/<summary>
   .link_weiterlesen – "Mehr / Schließen" mit logischen Pfeilen
   ============================================ */

.link_weiterlesen {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-size: 1em;
  font-weight: 500;
  color: var(--marker) !important;       /* gleiche Farben wie Weiterlesen */
  text-decoration: none !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  line-height: 1.35;
  cursor: pointer;
  transition: color .15s ease;
  padding-bottom: 10px;
}
.link_weiterlesen:hover { color: var(--titel) !important; }

/* Standard <summary>: nativen Marker entfernen */
summary.link_weiterlesen {
  list-style: none;
}
summary.link_weiterlesen::-webkit-details-marker { display: none; }
summary.link_weiterlesen::marker { content: ""; }

/* Geschlossen: Pfeil nach rechts + "Mehr" */
summary.link_weiterlesen::before {
  content: "\25B6";
  font-weight: 700;
  line-height: 1;
  display: inline-block;
  font-size: 0.9em;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform 0.2s ease;

}
summary.link_weiterlesen::after {
  content: "Mehr";
}

/* Geöffnet: Pfeil nach oben + "Schließen" */
details[open] summary.link_weiterlesen::before {
  transform: rotate(90deg);
}

details[open] > summary.link_weiterlesen::after {
  content: "Schließen";
}

summary.link_weiterlesen:hover {
  color: var(--titel);
}

/* Tastaturfokus */
summary.link_weiterlesen:focus-visible {
  outline: 2px dashed var(--marker);
  outline-offset: 2px;
  border-radius: 6px;
}



/* ============================================================
   ERSTER ABSATZ GLOBAL (opener / firstparagraph)
   ============================================================ */
/* Grundtypografie für den ersten Absatz */
.einleitung_seite,
.slide-entry-excerpt.entry-content,
.opener,
.firstparagraph {
  color: var(--schwarz, #222) !important;
  text-align: left !important;
  font-size: 1.05em !important;   /* dezent größer als Fließtext */
  line-height: 1.65 !important;
  margin: 0 0 1em 0 !important;
  font-weight: 500;
}

/* Initiale (erster Buchstabe) – opener OHNE Initiale (absichtlich), andere dürfen */
.einleitung_seite:first-letter,
.slide-entry-excerpt.entry-content:first-letter,
.opener:first-letter,
.firstparagraph:first-letter {
  font-size: 2em;
  line-height: 1em;
  padding: 4px 0px 2px 4px;
  margin: 0.08em 0.1em 0.2em 0;
  font-family: "Times New Roman", Times, serif;
  font-weight: 400;
  /* kein float/display, damit nichts überlappt oder abgeschnitten wird */
}

/* Mobile Feinschliff */
@media (max-width: 480px){
  .einleitung_seite,
  .slide-entry-excerpt.entry-content:first-letter,
  .opener:first-letter,
  .firstparagraph:first-letter {
    font-size: 1.7em;
    padding: 3px 5px 1px 3px;
    margin: 0.06em 0.08em 0.16em 0;
  }
}

/* --- Optionaler Notfall (auskommentiert): Enfold-Delimiter ausblenden
.single-post .av-vertical-delimiter { display:none !important; }
*/