/* =========================================================
   ROOT.CSS – systemrelevantes CSS
   Hier kommt CSS rein, das an JS-gesteuerte Systemlogik gekoppelt ist
   (z. B. Cookie-Banner / Google-Maps-Umschaltung), NICHT das visuelle
   Template-Styling. Für das Template-Aussehen bitte style.css nutzen.
   ========================================================= */

html, body{
	color:#fff;
	font-family: "Roboto", sans-serif;
	font-weight: 300;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	background-attachment: fixed;
  background-color: #bebebe;
	scroll-behavior: smooth;
	width   : 100%;
	height  : auto;
	margin  : 0;
	padding : 0;
}
/* --- STRUKTUR--- */
.center{
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width:40%;
    margin: 0 auto;
}
.left{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    margin: 0 auto;
}

/* --- webgl html background--- */
.infomercial {
    position: fixed;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    width: auto; 
    max-width:400px;
    height: auto;
    box-sizing: border-box; 
    word-break: break-word; 
    overflow-wrap: break-word; 
}
.infomercial img{
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    object-fit: unset;
}
/* --- webgl hinweiss infobox--- */
#scene-info-box {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: rgb(255, 255, 255);
    padding: 16px 32px;
    border-radius: 8px;
   
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.5s;
    display: flex;
    align-items: center;
    height:5%;
    
    width: auto;
}
#scene-info-box img{
    height: 100%;
    width: auto;
}
#scene-info-box span{
    display: inline-block;
    vertical-align: middle;
    
}
/* --- bottom hinweiss image pc oder mobile samt js shake --- */
#usageCont{
	width: clamp(100px, 20vw, 300px); /* proportionale Verkleinerung statt hartem Breakpoint-Sprung */
	aspect-ratio: 3 / 2; /* behält das ursprüngliche 300x200-Seitenverhältnis bei */
	height: auto;
	position: fixed;
	bottom: 5%;
	right: 5%;
	pointer-events: none;
	display:block;
}

#usageCont img{
	width: 100%;
	height: 100%;
	object-fit: cover; /* Bild füllt den verfügbaren Platz proportional */
}
.shake {
    animation: shakeAnim 0.5s;
}
@keyframes shakeAnim {
    0% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-8px); }
    80% { transform: translateX(8px); }
    100% { transform: translateX(0); }
}
/* --- inhalt struktur--- */
.overlayA{
  position: relative;
  display: inline-block; /* Oder 'block', je nach gewünschtem Layout */
  overflow: hidden;      /* Verhindert, dass das Overlay übersteht */
}
.overlayA::after {
  content: "";
  position: absolute;
  inset: 0; /* Setzt top, right, bottom und left gleichzeitig auf 0 */
  background-color: rgba(0, 102, 204, 0.5);
  transition: background-color 0.3s ease;
}
.overlayA:hover::after {
  background-color: rgba(0, 102, 204, 0.829); /* Blauton mit 50% Deckkraft */
}
.overlayA .selected{
  background-color: rgba(0, 102, 204, 0.1); /* Blauton mit 50% Deckkraft */
}
.overlayA.overlaySelected::after{
  background-color: rgba(78, 109, 150, 0.9); /* Grünton für ausgewählte Kachel */
}
#blocksack{
  display:block;
  position:relative;
  padding-top:15%;
  transition: transform 1.9s ease;
  z-index:900;
  padding-bottom:20%;
}
#blocksack.toggled {
    transform: translateX(-100vw);
    opacity: 0;
    pointer-events: none;
    transition: transform 3.5s, opacity 3.5s;
    overflow: hidden; /* Prevent scroll when toggled */
}
.block {
  height:auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-bottom: 0px solid #ccc;
  text-align: left;
  position: relative;
  overflow: hidden;
  z-index:900;
  pointer-events: all;
}
.fence {
  position: relative;
  width: 80%;
  max-width: 1900px;
  
  height: auto;
  overflow:hidden;
}
.changriguata{
    padding:0.5vw;
}
.changrilaCont {
  position: relative;
  display: grid;
  /* ---grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); */
  gap: 5px;
  justify-items: start; 
  height:auto;
  transition: transform 0.3s ease;
  padding-top:5px;
  min-height:50px;
}
.chagridA {
  grid-template-columns: repeat(3, 1fr);
}
.chagridB {
  grid-template-columns: repeat(2, 1fr);
}
.chagridH {
  grid-template-columns: repeat(4, 1fr);
}
.spacer {
  position:relative;
  /* proportional statt fixer px/%-Wert: % greift hier nicht, da #blocksack keine feste Höhe hat */
  height: clamp(1.25rem, 4vw, 5rem);
  
}
.product-tile {
  position:relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  overflow:hidden;
  border: 0px solid rgba(236, 20, 20, 1);
  box-sizing: border-box;
  z-index:2;
}
/* --- Touch Interaktion --- */
.intocable {
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none;    /* Firefox */
  -ms-user-select: none;     /* IE10+/Edge */
  user-select: none;         /* Standard */
  pointer-events: none;
}
.tocable {
    pointer-events:auto ;
}
/* --- Bilder --- */
img{
  width:100%;
  height: auto;
  object-fit: cover;
}
/* --- Buttons --- */
button, .wp-block-button__link{
  position: relative;
  background: transparent;
  color:var(--textfarbe);
  font-weight: 600;
  font-size: clamp(0.7rem, 0.8vw, 1rem);
  padding: 30px 25px;
  width: 100%;
  text-align: center;
  cursor: pointer;    
  background-position: center;
  transition: background 0.2s, color 0.2s;
  border:0;
  display: inline-block;
  pointer-events: all;
  margin: 0;
  box-sizing: border-box;
}
button:hover {
  background-color: var(--firmenFarbeAlpha);
  color: #ffffff;
  transform: scale(1.01);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
/* --- CANVAS --- */
#canvas-container{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  z-index:2;
}
#renderCanvas {
	position:fixed;
	top:0px;
	width   : 100%;
	height  : 100%;
	user-select: none;
	touch-action: none;
	background-color:transparent;
	-webkit-tap-highlight-color: rgba(0,0,0,0);
}
/* --- hand zur webgl Interaktion --- */
.intoInteractive {
  width: 20%;
  height: 20%;
}
.intoInteractive:hover {
  transform: scale(1.1);
  transition: transform 250ms;
}
.centurio{
  display: flex;
  justify-content: center;
  align-items: center;
}
.swinger {
  display: inline-block;
  animation: floatY 2s ease-in-out infinite;
}
@keyframes floatY {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0);
  }
}
/* --- hand zuruck zur html Interaktion --- */
#zuruckHand.visible {
  opacity: 1;
  display: block;
}
#zuruckHand{
  position:fixed;
  top:50%;
  left:0;
  transform: translateY(-50%);
  z-index:999;
  display:none;
  opacity: 0;
  max-width: 100px;
  width: 10%;
}
#zuruckHand.active{
  opacity: 1;
  display:block;
  transform: scale(1.2);
  transition: transform 0.5s ease, opacity 0.5s ease; /* Gleiche Dauer wie die Menübewegung */
}
/* --- loading animation canvas--- */
.lds-ellipsis {
  position:absolute;
  top: 180px;
  left: 40px;
  width:150px;
  height:150px;
}
.lds-ellipsis H2{
  padding-top:45px;
  color:#fdfdfd;
}
.lds-ellipsis div {
  position: absolute;
  top: 33px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
}
.lds-ellipsis div:nth-child(1) {
  left: 8px;
  animation: lds-ellipsis1 0.6s infinite;
}
.lds-ellipsis div:nth-child(2) {
  left: 8px;
  animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(3) {
  left: 32px;
  animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(4) {
  left: 56px;
  animation: lds-ellipsis3 0.6s infinite;
}
@keyframes lds-ellipsis1 {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
  }
  @keyframes lds-ellipsis3 {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
  }
  @keyframes lds-ellipsis2 {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(24px, 0);
  }
}
/* --- CANVAS cortinas blendeffekt--- */
#cortinas{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color:#a3a7ad;
    display:none;
    z-index:1;
}
/* --- Showroom Lade-Overlay: blockiert webgl-links (#showroomID) komplett während die scene lädt --- */
.showroom-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(163, 167, 173, 0.85);
  z-index: 50;
  cursor: progress;
}
.showroom-loading-overlay .lds-ellipsis {
  position: static;
  top: auto;
  left: auto;
}
/* --- Main Menu (header) --- */
#mainMenu{
	position:fixed;
	background-color:#fff;
	width:100%;
	z-index:999;
	height:9%;
	display: flex;
	align-items: stretch;
  flex-direction: row;
}
#banner {
    height: 70%;
    overflow: hidden;
    border: 0px solid #333;
    flex: 1;
    align-self: center;
}
/* --- Main Menu banner scroller --- */
#banner .banner-overflow {
    height: 100%;
    width: 70vw;
    overflow: hidden;
    margin: 0 auto;
    display: flex; 
    flex-direction: row; 
}
.scrolling-image {
    display: flex;
    height: 100%;
    animation: scroll 60s linear infinite;
}
.scrolling-image img {
    height: 100%;
    width: auto; 
}
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}
/* --- Language Selector --- */
#appLogoCont{
    width: auto;
    height: 100%;
    cursor: pointer;
    display: flex;
    align-items: center; /* Vertikal mittig */
}
#appLogoCont img{
	width: auto;
	height: 50%;
	cursor: pointer;
    margin-left:20px;
}
#appLogoCont div {
	height: 100%;
	
	align-content: center;
}
/* --- Language Selector --- */
#language {
    margin-right: 20px;
    height: 100%;
    display: flex;
    align-items: center;
    font-size: clamp(0.7rem, 0.9vw, 1.1rem);
    display: none;
}
.lang-link {
  display: inline-flex;
  align-items: center;
  border-radius: 0px;
  transition: 
    box-shadow 0.2s cubic-bezier(.23,1,.32,1),
    transform 0.2s cubic-bezier(.23,1,.32,1),
    background 0.2s;
  padding: 2px;
  position: relative;
  z-index: 0;
}
.lang-link svg {
  display: block;
  border-radius: 0px;
  box-shadow: 0 1px 3px 0 rgba(0,0,0,0.04);
  transition: filter 0.2s, box-shadow 0.2s;
}
.lang-link:hover,
.lang-link:focus-visible {
  transform: scale(1.12) rotate(-2deg);
  box-shadow: 0 4px 16px 0 rgba(0,0,0,0.10), 0 0 0 3px #48793955;
  background: rgba(255,255,255,0.12);
}
.lang-link:hover svg,
.lang-link:focus-visible svg {
  filter: brightness(1.1) drop-shadow(0 1px 6px #fff6);
}
.lang-link.active,
.lang-link.selected {
  box-shadow: 0 0 0 3px var(--firmenFarbe), 0 2px 10px 0 rgba(0,0,0,0.10);
  background: linear-gradient(90deg, #fffbe9 0%, #fff3 60%, #fffbe9 100%);
  /* Optional animierter Glanz */
  
}
.lang-link.active svg,
.lang-link.selected svg {
  filter: brightness(1.14) drop-shadow(0 2px 8px #30742e77);
}
.lang-separator {
  margin: 0 4px;
  color: #bbb;
  font-weight: 300;
  letter-spacing: 0.2em;
  user-select: none;
}
/* --- minimap --- */
#minimap {
    position: absolute;
    bottom: -30px;
    left: 0px;
    width: auto;
    height: auto;
    z-index: 999;
    display:inline-block;
    text-align: left;
    padding: 0px;
    pointer-events: none;
    font-size:  clamp(0.6rem, 0.8vw, 1rem);
    color: #fff;
    background-color: rgba(0, 0, 0, 0.05);
    padding: 4px;
}
#minimapLocation img {
    width: 15px; 
    height: 15px;
    margin-left: 10px;
    pointer-events: none;
}
#minimapLocation {
    font-weight: bold;
}

/* --- Cookie-Banner / Google-Maps-Umschaltung (PageFunctions.js: startCookieBanner(), loadGoogleMaps()) --- */

#Cookiebanner{
	position:fixed;
	top:0px;
	width:100%;
	height:100%;
	z-index:999;
	background: rgba(9,105,172,0.5);
}

#cookienotice{
	
	height:auto;
	width:100%;
	position:fixed;
	bottom:0px;
	margin:0px auto;
	background-color:#353535;
}

#cookienotice p{
	color:#b9b9b9;
	font-size: clamp(12px, 3vw, 20px); /* proportionale Verkleinerung, ab 400px Breite stabil */
	padding: clamp(10px, 2.5vw, 20px);
}

#cookienotice a{
	color:var(--firmenFarbe);
	font-weight: 900;
}
#cookienotice a:hover {
    color:var(--menuitemsHover); /* Text wird bei Hover schwarz */
}
 #consent[type="submit"]{
  padding: clamp(15px, 3.75vw, 40px); /* proportionale Verkleinerung, ab 400px Breite stabil */
  background-color: var(--firmenFarbe);
  color: #fff;
  border: 5px;
  border-color:#000;
  cursor: pointer;
  font-size: clamp(12px, 3vw, 20px);
}

.kontakt .kontaktMap .mapsPlaceholder {
  width: 100%;
  height: 430px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  padding: 24px;
  background: #f1f1f1;
}

.kontakt .kontaktMap .noMapsReplacePicture {
  width: 100%;
  height: 430px;
}

.kontakt .kontaktMap .noMapsReplacePicture a,
.kontakt .kontaktMap .noMapsReplacePicture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 650px) {
  .kontakt .kontaktMap .mapsPlaceholder {
    height: 340px;
  }

  .kontakt .kontaktMap .noMapsReplacePicture {
    height: 340px;
  }
}

/* --- Viewport-Scroll-Reveal-Animation (PageFunctions.js: viewportTrigger()) ---
   JS beobachtet Elemente mit Klasse "element" per IntersectionObserver und
   fügt bei Sichtbarkeit "triggered-in-viewport" hinzu. */

.element {
  opacity: 1;
  transform: translateY(200px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

.elA {
  transform: translateY(200px);
}

.elB {
  transform: translateX(-250px);
}

.triggered-in-viewport {
  opacity: 1;
  transform: translate(0, 0);
}

/* --- WP-Block Ein-/Ausblend-System (PageFunctions.js: showWPblock()/hideWPblocks(), categories.js) --- */

#wpSack {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  padding-top: 100px;
  z-index: 900;
}

.wpHidden,
.wpVisible {
  overflow: hidden;
}

.wpHidden {
  opacity: 0;
  visibility: hidden;
  height: auto;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
}

.wpVisible {
  opacity: 1;
  visibility: visible;
  height: auto;
  overflow: visible;
  pointer-events: auto;
  position: relative;
}

/* --- Interaktions-Sperre während 3D-Viewer-Übergängen (functions.js) --- */

.intocable {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  pointer-events: none;
}

/* --- Akkordeon-Mechanik (PageFunctions.js: accordeonStart()) ---
   JS setzt content.style.maxHeight dynamisch (abhängig von scrollHeight);
   overflow/transition müssen hier definiert sein, damit die Animation läuft. */

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease,
    padding 0.3s ease;
}


/* --- fotomodus overlay --- */
#zwet-foto-overlay {
  position: absolute;
  top: 130px;
  right: 150px;
  width: 100px;
  height: 100px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#zwet-foto-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* --- navigation sidemenu auf Touch-Geräten ausblenden --- */

@media (pointer: coarse) {
  /* Styles für Touch-Geräte (Smartphones/Tablets) */
  #navigation {
    display: none; /* Navigation auf Touch-Geräten ausblenden */
  }
  .chagridA {
    grid-template-columns: repeat(2, 1fr);
  }
  /* animation deaktivieren auf Touch-Geräten */
  .triggered-in-viewport {
    opacity: 1;
    transform: translate(0, 0);
  }
  .elA {
  transform: translateY(0px);
  }
  .elB {
    transform: translateX(0px);
  }
}