:not(:defined) > * {
  display: none;
}

html {
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

model-viewer {
  width: 100%;
  height: 100%;
  background-color: #ffffff;
}


.progress-bar {
  display: block;
  width: 33%;
  height: 10%;
  max-height: 2%;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate3d(-50%, -50%, 0);
  border-radius: 25px;
  box-shadow: 0px 3px 10px 3px rgba(0, 0, 0, 0.5), 0px 0px 5px 1px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.9);
  background-color: rgba(0, 0, 0, 0.5);
}

.progress-bar.hide {
  visibility: hidden;
  transition: visibility 0.3s;
}

.update-bar {
  background-color: rgba(255, 255, 255, 0.9);
  width: 0%;
  height: 100%;
  border-radius: 25px;
  float: left;
  transition: width 0.3s;
}

#ar-button {
  background-image: url(ar_icon.png);
  background-repeat: no-repeat;
  background-size: 20px 20px;
  background-position: 12px 50%;
  background-color: #fff;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  bottom: 16px;
  padding: 0px 16px 0px 40px;
  font-family: Roboto Regular, Helvetica Neue, sans-serif;
  font-size: 14px;
  color:#4285f4;
  height: 36px;
  line-height: 36px;
  border-radius: 18px;
  border: 1px solid #DADCE0;
}

#ar-button:active {
  background-color: #E8EAED;
}

#ar-button:focus {
  outline: none;
}

#ar-button:focus-visible {
  outline: 1px solid #4285f4;
}

@keyframes circle {
  from { transform: translateX(-50%) rotate(0deg) translateX(50px) rotate(0deg); }
  to   { transform: translateX(-50%) rotate(360deg) translateX(50px) rotate(-360deg); }
}

@keyframes elongate {
  from { transform: translateX(100px); }
  to   { transform: translateX(-100px); }
}

model-viewer > #ar-prompt {
  position: absolute;
  left: 50%;
  bottom: 60px;
  animation: elongate 2s infinite ease-in-out alternate;
  display: none;
}

model-viewer[ar-status="session-started"] > #ar-prompt {
  display: none;
}

model-viewer > #ar-prompt > img {
  animation: circle 1s linear infinite;
}

.hotspot {
  position: relative;
  width: 48px;
  height: 48px;
  cursor: pointer;
  z-index: 1;
}
.hotspot-dot {
  box-shadow: 0 0 8px #0003;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  border: 0px solid #fff;
  z-index: 1;
}
.fixed-size-hotspot {
  width: 24px !important;
  height: 24px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  /* verhindert Skalierung durch model-viewer */
  transform: none !important;
}
.popup-pin {
  display: none;
  position: absolute;
  left: 56px;
  top: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.2);
  padding: 16px 20px;
  min-width: 180px;
  z-index: 1000;
}
.popup-pin .close {
  position: absolute;
  top: 4px;
  right: 10px;
  font-size: 20px;
  cursor: pointer;
}

.hotspot.transparent {
  opacity: 0.3; 
  transition: opacity 0.2s ease;
}
.hotspot.active {
  opacity: 1 !important;
  pointer-events: auto;
}
#filter-wrapper {
  position: absolute;
  bottom: 60px;
  min-width: 220px;
  z-index: 12;
}

#filter-toggle {
  display: flex;
  align-items: center;
  font-size: 1.1em;
  font-family: 'Source Sans 3', sans-serif;
  color: #333;
  background: rgba(255,255,255,0.95);
  border-radius: 8px 8px 0 0;
  padding: 10px 15px;
  font-weight: 600;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
  box-sizing: border-box;
}

#filter-label {
  flex-grow: 1;
  font-weight: 600;
}
#filter-arrow {
  display: inline-block;
  transition: transform 0.22s cubic-bezier(.77,0,.18,1);
  font-size: 1.2em;
}
#filter-toggle.open #filter-arrow {
  transform: rotate(90deg);
}

#filter-content {
  display: none;
  background: #ffffff;
  border-radius: 8px; /* Rundung an allen Ecken */
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  padding: 18px 20px 16px 20px;
  width: 100%;
  box-sizing: border-box;
  margin-top: 50px; /* Abstand zum Toggle */
  margin-left: 40px; /* Gleiche Einrückung wie Toggle */
}

#filter-toggle.open + #filter-content {
  display: block;
}

#filter-checkbox-row {
  display: flex;
  flex-direction: row;
  gap: 18px;
  width: 100%;
}

.filter-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin: 0 6px 0 0;
  cursor: pointer;
  display: inline-block;
  vertical-align: middle;
  position: relative;
}

/* Farben je nach Typ */
.filter-checkbox[data-type="newspaper"] { color: #ff3333; }
.filter-checkbox[data-type="artproject"] { color: #3366ff; }
.filter-checkbox[data-type="movies"] { color: #33cc33; }
.filter-checkbox[data-type="institutions"] { color: #ffd600; }

/* Ausgewählt: ganz farbig */
.filter-checkbox:checked {
  background: currentColor;
  border-color: currentColor;
}

/* Nicht ausgewählt: nur Rand farbig, innen weiß */
.filter-checkbox:not(:checked) {
  background: #fff;
  border: 2px solid currentColor;
}


#page-title {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 42px;
  font-weight: 600;
  color: #333;
  background: rgba(255,255,255,0.95);
  padding: 12px 16px;
  border-radius: 8px;
  z-index: 10;
}

#sidebar-overlay {
  position: fixed;
  top: 0;
  right: -33.333vw; /* Start außerhalb des Bildschirms */
  width: 33.333vw;   /* Ein Drittel der Viewport-Breite */
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 16px rgba(0,0,0,0.15);
  z-index: 20000;
  transition: right 0.4s cubic-bezier(.77,0,.18,1);
  display: flex;
  flex-direction: column;
}

#sidebar-overlay.open {
  right: 0;
}

#sidebar-iframe {
  flex: 1;
  width: 100%;
  border: none;
}

#sidebar-close {
  background: none;
  border: none;
  font-size: 2em;
  padding: 12px 20px;
  align-self: flex-end;
  cursor: pointer;
}

body.sidebar-open model-viewer {
  transition: transform 0.4s cubic-bezier(.77,0,.18,1);
  transform: translateX(-25vw);
}

body.sidebar-open {
  transition: none;
  overflow: hidden;
}

#about-toggle {
  position: absolute;
  top: 110px; /* etwas tiefer unter dem Titel */
  left: 20px;
  font-size: 1.1em;
  font-family: 'Source Sans 3', sans-serif;
  color: #333;
  background: rgba(255,255,255,0.95);
  border-radius: 8px;
  padding: 6px 14px 6px 12px;
  z-index: 11;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  transition: background 0.2s;
}
#about-label {
  font-size: 1.1em;
  letter-spacing: 0.5px;
}
#about-arrow {
  display: inline-block;
  transition: transform 0.22s cubic-bezier(.77,0,.18,1);
  font-size: 1.2em;
}
#about-toggle.open #about-arrow {
  transform: rotate(90deg);
}
#about-content {
  position: absolute;
  top: 150px;
  left: 20px;
  width: 340px;
  max-width: 90vw;
  background: rgba(255,255,255,0.98);
  border-radius: 8px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  padding: 18px 20px 16px 20px;
  z-index: 12;
  font-size: 1em;
  color: #222;
  font-family: 'Source Sans 3', sans-serif;
  display: none;
}
#about-toggle.open + #about-content {
  display: block;
}

#info-toggle {
  position: absolute;
  right: 40px;
  bottom: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-size: 1.1em;
  font-family: 'Source Sans 3', sans-serif;
  color: #333;
  padding: 10px 15px;
  border-radius: 6px;
  background: rgba(255,255,255,0.95);
  z-index: 21;
}
#info-label {
  flex-grow: 1;
  font-weight: 600;
}
#info-arrow {
  font-size: 1.4em;         /* dicker/größer */
  margin-left: 16px;        /* weiter rechts */
  transition: transform 0.22s cubic-bezier(.77,0,.18,1);
  display: inline-block;
}
#info-toggle.open #info-arrow {
  transform: rotate(-90deg); /* Pfeil zeigt nach oben */
}
#info-content {
  position: absolute;
  right: 40px;
  bottom: 100px; /* 100px (Toggle) + 40px (Höhe Toggle, ggf. anpassen) */
  min-width: 220px;
  max-width: 300px;
  background: #f9f9f9;
  border-radius: 6px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  padding: 15px;
  display: none;
  z-index: 20;
}
#info-toggle.open + #info-content {
  display: block;
}
