/*
Theme Name: SÄLZERTV 2026
Theme URI: 
Author: SILBERWEISS
Author URI: 
Description: Ein Theme für das Sälzer TV im Jahre 2026
Requires at least: 6.9
Tested up to: 6.9
Requires PHP: 7.2
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: saelzertv-2026
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 */

:root {
  interpolate-size: allow-keywords;
}

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

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

@media (max-width: 768px) {
  header .wp-block-site-logo {
    max-width: 150px;
  }
}


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

/* Aktiver Menüpunkt: Textfarbe */
header nav .current-item > a,
footer nav .current-item > a,
header nav .current-menu-item > a,
footer nav .current-menu-item > a,
header nav .current_page_item > a,
footer nav .current_page_item > a {
	color: var(--wp--preset--color--accent-1) !important;
}

/* Aktiver Menüpunkt: Unterstrich */
header nav .current-item > a::after,
footer nav .current-item > a::after,
header nav .current-menu-item > a::after,
footer nav .current-menu-item > a::after,
header nav .current_page_item > a::after,
footer nav .current_page_item > a::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; /* Sanfte Bewegung */
}

header a:hover, footer a:hover {
  text-decoration: none !important;
} 

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

:root :where(.wp-block-button .wp-block-button__link):hover {
  background-color: var(--wp--preset--color--contrast) !important;
}

.header-search-bar button, .footer-search-bar button {
  padding: 10px !important;

}

.header-search-bar .wp-block-search__input, .footer-search-bar .wp-block-search__input {
  width: 250px !important;
  padding-right: 0 !important;
}

@media (max-width: 900px) {

  header .wp-block-navigation__responsive-container:not(.is-menu-open) {
    display: none !important;
  }

  header .wp-block-navigation__responsive-container-open {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  header .wp-block-navigation__responsive-container-open svg {
    width: 28px;
    height: 28px;
  }


  header .wp-block-navigation__responsive-container-close {
    display: flex !important;
  }
}

@media (max-width: 1300px) {
  .header-search-bar {
    display: none !important;
  }
}

.mobile-navi-container {
  margin-left: calc(var(--wp--preset--spacing--30) * -1) !important;
  margin-right: calc(var(--wp--preset--spacing--30) * -1) !important;
  > .wp-block-navigation {
    width: 100%;
    > ul.wp-block-navigation__container { width: 100%; text-align: center;}

    .wp-block-navigation-item {
      width: 100%;

      > a {
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid #D5D5D5;
        &::after {
          display: none !important;
        }
      }

      &.current-menu-item > a > span {
        border-bottom: 2px solid var(--wp--preset--color--accent-1) !important;
      }
    }
  }
}



.gs-video.gs-pinned {
  position: fixed !important;
  bottom: 20px;
  right: 20px;
  top: auto !important;
  left: auto !important;
  width: 95vw;
  width: max(350px, 95vw);
  height: 180px;
  z-index: 999999;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border-radius: 10px;
  overflow: hidden;
  transition: width .25s ease, height .25s ease;
}

.gs-video.gs-pinned.gs-pinned-expanded {
  width: 640px;
  height: 360px;
}

.gs-pin-placeholder {
  display: block;
}

.gs-pin-controls {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 1000000;
  display: flex;
  gap: 6px;
}

.gs-pin-controls button {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gs-pin-controls button:hover {
  background: rgba(0,0,0,0.85);
}

@media (max-width: 480px) {
  .gs-video.gs-pinned { width: 95vw; width: max(220px, 95vw); height: calc(95vw * 9 / 16); }
  .gs-video.gs-pinned.gs-pinned-expanded { width: 90vw; height: calc(90vw * 9 / 16); }
}


@media (min-width: 991px) {
  .gs-video.gs-pinned {
    position: fixed !important;
    bottom: 20px;
    right: 20px;
    top: auto !important;
    left: auto !important;
    width: 95vw;
    width: min(650px, 95vw);
    height: calc(min(650px, 90vw) * 9 / 16);
    z-index: 999999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-radius: 10px;
    overflow: hidden;
    transition: width .25s ease, height .25s ease;
  }
  
  .gs-video.gs-pinned.gs-pinned-expanded {
    width: 800px;
    height: 450px;
  }
}
