* { padding: 0; margin: 0; touch-action: pan-y pan-x;}
#panorama-360-view { width: 100vw; height: calc(var(--vh, 1vh) * 100); }
#fullscreen-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
}

#fullGrid{
  position: absolute;
  height: 100%;
  width: 100%;
  overflow-x: hidden;
  top: 0px;
  right: 0px;
  left: 0px;
  bottom: 0px;
  z-index: 19; /* Ensure it's on top of everything */
  pointer-events: none; /* So it doesn’t interfere with Pannellum interactions */
  touch-action: pan-y;
}

/* Regular Fredoka */
@font-face {
  font-family: 'Fredoka';
  src: url('./assets/fredoka-regular.woff2') format('woff2'); 
  font-weight: normal;
  font-style: normal;
}
/* Bold Fredoka */
@font-face {
  font-family: 'Fredoka';
  src: url('./assets/fredoka-bold.woff2') format('woff2');
  font-weight: bold; /* or 700 */
  font-style: normal;
}

body {
    font-size: 100%;
    font-family: 'Fredoka', Verdana, Tahoma, Arial, sans-serif;
    -webkit-touch-callout:none;
  }
body,html {
  touch-action: pan-y; /* Prevents pinch-zoom but allows scrolling */
  overscroll-behavior-y: contain; /* Prevent pull-to-refresh */
  -webkit-user-select: none; /* Safari */
  user-select: none; /* Safari */
  overscroll-behavior: none;
}

.pnlm-panorama-info{
  font-family: 'Fredoka', Verdana, Tahoma, Arial, sans-serif;
  pointer-events:all; touch-action: none;
}
input::placeholder {
  font-family:  'Fredoka', Verdana, Tahoma, Arial, sans-serif;
	font-size: 1rem;
}

.WegweiserClass{   position: fixed;top: 1%; left: 50%; transform: translate(-50%, 0%); z-index: 20; width: 8%; min-width: 85px; min-height: 68px; cursor: pointer;pointer-events:all;touch-action: none;}
.Quizclass{display:block; z-index: 10; width: 7%;height: auto;min-width: 80px;cursor: pointer;pointer-events:all; touch-action: none;}
.VollbildClass  {  display: block; padding-left: 5px; padding-top:0px;padding-bottom:5px;z-index: 10; width: 2%; min-width: 50px; min-height: auto; cursor: pointer;pointer-events:all; touch-action: none;}
.ArClass  {  display: block;  padding-left: 5px;padding-top:0px;padding-bottom:5px; z-index: 10; width: 2%; min-width: 50px; min-height: auto; cursor: pointer;pointer-events:all; touch-action: none;}
.buttongrid {
  position: fixed;
  display: grid;
  grid-template-rows: auto auto; /* Two rows for the buttons */
  padding-top:5px;
  gap: 0px; /* Space between buttons */
}

 /* Set a style for all buttons */
 button {
  background-color: #04AA6D;
  color: white;
  padding: 10px;
  margin-top: 10px;
  border: none;
  border-radius:5px;
  width: 100%;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s, box-shadow 0.3s;
  font-family: 'Fredoka', Verdana, Tahoma, Arial, sans-serif;
  pointer-events:all; touch-action: none;
  font-weight: normal;
}  
button:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  opacity: 0.8;
}
button:active {
  opacity: 1;
}
.quizcontainer{
  top: 5px;
  right: 5px;
  position: absolute;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: right;
  gap: 1%;
}

/*Trophäen*/
#Regal{
  width: 75px;
  height:auto;
  cursor: pointer;
  pointer-events:all; 
  touch-action: none;
  z-index: 10;
  margin: 5px;
  transition: transform 1s ease-in-out; /* Ensures smooth movement underneath */
}
/* Grid layout for trophies */
.trophy-grid {
  display: grid;
  z-index: 28; /* Ensure it's on top */
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 20px;
  margin-top: 20px;
  justify-items: center; /* Center items in grid */
  align-items: center;
  pointer-events:all; 
  touch-action: pan-y;
  position: relative; /* Ensures proper stacking */
  overscroll-behavior-y: contain; /* Prevent pull-to-refresh */
}
/* Individual trophies */
.trophy-grid img {
  width: 100%;
  max-width: 100px; /* Keep trophies uniform */
  border-radius: 10px; /* Slight rounding for images */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  filter: grayscale(100%);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;     /* Prevent text/image selection */
  -moz-user-select: none;
  -ms-user-select: none;
  pointer-events: auto;  /* Ensures trophies remain clickable */
  position: relative; /* Ensures it stays inside container */
  overscroll-behavior-y: contain; /* Prevent pull-to-refresh */
  z-index: 29; /* Ensure it's on top */
}
.trophy.unlocked {
  filter: grayscale(0%);
}
/* Goldener Schein-Effekt für abgeschlossene Story */
.trophy.glanz {
  filter:  grayscale(0%) drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
}
#animationPokal {
  position: fixed; /* Ensures it's independent of layout */
  width: 75px; /* Match original size */
  height: auto;
  z-index: 99999; /* Ensure it's always on top */
  pointer-events: none; /* Prevent interactions */
}
@keyframes moveToCenter {
  0% {transform: translate(0, 0) scale(1);}
  100% {transform: translate(-50vw, 30vh) translateX(50%) scale(2); /* Moves left & down */}
}
@keyframes moveBack {
  0% {transform: translate(-50vw, 30vh) translateX(50%) scale(2);}
  100% {transform: translate(0, 0) scale(1);}
}
.pokal-move {
  animation: moveToCenter 1s ease-in-out forwards;
  touch-action: none;
  pointer-events: none; /* Disables clicking while animating */
}
.pokal-return {
  animation: moveBack 1s ease-in-out forwards;
  touch-action: none;
  pointer-events: none; /* Disables clicking while animating */
}

.glanz {
  filter:  drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
}
.trophy-grid img:hover {
  transform: scale(2); /* Slight zoom effect */
  z-index: 30;
  position: relative; /* Ensures it appears above other elements */
}
.regalmodal{
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* Dark background */
  z-index: 26; /* Ensure it's on top */
  justify-content: center;
  align-items: center;
  pointer-events: auto; /* Ensures the modal blocks clicks */
  touch-action: none;
  overscroll-behavior-y: contain; /* Prevent pull-to-refresh */
}
.regal-modal-content {
  z-index: 27; /* Ensure it's on top */
  pointer-events: auto; /* Allows interaction with the modal content */
  background: rgba(255, 255, 255, 0.5); /* Glass effect */
  backdrop-filter: blur(10px); /* Adds the frosted glass effect */
  padding: 30px;
  border-radius: 16px; /* Rounded edges */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* Subtle shadow */
  width: 80%;
  max-width: 900px;
  position: relative;
  text-align: center;
  animation: fadeIn 0.3s ease;
  overflow-y: auto; /* Enable vertical scrolling */
  max-height: 70dvh; /* Ensures scrolling works */
  overscroll-behavior-y: contain; /* Prevent pull-to-refresh */
  touch-action: pan-y;
}
/*schicker fade in für alle modals*/
@keyframes fadeIn {
  from {
      opacity: 0;
      transform: scale(0.9);
  }
  to {
      opacity: 1;
      transform: scale(1);
  }
}
/* Trophy case header */
.regal-modal-content h2 {
  font-size: 28px;
  margin-bottom: 20px;
  background: linear-gradient(90deg, #fac628, #fdde60);
  color: white;
  padding: 10px 0;
  border-radius: 12px;
  box-shadow: 0px 4px 10px rgba(255, 105, 97, 0.2);
  font-family: 'Fredoka', sans-serif; /* Playful font */
  text-shadow: 2px 2px rgba(0, 0, 0, 0.1);
  pointer-events:all; 
  touch-action: none;
  user-select: none;
  -webkit-user-select: none; /* Safari */
  pointer-events: none; /* Prevents clicking */
  overscroll-behavior-y: contain; /* Prevent pull-to-refresh */
}
/*Trophäen*/

@media only screen and (max-device-width: 600px) {
  .quizcontainer {
    flex-direction: column;
    align-items:flex-end;
  }
  #star-rating {
    font-size: 2rem;
    display: none;
  }
}
.KroneClass{
  width: 7%;
  height: auto;
  min-width: 80px; 
  touch-action: none;
}

#actionBtn {
  background-color: #ee7f00;
  color: white;
  padding: 10px;
  margin-top: 10px;
  transform: translate(50%);
  border: none;
  border-radius:5px;
  width: 50%;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s, box-shadow 0.3s;
}  
#actionBtn:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  opacity: 0.8;
}
#actionBtn:active {
  opacity: 1;
}
/* The Close Button (x) */
.close {
  position: absolute;
  right: 15px;
  top: 0;
  color: #000;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  pointer-events:all; 
  touch-action: pan-y;
}  
.close:hover,
.close:focus {
  color: red;
  cursor: pointer;
}
.row {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.4); /* Black background with opacity */
  pointer-events: all;
  overscroll-behavior: contain;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 19;
  top:0%;  
  align-items: center;
  justify-content: center;
  display: none;    
  flex-wrap: wrap;
  /*padding: 0 4px;*/ 
  width: 100%;
  height: 100%;
  padding-top: 4px;
  padding-bottom: 4px;
  gap: 8px;
  max-height: calc(100% - 8px);
  touch-action: pan-y;
}
  
  /* Create four equal columns that sits next to each other */
  .column { flex: 25%; max-width: calc(25% - 8px); position: relative; text-align: center; color: white; font-size: 2.5vw;}
  
  .column img { vertical-align: middle; width: 100%; cursor: pointer;}
  
  /* Responsive layout - makes a two column-layout instead of four columns */
  @media screen and (max-width: 800px) { .column { flex: 50%;  max-width: calc(50% - 8px);  font-size: 5vw; }}
  
  /* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
  @media screen and (max-width: 600px) {.column {flex: 100%; max-width: calc(100% - 8px); font-size: 10vw;  }}

  .centered {
  position: absolute;
  top: 80%;
  left: 50%;   
  font-weight: bold;
  text-shadow: 
  1px 1px 0 black,  
  -1px -1px 0 black,  
  1px -1px 0 black,  
  -1px 1px 0 black; /* Create a faux stroke */
  transform: translate(-50%, -50%);
  user-select: none;
  -webkit-user-select: none; /* Safari */
  pointer-events: none;
  touch-action: none;
  }

  .audio-hotspot {
  height: 100px;
  width: 100px;
  background-image: url("./assets/meier.png");
  background-size: 75% 75%;
  background-repeat: no-repeat;
  margin-top: 49px;
  margin-bottom: 0px;
  margin-right: 0px;
  margin-left: 42px;
  position: relative;
  cursor: pointer;
  touch-action: pan-y;
  overscroll-behavior-y: contain; /* Prevent pull-to-refresh */
  pointer-events:all; touch-action: none;
  -webkit-tap-highlight-color: transparent; /* Removes tap highlight */
  outline: none; /* Prevents focus outline */
    img {
    /* Your styles here */
    max-width: 100%;
    height: auto;
    display: block;
    float: left;
    margin: 0 auto; /* Center the image */
    touch-action: pan-y; /* Prevents pinch-zoom but allows scrolling */
    overscroll-behavior-y: contain; /* Prevent pull-to-refresh */
    pointer-events:all; touch-action: none;
    -webkit-user-select: none; /* Safari */
    user-select: none; /* Safari */
    }
  }
  
  /* Create a separate background layer */
  .audio-hotspot::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("./assets/meier.png");
  background-size: 75% 75%;
  background-repeat: no-repeat;
  z-index: -1; /* Moves it behind the tooltip */
  transition: filter 0.15s ease-out;
  }
  /* Apply drop shadow only to the hotspot background */
  .audio-hotspot:hover::before {
  filter: drop-shadow(0px 0px 3px rgba(255, 255, 255, 0.973)) 
          drop-shadow(0px 0px 4px rgba(255, 255, 255, 0.938)) 
          drop-shadow(0px 0px 5px rgba(255, 255, 255, 0.945));
  }
  .audio-hotspot:active::before {
  filter: drop-shadow(0px 0px 3px rgba(255, 255, 255, 0.945)) 
          drop-shadow(0px 0px 4px rgba(255, 255, 255, 0.959)) 
          drop-shadow(0px 0px 5px rgba(255, 255, 255, 0.979));
  }
  
  .audio-icon {
  float: left;
  padding-right: 5px; /* Adds space between icon and text */
  padding-bottom: 5px; /* Adds space below icon */
  width: 40px;
  height: 40px;
  cursor: pointer;
  overscroll-behavior-y: contain; /* Prevent pull-to-refresh */
  pointer-events:all; touch-action: none;
  transition: filter 0.15s ease-out;
  }

  .audio-icon:active,
  .audio-icon:hover {
    filter: drop-shadow(0px 0px 3px rgba(255, 255, 255, 0.945)) 
            drop-shadow(0px 0px 4px rgba(255, 255, 255, 0.959)) 
}

.mcq{
height: 100px;
width: 100px;
background-image: url("./assets/Lupe.png");
background-size: 100% 100%;
background-repeat: no-repeat;
font-size: 18px; /* Adjust the font size if necessary */
cursor: pointer; /* Make it easier to select by clicking the label */
user-select: none;
-webkit-user-select: none; /* Safari */
margin-top: 25px;
margin-bottom: 0px;
margin-right: 0px;
margin-left: -25px;
}
@media screen and (max-device-width: 600px) {.mcq{
height: 75px;
width: 75px;
background-image: url("./assets/Lupe.png");
background-size: 100% 100%;
background-repeat: no-repeat;
font-size: 18px; /* Adjust the font size if necessary */
cursor: pointer; /* Make it easier to select by clicking the label */
user-select: none;
-webkit-user-select: none; /* Safari */
margin-top: 19px;
margin-bottom: 0px;
margin-right: 0px;
margin-left: -19px;
  }}
/* Create a separate background layer */
.mcq::before {
height: 100px;
width: 100px;
background-image: url("./assets/Lupe.png");
background-size: 100% 100%;
background-repeat: no-repeat;
font-size: 18px; /* Adjust the font size if necessary */
margin-top: 25px;
margin-bottom: 0px;
margin-right: 0px;
margin-left: -25px;
z-index: -1; /* Moves it behind the tooltip */
transition: filter 0.15s ease-out;
}
/* Apply drop shadow only to the hotspot background */
.mcq:hover::before {
  filter: drop-shadow(0px 0px 3px rgba(255, 255, 255, 0.973)) 
          drop-shadow(0px 0px 4px rgba(255, 255, 255, 0.938)) 
          drop-shadow(0px 0px 5px rgba(255, 255, 255, 0.945));
}
.mcq:active::before {
  filter: drop-shadow(0px 0px 3px rgba(255, 255, 255, 0.945)) 
          drop-shadow(0px 0px 4px rgba(255, 255, 255, 0.959)) 
          drop-shadow(0px 0px 5px rgba(255, 255, 255, 0.979));
}

/*pointer event:none soll verhindern, dass fotos als eigener link auf dem aktuellen tab geöffnet werden, unnötigt durch  "URL": "#" im hotspot, eventuell offset calc*/
div.pnlm-tooltip span{
display: block; /* Treats the span like a block-level element */
position: relative; /* Allows absolute positioning for child elements if needed */
/*position: absolute;*/
bottom: 115%;
right: 0%;
transform: translateX(110px);
pointer-events: auto;
font-family: 'Fredoka', Verdana, Tahoma, Arial, sans-serif;
touch-action: none;
}

/* Full-width input fields */
input[type=text], input[type=password], input[type=email] {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    box-sizing: border-box;
		font-size: 1rem;
  } 
  
  /* Extra styles for the cancel button */
  .cancelbtn {
    width: auto;
    padding: 10px 10px;
    background-color: #f44336;
    pointer-events:all; touch-action: none;
  }  
  /* Center the image and position the close button */
  .imgcontainer {
    text-align: center;
    /*margin: 24px 0 12px 0;*/
    margin: 0px 0 0px 0;
    position: relative;
    pointer-events:all; touch-action: pan-y;
  }  
  img.avatar {
    width: 40%;
    border-radius: 50%;
    max-width: 250px;
    pointer-events:all; touch-action: pan-y;
  }  
  .container {
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 10px;
  }  
  span.psw {
    float: right;
    padding-top: 16px;
    pointer-events:all; touch-action: none;
  }
  
  /* The Modal (background) */
  .modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 25; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    justify-content: center;
    align-items: center;
    overscroll-behavior-y: contain; /* Prevent pull-to-refresh */
    touch-action: none;
  }
  
  /* Modal Content/Box */
  .modal-content {
    display: flex;
    background-color: #fefefe;
    margin: 0% auto 0% auto; 
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    border-radius: 8px; /* Rounded corners */
    padding: 15px;
    position: relative;
    touch-action: pan-y; /* Prevents pinch-zoom but allows scrolling */
    animation: fadeIn 0.3s ease;
    overscroll-behavior-y: contain; /* Prevent pull-to-refresh */
    flex-direction: column;
    text-align: left;
    overflow-y: auto; /* Enable vertical scrolling */
		max-height: 95%;
		max-height: 95vh;
    max-height: 95dvh; /* Ensures scrolling works */
  } 
   
  /* Change styles for span and cancel button on extra small screens */
  @media screen and (max-width: 300px) {
    span.psw {
       display: block;
       float: none;
       pointer-events:all; touch-action: none;
    }
    .cancelbtn {
       width: 100%;
       pointer-events:all; touch-action: none;
    }
  } 
  
/*quizkram*/
#openModalBtn {
  background-color: #007bff;
  color: white;
}

.hidden {
  display: none;
}

/* Quiz Modal Background */
.quiz-modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 25; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: hidden; /* Enable scroll if needed */
  background-color: rgba(0, 0, 0, 0.4); /* Black background with opacity */
  justify-content: center;
  align-items: center;
  overscroll-behavior-y: contain; /* Prevent pull-to-refresh */
  pointer-events:all; touch-action: none;
}

/* Quiz Modal Content */
.quiz-modal-content {
  background-color: #fefefe;
  margin: 15% auto; /* Centered */
  padding: 20px;
  border: 1px solid #888;
  width: 80%; /* Could be more or less, depending on screen size */
  max-height: 80dvh;
  border-radius: 8px; /* Rounded corners */
  position: relative;
  overflow-y: auto; 
  touch-action: pan-y; /* Prevents pinch-zoom but allows scrolling */
  animation: fadeIn 0.3s ease;
  overscroll-behavior-y: contain; /* Prevent pull-to-refresh */
  pointer-events:all;
}

/* Quiz Styling */
#questionContent {
  margin-bottom: 20px;
  pointer-events:all; touch-action: pan-y;
}

#question {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  width: 90%;
  user-select: none;
  -webkit-user-select: none; /* Safari */
  pointer-events:all; 
}
/* Styling for the choice items */
.choice-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  user-select: none;
  -webkit-user-select: none; /* Safari */
  pointer-events:all;
}
/* Radio button styling */
.choice-item input[type="radio"] {
  margin-right: 10px; /* Space between radio button and label */
  pointer-events:all; 
}

/* Adjust the font and spacing if needed */
.choice-item label {
  font-size: 18px; /* Adjust the font size if necessary */
  cursor: pointer; /* Make it easier to select by clicking the label */
  user-select: none;
  -webkit-user-select: none; /* Safari */
  pointer-events:all; 
}

ul {
  list-style-type: none;
  padding: 0;
}

li {
  margin: 10px 0;
}

input[type="radio"] {
  margin-right: 10px;
}

label {
  font-size: 18px;
  cursor: pointer;
  display: block;
  transition: color 0.3s;
  pointer-events:all;
}

label:hover {
  color: #569be5;
}

.feedback {
  background-color: #d4edda;
  color: #155724;
  padding: 15px;
  border: 1px solid #c3e6cb;
  border-radius: 5px;
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  pointer-events:all; touch-action: none;
}
.feedback.hidden {
  display: none;
}
.feedback.correct {
  color: #155724;
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
}
.feedback.wrong {
  color: rgb(206, 25, 25);
  background-color: #edd4d4;
  border: 1px solid #e6c3c3;
}

#finalResult {
  font-size: 20px;
  font-weight: bold;
  color: #28a745;
  margin-top: 20px;
}

.tooltip-content {
  position: relative;  /* Ensure it shakes in place */
}
.shake-effect {
  animation: shake 0.5s;
}
@keyframes shake {
  0%, 100% { transform: translateX(110px); }  /* Keep the original translateX(110px) */
  20%, 60% { transform: translateX(105px); }  /* Shake to the left (reduce by 5px) */
  40%, 80% { transform: translateX(115px); }  /* Shake to the right (increase by 5px) */
}

/*horizontle linie die die frage vom text trennen soll*/
hr.separator {
  width: 90%;
  height: 1px;
  margin: 10px auto;
  border: none;
  border-top: 2px dashed #aaa;  /* Dotted line */
  pointer-events:all; touch-action: none;
}

/* Modal styles */
.qrmodal {
  display: none; /* Hidden by default */
  overflow: hidden;
  position: fixed; /* Stay in place */
  z-index: 25; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  background-color: rgba(0, 0, 0, 0.4); /* Black background with opacity */
  align-items: center;
  justify-content: center;
  text-align: center;
  overscroll-behavior-y: contain; /* Prevent pull-to-refresh */
  pointer-events:all;
  touch-action: none;
}

.qrmodal-content {
  max-width: 600px;
  min-height: 80dvh;
  background-color: #fefefe;
  margin: 15% auto; /* Centered */
  padding: 20px;
  border: 1px solid #888;
  width: 80%; /* Could be more or less, depending on screen size */
  border-radius: 8px; /* Rounded corners */
  position: relative;
  overflow-y: auto; /* Enable vertical scrolling */
  overscroll-behavior-y: contain; /* Prevent pull-to-refresh */
  box-sizing: border-box; /* Ensure padding and border are included */
  animation: fadeIn 0.3s ease;
  touch-action: pan-y; /* Prevents pinch-zoom but allows scrolling */
}

/* Preview image styles */
#qr-preview img {
  width: 150px;
  height: 150px;
  padding: 10px;
  margin-right: 0px;
  border-radius: 8px;
  pointer-events:all;
  touch-action: pan-y;
  overscroll-behavior-y: contain; /* Prevent pull-to-refresh */
}

#qr-qrcode{  -webkit-touch-callout:default; padding:15px; position: absolute; left: 50%;   transform: translateX(-50%);pointer-events:auto; touch-action: pan-y; user-select: auto; -webkit-user-select: auto; }
#openQRCodeModalBtn{cursor: pointer;pointer-events:all;position: fixed; top: 1%; right: 20%; z-index: 25; width: 100px;height: auto;min-width: 50px;cursor: pointer;touch-action: none;}

.error { color: red; }
/*replace login qr code*/
.modal-cancel {
  background-color: #f44336;
}
/*star rating*/
#star-rating {
  font-size: 2.5rem;
  color: gray;
  pointer-events: none;
  display: none;
}

#star-rating .star {
  color: gray;
  opacity: 0;
  animation: star-animation 0.5s ease-in forwards;
  animation-delay: calc(var(--star-index) * 0.3s);
}

#star-rating .star.active {
  color: gold;
}

@keyframes star-animation {
  0% {
      transform: scale(0.5);
      opacity: 0;
  }
  100% {
      transform: scale(1);
      opacity: 1;
  }
}

/* Menü-Container */
#gear-menu {
  position: fixed;
  bottom: 4px;
  right: 0px;
  z-index: 5;
  background-color: rgba(0,0,0,0.7);
  border-radius: 3px 0px 0px 3px;
  color: #333;
  overscroll-behavior-y: contain; /* Prevent pull-to-refresh */
  pointer-events:all; touch-action: none;
}

/* Burger-Button */
#burger-button {
  background: none;
  border: none;
  padding: 7px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px; /* Abstand zwischen den Linien */
  margin-top: 0px;
  overscroll-behavior-y: contain; /* Prevent pull-to-refresh */
  pointer-events:all; touch-action: none;
}

.burger-line {
  width: 25px;
  height: 3px;
  background-color: #fff; /* Farbe der Linien */
  border-radius: 2px;
  transition: background-color 0.3s, transform 0.3s; /* Animationen für Hover oder Aktivierung */
  pointer-events:all; touch-action: none;
}

#burger-button:hover .burger-line {
  background-color: #444; /* Farbe beim Hover */
}

/* Menü */
#settings-menu {
  display: none;
  position: absolute;
  bottom: 0px;
  right: 39px;
  background-color: #1d1d1d;
  border-radius: 3px;
  width: 130px;
  overscroll-behavior-y: contain; /* Prevent pull-to-refresh */
  pointer-events:all; touch-action: none;
}

#settings-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#settings-menu li {
  padding: 5px 5px;
  border-bottom: 1px solid #444;
  margin:  0px !important;
}

#settings-menu li:last-child {
  border-bottom: none;
}

#settings-menu a {
  color: #fff;
  text-decoration: none;
}

#settings-menu a:hover {
  background-color: #333;
}

/* Animation für den Burger zu Kreuz */
#burger-button.active .burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

#burger-button.active .burger-line:nth-child(2) {
  opacity: 0; /* Mittlere Linie verstecken */
}

#burger-button.active .burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
/*login und registry knöpfe*/
.button-container {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

#LoginAnmelden {
  flex: 2; /* 2:1 Verhältnis */
}

#LoginRegistrieren {
  flex: 1; /* Kleinerer Button */
  background-color: #fd7e14; /* Orange */
}
#registerButton{
  margin-bottom: 10px;
  opacity:0.5;
  pointer-events:none;
}
#usernameStatus, #emailStatus, #passwordStatus{
  margin-top: -8px;
  margin-bottom: 10px;
  display: block;
	font-size: 1rem;
}
/*login und registry knöpfe*/
/*avatar*/
.avatar-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.avatar-modal-content {
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  width: 90%;
  max-width: 90%;
  max-height: 80%;
  overflow-y: auto;
}
#avatar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 10px;
  margin-top: 5px;
}
.avatar-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  transition: transform 0.2s;
  touch-action: manipulation; /* ✅ WICHTIG für Scrollbarkeit auf Touch */
}
.avatar-button:hover {
  transform: scale(1.05);
}
.avatar-image {
  width: 80px;
  height: 80px;
  object-fit: contain;
  touch-action: manipulation; /* ✅ WICHTIG für Scrollbarkeit auf Touch */
}
.avatar-label {
  margin-top: 5px;
  font-size: 14px;
  font-family: sans-serif;
}
/*avatar funktion*/
/*avatar feedback*/
#overview-heading {
  text-align: center;
  margin: 0.5rem;
  font-family: 'Fredoka', sans-serif;
}

th.sortable { cursor: pointer; white-space: nowrap; user-select: none; }
th.sortable .arrow { display:inline-block; margin-left:6px; color: #999; transition:transform .15s, color .2s;
  vertical-align: middle; font-size: 40px; line-height: 1;
  position: relative; top: -2px;  }
th.sortable.active .arrow {color: #e78709; }
th.sortable[data-dir="asc"] .arrow { transform: rotate(180deg); }

.overview-wrapper {
  max-width: 100%;
	max-height: 80vh;
  max-height: 80dvh;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  background-color: #fff;
  padding: 5px;
}
.overview-scroll {
  overflow: auto;
  max-width: 100%;
	max-height: 90vh;
  max-height: 80dvh;
	touch-action: pan-x pan-y;
}
#overview-table {
  border-collapse: collapse;
  width: max-content;
  font-family: 'Fredoka', sans-serif;
  font-size: 1rem;
	touch-action: pan-x pan-y;
}
#overview-table th {
  padding: 3px 5px;
  border: 1px solid #ddd;
  white-space: nowrap;
  text-align: center;
  background-color: #f1f1f1;
  font-weight: bold;
  top: 0;
  position: sticky;
}
#overview-table td {
  padding: 3px 5px;
  border: 1px solid #ddd;
  white-space: nowrap;
  text-align: center;
touch-action: pan-x pan-y;
  /* 🚫 No background here – let the row's bg-color shine through */
}
/* Highlight the header row */
#overview-table th {
  background-color: #f1f1f1;
  font-weight: bold;
  top:0;
  position: sticky;
touch-action: pan-x pan-y;
}
/* Fix the avatar column */
#overview-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fff;
  box-shadow: 2px 0 6px rgba(0,0,0,0.05);
	pointer-events: none;
}
#overview-table th {
  position: sticky;
  top: 0;
  z-index: 3;
  background-color: #f1f1f1;
}
#overview-table th:first-child {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 5; /* ✅ must be higher than both th and td */
  background: #f1f1f1;
  box-shadow: 2px 0 6px rgba(0,0,0,0.05);
	pointer-events: none;
}
#overview-table tr:nth-child(even) {
  background-color: #f9f9f9; /* or rgba(0,0,0,0.03) for subtle effect */
}
/* Optional: subtle hover effect for rows */
#overview-table tr:hover {
  background-color: #f9f9f9;
}
.avatar-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
  margin-top: 0px;
  vertical-align: middle;
}
#overview-table td.avatar-col {
  text-align: right;
}
.avatar-inline {
  display: inline-block;
  text-align: center;
  white-space: nowrap;
}
.avatar-rank {
  display: inline-block;
  font-size: 0.9rem;
  color: #666;
  margin-right: 5px;
  vertical-align: middle;
}

#live-indicator {
  font-size: 0.75em;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
	touch-action:auto;
  letter-spacing: 0.5px;
  transition: background 0.3s, box-shadow 0.3s;
}

.live-inactive {
  background: #ccc;
  color: #444;
  box-shadow: none;
}

.live-active {
  background: #28a745;
  color: white;
  box-shadow: 0 0 8px rgba(40, 167, 69, 0.7);
}

#pdf-export {
  display: inline-block;
  background: #007bff;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
  font-size: 0.75em;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  transition: background 0.3s;
}

#pdf-export:hover {
  background: #0056b3;
}
/*avatar feedback*/
/*tooltip*/
.tooltip-global {
  position: absolute;
  z-index: 10000;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  max-width: 260px;
  font-size: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  display: none;
  pointer-events: none;
}
.settings-container {
  display: flex;
  flex-direction: column;
  align-items: center; /* ← centers child rows horizontally */
}

.setting-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  font-family: 'Fredoka', sans-serif;
}

.setting-icon {
  font-size: 1.2rem;
}

.setting-label {
  min-width: max-content;
}

.setting-row input[type="checkbox"] {
  transform: scale(1.2);
  margin-top: 2px;
}

.has-tooltip {
  cursor: pointer;
  font-size: 0.9em;
  color: #666;
  user-select: none;
  line-height: 1;
  padding-top: 2px;
}
/*tooltip*/