body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: white;
}

header {
  background: #0074D9;
  color: white;
  padding: 0.5rem;
  text-align: left;
  padding-left: 6rem;
}

h1 {
  font-size: 24px;
}

h2 {
  font-family: Arial, sans-serif;
  font-size: 24px;
  color: #000080;
}


.backpic {
  background-image: url('pictures/rahmendünn2.png');
  background-repeat: no-repeat;     /* nicht wiederholen */
  background-size: 1250px 625px;     /* feste Breite, Höhe */
  background-position: 100px 0px; /* x-Position, y-Position vom oberen linken Rand */
  height: 100vh;                    /* Höhe des Bereichs (hier volle Bildschirmhöhe) */
}

#content-box {
  position: absolute;
  top: 173px; /* verschiebt Box nach unten */
  left: 213px;
  background: #e5f6ff ;
  text-align:center;
  display: flex;
  flex-direction: column;
	gap: 12px;
  justify-content: center;
  align-items: center;
  margin: 2rem auto;
  margin-top: 0px;
  padding: 2rem;
  width: 80%;
  width: 965px;
  height: 480px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.correct { color: green; font-weight: bold; }
.wrong { color: red; font-weight: bold; }

/* Menüleiste */
nav {
            background-color: #78ceff;
        }
        nav ul {
            list-style: none;      /* Keine Aufzählungspunkte */
            margin: 0;
            padding: 0;
            display: flex;         /* Menüeinträge nebeneinander */
	    margin-left: 6rem;
	}
	nav ul li {
	  position: relative;  /* Wichtig für Untermenü-Position */
	  margin-right: 20px;
	}

	nav ul li a {
	  text-decoration: none;
	  padding: 10px 15px;
	  display: block;
	  color: #000080;
	  white-space: nowrap; /* verhindert Zeilenumbruch */
	}

/* Erstes Untermenü */
	nav ul li > ul.submenu {
	  display: none;
	  position: absolute;
	  top: 100%;   /* direkt unter dem Menüpunkt */
	  left: 0;
	  background-color: #bde9ff;
	  padding: 0;
	  margin: 0;
	  list-style: none;
	  min-width: 150px;
	  border: 4px solid #0074D9;
	  z-index: 1000;
	}

/* Unter-Untermenü (zweites Level) */
	nav ul li > ul.submenu li > ul.submenu {
  	  display: none;         /* Standard: unsichtbar */
	  position: absolute;    /* Position relativ zum übergeordneten li */
	  top: 0;
	  left: 100%;            /* rechts daneben anzeigen */
	  background-color: #e5f6ff;
	  padding: 0;
	  margin: 0;
	  list-style: none;
	  min-width: 150px;
	  border: 4px solid #0074D9;
	  z-index: 1000;
	}

/* Untermenüs stylen */
	nav ul li .submenu li a {
	  padding: 10px;
	  color: #000080;
	}

/* Anzeige-Regeln */
	/* Level 1 öffnet beim Hover über das entsprechende Eltern-li */
	nav ul li.dropdown:hover > ul.submenu {
	  display: block;
	}

	/* Level 2 öffnet beim Hover über das li im Level 1 (unabhängig von Klassen) */
	nav ul li > ul.submenu li.dropdown:hover > ul.submenu,
	nav ul li > ul.submenu li:hover > ul.submenu { /* zweite Variante ohne class-Abhängigkeit */
	  display: block;
	}

/* kleine Optik */
	nav ul li > ul.submenu li a { padding:8px 12px; display:block; }
	



        nav li {
            margin: 5pt;
        }
        nav a {
            display: block;
            padding: 14px 20px;
            color: #0074D9;
            text-decoration: none;
 	    font-size: 18px;      /* Schriftgröße anpassen */
    	    font-weight: bold;
        }
        nav a:hover {
            background-color: #0074D9;
	    color: white
        }

#downloadProfile {
  background-color: #78ceff;
  color: #000080;
  font-size: 18px;
  font-weight: bold;
  padding: 10px 20px;
  border: none;           /* kein Rahmen */
  cursor: pointer;        /* Handzeiger beim Hover */
  text-decoration: none;  
  display: inline-block;  
}
#downloadProfile:hover {
  background-color: #0074D9; 
  color: white
}

#uploadProfileBtn {
  background-color: #78ceff;
  color: #000080;
  font-size: 18px;
  font-weight: bold;
  padding: 10px 20px;
  border: none;           /* kein Rahmen */
  cursor: pointer;        /* Handzeiger beim Hover */
  text-decoration: none;  
  display: inline-block;  
}
#uploadProfileBtn:hover {
  background-color: #0074D9; 
  color: white
}


.highlight {
    border: 1px solid yellow;
    padding: 12px 18px;
    border-radius: 0px;
}

.infobox {
    background-color: #e5f6ff;
    padding: 20px;
    border-radius: 8px;
    margin-left: 100px;
    padding-left: 2rem;
    text-align: justify;
    max-width: 1000px; /* maximal 800px, kleiner auf schmalen Geräten */
    width: 100%;      /* nimmt bei kleinen Bildschirmen die volle Breite */
}

.buttoncentered {
    background-color: #e5f6ff;
    padding: 20px;
    border-radius: 8px;
    margin-left: 100px;
    padding-left: 2rem;
    text-align: center;
    max-width: 1000px; /* maximal 800px, kleiner auf schmalen Geräten */
    width: 100%;      /* nimmt bei kleinen Bildschirmen die volle Breite */
}

.nametag {
  background-color: #0074D9;
  position: absolute;
  display: flex;
  align-items: center; /* vertikal mittig */
  gap: 8px; /* Abstand zwischen den Elementen */
  border-radius: 8px;
  top: 350px;
  left: 100px;
  color: white;
  font-size: 18px;
  font-weight: bold;
  padding: 10px 20px;
  border: none;           /* kein Rahmen */
  text-decoration: none;  
}

.classtag {
  background-color: #0074D9;
  position: absolute;
  display: flex;
  align-items: center; /* vertikal mittig */
  gap: 8px; /* Abstand zwischen den Elementen */
  border-radius: 8px;
  top: 350px;
  left: 700px;
  color: white;
  font-size: 18px;
  font-weight: bold;
  padding: 10px 20px;
  border: none;           /* kein Rahmen */
  text-decoration: none;  
}

#techTreeWrapper {
  position: absolute;
  top: 400px;
  left: 100px;
  max-width: 1200px;
  margin: 0 auto;
}

#techViewport {
  width: 100%;
  height: 750px;      /* Hier stellst du die Höhe des Kastens ein */
  overflow-x: auto;
  overflow-y: hidden;
  border: 2px solid #333;
  position: relative;
  white-space: nowrap;
}

#techContent {
  display: inline-block;
  position: relative;
  height: 100%;
}

#techBackground {
  display: block;
  height: 100%;       /* Passt sich der Höhe des Containers an */
  width: auto;        /* Breite proportional skalieren */
}

.tech-node {
  position: absolute;
  background: rgba(255,255,255,0.8);
  padding: 6px 10px;
  border: 1px solid #333;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  text-align: center;
}

.tech-title {
  font-weight: bold;
}

.tech-progress-bar {
  width: 80px;
  height: 12px;
  background: #ddd;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 4px;
  position: relative; /* Damit der Text absolut positioniert werden kann */
}

.tech-progress-fill {
  height: 100%;
  width: 0%;
  background: red;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.tech-progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
  font-weight: bold;
  color: black; /* Schwarz auf grauem Balken gut lesbar */
  pointer-events: none; /* Nicht anklickbar */
}

.tech-connection {
  position: absolute;
  border: none;
  background: black;
  border-radius: 0px;
}

.start-button {
  background-color: #0074D9; /* Blau wie dein Header */
  color: white;
  font-size: 24px;
  font-weight: bold;
  padding: 10px 20px;
  border: none;           /* kein Rahmen */
  border-radius: 5px;     /* abgerundete Ecken */
  cursor: pointer;        /* Handzeiger beim Hover */
  text-decoration: none;  /* nur für <a>, entfernt Unterstreichung */
  display: inline-block;  /* damit Padding bei <a> wirkt */
  transition: background-color 0.3s ease; /* sanfter Hover-Effekt */
}

.start-button:hover {
  background-color: #005fa3; /* dunkleres Blau beim Hover */
}
