/*
Theme Name: Formdorf (Child)
Template: twentytwentyfive
Version: 1.0
*/

body { background: transparent !important; }
.wp-site-blocks { background: transparent; }

.game-bg { position: fixed; inset: 0; z-index: -1; background: #050505; }
.game-bg video { width: 100%; height: 100%; object-fit: cover; }

.game-hud {
  position: fixed; left: 50%; bottom: 50px; transform: translateX(-50%);
  z-index: 40; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
}

.mute {
  position: fixed; top: 5%; right: 5%; z-index: 40; display: flex; 
  filter: drop-shadow(black 10px 10px 10px);
}

.game-sound {
  position: fixed; top: 10%; right: 0; z-index: 50; display: none;
  align-items: center; justify-content: center;
  padding: 10px;
}

.sound-box {
  background: #ffffff;
  color: var(--wp--preset--color--ink);          /* Dunkelbraun #3A2418 */
  border: 5px solid var(--wp--preset--color--ink);
  border-radius: 0;
  padding: 20px 20px; 
}
.game-sound:target { display: flex; }

.close {
  position: absolute ;top: 10px; right: 0; z-index: 55;
}

.game-info {
  background: #ffffff;
  color: var(--wp--preset--color--ink);          /* Dunkelbraun #3A2418 */
  border: 5px solid var(--wp--preset--color--ink);
  border-radius: 0;
  width: min(660px, 100%);
  padding: 20px 25px;
}
.game-panel {
  position: fixed; inset: 0; z-index: 50; display: none; margin-top: 0;
  align-items: center; justify-content: center;
  padding: 20px; background: rgba(5, 5, 5, .45);
}
.game-panel:target { display: flex; }

.game-panel .panel-box {
  background: #ffffff;
  color: var(--wp--preset--color--ink);          /* Dunkelbraun #3A2418 */
  border: 5px solid var(--wp--preset--color--ink);
  border-radius: 0;
  width: min(660px, 100%);
  padding: 20px 25px;
}

/* Buttons: Hover und Fokus im Spielstil */
.wp-element-button:hover,
.wp-block-button__link:hover,
.wp-element-button:focus-visible,
.wp-block-button__link:focus-visible {
  background-color: var(--wp--preset--color--primary-light) !important;
  color: var(--wp--preset--color--cream) !important;
  border-color: var(--wp--preset--color--cream) !important;
}

.wp-element-button:focus
.wp-block-button__link:focus {
  offset: none !important;
}

:where(.wp-site-blocks :focus) {
	outline-width: 0px !important;
	outline-style: solid !important;
}

/* Gedrückt: etwas dunkler */
.wp-element-button:active,
.wp-block-button__link:active {
  background-color: #8f3f27 !important;
  color: var(--wp--preset--color--cream) !important;
  border-color: none !important;
}

.wp-element-button,
.wp-block-button__link {
  transition: background-color .15s ease;
}

/* Desktop: Logo links groß, Textfenster rechts kleiner */
.split {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1500px;
  margin: 0 auto;
  padding: 40px 5vw 120px;
}

.split {
  min-height: 90vh !important;      
  align-items: center !important;   
  padding: 40px 5vw !important;
}

.split > figure { flex: 4 1 0; margin: 0; }
.split > figure img { width: 100%; height: auto; display: block; filter: drop-shadow(black 1rem 1rem 10px); }

.split > :last-child { flex: 3 1 0; filter: drop-shadow(black 1rem 1rem 10px);}

/* Image Gallery */
.slide:hover {
  cursor: zoom-in;
}
.slide:active {
  transform: scale(2);
  cursor: zoom-in;
}
.slide {
  transition: transform .6s;
} 
/* Tablet/ Handy */

@media (max-width: 1400px) {
  .split { flex-direction: column; }
}

@media (max-width: 1400px) {
  .split {
    flex-wrap: wrap !important;
    gap: 20px !important;
    padding: 20px 16px 140px !important; /* unten Platz fürs Menü */
    margin-top: 40px !important;
  }
  .split > .wp-block-image,
  .split > figure,
  .split > :last-child {
    flex: 2 1 100% !important;
    max-width: 80% !important;
  }
  .split > .wp-block-image img,
  .split > figure img {
    max-width: 320px !important;
    margin: 0 auto !important;
    display: block;
  }
}
@media (max-width: 920px) {
.game-hud {
  width: 80% !important; bottom: 50px !important;
}
}
/* Menü am Handy: eine Zeile, kleinere Buttons */
@media (max-width: 840px) {
  .game-hud {
    width: 100% !important;
    bottom: 30px !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
  }
  .game-hud .wp-block-buttons { flex-wrap: nowrap; gap: 6px; }
  .game-hud .wp-block-button__link {
    border-width: 5px !important;
    padding: 6px 10px !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
  }
 
  .split > .wp-block-image,
  .split > figure,
  .split > :last-child {
    flex: 2 1 100% !important;
    max-width: 80% !important;
    width: 80% !important;
  }
}
@media (max-width: 690px) {
    .game-panel .panel-box {
    width: 90% !important;
  }
}
/* Am Handy: Textbox breiter */
@media (max-width: 490px) {
  .split > .wp-block-image,
  .split > figure,
  .split > :last-child {
    flex: 1.5 1 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  .game-hud {
    width: 90% !important; 
  }
  .game-hud .wp-block-buttons { flex-wrap: nowrap; gap: 6px; }
  .game-hud .wp-block-button__link {
    border-width: 5px !important;
    padding: 6px 10px !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
  }
  .mute {
    top: 0; height: 48px !important; width: 48px !important;
  }
}