/*
Theme Name: SILBERWEISS 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.2
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;

}


html body .wp-site-blocks {
  min-height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}

html body.admin-bar .wp-site-blocks {
  min-height: calc(100vh - 32px);
  min-height: calc(100dvh - 32px);
}

html body .wp-site-blocks > main {
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
}


/* 1. Use a more-intuitive box-sizing model */
*, *::before, *::after {
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
  }

  
  * {
    line-height: calc(1em + 0.5rem);
  }
  
  /* 3. Enable keyword animations */
  @media (prefers-reduced-motion: no-preference) {
    html {
      interpolate-size: allow-keywords;
    }
  }
  body {
    /* 5. Improve text rendering */
    -webkit-font-smoothing: antialiased;
  }
  /* 6. Improve media defaults */
  img, picture, video, canvas, svg {
    display: block;
    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%;
}

html.has-modal-open {
    overflow-y: scroll;
}

html.has-modal-open body {
    overflow: clip;
    max-height: 100vh;
}

html body footer:after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    position: fixed;
    inset: 0;
    z-index: 250;
    -webkit-transition: opacity 0.3s ease;
    -o-transition: opacity 0.3s ease;
    transition: opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

html.has-modal-open body footer:after {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

html.has-modal-open body.admin-bar {
    max-height: calc(100vh - 32px);
}


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


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

a:hover {
    text-decoration: none;
}



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


@view-transition {
    navigation: auto;
  }

.wp-block-button .wp-block-button__link {
    border: solid 1px var(--wp--preset--color--accent-1) !important;
}

.wp-block-button .wp-block-button__link:hover {
  background-color: #fff;
  color: var(--wp--preset--color--accent-1) !important;
  border: solid 1px var(--wp--preset--color--accent-1) !important;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background-color: var(--wp--preset--color--accent-1);
  color: var(--wp--preset--color--base) !important;
  border: solid 1px var(--wp--preset--color--base) !important;
}

.ansprechpartner {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  flex-wrap: wrap;
  gap: 50px;
}

.jobs-modal .jobs-modal-content {
  z-index: 1000;
}