/* ==================================================
   GLOBAL / BASE
================================================== */

body {
  margin: 0;
  font-family: "GT-Planar", sans-serif;
  color: rgb(200, 200, 200);
}


/* ==================================================
   LAYOUT
================================================== */

.container {
  position: relative; /* wichtig für Canvas layering */
  z-index: 1;

  height: 100vh;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;
}


/* ==================================================
   TYPOGRAPHY
================================================== */

/* Name + Subtitle */
.name {
  font-size: clamp(1rem, 4vw, 2rem);
  font-weight: normal;
  margin: 0;
}

/* Email */
.email {
  font-size: clamp(1rem, 4vw, 2rem);
  font-weight: normal;
  margin-bottom: 10rem;

  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.email:hover {
  color: white;
  
  text-decoration: underline;
}

/* Parameter (kleiner Text) */


#live-panel {
  position: fixed;

  top: 80px;   
  left: 20px;

  width: 110px;

  z-index: 10000;
  text-align: center;
  pointer-events: none;
}

.parameter{
  font-size: 12px;
  display: block;
  margin: 0;
  line-height: 1.15;
}

.credits{
  font-size: 6px;
  display: block;
  margin-top: 4px;
  line-height: 1.15;
}

/* ==================================================
   CANVAS (Hintergrund / Partikel)
================================================== */

#bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  z-index: 2;           /* vor Text */
  pointer-events: none; /* klicks gehen durch */
}


/* ==================================================
   MODE SWITCH (Live / Manual)
================================================== */

#mode-switch {
  position: fixed;
  
  top: 20px;
  left: 20px;
  width: 110px;

  display: flex;
  flex-direction: row;

  z-index: 10000;
}

#mode-switch button {
  width: 100%;
  height: 25px;

  box-sizing: border-box;

  font-family: inherit;
  font-size: 12px;
  font-weight: normal;

  padding: 6px 10px;

  border: none;
  cursor: pointer;

  background: rgba(0,0,0,0.4);
  color: rgb(200, 200, 200);

  text-align: center;
}

#mode-switch button.active {
  background: rgb(200, 200, 200);
  color: black;
}

/* ==================================================
   dropdown
================================================== */

#station-control {
  position: fixed;
  top: 120px; 
  left: 20px;

  z-index: 10000;
}

#station-select {
  width: 110px;
  height: 25px;

  box-sizing: border-box;

  font-family: inherit;
  font-size: 12px;
  font-weight: normal;

  padding: 6px 10px;

  border: none;
  border-radius: 0; /* 🔥 Safari runde Ecken entfernen */

  cursor: pointer;

  background: rgba(0,0,0,0.4);
  color: rgb(200,200,200);

  text-align: center;
  text-align-last: center; /* 🔥 Safari Text zentrieren */

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* optional: entfernt Standard-Pfeil (falls sichtbar) */
#station-select::-ms-expand {
  display: none;
}

/* MODE TOGGLE */
body.manual #station-control {
  display: none;
}

body.live #station-control {
  display: block;
}

/* ==================================================
   About Block
================================================== */
#about-switch {
  position: fixed;
  
  top: 20px;
  right: 20px;
  width: 110px;

  display: flex;
/*  gap: 5px;  */

  z-index: 10000;
}

#about-switch button {
  font-family: inherit;
  font-size: 12px;
  font-weight: normal;
  padding: 6px 10px;
  width: 100%;

  border: none;
  cursor: pointer;

  background: rgb(200, 200, 200);
  color: black;
}

#about-switch button.active {
  background: rgba(0,0,0,0.4);
  color: rgb(200, 200, 200);
}

#about-panel {
  position: fixed;

  top: 80px;   
  right: 20px;

  width: 110px;

  z-index: 10000;
  text-align: center;
}

#about-panel.hidden {
  display: none;
}

.link {
  margin: 0;
}

.link a {
  font-size: 12px;
  color: rgba(0,0,0,0.4);
  display: block;
  margin: 0;
  line-height: 1.15;
  text-decoration: none; 
}

.link a:hover {
  color: white;
  text-decoration: underline;
}

/* ==================================================
   SLIDER STYLING (Custom Range Input)
================================================== */

#control-modal {
  position: fixed;
  top: 80px;   
  left: 20px;
  width: 110px;

  z-index: 10000;
  text-align: center;
}

#control-modal label {
  font-size: 12px;
  display: block;
  margin-bottom: -5px;
}

#control-modal p {
  font-size: 12px;
  display: block;
  margin-bottom: 10px;
  width: 100%;
}

/* RESET */
#control-modal input[type="range"] {
  width: 100%;
  font-size: 12px;

  -webkit-appearance: none;
  appearance: none;

  background: transparent;
  margin-bottom: 20px;
}

/* ------------------------
   TRACK (Linie)
------------------------ */

/* Chrome / Safari */
#control-modal input[type="range"]::-webkit-slider-runnable-track {
  height: 2px;
  background: rgba(200, 200, 200, 0.6);
}

/* Firefox */
#control-modal input[type="range"]::-moz-range-track {
  height: 2px;
  background: rgba(200, 200, 200, 0.6);
}

/* ------------------------
   THUMB (Kreis)
------------------------ */

/* Chrome / Safari */
#control-modal input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;

  width: 10px;
  height: 10px;

  background: rgb(200, 200, 200);
  border-radius: 50%;
  border: none;

  margin-top: -4.5px; /* perfekt zentriert */
  cursor: pointer;
}

/* Firefox */
#control-modal input[type="range"]::-moz-range-thumb {
  width: 10px;
  height: 10px;

  background: rgb(200, 200, 200);
  border-radius: 50%;
  border: none;

  cursor: pointer;
}

/* Firefox Focus Outline entfernen */
#control-modal input[type="range"]::-moz-focus-outer {
  border: 0;
}

.hidden {
  display: none;
}