/*
Theme Name: BAW Theme 2025
Theme URI: 
Author: GUTWERKER
Author URI: 
Description: Ein Design für BAW 2025
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 7.2
Version: 1.2.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: baw-theme-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;
}

:target {
  scroll-margin-top: 85px;
}

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

/* 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%;
  height: auto;
}

/* 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;
  hyphens: auto;
  hyphenate-limit-chars: 15 6 4;
}

/*
    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;
  text-underline-offset: 0.25em;
}

a {
  -webkit-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

strong,
b {
  font-weight: 700 !important;
}

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



/* Slider Styles */

:root {
  --swiper-theme-color: var(--wp--preset--color--contrast) !important;
}

.slider-overflow {
  overflow-x: hidden !important;

  .gs-slider-toggle {
    left: 0 !important;
    bottom: -1rem !important;
    padding: 0;
  }
}

/* Slider Pagination – Standard links */
.gs-swiper-init .swiper-pagination,
.swiper-pagination.swiper-pagination-bullets.swiper-pagination-horizontal {
  text-align: left !important;
  bottom: -40px !important;
}

/* Aktiver Bullet */
.swiper-pagination-bullet-active {
  width: 8px !important;
}

/* Slider Buttons – Standard links */
.swiper-button-prev,
.swiper-button-next {
  bottom: unset !important;
  top: unset !important;
  margin: 0 !important;
  border-radius: 99px;
  right: 56px !important;
  background-color: #fff !important;
  bottom: -60px !important;
  left: unset !important;
}

.swiper-button-next {
  right: 0px !important;
}

/* Half-Slider – rechtsbündig */
.half-slider .gs-swiper-init .swiper-pagination {
  text-align: left !important;
  padding-right: 15%;
  bottom: -40px !important;
}

.half-slider .swiper-button-next {
  left: unset !important;
  right: 0 !important;
}

.half-slider .swiper-button-prev {
  left: unset !important;
  right: 56px !important;
}


/* Dynamic Title Element */
.gspb-dynamic-title-element {
  margin: 0 !important;
  text-align: left;
}

/* Dynamic Excerpt Element */
.wp-block-post-excerpt {
  margin: 0 !important;
}

/* Gallery Grid */
.gspb_gallery_grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.product-galery .gspb_gallery_grid * {
  box-shadow: 0px 2px 6px rgba(220, 220, 220, 0.06) !important;
  border-radius: 8px;
  background-color: #fff;
}

.product-galery .gspb_gallery_grid *:nth-child(1) {
  box-shadow: 0px 8px 24px rgba(100, 100, 100, 0.18) !important;
  border-radius: 8px;
  background-color: #fff;
}

.angebote-img img {
  aspect-ratio: 1 / 1 !important;
}

.d-none {
  display: none !important;
}


/* fluentForms stylings */
.fluentform .ff-el-group.ff_list_buttons .ff-el-form-check.ff_item_selected label>span {
  background-color: var(--wp--preset--color--accent-1) !important;
  color: var(--wp--preset--color--contrast) !important;
  border-color: var(--wp--preset--color--accent-1) !important;
}


/* z index variables */
.overtop {
  position: relative;
}

.top-i-100 {
  z-index: 100;
}

.top-i-200 {
  z-index: 200;
}

.top-i-300 {
  z-index: 300;
}

.top-i-400 {
  z-index: 400;
}

.top-i-500 {
  z-index: 500;
}

.top-i-600 {
  z-index: 600;
}

.top-i-700 {
  z-index: 700;
}

.top-i-800 {
  z-index: 800;
}

.top-i-900 {
  z-index: 900;
}

.top-i-1000 {
  z-index: 1000;
}