/*
Theme Name: Andre Pollmann Theme
Theme URI: 
Author: SILBERWEISS
Author URI: https://silberweiss.de
Description: Eine Theme für Andre Pollmann
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 7.2
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: andre-pollmann-theme
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

/* basic stylings */

/* Styles intended only for the frontend.*/
html {
	  scroll-behavior: smooth;
    line-height: 1.15; /* 1 */
    -webkit-text-size-adjust: 100%; /* 2 */
    overflow-x: clip;

    scrollbar-gutter: stable;
    scrollbar-color: var(--wp--preset--color--contrast) var(--wp--preset--color--base);
    scrollbar-width: .5rem;
}

/* 1. Use a more-intuitive box-sizing model */
*, *::before, *::after {
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
  }
  
  /* 3. animations */
  @media (prefers-reduced-motion: no-preference) {
    html {
      interpolate-size: allow-keywords;
    }
    @view-transition {
      navigation: auto;
    }
  }

  @media (prefers-reduced-motion: reduce) {   
    * {
      animation: none !important;
      transition: none !important;
    }
  }


  body {
    hyphens: auto;
    /* 5. Improve text rendering */
    -webkit-font-smoothing: antialiased;
  }
  /* 6. Improve media defaults */
  img, picture, video, canvas, svg {
    max-width: 100%;
  }
  /* 7. Inherit fonts for form controls */
  input, button, textarea, select {
    font: inherit;
  }
  /* 8. Avoid text overflows */
  p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
  }
  /* 9. Improve line wrapping */
  p {
    text-wrap: pretty;
  }
  h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
  }
  /*
    10. Create a root stacking context
  */
  #root, #__next {
    isolation: isolate;
  }

@media screen and (prefers-reduced-motion: reduce) {

	html {
		scroll-behavior: auto;
	}
}

body {
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
    margin: 0;
    overflow-x: clip;
    max-width: 100%;
}


* {
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
}

a {
    -webkit-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}


/* 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;
}


/*
 * 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;
}

/* Hover-Effekt Navi-Links */
:where(header, footer) :where(nav) {
   a:hover { text-decoration: none; color: var(--wp--preset--color--accent-4) !important; }
   a::after {
      content: '';
      position: absolute;
      bottom: 0; 
      left: 0;
      width: 0;
      height: 2px;
      background-color: var(--wp--preset--color--accent-4);
      -webkit-transition: width 0.3s ease;
      -o-transition: width 0.3s ease;
      transition: width 0.3s ease;
   }
   a:is(:hover, .active)::after, .current-menu-item > a::after { color: var(--wp--preset--color--accent-4) !important; width: 100%; }
   .current-menu-item > a { color: var(--wp--preset--color--accent-4) !important;  }
}

.ff_btn_style:hover,
.ff_btn_style:focus{
    background-color: var(--wp--preset--color--accent-2) !important;
    opacity: 1 !important;
    border-color: var(--wp--preset--color--accent-2) !important;
    color: var(--wp--preset--color--base) !important;
}

@media screen and (max-width: 600px) {
  .heading-training {
    color: var(--wp--preset--color--accent-3) !important;
  }
}
