/*
Theme Name: Kinderschatzkiste 2025
Theme URI: https://kinderschatzkiste.de
Author: Kevin Taron
Author URI: https://gutwerker.de
Description: Theme für Kinderschatzkiste
Requires at least: 6.7
Tested up to: 6.7
Requires PHP: 7.2
Version: 1.3.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kinderschatzkiste-2025
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: .1em;
}

* {
	color-scheme: dark;
	-webkit-box-sizing: border-box;
	        box-sizing: border-box;
}

img {
	max-width: 100%;
	height: auto;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
	outline-width: 2px;
	outline-style: solid;
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
	margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
	outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
	text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
	display: block;
}


/* scrollbar */

body::-webkit-scrollbar-track
{
  -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
  border-radius: 10px;
  background-color: transparent;
}

body::-webkit-scrollbar
{
  width: 5px;
  background-color: transparent;
}

body::-webkit-scrollbar-thumb
{
  border-radius: 10px;
  -webkit-box-shadow: inset 0 0 3px rgba(0,0,0,.3);
  background-color: var(--wp--preset--color--accent-5);
}

::-moz-selection {
	background-color: var(--wp--preset--color--accent-5);
	color: var(--wp--preset--color--base);
}

::selection {
	background-color: var(--wp--preset--color--accent-5);
	color: var(--wp--preset--color--base);
}


picture {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
}

/* search */
.wp-block-search__inside-wrapper {
	-webkit-margin-before: .5rem;
	        margin-block-start: .5rem;
}


/* werbe anpassung */
.lower-title-link {
	font-size: 1rem;
    line-height: 1.5;
}

.humix-universal-js-insert {
	max-width: min(768px, 90vw) !important;
}


@media (max-width: 620px) {
	main .ezoic-ad.adtester-container {
		width: 100vw;
		margin-left: calc(var(--wp--style--root--padding-left) * -1) !important;
		margin-right: calc(var(--wp--style--root--padding-left) * -1) !important;
		max-width: 100vw !important;
		overflow: clip;
	}

	main .ezoic-ad.adtester-container .ezoic-ad > div iframe {
		position: absolute !important;
		left: 0; right: 0;
	}
}



/* wishicon tooltip */
body.single-post .wishiconwrap { anchor-name: --wishicon; }
body.single-post .wishiconwrap:before {
	content: "";
	position: fixed;
	position-anchor: --wishicon;
	bottom: anchor(top);
	width: 0;
	height: 0;
	border: 0 solid transparent;
	justify-self: anchor-center;
	border-left-width: 6px;
    border-right-width: 6px;
	border-top-width: 6px;
	border-color: transparent;
	border-top-color: #a507bf;
	-webkit-animation: wishicon-tooltip-hide .2s ease-in-out;
	        animation: wishicon-tooltip-hide .2s ease-in-out;
	-webkit-animation-delay: 5s;
	        animation-delay: 5s;
	-webkit-animation-fill-mode: forwards;
	        animation-fill-mode: forwards;
}
body.single-post .wishiconwrap:after {
	content: "Deine Favoriten speichern";
    font-size: .75rem;
    position-anchor: --wishicon;
    bottom: calc(anchor(top) + 6px);
    right: anchor(center);
    position-try-fallbacks: flip-block;
    background: #a507bf;
    padding: .2rem;
    text-align: center;
    width: 90px;
    text-wrap: balance;
    position: fixed;
    justify-self: anchor-center;
	-webkit-animation: wishicon-tooltip-hide .2s ease-in-out;
	        animation: wishicon-tooltip-hide .2s ease-in-out;
	-webkit-animation-delay: 5s;
	        animation-delay: 5s;
	-webkit-animation-fill-mode: forwards;
	        animation-fill-mode: forwards;
}

/* animation wishicon tooltip hide after 5 seconds */
@-webkit-keyframes wishicon-tooltip-hide {
	from { opacity: 1; }
	to { opacity: 0; }
}
@keyframes wishicon-tooltip-hide {
	from { opacity: 1; }
	to { opacity: 0; }
}

