#loading-screen {
  position: fixed;
  inset: 0;
  background: var(--color-grey);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 1.2s ease;
}

#loading-screen.done {
  background-color: transparent;
  pointer-events: none;
}

#loading-logo {
  width: 240px;
  height: 240px;
}

#ui img {
  display: none;
}

/* transform wird per JS gesetzt */

#mobile-warning {
  display: none;
}

@media only screen and (max-width: 600px), (pointer: coarse) {
  #mobile-warning {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 100000;
    align-items: center;
    justify-content: center;
    background: var(--color-grey);
  }

  #mobile-warning-box {
    max-width: 80%;
    text-align: center;
    padding: 2em;
    border: 3px inset var(--color-border-grey);
    background: var(--color-grey);
    font-family: var(--font-semilla);
    color: var(--color-blue);
    letter-spacing: 0.1em;
  }

  #mobile-warning-box h1 {
    font-family: var(--font-flor);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: 1em;
  }
}

body {
  margin: 0;
  overflow: hidden;
  font-family: var(--font-germen);
  letter-spacing: 0.1em;
  color: var(--color-blue);
  background-color: var(--color-grey);
  background-image: url("_img/background.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  cursor:
    url("_img/cursors/cursors-hand.png") 4 3,
    default;
}

body.is-loading,
body.is-loading * {
  cursor:
    url("_img/cursors/cursors-load.png") 10 4,
    wait !important;
}
body.is-dragging,
body.is-dragging * {
  cursor:
    url("_img/cursors/cursors-grab.png") 9 10,
    grabbing !important;
}

#ui {
  color: var(--color-blue);
  text-align: center;
}

select {
  margin: 5px 0 5px 0;
  display: block;
  width: 100%;
  padding: 0.55em 0.3em 0.25em;
  font-family: var(--font-semilla);
  letter-spacing: 0.2em;
  text-align: center;
  text-align-last: center;
  border: 3px inset var(--color-border-grey);
  color: var(--color-blue);

  background: color-mix(in srgb, var(--color-grey) 30%, transparent);
  pointer-events: auto;
}

select option {
  letter-spacing: 0.35em;
  font-family: var(--font-semilla);
  text-align: center;
}

label {
  font-size: 11px;
  font-weight: bold;
  color: var(--color-dark-grey);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

/* --- NEUE ACHSEN-LABEL LOGIK (Beibehalten & Integriert) --- */
.label {
  font-family: var(--font-germen);
  color: var(--color-blue);
  background: rgba(255, 255, 255, 0); /* Deine Transparenz */
  padding: 6px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
  white-space: nowrap;
}

/* Y-Achse: Wörter untereinander, Pfeil dazwischen */
.label.is-y {
  flex-direction: row; /* Layout für den text-stack */
}

.label.is-y .text-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.label span.arrow {
  display: inline-block;
  transition: transform 0.3s ease;
  font-weight: bold;
}

.label.reversed span.arrow {
  transform: rotate(180deg);
}

.label::after {
  content: none !important;
}

.point-label {
  font-size: 10px;
  font-weight: normal;
  border: 1px solid #0000d200;
  pointer-events: none;
  white-space: nowrap;
}

#top-left-nav {
  position: fixed;
  top: 2%;
  left: 2%;
  z-index: 999;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.top-nav-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.top-nav-btn {
  position: static;
  top: auto;
  bottom: auto;
  right: auto;
  font-family: var(--font-semilla);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-darker-grey);
  background: transparent;
  border: 2px solid transparent;
  padding: 0;
  margin: 0;
  line-height: 1;
  width: fit-content;
  height: auto;
  cursor: pointer;
  transition:
    color 0.2s,
    background 0.2s,
    border 0.2s;
}

.top-nav-btn:hover {
  color: var(--color-blue);
  background: var(--color-grey);
  border: 2px outset var(--color-border-grey);
}

.top-nav-btn.active {
  color: var(--color-blue);
  background: var(--color-grey);
  border: 2px inset var(--color-border-grey);
}

.top-nav-panel {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 1.6s ease,
    padding 1.6s ease,
    border-width 1.6s ease;
  border: 0px inset var(--color-border-grey);
  background: color-mix(in srgb, var(--color-grey) 40%, transparent);
  padding: 0;
  box-sizing: border-box;
  width: 22vw;
  font-family: var(--font-semilla);
  font-size: 0.8em;
  letter-spacing: 0.06em;
  line-height: 1.6;
  color: var(--color-blue);
}

.top-nav-panel.open {
  max-height: 60vh;
  padding: 15px;
  border-width: 3px;
  overflow-y: auto;
}

#names-list {
  position: absolute;
  top: 4%;
  right: 2%;
  bottom: 4%;
  width: auto;
  text-align: right;
  z-index: 999;
  pointer-events: auto;
  font-family: var(--font-semilla);
  color: var(--color-darker-grey);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.name-item {
  transition:
    color 0.2s,
    background 0.2s;
  text-transform: uppercase;
  display: inline-block;
  width: fit-content;
  align-self: flex-end;
  border: 2px solid transparent;
  line-height: 1;
}
.name-item:hover,
.name-item.active {
  color: var(--color-blue) !important;
  background: var(--color-grey);
  border: 2px outset var(--color-border-grey);
}

#info-panel {
  padding: 15px;
  position: absolute;
  bottom: 20px;
  left: 20px;
  width: 22vw;
  font-family: var(--font-semilla);
  font-size: 0.9em;
  display: block;
  pointer-events: auto;

  background: color-mix(in srgb, var(--color-grey) 100%, transparent);
  border: 3px inset var(--color-border-grey);
  border-radius: 0;
  backdrop-filter: grayscale(1) blur(2px);
  /*box-shadow: 0 0 10px 2px var(--color-blue);*/
  z-index: 2000;
}
#info-title {
  font-family: var(--font-flor);
  font-size: 1em;
  letter-spacing: 0.6em;
  text-transform: uppercase;
  text-align: center;
  color: var(--color-blue);
  margin: 0 0 0.8em 0;
}

#info-desc {
  margin-top: 0.4em;
}

#info-desc::before {
  content: "";
  display: block;
  border-top: 2px solid var(--color-dark-grey);
  border-bottom: 2px solid var(--color-border-grey);
  margin-bottom: 0.6em;
}

#info-desc > div:not(#info-text) {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  text-transform: uppercase;
  color: var(--color-dark-grey);
  font-size: 0.8em;
  letter-spacing: 0.2em;
  line-height: 1.5;
}

#info-desc > div:not(#info-text) span:last-child {
  text-align: right;
  flex-shrink: 0;
}

#info-text::before {
  content: "";
  display: block;
  border-top: 2px solid var(--color-dark-grey);
  border-bottom: 2px solid var(--color-border-grey);
  margin-bottom: 0.6em;
}

#info-text {
  margin-top: 0.6em;
  padding-top: 0;
  font-size: 0.8em;
  letter-spacing: 0.13em;
  line-height: 1.6;
  text-align: justify;
  text-justify: inter-character;
  hyphens: auto;
  hyphenate-limit-lines: 3;
  -webkit-hyphenate-limit-lines: 3;
  overflow-wrap: break-word;
  color: var(--color-blue);
}

#iframe-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    ellipse at center,
    color-mix(in srgb, var(--color-blue) 0%, transparent) 65%,
    color-mix(in srgb, var(--color-blue) 85%, transparent) 100%
  );
  z-index: 9999;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

#iframe-inside {
  position: relative;
  width: 80%;
  height: 80%;
  background: var(--color-white);
  border-radius: 0px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

#browser {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("_img/browser2.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 10000;
}

#browser-title {
  position: absolute;
  top: 3%;
  left: 50%;
  translate: -50% -50%;

  z-index: 10001;
  pointer-events: none;
  font-family: var(--font-ruina);
  text-transform: uppercase;
  font-size: 1em;
  letter-spacing: 0.2em;
}

button,
.name-item,
.top-nav-btn,
select,
a {
  cursor:
    url("_img/cursors/cursors-klick.png") 4 3,
    pointer !important;
}

button {
  position: absolute;
  top: 0.8%;
  bottom: 0.2%;
  right: 1%;
  margin: 0;
  padding: 0;
  width: min(4.6vw, 6.6vh);
  height: min(2.2vw, 2.9vh);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: min(1vw, 1.5vh);
  font-family: var(--font-semilla);
  color: var(--color-blue);
  line-height: 1;
  z-index: 10001;
  background: var(--color-grey);
  border: 2px solid;
  border-color: var(--color-border-grey) #808080 #808080 var(--color-border-grey);
  font-weight: bold;
}

button:active {
  border-color: #808080 var(--color-border-grey) var(--color-border-grey) #808080;
}
button:disabled {
  color: var(--color-grey);
}
