/*
Theme Name: Gut Erlheim Theme
Theme URI: https://gut-erlheim.com
Author: Anders - Mediadesign
Template: twentytwentyfive
Version: 1.0
Text Domain: gut-erlheim-theme
*/

:root{
  --header-height: 200px;
}

ul li {
  /* Data-URI: %23 = # in HEX-Farben */
  list-style-image: url("../guterlheimtheme/img/list.svg");
  padding: 0 0 0 20px;
  line-height: 2rem;
}

/*--- NAV ---*/
.pa-font-bebas a{
font-family: "Bebas Neue", sans-serif!important;
  font-weight: 400!important;
  font-style: normal!important;
}

#site-header .pa-header-nav a{
    padding:0 0 0 10px;
    margin: 0 0 0 10px;
}

/* --- SUBNAV---*/
#site-header .pa-subnav-icon{
  margin: 0 0 0 15px;
}

#site-header .pa-subnav{
  transform-origin: center center;
  transform: scale(1);
  padding-top: 50px;
  padding-bottom: 0px; /* Ausgangswert */
  transition:
    transform 0.35s cubic-bezier(.22,.61,.36,1),
    padding-top 0.35s cubic-bezier(.22,.61,.36,1);
  will-change: transform, padding-top;
}

#site-header.is-shrunk .pa-subnav{
  transform: scale(1);   /* ggf. .92–.96 feinjustieren */
  padding-top: 10px;
  padding-bottom: 0px;
}

/* 2) Sticky auf den tatsächlichen Header-Wrapper setzen
   (Template-Part Header oder direktes <header> unter .wp-site-blocks) */
.wp-site-blocks > header,
.wp-site-blocks > .wp-block-template-part{
  position: -webkit-sticky; 
  position: sticky;
  top: var(--wp-adminbar-h, 0px);
  z-index: 1000;
}
#site-header{
  /* deine Start-Höhe */
  position: -webkit-sticky; /* Safari/iOS */
  position: sticky;
  z-index: 1000;
  height: 200px;
  transition: height .18s ease, box-shadow .18s ease;
  background: var(--hdr-bg, #fff);
}
#site-header.is-shrunk{
  height: 120px;
}

#site-header .wp-block-navigation{
  transform-origin: center center;
  transform: scale(1);
  padding-top: 10px;
  padding-bottom: 10px; /* Ausgangswert */
  transition:
    transform 0.35s cubic-bezier(.22,.61,.36,1),
    padding-top 0.35s cubic-bezier(.22,.61,.36,1);
  will-change: transform, padding-top;
}

#site-header.is-shrunk .wp-block-navigation{
  transform: scale(1);   /* ggf. .92–.96 feinjustieren */
  padding-top: 5px;
  padding-bottom: 30px;
}

/*
#site-header.is-shrunk .wp-block-image img{
height: 100px;
}
*/
/* --- LOGO ---*/

#site-header .brand-logo{
  display:inline-block;
  line-height:0;
  transform-origin: top center;            /* skaliert „von oben links“ */
  transform: scale(1.1);
  transition: transform .28s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}

/* 2) Shrink-State (setzt du ja bereits auf #site-header.is-shrunk) */
#site-header.is-shrunk .brand-logo{
  transform: translateZ(0) scale(0.70);  /* Scale feinjustieren (0.68–0.78) */
}

/*--- HERO ---*/
.pa-hero {
  min-height: calc(100vh - var(--header-height));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  align-items: center;
  display: flex;
  justify-content: center;
}
.pa-hero-half {
  min-height: 490px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  align-items: center;
  display: flex;
  justify-content: center;
}

.pa-hero-title-shadow{
  text-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/*  Video Preload  */
.pa-my-hero {
  position: relative;
  overflow: hidden;
}

.pa-hero::before {
  content: "";
  position: absolute;
  top:0; left:0; width:100%; height:100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  /* hier Animation z. B. Spinner */
}

.pa-hero.loader-active::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 40px; height: 40px;
  margin: -20px 0 0 -20px;
  border: 4px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  z-index: 30;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.pa-hero video {
  opacity: 0;
  transition: opacity .4s ease;
}
.pa-hero.video-ready video {
  opacity: 1;
}

/*--- Buttons ---*/
.wp-block-button a:hover{
  background-color: #D17F3F;
}

/*--- BLOCKS ---*/
.pa-block-start-00{
  margin-block-start: 0rem;
}
.pa-block-start-05{
  margin-block-start: 0.5rem;
}

.pa-iframe iframe{
  width: 100%!important;
  height: 750px;
  border-radius: 15px;
}

.pa-minheight-350{
  min-height: 350px;
}
.pa-minheight-v50{
  height: 27vh;
}

.pa-width100{
  width:100%;
}
.pa-border-radius{
  border-radius: 25px;;
}

/*--- Timeline ---*/
.pa-no-shadow{
  box-shadow: none!important;
}
.wp-block-getwid-content-timeline-item__card{
  box-shadow: none!important;
  filter: drop-shadow(0 0 0 transparent);
}

/* --- Forms --- */

.wpforms-container .wpforms-field-label, .wp-core-ui div.wpforms-container .wpforms-field-label{
  font-family: Open Sans;
  font-weight: 300;
  letter-spacing: 2px;
}

/*--- TABS ---*/
.standorte-wrapper {
  display: flex;
  gap: 40px;
}

.tabs-left {
  width: 33%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tab {
  padding: 20px;
  background: #4f4b464d;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s ease;
}
h3.standort{
  color: #fff;
  padding: 0!important;
  margin: 0!important;
}

.tab.active {
  background: #d17f3f
;
}

.tabs-right {
  width: 66%;
  position: relative;
}

.tab-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity .4s ease;
}

.tab-image.active {
  opacity: 1;
  position: relative;
}

/*--- Footer ---*/
footer.wp-block-template-part{
  margin-block-start: 0rem;
}

/* Motion-Preference respektieren */
@media (prefers-reduced-motion: reduce){
  .brand-logo{ transition:none; }
}

/* Mobil: keine Animation, kein Scale */
@media (max-width: 767.98px){
  #site-header{
    height: 100px;
  }
  #site-header.is-shrunk{
  height: 80px;
}
#site-header .brand-logo{
  transform: scale(1.8);
}
#site-header.is-shrunk .brand-logo{
  transform: translateZ(0) scale(1.20);  /* Scale feinjustieren (0.68–0.78) */
}
  #site-header .wp-block-navigation{
    transition: none !important;
    transform: none !important;
    will-change: auto!important;
    padding-top: 15px;
    padding-bottom: 0px; /* fixer Wert im Shrink-State oder was du willst */
  }

  /* Falls du per Shrink-State mobil gar nichts ändern willst: */
  #site-header.is-shrunk .wp-block-navigation{
    padding-top: 15px;
    padding-bottom: 0px; /* oder 50px – je nachdem, was mobil besser aussieht */
  }
  #site-header .pa-subnav-icon{
  margin: 0 0 0 10px;
  }
  #site-header .pa-subnav{
  padding-top: 15px;
}
#site-header.is-shrunk .pa-subnav{
  transform: scale(1);   /* ggf. .92–.96 feinjustieren */
  padding-top: 15px;
  padding-bottom: 0px;
}
  #site-header .pa-mobil-off{
    display: none!important;
  }

}