/*
Theme Name: 2bessential Theme 2025
Theme URI: 
Author: SILBERWEISS
Author URI: 
Description: A modern default Block Theme from 2025
Requires at least: 6.7
Tested up to: 6.7
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: silberweiss-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



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

    hyphens: auto;

    text-underline-offset: 4px;
}

/* 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 {
    /* 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.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}


/* 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 
nav a:hover {
	color: var(--wp--preset--color--accent-1) !important;
}

header nav a::after,
footer nav a::after {
    content: '';
    position: absolute;
    bottom: 0; 
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--wp--preset--color--accent-1);
    -webkit-transition: width 0.3s ease;
    -o-transition: width 0.3s ease;
    transition: width 0.3s ease;
}

header nav a:hover::after,
footer nav a:hover::after {
    width: 100%;
}

.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;
}

*/


header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    -webkit-transition: top 0.6s ease-in-out;
    -o-transition: top 0.6s ease-in-out;
    transition: top 0.6s ease-in-out;
}

body.admin-bar header {
    top: 32px;
}

footer {
  margin-top: 0;
}

footer .wp-block-navigation-item a {
  font-size: var(--wp--preset--font-size--small) !important;
}

.slider-stimmen {
  clip-path: inset(-9999px -9999px -9999px 0);
}

.slider-stimmen .swiper {
  overflow: visible;
}

@media screen and (max-width: 1100px) {
  .swiper-button-prev {
    left: 85% !important;
    top: -5% !important;
  }
  .swiper-button-next {
    top: -5% !important;
  }
}

.datenschutz {
    font-size: var(--wp--preset--font-size--small) !important;

    a {
      font-size: var(--wp--preset--font-size--small) !important;
    }
}

/* Responsive 2 Spalten Layout für Beiträge */
@media screen and (min-width: 601px) and (max-width: 900px) {
  .wp-container-core-post-template-is-layout-f39bca43 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
}

.post-list-no-spacing > * + * {
    margin-block-start: 0 !important;
    border-top: none !important;
}

@media screen and (max-width: 600px) {
  .newslatter-mobile {
    margin-left: -2rem !important;
    margin-right: -2rem !important;
    border-radius: 0 !important;
  }
}



/* buttons */

/* transparent buttons animation */
.wp-block-button.is-style-outline .wp-block-button__link {
  position: relative;
  z-index: 10;
  overflow: clip;

  &:before {
    backface-visibility: hidden;
    background-color: var(--wp--preset--color--accent-1);
    clip-path: polygon(-1% 0, 0 0, -25% 100%, -1% 100%);
    content: "";
    height: 100%;
    left: 0;
    position: absolute;
    z-index: -1;
    top: 0;
    transform: translateZ(0);
    transition: clip-path .5s cubic-bezier(.165, 0.84, 0.44, 1), -webkit-clip-path .5s cubic-bezier(.165, 0.84, 0.44, 1), border-color .5s cubic-bezier(.165, 0.84, 0.44, 1);
    width: 100%;
  }

  &:hover, &:focus, &:active {
    color: var(--wp--preset--color--base) !important;
    border-color: var(--wp--preset--color--accent-1) !important;
    &:before {
      clip-path: polygon(-10% 0, 101% 0, 101% 101%, -10% 101%);
    }
  }
}

/* Karriere Popup Button */
@media screen and (max-width: 600px) {
  .wp-block-buttons.karriere-popup-button {
    justify-content: flex-start !important; /* !important ist jetzt wahrscheinlich nicht mehr nötig */
  }

  .karriere-popup-button .wp-block-button__link {
    text-align: left !important;
  }
}